/* Trainways support site. Tokens follow the Trainways design system (docs/DESIGN.md). */
:root {
  --land: #F7F5F0;
  --panel: #FFFFFF;
  --ink: #1D1D1F;
  --muted: #55565A;
  --hairline: #D9D3C8;
  --signal: #D8232A;
  --line2: #2E70E6;
  --line4: #2BA36B;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --land: #141416; --panel: #1D1D20; --ink: #F2F0EA; --muted: #A9A8A3;
    --hairline: #34343A; --signal: #EF3B45; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--land); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
.wrap {
  max-width: 720px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 32px 56px;
  display: grid; gap: 40px;
}
header { display: grid; gap: 16px; border-top: 6px solid var(--signal); padding-top: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 7vw, 52px); line-height: 1; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.lede { color: var(--muted); margin: 0; max-width: 60ch; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.seg button { font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 14px; min-height: 40px; background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--land); }
.toolbar a { font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 12px 10px; border-bottom: 2px solid transparent; }
.toolbar a:hover, .toolbar a[aria-current="page"] { border-bottom-color: var(--ink); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
section { display: grid; gap: 16px; }
.label { display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label i { display: inline-block; width: 36px; height: 6px; border-radius: 3px; background: var(--c); }
.label .no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; letter-spacing: 0; }
h2 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0; }
p { margin: 0; max-width: 65ch; }
.stack { display: grid; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--hairline); border-radius: 4px; padding: 18px 20px; display: grid; gap: 8px; }
details { background: var(--panel); border: 1px solid var(--hairline); border-radius: 4px; }
summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--display); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
details[open] summary::after { content: "−"; }
details > div { padding: 0 20px 18px; display: grid; gap: 8px; }
.mail { font: 600 16px/1.2 var(--mono); color: var(--ink); background: var(--land); border: 1px solid var(--hairline); border-radius: 4px; padding: 12px 14px; text-decoration: none; overflow-wrap: anywhere; justify-self: start; }
.mail:hover { border-color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { border-top: 3px solid var(--ink); padding-top: 10px; display: grid; gap: 4px; }
.fact b { font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fact span { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: 62ch; }
a { color: inherit; text-underline-offset: 3px; }
.meta { font: 500 12px/1.5 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
footer { border-top: 1px solid var(--hairline); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
/* Scoped to body: the root <html> carries lang="de" too, and must never be hidden. */
body [lang="de"] { display: none; }
html.de body [lang="de"] { display: revert; }
html.de body [lang="en"] { display: none; }
