/* Transport Commander — the site's look, from the game's menus (scripts/ui/game_theme.gd):
   «Linha de metro» for the pages (each with the colour of its line, stations at the ends of the
   line under the title, Barlow and Barlow Condensed) and «Painel de partidas» for the news (a
   departures board, dot-matrix figures in DotGothic16, titles in capitals in Archivo).
   Light and dark follow the system; site.js can pin one (html[data-theme]). */

@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/archivo-800.woff2") format("woff2"); }
@font-face { font-family: "DotGothic16"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dotgothic16-400.woff2") format("woff2"); }

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;
  /* Linha de metro, light (metro_light) */
  --base: #eef2f3; --panel: #ffffff; --well: #e4eaec; --edge: #c9d4d8;
  --ink: #11242c; --muted: #4c6068; --faint: #6f838a; --on-accent: #ffffff;
  --c-build: #a86300; --c-routes: #c8382b; --c-fleet: #1e66c4; --c-cities: #1a7f4e; --c-company: #6d4bc4;
  --bar: #ffffff; --bar-ink: #11242c;
  /* Painel de partidas, light (board_light): a printed timetable, black head */
  --board-base: #f2f1ec; --board-panel: #ffffff; --board-edge: #d0ccc3; --board-ink: #141414; --board-muted: #57544e;
  --board-amber: #ffb81c; --board-amber-ink: #8f5e00; --board-head: #000000; --board-head-ink: #f4f1e8;
  --shadow: 0 1px 2px rgb(17 36 44 / 0.06), 0 8px 24px rgb(17 36 44 / 0.06);
  --grid: rgb(17 36 44 / 0.05);

  --card-radius: 16px; --button-radius: 12px;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-board: "Archivo", "Barlow", system-ui, sans-serif;
  --font-dots: "DotGothic16", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 46rem;
  --line: var(--c-build);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Linha de metro, dark (metro_dark) */
    --base: #0f1b21; --panel: #172832; --well: #20363f; --edge: #2d4954;
    --ink: #f2efe7; --muted: #a6b8be; --faint: #7f959d; --on-accent: #0f1b21;
    --c-build: #f5a524; --c-routes: #ef5444; --c-fleet: #4a98f2; --c-cities: #33b673; --c-company: #a78bfa;
    --bar: #0f1b21; --bar-ink: #f2efe7;
    --board-base: #0b0b0c; --board-panel: #151517; --board-edge: #303036; --board-ink: #f4f1e8; --board-muted: #aba79f;
    --board-amber-ink: #ffb81c; --board-head: #000000;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    --grid: rgb(242 239 231 / 0.035);
  }
}
:root[data-theme="dark"] {
  --base: #0f1b21; --panel: #172832; --well: #20363f; --edge: #2d4954;
  --ink: #f2efe7; --muted: #a6b8be; --faint: #7f959d; --on-accent: #0f1b21;
  --c-build: #f5a524; --c-routes: #ef5444; --c-fleet: #4a98f2; --c-cities: #33b673; --c-company: #a78bfa;
  --bar: #0f1b21; --bar-ink: #f2efe7;
  --board-base: #0b0b0c; --board-panel: #151517; --board-edge: #303036; --board-ink: #f4f1e8; --board-muted: #aba79f;
  --board-amber-ink: #ffb81c; --board-head: #000000;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  --grid: rgb(242 239 231 / 0.035);
}

/* The colour of a page's or chapter's line. */
.line-build { --line: var(--c-build); }
.line-routes { --line: var(--c-routes); }
.line-fleet { --line: var(--c-fleet); }
.line-cities { --line: var(--c-cities); }
.line-company { --line: var(--c-company); }
.line-board { --line: var(--board-amber); }

/* Scripts without the game's fonts: the system's, after Barlow for the Latin letters. */
:lang(zh-Hans) { --font-body: "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; --font-title: "Barlow Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; --font-board: var(--font-body); }
:lang(ja) { --font-body: "Barlow", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; --font-title: "Barlow Condensed", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; --font-board: var(--font-body); }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { word-break: auto-phrase; }
:lang(hi) { --font-body: "Barlow", "Kohinoor Devanagari", "Nirmala UI", "Mangal", "Noto Sans Devanagari", sans-serif; --font-title: "Barlow Condensed", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; --font-board: var(--font-body); }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; accent-color: var(--line); scroll-padding-top: 76px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--base); color: var(--ink);
  font: 500 1.0625rem/1.6 var(--font-body);
  overflow-wrap: break-word;
}
:lang(hi) body, body:lang(hi) { line-height: 1.75; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link, var(--ink)); text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; }
code { font-family: var(--font-dots); font-size: 0.9em; background: var(--well); padding: 0.05em 0.35em; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--panel); color: var(--ink); padding: 10px 14px; border-radius: var(--button-radius); border: 2px solid var(--line); }
.skip:focus { top: 12px; }
html.no-js .js-only { display: none !important; }

/* ------------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bar) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge); color: var(--bar-ink); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); min-height: 60px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 1.35rem/1 var(--font-title); letter-spacing: 0.01em; margin-right: auto; min-width: 0; }
.brand img { width: 32px; height: 32px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--button-radius); color: var(--muted); text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav-list a:hover { color: var(--ink); background: var(--well); }
.nav-list a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--line) 16%, transparent); }
.nav-list .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); flex: none; }
.nav-list a[aria-current="page"] .dot { background: var(--line); }
.tools { display: flex; align-items: center; gap: 6px; }
.tools summary, .theme-toggle {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; justify-content: center;
  padding: 6px 10px; border-radius: var(--button-radius); border: 1px solid var(--edge); background: var(--well); color: var(--ink);
  font: 700 0.95rem/1 var(--font-body); cursor: pointer;
}
.tools summary::-webkit-details-marker { display: none; }
.tools summary:hover, .theme-toggle:hover { border-color: var(--line); }
details[open] > summary { border-color: var(--line); background: color-mix(in srgb, var(--line) 14%, var(--well)); }
.lang-menu, .nav-menu { position: relative; }
.lang-menu summary [data-icon="chevron-down"] { width: 1em; height: 1em; transition: transform 0.15s; }
.lang-menu[open] summary [data-icon="chevron-down"] { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; min-width: 220px; max-width: calc(100vw - 2 * var(--gutter));
  margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--card-radius); box-shadow: var(--shadow);
  max-height: calc(100vh - 90px); overflow-y: auto;
}
.menu-panel a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.menu-panel a:hover { background: var(--well); }
.menu-panel a[aria-current] { background: color-mix(in srgb, var(--line) 16%, transparent); }
.menu-panel .nav-list { flex-direction: column; gap: 2px; }
.menu-panel .nav-list a { color: var(--ink); display: flex; }
.theme-toggle [data-icon] { display: none; }
.theme-toggle[data-next="light"] [data-icon="sun"], .theme-toggle[data-next="dark"] [data-icon="moon"], .theme-toggle:not([data-next]) [data-icon="sun-moon"] { display: inline; }
.theme-label { display: none; }
.nav-menu summary [data-icon="x"], .nav-menu[open] summary [data-icon="menu"] { display: none; }
.nav-menu[open] summary [data-icon="x"] { display: inline; }
.nav-menu { display: none; }
@media (max-width: 1100px) {
  .nav-main { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 560px) {
  .lang-current { display: none; }
  .lang-menu summary [data-icon="chevron-down"] { display: none; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
}

/* ------------------------------------------------------------------ page */
.content { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.content > h1, .content > p, .content > ul, .content > ol, .content > .updated, .content > .table-wrap, .content > .summary,
.content > .contact-card, .content > .faq, .content > blockquote, .content > .stores, .content > .store-note { max-width: var(--measure); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.12; letter-spacing: 0.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); margin-top: 8px; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); margin: 48px 0 16px; }
h3 { font-size: clamp(1.3rem, 3.4vw, 1.55rem); margin: 32px 0 10px; }
h4 { font-size: 1.15rem; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li { margin: 0 0 8px; }
li::marker { color: var(--line); font-weight: 700; }
li > ul, li > ol { margin-top: 8px; }
.updated { color: var(--muted); font-size: 0.95rem; }

/* The line under a title: the page's colour, a station at each end. */
.line { position: relative; height: 6px; margin: 14px 0 28px; max-width: 360px; }
.line span, .line::before, .line::after { position: absolute; content: ""; }
.line span { left: 8px; right: 8px; top: 1px; height: 4px; border-radius: 2px; background: var(--line); }
.line::before, .line::after { top: -4px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); background: var(--base); }
.line::before { left: 0; }
.line::after { right: 0; }

/* ------------------------------------------------------------------ figures */
.shot { margin: 24px 0; }
.shot img { border-radius: var(--card-radius); border: 1px solid var(--edge); background: var(--well); box-shadow: var(--shadow); width: 100%; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.shot.phone { max-width: 300px; }
.shot.phone img { border-radius: 22px; border: 4px solid var(--ink); }
.shot.strip img { border-radius: 10px; }
.shot.wide { margin: 40px 0; }
.figures { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin: 24px 0; }
.figures .shot { margin: 0; flex: 1 1 360px; min-width: 0; }
.figures .shot.phone { flex: 0 1 200px; }
@media (max-width: 560px) {
  .figures .shot.phone { flex: 1 1 calc(50% - 10px); max-width: none; }
  .figures .shot.phone figcaption { font-size: 0.85rem; }
}

/* ------------------------------------------------------------------ home */
.hero {
  position: relative; display: grid; gap: 28px 40px; align-items: center; grid-template-columns: minmax(0, 1fr);
  margin: -8px 0 16px; padding: 28px clamp(18px, 4vw, 40px) 32px; border-radius: calc(var(--card-radius) + 8px);
  background:
    repeating-linear-gradient(45deg, var(--grid) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--grid) 0 1px, transparent 1px 22px),
    var(--panel);
  border: 1px solid var(--edge); box-shadow: var(--shadow);
}
.hero::before, .hero::after { content: ""; position: absolute; width: 28px; height: 28px; border: 3px solid var(--c-build); pointer-events: none; }
.hero::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.hero::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.hero h1 { margin-top: 0; }
.hero .line { margin-bottom: 20px; }
.hero-text > p:first-of-type { font-size: 1.2rem; }
.hero .shot { margin: 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 44px; }
}
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 18px; border-radius: var(--button-radius); font-weight: 700; line-height: 1.25; text-decoration: none; }
.store .icon { width: 1.4em; height: 1.4em; }
.store-soon { border: 2px dashed var(--edge); color: var(--muted); background: var(--well); cursor: default; }
.store-live { background: var(--c-build); color: var(--on-accent); border: 2px solid var(--c-build); }
.store-live:hover { filter: brightness(1.06); }
.store-badge { padding: 0; min-height: 0; }
.store-badge img { height: 60px; width: auto; }
.store-note { color: var(--muted); font-size: 0.95rem; }

.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 20px 0 8px; }
.feature { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--card-radius); padding: 14px 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature .shot { margin: 0 0 6px; }
.feature .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center; box-shadow: none; border-radius: 10px; }
.feature .shot.phone { max-width: none; }
.feature .shot.phone img { border: 1px solid var(--edge); object-position: center 40%; }
.feature .shot figcaption { display: none; }
.feature h3 { margin: 12px 0 8px; display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--line); flex: none; }
.feature p { margin: 0; color: var(--ink); }
.features .feature:nth-child(1) { --line: var(--c-build); }
.features .feature:nth-child(2) { --line: var(--c-routes); }
.features .feature:nth-child(3) { --line: var(--c-fleet); }
.features .feature:nth-child(4) { --line: var(--c-cities); }
.features .feature:nth-child(5) { --line: var(--c-routes); }
.features .feature:nth-child(6) { --line: var(--c-company); }

.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; margin: 16px 0; }
.split .shot { margin: 0 auto; }
@media (min-width: 760px) { .split { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; } .split .shot { margin: 0; } }

/* ------------------------------------------------------------------ Como jogar */
.toc { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--card-radius); padding: 18px 18px 8px; margin: 24px 0 8px; box-shadow: var(--shadow); max-width: 860px; }
.aside-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 1.1rem/1.2 var(--font-title); letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.metro { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 28px; }
.metro li { position: relative; margin: 0; padding: 0 0 0 0; break-inside: avoid; }
.metro li::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 4px; background: var(--line); }
.metro a { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 0; min-height: 46px; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 10px; }
.metro a:hover .text { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.metro .station, .chapter h2 .station {
  position: relative; z-index: 1; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel); border: 4px solid var(--line); font: 700 1rem/1 var(--font-title); color: var(--ink);
}
.metro .icon { color: var(--line); }
.chapter { position: relative; padding-left: 52px; margin-top: 8px; }
.chapter::before { content: ""; position: absolute; left: 17px; top: 56px; bottom: -8px; width: 4px; border-radius: 2px; background: color-mix(in srgb, var(--line) 55%, transparent); }
.chapter h2 { display: flex; align-items: center; gap: 14px; margin-left: -52px; padding-top: 24px; }
.chapter h2 .station { width: 38px; height: 38px; font-size: 1.15rem; }
.chapter > :not(h2) { max-width: var(--measure); }
.chapter > .figures, .chapter > .shot:not(.phone):not(.strip) { max-width: 900px; }
.chapter > .shot.strip { max-width: 640px; }
.page-home .chapter { padding-left: 0; }
.page-home .chapter::before { display: none; }
.page-home .chapter h2 { margin-left: 0; }
.page-home .chapter > :not(h2), .page-home .chapter > .shot.wide { max-width: none; }
@media (max-width: 560px) {
  .chapter { padding-left: 30px; }
  .chapter::before { left: 9px; top: 52px; }
  .chapter h2 { margin-left: -30px; gap: 10px; }
  .chapter h2 .station { width: 22px; height: 22px; border-width: 3px; font-size: 0; }
}
.gestures { margin: 24px 0; padding: 16px 18px 6px; background: var(--well); border-radius: var(--card-radius); border-left: 5px solid var(--line); max-width: var(--measure); }
.gestures .aside-title { color: var(--ink); }
.gestures .aside-title .icon { color: var(--line); }
.gestures ul { padding-left: 1.2em; }
.summary, .note { background: var(--panel); border: 1px solid var(--edge); border-left: 5px solid var(--line); border-radius: var(--card-radius); padding: 16px 18px 4px; margin: 20px 0 28px; box-shadow: var(--shadow); }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--edge); border-radius: var(--card-radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--edge); }
thead th { background: var(--well); font-weight: 700; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }
@media (max-width: 560px) { th, td { padding: 8px; } table { font-size: 0.9rem; } }

/* ------------------------------------------------------------------ Apoio */
.faq { margin: 8px 0 24px; display: grid; gap: 10px; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.faq-item { min-width: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--card-radius); }
.faq-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; font: 700 1.1rem/1.3 var(--font-body); border-radius: var(--card-radius); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .icon { color: var(--line); transition: transform 0.15s; }
.faq-item[open] > summary .icon { transform: rotate(180deg); }
.faq-item[open] > summary { border-bottom: 1px solid var(--edge); border-radius: var(--card-radius) var(--card-radius) 0 0; }
.faq-item .answer { padding: 14px 16px 4px; }
.page-support .chapter { padding-left: 0; }
.page-support .chapter::before { display: none; }
.page-support .chapter h2 { margin-left: 0; }

/* ------------------------------------------------------------------ Contacto */
.contact-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin: 8px 0 24px; background: var(--panel); border: 1px solid var(--edge); border-left: 5px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--shadow); font-size: 1.15rem; }
.contact-card > .icon { width: 1.8em; height: 1.8em; color: var(--line); }
.contact-card p { margin: 0; }
.contact-card a { word-break: break-all; }

/* ------------------------------------------------------------------ Novidades: a departures board */
.page-news h1 { font-family: var(--font-board); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.board { margin: 28px 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--board-edge); background: var(--board-panel); color: var(--board-ink); font-family: var(--font-board); max-width: 980px; }
.board-head { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 12px 18px; background: var(--board-head); color: var(--board-head-ink); font: 800 0.85rem/1 var(--font-board); text-transform: uppercase; letter-spacing: 0.08em; }
.departures { list-style: none; margin: 0; padding: 0; }
.departure { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; margin: 0; padding: 16px 18px; border-top: 1px solid var(--board-edge); }
.departure:nth-child(even) { background: color-mix(in srgb, var(--board-base) 60%, var(--board-panel)); }
.when { display: flex; flex-direction: column; gap: 4px; }
.version { font: 400 1.6rem/1 var(--font-dots); color: var(--board-amber-ink); letter-spacing: 0.04em; }
.when time { font: 400 0.95rem/1.2 var(--font-dots); color: var(--board-muted); }
.departure .notes { margin: 0; font-weight: 500; line-height: 1.55; }
.fallback { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--board-muted); }
@media (max-width: 640px) {
  .board-head { display: none; }
  .departure { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .when { flex-direction: row; align-items: baseline; gap: 12px; }
}

/* ------------------------------------------------------------------ footer */
.footer { background: var(--panel); border-top: 1px solid var(--edge); color: var(--muted); font-size: 0.95rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 40px; display: grid; gap: 14px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand p { margin: 0; }
.footer-name { font: 700 1.3rem/1.1 var(--font-title); color: var(--ink); }
.footer-links { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links li { margin: 0; }
.footer-links a { color: var(--ink); font-weight: 700; text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-mail { display: flex; align-items: center; gap: 8px; margin: 0; }
.footer-mail a { color: var(--ink); font-weight: 700; word-break: break-all; }
.footer-note, .footer-legal { margin: 0; }
.footer-legal a { color: var(--muted); }

/* ------------------------------------------------------------------ 404 and licences */
.not-found { max-width: 760px; }
.code-404 { font: 400 clamp(4rem, 18vw, 8rem)/1 var(--font-dots); color: var(--c-build); margin: 12px 0 0; }
.not-found-list { list-style: none; padding: 0; }
.not-found-list li { padding: 8px 0; border-bottom: 1px solid var(--edge); }
.licence { white-space: pre-wrap; font-size: 0.8rem; line-height: 1.45; background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 14px; overflow-x: auto; max-width: 60rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .topbar, .footer, .tools, .stores, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
