/* ============================================================
   NYT-Inspired Single Article Styles
   ============================================================ */

/* ---- Article Container ---- */
.nyt-article {
    background-color: var(--nyt-bg, #ffffff) !important;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ---- Article Header ---- */
.nyt-article__header {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 24px;
    text-align: center;
}

.nyt-article__header-inner {
    max-width: 600px;
    margin: 0 auto;
}

/* Category Label */
.nyt-article__category {
    margin-bottom: 16px;
}

.nyt-article__category a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nyt-accent, #567b95);
    text-decoration: none;
}

.nyt-article__category a:hover {
    text-decoration: underline;
}

/* Title */
.nyt-article__title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--nyt-text-primary, #121212) !important;
    margin: 0 0 16px 0;
}

/* Subtitle / Excerpt */
.nyt-article__subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--nyt-text-secondary, #5a5a5a);
    margin: 0 0 20px 0;
    font-style: normal;
}

/* Byline */
.nyt-article__byline {
    padding-top: 16px;
    border-top: 1px solid var(--nyt-border, #e2e2e2);
}

.nyt-article__author {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--nyt-text-primary, #121212);
    display: block;
    margin-bottom: 4px;
}

.nyt-article__date-line {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    color: var(--nyt-text-muted, #999);
}

.nyt-article__date-line time {
    color: var(--nyt-text-muted, #999);
}

.nyt-article__updated {
    color: var(--nyt-text-muted, #999);
}

.nyt-article__updated::before {
    content: '·';
    margin: 0 6px;
}

/* ---- Hero Image ---- */
.nyt-article__hero {
    max-width: 1000px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

.nyt-article__hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.nyt-article__hero-caption {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--nyt-text-muted, #999);
    margin-top: 8px;
    line-height: 1.4;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nyt-border, #e2e2e2);
}

/* ---- Article Body ---- */
.nyt-article__body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

.nyt-article__content.entry-content {
    max-width: 680px !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--nyt-text-primary, #121212);
}

.nyt-article__content.entry-content p {
    margin-bottom: 1.3em;
}

/* Drop Cap — NYT style first letter */
.nyt-article__content.entry-content > p:first-of-type::first-letter {
    font-family: 'Playfair Display', Georgia, serif;
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 6px;
    font-weight: 700;
    color: var(--nyt-text-primary, #121212);
}

/* Content headings */
.nyt-article__content.entry-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    color: var(--nyt-text-primary, #121212);
    line-height: 1.25;
}

.nyt-article__content.entry-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: var(--nyt-text-primary, #121212);
}

/* Block quotes — NYT uses a left-border accent */
.nyt-article__content.entry-content blockquote {
    border-left: 3px solid var(--nyt-text-primary, #121212);
    padding: 0 0 0 20px;
    margin: 2em 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--nyt-text-secondary, #5a5a5a);
    background: transparent !important;
}

/* Images inside content */
.nyt-article__content.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

.nyt-article__content.entry-content figure {
    margin: 2em -40px;
    max-width: calc(100% + 80px);
}

.nyt-article__content.entry-content figure img {
    width: 100%;
}

.nyt-article__content.entry-content figcaption {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--nyt-text-muted, #999);
    margin-top: 8px;
    line-height: 1.4;
}

/* Lists */
.nyt-article__content.entry-content ul,
.nyt-article__content.entry-content ol {
    padding-left: 24px;
    margin-bottom: 1.3em;
}

.nyt-article__content.entry-content li {
    margin-bottom: 0.5em;
}

/* Links */
.nyt-article__content.entry-content a {
    color: var(--nyt-accent, #567b95);
    text-decoration: underline;
    text-decoration-color: rgba(86, 123, 149, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.nyt-article__content.entry-content a:hover {
    text-decoration-color: var(--nyt-accent, #567b95);
}

/* ---- Article Footer — Tags ---- */
.nyt-article__footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 0;
}

.nyt-article__tags {
    border-top: 1px solid var(--nyt-border, #e2e2e2);
    padding-top: 20px;
}

.nyt-article__tags-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nyt-text-muted, #999);
    display: block;
    margin-bottom: 12px;
}

.nyt-article__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nyt-article__tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    color: var(--nyt-text-primary, #121212);
    border: 1px solid var(--nyt-border, #e2e2e2);
    padding: 6px 12px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.nyt-article__tag:hover {
    background: var(--nyt-text-primary, #121212);
    color: var(--nyt-bg, #fff) !important;
    border-color: var(--nyt-text-primary, #121212);
}

/* ---- Keep Reading Section ---- */
.nyt-article .keep-reading-section {
    max-width: 1000px;
    margin: 48px auto 0;
    padding: 0 20px;
    border-top: 2px solid var(--nyt-text-primary, #121212);
    padding-top: 24px;
}

.nyt-article .keep-reading-title a {
    color: var(--nyt-accent, #567b95);
    text-decoration: none;
}

.nyt-article .keep-reading-title a:hover {
    text-decoration: underline;
}

/* ---- Comments Section ---- */
.nyt-article .comments-area {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 0 20px 48px;
    border-top: 1px solid var(--nyt-border, #e2e2e2);
}

.nyt-article .comments-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 24px;
}

/* ---- Override parent theme single post wrappers ---- */
.nyt-article .xpost-item {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.nyt-article .xpost-text {
    padding: 0 !important;
}

.nyt-article .news-axis-meta {
    display: none;
}

.nyt-article .news-axis-category {
    display: none;
}

.nyt-article .entry-header {
    padding: 0 !important;
    margin: 0;
}

.nyt-article .entry-title.news-axis-title {
    display: none;
}

.nyt-article .entry-footer {
    display: none;
}

/* Hide parent theme featured image (we render our own) */
.nyt-article .post-thumbnail {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nyt-article__header {
        padding: 24px 16px 20px;
    }

    .nyt-article__title {
        font-size: 2rem;
    }

    .nyt-article__subtitle {
        font-size: 1.1rem;
    }

    .nyt-article__hero {
        padding: 0;
    }

    .nyt-article__body {
        padding: 0 16px;
    }

    .nyt-article__content.entry-content {
        font-size: 1.1rem;
    }

    .nyt-article__content.entry-content figure {
        margin: 2em -16px;
        max-width: calc(100% + 32px);
    }

    .nyt-article__content.entry-content > p:first-of-type::first-letter {
        font-size: 3.2rem;
    }

    .nyt-article__footer {
        padding: 24px 16px 0;
    }

    .nyt-article .keep-reading-section {
        padding: 0 16px;
        padding-top: 24px;
    }

    .nyt-article .comments-area {
        padding: 0 16px 32px;
    }
}

@media (max-width: 480px) {
    .nyt-article__title {
        font-size: 1.75rem;
    }

    .nyt-article__content.entry-content {
        font-size: 1.05rem;
    }
}

/* ---- Dark Mode ---- */
[data-theme="dark"] .nyt-article {
    background-color: #121212 !important;
}

[data-theme="dark"] .nyt-article__title {
    color: #e8e8e8 !important;
}

[data-theme="dark"] .nyt-article__subtitle {
    color: #999 !important;
}

[data-theme="dark"] .nyt-article__author {
    color: #e8e8e8;
}

[data-theme="dark"] .nyt-article__byline {
    border-top-color: #333;
}

[data-theme="dark"] .nyt-article__hero-caption {
    border-bottom-color: #333;
}

[data-theme="dark"] .nyt-article__content.entry-content {
    color: #e8e8e8;
}

[data-theme="dark"] .nyt-article__content.entry-content > p:first-of-type::first-letter {
    color: #e8e8e8;
}

[data-theme="dark"] .nyt-article__tags {
    border-top-color: #333;
}

[data-theme="dark"] .nyt-article__tag {
    color: #e8e8e8;
    border-color: #333;
}

[data-theme="dark"] .nyt-article__tag:hover {
    background: #e8e8e8;
    color: #121212 !important;
}

[data-theme="dark"] .nyt-article .keep-reading-section {
    border-top-color: #e8e8e8;
}

[data-theme="dark"] .nyt-article .comments-area {
    border-top-color: #333;
}