/* RailNow light-only foundation. Device artwork and illustrations are real assets. */
:root{color-scheme:only light;--bg:#fff;--surface:#fff;--ink:#171717;--muted:#696969;--red:#cc3523;--line:#e8e8e8;--soft:#f7f7f7;--focus:#992619;--shadow:0 14px 36px #0000000a}
*{box-sizing:border-box}
/* No global smooth scrolling: it animated every jump, including the ones the
   pinned stage drives, and kept the page laying out for the whole animation.
   The controller asks for `behavior:'smooth'` on the links and scene buttons
   that want it, and never under Reduced Motion. */
html{scroll-padding-top:90px;-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--ink);font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
a{color:inherit;text-underline-offset:4px}
a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:5px;border-radius:5px}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{line-height:1.13;font-weight:720;letter-spacing:-.045em;text-wrap:balance}
/* CJK headings must never split inside a word. keep-all makes a run of Han
   behave like one word, so a line breaks at punctuation instead of mid-phrase;
   overflow-wrap still rescues a run that genuinely cannot fit. Body copy keeps
   normal CJK wrapping — this is scoped to headings only. */
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3,
:lang(ja) h1,:lang(ja) h2,:lang(ja) h3,
:lang(ko) h1,:lang(ko) h2,:lang(ko) h3{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
h1{font-size:clamp(38px,4.8vw,68px)}
h2{font-size:clamp(29px,3.2vw,44px)}
h3{font-size:28px;letter-spacing:-.025em}
p{overflow-wrap:break-word}
.red,.brand .red{color:#cc3523}
.secondary,.fine{color:var(--muted)}
.fine{font-size:12px}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--red);margin-bottom:18px}
.section{max-width:1160px;margin:0 auto;padding:80px 28px}
.section-heading{max-width:740px;margin-bottom:32px}
.section-heading>p:last-child{margin-top:18px}
.site-header{position:relative;z-index:5;max-width:1390px;margin:auto;padding:14px 34px;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px}
.header-slot{height:76px}
/* The compact state changes width, padding and offset, so it switches at once
   instead of being transitioned: animating those properties relaid out the
   fixed header — and everything measuring against it — on every frame. */
.site-header{position:fixed;top:0;left:50%;transform:translateX(-50%);width:100%;background:#fffffff2;border:1px solid transparent;border-radius:0;z-index:50}
.site-header.is-compact{top:12px;max-width:940px;width:calc(100% - 32px);min-height:56px;padding:6px 20px;gap:20px;border-radius:99px;border-color:#e9e9e9;background:#fffffff5;box-shadow:0 8px 30px #0000000c;backdrop-filter:blur(14px)}
.site-header.is-compact .wordmark{width:137px;height:30px}
.site-header.is-compact .primary-nav{gap:24px}
.mobile-menu{display:none;position:relative;font-size:13px}
.mobile-menu summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px;list-style:none}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu nav{position:absolute;top:48px;right:0;width:180px;display:grid;padding:10px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.mobile-menu a{padding:10px;text-decoration:none}
.brand{display:inline-flex;align-items:center;text-decoration:none;flex-shrink:0}
.brand .wordmark{display:block;width:208px;height:44px;object-fit:cover;object-position:center;border:0;border-radius:0;margin:0}
.primary-nav{display:flex;gap:30px;font-size:14px;margin-left:auto}
.primary-nav a{text-decoration:none;padding:10px 0}
.primary-nav a:hover{color:var(--red)}
.languages{position:relative;font-size:14px}
.languages summary{list-style:none;cursor:pointer;padding:10px 12px;border-radius:9px;min-height:44px;white-space:nowrap}
.languages summary::-webkit-details-marker{display:none}
.languages nav{position:absolute;right:0;top:48px;width:300px;max-width:86vw;display:grid;grid-template-columns:1fr 1fr;background:#fff;padding:12px;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}
.languages nav a{padding:10px;border-radius:7px;text-decoration:none}
.languages nav a:hover,.languages nav [aria-current]{background:#f6f6f6;color:var(--red)}
.skip{position:fixed;top:-120px;left:16px;z-index:20;padding:12px;background:#fff}
.skip:focus{top:12px}
.lead{font-size:20px;line-height:1.6;color:var(--muted)}
.button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:12px 27px;border-radius:99px;background:var(--red);color:#fff;text-decoration:none;font-size:16px;font-weight:600;transition:background .18s}
.button:hover{background:#af2a1b}
.secondary-button{background:#fff;color:var(--ink);border:1px solid var(--line)}
.secondary-button:hover{background:#f8f8f8}
.coming{font-size:12px;color:var(--muted)}
.coming span+span{margin-left:14px}
.site-footer{max-width:1104px;margin:0 auto;padding:30px 0 26px;border-top:1px solid var(--line)}
.footer-top{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:18px}
.site-footer .brand .wordmark{width:154px;height:32px}
.site-footer nav{display:flex;flex-wrap:wrap;gap:22px;font-size:13px}
.site-footer nav a{text-decoration:none;min-height:44px;display:flex;align-items:center;gap:5px}
.site-footer>p{font-size:13px;margin-top:5px}
.site-footer .fine{font-size:11px}
.legal-lang{font-size:9px;color:var(--muted)}
.text-page{min-height:65vh;max-width:850px}
.text-page .lead{max-width:700px;margin-top:26px}
.text-page article{margin-top:42px;padding:28px;border:1px solid var(--line);border-radius:20px;background:#fff}
.text-page article h2{font-size:24px;margin:0 0 15px}
.text-page article h2:not(:first-child){margin-top:30px}
.text-page article a{color:var(--red)}
.text-page>.button{margin-top:30px}
.about-icon{border-radius:24px;border:1px solid var(--line);margin-bottom:30px}
/* Open-data credits: one discreet block at the foot of the About page. */
.sources{max-width:850px;padding-top:0}
.sources h2{font-size:22px;margin-bottom:12px}
.sources .secondary{font-size:14px;max-width:640px}
.source-list{list-style:none;margin:22px 0 16px;padding:0;display:grid;gap:0}
.source-list li{display:grid;grid-template-columns:auto minmax(0,150px) minmax(0,1fr);gap:4px 12px;align-items:baseline;padding:12px 0;border-top:1px solid var(--line);font-size:13px}
.source-list strong{font-weight:600}
/* Each credited source is an element of its own, held apart by spacing, so the
   list needs no separator character between the names. */
.source-list .credits{display:flex;flex-wrap:wrap;gap:2px 16px;color:var(--muted);overflow-wrap:anywhere}
.page{max-width:800px;margin:auto;padding:40px 28px 60px;background:#fff}
.page header{margin-bottom:35px}
.page header .eyebrow{margin-top:36px}
.page .summary,.page .meta{color:var(--muted);margin-top:20px}
.page .meta{font-size:13px}
.page article{background:#fff;border:1px solid var(--line);border-radius:22px;padding:32px}
.page h1{font-size:48px}
.page h2{font-size:23px;letter-spacing:-.02em;margin:28px 0 12px}
.page h2:first-child{margin-top:0}
.page .pagenav{display:flex;gap:18px;flex-wrap:wrap;margin-top:30px;font-size:13px}
.page footer{font-size:12px;color:var(--muted);margin-top:25px}
.page article a{color:var(--red)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){
 .site-header{padding:12px 24px;gap:16px}
 .primary-nav{gap:20px}
 .primary-nav a:nth-child(2){display:none}
 .site-footer{margin:0 28px}
 .section{padding-top:64px;padding-bottom:64px}
}
@media(max-width:600px){
 .header-slot{height:65px}
 .site-header,.site-header.is-compact{gap:8px;padding:6px 12px}
 .site-header.is-compact{top:8px;width:calc(100% - 20px);min-height:54px}
 .site-header .brand .wordmark,.site-header.is-compact .brand .wordmark{width:128px;height:30px}
 .mobile-menu{display:block;margin-left:auto}
 .site-header .languages summary{max-width:100px;overflow:hidden;text-overflow:ellipsis}
 .site-header{min-height:65px}
 .brand .wordmark{width:152px;height:34px}
 .primary-nav{display:none}
 .languages summary{padding:10px 6px;font-size:13px}
 .section{padding:48px 24px}
 .lead{font-size:16px}
 /* On a phone the hero H1 is around 32px, so a 29px H2 would outrank it and a
    28px H3 would outrank both. Scale the lower levels back into order — which
    also keeps a long Japanese clause on one line at 360px. */
 h2{font-size:clamp(23px,6vw,34px)}
 h3{font-size:22px}
 .source-list li{grid-template-columns:auto minmax(0,1fr)}
 .source-list .credits{grid-column:2}
 .footer-top{align-items:flex-start;flex-direction:column;gap:13px}
 .site-footer nav{gap:16px}
 .site-footer{margin:0 24px}
 .text-page h1{font-size:39px}
 .page{padding:26px 20px}
 .page article{padding:24px}
 .page h1{font-size:38px}
}
@media(max-width:360px){.site-header .brand .wordmark,.site-header.is-compact .brand .wordmark{width:108px;height:26px}.site-header .languages summary{max-width:88px}}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{transition:none!important;animation:none!important}
}
