/* Base Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header and Footer Lines */
.header-line,
.footer-line {
    border: 0;
    height: 1px;
    background: #dee2e6;
    margin: 0;
}

.day-divider {
    border-left: 4px solid #007bff;
    /* A vertical "accent" bar instead of a horizontal line */
    padding-left: 15px;
    margin: 60px 0 20px 0;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-container {
    display: flex;
    /* Enables flexbox */
    gap: 24px;
    /* Adds exactly 24px of space between each link */
}

.nav-container a {
    position: relative;
    text-decoration: none;
    color: #333;
    padding: 4px 0;
}

/* The hidden line */
.nav-container a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    /* Your brand color */
    transform: scaleX(0);
    /* Start at zero width */
    transition: transform 0.3s ease;
}

/* The reveal */
.nav-container a:hover::after {
    transform: scaleX(1);
    /* Grow to full width on hover */
}

/* Post Listing Styles (index.html) */
.post-item {
    margin-bottom: 2rem;
}

/* Post Title and Date */
.post-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.post-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Post listing links */
.post-title a {
    color: #212529;
    text-decoration: none;
}

.post-title a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Article Content Styles */
.post-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

/* Footer */
footer {
    color: #6c757d;
}

/* ── Comment Widget ─────────────────────────────────────────────────── */
.cw-wrapper {
    border-top: 1px solid #dee2e6;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
}

.cw-heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    color: #212529;
}

/* Comment list */
.cw-list {
    margin-bottom: 2.5rem;
}

.cw-comment {
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cw-comment:first-child {
    border-top: 1px solid #f0f0f0;
}

.cw-comment-meta {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.cw-comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: #212529;
}

.cw-comment-date {
    font-size: 0.75rem;
    color: #adb5bd;
}

.cw-comment-body {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.65;
    color: #444;
    white-space: pre-wrap;
    word-break: break-word;
}

.cw-loading,
.cw-empty,
.cw-error {
    font-size: 0.85rem;
    color: #adb5bd;
    font-style: italic;
}

.cw-error {
    color: #dc3545;
    font-style: normal;
}

/* Form */
.cw-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
}

.cw-form-heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #495057;
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.cw-field {
    margin-bottom: 1rem;
}

.cw-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #495057;
    letter-spacing: 0.02em;
}

.cw-optional {
    font-weight: 400;
    color: #adb5bd;
}

.cw-field input[type="text"],
.cw-field textarea {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
}

.cw-field input[type="text"]:focus,
.cw-field textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.cw-field input[type="text"]::placeholder,
.cw-field textarea::placeholder {
    color: #adb5bd;
}

.cw-char-count {
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: #adb5bd;
    margin-top: 0.25rem;
}

.cw-char-warn {
    color: #e67e22;
}

/* Honeypot — hidden from humans */
.cw-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.cw-status {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    min-height: 1.2em;
}

.cw-status--success {
    color: #28a745;
}

.cw-status--error {
    color: #dc3545;
}

.cw-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.25rem;
}

.cw-submit {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: #212529;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.cw-submit:hover:not(:disabled) {
    background: #000;
}

.cw-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.cw-submit:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}