/* ========================================================================
   GENERIC QUARK2 HEADER ACTIONS + FOOTER
   Scope: only styles the custom additions in navigation.html.twig and
   footer.html.twig. All class names and variables are brand/domain agnostic.
   ======================================================================== */

/* ===== CUSTOM ADDITION START: shared design tokens ===== */
:root {
    --site-accent: #f2ad17;
    --site-accent-light: #ffd66b;
    --site-accent-dark: #d78f00;
    --site-accent-ink: #1b0b0e;

    --site-nav-secondary-bg: rgba(20, 11, 14, 0.06);
    --site-nav-secondary-border: rgba(35, 21, 25, 0.18);
    --site-nav-secondary-text: #2c1b20;

    --site-footer-bg: #13090c;
    --site-footer-border: rgba(255, 255, 255, 0.10);
    --site-footer-text: #cfc2c5;
    --site-footer-muted: #998a8e;
    --site-footer-strong: #ffffff;
}

html[data-theme="dark"] {
    --site-nav-secondary-bg: rgba(255, 255, 255, 0.07);
    --site-nav-secondary-border: rgba(255, 255, 255, 0.18);
    --site-nav-secondary-text: #f7f1f3;

    --site-footer-bg: #0d0709;
    --site-footer-border: rgba(255, 255, 255, 0.11);
    --site-footer-text: #d8cdd0;
    --site-footer-muted: #a8999d;
    --site-footer-strong: #ffffff;
}
/* ===== CUSTOM ADDITION END ===== */


/* ========================================================================
   HEADER - ONLY THE TWO APPENDED NAVIGATION ACTIONS
   ======================================================================== */

/* ===== CUSTOM ADDITION START: navigation action buttons ===== */
.navigation > .site-nav-action {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navigation > .site-nav-action--secondary {
    margin-left: 12px;
}

.navigation > .site-nav-action--primary {
    margin-left: 8px;
}

.navigation .site-nav-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.navigation .site-nav-button::before,
.navigation .site-nav-button::after {
    display: none !important;
    content: none !important;
}

.navigation .site-nav-button--secondary {
    color: var(--site-nav-secondary-text) !important;
    background: var(--site-nav-secondary-bg) !important;
    border-color: var(--site-nav-secondary-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navigation .site-nav-button--secondary:hover,
.navigation .site-nav-button--secondary:focus-visible {
    color: var(--site-nav-secondary-text) !important;
    background: rgba(242, 173, 23, 0.09) !important;
    border-color: rgba(242, 173, 23, 0.55) !important;
    transform: translateY(-1px);
}

.navigation .site-nav-button--primary {
    color: var(--site-accent-ink) !important;
    background: linear-gradient(135deg, var(--site-accent-light), var(--site-accent)) !important;
    border-color: rgba(215, 143, 0, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 8px 22px rgba(242, 169, 0, 0.25);
}

.navigation .site-nav-button--primary:hover,
.navigation .site-nav-button--primary:focus-visible {
    color: var(--site-accent-ink) !important;
    background: linear-gradient(135deg, #ffe18a, #f5b51f) !important;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 11px 28px rgba(242, 169, 0, 0.34);
}

.navigation .site-nav-button:focus-visible {
    outline: 3px solid rgba(242, 173, 23, 0.34);
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .navigation > .site-nav-action--secondary,
    .navigation > .site-nav-action--primary {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .navigation > .site-nav-action--primary {
        margin-top: 6px;
    }

    .navigation .site-nav-button {
        width: 100%;
        min-height: 44px;
        padding: 11px 16px;
    }
}
/* ===== CUSTOM ADDITION END ===== */


/* ========================================================================
   FOOTER
   ======================================================================== */

/* ===== CUSTOM ADDITION START: footer shell ===== */
#footer {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
    padding: 52px 0 26px;
    color: var(--site-footer-text);
    background:
        radial-gradient(circle at 10% -20%, rgba(242, 173, 23, 0.12), transparent 32%),
        radial-gradient(circle at 92% 110%, rgba(201, 21, 44, 0.10), transparent 28%),
        var(--site-footer-bg);
    border-top: 1px solid var(--site-footer-border);
}

#footer > .container {
    position: relative;
    z-index: 1;
}

#footer .site-footer__main {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
    gap: 44px;
    padding-bottom: 34px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--site-footer-border);
}

#footer .site-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 560px;
}

#footer .site-footer__brand-mark {
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--site-accent-ink);
    background: linear-gradient(145deg, #ffe397, var(--site-accent));
    border-radius: 15px;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 8px 22px rgba(242, 169, 0, 0.20);
}

#footer .site-footer__brand-copy {
    min-width: 0;
    padding-top: 2px;
}

#footer .site-footer__brand-name {
    display: block;
    margin: 0 0 7px;
    color: var(--site-footer-strong);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

#footer .site-footer__brand-copy p {
    margin: 0;
    color: var(--site-footer-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

#footer .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 10px 22px;
    padding-top: 5px;
}

#footer .site-footer__nav a {
    position: relative;
    color: var(--site-footer-text) !important;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color 0.18s ease, transform 0.18s ease;
}

#footer .site-footer__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 1px;
    background: var(--site-accent);
    transition: right 0.18s ease;
}

#footer .site-footer__nav a:hover,
#footer .site-footer__nav a:focus-visible {
    color: var(--site-accent-light) !important;
    transform: translateY(-1px);
}

#footer .site-footer__nav a:hover::after,
#footer .site-footer__nav a:focus-visible::after {
    right: 0;
}

#footer > .container > p:not(.site-footer__notice) {
    margin: 0;
    color: #857579;
    font-size: 0.76rem;
    line-height: 1.6;
}

#footer > .container > p:not(.site-footer__notice) a {
    color: #bcaeb2 !important;
    font-weight: 700;
    text-decoration: none;
}

#footer > .container > p:not(.site-footer__notice) a:hover {
    color: var(--site-accent-light) !important;
}

#footer .site-footer__notice {
    margin: 7px 0 0;
    color: #857579;
    font-size: 0.76rem;
    line-height: 1.65;
}

#footer .site-footer__notice strong {
    color: #e8c15d;
    font-weight: 850;
}

@media (max-width: 820px) {
    #footer {
        margin-top: 38px;
        padding: 42px 0 24px;
    }

    #footer .site-footer__main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    #footer .site-footer__nav {
        justify-content: flex-start;
        gap: 12px 20px;
    }
}

@media (max-width: 540px) {
    #footer {
        padding-top: 36px;
    }

    #footer .site-footer__brand {
        gap: 12px;
    }

    #footer .site-footer__brand-mark {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 0.82rem;
    }

    #footer .site-footer__brand-name {
        font-size: 0.98rem;
    }

    #footer .site-footer__brand-copy p {
        font-size: 0.82rem;
    }

    #footer .site-footer__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
    }
}
/* ===== CUSTOM ADDITION END ===== */
/* =========================================================
   PAGE CONTENT STYLES — Editorial Utility / Field Guide system
   Header, navigation and footer are intentionally untouched.
   ========================================================= */
/* Generic page-body styles for Quark2. No site navigation or footer rules are included. */
/*
 * XX3 page-body redesign for Quark2
 * Scope: page content only. Header/footer/theme structure is untouched.
 * Design language: indexed editorial manual / catalogue.
 * No brand/domain tokens are used in selectors.
 */

.site-body {
  --ink: #17202a;
  --ink-soft: #53606b;
  --paper: #fffdf7;
  --wash: #f4f0e6;
  --rule: #d8d2c4;
  --rule-strong: #9b9589;
  --signal: #d66a2c;
  --signal-dark: #9e431a;
  --navy: #233f63;
  --navy-soft: #e9eef4;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 84px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
}

.site-body *,
.site-body *::before,
.site-body *::after { box-sizing: border-box; }

.site-body h1,
.site-body h2,
.site-body h3 {
  margin-top: 0;
  color: var(--ink);
  font-weight: 780;
}

.site-body h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.6vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.site-body h2 {
  margin-bottom: 13px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -.018em;
}

.site-body h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.site-body p { margin: 0 0 16px; }
.site-body a { text-underline-offset: 3px; }
.narrow-body { width: min(960px, calc(100% - 40px)); }

/* ---------- opening composition ---------- */
.lead-panel {
  position: relative;
  display: block;
  min-height: 0;
  padding: 42px 44px 38px;
  border: 1px solid var(--rule-strong);
  border-top: 10px solid var(--navy);
  background:
    linear-gradient(90deg, rgba(35,63,99,.045) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(35,63,99,.045) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--paper);
}

.lead-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 132px;
  height: 8px;
  background: var(--signal);
}

/* Image on the LEFT, text on the RIGHT. */
.lead-panel--split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas: "art copy";
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
}

.lead-panel--split .lead-art { grid-area: art; }
.lead-panel--split .lead-copy { grid-area: copy; }

.lead-panel--warm {
  border-top-color: var(--signal);
  background:
    linear-gradient(90deg, rgba(214,106,44,.045) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(214,106,44,.045) 1px, transparent 1px) 0 0 / 54px 54px,
    #fffaf1;
}

.lead-panel--plain {
  padding-left: 0;
  padding-right: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
}

.lead-panel--plain::after { width: 72px; }

.lead-panel--editorial {
  padding: 56px 48px 50px;
  border: 0;
  border-left: 14px solid var(--signal);
  background: var(--navy);
}

.lead-panel--editorial::after {
  right: 38px;
  bottom: 28px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  transform: rotate(45deg);
}

.lead-panel--editorial h1,
.lead-panel--editorial .lead-text { color: #fff; }
.lead-panel--editorial .eyebrow { color: #f3c4a9; border-color: rgba(255,255,255,.35); }

.lead-copy { min-width: 0; max-width: 830px; }
.lead-text,
.article-lead { max-width: 720px; color: var(--ink-soft); font-size: 1.04rem; }

.eyebrow {
  display: inline-block;
  margin: 0 0 17px !important;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--signal-dark);
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lead-art {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 11px;
}

.brand-mark {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  box-shadow: -12px 12px 0 var(--navy-soft);
}

.art-caption {
  width: 240px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead-actions,
.tile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 15px;
  margin-top: 24px;
}

.primary-link,
.small-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink) !important;
  font-weight: 850;
  text-decoration: none !important;
  box-shadow: 5px 5px 0 var(--signal);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.primary-link:hover,
.small-link:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--signal);
  background: var(--ink);
  color: #fff !important;
}

.small-link {
  min-height: 36px;
  padding: 7px 11px;
  font-size: .79rem;
  box-shadow: 3px 3px 0 var(--signal);
}

.detail-link {
  color: var(--navy) !important;
  font-weight: 850;
  text-decoration-thickness: 1px;
}
.detail-link:hover { color: var(--signal-dark) !important; }

/* ---------- utility strip ---------- */
.intro-strip {
  position: relative;
  margin: 24px 0 0;
  padding: 17px 20px 17px 58px;
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
}

.intro-strip::before {
  content: "i";
  position: absolute;
  left: 8px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: Georgia, serif;
  font-weight: 700;
  font-style: italic;
}
.intro-strip p { margin: 0; max-width: 900px; }

/* ---------- section title as a horizontal index ---------- */
.section-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  grid-template-areas:
    "label title"
    ". desc";
  column-gap: 34px;
  row-gap: 4px;
  max-width: 1040px;
  margin: 62px 0 26px;
  padding: 22px 0 0;
  border-top: 3px solid var(--ink);
}

.section-head > .eyebrow { grid-area: label; margin-top: 5px !important; }
.section-head > h2 { grid-area: title; }
.section-head > p:not(.eyebrow) { grid-area: desc; max-width: 760px; color: var(--ink-soft); }

/* ---------- reading chapters: label rail + text column ---------- */
.content-block {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  column-gap: 34px;
  max-width: 980px;
  margin: 58px 0 0;
  padding: 0 0 0 0;
  border: 0;
}

.content-block > .eyebrow {
  grid-column: 1;
  grid-row: 1 / span 30;
  align-self: start;
  margin: 5px 0 0 !important;
  padding: 0 12px 10px 0;
  border: 0;
  border-right: 3px solid var(--signal);
  text-align: right;
  line-height: 1.45;
}

.content-block > :not(.eyebrow) { grid-column: 2; }
.content-block > p,
.content-block > ul,
.content-block > ol { max-width: 760px; }

.note-block {
  max-width: 980px;
  padding: 28px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
}

.note-block > .eyebrow { border-right-color: var(--navy); }

/* ---------- game catalogue: full-width alternating rows ---------- */
.game-grid,
.rank-grid,
.mini-grid {
  display: block;
  margin-top: 24px;
  border-top: 1px solid var(--rule-strong);
}

.game-tile,
.rank-card,
.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 72px;
  gap: 24px;
  align-items: center;
  min-height: 182px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.game-tile:nth-child(even),
.rank-card:nth-child(even),
.mini-card:nth-child(even) {
  grid-template-columns: 72px minmax(0, 1fr) 150px;
}

.game-tile:nth-child(even) .game-tile-media,
.rank-card:nth-child(even) > img,
.mini-card:nth-child(even) > img {
  grid-column: 3;
  grid-row: 1;
}

.game-tile:nth-child(even) .game-tile-copy,
.rank-card:nth-child(even) > div,
.mini-card:nth-child(even) > div {
  grid-column: 2;
  grid-row: 1;
}

.game-tile::after,
.rank-card::after,
.mini-card::after {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  padding-top: 4px;
  color: var(--rule-strong);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.game-grid,
.mini-grid { counter-reset: item; }
.game-tile:nth-child(even)::after,
.mini-card:nth-child(even)::after { grid-column: 1; justify-self: start; }

.game-tile-media {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--wash);
}

.game-tile-media img,
.rank-card img,
.mini-card img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
}

.game-tile-copy,
.rank-card > div,
.mini-card > div { min-width: 0; max-width: 650px; }

.game-tile-copy p,
.rank-card p,
.mini-card p { color: var(--ink-soft); font-size: .93rem; }

/* rank cards already include their own number; use that as a hanging tab */
.rank-grid { counter-reset: none; }
.rank-card::after { content: ""; }
.rank-no {
  position: static;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  min-width: 48px;
  padding: 7px 8px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-size: .73rem;
  font-weight: 900;
  text-align: center;
}
.rank-card:nth-child(even) .rank-no { grid-column: 1; justify-self: start; }

/* ---------- guide index: numbered editorial entries ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  margin-top: 34px;
  border-top: 3px solid var(--ink);
}

.story-card {
  position: relative;
  min-height: 0;
  padding: 28px 0 30px 72px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.story-card > span {
  position: absolute;
  left: 0;
  top: 28px;
  margin: 0;
  color: var(--signal);
  font-size: 2rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -.05em;
}

.story-card p { color: var(--ink-soft); }

.principle-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
  margin-top: 26px;
}

.principle-grid article,
.support-grid article {
  padding: 20px 0 22px;
  border: 0;
  border-top: 4px solid var(--navy);
  border-radius: 0;
  background: transparent;
}

.principle-grid article:nth-child(even),
.support-grid article:nth-child(even) { border-top-color: var(--signal); }

.principle-grid p,
.support-grid p { color: var(--ink-soft); }
.support-grid span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--signal-dark);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.archive-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--rule-strong);
}

.archive-list a {
  position: relative;
  padding: 14px 44px 14px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--navy) !important;
  font-weight: 820;
  text-decoration: none !important;
}
.archive-list a::after { content: "→"; position: absolute; right: 2px; }
.archive-list a:hover { color: var(--signal-dark) !important; }

/* ---------- numbered process ---------- */
.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--rule-strong);
}

.step-list li {
  position: relative;
  min-height: 66px;
  margin: 0;
  padding: 17px 14px 17px 70px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border-right: 3px solid var(--signal);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 900;
}

.check-list { padding-left: 1.2rem; }
.check-list li { margin: 9px 0; padding-left: 5px; }
.check-list li::marker { color: var(--signal); }

.risk-note {
  max-width: 920px;
  margin: 60px 0 0;
  padding: 24px 26px 24px 34px;
  border: 0;
  border-top: 1px solid #c69d8c;
  border-bottom: 1px solid #c69d8c;
  border-left: 8px solid #9e4f35;
  border-radius: 0;
  background: #fff8f4;
}

/* ---------- policies ---------- */
.policy-panel {
  position: relative;
  max-width: 900px;
  padding: 40px 0 34px 150px;
  border: 0;
  border-top: 10px solid var(--navy);
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
}

.policy-panel::before {
  content: "POLICY";
  position: absolute;
  left: 0;
  top: 48px;
  width: 112px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--signal);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.policy-panel h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
}
.policy-panel p:last-child { max-width: 720px; }

/* ---------- long-form articles ---------- */
.article-body { width: min(1080px, calc(100% - 40px)); }
.article-page { max-width: 1080px; margin: 0 auto; }

.article-head {
  position: relative;
  max-width: 920px;
  padding: 38px 0 34px 150px;
  border-top: 10px solid var(--navy);
  border-bottom: 1px solid var(--rule-strong);
  text-align: left;
}

.article-head::before {
  content: "FIELD NOTE";
  position: absolute;
  left: 0;
  top: 46px;
  width: 112px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--signal);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.article-head h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.3vw, 3.45rem);
}

.article-visual {
  margin: 32px 0 8px 150px;
  text-align: left;
}

.article-cover {
  display: block;
  width: min(520px, 100%);
  max-width: 520px;
  height: auto;
  margin: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  object-fit: contain;
  box-shadow: 14px 14px 0 var(--navy-soft);
}

.article-page .content-block { max-width: 900px; }

.article-end {
  max-width: 900px;
  margin: 62px 0 0;
  padding: 30px 30px 30px 150px;
  border: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--wash);
}

.article-end p:last-child { margin-bottom: 0; }

/* ---------- dark mode ---------- */
@media (prefers-color-scheme: dark) {
  .site-body {
    --ink: #edf1f4;
    --ink-soft: #b8c0c7;
    --paper: #171c21;
    --wash: #20262c;
    --rule: #39424a;
    --rule-strong: #626d76;
    --signal: #e98a50;
    --signal-dark: #ffae7b;
    --navy: #91afd0;
    --navy-soft: #273646;
  }
  .lead-panel--editorial { background: #223a58; }
  .lead-panel--editorial h1,
  .lead-panel--editorial .lead-text { color: #fff; }
  .lead-panel--warm { background: #211d18; }
  .risk-note { background: #2c211d; }
}

html[data-theme="dark"] .site-body,
body.dark .site-body {
  --ink: #edf1f4;
  --ink-soft: #b8c0c7;
  --paper: #171c21;
  --wash: #20262c;
  --rule: #39424a;
  --rule-strong: #626d76;
  --signal: #e98a50;
  --signal-dark: #ffae7b;
  --navy: #91afd0;
  --navy-soft: #273646;
}

html[data-theme="dark"] .lead-panel--editorial,
body.dark .lead-panel--editorial { background: #223a58; }
html[data-theme="dark"] .lead-panel--warm,
body.dark .lead-panel--warm { background: #211d18; }
html[data-theme="dark"] .risk-note,
body.dark .risk-note { background: #2c211d; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lead-panel--split {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
  }

  .site-body h1 { font-size: clamp(2.2rem, 6vw, 3.15rem); }
  .story-grid { gap: 0 28px; }
  .content-block { grid-template-columns: 100px minmax(0, 1fr); gap: 26px; }
  .article-head,
  .policy-panel { padding-left: 120px; }
  .article-head::before { width: 88px; }
  .article-visual { margin-left: 120px; }
  .article-end { padding-left: 120px; }
}

@media (max-width: 720px) {
  .site-body,
  .narrow-body,
  .article-body {
    width: min(100% - 22px, 1180px);
    padding-top: 20px;
  }

  .site-body h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.04;
    letter-spacing: -.025em;
  }

  .lead-panel { padding: 28px 20px 30px; }
  .lead-panel--split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "art"
      "copy";
    gap: 30px;
  }
  .lead-panel--plain { padding-left: 0; padding-right: 0; }
  .lead-panel--editorial { padding: 36px 22px 34px; }

  /* Preserve the original intended display sizes for logo and game artwork. */
  .brand-mark { width: 240px; height: 240px; }
  .art-caption { width: 240px; }
  .game-tile-media,
  .game-tile-media img,
  .rank-card img,
  .mini-card img { width: 150px; height: 150px; }

  .section-head {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "title" "desc";
    gap: 4px;
  }

  .content-block {
    display: block;
    max-width: 100%;
  }
  .content-block > .eyebrow {
    display: inline-block;
    margin: 0 0 14px !important;
    padding: 0 0 6px;
    border-right: 0;
    border-bottom: 3px solid var(--signal);
    text-align: left;
  }

  .game-tile,
  .rank-card,
  .mini-card,
  .game-tile:nth-child(even),
  .rank-card:nth-child(even),
  .mini-card:nth-child(even) {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 16px;
    align-items: start;
    padding: 18px 0;
  }

  .game-tile:nth-child(even) .game-tile-media,
  .rank-card:nth-child(even) > img,
  .mini-card:nth-child(even) > img,
  .game-tile:nth-child(even) .game-tile-copy,
  .rank-card:nth-child(even) > div,
  .mini-card:nth-child(even) > div {
    grid-column: auto;
    grid-row: auto;
  }

  .game-tile::after,
  .mini-card::after,
  .game-tile:nth-child(even)::after,
  .mini-card:nth-child(even)::after {
    display: none;
  }

  .rank-no,
  .rank-card:nth-child(even) .rank-no {
    position: absolute;
    right: 0;
    top: 18px;
    grid-column: auto;
  }

  .story-grid,
  .principle-grid,
  .support-grid { grid-template-columns: 1fr; }

  .article-head,
  .policy-panel {
    padding: 30px 0 28px;
  }
  .article-head::before,
  .policy-panel::before { display: none; }
  .article-visual { margin: 28px 0 8px; }
  .article-cover { width: min(520px, 100%); }
  .article-end { padding: 26px 20px; }
}

@media (max-width: 430px) {
  .game-tile,
  .rank-card,
  .mini-card,
  .game-tile:nth-child(even),
  .rank-card:nth-child(even),
  .mini-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .game-tile-copy,
  .rank-card > div,
  .mini-card > div { width: 100%; }

  .rank-no,
  .rank-card:nth-child(even) .rank-no {
    left: 166px;
    right: auto;
    top: 18px;
  }
}
