/* CGN Diablo IV guide: gothic stone, black iron, aged parchment, restrained brass, blood-red accents. */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/cinzel-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b0908;
  --bg-2: #110d0b;
  --stone: #17120f;
  --stone-2: #1e1814;
  --iron: #2a211c;
  --line: #372b23;
  --line-soft: #2a211b;
  --ink: #ddd1ba;
  --ink-strong: #f3e9d4;
  --ink-dim: #ab9d84;
  --brass: #b58f45;
  --brass-hi: #dcb865;
  --brass-dim: #7c6230;
  --blood: #a5241b;
  --blood-hi: #d84a38;
  --blood-deep: #4a120e;
  --ember: #e0703c;
  --frost: #8ea4b8;
  --frost-dim: #5b6f80;
  --ok: #86b58a;
  --shell: 1180px;
  --serif: "Cinzel", "Trajan Pro", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --stone-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg) var(--stone-noise); color: var(--ink); font: 400 17px/1.66 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0cf85; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: #6a2018; color: #fff3df; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink-strong); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: .015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 600; }
h3 { font-size: 1.17rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .25em 0; }
strong { color: var(--ink-strong); font-weight: 600; }
code { font: 500 .92em/1.4 ui-monospace, Consolas, "Cascadia Mono", monospace; background: #1b1512; border: 1px solid var(--line-soft); padding: .05em .35em; border-radius: 3px; color: #ecd9b0; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass-hi); color: #150e08; padding: 10px 16px; font-weight: 700; border-radius: 0 0 4px 4px; text-decoration: none; }
.skip:focus { top: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(#0d0a09, #0a0807); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 #000, 0 10px 24px -14px #000; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-dim) 20%, var(--brass) 50%, var(--brass-dim) 80%, transparent); opacity: .55; }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-strong); flex: none; }
.brand .sigil { width: 38px; height: 38px; flex: none; }
.brand strong { display: block; font: 700 1.14rem/1.05 var(--serif); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-strong); }
.brand small { display: block; font: 600 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav-more > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: var(--ink); text-decoration: none; font: 600 .86rem/1 var(--serif); letter-spacing: .05em; text-transform: uppercase; border-radius: 2px; cursor: pointer; white-space: nowrap; }
.nav > a:hover, .nav-more > summary:hover { color: var(--brass-hi); background: #17110e; }
.nav > a[aria-current="page"], .nav-more.has-current > summary { color: var(--brass-hi); box-shadow: inset 0 -2px 0 var(--blood); }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; gap: 6px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-more[open] > summary { color: var(--brass-hi); background: #17110e; }
.more-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 250px; background: #100c0a; border: 1px solid var(--line); border-top: 2px solid var(--blood); padding: 8px; box-shadow: 0 18px 40px -10px #000; display: grid; }
.more-panel a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font: 500 .98rem/1.25 var(--sans); border-radius: 2px; }
.more-panel a:hover, .more-panel a[aria-current="page"] { background: #1a1310; color: var(--brass-hi); }
.more-panel a small { display: block; color: var(--ink-dim); font-size: .82rem; margin-top: 2px; }
.search-btn { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 1px solid transparent; color: var(--ink); border-radius: 3px; cursor: pointer; }
.search-btn:hover { color: var(--brass-hi); background: #17110e; border-color: var(--line); }
.search-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; background: #17110e; border: 1px solid var(--line); color: var(--ink-strong); font: 600 .86rem/1 var(--serif); letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; cursor: pointer; }
.search-panel { border-top: 1px solid var(--line); background: #0d0a08; padding: 14px 0 16px; }
.search-panel[hidden] { display: none; }
.search-field { display: flex; gap: 10px; align-items: center; }
.search-field input { flex: 1; min-height: 48px; padding: 0 14px; background: #150f0c; border: 1px solid var(--iron); color: var(--ink-strong); font: 400 1.05rem var(--sans); border-radius: 3px; }
.search-field input::placeholder { color: #8d7f69; }
.search-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.search-results a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); border-left: 2px solid transparent; border-radius: 2px; }
.search-results a:hover, .search-results a:focus-visible { background: #17110e; border-left-color: var(--blood); }
.search-results strong { display: block; font: 600 1rem/1.3 var(--serif); color: var(--brass-hi); }
.search-results span { color: var(--ink-dim); font-size: .92rem; }
.search-note { color: var(--ink-dim); font-size: .95rem; margin: 10px 0 0; }

/* ---------- home hero ---------- */
.hero { position: relative; padding-top: 22px; }
.hero-art { position: relative; margin: 0; background: #0c0a09; border: 1px solid var(--brass-dim); box-shadow: 0 0 0 5px #0b0908, 0 0 0 6px var(--line), 0 30px 60px -30px #000; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.hero-art::before, .hero-art::after, .head-art::before, .head-art::after, .head-band::before, .head-band::after { content: ""; position: absolute; width: 22px; height: 22px; z-index: 2; pointer-events: none; border: 2px solid var(--brass); }
.hero-art::before, .head-art::before, .head-band::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.hero-art::after, .head-art::after, .head-band::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.hero-plate { position: relative; z-index: 3; width: min(100% - 40px, 900px); margin: -46px auto 0; padding: 26px 34px 28px; background: linear-gradient(#17110e, #120d0b); border: 1px solid var(--line); border-top: 2px solid var(--blood); box-shadow: 0 24px 50px -24px #000; text-align: center; }
.hero-plate h1 { margin-bottom: .35em; }
.hero-plate .lede { margin-inline: auto; }
.hero-plate .actions { justify-content: center; }
.eyebrow { font: 600 .8rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ember); margin: 0 0 10px; }
.lede { font-size: 1.14rem; line-height: 1.6; color: var(--ink); max-width: 46em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: #1a130f; border: 1px solid var(--iron); color: var(--ink-strong); text-decoration: none; font: 600 .9rem/1 var(--serif); letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: #241a14; border-color: var(--brass-dim); color: var(--brass-hi); }
.btn.primary { background: linear-gradient(#8f2018, #6e1712); border-color: #b13a2c; color: #fff1dc; }
.btn.primary:hover { background: linear-gradient(#a8261c, #80190f); color: #fff; border-color: #d0533f; }

/* ---------- page head ---------- */
.page-head { padding: 36px 0 26px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 260px at 18% 0, rgba(120, 30, 20, .16), transparent 70%); }
.page-head .head-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.page-head.has-art .head-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.head-art { position: relative; margin: 0; border: 1px solid var(--brass-dim); background: #0c0a09; box-shadow: 0 0 0 4px #0b0908, 0 0 0 5px var(--line), 0 24px 50px -28px #000; }
.head-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--pos, 50% 50%); }
.head-band { position: relative; margin: 26px 0 0; border: 1px solid var(--brass-dim); background: #0c0a09; box-shadow: 0 0 0 4px #0b0908, 0 0 0 5px var(--line), 0 24px 50px -28px #000; }
.head-band img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 3.2); object-fit: cover; object-position: 50% 50%; }
.section > .shell > .head-band { margin: 0 0 30px; }
.crumbs { font-size: .9rem; color: var(--ink-dim); margin: 0 0 12px; }
.crumbs a { color: var(--ink-dim); }
.crumbs a:hover { color: var(--brass-hi); }
.page-head .lede { margin-bottom: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; align-items: center; }
.checked { color: var(--ink-dim); font-size: .95rem; margin: 0; }
.checked strong { color: var(--ink); font-weight: 600; }


/* faint sigil beside the heading on pages that have no illustration */
.page-head:not(.has-art):not(.has-band) .head-grid { position: relative; }
.page-head:not(.has-art):not(.has-band) .head-grid::after { content: ""; position: absolute; right: 0; top: 50%; width: 210px; height: 210px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='none' stroke='%23b58f45' stroke-width='.8'/%3E%3Ccircle cx='24' cy='24' r='17.5' fill='none' stroke='%237c6230' stroke-width='.5'/%3E%3Cpath d='M9.5 17.5c1.6 6.6 6.4 10 14.5 10s12.9-3.4 14.5-10c-3.8 3.6-8.6 5-14.5 5s-10.7-1.4-14.5-5z' fill='none' stroke='%23a5241b' stroke-width='.8'/%3E%3Cpath d='M24 9.5 33 24l-9 14.5L15 24z' fill='none' stroke='%23dcb865' stroke-width='.8' stroke-linejoin='round'/%3E%3Cpath d='M24 16v16M19.5 24h9' stroke='%23b58f45' stroke-width='.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; opacity: .5; pointer-events: none; }
@media (max-width: 1100px) { .page-head:not(.has-art):not(.has-band) .head-grid::after { display: none; } }

/* ---------- sections ---------- */
main > section, .section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-dim); max-width: 46em; }
h2.ruled { position: relative; padding-bottom: 12px; margin-bottom: 18px; }
h2.ruled::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 2px; background: linear-gradient(90deg, var(--blood), var(--brass)); }
.narrow { max-width: 46em; }
.prose p, .prose li { max-width: 46em; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.aside-box { border-left: 2px solid var(--brass-dim); padding: 4px 0 4px 18px; }
.aside-box h3 { margin-bottom: .4em; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--brass-dim); margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.divider i { width: 9px; height: 9px; border: 1.5px solid var(--brass-dim); transform: rotate(45deg); }

/* ---------- state strip ---------- */
.state-strip { border-block: 1px solid var(--line); background: #100c0a; }
.state-strip dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.state-strip dl > div { padding: 16px 20px; border-left: 1px solid var(--line-soft); }
.state-strip dl > div:first-child { border-left: 0; padding-left: 0; }
.state-strip dt { font: 600 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.state-strip dd { margin: 0; font: 600 1.06rem/1.35 var(--serif); color: var(--ink-strong); }
.state-strip dd span { display: block; margin-top: 3px; font: 400 .92rem/1.4 var(--sans); color: var(--ink-dim); }
.state-note { margin: 0; padding: 10px 0 14px; color: var(--ink-dim); font-size: .95rem; }

/* ---------- destination index ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dest { display: block; padding: 22px 24px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent); position: relative; transition: background .15s; }
.dest:hover { background: #1a130f; }
.dest:hover h3 { color: var(--brass-hi); }
.dest .num { position: absolute; right: 18px; top: 14px; font: 700 .8rem/1 var(--serif); letter-spacing: .1em; color: var(--brass-dim); }
.dest h3 { margin: 0 0 .35em; font-size: 1.25rem; transition: color .15s; }
.dest p { margin: 0; color: var(--ink-dim); font-size: 1rem; }
.dest .go { display: inline-block; margin-top: 12px; font: 600 .8rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--blood-hi); }

/* ---------- chips, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font: 600 .78rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line); background: #15100d; color: var(--ink); border-radius: 2px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; flex: none; background: currentColor; }
.chip.base { color: #b6c4b0; border-color: #3c4a38; }
.chip.base::before { border-radius: 50%; }
.chip.voh { color: #7fbfae; border-color: #2f5148; }
.chip.voh::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chip.loh { color: #e2b25c; border-color: #6a5027; }
.chip.loh::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.chip.s15 { color: #f08560; border-color: #6e2a1c; background: #1c100c; }
.chip.s15::before { clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.chip.perm { color: #b9c9d8; border-color: #3d4d5c; }
.chip.perm::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); border-radius: 1px; }
.chip.future { color: #c9a6e0; border-color: #54405f; border-style: dashed; }
.chip.future::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.chip.class { color: var(--ink); }
.chip.class::before { display: none; }
.chip.ok { color: var(--ok); border-color: #365a3a; }
.chip.ok::before { border-radius: 50%; }
.chip.review { color: #e6b95a; border-color: #6a5027; }
.chip.review::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 50%); }
.chip.old { color: #d6706a; border-color: #6a2b27; }
.chip.old::before { clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.ev { display: inline-block; padding: 1px 7px; margin-right: 6px; font: 700 .76rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-dim); background: #120d0b; border-radius: 2px; vertical-align: 1px; }
.ev.o { color: #e2b25c; border-color: #5b4520; }
.ev.p { color: #e08a6a; border-color: #5e2a1e; }
.ev.t { color: #8fc0d8; border-color: #2f4b5a; }
.ev.m { color: #b7a5d6; border-color: #453a5f; }
.ev.c { color: #b6c4b0; border-color: #3c4a38; }

/* ---------- callouts ---------- */
.callout { position: relative; margin: 1.4em 0; padding: 16px 20px 16px 22px; background: #130f0c; border: 1px solid var(--line); border-left: 3px solid var(--frost-dim); }
.callout > :last-child { margin-bottom: 0; }
.callout h3, .callout h4 { margin: 0 0 .3em; font-size: 1.02rem; }
.callout.warn { border-left-color: var(--blood); background: #170e0c; }
.callout.future { border-left-color: #8a6bb0; border-style: dashed; border-left-style: solid; background: #130f14; }
.callout.season { border-left-color: var(--ember); background: #171009; }
.callout.tip { border-left-color: var(--brass); }
.callout .label { display: block; font: 700 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.callout.warn .label { color: var(--blood-hi); }
.callout.season .label { color: var(--ember); }
.callout.tip .label { color: var(--brass-hi); }
.callout.future .label { color: #c9a6e0; }

/* ---------- lists & steps ---------- */
.plain-list { list-style: none; padding: 0; }
.plain-list > li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.plain-list > li:last-child { border-bottom: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 26px; margin: .5em 0; }
.checklist li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 9px; height: 9px; border: 1.5px solid var(--brass); transform: rotate(45deg); }
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 56px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; display: grid; place-items: center; font: 700 1.05rem/1 var(--serif); color: var(--brass-hi); border: 1px solid var(--brass-dim); background: #17110e; }
.steps > li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 4px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin-bottom: .5em; max-width: 46em; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #100c0a; margin: 1.2em 0; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 620px; }
table.data caption { text-align: left; padding: 12px 16px 0; color: var(--ink-dim); font-size: .92rem; caption-side: bottom; padding-bottom: 12px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
table.data thead th { font: 700 .76rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); background: #150f0c; border-bottom: 1px solid var(--line); position: sticky; top: 0; white-space: nowrap; }
table.data tbody th { font-weight: 600; color: var(--ink-strong); }
table.data tbody tr:hover { background: #150f0c; }
table.data tr:last-child > * { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: center; white-space: nowrap; }

/* ---------- filters ---------- */
.filters { display: grid; gap: 12px; padding: 16px 18px; background: #110d0b; border: 1px solid var(--line); margin-bottom: 22px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row > .lab { flex: none; min-width: 84px; font: 700 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.fbtn { min-height: 40px; padding: 0 14px; background: #17110e; border: 1px solid var(--iron); color: var(--ink); font: 600 .9rem/1 var(--sans); border-radius: 2px; cursor: pointer; }
.fbtn:hover { border-color: var(--brass-dim); color: var(--brass-hi); }
.fbtn[aria-pressed="true"] { background: #3a1611; border-color: var(--blood); color: #ffe7c9; box-shadow: inset 0 -2px 0 var(--blood-hi); }
.filter-count { margin: 0; color: var(--ink-dim); font-size: .95rem; }
.no-js-note { color: var(--ink-dim); font-size: .95rem; }
.js .no-js-note { display: none; }
[hidden] { display: none !important; }

/* ---------- build cards ---------- */
.build-list { display: grid; gap: 18px; }
.build { background: linear-gradient(#161110, #120e0c); border: 1px solid var(--line); border-left: 3px solid var(--blood); }
.build-head { padding: 18px 22px 8px; }
.build-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.build-title h3 { margin: 0; font-size: 1.32rem; }
.build-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.build-body { padding: 0 22px 8px; }
.build-body .summary { max-width: 52em; margin-bottom: .7em; }
.tier-mini { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 12px; padding: 0; list-style: none; }
.tier-mini li { margin: 0; font-size: .95rem; color: var(--ink-dim); }
.tier-mini b { display: inline-block; min-width: 2.2em; text-align: center; margin-left: 4px; padding: 0 5px; font: 700 .86rem/1.5 var(--serif); color: var(--ink-strong); border: 1px solid var(--iron); background: #1a130f; }
.tier-mini b.t-sp { border-color: #b58f45; color: #f3d48a; }
.tier-mini b.t-s { border-color: #8a6a2f; color: #e8c574; }
.tier-mini b.t-a { border-color: #55603f; color: #bcd0a0; }
.tier-mini b.t-b { border-color: #3d5063; color: #a9c1d6; }
.tier-mini b.t-c, .tier-mini b.t-d { border-color: #4a3b35; color: #a99a8c; }
.tier-mini b.t-na { color: #7d705d; border-style: dashed; }
.build details { border-top: 1px solid var(--line-soft); padding: 0 22px; }
.build details > summary { padding: 12px 0; }
.build details[open] { padding-bottom: 14px; }
.build-foot { padding: 12px 22px 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; border-top: 1px solid var(--line-soft); background: #0f0b09; font-size: .95rem; color: var(--ink-dim); }
.build-foot a { font-weight: 600; }
details.fold > summary, .build details > summary, details.acc > summary { flex-wrap: wrap; row-gap: 6px; list-style: none; cursor: pointer; font: 600 .96rem/1.3 var(--serif); letter-spacing: .04em; color: var(--ink-strong); display: flex; align-items: center; gap: 10px; }
details.fold > summary::-webkit-details-marker, .build details > summary::-webkit-details-marker, details.acc > summary::-webkit-details-marker { display: none; }
details.fold > summary::before, .build details > summary::before, details.acc > summary::before { content: ""; width: 8px; height: 8px; flex: none; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg); transition: transform .15s; }
details[open] > summary::before { transform: rotate(45deg); }
details.acc { border: 1px solid var(--line); background: #120e0c; margin: 10px 0; }
details.acc > summary { padding: 14px 18px; min-height: 48px; }
details.acc > :not(summary) { padding: 0 18px; }
details.acc[open] { padding-bottom: 6px; }
details.fold { margin: 12px 0; }
details.fold > summary { padding: 8px 0; }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 18px; margin: 0 0 1em; }
.kv dt { font: 700 .76rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); padding-top: 3px; }
.kv dd { margin: 0; }
.kv dd ul { margin: 0; }
.aside-box .kv { grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; }
.aside-box .chip { white-space: normal; }

/* ---------- tier snapshot ---------- */
.tier-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tier-tabs .fbtn { border-bottom: 0; border-radius: 3px 3px 0 0; min-height: 44px; }
.tier-panel[hidden] { display: none; }
.tier-cell { display: inline-block; min-width: 2.4em; text-align: center; padding: 1px 6px; font: 700 .9rem/1.5 var(--serif); color: var(--ink-strong); border: 1px solid var(--iron); background: #1a130f; }
.tier-cell.t-sp { border-color: #b58f45; color: #f3d48a; }
.tier-cell.t-s { border-color: #8a6a2f; color: #e8c574; }
.tier-cell.t-a { border-color: #55603f; color: #bcd0a0; }
.tier-cell.t-b { border-color: #3d5063; color: #a9c1d6; }
.tier-cell.t-c, .tier-cell.t-d { border-color: #4a3b35; color: #a99a8c; }
.tier-cell.t-na { color: #7d705d; border-style: dashed; font-weight: 500; }
.agree { font-size: .9rem; color: var(--ink-dim); }
.agree.split { color: #e6b95a; }
.tier-why { margin: 0; padding: 0; list-style: none; font-size: .95rem; color: var(--ink-dim); }
.tier-why li { margin: 0; }

/* ---------- timeline / updates ---------- */
.timeline { list-style: none; padding: 0 0 0 26px; margin: 0; border-left: 1px solid var(--line); }
.timeline > li { position: relative; margin: 0; padding: 0 0 30px 6px; }
.timeline > li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 11px; height: 11px; background: var(--bg); border: 2px solid var(--brass-dim); transform: rotate(45deg); }
.timeline > li.now::before { background: var(--blood); border-color: var(--blood-hi); }
.timeline > li.next::before { border-style: dashed; border-color: var(--frost); }
.timeline time { display: block; font: 700 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.timeline h3 { margin: 0 0 .35em; font-size: 1.22rem; }
.timeline p { max-width: 46em; }
.timeline ul { max-width: 46em; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.news-list time { display: inline-block; margin-right: 10px; font: 700 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.news-list a { font-weight: 600; }
.news-list p { margin: 4px 0 0; color: var(--ink-dim); max-width: 46em; font-size: .98rem; }
.feed-status { color: var(--ink-dim); font-size: .95rem; margin: 12px 0 0; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.recent-list time { font: 700 .78rem/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.recent-list span { display: block; color: var(--ink-dim); font-size: .95rem; }

/* ---------- classes ---------- */
.class-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.class-card { display: block; padding: 18px 18px 20px; text-decoration: none; color: var(--ink); background: #14100d; border: 1px solid var(--line); border-top: 2px solid var(--iron); transition: border-color .15s, background .15s; }
.class-card:hover { background: #1a130f; border-top-color: var(--blood); }
.class-card h3 { margin: 6px 0 .3em; font-size: 1.15rem; }
.class-card p { margin: 0 0 8px; color: var(--ink-dim); font-size: .96rem; }
.class-card .res { display: block; font: 600 .78rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.class-card.future { border-style: dashed; border-top-style: dashed; opacity: .92; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 1em; padding: 0; list-style: none; }
.spec-list li { margin: 0; padding: 12px 0 12px 16px; border-left: 2px solid var(--brass-dim); }
.spec-list h3 { margin: 0 0 .25em; font-size: 1.06rem; }
.spec-list p { margin: 0; font-size: .98rem; color: var(--ink-dim); }

/* ---------- misc ---------- */
.toc { margin: 0 0 26px; padding: 14px 18px; background: #110d0b; border: 1px solid var(--line); }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); color: var(--brass); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--brass-hi); }
.src-list { list-style: none; padding: 0; margin: 0; }
.src-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.src-list li span { color: var(--ink-dim); font-size: .95rem; display: block; }
.matrix td .yes, .matrix td .no { display: inline-block; font-weight: 700; }
.matrix td .yes { color: var(--ok); }
.matrix td .no { color: #a98d78; }
.ext::after { content: " \2197"; font-size: .85em; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.sr-note { color: var(--ink-dim); font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 48px; background: #080605; border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-dim) 20%, var(--blood) 50%, var(--brass-dim) 80%, transparent); opacity: .6; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 26px; }
.footer-grid h2 { font: 700 .76rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.footer-grid nav a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: .98rem; }
.footer-grid nav a:hover { color: var(--brass-hi); text-decoration: underline; }
.footer-name { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font: 700 1.05rem/1.2 var(--serif); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-strong); }
.footer-name .sigil { width: 32px; height: 32px; }
.footer-brand p { color: var(--ink-dim); font-size: .98rem; max-width: 34em; }
.footer-legal { display: grid; gap: 8px; padding: 18px 0 30px; border-top: 1px solid var(--line-soft); color: var(--ink-dim); font-size: .875rem; line-height: 1.55; }

/* ---------- scrollbar: black iron track, blood-and-brass thumb ---------- */
html { scrollbar-color: #7a2a1f #0d0a09; scrollbar-width: auto; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0d0a09; border-left: 1px solid #241b16; }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #6a251b, #8a3325); border: 2px solid #0d0a09; border-radius: 6px; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #8a3325, #b0442f); }
::-webkit-scrollbar-thumb:active { background: #c8583a; }
::-webkit-scrollbar-corner { background: #0d0a09; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .brand small { display: none; }
}
@media (max-width: 1100px) {
  .nav > a, .nav-more > summary { padding: 0 8px; font-size: .8rem; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .search-btn { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 20px 14px; background: #0c0908; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -10px #000; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav-more > summary { min-height: 48px; padding: 0 6px; font-size: .9rem; border-bottom: 1px solid var(--line-soft); }
  .nav-more { position: static; }
  .nav-more > summary { justify-content: space-between; }
  .more-panel { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--blood); margin: 4px 0 6px 6px; min-width: 0; background: transparent; padding: 0 0 0 8px; }
  .page-head.has-art .head-grid { grid-template-columns: minmax(0, 1fr); }
  .head-art { order: -1; }
  .sidebar { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-strip dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .state-strip dl > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .two-col, .three-col, .spec-list { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .toc ol { columns: 1; }
  .hero-plate { padding: 20px 18px 22px; margin-top: -30px; width: min(100% - 24px, 900px); text-align: left; }
  .hero-plate .actions { justify-content: flex-start; }
  .hero-art img { aspect-ratio: 1.8 / 1; }
  .head-band img { aspect-ratio: 2 / 1; }
  .filter-row > .lab { flex-basis: 100%; }
  .recent-list li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  /* wide tables become one block per row on phones, each cell labeled by its column */
  table.data.stack { min-width: 0; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; }
  table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack th, table.stack td { padding: 3px 0; border: 0; text-align: left; }
  table.stack td[data-label]::before, table.stack th[data-label]:not([scope="row"])::before { content: attr(data-label); display: block; margin-top: 6px; font: 700 .76rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
  table.stack tbody th[scope="row"] { font-size: 1.06rem; padding-bottom: 4px; }
  table.stack tbody th[scope="row"]::before { content: none; }
  table.stack td.num { display: inline-block; width: 32%; text-align: left; white-space: normal; vertical-align: top; padding-right: 4px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .class-grid, .dest-grid { grid-template-columns: minmax(0, 1fr); }
  .state-strip dl { grid-template-columns: minmax(0, 1fr); }
  .state-strip dl > div { border-left: 0; padding-left: 0; }
  .state-strip dl > div:nth-child(n+2) { border-top: 1px solid var(--line-soft); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .build-head, .build-body { padding-inline: 16px; }
  .build details { padding-inline: 16px; }
  .build-foot { padding-inline: 16px; }
  .brand small { display: none; }
  .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
