/* Mineral Road Discovery · V1 site styles
   Locked brand (Sept 2026): heritage palette, Archivo + Zilla Slab.
   Light theme only by decision. No gradients, no glow, no tech blue. */

/* Self-hosted fonts (SIL Open Font License). Latin subset. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/zilla-slab-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;

  /* Brand five */
  --ink: #1A1712;
  --cream: #EDE6D6;
  --rust: #B5502F;
  --ochre: #C8922E;
  --pine: #33402C;

  /* Working tokens */
  --bg: #EDE6D6;
  --surface: #F5F0E4;
  --surface-2: #E4DBC7;
  --text: #1A1712;
  --muted: #5B5241;
  --accent: #9C3F22;          /* rust darkened for AA text on cream */
  --hist: #7A5812;            /* ochre darkened for AA text on cream */
  --pine-text: #2C3726;
  --cream-soft: #D9CDB4;
  --border: rgba(26, 23, 18, .18);
  --border-strong: rgba(26, 23, 18, .42);

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --slab: "Zilla Slab", Georgia, serif;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--slab);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
@media (max-width: 420px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 12px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; color: var(--cream); }

.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: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; column-gap: 16px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 10px 4px; }
.brand:hover { color: var(--accent); }
.brand-mark { flex: none; color: var(--text); }
.wordmark { display: inline-flex; flex-direction: column; }
.wordmark svg { display: block; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--surface-2); color: var(--accent); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--rust); border-radius: 0; }
.site-nav a.nav-cta { background: var(--accent); color: #fff; font-weight: 700; margin-left: 8px; box-shadow: none; border-radius: var(--radius); }
.site-nav a.nav-cta:hover { background: var(--rust); color: #fff; }

@media (max-width: 640px) {
  .header-inner { min-height: 0; padding-top: 4px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: space-between; border-top: 1px solid var(--border); }
  .site-nav a { padding-inline: 8px; font-size: .92rem; }
  .site-nav a.nav-cta { margin: 6px 0 6px 4px; min-height: 40px; padding-inline: 12px; }
}

/* ---------- Shared section furniture ---------- */
.section { padding-block: 64px; }
.section.tint { background: var(--surface-2); }
.section.ink { background: var(--ink); color: var(--cream); }
@media (max-width: 640px) { .section { padding-block: 48px; } }

.eyebrow { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--accent); margin: 0 0 14px; }
.ink .eyebrow { color: var(--ochre); }
.section-title { font-weight: 900; font-size: clamp(1.8rem, 5vw, 2.75rem); letter-spacing: -.01em; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.ink .lead { color: var(--cream-soft); }
.prose { max-width: 64ch; }
.prose p { font-size: 1.12rem; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); font-family: var(--slab); font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--pine); color: var(--cream); }
.btn svg { flex: none; }

/* ---------- Figures ---------- */
figure { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); background: var(--surface-2); }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.ink .photo figcaption, .hero .photo figcaption, .page-hero .photo figcaption { color: #B7AC92; }

/* ---------- Home hero ---------- */
.hero { background: var(--ink); color: var(--cream); border-bottom: 3px solid var(--rust); padding-block: 56px 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding-block: 80px; } }
.hero h1 { font-weight: 900; font-size: clamp(2.3rem, 7.4vw, 4.1rem); letter-spacing: -.015em; line-height: 1.02; margin-bottom: 22px; }
.hero .hero-sub { font-size: 1.18rem; color: var(--cream-soft); max-width: 50ch; margin-bottom: 26px; }
.hero .hero-tag { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--ochre); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(237, 230, 214, .5); }
.btn-ghost:hover { border-color: var(--ochre); color: var(--ochre); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: var(--cream); border-bottom: 3px solid var(--rust); padding-block: 48px 56px; }
.page-hero h1 { font-weight: 900; font-size: clamp(2rem, 6.4vw, 3.4rem); letter-spacing: -.015em; margin-bottom: 14px; }
.page-hero .owned { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--ochre); margin: 0; }
.page-hero .lead { margin-top: 6px; color: var(--cream-soft); }
@media (min-width: 860px) { .page-hero .photo img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 45%; } }
.page-hero .photo { margin-top: 32px; }

/* ---------- Numbered facts (tungsten) ---------- */
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: fact; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { counter-increment: fact; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--pine); border-radius: var(--radius); padding: 24px 22px; }
.facts li::before { content: counter(fact); display: block; font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: var(--pine-text); margin-bottom: 10px; }
.facts h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.facts p { color: var(--muted); margin: 0; }

/* ---------- Feature (Bergslagen intro on home) ---------- */
.feature { display: grid; gap: 28px; align-items: start; }
.feature .btn { margin-top: 12px; }

/* ---------- Portfolio ---------- */
.group-label { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin: 36px 0 14px; }
.port { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 620px) { .port { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .port { grid-template-columns: repeat(3, 1fr); } }
.port li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.port li.lead-project { border-left: 5px solid var(--rust); }
.port .loc { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; color: var(--pine-text); margin: 0 0 8px; }
.port h3 { font-weight: 800; font-size: 1.1rem; }
.port h3 a { color: var(--text); text-decoration-color: var(--rust); }
.port h3 a:hover { color: var(--accent); }
.port .note { color: var(--muted); font-size: .95rem; margin: 8px 0 0; }
.port.positions li { background: transparent; border-style: dashed; }

/* ---------- Historical marker (disclosure component) ---------- */
.hist { display: flex; gap: 12px; align-items: flex-start; border: 2px dashed var(--hist); border-radius: var(--radius); padding: 14px 16px; margin-top: 24px; max-width: 64ch; }
.hist-mark { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--hist); color: #fff; font-weight: 700; font-size: .68rem; letter-spacing: .14em; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; margin-top: 2px; }
.hist p { margin: 0; font-size: .95rem; color: var(--text); }

/* ---------- History split ---------- */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; } }

/* ---------- Stages ---------- */
.stages { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: stage; }
@media (min-width: 860px) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stages li { counter-increment: stage; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--pine); border-radius: var(--radius); padding: 22px; }
.stages li::before { content: "Stage " counter(stage); display: block; font-weight: 700; color: var(--pine-text); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; margin-bottom: 10px; }
.stages h3 { font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.stages p { color: var(--muted); margin: 0; }
.stages .photo { margin-top: 16px; }
.stages .photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Callout (strategic review) ---------- */
.callout { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--rust); border-radius: var(--radius); padding: 28px 26px; max-width: 760px; }
.callout h2 { font-weight: 900; font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 12px; }
.callout .more { margin-top: 16px; font-weight: 700; }

/* ---------- News ---------- */
.release { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--rust); border-radius: var(--radius); padding: 28px 26px; }
.release .meta { font-weight: 700; color: var(--muted); font-size: .88rem; letter-spacing: .04em; margin: 0 0 12px; }
.release h2 { font-weight: 900; font-size: clamp(1.35rem, 4vw, 1.9rem); letter-spacing: -.01em; margin-bottom: 14px; }
.release blockquote { margin: 0 0 18px; padding: 0 0 0 16px; border-left: 3px solid var(--border-strong); color: var(--text); max-width: 68ch; }
.release .asfiled { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.release-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--border); }
.release-list li { display: grid; gap: 4px; padding: 16px 2px; border-bottom: 1px solid var(--border); }
@media (min-width: 700px) { .release-list li { grid-template-columns: 170px 1fr; gap: 16px; align-items: baseline; } }
.release-list time { font-weight: 700; color: var(--muted); font-size: .9rem; }
.release-list a { font-weight: 600; }

/* ---------- Investors ---------- */
.cards { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h2, .card h3 { font-weight: 800; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; flex: 1; }
.card .link { align-self: flex-start; margin-top: 6px; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border: 2px solid var(--accent); border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--accent); }
.card .link:hover { background: var(--accent); color: #fff; }
.govern { margin-top: 24px; font-weight: 600; max-width: 64ch; }
.ticker { display: inline-block; background: var(--rust); color: #fff; font-family: var(--display); font-weight: 900; letter-spacing: .02em; padding: 2px 10px; border-radius: var(--radius); }
.contact-block { font-style: normal; font-size: 1.12rem; line-height: 1.7; }
.contact-block a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 44px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.brick { display: block; color: var(--text); flex: none; }

.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-col strong { font-family: var(--display); font-weight: 800; }
.foot-nav { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.foot-nav a, .foot-col a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.foot-nav a:hover, .foot-col a:hover { color: var(--accent); text-decoration: underline; }
.disclaimer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); max-width: 86ch; line-height: 1.5; }
.copyright { margin-top: 12px; font-size: .82rem; color: var(--muted); }

/* ---------- Release page (V2 template) ---------- */
.crumbs { font-size: .88rem; color: var(--cream-soft); margin: 0 0 18px; }
.crumbs a { color: var(--cream); font-weight: 700; }
.crumbs a:hover { color: var(--ochre); }
.release-hero h1 { font-size: clamp(1.8rem, 5.2vw, 2.9rem); line-height: 1.08; }
.release-meta { font-weight: 700; font-size: .9rem; letter-spacing: .03em; color: var(--cream-soft); margin: 0 0 14px; }
.ticker-line { color: var(--ochre); letter-spacing: .08em; }

.release-page { padding-top: 48px; }
.release-page h2 { font-weight: 800; font-size: 1.35rem; margin: 36px 0 12px; }
.standfirst { font-size: 1.25rem; line-height: 1.5; font-weight: 600; max-width: 64ch; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }

.highlights { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--rust); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.highlights h2 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.highlights ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

.release-body h2 { font-size: 1.3rem; }
.release-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; display: block; overflow-x: auto; }
.release-body th, .release-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.release-body th { font-family: var(--display); font-weight: 700; background: var(--surface-2); }

/* QP stamp: the disclosure component that says a Qualified Person stands behind the technical content */
.qp-stamp { margin: 40px 0 8px; background: var(--surface); border: 2px solid var(--pine); border-radius: var(--radius); padding: 22px 24px; max-width: 64ch; }
.qp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.qp-head h2 { margin: 0; font-size: 1.15rem; }
.qp-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--pine); color: var(--cream); font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.qp-statement { margin: 0 0 16px; padding: 0 0 0 16px; border-left: 3px solid var(--pine); }
.qp-facts { margin: 0; display: grid; gap: 10px; }
@media (min-width: 620px) { .qp-facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 32px; } }
.qp-facts dt { font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pine-text); }
.qp-facts dd { margin: 2px 0 0; font-weight: 600; }
.qp-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

.release-about { border-top: 1px solid var(--border); margin-top: 40px; }
.release-about p { max-width: 64ch; }
.release-contact { font-size: .98rem; }

.filed-note { margin-top: 28px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.filed-note summary { cursor: pointer; padding: 14px 18px; min-height: 48px; font-family: var(--display); font-weight: 700; font-size: .98rem; list-style-position: inside; }
.filed-note summary:hover { color: var(--accent); }
.filed-note-body { padding: 0 18px 16px; font-size: .92rem; color: var(--muted); }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 620px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc-list a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 700; }
.doc-list a:hover { border-color: var(--accent); color: var(--accent); }
.doc-kind { flex: none; min-width: 72px; font-family: var(--display); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.release-pager { display: grid; gap: 10px; margin-top: 44px; }
@media (min-width: 620px) { .release-pager { grid-template-columns: 1fr 1fr; } .release-pager .newer { text-align: right; } }
.release-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.release-pager a:hover { border-color: var(--accent); }
.release-pager .dir { font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.release-pager .t { font-weight: 700; line-height: 1.3; }
.back-all { margin-top: 20px; font-weight: 700; }

/* Template placeholders: visible only on the unfilled template. A real release has none. */
mark.ph { background: #F6DCD3; color: #7E2E16; border: 1px dashed #B5502F; border-radius: 3px; padding: 0 3px; }
.page-hero mark.ph { background: #4A2418; color: #F6DCD3; }

@media print {
  .filed-note { border: 0; }
  .filed-note summary { padding-left: 0; }
  .release-pager, .back-all, .crumbs { display: none; }
}

/* Release page additions (first live release, 23 Sep 2026) */
.concept-note { display: flex; gap: 12px; align-items: flex-start; border: 2px dashed var(--hist); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 28px; max-width: 64ch; background: var(--surface); }
.concept-mark { flex: none; background: var(--hist); color: #fff; font-family: var(--display); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; margin-top: 2px; }
.concept-note p { margin: 0; font-size: .95rem; }
.release-body ul { padding-left: 1.2em; display: grid; gap: 6px; max-width: 64ch; }
.release-body table { display: table; white-space: normal; max-width: 64ch; }
.release-body th, .release-body td { white-space: normal; vertical-align: top; }
.release-body td:first-child, .release-body th:first-child { white-space: nowrap; width: 1%; padding-right: 20px; }
.release-body .filed-note-inline { font-size: .92rem; color: var(--muted); }
.release-body .quote { border-left: 3px solid var(--rust); padding-left: 16px; margin-bottom: .6em; }
.release-body .stage-line { font-family: var(--display); font-size: 1.1rem; background: var(--surface-2); border-radius: var(--radius); padding: 14px 18px; }
.filed-note[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.filed-note-body p { max-width: 70ch; }
.release-about .exchange-note { font-size: .88rem; color: var(--muted); margin-top: 16px; }
.release-list .onsite { font-weight: 700; }

.release-page .table-wrap { overflow-x: auto; margin: 20px 0; }
.release-page .table-wrap table { margin: 0; }
.release-about + .release-about { border-top: 0; margin-top: 12px; }
.release-contact p { margin: 0 0 .6em; }
.release-about-filed { border-top: 1px solid var(--border); margin-top: 40px; }

/* Release page: wide layout (23 Sep 2026). Text column plus a sticky side rail on desktop. */
.release-hero h1 { max-width: 24ch; }
.release-grid { display: grid; gap: 40px; }
.release-main { min-width: 0; }
.release-page .standfirst, .release-page .prose, .release-page .release-body ul, .release-page .release-body table,
.release-page .qp-stamp, .release-page .filed-note-body p, .release-page .release-about p { max-width: none; }
.release-page .release-body p, .release-page .standfirst { max-width: 78ch; }
.release-page .prose p { font-size: 1.08rem; }
.release-rail { display: flex; flex-direction: column; gap: 22px; }
.rail-label { font-family: var(--display); font-weight: 700; font-size: .72rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px !important; }
.rail-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.rail-toc li a { display: block; padding: 4px 0 4px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; font-size: .86rem; line-height: 1.3; }
.rail-toc li a:hover { color: var(--accent); border-left-color: var(--rust); }
.release-rail .doc-list { grid-template-columns: 1fr; gap: 8px; }
.release-rail .doc-list a { min-height: 44px; padding: 8px 12px; font-size: .88rem; gap: 10px; }
.release-rail .doc-kind { min-width: 58px; }
.release-rail .back-all { margin-top: 0; }
@media (min-width: 1000px) {
  .release-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
  .release-rail { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
@media (max-width: 999px) { .rail-toc { display: none; } }

/* ---------- 404 ---------- */
.notfound { padding-block: 96px; text-align: left; }
.notfound h1 { font-weight: 900; font-size: clamp(2.2rem, 7vw, 3.6rem); margin-bottom: 16px; }

@media print {
  .site-header, .skip { display: none; }
  body { background: #fff; }
}
