/* Shree Sainath Bal Vinay Mandir: "हर दिन, आगे की ओर" (Indian Railways station, bilingual).
   Palette pinned by the brief: ground #F2F0EA, ink #14171C, board black #1A1D21, signal amber #F2A900,
   platform green #2F7D4A, rail blue #2B4C8C. Martel (display) + Palanquin (body), both with Devanagari. */
:root {
  --ground: #F2F0EA;
  --ground-2: #E7E3D8;
  --paper: #FFFDF6;
  --rule: #CBC5B6;
  --ink: #14171C;
  --ink-2: #474C55;
  --board: #1A1D21;
  --board-2: #24282E;
  --board-line: #30353D;
  --board-text: #E9E7E2;
  --board-mute: #AEB4BC;
  --amber: #F2A900;
  --amber-hi: #FFBE24;
  --amber-ink: #6B4E00;
  --amber-on-blue: #FFCB45;
  --green: #2F7D4A;
  --green-tint: #E5F1E8;
  --blue: #2B4C8C;
  --blue-2: #203B6F;
  --blue-tint: #E4EAF4;
  --alu: #DCE1E8;
  --error: #A8241C;
  --display: "Martel", "Noto Serif Devanagari", Georgia, serif;
  --body: "Palanquin", "Noto Sans Devanagari", system-ui, sans-serif;
  --r: 6px;
  --shadow: 0 18px 36px -22px rgba(20, 23, 28, .55);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scrollbar-color: var(--blue) var(--ground-2); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-variant-numeric: lining-nums;
  caret-color: var(--blue);
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-2); text-decoration-thickness: 2.5px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; }
[lang="hi"] { font-feature-settings: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.site-head :focus-visible, .dep-board :focus-visible, .site-foot :focus-visible, .tt-sec :focus-visible,
.facts-band :focus-visible, .train-sec :focus-visible, .expect-sec :focus-visible, .act-bar :focus-visible,
.enquiry-window :focus-visible, .lightbox :focus-visible { outline-color: var(--amber); }
.ic { width: 20px; height: 20px; flex: none; }
.container { position: relative; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--r);
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: var(--r); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-hi); border-color: var(--amber-hi); color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-ghost { background: transparent; color: #fff; border-color: #6A707A; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- header: platform-sign bar ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--blue); color: #fff;
  box-shadow: inset 0 -4px 0 var(--blue-2);
}
.head-row { display: flex; align-items: center; gap: 16px; min-height: 72px; padding-top: 8px; padding-bottom: 10px; }
.brand { flex: none; display: block; border-radius: var(--r); }
.brand img { height: 44px; width: auto; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.sign {
  display: flex; flex-direction: column; align-items: flex-start; padding: 5px 11px 6px;
  color: #fff; text-decoration: none; border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.sign:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.sign-hi { font: 600 .8125rem/1.3 var(--body); opacity: .92; }
.sign-en { font: 700 .9375rem/1.25 var(--body); }
.sign[aria-current="page"] { background: var(--amber); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--amber); }
.head-call {
  display: none; align-items: center; gap: 8px; flex: none;
  background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: var(--r);
  font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums;
}
.head-call:hover { background: var(--amber-hi); color: var(--ink); }
.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 8px 14px; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6);
  border-radius: var(--r); font: 700 1rem var(--body); cursor: pointer;
}
.menu-btn:hover { border-color: #fff; }
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .head-call { display: inline-flex; }
  .menu-btn { display: none; }
}
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .head-row { gap: 10px; }
  .menu-btn { padding: 8px 10px; }
}
@media (max-width: 359px) { .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- phone menu: a journey ticket ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 23, 28, .55); opacity: 0; transition: opacity .3s ease; }
.sheet-scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; top: 10px; right: 10px; bottom: 10px; width: min(400px, calc(100vw - 20px));
  background: var(--paper); color: var(--ink); border-radius: 14px; overflow-y: auto;
  padding: 18px 22px 22px 30px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  transform: translateX(110%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
  /* perforated left edge */
  -webkit-mask: radial-gradient(circle at 0 10px, transparent 5px, #000 5.5px) 0 0 / 100% 20px repeat-y;
          mask: radial-gradient(circle at 0 10px, transparent 5px, #000 5.5px) 0 0 / 100% 20px repeat-y;
}
.sheet.open { transform: none; }
.sheet::before {
  content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 2px dashed var(--rule);
}
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ticket-title { margin: 0; font: 800 1.125rem/1.3 var(--display); }
.ticket-title span { display: block; font-size: .875rem; color: var(--ink-2); font-family: var(--body); font-weight: 600; }
.sheet-close {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px;
  background: transparent; border: 2px solid var(--ink); border-radius: var(--r); color: var(--ink);
  font: 700 .9375rem var(--body); cursor: pointer;
}
.ticket-route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; font-size: .9375rem; color: var(--ink-2); }
.ticket-route strong { color: var(--ink); }
.stops { list-style: none; margin: 8px 0 18px; padding: 0 0 0 4px; position: relative; }
.stops::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 6px; background: repeating-linear-gradient(180deg, var(--ink) 0 14px, #fff 14px 28px); border: 1.5px solid var(--ink); border-radius: 3px; }
.stop {
  position: relative; display: flex; flex-direction: column; padding: 9px 8px 9px 42px; color: var(--ink);
  text-decoration: none; border-radius: var(--r);
}
.stop::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: #fff; border: 4px solid var(--ink); border-radius: 50%;
}
.stop:hover { background: var(--ground-2); color: var(--ink); }
.stop .sign-hi { font-size: .875rem; color: var(--ink-2); opacity: 1; }
.stop .sign-en { font: 800 1.1875rem/1.3 var(--display); }
.stop[aria-current="page"]::before { background: var(--amber); }
.stop[aria-current="page"] .sign-en { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.ticket-foot { display: grid; gap: 10px; padding-top: 14px; border-top: 2px dashed var(--rule); }
body.sheet-open { overflow: hidden; }

/* ---------- section signs (platform signs) ---------- */
.sec-sign {
  display: inline-flex; flex-direction: column; gap: 2px; margin: 0 0 18px;
  background: var(--blue); color: #fff; padding: 10px 20px 12px; border-radius: var(--r);
  box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 5px rgba(255, 255, 255, .85), var(--shadow);
}
.ss-hi { font: 700 .95rem/1.4 var(--body); opacity: .95; }
.ss-en { font: 800 clamp(1.5rem, 2.6vw, 2.125rem)/1.2 var(--display); }
.sec-sign-dark { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--blue); }
.sec-lead { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.sec-lead-dark, .band-lead { color: var(--board-text); }
.bi { display: inline-flex; flex-direction: column; }
.bi-hi { font-size: .82em; font-weight: 600; opacity: .85; }
.more { margin-top: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-arrow .ic { transition: transform .2s ease; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- TBC placeholders ---------- */
.tbc {
  border: 2px dashed #A88218; background: rgba(242, 169, 0, .09); border-radius: var(--r);
  padding: 14px 16px; color: var(--ink-2); margin: 0 0 1rem;
}
.tbc-k { display: block; font-weight: 700; color: var(--amber-ink); margin-bottom: 2px; }
.tt-sec .tbc, .train-sec .tbc, .expect-sec .tbc { border-color: var(--amber); background: rgba(242, 169, 0, .08); color: var(--board-text); }
.tt-sec .tbc-k, .train-sec .tbc-k, .expect-sec .tbc-k { color: var(--amber); }
.mini-tbc { display: inline-block; font: 700 .75rem/1 var(--body); padding: 4px 6px 3px; border: 1.5px dashed var(--amber-ink); color: var(--amber-ink); border-radius: 4px; vertical-align: 2px; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 64px; }
.nb-wrap { padding-bottom: 26px; position: relative; }
.nameboard {
  position: relative; background: var(--amber); color: var(--ink); text-align: center;
  border-radius: var(--r); padding: 14px 20px 12px;
  box-shadow: inset 0 0 0 6px var(--amber), inset 0 0 0 9px var(--ink), 0 22px 30px -24px rgba(20, 23, 28, .7);
}
.nameboard::before, .nameboard::after {
  content: ""; position: absolute; top: 100%; width: 14px; height: 26px;
  background: var(--ink); border-radius: 0 0 2px 2px;
}
.nameboard::before { left: 14%; }
.nameboard::after { right: 14%; }
.nb-name { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nb-hi { font: 800 clamp(1.75rem, 5.6vw, 3.5rem)/1.25 var(--display); letter-spacing: -.005em; }
.nb-en { font: 700 clamp(.875rem, 2.2vw, 1.625rem)/1.25 var(--body); letter-spacing: .08em; }
.nb-sub { display: flex; justify-content: center; gap: 14px; margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--ink); font-weight: 700; font-size: clamp(.8125rem, 1.6vw, 1rem); }
.nb-sub span + span { padding-left: 14px; border-left: 2px solid var(--ink); }
.nameboard-sm { margin-bottom: 40px; }
.nameboard-sm .nb-hi { font-size: clamp(1.5rem, 3.6vw, 2.5rem); }
.nameboard-sm .nb-en { font-size: clamp(.8125rem, 1.4vw, 1.0625rem); }
.tagline { text-align: center; margin: 0 0 22px; font: 700 clamp(1.0625rem, 2vw, 1.375rem)/1.4 var(--display); color: var(--blue); }
.tagline span + span { color: var(--ink-2); font-weight: 700; }
.hero-lead { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; margin: 18px 0 0; }

/* departure board */
.dep-board {
  background: var(--board); color: var(--board-text); border-radius: 12px; padding: 16px 18px 18px;
  border: 8px solid #2B3038; box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, .04);
}
.dep-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--amber); }
.dep-title { margin: 0; font: 800 1.125rem/1.3 var(--display); color: var(--amber); display: flex; gap: 10px; flex-wrap: wrap; }
.dep-title span + span { color: #fff; }
.dep-clock { margin: 0; background: #0E1013; border-radius: 4px; padding: 5px 10px 4px; color: var(--amber); font-variant-numeric: tabular-nums; }
.dep-time { font: 700 1.375rem/1.2 var(--body); letter-spacing: .06em; }
.dep-ist { font-size: .75rem; color: var(--board-mute); }
.dep-cols { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 8px 0 4px; font-size: .8125rem; color: var(--board-mute); }
.dep-rows { list-style: none; margin: 0; padding: 0; }
.dep-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--board-line); }
.dep-no {
  display: grid; place-items: center; width: 30px; height: 34px; background: #0E1013; color: var(--amber);
  border-radius: 3px; font: 700 1.125rem/1 var(--body); position: relative;
}
.dep-no::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.dep-dest { color: #fff; text-decoration: none; font: 600 1.0625rem/1 var(--body); min-width: 0; }
.dep-dest:hover { color: var(--amber); text-decoration: underline; }
.flip-win { display: block; position: relative; height: 1.6em; overflow: hidden; }
.flip-in { display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.6, 0, .2, 1); }
.flip-in > span { display: block; height: 1.6em; line-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-board].show-en .flip-in { transform: translateY(-1.6em); }
.dep-board.flipping .flip-win { animation: flap .5s cubic-bezier(.6, 0, .2, 1); }
@keyframes flap { 0% { transform: perspective(300px) rotateX(0); } 45% { transform: perspective(300px) rotateX(-55deg); } 100% { transform: perspective(300px) rotateX(0); } }
.st { display: inline-block; border-radius: 4px; padding: 3px 10px; font: 700 .9375rem/1 var(--body); text-align: center; min-width: 92px; }
.st-tbc { color: var(--amber); box-shadow: inset 0 0 0 1.5px var(--amber); }
.st-go { background: var(--green); color: #fff; }
.st-live { background: #3A3F47; color: #fff; }
.st-live.is-open { background: var(--green); }
.dep-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--board-line); }
.dep-hold {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px;
  background: none; border: 0; color: var(--board-mute); font: 600 .875rem var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: .2em;
}
.dep-hold:hover { color: #fff; }
.dep-hold .ic { width: 16px; height: 16px; }
.dep-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.dep-note { margin: 0; font-size: .8125rem; color: var(--board-mute); }
@media (max-width: 575px) {
  .dep-board { padding: 12px 12px 14px; border-width: 6px; }
  .dep-row, .dep-cols { grid-template-columns: 28px 1fr auto; gap: 8px; }
  .dep-no { width: 26px; height: 30px; font-size: 1rem; }
  .dep-dest { font-size: 1rem; }
  .st { min-width: 74px; padding: 3px 6px; font-size: .875rem; }
  .dep-foot .btn { flex: 1 1 auto; }
  .dep-ctrl { flex-wrap: wrap; }
}
@media (max-width: 419px) { .num-opt { display: none; } }
@media (max-width: 767px) {
  .dep-board { display: flex; flex-direction: column; }
  .dep-foot { order: 1; border-top: 0; margin: 0 0 6px; padding-top: 12px; }
  .dep-foot .btn-amber { flex-basis: 100%; }
  .dep-foot .btn-ghost { flex: 1 1 40%; }
  .dep-cols { order: 2; }
  .dep-rows { order: 3; }
  .dep-ctrl { order: 4; }
}

/* train window */
.window { margin: 0; }
.coach {
  position: relative; background: var(--blue); border-radius: 18px; padding: 22px 22px 40px;
  box-shadow: var(--shadow), inset 0 3px 0 rgba(255, 255, 255, .12);
}
.coach::before { content: ""; position: absolute; left: 22px; right: 22px; top: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.coach-stripe { position: absolute; left: 0; right: 0; bottom: 14px; height: 10px; background: var(--ground); opacity: .9; }
.win-glass { position: relative; border-radius: 22px; overflow: hidden; border: 7px solid var(--alu); box-shadow: inset 0 0 0 2px #9AA3AF, 0 0 0 2px var(--blue-2); background: #9fb3c8; }
.win-photo { width: 100%; height: auto; }
.win-bars {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent calc(84% - 3px), var(--alu) calc(84% - 3px), var(--alu) calc(84% + 3px), transparent calc(84% + 3px));
  box-shadow: inset 0 10px 18px -12px rgba(0, 0, 0, .35);
}
.window figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: 8px; }
.hero-hours { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 12px 14px; background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--rule); }
.hero-hours .ic { margin-top: 3px; color: var(--blue); }
.hero-hours.is-open .ic { color: var(--green); }
.hero-hours .open-txt { display: block; font-weight: 700; }
.hours-src { display: block; font-size: .875rem; color: var(--ink-2); }

/* ---------- facts band: hanging station plates ---------- */
.facts-band { background: var(--blue); color: #fff; padding: 64px 0 72px; }
.band-lead { max-width: 62ch; font-size: 1.125rem; }
.plates { display: grid; gap: 34px; margin-top: 28px; }
.pg-label { font: 800 1.125rem/1.3 var(--display); margin: 0 0 6px; }
.pg-label span { font: 600 .9375rem var(--body); color: var(--amber-on-blue); margin-left: 8px; }
.plate-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; border-top: 4px solid rgba(255, 255, 255, .55); }
.plate { position: relative; margin-top: 22px; border-radius: var(--r); padding: 16px 18px 14px; color: var(--ink); }
.plate::before, .plate::after { content: ""; position: absolute; top: -22px; width: 2px; height: 22px; background: rgba(255, 255, 255, .7); }
.plate::before { left: 26px; }
.plate::after { right: 26px; }
.plate-v { background: #fff; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--green); }
.plate-p { background: var(--amber); box-shadow: inset 0 0 0 4px var(--amber); outline: 2px dashed var(--ink); outline-offset: -8px; }
.plate-k { margin: 0 0 4px; font-size: .9375rem; font-weight: 700; color: var(--ink-2); }
.plate-p .plate-k { color: var(--ink); }
.plate-val { margin: 0 0 8px; font: 700 1.125rem/1.4 var(--body); }
.plate-val a { color: var(--blue); }
.plate-src { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .8125rem; font-weight: 600; }
.plate-v .plate-src { color: var(--green); }
.plate-v .plate-src .ic { width: 16px; height: 16px; }
.tbc-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px dashed var(--ink); }
.unknown-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.unknown-list li { border: 2px dashed rgba(255, 255, 255, .75); border-radius: var(--r); padding: 8px 14px; font-weight: 700; }
.unknown-list .bi-hi { color: var(--amber-on-blue); opacity: 1; }

/* ---------- route map ---------- */
.route-sec, .line-sec { padding: 72px 0; }
.route { list-style: none; margin: 34px 0 0; padding: 0; position: relative; display: grid; gap: 22px; }
.route::before {
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 10px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 26px, #fff 26px 52px); border: 2px solid var(--ink); border-radius: 3px;
}
.station { position: relative; padding-left: 46px; }
.stn-dot { position: absolute; left: 1px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--ink); }
.st-hs .stn-dot { background: var(--amber); }
.stn-name { margin: 0; font: 800 1.1875rem/1.3 var(--display); }
.stn-name .bi-hi { font-family: var(--body); color: var(--ink-2); opacity: 1; }
.stn-cls { margin: 2px 0 0; font-weight: 700; color: var(--blue); }
.st-txt { margin: 6px 0 0; color: var(--ink-2); max-width: 46ch; }
.branches { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.br { padding: 6px 12px 5px; border-radius: 4px; font-weight: 700; line-height: 1.25; }
.br .bi-hi { font-size: .78em; opacity: 1; }
.br-arts { background: var(--amber); color: var(--ink); }
.br-commerce { background: var(--blue); color: #fff; }
.br-science { background: var(--green); color: #fff; }
@media (min-width: 992px) {
  .route { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .route::before { left: 4%; right: 4%; top: 13px; bottom: auto; width: auto; height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 34px, #fff 34px 68px); }
  .station { padding-left: 0; padding-top: 46px; }
  .stn-dot { left: 0; top: 4px; }
  .branches { flex-direction: column; align-items: flex-start; }
}
.route-photos { margin-top: 40px; }
.snap { margin: 0; }
.snap img { width: 100%; border-radius: 10px; object-fit: cover; aspect-ratio: 16 / 10; }
.snap-tall img { aspect-ratio: 16 / 10; }
@media (min-width: 768px) { .snap img, .snap-tall img { aspect-ratio: auto; height: 420px; } }
.snap figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: 8px; }

/* ---------- timetable ---------- */
.tt-sec { background: var(--board); color: var(--board-text); padding: 72px 0; }
.tt-board { background: #121417; border-radius: 12px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--board-line); }
.tt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tt caption { caption-side: top; text-align: left; padding: 0 0 12px; color: var(--board-mute); font-size: .9375rem; }
.tt-cap-hi { display: block; color: var(--amber); font: 800 1.125rem/1.4 var(--display); }
.tt th { text-align: left; font: 600 .875rem var(--body); color: var(--board-mute); padding: 6px 10px; border-bottom: 2px solid var(--amber); }
.tt td { padding: 11px 10px; border-bottom: 1px solid var(--board-line); vertical-align: middle; }
.tt-time { width: 84px; color: var(--amber); font: 700 1.25rem/1 var(--body); }
.tt-stop .bi-hi { color: var(--board-mute); opacity: 1; }
.tt-stop .bi-en { color: #fff; font-weight: 600; }
.tt-board .tbc { margin: 16px 0 0; }

/* ---------- ticket (enquiry) ---------- */
.ticket-sec { padding: 72px 0; background: var(--ground-2); }
.ticket-sec-top { padding-top: 8px; background: var(--ground); }
.ticket { position: relative; display: grid; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--rule); }
.ticket-stub { position: relative; background: var(--blue); color: #fff; padding: 20px 22px; border-radius: 14px 14px 0 0; }
.ticket-stub::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; border-bottom: 3px dashed rgba(255, 255, 255, .7); }
.stub-k { font: 800 1.25rem/1.3 var(--display); margin: 0 0 12px; }
.stub-k span { display: block; font: 600 .9375rem var(--body); color: var(--amber-on-blue); }
.stub-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.stub-dl dt { font-size: .8125rem; color: #C8D3EA; }
.stub-dl dd { margin: 0; font-weight: 700; line-height: 1.35; }
.stub-barcode { display: none; width: 120px; height: 36px; margin-top: 16px; color: #fff; opacity: .85; }
.enquiry { padding: 24px 22px 22px; }
.form-h { font-size: 1.625rem; margin-bottom: 4px; }
.form-h-hi { font: 600 1rem var(--body); color: var(--ink-2); margin-left: 6px; }
.form-lead { color: var(--ink-2); }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field label span[lang] { font-weight: 600; color: var(--ink-2); font-size: .9375rem; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 13px; border: 2px solid #A9A395; border-radius: var(--r);
  background: #fff; color: var(--ink); font: 400 1.0625rem/1.4 var(--body);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(43, 76, 140, .3); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); background: #FFF6F5; }
.field ::placeholder { color: #6A6F78; }
.hint { font-size: .875rem; color: var(--ink-2); margin: 4px 0 0; }
.err { font-size: .9375rem; color: var(--error); font-weight: 700; margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { border: 2px solid var(--error); background: #FFF6F5; color: var(--error); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-weight: 700; }
.form-summary ul { margin: 6px 0 0; padding-left: 20px; }
.form-summary a { color: var(--error); }
.btn-send { margin-top: 18px; min-width: 220px; }
.note { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); }
.form-ok { background: var(--green-tint); color: #1D5232; box-shadow: inset 0 0 0 1.5px var(--green); }
.form-fail { background: #FBEAE8; color: #7E1C15; box-shadow: inset 0 0 0 1.5px var(--error); }
.note a { color: inherit; font-weight: 700; }
.form-small { font-size: .875rem; color: var(--ink-2); margin: 14px 0 0; }
@media (min-width: 768px) {
  .ticket { grid-template-columns: 236px 1fr; }
  .ticket-stub { border-radius: 14px 0 0 14px; padding: 26px 22px; }
  .ticket-stub::after { left: auto; right: -2px; top: 16px; bottom: 16px; border-bottom: 0; border-right: 3px dashed var(--rule); }
  .stub-dl { grid-template-columns: 1fr; }
  .stub-barcode { display: block; }
  .enquiry { padding: 28px 30px 26px; }
}
.faq { margin-top: 18px; }
.qa { border-bottom: 1.5px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; padding: 12px 34px 12px 0; position: relative; font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.qa p { color: var(--ink-2); padding-bottom: 6px; }

/* ---------- exit / visit ---------- */
.exit-sec { padding: 72px 0; }
.exit-sign {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--green); color: #fff;
  padding: 10px 18px; border-radius: var(--r); margin-bottom: 18px;
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px rgba(255, 255, 255, .85);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
}
.exit-sign span:first-child { font-family: var(--body); font-weight: 700; font-size: .8em; }
.exit-sign .ic { width: 28px; height: 28px; }
.exit-sign-sm { font-size: 1.25rem; margin-top: 28px; }
.exit-addr { font: 700 1.1875rem/1.45 var(--body); margin-bottom: 4px; }
.exit-addr-hi { color: var(--ink-2); }
.exit-meta { font-size: .9375rem; color: var(--ink-2); }
.exit-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.map-card { position: relative; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 2px var(--rule); min-height: 300px; }
.map-fallback { padding: 26px; background:
  repeating-linear-gradient(90deg, transparent 0 58px, rgba(43, 76, 140, .06) 58px 60px),
  repeating-linear-gradient(0deg, transparent 0 58px, rgba(43, 76, 140, .06) 58px 60px); min-height: 300px; }
.map-name { font: 800 1.25rem/1.3 var(--display); }
.map-plus { font-size: .9375rem; color: var(--ink-2); }
.map-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.map-card.loaded .map-fallback { display: none; }
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--board); color: var(--board-text); padding: 0 0 36px; }
.track {
  height: 30px; margin-bottom: 44px;
  background:
    linear-gradient(180deg, transparent 6px, #8A929C 6px, #8A929C 9px, transparent 9px, transparent 21px, #8A929C 21px, #8A929C 24px, transparent 24px),
    repeating-linear-gradient(90deg, #5B4B3C 0 12px, transparent 12px 40px);
  background-color: #23262B;
}
.foot-logo { height: 44px; width: auto; margin-bottom: 8px; }
.foot-note { font-size: .8125rem; color: var(--board-mute); }
.foot-line { display: flex; gap: 10px; align-items: flex-start; }
.foot-line .ic { margin-top: 3px; color: var(--amber); }
.foot-line a, .foot-links a { color: #fff; }
.foot-line a:hover, .foot-links a:hover { color: var(--amber); }
.foot-h { font: 800 1.125rem/1.3 var(--display); color: var(--amber); margin-bottom: 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-links a { display: inline-block; padding: 6px 0; }
.foot-small { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--board-line); font-size: .875rem; color: var(--board-mute); }
.foot-line.is-open .open-txt { color: #8FD3A5; font-weight: 700; }

/* phone action bar */
.act-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--board); box-shadow: 0 -2px 0 var(--amber); }
.act-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: #fff; text-decoration: none; font-weight: 700; font-size: .875rem; }
.act-bar a + a { border-left: 1px solid var(--board-line); }
.act-bar .ic { color: var(--amber); }
body { padding-bottom: 60px; }
@media (min-width: 992px) { .act-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- inner page heading ---------- */
.page-sign-wrap { padding: 22px 0 34px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.page-sign {
  display: inline-flex; align-items: center; gap: 18px; background: var(--blue); color: #fff;
  padding: 14px 22px 16px; border-radius: 8px; max-width: 100%;
  box-shadow: inset 0 0 0 4px var(--blue), inset 0 0 0 7px rgba(255, 255, 255, .9), var(--shadow);
}
.page-sign h1 { display: flex; flex-direction: column; }
.ps-hi { font: 700 clamp(1rem, 2vw, 1.375rem)/1.35 var(--body); }
.ps-en { font: 800 clamp(1.75rem, 5vw, 3.25rem)/1.15 var(--display); }
.ps-arrow { width: clamp(36px, 6vw, 60px); height: auto; flex: none; color: var(--amber); }
.page-lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 62ch; margin-top: 22px; }

/* about */
.about-board-sec { padding: 24px 0 64px; }
.about-p { font-size: 1.125rem; max-width: 64ch; }
.ledger { background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.ledger-h { margin: 0; background: var(--ink); color: #fff; padding: 12px 18px; font: 800 1.125rem/1.3 var(--display); }
.ledger-h span { display: block; font: 600 .875rem var(--body); color: var(--amber); }
.ledger dl { margin: 0; padding: 6px 18px 12px; }
.ledger dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--rule); }
.ledger dl div:last-child { border-bottom: 0; }
.ledger dt { color: var(--ink-2); font-size: .9375rem; }
.ledger dd { margin: 0; font-weight: 700; }
.about-voice { padding: 64px 0; background: var(--ground-2); }
.about-voice .tbc { height: 100%; margin: 0; padding: 22px; }
.about-voice .tbc-k { font: 800 1.1875rem/1.3 var(--display); margin-bottom: 6px; }
.about-name { padding: 64px 0 72px; }

/* academics */
.line-sec .route { margin-top: 20px; }
.train-sec { background: var(--board); color: var(--board-text); padding: 72px 0; }
.train { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.coach-car {
  position: relative; background: var(--blue); color: #fff; border-radius: 12px; padding: 54px 20px 34px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .12);
}
.coach-car::before { /* window row */
  content: ""; position: absolute; left: 16px; right: 16px; top: 14px; height: 26px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, #9FB3C8 0 34px, var(--blue) 34px 46px);
  box-shadow: inset 0 0 0 2px var(--alu);
}
.coach-car::after { /* wheels */
  content: ""; position: absolute; left: 20px; right: 20px; bottom: -12px; height: 22px;
  background: radial-gradient(circle at 18px 11px, #0E1013 9px, #6A707A 10px, #6A707A 11px, transparent 11.5px) left / 50% 100% no-repeat,
              radial-gradient(circle at calc(100% - 18px) 11px, #0E1013 9px, #6A707A 10px, #6A707A 11px, transparent 11.5px) right / 50% 100% no-repeat;
}
.car-name { margin: 0; font: 800 1.25rem/1.3 var(--display); }
.car-name .bi-hi { font-family: var(--body); color: var(--amber-on-blue); opacity: 1; }
.car-cls { margin: 4px 0 8px; font-weight: 700; color: #D6DFF0; }
.car-txt { margin: 0; color: #EEF2F9; }
.engine { display: none; }
@media (min-width: 992px) {
  .train { grid-template-columns: 120px repeat(4, 1fr); gap: 10px; align-items: stretch; }
  .engine { display: block; position: relative; background: #2B3038; border-radius: 40px 12px 12px 12px; min-height: 200px; }
  .engine::before { content: ""; position: absolute; left: 22px; top: 40px; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px #3A3F47; }
  .engine::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -12px; height: 22px; background: radial-gradient(circle at 50% 11px, #0E1013 9px, #6A707A 10px, #6A707A 11px, transparent 11.5px); }
}
.streams-sec, .medium-sec { padding: 72px 0; }
.medium-sec { background: var(--ground-2); }
.stream { background: var(--paper); border-radius: 10px; overflow: hidden; height: 100%; box-shadow: inset 0 0 0 1.5px var(--rule); }
.stream-name { margin: 0; padding: 14px 18px; font: 800 1.375rem/1.25 var(--display); }
.stream-name .bi-hi { font-family: var(--body); opacity: 1; }
.str-arts .stream-name { background: var(--amber); color: var(--ink); }
.str-commerce .stream-name { background: var(--blue); color: #fff; }
.str-science .stream-name { background: var(--green); color: #fff; }
.stream .tbc { margin: 16px 18px 18px; }

/* admissions */
.steps-sec { padding: 64px 0; }
.platforms { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.pf { position: relative; padding: 0 0 0 76px; min-height: 60px; }
.pf-no {
  position: absolute; left: 0; top: 0; width: 58px; height: 64px; display: grid; place-items: center;
  background: var(--amber); color: var(--ink); border-radius: var(--r); font: 800 2rem/1 var(--display);
  box-shadow: inset 0 0 0 3px var(--amber), inset 0 0 0 5px var(--ink);
}
.pf-name { margin: 0 0 4px; font: 800 1.25rem/1.3 var(--display); }
.pf-name .bi-hi { font-family: var(--body); color: var(--ink-2); opacity: 1; }
.pf-txt { margin: 0; color: var(--ink-2); }
@media (min-width: 992px) {
  .platforms { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .pf { padding: 84px 0 0; }
  .platforms::before { content: ""; position: absolute; }
}
.docs-sec { padding: 64px 0; background: var(--ground-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; cursor: pointer; border-bottom: 1px dashed var(--rule); }
.checklist input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--ink-2); }
.age { width: 100%; border-collapse: collapse; margin-bottom: 18px; background: var(--paper); border-radius: 8px; overflow: hidden; }
.age caption { caption-side: bottom; text-align: left; font-size: .875rem; color: var(--ink-2); padding-top: 8px; }
.age th, .age td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.age thead th { background: var(--ink); color: #fff; font-size: .9375rem; }
.faq-sec { padding: 64px 0 72px; }
.faq-wide { max-width: 820px; }

/* campus life */
.notice-sec { padding: 0 0 56px; }
.announce {
  background-color: var(--board); color: var(--amber); border-radius: 12px; padding: 22px 24px;
  background-image: radial-gradient(rgba(242, 169, 0, .07) 1px, transparent 1.5px); background-size: 6px 6px;
  border: 8px solid #2B3038;
}
.announce-h { font-size: 1.375rem; color: #fff; margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.announce-h span { color: var(--amber); font-family: var(--body); font-size: 1rem; }
.announce-list { list-style: none; margin: 0; padding: 0; }
.announce-list li { padding: 10px 0 10px 22px; border-top: 1px solid var(--board-line); position: relative; font-weight: 600; }
.announce-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.announce-list .bi-hi { color: #F7D27A; }
.announce-note { margin: 10px 0 0; color: var(--board-mute); font-size: .875rem; }
.gallery-sec { padding: 0 0 72px; }
.gallery { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 26px; }
@media (min-width: 576px) { .gallery { grid-template-columns: 1fr 1fr; } }
.g-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; }
.g-frame { position: relative; display: block; border-radius: 20px; overflow: hidden; border: 7px solid var(--alu); box-shadow: 0 0 0 10px var(--blue), var(--shadow); margin: 10px; }
.g-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.g-btn:hover .g-frame img { transform: scale(1.04); }
.g-cap { margin: 10px 0 0 12px; font-weight: 700; }
.expect-sec { background: var(--board); color: var(--board-text); padding: 72px 0; }
.expect { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 576px) { .expect { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .expect { grid-template-columns: repeat(3, 1fr); } }
.exp { border: 2px dashed var(--amber); border-radius: var(--r); padding: 14px 16px; font: 700 1.125rem/1.35 var(--body); color: #fff; }
.exp .bi-hi { color: var(--amber); opacity: 1; }
.exp-tbc { display: block; margin-top: 6px; font-weight: 400; font-size: .875rem; color: var(--board-mute); }
.lightbox { border: 0; padding: 16px; background: var(--board); color: #fff; border-radius: 12px; max-width: min(960px, 94vw); }
.lightbox::backdrop { background: rgba(14, 16, 19, .85); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 72vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { margin-top: 10px; color: var(--board-text); font-size: .9375rem; }
.lb-acts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lb-acts button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; background: transparent; color: #fff; border: 2px solid #6A707A; border-radius: var(--r); font: 700 .9375rem var(--body); cursor: pointer; }
.lb-acts button:hover { border-color: var(--amber); color: var(--amber); }
.lb-close { margin-left: auto; }

/* contact */
.contact-sec { padding: 8px 0 72px; }
.enquiry-window {
  background: var(--board); color: #fff; border-radius: 120px 120px 12px 12px; padding: 40px 26px 24px; text-align: center;
  border: 8px solid #2B3038; box-shadow: var(--shadow);
}
.ew-h { margin: 0; font: 800 1.25rem/1.3 var(--display); color: var(--amber); }
.ew-h span { display: block; font: 600 1rem var(--body); color: #fff; }
.ew-phone { font: 800 clamp(1.875rem, 4vw, 2.5rem)/1.2 var(--display); margin: 8px 0 14px; font-variant-numeric: tabular-nums; }
.ew-phone a { color: #fff; text-decoration: none; }
.ew-phone a:hover { color: var(--amber); }
.ew-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ew-status { margin: 14px 0 0; color: var(--board-mute); font-weight: 600; }
.ew-status.is-open { color: #8FD3A5; }
.hours { width: 100%; border-collapse: collapse; margin-top: 18px; background: var(--paper); border-radius: 8px; overflow: hidden; }
.hours caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.hours th { font-weight: 600; }
.hours th span { color: var(--ink-2); font-size: .875rem; margin-left: 4px; }
.hours tr.today { background: var(--amber); }
.hours tr.today th, .hours tr.today td { font-weight: 800; }
.hours tr.today th span { color: var(--ink); }
.today-tag { font-weight: 700; }

/* plain pages */
.plain { padding: 8px 0 80px; }
.prose { max-width: 68ch; font-size: 1.0625rem; }
.prose h2 { font-size: 1.375rem; margin: 30px 0 10px; }
.prose-center { text-align: center; margin: 0 auto; }
.prose-center .btn { margin: 4px; }
.stamp { display: inline-flex; flex-direction: column; gap: 2px; padding: 16px 26px; margin: 10px 0 24px; border: 4px double var(--blue); color: var(--blue); border-radius: 10px; transform: rotate(-4deg); font: 800 1.5rem/1.3 var(--display); }
.stamp span:first-child { font: 700 1.0625rem var(--body); }
.big404 { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--display); color: var(--amber); -webkit-text-stroke: 3px var(--ink); margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Board in its static (both languages) form: reduced motion or held by the visitor */
.dep-board.static .flip-win { height: auto; }
.dep-board.static .flip-in { transform: none !important; }
.dep-board.static .flip-in > span { height: auto; line-height: 1.35; white-space: normal; }
.dep-board.static .dep-dest { line-height: 1.35; }
.dep-board.static .st .flip-in > span:first-child { font-size: .8125rem; }
