/* ===== Now Page Styles ===== */
.now-content {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 6rem;
}

/* Mobile: Adjust Now page spacing */
@media (max-width: 768px) {
    .now-content {
        max-width: 100%;
        padding-top: 4rem;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

@media (max-width: 480px) {
    .now-content {
        padding-top: 3rem;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

.now-updated {
    font-family: var(--font-gt-america-mono-light);
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: left;
    margin-top: 0;
    margin-bottom: 2.5rem;
    padding-top: 0;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 1;
}

.now-updated p {
    font-family: var(--font-gt-america-mono-light) !important;
    font-size: 0.8125rem !important;
    color: rgba(0, 0, 0, 0.5) !important;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Add spacing around the separator and credit link in now-updated */
.now-updated .now-separator {
    margin-left: 1rem;
    margin-right: 1rem;
}

.now-content p {
    font-family: var(--font-editor-regular);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(0, 0, 0, 0.88);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.now-content p:last-of-type {
    margin-bottom: 3rem;
}

.now-archive {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.now-archive a {
    font-family: var(--font-gt-america-mono-light);
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.now-archive a:hover {
    color: rgba(0, 0, 0, 0.8);
}

.now-archive p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(0, 0, 0, 0.5);
    font-family: var(--font-gt-america-mono-light);
    font-size: 0.875rem;
}

/* Mobile: Adjust Now page archive links */
@media (max-width: 768px) {
    .now-updated {
        font-size: 0.75rem;
        margin-bottom: 2rem;
        line-height: 1.65;          /* more room between wrapped lines */
        flex-wrap: wrap;
    }

    /* Override the line-height on the inner paragraph so the two lines breathe */
    .now-updated p {
        line-height: 1.65 !important;
    }

    .now-updated .now-separator {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .now-archive {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }

    .now-archive a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .now-updated {
        font-size: 0.7rem;
        margin-bottom: 1.75rem;
    }

    .now-archive {
        margin-top: 2.5rem;
    }

    .now-archive a {
        font-size: 0.75rem;
    }
}

/* Only add spacing when there are 2 links (archived pages) */
.now-archive a:first-child:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1.5rem;
}

.now-archive a:last-child:not(:first-child)::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
}

/* Dark mode support for Now page */
[data-theme="dark"] .now-updated {
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .now-updated p {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .now-separator {
    color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .now-archive a {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .now-archive a:hover {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .now-archive p {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .now-content p {
    color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .now-archive {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Now page credit - subtle inline */
.now-credit-link {
    color: rgba(0, 0, 0, 0.3) !important;
    font-size: 0.8125rem;
}

.now-credit-link:hover {
    color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .now-credit-link {
    color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .now-credit-link:hover {
    color: rgba(255, 255, 255, 0.55) !important;
}