/* Station pages — signage design (2026-10 redesign).
   Generated markup comes from build-stations.js. Rules: .claude/skills/bengalurumetro-design/SKILL.md
   Line colour is the only saturated hue; everything else is neutral. System font only. */

:root {
  --l-purple: #7b3a92; --l-purple-ink: #ffffff;
  --l-green: #00874a;  --l-green-ink: #ffffff;
  --l-yellow: #f2c200; --l-yellow-ink: #1d1a10;
  --exit: #f2c200;     --exit-ink: #1d1a10;

  --ink: #16141a; --ink-2: #4b4752; --ink-3: #6f6a76;
  --bg: #fbfaf8; --panel: #f1efec; --rule: #dcd8d2; --card: #ffffff;
  --board: #14121a; --board-ink: #f6c84b; --board-dim: #a39fb0; --board-rule: #2a2733;
  --ad: #eeece8; --link: #1f5fa8; --focus: #1f6fb5;

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-board: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light; /* light-only until the whole site has a dark theme */
}

/* line theming: set on <body class="st l-purple"> */
.l-purple { --line: var(--l-purple); --line-ink: var(--l-purple-ink); }
.l-green  { --line: var(--l-green);  --line-ink: var(--l-green-ink); }
.l-yellow { --line: var(--l-yellow); --line-ink: var(--l-yellow-ink); }

/* ---------- base + mobile-native baseline ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; font-size: 93.75%; } /* 15px base at default settings; % keeps the reader's browser text-size setting working */
body.st { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.5 var(--font-ui); }
.st a { color: var(--link); text-underline-offset: 3px; }
.st a, .st button, .st summary { touch-action: manipulation; }
.st :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.st h1, .st h2, .st h3 { margin: 0; text-wrap: balance; }
.st p { margin: 0; }
.st ul, .st ol { margin: 0; padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 720px; margin: 0 auto; padding-inline: 16px; }
.press { transition: transform 120ms var(--ease-out); }
.press:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .press { transition: none; }
  .press:active { transform: none; }
}

/* ---------- site header ---------- */
.st-site { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
.st-site .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.st-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; color: var(--ink) !important; text-decoration: none; min-height: 44px; }
.st-logo-mark { display: inline-flex; gap: 2px; }
.st-logo-mark i { width: 6px; height: 18px; border-radius: 2px; display: block; }
.st-site nav { margin-left: auto; display: flex; }
.st-site nav a { color: var(--ink-2); text-decoration: none; font-size: .875rem; padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .st-site nav a:hover { color: var(--ink); } }
@media (max-width: 420px) { .st-site nav a.opt { display: none; } }

/* ---------- 1. signage band ---------- */
.st-band { background: var(--line); color: var(--line-ink); }
.st-band .wrap { padding-block: 18px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; }
.st-band .st-eyebrow { align-self: center; }
.st-band .st-title { grid-column: 1 / -1; min-width: 0; }
.st-eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.st-band h1 { hyphens: manual; margin-top: 6px; font-weight: 600; font-size: .9375rem; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
.st-band h1 .st-name { display: block; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin-bottom: 6px; }
.st-band h1.is-long .st-name { font-size: clamp(1.4rem, 6.5vw, 2.6rem); }
.st-band h1 .st-h1-rest { display: block; opacity: .92; }
.st-code { border: 2px solid currentColor; border-radius: 8px; padding: 5px 8px; text-align: center; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; line-height: 1; }
.st-code small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; margin-top: 4px; opacity: .85; }

.st-crumbs { font-size: .8125rem; color: var(--ink-3); padding-top: 2px; }
.st-crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.st-maplink { display: inline-flex; align-items: center; min-height: 44px; }
.st-intro { color: var(--ink-2); font-size: .9375rem; margin-bottom: 4px !important; max-width: 65ch; }
.st .st-h2 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 28px 0 8px; font-weight: 700; scroll-margin-top: 116px; }
.st .st-h3 { font-size: .9375rem; margin: 14px 0 0; }

/* ---------- jump bar (sticky under the header) ---------- */
.st-jump { position: sticky; top: 57px; z-index: 19; background: var(--bg); border-bottom: 1px solid var(--rule); }
.st-jump .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.st-jump .wrap::-webkit-scrollbar { display: none; }
.st-jump .wrap::after { content: ""; flex: 0 0 10px; } /* end spacer so the last pill clears the fade */
@media (max-width: 760px) { .st-jump .wrap { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); } }
.st-jump a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink) !important; text-decoration: none; font-size: .875rem; font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .st-jump a:hover { border-color: var(--line); } }
.st-jump a:active { background: var(--panel); }

/* ---------- 2. departures board ---------- */
.st-board { background: var(--board); color: var(--board-ink); border-radius: 8px; padding: 6px 16px; font-family: var(--font-board); }
.st-board-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--board-rule); align-items: baseline; }
.st-board-row:last-child { border-bottom: 0; }
.st-board-row > span { color: var(--board-dim); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.st-board-row b { font-size: 1.15rem; font-weight: 700; text-align: right; }
.st-board-row em { display: block; font-style: normal; font-weight: 400; color: var(--board-dim); font-size: .75rem; text-align: right; }
@media (max-width: 359px) {
  .st-board-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .st-board-row b, .st-board-row em { text-align: left; }
}
.st-board-note { font-size: .8125rem; color: var(--ink-3); margin-top: 8px; }

/* ---------- 3. exits ---------- */
.st-exits { margin-top: 6px; }
.st-sign { width: 40px; height: 40px; flex-shrink: 0; border-radius: 6px; background: var(--exit); color: var(--exit-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; line-height: 1; }
.st-exit { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 72px; }
.st-exit h3 { font-size: .9375rem; line-height: 1.35; }
.st-exit p { color: var(--ink-2); font-size: .875rem; margin-top: 2px; }
.st-exit p.st-exit-fac { color: var(--ink-3); font-size: .8125rem; }
.st-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-exit:target { background: var(--panel); border-radius: 8px; padding-inline: 8px; }

/* ---------- 4. line strip ---------- */
.st-strip li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; position: relative; }
.st-strip li::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 4px; background: var(--line); }
.st-strip li:first-child::before { top: 50%; }
.st-strip li:last-child::before { bottom: 50%; }
.st-strip li.gap::before { background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 11px); }
.st-strip .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); position: relative; z-index: 1; margin-left: 7px; }
.st-strip .here .dot { width: 22px; height: 22px; margin-left: 3px; background: var(--line); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.st-strip .ix .dot { width: 20px; height: 20px; margin-left: 4px; border-width: 4px; border-color: var(--ink); }
.st-strip a, .st-strip .nm { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 11px; min-width: 0; }
.st-strip .here .nm { font-weight: 800; }
.st-strip .meta { font-size: .8125rem; color: var(--ink-3); text-align: right; }
.st-strip .gap .nm { color: var(--ink-3); font-size: .8125rem; font-weight: 400; padding-block: 0; }
.st-strip small { display: block; font-size: .75rem; color: var(--ink-3); font-weight: 400; }
.st-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- ads: framed as ads, fixed space ---------- */
.st-ad { margin-block: 32px; background: var(--ad); border: 1px dashed var(--rule); border-radius: 4px; padding: 8px; min-height: 280px; }
.st-ad .ad-unit__label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: center; margin-bottom: 6px; }

/* ---------- facts ---------- */
.st-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.st-facts > div { padding: 8px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.st-facts > div.wide { grid-column: 1 / -1; }
.st-facts dt { font-size: .75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.st-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; }
.st-chips li { font-size: .8125rem; font-weight: 500; background: var(--panel); border-radius: 4px; padding: 3px 8px; }
.st-chips li span { font-weight: 400; color: var(--ink-3); }

/* ---------- lists: transport, tips, crowd, places ---------- */
.st-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: .9375rem; }
.st-list li b { color: var(--ink); }
.st-prose p { color: var(--ink-2); margin-top: 10px; max-width: 65ch; }
.st-fold details[open] { padding-bottom: 6px; }
.st-fold summary h3 { font-size: .9375rem; }
.st-count { margin-left: 8px; font-size: .75rem; color: var(--ink-3); background: var(--panel); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.st-fold .st-list li:last-child, .st-fold .st-place:last-child { border-bottom: 0; }
.st-place { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.st-place-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; }
.st-place-top b { min-width: 0; }
.st-place-top span { color: var(--ink-3); font-size: .8125rem; }
.st-place p { color: var(--ink-2); font-size: .9rem; margin-top: 3px; }

/* ---------- FAQ ---------- */
.st details { border-top: 1px solid var(--rule); }
.st-faq, .st-fold { border-bottom: 1px solid var(--rule); }
.st-fold > .st-h3 + .st-list { margin-bottom: 4px; }
.st summary { cursor: pointer; list-style: none; position: relative; padding: 14px 32px 14px 0; min-height: 44px; user-select: none; -webkit-user-select: none; }
.st summary::-webkit-details-marker { display: none; }
.st summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 1.25rem; color: var(--ink-3); }
.st details[open] summary::after { content: "\2013"; }
.st summary h3 { display: inline; font-size: 1rem; font-weight: 600; }
.st details p { color: var(--ink-2); padding-bottom: 14px; }

/* ---------- tools + footer ---------- */
.st-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; border-top: 1px solid var(--rule); }
@media (min-width: 600px) { .st-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-tools a { display: flex; align-items: center; min-height: 48px; padding: 6px 0; font-size: .9rem; line-height: 1.3; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; color: var(--ink) !important; }
.st-tools a::after { content: "\2192"; margin-left: auto; padding-left: 12px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .st-tools a:hover { color: var(--link) !important; } }

.st-foot { margin-top: 48px; border-top: 1px solid var(--rule); padding-block: 24px 40px; font-size: .875rem; color: var(--ink-3); }
.st-foot h2 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-3); }
.st-foot ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.st-foot li a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 12px; color: var(--ink-2); text-decoration: none; }
.st-foot p { margin-top: 12px; }
.st-band .st-name-vis { font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin-top: 6px; overflow-wrap: break-word; }
.st-band .st-name-vis.is-long { font-size: clamp(1.4rem, 6.5vw, 2.6rem); }
.st-band h1.is-xlong .st-name, .st-band .st-name-vis.is-xlong { font-size: clamp(1.35rem, 6.2vw, 2.2rem); }
.st-band h1 .st-name, .st-band .st-name-vis { overflow-wrap: break-word; }
