/* ═══════════════════════════════════════════════════════════════
   newsdetail.css — Editorial article layout (nd-* prefix)
   Pairs with theme-2026.css (uses --tx-* tokens, body.tx-theme).
═══════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────── */
body.tx-theme .nd-hero {
    position: relative;
    min-height: 520px;
    padding: 160px 24px 70px;
    color: #fff;
    background-color: #0f0f0e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    overflow: hidden;
}
body.tx-theme .nd-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.55) 35%, rgba(10,10,10,.92) 100%),
        radial-gradient(circle at 30% 30%, rgba(176,141,87,.18), transparent 65%);
}
body.tx-theme .nd-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

/* breadcrumbs inside hero */
body.tx-theme .nd-crumbs {
    font-family: var(--tx-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
body.tx-theme .nd-crumbs a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    transition: color .2s;
}
body.tx-theme .nd-crumbs a:hover { color: var(--tx-gold); }
body.tx-theme .nd-crumbs .nd-sep { color: rgba(255,255,255,.4); }
body.tx-theme .nd-crumbs .nd-current { color: #fff; }

body.tx-theme .nd-hero-pill {
    display: inline-block;
    background: var(--tx-gold);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--tx-sans);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 22px;
}

body.tx-theme .nd-hero-title {
    font-family: var(--tx-serif);
    font-weight: 800;
    color: #fafaf7;
    font-size: clamp(30px, 4.4vw, 58px);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}

body.tx-theme .nd-hero-meta {
    font-family: var(--tx-sans);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.78);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
body.tx-theme .nd-hero-meta i { color: var(--tx-gold); margin-right: 5px; }
body.tx-theme .nd-hero-meta .nd-dot { color: rgba(255,255,255,.4); }

/* ── ARTICLE SHELL ────────────────────────────────────────── */
body.tx-theme .nd-article {
    padding: 80px 0 60px;
    background: #fbfaf7;
}
body.tx-theme .nd-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 60px;
    align-items: start;
}
body.tx-theme .nd-content {
    background: #fff;
    border-radius: 18px;
    padding: 48px clamp(24px, 4vw, 56px) 40px;
    border: 1px solid #ece4d2;
    overflow: hidden;
}

/* ── Featured figure (smaller, since hero already has the bg image) ── */
body.tx-theme .nd-figure {
    margin: -8px -8px 36px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--tx-cream);
    aspect-ratio: 16 / 9;
}
body.tx-theme .nd-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── PROSE typography (for HTML content from CMS) ─────────── */
body.tx-theme .nd-prose {
    font-family: var(--tx-sans);
    font-size: 16px;
    line-height: 1.78;
    color: #2f2a23;
}
body.tx-theme .nd-prose > * + * { margin-top: 22px; }
body.tx-theme .nd-prose p { margin: 0; }
body.tx-theme .nd-prose strong { color: #1a1814; font-weight: 700; }

body.tx-theme .nd-prose h2,
body.tx-theme .nd-prose h3,
body.tx-theme .nd-prose h4 {
    font-family: var(--tx-serif);
    color: #1a1814;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.012em;
    margin: 44px 0 14px;
}
body.tx-theme .nd-prose h2 { font-size: clamp(22px, 2.4vw, 30px); }
body.tx-theme .nd-prose h3 { font-size: clamp(19px, 2vw, 24px); }
body.tx-theme .nd-prose h4 { font-size: 18px; }

body.tx-theme .nd-prose h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background: var(--tx-gold);
    margin-bottom: 12px;
    border-radius: 2px;
}

body.tx-theme .nd-prose a {
    color: var(--tx-gold-d);
    text-decoration: none;
    border-bottom: 1px solid rgba(176,141,87,.4);
    transition: color .2s, border-color .2s;
}
body.tx-theme .nd-prose a:hover {
    color: var(--tx-ink);
    border-color: var(--tx-ink);
}

body.tx-theme .nd-prose ul,
body.tx-theme .nd-prose ol {
    padding-left: 22px;
}
body.tx-theme .nd-prose li { margin-bottom: 8px; }
body.tx-theme .nd-prose ul li::marker { color: var(--tx-gold); }
body.tx-theme .nd-prose ol li::marker { color: var(--tx-gold-d); font-weight: 700; }

body.tx-theme .nd-prose blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: linear-gradient(to right, rgba(176,141,87,.08), rgba(176,141,87,0));
    border-left: 4px solid var(--tx-gold);
    border-radius: 0 12px 12px 0;
    font-family: var(--tx-serif);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #2a2620;
}

body.tx-theme .nd-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 18px 0;
    display: block;
}

body.tx-theme .nd-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14px;
    border: 1px solid #ece4d2;
    border-radius: 10px;
    overflow: hidden;
}
body.tx-theme .nd-prose table th {
    background: #1a1814;
    color: #fafaf7;
    text-align: left;
    padding: 12px 14px;
    font-family: var(--tx-sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.tx-theme .nd-prose table td {
    padding: 12px 14px;
    border-top: 1px solid #f1ead9;
    color: #3a342c;
}
body.tx-theme .nd-prose table tr:nth-child(even) td { background: #fbf8f1; }

body.tx-theme .nd-prose hr {
    border: 0;
    height: 1px;
    background: #e8dfca;
    margin: 36px 0;
}

body.tx-theme .nd-prose code {
    background: #f1ead9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .92em;
    color: #2a2620;
}
body.tx-theme .nd-prose pre {
    background: #1a1814;
    color: #f1ead9;
    padding: 18px 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}
body.tx-theme .nd-prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ── TAGS row ─────────────────────────────────────────────── */
body.tx-theme .nd-tags {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #f1ead9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
body.tx-theme .nd-tags-label {
    font-family: var(--tx-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tx-gold-d);
    margin-right: 6px;
}
body.tx-theme .nd-tags-label i { margin-right: 6px; }
body.tx-theme .nd-tag {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #e3dccd;
    border-radius: 999px;
    background: #fff;
    color: #3a342c;
    font-family: var(--tx-sans);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s, background .2s, color .2s;
}
body.tx-theme .nd-tag:hover {
    border-color: #0a0a0a;
    background: #0a0a0a;
    color: #fff;
}

/* ── SHARE row ────────────────────────────────────────────── */
body.tx-theme .nd-share {
    margin-top: 30px;
    padding: 22px 24px;
    background: #faf6ec;
    border: 1px solid #ece4d2;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
body.tx-theme .nd-share-label {
    font-family: var(--tx-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #3a342c;
    margin-right: 8px;
}
body.tx-theme .nd-share-label i { margin-right: 6px; color: var(--tx-gold-d); }
body.tx-theme .nd-share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #1a1814;
    border: 1px solid #e3dccd;
    text-decoration: none;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}
body.tx-theme .nd-share-btn:hover { transform: translateY(-2px); border-color: #0a0a0a; }
body.tx-theme .nd-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
body.tx-theme .nd-tw:hover { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
body.tx-theme .nd-li:hover { background: #0077b5; color: #fff; border-color: #0077b5; }
body.tx-theme .nd-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
body.tx-theme .nd-copy { position: relative; }
body.tx-theme .nd-copy-toast {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0a0a0a;
    color: #fff;
    font-family: var(--tx-sans);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
body.tx-theme .nd-copy.is-copied .nd-copy-toast {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── SIDEBAR CTA ──────────────────────────────────────────── */
body.tx-theme .nd-cta {
    position: sticky;
    top: 110px;
    background: #1a1814;
    color: #fafaf7;
    border-radius: 18px;
    padding: 32px 28px;
    overflow: hidden;
}
body.tx-theme .nd-cta::before {
    content: "";
    position: absolute;
    inset: -40% -40% auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176,141,87,.35), transparent 70%);
    pointer-events: none;
}
body.tx-theme .nd-cta-eyebrow {
    font-family: var(--tx-sans);
    font-size: 10px;
    letter-spacing: .26em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--tx-gold);
    margin-bottom: 12px;
    position: relative;
}
body.tx-theme .nd-cta h3 {
    font-family: var(--tx-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #fafaf7;
    margin: 0 0 12px;
    position: relative;
}
body.tx-theme .nd-cta p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(250,250,247,.78);
    margin: 0 0 20px;
    position: relative;
}
body.tx-theme .nd-cta-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    position: relative;
}
body.tx-theme .nd-cta-info a,
body.tx-theme .nd-cta-info span {
    color: rgba(250,250,247,.88);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.tx-theme .nd-cta-info a:hover { color: var(--tx-gold); }
body.tx-theme .nd-cta-info i {
    color: var(--tx-gold);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
body.tx-theme .nd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--tx-gold);
    color: #fff;
    padding: 13px 22px;
    border-radius: 999px;
    font-family: var(--tx-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s, gap .2s;
    position: relative;
}
body.tx-theme .nd-cta-btn:hover { background: var(--tx-gold-d); color: #fff; gap: 14px; }

/* ── RELATED POSTS ────────────────────────────────────────── */
body.tx-theme .nd-related { padding: 70px 0 90px; background: #fff; }
body.tx-theme .nd-related-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
body.tx-theme .nd-related-head { text-align: center; margin-bottom: 44px; }
body.tx-theme .nd-related-eyebrow {
    font-family: var(--tx-sans);
    font-size: 11px;
    letter-spacing: .32em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--tx-gold);
    margin-bottom: 12px;
}
body.tx-theme .nd-related-head h3 {
    font-family: var(--tx-serif);
    font-weight: 800;
    color: #0a0a0a;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -.018em;
}
body.tx-theme .nd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
body.tx-theme .nd-related-card {
    background: #fff;
    border: 1px solid #ece4d2;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, border-color .25s, box-shadow .3s;
}
body.tx-theme .nd-related-card:hover {
    border-color: #d6c8a8;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -18px rgba(26,24,20,.25);
}
body.tx-theme .nd-related-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--tx-cream);
    display: block;
}
body.tx-theme .nd-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}
body.tx-theme .nd-related-card:hover .nd-related-media img { transform: scale(1.06); }
body.tx-theme .nd-related-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10,10,10,.85);
    color: #fff;
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--tx-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
body.tx-theme .nd-related-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
body.tx-theme .nd-related-body time {
    font-family: var(--tx-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tx-gold-d);
}
body.tx-theme .nd-related-body time i { margin-right: 5px; }
body.tx-theme .nd-related-body h4 {
    font-family: var(--tx-serif);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}
body.tx-theme .nd-related-body h4 a {
    color: #0a0a0a;
    text-decoration: none;
    transition: color .2s;
}
body.tx-theme .nd-related-body h4 a:hover { color: var(--tx-gold-d); }
body.tx-theme .nd-related-cta {
    font-family: var(--tx-sans);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #0a0a0a;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
    padding-bottom: 3px;
    border-bottom: 1.5px solid #0a0a0a;
    transition: color .2s, border-color .2s, gap .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.tx-theme .nd-related-cta:hover { color: var(--tx-gold-d); border-color: var(--tx-gold-d); gap: 12px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    body.tx-theme .nd-shell {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 820px;
    }
    body.tx-theme .nd-cta { position: static; }
    body.tx-theme .nd-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    body.tx-theme .nd-hero {
        min-height: 380px;
        padding: 130px 18px 50px;
    }
    body.tx-theme .nd-hero-title { font-size: 28px; max-width: none; }
    body.tx-theme .nd-hero-meta { font-size: 12px; gap: 6px; }
    body.tx-theme .nd-article { padding: 50px 0 40px; }
    body.tx-theme .nd-shell { padding: 0 16px; gap: 30px; }
    body.tx-theme .nd-content { padding: 28px 22px 32px; border-radius: 14px; }
    body.tx-theme .nd-figure { margin: -4px -4px 26px; }
    body.tx-theme .nd-prose { font-size: 15px; line-height: 1.75; }
    body.tx-theme .nd-prose h2 { font-size: 22px; margin-top: 32px; }
    body.tx-theme .nd-prose h3 { font-size: 19px; margin-top: 28px; }
    body.tx-theme .nd-prose blockquote { padding: 18px 20px; font-size: 16px; }
    body.tx-theme .nd-cta { padding: 26px 22px; }
    body.tx-theme .nd-related { padding: 50px 0 70px; }
    body.tx-theme .nd-related-grid { grid-template-columns: 1fr; gap: 18px; }
    body.tx-theme .nd-share { padding: 16px 18px; }
}
