/* Winds and Waves Guide: style "lagoon". Sand, sea green, deep-sea blue and mango; small corners (4 to 10 px).
   Contents: fonts, tokens, base, header, hero, buttons, status board, sections, cards, stamps and chips,
   article pages, footer, motion, smaller screens. */

/* Rubik (SIL Open Font License, see /fonts/OFL.txt), self-hosted, latin subset, variable weight. */
@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #fff6e6;          /* sand */
  --bg-2: #fbecd0;        /* deeper sand: bands */
  --surface: #ffffff;
  --ink: #0e2f3a;
  --muted: #5d584b;
  --line: #ead8b4;
  --deep: #0b4f6c;        /* deep sea: header, page heads */
  --deeper: #083c53;      /* footer */
  --deep-ink: #fff6e6;
  --lagoon: #0b7f76;      /* buttons, icons */
  --lagoon-ink: #ffffff;
  --lagoon-bright: #18b5a8;
  --accent: #0b746c;      /* links on sand */
  --mango: #ff9f1c;
  --mango-hover: #ffb547;
  --mango-ink: #3d2200;
  --highlight: #ffd591;   /* emphasis on dark images */
  --stamp: #b4500f;
  --rumour: #6b4fa0;
  --ok: #1f8a4c;
  --shadow: 0 1px 2px rgba(14, 47, 58, .06), 0 10px 24px -10px rgba(14, 47, 58, .22);
  --shadow-lift: 0 2px 4px rgba(14, 47, 58, .08), 0 22px 44px -16px rgba(14, 47, 58, .38);
  --radius-lg: 10px;
  --radius: 8px;
  --radius-sm: 4px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Rubik", var(--font);
  --mark-cut: var(--deep); /* the gap in the cap mark takes the colour behind it */
}

/* Dark: follows the device unless the visitor picked a theme (data-theme on <html>, set by /site.js).
   The two blocks below must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1f26;
    --bg-2: #0d2831;
    --surface: #102c35;
    --ink: #e6f2f0;
    --muted: #9fb8bb;
    --line: #1f424c;
    --deep: #062f40;
    --deeper: #06171d;
    --deep-ink: #e6f2f0;
    --lagoon: #0b6b65;
    --lagoon-bright: #18a79b;
    --accent: #5fd3c6;
    --mango: #ffb255;
    --mango-hover: #ffc47a;
    --highlight: #ffd08a;
    --stamp: #ffb255;
    --rumour: #c7b4f0;
    --ok: #5fd39a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 24px -10px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 44px -16px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1f26;
  --bg-2: #0d2831;
  --surface: #102c35;
  --ink: #e6f2f0;
  --muted: #9fb8bb;
  --line: #1f424c;
  --deep: #062f40;
  --deeper: #06171d;
  --deep-ink: #e6f2f0;
  --lagoon: #0b6b65;
  --lagoon-bright: #18a79b;
  --accent: #5fd3c6;
  --mango: #ffb255;
  --mango-hover: #ffc47a;
  --highlight: #ffd08a;
  --stamp: #ffb255;
  --rumour: #c7b4f0;
  --ok: #5fd39a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 24px -10px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 44px -16px rgba(0, 0, 0, .8);
}
:root[data-theme="light"] { color-scheme: light; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h2 { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
h3 { font-weight: 600; }
p { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: var(--radius-sm); }

img { max-width: 100%; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 20;
}
.skip:focus { left: 12px; }

.small { font-size: .9rem; color: var(--muted); }

/* The wavy edge that closes a dark block. The fill is the colour of whatever comes next. */
.tide { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; display: block; fill: var(--bg); pointer-events: none; }
.tide-foam { fill: #fff; opacity: .28; }

/* A link that leads on: "All news" */
.more { font-family: var(--display); font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap; }
.more::after { content: "\2192"; display: inline-block; margin-left: 6px; }
.more:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
/* The header lies over the top of the hero (home) or the page head (other pages), so the two read as one block. */
.bar { position: absolute; left: 0; right: 0; top: 0; z-index: 10; color: var(--deep-ink); }
.bar .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; min-height: 66px; padding: 10px 0; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--deep-ink); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.015em;
}
.brand svg { width: 38px; height: 38px; flex: none; margin: -4px 0 -2px -4px; }
.brand span { white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a {
  position: relative; color: var(--deep-ink); text-decoration: none; padding: 7px 11px; border-radius: var(--radius-sm);
  font-family: var(--display); font-weight: 500; font-size: .98rem; white-space: nowrap; opacity: .88;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2.5px; border-radius: 2px; background: var(--mango);
}
.bar-end { display: flex; align-items: center; gap: 10px; }
.release {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px 0 10px;
  background: var(--mango); color: var(--mango-ink); border-radius: var(--radius-sm); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.release svg { width: 14px; height: 14px; }
.release:hover { background: var(--mango-hover); }
.release.is-live { background: var(--lagoon-bright); color: #fff; }
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
  background: transparent; color: var(--deep-ink);
  border: 1.5px solid rgba(255, 255, 255, .32); border-radius: var(--radius-sm);
}
.theme-toggle:hover { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .08); }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 18px; height: 18px; display: none; }
.theme-toggle[data-mode="auto"] .i-auto,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { display: block; }

/* Short labels for narrow phones (see the last media query) */
.nav .short, .release-short { display: none; }

.home .bar { --mark-cut: #08303f; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(560px, 80vh, 760px); padding: 126px 0 168px;
  background: #0a3f57; color: #fff;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%; z-index: -3; }
/* Scrim: dark behind the header, behind the text on the left and under the status board. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 38, 54, .82) 0, rgba(5, 38, 54, .35) 90px, rgba(5, 38, 54, 0) 170px),
    linear-gradient(90deg, rgba(5, 38, 54, .93) 0%, rgba(5, 38, 54, .8) 30%, rgba(5, 38, 54, .3) 58%, rgba(5, 38, 54, 0) 76%),
    linear-gradient(0deg, rgba(5, 38, 54, .6) 0, rgba(5, 38, 54, 0) 240px);
}
/* Texture: a fine dot pattern over the dark side, fading out towards the picture. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1.6px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 34%, transparent 66%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 34%, transparent 66%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 4px 11px 4px 9px;
  font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-sm);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mango); }
.hero h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(2.35rem, 5.4vw, 4.2rem); line-height: 1.03; letter-spacing: -0.03em; font-weight: 800;
  text-shadow: 0 2px 24px rgba(5, 38, 54, .45);
}
.hero h1 em { font-style: normal; color: var(--highlight); }
.lede { margin: 22px 0 0; max-width: 52ch; font-size: 1.16rem; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.actions { margin: 28px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-credit {
  position: absolute; right: max(20px, calc((100% - var(--wrap)) / 2)); bottom: 118px; margin: 0;
  font-size: .74rem; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 6px rgba(5, 38, 54, .9);
}
.hero .tide { height: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 11px 18px; border-radius: 6px;
  background: var(--lagoon); color: var(--lagoon-ink);
  font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--deep); }
.actions .btn { margin-top: 0; }
.btn-light { background: var(--mango); color: var(--mango-ink); box-shadow: 0 8px 20px -8px rgba(255, 159, 28, .7); }
.btn-light:hover { background: var(--mango-hover); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-ghost-dark { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost-dark:hover { background: var(--surface); }

/* ---------- Status board (home): confirmed facts and what is still open ---------- */
.board { position: relative; z-index: 2; margin-top: -104px; }
.board-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.board-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding: 16px 24px 12px; }
.label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--stamp); }
.label.ok::before { border: 0; background: var(--ok); }
.board-checked { margin: 0; font-size: .85rem; color: var(--muted); }
.board-checked a { color: inherit; }
.board-facts { display: grid; grid-template-columns: .8fr 1fr 1fr 1.1fr; gap: 1.5px; margin: 0; background: var(--line); border-top: 1.5px solid var(--line); }
.board-facts > div { background: var(--surface); padding: 16px 24px 22px; display: flex; flex-direction: column; }
.board-facts dt { font-size: .88rem; color: var(--muted); }
.board-facts dd { margin: auto 0 0; padding-top: 6px; font-family: var(--display); font-size: 1.28rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.board-facts dd.big { font-size: 2.9rem; font-weight: 800; line-height: .95; letter-spacing: -0.04em; color: var(--accent); }
.board-facts dd.chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 1.02rem; }
.board-open {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; padding: 14px 24px;
  background: var(--bg-2); border-top: 1.5px dashed var(--line);
}
.board-open ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .98rem; }
.board-open .more { margin-left: auto; }

/* ---------- Sections (home) ---------- */
.section { padding: 76px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.section-head h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 1.95rem); letter-spacing: -0.02em; }
/* A small mango wave above each section title */
.section-head h2::before {
  content: ""; display: block; width: 38px; height: 9px; margin-bottom: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 9'%3E%3Cpath d='M2 4.5c2.8-3.4 5.7-3.4 8.5 0s5.7 3.4 8.5 0 5.7-3.4 8.5 0 5.7 3.4 8.5 0' fill='none' stroke='%23ff9f1c' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.section-head .more { padding-bottom: 4px; }
.band { margin-top: 84px; padding: 68px 0 72px; background: var(--bg-2); border-block: 1.5px solid var(--line); }

/* ---------- Cards: news and pages ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.news-list a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.news-list a:hover { border-color: var(--lagoon-bright); box-shadow: var(--shadow); }
.news-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.news-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 20px 18px; }
.kicker { font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); }
.news-title { font-family: var(--display); font-weight: 600; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.news-list a:hover .news-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.news-desc { color: var(--muted); font-size: .96rem; line-height: 1.5; }
.news-list time { color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: 8px; }
/* The news index: one story per row, picture on the left */
.news-list.wide { grid-template-columns: 1fr; }
.news-list.wide a { flex-direction: row; }
.news-list.wide .news-img { flex: none; width: min(38%, 300px); aspect-ratio: auto; }
.news-list.wide .news-body { padding: 20px 24px; }

/* ---------- What this site will offer ---------- */
.offer { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.offer li { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 22px; }
.offer .icon {
  width: 46px; height: 46px; margin-bottom: 16px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--lagoon); color: var(--lagoon-ink);
}
.offer .icon svg { width: 24px; height: 24px; }
.offer h3 { margin: 0; font-size: 1.18rem; letter-spacing: -0.01em; }
.offer p { margin: 6px 0 0; color: var(--muted); font-size: .98rem; }

/* ---------- How we work ---------- */
.rules { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rules li { padding: 18px 0 20px; border-top: 2.5px solid var(--line); }
.rules li:first-child { border-top-color: var(--mango); }
.rules strong { display: block; font-family: var(--display); font-size: 1.08rem; font-weight: 600; }
.rules span { display: block; margin-top: 2px; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.section > .wrap > .small { max-width: 78ch; }

/* ---------- Stamps, badges and type chips ---------- */
.stamp {
  display: inline-block; padding: 0 6px; vertical-align: 1px; white-space: nowrap;
  font-family: var(--display); font-size: .85rem; font-weight: 700; line-height: 1.5;
  color: var(--stamp); border: 2px solid currentColor; border-radius: var(--radius-sm);
  transform: rotate(-2deg);
}
.stamp.rumour { color: var(--rumour); transform: rotate(1.5deg); }
.badge {
  display: inline-block; padding: 0 7px; border-radius: var(--radius-sm); vertical-align: 1px;
  font-family: var(--display); font-size: .78rem; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.badge.official { background: var(--lagoon); color: var(--lagoon-ink); }
.badge.seen { background: var(--line); color: var(--ink); }

/* Type chips: fixed light chips, readable in both themes */
.type {
  display: inline-block; padding: 1px 8px; border-radius: var(--radius-sm);
  font-family: var(--display); font-size: .85rem; font-weight: 600;
  background: var(--line); color: var(--ink);
}
.chips .type { font-size: .95rem; padding: 2px 10px; }
.type.grass { background: #ddf3cf; color: #2e6a12; }
.type.fire { background: #ffe0cc; color: #a2410e; }
.type.water { background: #d6ebff; color: #13508e; }
.type.poison { background: #f0dcf5; color: #6e2a84; }
.type.flying { background: #e1e8fb; color: #3a4f8f; }
.type.bug { background: #e8f2c8; color: #4d6410; }
.type.electric { background: #fff1b8; color: #6b5300; }
.type.ghost { background: #e4def3; color: #4b3b7a; }
.type.rock { background: #efe6cf; color: #6b5a2a; }
.type.ground { background: #f4e3cc; color: #7a4e1d; }
.type.normal { background: #ece9e2; color: #4f4b42; }

/* ---------- Article pages ---------- */
.article { padding: 0 0 8px; }
.article > .wrap, .page-head .wrap { max-width: 780px; }
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 98px 0 78px; background: var(--deep); color: var(--deep-ink);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(90% 150% at 100% 0%, rgba(24, 181, 168, .5) 0%, rgba(24, 181, 168, 0) 62%);
}
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1.6px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .4) 30%, transparent 60%);
  mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .4) 30%, transparent 60%);
}
.page-head h1 { margin: 0; font-size: clamp(2rem, 4.8vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.page-head .meta { margin: 14px 0 0; font-size: .92rem; color: var(--deep-ink); opacity: .82; }
.crumbs { margin: 0 0 12px; font-size: .9rem; }
.crumbs a { color: inherit; }
.page-head .kicker { color: var(--highlight); }
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }

.prose { padding-top: 22px; }
.prose > p, .prose > ul, .prose > ol { max-width: 70ch; }
.lede-dark { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.prose h2 { margin: 52px 0 12px; font-size: 1.55rem; letter-spacing: -0.02em; scroll-margin-top: 20px; }
.prose h3 { margin: 32px 0 8px; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; scroll-margin-top: 20px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 5px; }
.prose li::marker { color: var(--lagoon-bright); }

.still { margin: 24px 0 26px; }
.still img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--line); }
.still figcaption { margin-top: 8px; padding-left: 10px; border-left: 2.5px solid var(--mango); font-size: .85rem; line-height: 1.45; color: var(--muted); }

.prose > .legend { max-width: none; }
.prose .news-list { max-width: none; padding: 0; }
.prose .news-list li + li { margin-top: 0; }
.legend {
  padding: 10px 16px; font-size: .9rem; line-height: 2; color: var(--muted);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.toc a {
  padding: 4px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-decoration: none;
  font-family: var(--display); font-weight: 500; font-size: .92rem; background: var(--surface);
}
.toc a:hover { border-color: var(--lagoon-bright); }

.table-scroll { overflow-x: auto; margin: 14px 0; border: 1.5px solid var(--line); border-radius: var(--radius); }
.table-scroll .facts { margin: 0; border: 0; border-radius: 0; }
.facts {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: .98rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.facts th, .facts td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
.facts tbody th { font-weight: 600; width: 36%; font-family: var(--display); }
.facts thead th {
  font-family: var(--display); font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-2);
}
.facts thead + tbody tr:first-child > * { border-top: 1px solid var(--line); }
.starters { font-size: .95rem; }
.starters tbody th, .dex tbody th { width: auto; }
.dex td:first-child { color: var(--muted); width: 2.5em; }
.dex td { white-space: nowrap; }
.dex td:last-child { white-space: normal; }
.sources, .changes { font-size: .95rem; }

/* "More news" under a story: a sand band that runs into the footer */
.more-news { margin-top: 72px; padding: 56px 0 96px; background: var(--bg-2); border-top: 1.5px solid var(--line); }
.more-news .wrap { max-width: 780px; }
.article:has(.more-news) { padding-bottom: 0; }
.article:has(.more-news) + .foot { margin-top: 0; }

/* ---------- Footer ---------- */
.foot { position: relative; margin-top: 120px; padding: 34px 0 40px; background: var(--deeper); color: var(--deep-ink); font-size: .9rem; --mark-cut: var(--deeper); }
.tide-foot { bottom: 100%; margin-bottom: -1px; fill: var(--deeper); }
.foot-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px;
  padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-family: var(--display); font-weight: 500; font-size: .96rem; }
.foot-links a { color: var(--deep-ink); text-decoration: none; opacity: .9; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot-legal { margin: 0; max-width: 96ch; opacity: .74; line-height: 1.55; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .release, .theme-toggle, .nav a, .toc a { transition: background-color .15s, border-color .15s, opacity .15s; }
  .news-list a { transition: border-color .15s, box-shadow .2s, transform .2s; }
  .news-list a:hover { transform: translateY(-2px); }
  .news-img img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .news-list a:hover .news-img img { transform: scale(1.04); }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .board-facts { grid-template-columns: 1fr 1fr; }
  .hero-credit { display: none; }
}
/* Header in two rows: brand and theme switch, then the menu and the release button. */
@media (max-width: 860px) {
  .bar .wrap { gap: 6px 10px; min-height: 0; padding: 9px 0 8px; }
  .bar-end { display: contents; }
  .brand { order: 1; font-size: 1.04rem; }
  .brand svg { width: 34px; height: 34px; }
  .theme-toggle { order: 2; margin-left: auto; width: 34px; height: 34px; }
  .nav { order: 3; flex: 1; margin: 0 0 0 -9px; }
  .release { order: 4; height: 34px; padding: 0 10px 0 8px; font-size: .85rem; }
  .nav a { padding: 6px 9px; font-size: .95rem; }
  .nav a[aria-current="page"]::after { left: 9px; right: 9px; }
  .hero { padding-top: 144px; }
  .page-head { padding-top: 118px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { min-height: 0; padding: 136px 0 150px; }
  .hero-bg { object-position: 70% 40%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(5, 38, 54, .9) 0, rgba(5, 38, 54, .74) 120px, rgba(5, 38, 54, .66) 60%, rgba(5, 38, 54, .5) 100%);
  }
  .hero::after {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 90%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 90%);
  }
  .lede { font-size: 1.06rem; }
  .hero .tide { height: 40px; }
  .board { margin-top: -96px; }
  .board-head, .board-open { padding-inline: 16px; }
  .board-facts > div { padding: 12px 16px 16px; }
  .board-facts dd { font-size: 1.12rem; }
  .board-facts dd.big { font-size: 2.3rem; }
  .board-open .more { margin-left: 0; }

  .section { padding-top: 56px; }
  .band { margin-top: 60px; padding: 48px 0 52px; }
  .tide { height: 28px; }
  .page-head { padding-bottom: 60px; }
  .news-list.wide a { flex-direction: column; }
  .news-list.wide .news-img { width: auto; aspect-ratio: 16 / 9; }
  .news-list.wide .news-body { padding: 16px 20px 18px; }
  .facts th, .facts td { padding: 9px 11px; }
  .facts tbody th { width: 42%; }
  .more-news { padding-bottom: 76px; }
  .foot { margin-top: 88px; }
}
@media (max-width: 440px) {
  .nav .long, .release-label { display: none; }
  .nav .short, .release-short { display: inline; }
  .brand span { font-size: .98rem; }
  .board-open ul { flex-direction: column; gap: 8px; }
}
