/* ════════════════════════════════════════════════════════════════
   GOBLINS & GUNSLINGERS — FRONTIER DISPATCHES (blog) LAYER, 2026-09
   Loads after gng-2026.css + gng-awards.css on /blog, /blog/<slug>
   and the static blog/index.html. Owns the newspaper masthead, the
   lead story, the dispatch cards (with real cover art), the article
   reading layout (progress rule, sticky contents rail, featured card
   object), the trail of first reads, and the wire-signup plate.
   Vocabulary: .dsp-* here; .gx-* and .gng-* primitives remain valid.
   Category tint is data-driven: [data-category="strategy|guides|
   lore|news|development-update"] sets --dsp-tint.
   ════════════════════════════════════════════════════════════════ */

:root {
    --dsp-tint: var(--gx-gold);
    --dsp-tint-ink: #241703;
    --dsp-paper: rgba(28, 22, 15, 0.88);
    --dsp-measure: 70ch;
    --dsp-rail: 264px;
}

[data-category="strategy"]           { --dsp-tint: var(--gx-gold-hi); }
[data-category="guides"]             { --dsp-tint: #cdc4ab; }
[data-category="lore"]               { --dsp-tint: #b9a0ef; }
[data-category="news"]               { --dsp-tint: #e78354; }
[data-category="development-update"] { --dsp-tint: #9fd48a; }

/* ── Shared atoms ─────────────────────────────────────────────── */

.dsp-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dsp-tint);
    white-space: nowrap;
}
.dsp-cat::before {
    content: "";
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: var(--dsp-tint);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.dsp-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    color: var(--gx-faint);
}
.dsp-meta > * + *::before {
    content: "·";
    margin-right: 0.6rem;
    opacity: 0.6;
}
.dsp-meta time { color: var(--gx-muted); }

/* Cover art window — every card, every lead, every related tile. */
.dsp-art {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(217, 172, 84, 0.14), transparent 55%),
        repeating-linear-gradient(45deg, #171008 0 10px, #120c06 10px 20px);
    border-bottom: 1px solid var(--gx-hairline);
}
.dsp-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--gx-ease);
}
.dsp-art::after {
    /* ink foot so a white-hot art edge never fights the title below */
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(7, 5, 3, 0.55));
    pointer-events: none;
}
a:hover .dsp-art img,
.dsp-card:hover .dsp-art img,
.dsp-lead:hover .dsp-art img { transform: scale(1.045); }

/* ── Masthead ─────────────────────────────────────────────────── */

.dsp-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(68px + clamp(2rem, 5vw, 3.6rem)) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--gx-hairline);
}
.dsp-masthead-bg { position: absolute; inset: 0; z-index: -2; }
.dsp-masthead-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}
.dsp-masthead-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 5, 3, 0.82), rgba(7, 5, 3, 0.62) 40%, var(--gx-bg-0) 100%),
        radial-gradient(900px 420px at 18% 70%, rgba(7, 5, 3, 0.6), transparent 70%);
}
.dsp-dateline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.55rem 0;
    border-top: 1px solid var(--gx-hairline-strong);
    border-bottom: 1px solid var(--gx-hairline);
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gx-muted);
}
.dsp-dateline b { color: var(--gx-gold); font-weight: 700; }
.dsp-dateline span + span::before { content: "·"; margin: 0 0.7rem; opacity: 0.5; }
.dsp-dateline-right { display: flex; gap: 0; }
.dsp-masthead-title {
    margin: clamp(1.2rem, 3vw, 2rem) 0 0.4rem;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: 0.01em;
    text-align: center;
    background: var(--gng-leaf, linear-gradient(180deg, #fff8e8 0%, #f3d488 48%, #cf9a3e 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.65));
    text-wrap: balance;
}
.dsp-masthead-sub {
    text-align: center;
    max-width: 58ch;
    margin: 0.6rem auto 0;
    font-size: var(--gx-body-lg);
    line-height: 1.6;
    color: var(--gx-ink-soft);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}
.dsp-masthead .gng-rule-double { margin: 1.4rem 0 0; }
.dsp-masthead-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.3rem;
}

/* ── Section chips (category filter) ──────────────────────────── */

.dsp-sections {
    position: sticky;
    top: 68px;
    z-index: 30;
    background: linear-gradient(180deg, rgba(13, 10, 7, 0.96), rgba(13, 10, 7, 0.9));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gx-hairline);
}
.dsp-sections-inner {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.55rem 0;
}
.dsp-sections-inner::-webkit-scrollbar { display: none; }
.dsp-sections-label {
    flex: 0 0 auto;
    margin-right: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gx-gold);
}
.dsp-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--gx-hairline);
    background: transparent;
    color: var(--gx-ink-soft);
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s var(--gx-ease), color 0.25s var(--gx-ease), background 0.25s var(--gx-ease);
}
.dsp-chip small {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gx-faint);
    letter-spacing: 0;
}
.dsp-chip:hover { border-color: var(--gx-hairline-strong); color: var(--gx-gold-hi); }
.dsp-chip[aria-pressed="true"] {
    border-color: var(--gx-gold);
    background: rgba(217, 172, 84, 0.12);
    color: var(--gx-gold-hi);
}
.dsp-chip:focus-visible { outline: 2px solid var(--gx-gold-hi); outline-offset: 2px; }

/* ── Lead story ───────────────────────────────────────────────── */

.dsp-front { padding: clamp(2rem, 4.5vw, 3.4rem) 0 clamp(1.4rem, 3vw, 2rem); }
.dsp-front-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: clamp(1.4rem, 3vw, 2.6rem);
    align-items: stretch;
}
.dsp-lead {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--gx-card);
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius-lg);
    overflow: hidden;
    box-shadow: var(--gx-shadow);
    transition: border-color 0.35s var(--gx-ease), box-shadow 0.35s var(--gx-ease), transform 0.35s var(--gx-ease);
}
.dsp-lead:hover {
    border-color: var(--gx-gold);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 44px rgba(217, 172, 84, 0.2);
    transform: translateY(-3px);
}
.dsp-lead .dsp-art { aspect-ratio: 16 / 8.6; }
.dsp-lead-tag {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    background: rgba(7, 5, 3, 0.78);
    border: 1px solid rgba(243, 207, 117, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.dsp-lead-body { padding: clamp(1.2rem, 2.4vw, 1.8rem) clamp(1.2rem, 2.6vw, 2rem) clamp(1.3rem, 2.6vw, 1.9rem); }
.dsp-lead h2 {
    margin: 0.55rem 0 0.6rem;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 2.9vw, 2.35rem);
    line-height: 1.12;
    color: var(--gx-ink);
    text-wrap: balance;
}
.dsp-lead p {
    margin: 0 0 1rem;
    color: var(--gx-muted);
    font-size: var(--gx-body-lg);
    line-height: 1.65;
    max-width: 60ch;
}
.dsp-lead .dsp-read { margin-top: auto; }
.dsp-read {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gx-gold-hi);
}
.dsp-read::after { content: "→"; transition: transform 0.25s var(--gx-ease); }
a:hover .dsp-read::after, .dsp-read:hover::after { transform: translateX(4px); }

/* The "also this week" stack beside the lead */
.dsp-stack {
    display: flex;
    flex-direction: column;
    background: var(--gx-panel);
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius-lg);
    box-shadow: var(--gx-shadow-sm);
    overflow: hidden;
}
.dsp-stack-head {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--gx-hairline);
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gx-gold);
}
.dsp-stack-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.95rem 1.2rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gx-hairline);
    transition: background 0.25s var(--gx-ease);
}
.dsp-stack-item:last-child { border-bottom: 0; }
.dsp-stack-item:hover { background: rgba(217, 172, 84, 0.06); }
.dsp-stack-item .dsp-art {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius-sm);
}
.dsp-stack-item .dsp-art::after { display: none; }
.dsp-stack-item h3 {
    margin: 0.2rem 0 0.25rem;
    font-family: 'Cinzel', serif;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--gx-ink);
}
.dsp-stack-item:hover h3 { color: var(--gx-gold-hi); }
.dsp-stack-foot {
    margin-top: auto;
    padding: 0.9rem 1.2rem;
    border-top: 1px solid var(--gx-hairline);
    background: rgba(7, 5, 3, 0.35);
}

/* ── Dispatch cards (the archive grid) ────────────────────────── */

.dsp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gx-gap);
}
.dsp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--gx-card);
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius-lg);
    overflow: hidden;
    box-shadow: var(--gx-shadow-sm);
    transition: transform 0.35s var(--gx-ease), border-color 0.35s var(--gx-ease), box-shadow 0.35s var(--gx-ease);
}
.dsp-card:hover {
    transform: translateY(-5px);
    border-color: var(--gx-gold);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 32px rgba(217, 172, 84, 0.2);
}
.dsp-card[hidden] { display: none; }
.dsp-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.55rem;
    padding: 1.1rem 1.25rem 1.25rem;
}
.dsp-card h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--gx-ink);
    text-wrap: balance;
}
.dsp-card h3 a {
    color: inherit;
    text-decoration: none;
}
/* the whole card is the target: stretch the title link */
.dsp-card h3 a::after { content: ""; position: absolute; inset: 0; }
.dsp-card:hover h3 { color: var(--gx-gold-hi); }
.dsp-card p {
    margin: 0;
    flex: 1;
    color: var(--gx-muted);
    font-size: var(--gx-small);
    line-height: 1.6;
}
.dsp-card .dsp-meta { margin-top: 0.35rem; }
.dsp-card .dsp-cat {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    background: rgba(7, 5, 3, 0.78);
    border: 1px solid rgba(243, 207, 117, 0.28);
}
.dsp-card .dsp-art { border-bottom: 1px solid var(--gx-hairline); }

/* Empty / filtered-out state */
.dsp-empty {
    grid-column: 1 / -1;
    padding: clamp(2.5rem, 6vw, 4rem) 1rem;
    text-align: center;
    color: var(--gx-muted);
}
.dsp-empty-mark {
    font-family: 'Rye', 'Cinzel', serif;
    font-size: 2.4rem;
    color: var(--gx-gold-deep);
    opacity: 0.7;
    margin-bottom: 0.6rem;
}
.dsp-empty h2, .dsp-empty h3 {
    font-family: 'Cinzel', serif;
    color: var(--gx-gold-hi);
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

/* ── The trail: first reads for newcomers ─────────────────────── */

.dsp-trail {
    counter-reset: trail;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--gx-hairline-strong);
    border-radius: var(--gx-radius-lg);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(66, 50, 24, 0.28), rgba(30, 22, 11, 0.5)),
        var(--gx-bg-1);
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.12), var(--gx-shadow-sm);
}
.dsp-trail-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.35rem 1.4rem 1.4rem 1.4rem;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--gx-hairline);
    transition: background 0.3s var(--gx-ease);
}
.dsp-trail-step:last-child { border-right: 0; }
.dsp-trail-step:hover { background: rgba(217, 172, 84, 0.08); }
.dsp-trail-step::before {
    counter-increment: trail;
    content: "0" counter(trail);
    font-family: 'Rye', 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gx-gold);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.dsp-trail-step strong {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--gx-ink);
}
.dsp-trail-step:hover strong { color: var(--gx-gold-hi); }
.dsp-trail-step span {
    color: var(--gx-muted);
    font-size: var(--gx-small);
    line-height: 1.5;
}
.dsp-trail-step em {
    margin-top: auto;
    padding-top: 0.5rem;
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    color: var(--gx-faint);
}

/* ── Wire signup (newsletter) plate ───────────────────────────── */

.dsp-wire {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(1.4rem, 3vw, 2.6rem);
    align-items: center;
    padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 2.4rem);
    border: 1px solid rgba(217, 172, 84, 0.42);
    border-radius: var(--gx-radius-lg);
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(194, 87, 47, 0.14), transparent 65%),
        linear-gradient(180deg, rgba(66, 50, 24, 0.35), rgba(30, 22, 11, 0.6)),
        var(--gx-bg-1);
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.16), var(--gx-shadow);
}
.dsp-wire h2 {
    margin: 0.4rem 0 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: var(--gx-h2);
    line-height: 1.15;
    color: var(--gx-ink);
    text-wrap: balance;
}
.dsp-wire p { margin: 0; color: var(--gx-muted); line-height: 1.65; max-width: 52ch; }
.dsp-wire-form { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.dsp-wire-form .gx-input { flex: 1 1 220px; min-height: 48px; }
.dsp-wire-status {
    min-height: 1.3rem;
    margin: 0.7rem 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--gx-muted);
}
.dsp-wire-status--success { color: #9fe8a8; }
.dsp-wire-status--error { color: #ef9f9f; }
.dsp-wire-privacy {
    margin: 0.45rem 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    color: var(--gx-faint);
}
.dsp-wire-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Article page ─────────────────────────────────────────────── */

.dsp-progress {
    position: fixed;
    top: 68px;
    left: 0;
    z-index: 40;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gx-gold-deep), var(--gx-gold-hi));
    transform-origin: 0 50%;
    transform: scaleX(0);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(243, 207, 117, 0.45);
}

.dsp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(68px + clamp(2.4rem, 6vw, 4.6rem)) 0 clamp(2rem, 4.5vw, 3.2rem);
    border-bottom: 1px solid var(--gx-hairline);
}
.dsp-hero-bg { position: absolute; inset: 0; z-index: -2; }
.dsp-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 30%;
}
.dsp-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 5, 3, 0.92) 0%, rgba(7, 5, 3, 0.78) 45%, rgba(7, 5, 3, 0.35) 100%),
        linear-gradient(180deg, rgba(7, 5, 3, 0.55), transparent 30%, rgba(7, 5, 3, 0.4) 70%, var(--gx-bg-0) 100%);
}
.dsp-hero-inner { width: min(980px, calc(100% - 3rem)); margin-inline: auto; }
.dsp-crumbs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gx-muted);
}
.dsp-crumbs a { color: var(--gx-muted); text-decoration: none; }
.dsp-crumbs a:hover { color: var(--gx-gold-hi); }
.dsp-crumbs span[aria-hidden] { opacity: 0.5; }
.dsp-hero .post-title,
.dsp-hero h1 {
    margin: 1.1rem 0 0.9rem;
    max-width: 22ch;
    font-family: 'Cinzel', serif;
    font-size: var(--gx-display);
    font-weight: 800;
    line-height: 1.08;
    color: var(--gx-ink);
    text-wrap: balance;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.dsp-hero .post-standfirst {
    max-width: 62ch;
    margin: 0;
    font-size: var(--gx-body-lg);
    line-height: 1.7;
    color: var(--gx-ink-soft);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}
.dsp-hero .dsp-meta { margin-top: 1.1rem; }
.dsp-hero .dsp-meta, .dsp-hero .dsp-meta time { color: var(--gx-ink-soft); }
.dsp-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.3rem;
}
.dsp-share-label {
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gx-faint);
    margin-right: 0.2rem;
}
.dsp-share a, .dsp-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--gx-hairline-strong);
    background: rgba(16, 12, 8, 0.72);
    color: var(--gx-ink-soft);
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s var(--gx-ease), color 0.25s var(--gx-ease), transform 0.25s var(--gx-ease);
}
.dsp-share a:hover, .dsp-share button:hover { border-color: var(--gx-gold); color: var(--gx-gold-hi); transform: translateY(-2px); }

/* Reading layout: contents rail + measure */
.dsp-read-layout {
    display: grid;
    grid-template-columns: var(--dsp-rail) minmax(0, 1fr);
    gap: clamp(1.6rem, 4vw, 3.4rem);
    align-items: start;
    width: min(1120px, calc(100% - 3rem));
    margin-inline: auto;
    padding-top: clamp(2rem, 5vw, 3.2rem);
}
.dsp-rail {
    position: sticky;
    top: calc(68px + 1.4rem);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.dsp-toc {
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius);
    background: var(--gx-panel);
}
.dsp-toc summary,
.dsp-toc-head {
    display: block;
    list-style: none;
    cursor: default;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gx-gold);
    margin-bottom: 0.6rem;
}
.dsp-toc summary::-webkit-details-marker { display: none; }
.dsp-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.dsp-toc a {
    display: block;
    padding: 0.4rem 0.6rem 0.4rem 0.75rem;
    border-left: 2px solid transparent;
    border-radius: 0 var(--gx-radius-sm) var(--gx-radius-sm) 0;
    color: var(--gx-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s var(--gx-ease), border-color 0.2s var(--gx-ease), background 0.2s var(--gx-ease);
}
.dsp-toc a:hover { color: var(--gx-gold-hi); background: rgba(217, 172, 84, 0.06); }
.dsp-toc a[aria-current="true"] {
    color: var(--gx-ink);
    border-left-color: var(--gx-gold);
    background: rgba(217, 172, 84, 0.08);
}
.dsp-rail-card {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    text-align: center;
}
.dsp-rail-card .gng-card-obj { --gco-w: 200px; }
.dsp-rail-card small {
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gx-faint);
}
.dsp-rail-card a {
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gx-gold);
    text-decoration: none;
}
.dsp-rail-card a:hover { color: var(--gx-gold-hi); }

.dsp-article { min-width: 0; }
.post-body {
    width: 100%;
    max-width: var(--dsp-measure);
    padding: 0 0 1rem;
    font-family: 'Crimson Text', serif;
    font-size: var(--gx-body-lg);
    line-height: 1.85;
    color: var(--gx-ink-soft);
}
.post-body-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'Rye', 'Cinzel', serif;
    font-size: 3.5em;
    line-height: 0.8;
    font-weight: 400;
    color: var(--gx-gold);
    margin: 0.08em 0.14em 0 0;
}
.post-body-content a {
    color: var(--gx-gold);
    text-underline-offset: 3px;
    text-decoration-color: var(--gx-hairline-strong);
}
.post-body-content a:hover { color: var(--gx-gold-hi); text-decoration-color: currentColor; }
.post-body-content h2 {
    scroll-margin-top: calc(68px + 1.2rem);
    margin: 2.4rem 0 0.9rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--gx-hairline);
    font-family: 'Cinzel', serif;
    font-size: var(--gx-h3);
    line-height: 1.22;
    color: var(--gx-ink);
    text-wrap: balance;
}
.post-body-content h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-top: 0.55rem;
    background: linear-gradient(90deg, var(--gx-gold), transparent);
}
.post-body-content h3 {
    scroll-margin-top: calc(68px + 1.2rem);
    margin: 1.7rem 0 0.55rem;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--gx-gold-hi);
}
.post-body-content h4 {
    margin: 1.5rem 0 0.45rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gx-muted);
}
.post-body-content p { margin: 0 0 1.25rem; }
.post-body-content ul, .post-body-content ol { padding-left: 1.4rem; margin: 0 0 1.3rem; }
.post-body-content li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.post-body-content li::marker { color: var(--gx-gold); }
.post-body-content strong { color: var(--gx-ink); font-weight: 700; }
.post-body-content em { font-style: italic; }
.post-body-content hr {
    border: 0;
    height: 5px;
    width: 60%;
    margin: 2.4rem auto;
    background:
        linear-gradient(90deg, transparent, var(--gx-hairline-strong) 18%, var(--gx-hairline-strong) 82%, transparent) top / 100% 1px no-repeat,
        linear-gradient(90deg, transparent, var(--gx-hairline) 26%, var(--gx-hairline) 74%, transparent) bottom / 100% 1px no-repeat;
}
.post-body-content blockquote {
    margin: 1.8rem 0;
    padding: 0.3rem 0 0.3rem 1.3rem;
    border-left: 2px solid var(--gx-gold);
    color: var(--gx-ink);
    font-family: 'Cinzel', serif;
    font-size: 1.12em;
    font-style: italic;
    line-height: 1.55;
}
.post-body-content blockquote p:last-child { margin-bottom: 0; }
.post-body-content code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.86em;
    padding: 0.12em 0.4em;
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius-sm);
    background: var(--gx-bg-0);
    color: var(--gx-gold-hi);
}
.post-body-content pre {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius);
    background: var(--gx-bg-0);
}
.post-body-content pre code { border: 0; padding: 0; background: none; color: var(--gx-ink-soft); }
.post-body-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6rem auto;
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius);
}
.post-body-content figure { margin: 1.8rem 0; }
.post-body-content figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    color: var(--gx-faint);
}
.post-body-content table {
    width: 100%;
    margin: 0 0 1.5rem;
    border-collapse: collapse;
    font-size: var(--gx-small);
}
.post-body-content th, .post-body-content td {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--gx-hairline);
    text-align: left;
}
.post-body-content th { color: var(--gx-gold-hi); background: var(--gx-glass); }

/* Byline / colophon under the article */
.dsp-colophon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    max-width: var(--dsp-measure);
    margin-top: 2.4rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius);
    background: var(--gx-panel);
}
.dsp-colophon-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(217, 172, 84, 0.45);
    background: radial-gradient(circle at 32% 28%, #ffe9ae, var(--gx-gold) 58%, var(--gx-gold-deep));
    color: #241703;
    font-family: 'Rye', 'Cinzel', serif;
    font-size: 1.05rem;
}
.dsp-colophon-text { flex: 1 1 240px; }
.dsp-colophon strong {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--gx-ink);
    margin-bottom: 0.2rem;
}
.dsp-colophon p { margin: 0; color: var(--gx-muted); font-size: var(--gx-small); line-height: 1.55; }

/* Deal-in plate: one gold action after the read */
.dsp-dealin {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.4rem;
    align-items: center;
    max-width: var(--dsp-measure);
    margin-top: 1.6rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid rgba(217, 172, 84, 0.42);
    border-radius: var(--gx-radius-lg);
    background:
        radial-gradient(600px 240px at 100% 0%, rgba(194, 87, 47, 0.16), transparent 65%),
        linear-gradient(180deg, rgba(66, 50, 24, 0.4), rgba(30, 22, 11, 0.7)),
        var(--gx-bg-1);
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.16), var(--gx-shadow-sm);
}
.dsp-dealin h2 {
    margin: 0.3rem 0 0.35rem;
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--gx-ink);
}
.dsp-dealin p { margin: 0; color: var(--gx-muted); font-size: var(--gx-small); line-height: 1.6; max-width: 46ch; }
.dsp-dealin .gx-actions { flex-direction: column; align-items: stretch; }

/* Prev / next dispatch */
.dsp-adjacent {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gx-gap);
    width: min(1120px, calc(100% - 3rem));
    margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gx-hairline);
}
.dsp-adj {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.9rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--gx-hairline);
    border-radius: var(--gx-radius-lg);
    background: var(--gx-card);
    transition: border-color 0.3s var(--gx-ease), transform 0.3s var(--gx-ease);
}
.dsp-adj:hover { border-color: var(--gx-gold); transform: translateY(-3px); }
.dsp-adj--next { grid-template-columns: minmax(0, 1fr) 112px; text-align: right; }
.dsp-adj--next .dsp-art { order: 2; }
.dsp-adj .dsp-art { aspect-ratio: 4 / 3; border: 1px solid var(--gx-hairline); border-radius: var(--gx-radius-sm); }
.dsp-adj .dsp-art::after { display: none; }
.dsp-adj small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: var(--gx-tiny);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gx-gold);
    margin-bottom: 0.3rem;
}
.dsp-adj strong {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--gx-ink);
}
.dsp-adj:hover strong { color: var(--gx-gold-hi); }
.dsp-adj--placeholder { opacity: 0.55; pointer-events: none; }

/* Related dispatches */
.dsp-related {
    width: min(1120px, calc(100% - 3rem));
    margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
}
.dsp-related .gng-sechead { margin-bottom: 1.4rem; }
.dsp-related .dsp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dsp-related .dsp-card h3 { font-size: 1.02rem; }

.dsp-page-wire {
    width: min(1120px, calc(100% - 3rem));
    margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
}
.post-main { padding-bottom: clamp(3rem, 7vw, 5.5rem); }

/* Message / 404 */
.message-shell {
    width: min(720px, calc(100% - 3rem));
    margin-inline: auto;
    padding: calc(68px + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 7vw, 5rem);
    color: var(--gx-ink-soft);
}
.message-card { padding: clamp(1.6rem, 3vw, 2.4rem); }
.message-card h1 { font-family: 'Cinzel', serif; font-size: var(--gx-h2); color: var(--gx-ink); margin: 0 0 0.9rem; }
.message-card p { color: var(--gx-muted); line-height: 1.75; margin: 0 0 1rem; }
.message-card p:last-child { margin-bottom: 0; }
.message-card .gx-actions { margin-top: 1.4rem; }

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .dsp-read-layout { grid-template-columns: 1fr; }
    .dsp-rail { position: static; }
    .dsp-toc { max-width: var(--dsp-measure); }
    .dsp-toc summary { cursor: pointer; margin-bottom: 0; }
    .dsp-toc summary::after { content: " +"; }
    .dsp-toc[open] summary { margin-bottom: 0.6rem; }
    .dsp-toc[open] summary::after { content: " –"; }
    .dsp-rail-card { display: none; }
}
@media (max-width: 960px) {
    .dsp-front-grid { grid-template-columns: 1fr; }
    .dsp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsp-related .dsp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsp-trail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsp-trail-step:nth-child(2) { border-right: 0; }
    .dsp-trail-step:nth-child(-n+2) { border-bottom: 1px solid var(--gx-hairline); }
    .dsp-wire { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .dsp-sections { top: 60px; }
    .dsp-progress { top: 60px; }
    .dsp-dateline { justify-content: center; text-align: center; }
    .dsp-dateline-right { display: none; }
    .dsp-adjacent { grid-template-columns: 1fr; }
    .dsp-adj--next { grid-template-columns: 112px minmax(0, 1fr); text-align: left; }
    .dsp-adj--next .dsp-art { order: 0; }
    .dsp-dealin { grid-template-columns: 1fr; }
    .dsp-dealin .gx-actions { flex-direction: row; }
    .dsp-hero-bg img { object-position: 60% 20%; }
}
@media (max-width: 560px) {
    .dsp-grid, .dsp-related .dsp-grid { grid-template-columns: 1fr; }
    .dsp-trail { grid-template-columns: 1fr; }
    .dsp-trail-step { border-right: 0; border-bottom: 1px solid var(--gx-hairline); }
    .dsp-trail-step:last-child { border-bottom: 0; }
    .dsp-stack-item { grid-template-columns: 80px minmax(0, 1fr); }
    .post-body-content > p:first-of-type::first-letter { font-size: 3em; }
    .dsp-share a, .dsp-share button { min-height: 44px; }
}

/* Body-level rules the parity block in gng-awards.css does not cover */
body[data-page="blog"] .post-main { min-height: 60vh; }

@media (prefers-reduced-motion: reduce) {
    .dsp-art img, .dsp-card, .dsp-lead, .dsp-adj, .dsp-chip, .dsp-share a { transition: none; }
    a:hover .dsp-art img, .dsp-card:hover .dsp-art img, .dsp-lead:hover .dsp-art img { transform: none; }
}

/* ── Light theme ──────────────────────────────────────────────── */

html[data-theme="light"] { --dsp-paper: rgba(255, 250, 238, 0.9); }
html[data-theme="light"] [data-category="strategy"]           { --dsp-tint: #7d4f12; }
html[data-theme="light"] [data-category="guides"]             { --dsp-tint: #5b4a2c; }
html[data-theme="light"] [data-category="lore"]               { --dsp-tint: #5a3fa3; }
html[data-theme="light"] [data-category="news"]               { --dsp-tint: #9a3f1c; }
html[data-theme="light"] [data-category="development-update"] { --dsp-tint: #2f6b2a; }
html[data-theme="light"] .dsp-masthead-scrim {
    background: linear-gradient(180deg, rgba(28, 19, 8, 0.66), rgba(28, 19, 8, 0.44) 45%, #f1e6cf 100%);
}
html[data-theme="light"] .dsp-masthead-sub { color: #fff8ea; }
html[data-theme="light"] .dsp-dateline { color: #fff2d8; border-color: rgba(255, 240, 210, 0.35); }
html[data-theme="light"] .dsp-dateline b { color: #f3cf75; }
html[data-theme="light"] .dsp-sections {
    background: linear-gradient(180deg, rgba(247, 239, 221, 0.96), rgba(243, 233, 211, 0.92));
    border-bottom-color: rgba(140, 100, 40, 0.2);
}
html[data-theme="light"] .dsp-sections-label { color: #7d4f12; }
html[data-theme="light"] .dsp-chip { color: #4d3d24; border-color: rgba(140, 100, 40, 0.3); }
html[data-theme="light"] .dsp-chip:hover,
html[data-theme="light"] .dsp-chip[aria-pressed="true"] { color: #7d4f12; border-color: #a87c2e; background: rgba(217, 172, 84, 0.16); }
html[data-theme="light"] .dsp-chip small { color: #6b5a3d; }
html[data-theme="light"] .dsp-lead,
html[data-theme="light"] .dsp-card,
html[data-theme="light"] .dsp-stack,
html[data-theme="light"] .dsp-adj,
html[data-theme="light"] .dsp-toc,
html[data-theme="light"] .dsp-colophon {
    background: rgba(255, 250, 238, 0.9);
    border-color: rgba(140, 100, 40, 0.22);
}
html[data-theme="light"] .dsp-lead h2, html[data-theme="light"] .dsp-card h3,
html[data-theme="light"] .dsp-stack-item h3, html[data-theme="light"] .dsp-adj strong,
html[data-theme="light"] .dsp-trail-step strong, html[data-theme="light"] .dsp-wire h2,
html[data-theme="light"] .dsp-dealin h2, html[data-theme="light"] .dsp-colophon strong { color: #2a2115; }
html[data-theme="light"] .dsp-lead p, html[data-theme="light"] .dsp-card p,
html[data-theme="light"] .dsp-stack-item p, html[data-theme="light"] .dsp-trail-step span,
html[data-theme="light"] .dsp-wire p, html[data-theme="light"] .dsp-dealin p,
html[data-theme="light"] .dsp-colophon p, html[data-theme="light"] .dsp-meta,
html[data-theme="light"] .dsp-meta time, html[data-theme="light"] .dsp-toc a { color: #6b5a3d; }
html[data-theme="light"] .dsp-read, html[data-theme="light"] .dsp-stack-head,
html[data-theme="light"] .dsp-adj small, html[data-theme="light"] .dsp-toc summary,
html[data-theme="light"] .dsp-toc-head, html[data-theme="light"] .dsp-rail-card a,
html[data-theme="light"] .dsp-trail-step::before { color: #7d4f12; }
html[data-theme="light"] .dsp-card .dsp-cat, html[data-theme="light"] .dsp-lead-tag { background: rgba(7, 5, 3, 0.72); }
html[data-theme="light"] .dsp-card .dsp-cat { --dsp-tint: #f3cf75; }
html[data-theme="light"] .dsp-lead-tag .dsp-cat { --dsp-tint: #f3cf75; }
html[data-theme="light"] .dsp-trail,
html[data-theme="light"] .dsp-wire,
html[data-theme="light"] .dsp-dealin {
    background: linear-gradient(180deg, rgba(255, 247, 228, 0.94), rgba(240, 226, 196, 0.94));
    border-color: rgba(140, 100, 40, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px rgba(90, 66, 28, 0.14);
}
html[data-theme="light"] .dsp-hero-scrim {
    background:
        linear-gradient(90deg, rgba(28, 19, 8, 0.9) 0%, rgba(28, 19, 8, 0.72) 45%, rgba(28, 19, 8, 0.3) 100%),
        linear-gradient(180deg, rgba(28, 19, 8, 0.5), transparent 30%, rgba(28, 19, 8, 0.35) 70%, #f1e6cf 100%);
}
html[data-theme="light"] .dsp-hero .post-title, html[data-theme="light"] .dsp-hero h1,
html[data-theme="light"] .dsp-hero .post-standfirst, html[data-theme="light"] .dsp-hero .dsp-meta,
html[data-theme="light"] .dsp-hero .dsp-meta time, html[data-theme="light"] .dsp-crumbs a { color: #fff8ea; }
html[data-theme="light"] .dsp-hero .dsp-cat { --dsp-tint: #f3cf75; }
html[data-theme="light"] .post-body { color: #2a2115; }
html[data-theme="light"] .post-body-content h2, html[data-theme="light"] .post-body-content strong,
html[data-theme="light"] .post-body-content blockquote { color: #2a2115; }
html[data-theme="light"] .post-body-content h3 { color: #7d4f12; }
html[data-theme="light"] .post-body-content a, html[data-theme="light"] .post-body-content > p:first-of-type::first-letter { color: #7d4f12; }
html[data-theme="light"] .post-body-content code { background: #fffaee; color: #7d4f12; }
html[data-theme="light"] .post-body-content pre { background: #fffaee; }
html[data-theme="light"] .post-body-content pre code { color: #2a2115; }
html[data-theme="light"] .post-body-content th { color: #7d4f12; background: rgba(217, 172, 84, 0.12); }
html[data-theme="light"] .dsp-toc a[aria-current="true"] { color: #2a2115; border-left-color: #a87c2e; }
html[data-theme="light"] .dsp-share a, html[data-theme="light"] .dsp-share button {
    background: rgba(28, 19, 8, 0.55);
    color: #fff8ea;
    border-color: rgba(255, 240, 210, 0.4);
}
html[data-theme="light"] .dsp-progress { background: linear-gradient(90deg, #a87c2e, #7d4f12); box-shadow: none; }
