:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(97.5% 0.005 90); --color-paper-2: oklch(94.2% 0.006 90); --color-paper-3: oklch(90.5% 0.008 90);
  --color-ink: oklch(19% 0.022 266); --color-ink-2: oklch(31% 0.02 266); --color-muted: oklch(47% 0.016 266);
  --color-rule: oklch(87.5% 0.008 90);
  --color-accent: oklch(44% 0.2 266); --color-accent-ink: oklch(97.5% 0.005 90); --color-focus: oklch(46% 0.2 266);
  --color-field: oklch(44% 0.2 266); --color-field-ink: oklch(97.5% 0.005 90);
  --color-mark: oklch(57% 0.215 29); --color-mark-ink: oklch(97.5% 0.005 90);
  --font-display: "Radio Canada Big", ui-sans-serif, system-ui, sans-serif; --font-body: "Radio Canada", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-display);
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.035em; --display-weight: 700;
}


*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-mark); color: var(--color-mark-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: duotone ink paper-2 con=12 */
[data-slot]:has(> img) { isolation: isolate; background: var(--color-paper-2); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
[data-slot] > img { z-index: 0; filter: grayscale(1) contrast(1.12); mix-blend-mode: multiply; }
[data-slot]:has(> img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-ink); mix-blend-mode: lighten; pointer-events: none; }


/* Hallmark · shape: Index-First · genre: editorial · theme: Grid (deal 1/3, seed o-poker-french-poker-strategy-08a0·3d2ff3e4·2026-11-29·r0) · redesign: full
 * hero: Stage · nav: edge-aligned · footer: mast · imagery: none · signature: interactive ARJEL 2008-2014 year switcher on the Swiss red field
 * axes: light/grotesk-sans/cool · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 · weakest: R, homepage trimmed of filler portraits/stats so the ARJEL year ledger and overprint hero carry visual mass alone */


/* ---------- GLOBAL INTERACTIVE STATES ---------- */
a {
  transition: color var(--dur-micro) var(--ease-out);
}

a:hover {
  color: var(--color-mark);
}

a:active {
  opacity: 0.85;
}

strong, b {
  font-weight: 500;
}

/* ---------- HEADER (PIXEL-IDENTICAL CHROME) ---------- */
.site-header {
  background: var(--color-paper);
  position: relative;
  z-index: var(--z-sticky-nav);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 72px;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: var(--space-sm);
  align-items: center;
  text-decoration: none;
  color: var(--color-ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.brand-top {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--text-lg);
  line-height: 1;
  letter-spacing: var(--tracking-display);
}

.brand-sub {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  padding: var(--space-xs) var(--space-2xs);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-mark);
  text-decoration: underline var(--rule-hair);
  text-underline-offset: 0.32em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

.lang-switch a,
.lang-switch span {
  padding: var(--space-2xs) var(--space-xs);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch .active {
  background: var(--color-ink);
  color: var(--color-paper);
}

.lang-switch a {
  color: var(--color-muted);
}

.lang-switch a:hover {
  color: var(--color-mark);
}

.nav-drawer {
  display: none;
  position: relative;
}

.nav-drawer summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-md);
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav-drawer summary::-webkit-details-marker {
  display: none;
}

.nav-drawer-panel {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-xs));
  min-width: 220px;
  background: var(--color-paper);
  outline: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: var(--z-dropdown);
}

.nav-drawer-panel a {
  text-decoration: none;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-ink);
  padding: var(--space-xs) 0;
}

main {
  flex: 1 0 auto;
}

/* ---------- CONTROLS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--text-md);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"],
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-paper);
}

.btn--primary:hover {
  background: var(--color-ink-2);
  color: var(--color-paper);
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  padding-inline: 0;
  text-decoration: underline var(--rule-hair);
  text-underline-offset: 0.32em;
}

.btn--secondary:hover {
  color: var(--color-mark);
}

.btn--field-invert {
  background: var(--color-paper);
  color: var(--color-ink);
}

.btn--field-invert:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

/* ---------- HOMEPAGE: GRID + ULTRAMARINE STAGE HERO ---------- */
.hero-stage {
  position: relative;
  background: var(--color-paper);
  padding-block: var(--space-2xl);
}

.hero-stage::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 41.667%;
  background: var(--color-field);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--gap-columns);
  align-items: end;
  min-height: clamp(540px, 74svh, 700px);
  padding-bottom: var(--space-xl);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-right: var(--space-lg);
}

.hero-head {
  font-size: var(--text-display);
  line-height: 0.96;
  max-width: 14ch;
  color: var(--color-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xs);
}

.hero-field-meta {
  color: var(--color-field-ink);
  padding-left: var(--space-xl);
  padding-bottom: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-figure-big {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--text-display-s);
  line-height: 0.95;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}

.hero-figure-caption {
  font-size: var(--text-md);
  color: var(--color-field-ink);
  max-width: 28ch;
}

/* ---------- SWISS RED FIELD: ARJEL YEAR SWITCHER ---------- */
.section-band {
  padding-block: var(--section-gap-s);
}

.section-band--tight {
  padding-block: var(--space-3xl);
}

.section-band--paper2 {
  background: var(--color-paper-2);
}

.field--mark {
  background: var(--color-mark);
  color: var(--color-mark-ink);
  --color-focus: var(--color-ink);
}

.arjel-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap-columns);
  align-items: start;
}

.arjel-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.arjel-left h2 {
  color: var(--color-mark-ink);
}

.arjel-left .lead {
  color: var(--color-mark-ink);
  max-width: 34ch;
}

.arjel-readout {
  background: var(--color-paper);
  color: var(--color-ink);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-lg);
  align-items: start;
}

.arjel-year-big {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--text-display-s);
  line-height: 0.95;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
  color: var(--color-mark);
}

.arjel-year-sub {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.arjel-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.arjel-mini-table th,
.arjel-mini-table td {
  padding: var(--space-xs) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  text-align: left;
}

.arjel-mini-table th {
  font-weight: 500;
  color: var(--color-muted);
}

.arjel-mini-table tr:last-child td {
  border-bottom: 0;
}

.arjel-mini-table .num {
  text-align: right;
  font-weight: 500;
}

.year-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-mark-ink);
}

.year-btn {
  min-height: 44px;
  padding: 0 var(--space-md);
  border: 0;
  background: transparent;
  color: var(--color-mark-ink);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--text-title);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.year-btn:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}

.year-btn:active {
  transform: translateY(1px);
}

.year-btn[aria-pressed="true"] {
  background: var(--color-paper);
  color: var(--color-ink);
}

/* ---------- SECTION HEADINGS & EDITORIAL ROWS ---------- */
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.section-action {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: underline var(--rule-hair);
  text-underline-offset: 0.32em;
  white-space: nowrap;
}

.section-action:hover {
  color: var(--color-mark);
}

.editorial-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.editorial-row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 2fr);
  gap: var(--gap-columns);
  padding-block: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  align-items: baseline;
}

.editorial-row:last-child {
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.editorial-row h3 {
  margin: 0;
  font-size: var(--text-title);
}

.editorial-row h3 a {
  text-decoration: none;
  color: var(--color-ink);
}

.editorial-row h3 a:hover {
  color: var(--color-mark);
}

.editorial-row p {
  font-size: var(--text-md);
  color: var(--color-muted);
}

.editorial-meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: right;
  white-space: nowrap;
}

/* ---------- FR GUIDES PAPER-2 SHEET ---------- */
.guides-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gap-columns);
  row-gap: var(--space-xl);
}

.guide-entry {
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.guide-entry h3 {
  font-size: var(--text-title);
}

.guide-entry h3 a {
  text-decoration: none;
  color: var(--color-ink);
}

.guide-entry h3 a:hover {
  color: var(--color-mark);
}

.guide-entry p {
  font-size: var(--text-md);
  color: var(--color-ink-2);
}

.guide-meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---------- LEDGER TABLES (FORUM / ARCHIVES / HOME) ---------- */
.ledger-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-md);
}

.ledger-table th {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-align: left;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-ink);
}

.ledger-table td {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: baseline;
}

.ledger-table .num,
.ledger-table th.num {
  text-align: right;
  white-space: nowrap;
}

.ledger-table th:last-child,
.ledger-table td:last-child {
  padding-right: 0;
}

.thread-link {
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
}

.thread-link:hover {
  color: var(--color-mark);
  text-decoration: underline var(--rule-hair);
}

.page-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-left: var(--space-sm);
}

.page-links a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: underline var(--rule-hair);
}

.page-links a:hover {
  color: var(--color-mark);
}

/* ---------- ARCHIVE / BILINGUAL / EXPIRED STRIPS ---------- */
.strip {
  padding: var(--space-md) var(--space-lg);
  margin-block: var(--space-md) var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-sm);
}

.strip--paper {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

.strip--mark {
  background: var(--color-mark);
  color: var(--color-mark-ink);
}

.strip--field {
  background: var(--color-field);
  color: var(--color-field-ink);
}

.strip a {
  font-weight: 500;
  text-decoration: underline var(--rule-hair);
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ---------- ARTICLE & INTERNAL PAGES ---------- */
.page-shell {
  padding-block: var(--space-lg) var(--section-gap-s);
}

.breadcrumbs {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-mark);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--space-2xl);
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-header {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.article-header h1 {
  font-size: var(--text-display-s);
  max-width: 24ch;
  margin-bottom: var(--space-md);
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.takeaways-well {
  background: var(--color-paper-2);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.takeaways-well h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.takeaways-well ul {
  margin: 0;
  padding-left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.prose {
  font-size: var(--text-md);
  line-height: 1.68;
  max-width: 65ch;
  overflow-wrap: break-word;
}

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose p + p,
.prose ul + p,
.prose ol + p {
  margin-top: var(--space-md);
}

.prose ul, .prose ol {
  margin-block: var(--space-md);
  padding-left: var(--space-lg);
}

.prose li + li {
  margin-top: var(--space-xs);
}

.prose blockquote {
  margin-block: var(--space-lg);
  margin-inline: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-paper-2);
  color: var(--color-ink-2);
}

.prose code {
  background: var(--color-paper-2);
  padding: var(--space-3xs) var(--space-2xs);
  font-size: var(--text-sm);
}

.prose img:not(.inline-icon) {
  margin-block: var(--space-lg);
}

.prose img.inline-icon {
  display: inline-block;
  vertical-align: middle;
  height: var(--space-md);
  width: auto;
  margin: 0 var(--space-3xs);
}

.prose a,
.phpbb-post-body a {
  overflow-wrap: anywhere;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-block: var(--space-lg);
}

.prose table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-lg);
  font-size: var(--text-sm);
}

.table-wrap .data-table {
  margin-block: 0;
}

.prose th, .prose td,
.data-table th, .data-table td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  text-align: left;
}

.prose th, .data-table th {
  font-weight: 500;
  color: var(--color-muted);
  border-bottom-color: var(--color-ink);
}

.chart-figure {
  margin-block: var(--space-xl);
  background: var(--color-paper-2);
  padding: var(--space-lg);
}

.chart-figure figcaption {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Sidebar Rail */
.sidebar-rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: var(--space-lg);
}

.rail-well {
  background: var(--color-paper-2);
  padding: var(--space-lg);
}

.rail-well h2 {
  font-size: var(--text-title);
  margin-bottom: var(--space-md);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list li {
  padding-block: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.rail-list a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
}

.rail-list a:hover {
  color: var(--color-mark);
}

/* Related links bottom strip */
.related-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.related-section h2 {
  font-size: var(--text-title);
  margin-bottom: var(--space-lg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-columns);
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.related-item a {
  font-weight: 500;
  text-decoration: none;
}

.related-item a:hover {
  color: var(--color-mark);
  text-decoration: underline var(--rule-hair);
}

/* Embedded phpBB Forum Shell (Classic 2-Column Post + Profile) */
.forum-shell {
  border-top: var(--rule-hair) solid var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-ink);
}

.forum-chrome-bar {
  background: var(--color-paper-2);
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.forum-status-tag {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-2xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
}

.phpbb-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
}

.phpbb-post--alt {
  background: var(--color-paper-2);
}

.phpbb-post:last-child {
  border-bottom: 0;
}

.phpbb-post-main {
  padding: var(--space-lg);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.phpbb-post-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.phpbb-post-subject {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-ink);
}

.phpbb-post-date {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.phpbb-post-anchor {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-decoration: none;
  margin-left: var(--space-sm);
}

.phpbb-post-anchor:hover {
  color: var(--color-mark);
}

.phpbb-post-body {
  font-size: var(--text-md);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.phpbb-post-body blockquote {
  background: var(--color-paper-2);
  padding: var(--space-md);
  margin-block: var(--space-md);
  margin-inline: 0;
  color: var(--color-ink-2);
  border-left: var(--rule-hair) solid var(--color-field);
}

.phpbb-post--alt .phpbb-post-body blockquote {
  background: var(--color-paper);
}

.phpbb-post-body blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}

.phpbb-post-body img.inline-icon {
  display: inline-block;
  vertical-align: middle;
  height: var(--space-md);
  width: auto;
  margin: 0 var(--space-3xs);
}

.phpbb-signature {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.phpbb-profile {
  padding: var(--space-lg);
  border-left: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

.phpbb-avatar {
  width: var(--space-2xl);
  height: var(--space-2xl);
  object-fit: cover;
  border: var(--rule-hair) solid var(--color-rule);
}

.phpbb-avatar-fallback {
  width: var(--space-2xl);
  height: var(--space-2xl);
  background: var(--color-field);
  color: var(--color-field-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--text-title);
}

.phpbb-author {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-ink);
}

.phpbb-rank {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  color: var(--color-muted);
}

.phpbb-rank img {
  width: auto;
  max-width: 120px;
}

.phpbb-profile-dl {
  margin: var(--space-xs) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.phpbb-profile-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.phpbb-profile-row dt {
  font-weight: 500;
  color: var(--color-ink);
}

.phpbb-profile-row dd {
  margin: 0;
  color: var(--color-muted);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-block: var(--space-lg);
}

.pagination-bar a,
.pagination-bar span.current {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.pagination-bar a {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

.pagination-bar a:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}

.pagination-bar span.current {
  background: var(--color-mark);
  color: var(--color-mark-ink);
}

/* Hub Index Jump Bar */
.hub-intro {
  padding-block: var(--space-xl) var(--space-2xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  margin-bottom: var(--space-2xl);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap-columns);
  align-items: end;
}

.hub-intro h1 {
  font-size: var(--text-display-s);
  max-width: 18ch;
}

.jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.jump-row a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-md);
  background: var(--color-paper-2);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.jump-row a:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}

.cat-group {
  margin-bottom: var(--space-3xl);
}

.cat-group h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
}

.forum-shell + .cat-group {
  margin-top: var(--space-3xl);
}

.forum-shell .ledger-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- FOOTER (COMPACT MAST) ---------- */
.site-footer {
  background: var(--color-paper-2);
  color: var(--color-ink);
  padding-block: var(--space-2xl) var(--space-xl);
}

.footer-mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-nav a {
  font-size: var(--text-md);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-ink);
}

.footer-nav a:hover {
  color: var(--color-mark);
  text-decoration: underline var(--rule-hair);
}

.footer-colophon {
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---------- RESPONSIVE (< 60rem / 960px and < 40rem / 640px) ---------- */
@media (max-width: 60rem) {
  .nav-links {
    display: none;
  }

  .nav-drawer {
    display: block;
    margin-left: auto;
  }

  .hero-stage {
    padding-block: var(--space-xl);
  }

  .hero-stage::after {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    row-gap: var(--space-xl);
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-field-meta {
    background: var(--color-field);
    color: var(--color-field-ink);
    padding: var(--space-xl);
  }

  .arjel-split,
  .article-layout,
  .hub-intro,
  .arjel-readout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-rail {
    position: static;
  }

  .editorial-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }

  .editorial-meta {
    text-align: left;
  }

  .phpbb-post {
    grid-template-columns: minmax(0, 1fr);
  }

  .phpbb-profile {
    order: -1;
    border-left: 0;
    border-bottom: var(--rule-hair) solid var(--color-rule);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
  }

  .phpbb-profile-dl {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
    width: 100%;
  }
}

@media (max-width: 40rem) {
  .guides-two-col,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger-table .col-hide-sm {
    display: none;
  }
}

.board-name {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-ink);
  text-decoration: none;
}

.board-name:hover {
  color: var(--color-mark);
  text-decoration: underline var(--rule-hair);
}

.board-desc {
  margin: var(--space-xs) 0 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.45;
}
