/* Plus Jakarta Sans (SIL Open Font License), self-hosted. font-display: optional = the font is used only if it
   has arrived by the first paint (it is preloaded, so it usually has); otherwise the system font stays for that
   page view. Either way the headings never re-wrap after the page has drawn, so the page does not jump. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: optional;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* BusKosh site styles. Hand-written; the HTML is generated by tools/site/build_site.py. */
:root {
  --bg: #ffffff; --bg-2: #f6f5f2; --bg-3: #eeece7;
  --ink: #161513; --ink-2: #4b4844; --ink-3: #7c7872;
  --line: #e4e1db; --line-2: #d4d0c8;
  --brand: #e03131; --brand-ink: #b02020; --brand-soft: #fff1f1;
  --ok: #157347;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --radius: 14px; --radius-s: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px -12px rgba(0,0,0,.18);
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214; --bg-2: #18191c; --bg-3: #202226;
    --ink: #f1efea; --ink-2: #c3bfb7; --ink-3: #8e8a83;
    --line: #2a2c31; --line-2: #3a3d44;
    --brand: #ff5a5a; --brand-ink: #ff7a7a; --brand-soft: #2a1b1b;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 2.2vw + 1rem, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.15em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main { max-width: var(--wrap); margin: 0 auto; padding: 0 16px 48px; }
main > section, main > article { margin-top: 44px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .65em 1.1em; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-family: var(--body); font-size: .95rem; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { padding: .85em 1.4em; font-size: 1.05rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav > ul > li > a { display: block; padding: 8px 12px; color: var(--ink-2); font-weight: 600; border-radius: var(--radius-s); }
.site-nav > ul > li > a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.site-nav .nav-cta > a { display: inline-flex; align-items: center; gap: .55em; color: #fff; padding: .4em 1.05em .4em .45em; border-radius: 999px; background: var(--brand); line-height: 1.2; }
.site-nav .nav-cta > a:hover { background: var(--brand-ink); color: #fff; }
.site-nav .nav-cta .gp-badge { width: 1.75em; height: 1.75em; margin: 0; }
.site-nav .nav-cta .gp-badge svg { width: 1.05em; height: 1.05em; }
.has-menu { position: relative; }
.has-menu .menu { display: none; position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; flex-direction: column; gap: 0; z-index: 30; max-height: 70vh; overflow: auto; }
.has-menu:hover .menu, .has-menu:focus-within .menu { display: flex; }
.has-menu .menu a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--radius-s); color: var(--ink); font-weight: 600; }
.has-menu .menu a span { color: var(--ink-3); font-weight: 400; font-size: .9em; }
.has-menu .menu a:hover { background: var(--bg-2); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 6px 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 1.4em; height: 1.4em; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav > ul > li > a { padding: 12px; }
  .has-menu .menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 8px 12px; max-height: none; }
  .nav-cta { margin-top: 8px; }
}

/* breadcrumbs, page head */
.crumbs { margin-top: 18px; font-size: .9rem; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--ink-3); }
.page-head { margin-top: 18px; }
.kicker { color: var(--brand-ink); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6em; }
.kicker a { color: inherit; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 70ch; }
.hub-head { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.op-logo { border-radius: 16px; border: 1px solid var(--line); background: #fff; padding: 6px; }
@media (max-width: 600px) { .hub-head { grid-template-columns: 1fr; } .op-logo { width: 56px; height: 56px; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; margin-top: 36px; padding: 36px; background: linear-gradient(135deg, var(--bg-2), var(--bg)); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.hero h1 { font-size: clamp(2rem, 3vw + 1rem, 3.3rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 16px; }
@media (max-width: 600px) {
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; padding: .8em .7em; font-size: .95rem; white-space: nowrap; }
}
@media (max-width: 360px) {
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: .75em .5em; font-size: .86rem; gap: .4em; }
}
@media (max-width: 300px) { .hero-actions { flex-wrap: wrap; } }
.gp-badge { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin: -.25em .05em -.25em -.35em; border-radius: 50%; background: #fff; flex: none; }
.gp-badge svg { width: 1em; height: 1em; vertical-align: 0; margin-left: .1em; }
.hero-screen { width: 280px; justify-self: center; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 24px 18px; } .hero-screen { width: 220px; } }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: .95rem; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks svg { color: var(--ok); }
.ticks.big { flex-direction: column; margin: 18px 0; }

/* stats and claims */
.stats { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 14px; display: flex; flex-direction: column; min-width: 110px; }
.stats b { font-family: var(--display); font-size: 1.25rem; }
.stats span { color: var(--ink-3); font-size: .82rem; }
.claims p { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(1.1rem, 1vw + .8rem, 1.5rem); color: var(--ink-2); }
.claims b { color: var(--ink); font-weight: 800; }

/* operator grid */
.op-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.op-grid a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); min-height: 100%; transition: border-color .15s, transform .15s; }
.op-grid a:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.op-grid img { grid-row: 1 / span 3; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 4px; }
.op-grid b { font-family: var(--display); font-size: 1.05rem; }
.op-grid span { color: var(--ink-2); font-size: .9rem; }
.op-grid small { color: var(--ink-3); font-size: .8rem; }
.op-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.op-links a { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.op-links a span { color: var(--ink-3); font-weight: 400; font-size: .85em; }
.op-links a:hover { border-color: var(--brand); text-decoration: none; }

/* steps, features */
.how { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.how h2 { position: sticky; top: 76px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li > b { grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--display); font-size: 1.1rem; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } .how h2 { position: static; } }
.features-grid ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; }
.features-grid li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.features-grid li > svg { grid-row: 1 / span 2; width: 1.5em; height: 1.5em; color: var(--brand); margin-top: 2px; }
@media (max-width: 700px) {
  .features-grid ul { grid-template-columns: 1fr 1fr; gap: 10px; }
  .features-grid li { display: block; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-2); }
  .features-grid li > svg { width: 1.4em; height: 1.4em; margin: 0 0 8px; display: block; }
  .features-grid h2, .features-grid h3 { font-size: .95rem; }
  .features-grid p { font-size: .85rem; }
}
.features-grid h2, .features-grid h3 { font-size: 1.05rem; margin-bottom: .3em; }
.features-grid p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.screens ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.screens img { border-radius: 20px; border: 1px solid var(--line); width: 100%; }
.screens span { display: block; text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: 8px; }

/* finder (operator page) */
.finder h2 { margin-bottom: 12px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); box-shadow: var(--shadow); }
.search:focus-within { border-color: var(--brand); }
.search svg { color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 0; font: inherit; font-size: 1.05rem; color: var(--ink); outline: none; }
.finder-hint { color: var(--ink-3); font-size: .9rem; margin: 10px 0 18px; }
.finder h3 { margin: 14px 0 8px; font-size: .95rem; color: var(--ink-2); }
.chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.chip span { color: var(--ink-3); font-size: .85em; }
.chip:hover, .chip.on { border-color: var(--brand); background: var(--brand-soft); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.routes { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.routes th, table.routes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
table.routes th { position: sticky; top: 0; background: var(--bg-2); color: var(--ink-2); font-weight: 600; font-size: .85rem; }
table.routes td.ft { white-space: normal; min-width: 260px; }
table.routes td.ft a { color: var(--ink); }
table.routes tbody tr { cursor: pointer; }
table.routes tbody tr:hover { background: var(--bg-2); }
table.routes tr[hidden] { display: none; }
.arrow { color: var(--ink-3); }
.no-results { padding: 20px; background: var(--bg-2); border-radius: var(--radius); margin-top: 12px; }
.known { columns: 2; gap: 24px; margin: 0 0 18px; padding-left: 20px; }
@media (max-width: 600px) { .known { columns: 1; } }

/* route page */
.route-page .page-head .btn { margin-top: 6px; }
.direction { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.direction h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.direction .arrow svg { width: 1em; height: 1em; }
.tag { font: 700 .72rem/1 var(--body); letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 16px 0 20px; }
.facts div { background: var(--bg-2); border-radius: var(--radius-s); padding: 10px 12px; }
.facts dt { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.direction h3 { font-size: .95rem; color: var(--ink-2); margin: 0 0 8px; }
.samples { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.samples li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); font-family: var(--display); font-weight: 700; }
.more { color: var(--ink-2); font-size: .95rem; }
.stops summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--ink); }
.stops ol { columns: 2; gap: 32px; margin: 6px 0 0; padding-left: 24px; color: var(--ink-2); }
.stops li { break-inside: avoid; padding: 2px 0; }
@media (max-width: 600px) { .stops ol { columns: 1; } }
.note { color: var(--ink-3); font-size: .88rem; margin: 10px 0 0; }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.route-list a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); }
.route-list a b { color: var(--brand-ink); margin-right: 6px; }
.route-list a span { display: block; color: var(--ink-3); font-size: .85rem; margin-top: 2px; }
.route-list a:hover { border-color: var(--brand); text-decoration: none; }
.data-note { color: var(--ink-3); font-size: .85rem; margin-top: 28px; }

/* prose, faq */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.4em; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: 0 0 14px; max-width: 76ch; }

/* cta */
.cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 32px; border-radius: 24px; background: #1d1c1a; color: #f6f5f2; overflow: hidden; }
@media (prefers-color-scheme: dark) { .cta { background: #26282d; border: 1px solid var(--line-2); } }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); }
.cta p { color: #c9c5bd; }
.cta .ticks { color: #c9c5bd; margin-bottom: 20px; }
.cta .ticks svg { color: #6ee7a0; }
.cta .btn-primary { background: #fff; color: #161513; }
.cta .btn-primary:hover { background: #ece9e2; color: #161513; }
.cta-screen { width: 220px; justify-self: center; border-radius: 24px; margin-bottom: -80px; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; padding: 24px 18px; } .cta-screen { display: none; } }
.download-hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; margin-top: 0; }
.download-hero .page-head { margin-top: 18px; }
.download-hero .muted { color: var(--ink-3); font-size: .9rem; }
.download .prose { max-width: none; }
@media (max-width: 699px) { .download-hero { grid-template-columns: 1fr; } }
.download .btn-lg { margin: 6px 0 10px; }
.download .muted { color: var(--ink-3); font-size: .9rem; }
.app-only { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.app-only li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-2); }
.app-only li > svg { grid-row: 1 / span 2; width: 1.5em; height: 1.5em; color: var(--brand); margin-top: 2px; }
.app-only h3 { margin: 0 0 4px; font-size: 1rem; }
.app-only p { margin: 0; color: var(--ink-2); font-size: .92rem; }
@media (max-width: 600px) { .app-only { grid-template-columns: 1fr; } }
.sheet-ticks { justify-content: center; margin: -6px 0 16px; font-size: .9rem; }
.qr-card { display: none; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; width: 256px; }
.qr-card img { width: 220px; height: 220px; margin: 0 auto 10px; }
.qr-card p { margin: 0; font-size: .85rem; color: #4b4844; }
@media (min-width: 700px) { .qr-card { display: block; } }
@media (max-width: 699px) { .download { grid-template-columns: 1fr; } }

/* footer, sticky cta, support */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 90px; font-size: .95rem; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-family: var(--body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink-2); }
.site-footer .brand { margin-bottom: 8px; }
.site-footer .social { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.fineprint { margin-top: 28px; color: var(--ink-3); font-size: .85rem; }
@media (max-width: 700px) {
  .site-footer { padding: 28px 0 90px; font-size: .9rem; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .site-footer .grid > div:first-child { grid-column: 1 / -1; }
  .site-footer li { margin: 3px 0; }
  .site-footer h2 { margin-bottom: 6px; }
  .fineprint { margin-top: 18px; font-size: .78rem; }
}
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #d92b2b; color: #fff; box-shadow: 0 -10px 28px -10px rgba(0,0,0,.45); font-weight: 600; }
.sticky-cta.show { display: flex; }
.sticky-cta .st-text { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; }
.sticky-cta .st-text img { flex: 0 0 auto; border-radius: 9px; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.sticky-cta .st-text span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sticky-cta .st-text b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .st-text small { font-weight: 500; font-size: .8rem; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .st-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: #161513; font-weight: 700; font-size: .95rem; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.sticky-cta .st-btn:active { transform: scale(.97); }
@media (min-width: 861px) { .sticky-cta { display: none !important; } }
.support-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.support-modal[hidden] { display: none; }
.support-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.support-card { position: relative; width: min(92vw, 380px); background: var(--bg); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.support-card img { margin: 12px auto; border-radius: 12px; }
.support-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.6rem; color: var(--ink-3); cursor: pointer; }
.upi code { font-size: 1.05rem; }

/* operators without route numbers (MSRTC): no number column */
table.routes.numberless th:first-child, table.routes.numberless td:first-child { display: none; }

/* app download sheet (phones: slides up from the bottom; opened by "see all departures") */
.app-sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.app-sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.sheet-card { position: relative; width: 100%; max-width: 520px; background: var(--bg); border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; box-shadow: var(--shadow); }
.sheet-card img { margin: 0 auto 10px; border-radius: 14px; }
.sheet-card h2 { font-size: 1.3rem; margin-bottom: .3em; }
.sheet-card p { color: var(--ink-2); margin-bottom: 16px; }
.sheet-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
@media (min-width: 861px) { .app-sheet { align-items: center; } .sheet-card { border-radius: var(--radius); } }
@media (prefers-reduced-motion: no-preference) { .app-sheet:not([hidden]) .sheet-card { animation: sheet-up .22s ease-out; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* route table becomes a card list on phones: line 1 = number + route, line 2 = four facts under the name */
@media (max-width: 700px) {
  .table-wrap { border: 0; overflow: visible; }
  table.routes, table.routes tbody { display: block; width: 100%; }
  table.routes thead { display: none; }
  table.routes tr { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 12px; row-gap: 10px; padding: 14px 40px 14px 14px; margin-bottom: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, transform .1s; }
  table.routes tr::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-50%) rotate(-45deg); }
  table.routes tr:active { transform: scale(.985); border-color: var(--brand); }
  table.routes td { display: block; padding: 0; border: 0; white-space: normal; font-size: 1rem; line-height: 1.35; min-width: 0; }
  table.routes td:first-child { flex: 0 0 auto; min-width: 44px; font-size: 1.05rem; }
  table.routes td.ft { flex: 1 1 auto; min-width: 55%; max-width: calc(100% - 56px); }
  table.routes td.ft a { font-weight: 600; color: var(--ink); }
  table.routes td:nth-child(n+3) { flex: 0 0 auto; margin-right: 12px; font-size: .84rem; color: var(--ink-2); }
  table.routes td:nth-child(3) { flex-basis: 100%; margin: 0; height: 0; overflow: hidden; }   /* line break before the facts */
  table.routes td:nth-child(3)::after { content: ""; }
  table.routes td:nth-child(4)::before { content: attr(data-first) " to "; }
  table.routes td:nth-child(6)::after { content: " stops"; color: var(--ink-3); }
  table.routes tbody tr:hover { background: var(--bg-2); border-color: var(--brand); }
}
