
/* Layout: sticky top bar, centred 1180px column; results split into list + map (stacks on phones, with a bottom tab bar). */
:root {
  --bg: #F2F6F5;
  --surface: #FFFFFF;
  --surface-2: #E9F0EE;
  --line: #D8E2DF;
  --fg: #142629;
  --muted: #55686C;
  --faint: #879A9D;

  --teal: #0F6D7C;
  --teal-strong: #0A4752;
  --teal-soft: #DCEEEF;
  --on-teal: #FFFFFF;
  --lat: #B9472A;
  --lat-strong: #963619;
  --lat-soft: #F8E3DB;
  --on-lat: #FFFFFF;
  --mango: #E3A12A;
  --mango-soft: #FBEFD0;
  --mango-ink: #684705;
  --palm: #27704A;
  --palm-soft: #DCEEE2;
  --star: #DB960F;
  --wa: #1E9E58;
  --on-wa: #FFFFFF;

  --hero-a: #0A3C46;
  --hero-b: #0F6D7C;
  --hero-fg: #FFFFFF;
  --hero-sub: #CBE6E9;
  --hero-sun: #F3BE55;

  --map-land: #ECEFE3;
  --map-park: #D3E7C3;
  --map-water: #A9D3E6;
  --map-water-ink: #3E7F9C;
  --map-road: #FFFFFF;
  --map-edge: #D3D6C8;
  --map-hwy: #F6D27F;
  --map-hwy-edge: #DDA344;
  --map-block: #E0DDD0;
  --map-label: #39464B;
  --map-halo: #ECEFE3;

  --shadow: 0 1px 2px rgba(20, 38, 41, .06), 0 10px 28px rgba(20, 38, 41, .08);
  --shadow-lg: 0 24px 60px rgba(10, 30, 34, .28);

  --font-display: "Baloo 2", "Mukta", "Nirmala UI", system-ui, sans-serif;
  --font-body: "Mukta", "Nirmala UI", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  --gutter: 16px;
  /* business-type colours: each type sets --c / --on-c inline; these tune its tints per theme */
  --tint: 15%;
  --ink-pct: 100%;
  --ink-base: #000000;
  --on-mango: #3B2800;
  --tile-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C181B; --surface: #13242A; --surface-2: #1A2F35; --line: #27414A; --fg: #E3EDEC; --muted: #A2B6B9; --faint: #6F878B;
    --teal: #57B9C6; --teal-strong: #8AD4DE; --teal-soft: #163A41; --on-teal: #06262B;
    --lat: #E77B52; --lat-strong: #F29C79; --lat-soft: #3A2219; --on-lat: #200B04;
    --mango: #EFB64A; --mango-soft: #392C10; --mango-ink: #F6D58C;
    --palm: #63C48F; --palm-soft: #15332A; --star: #F2B53F; --wa: #3CC07A; --on-wa: #04200F;
    --hero-a: #082A31; --hero-b: #0C4A55; --hero-fg: #F1F8F7; --hero-sub: #A9CFD4; --hero-sun: #E2A947;
    --map-land: #182A2E; --map-park: #1D3A2C; --map-water: #1A4859; --map-water-ink: #7FB9D0; --map-road: #2B4046; --map-edge: #20343A;
    --map-hwy: #6A5424; --map-hwy-edge: #876826; --map-block: #213A40; --map-label: #C9D7D9; --map-halo: #182A2E;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
    --tint: 24%; --ink-pct: 60%; --ink-base: #FFFFFF; --tile-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C181B; --surface: #13242A; --surface-2: #1A2F35; --line: #27414A; --fg: #E3EDEC; --muted: #A2B6B9; --faint: #6F878B;
  --teal: #57B9C6; --teal-strong: #8AD4DE; --teal-soft: #163A41; --on-teal: #06262B;
  --lat: #E77B52; --lat-strong: #F29C79; --lat-soft: #3A2219; --on-lat: #200B04;
  --mango: #EFB64A; --mango-soft: #392C10; --mango-ink: #F6D58C;
  --palm: #63C48F; --palm-soft: #15332A; --star: #F2B53F; --wa: #3CC07A; --on-wa: #04200F;
  --hero-a: #082A31; --hero-b: #0C4A55; --hero-fg: #F1F8F7; --hero-sub: #A9CFD4; --hero-sun: #E2A947;
  --map-land: #182A2E; --map-park: #1D3A2C; --map-water: #1A4859; --map-water-ink: #7FB9D0; --map-road: #2B4046; --map-edge: #20343A;
  --map-hwy: #6A5424; --map-hwy-edge: #876826; --map-block: #213A40; --map-label: #C9D7D9; --map-halo: #182A2E;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
  --tint: 24%; --ink-pct: 60%; --ink-base: #FFFFFF; --tile-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; background: var(--surface); color: var(--fg); text-decoration: none; white-space: nowrap; transition: transform .12s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn.xs { min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn.xs .ic { width: 15px; height: 15px; }
.btn.primary { background: var(--lat); color: var(--on-lat); }
.btn.primary:hover { background: var(--lat-strong); }
.btn.teal { background: var(--teal); color: var(--on-teal); }
.btn.wa { background: var(--wa); color: var(--on-wa); }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.link { background: none; border: 0; color: var(--teal); padding: 0 4px; min-height: 30px; }
.btn.danger { border-color: var(--lat); color: var(--lat); background: var(--surface); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; border-radius: 17px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-strong); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.feat { background: var(--mango-soft); color: var(--mango-ink); }
.tag.new { background: var(--lat-soft); color: var(--lat-strong); }
.tag.ok { background: var(--palm-soft); color: var(--palm); }
.tag.info { background: var(--teal-soft); color: var(--teal-strong); }
.tag.mute { background: var(--surface-2); color: var(--muted); }
.stars { color: var(--star); display: inline-flex; align-items: center; gap: 1px; }
.stars .ic { width: 15px; height: 15px; }
.rate { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.rate small { color: var(--muted); font-weight: 500; font-size: 13px; }
.open { color: var(--palm); font-weight: 700; }
.closed { color: var(--lat); font-weight: 700; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.top-in.wrap { max-width: 1440px; } /* the bar is wider than the page: the Marathi links need ~700px (owner, 24 Nov 2026) */
.brand { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; text-decoration: none; color: var(--fg); background: none; border: 0; padding: 0; }
.brand svg, .brand img { width: 38px; height: 38px; flex: none; border-radius: 10px; }
.brand b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1; }
.brand small { display: block; font-size: 13px; color: var(--muted); line-height: 1.2; }
.nav { display: flex; gap: 4px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; } /* too many links: they scroll, never slide under the buttons */
.nav::-webkit-scrollbar { display: none; }
.nav button, .nav a { text-decoration: none; background: none; border: 0; padding: 8px 12px; border-radius: 9px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.nav button:hover, .nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav button[aria-current="page"], .nav a[aria-current="page"] { color: var(--teal); }
.badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--lat); color: var(--on-lat); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.lang button { border: 0; background: var(--teal-soft); padding: 5px 12px; font-size: 14px; font-weight: 700; color: var(--teal-strong); cursor: pointer; }
.lang button:hover { background: var(--teal); color: var(--on-teal); }
.me { display: flex; align-items: center; gap: 9px; background: none; border: 1.5px solid var(--line); border-radius: 22px; padding: 3px 12px 3px 3px; font-weight: 700; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.me { padding: 3px; } /* round letter only, no name (owner, 24 Nov 2026) */
.top .hplus { width: 40px; padding: 0; justify-content: center; }

/* laptops and tablets: tighter bar so nothing overlaps (phones use the bottom tabs) */
@media (min-width: 761px) and (max-width: 1400px) {
  .top-in { gap: 12px; }
  .nav { gap: 0; }
  .nav button, .nav a { padding: 8px 9px; gap: 5px; font-size: 15px; }
  .nav button svg, .nav a svg { width: 17px; height: 17px; }
  .top-r { gap: 8px; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .nav button svg, .nav a svg { display: none; }
  .brand small { display: none; }
  .me .nm { display: none; }
  .me { padding: 3px; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .nav button svg, .nav a svg { display: block; width: 21px; height: 21px; }
  .nav button, .nav a { font-size: 0; padding: 9px 10px; }
  .nav .badge { font-size: 12px; }
  .top .hide-sm { display: none; }
  .nav { flex: none; }
  .me .nm { display: none; }
  .me { padding: 3px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .brand > span { display: none; }
}
/* narrow phones: the bus, train, language and log-in buttons need the room, so the logo shows without the name */
@media (max-width: 600px) {
  .brand > span { display: none; }
}
/* bottom tabs on phones */
.tabs { display: none; }
.top .only-sm, .top .lg-s { display: none; }
.hadd { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--lat); color: var(--on-lat); cursor: pointer; }
.hadd .ic { width: 24px; height: 24px; }
@media (max-width: 760px) { .hadd { display: inline-flex; } }
@media (max-width: 420px) { .top-in:has(.hadd) .brand { display: none; } } /* the + takes the logo's corner on narrow phones; Explore goes home */
html.app .hadd { display: inline-flex; }
@media (max-width: 760px) {
  .nav, .top .hide-sm { display: none; }
  .top .only-sm { display: inline-flex; padding: 0 10px; }
  .top .lg-l { display: none; }
  .top .lg-s { display: inline; }
  .top-in { min-height: 58px; gap: 10px; }
  .brand b { font-size: 19px; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabs button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); position: relative; padding: 2px 0; }
  .tabs button[aria-current="page"] { color: var(--teal); }
  .tabs .badge { position: absolute; top: -4px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; font-size: 11px; }
  body { padding-bottom: 72px; }
}

/* Google ad: one per page, below the page content, with a small label. It takes no space until Google
   actually fills it (so nothing shows before AdSense approval or when there is no ad). */
.gad { text-align: center; }
.gad ins.adsbygoogle { display: block; }
.gad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; } /* Google's own way to hide an empty ad */
.gad-label { display: none; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.gad:has(ins[data-ad-status="filled"]) { margin-block: 26px 30px; }
.gad:has(ins[data-ad-status="filled"]) .gad-label { display: block; }

/* ================= app mode =================
   When the site is opened by the Android app (or installed from Chrome) it behaves like an app:
   a compact app bar with a back arrow, bottom tabs always, no website banner text or footer, screen transitions. */
.appbar-back, .app-hello, .app-links, .app-title { display: none; }
html.app body { -webkit-tap-highlight-color: transparent; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
html.app button, html.app .tabs, html.app .top, html.app .cat, html.app .sec-h { -webkit-user-select: none; user-select: none; }
html.app footer, html.app .nav, html.app .top .hide-sm, html.app .owner, html.app .wrap > .back { display: none; }
html.app .top { border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(10, 40, 46, .06); }
html.app .top-in { min-height: 56px; gap: 6px; }
html.app .top-r { gap: 6px; }
html.app .brand small { display: none; }
html.app .brand b { font-size: 19px; }
html.app .brand img { width: 34px; height: 34px; }
html.app .lang button { padding: 4px 8px; font-size: 13px; }
html.app .appbar-back { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 4px; font-weight: 800; font-size: 18px; color: var(--fg); font-family: var(--font-display); min-width: 0; }
html.app .app-title { display: block; flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { html.app .app-title { font-size: 18px; } }
html.app .appbar-back .ic { width: 24px; height: 24px; flex: none; }
html.app .appbar-back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.app .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 18px rgba(10, 40, 46, .06); }
html.app .tabs button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); position: relative; padding: 2px 0; }
html.app .tabs button[aria-current="page"] { color: var(--teal); }
html.app .tabs .badge { position: absolute; top: -4px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; font-size: 11px; }
html.app .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
html.app .hero .kicker, html.app .hero h1, html.app .hero .sub, html.app .hero .qhint { display: none; }
html.app .hero-in { padding-block: 16px 46px; }
html.app .hero .palms { opacity: .22; }
html.app .hero .sun { width: 84px; height: 84px; top: 10px; }
html.app .app-hello { display: block; color: var(--hero-fg); font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.2; margin-bottom: 12px; }
html.app .app-hello small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--hero-sub); margin-top: 2px; }
html.app .search { margin-top: 0; }
.foot .chip { background: var(--surface); border: 1.5px solid var(--line); padding: 0 13px; }
.foot .chip[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-strong); }
.app-theme { flex-basis: 100%; margin-top: 8px; } .app-theme .filters { justify-content: center; } .app-theme .fine { text-align: center; }
html.app .app-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 18px 0 6px; }
html.app #view > * { animation: appIn .22s ease-out; }
@keyframes appIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.app #view > * { animation: none; } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(125deg, var(--hero-a) 0%, var(--hero-b) 70%); color: var(--hero-fg); position: relative; }
.hero-in { position: relative; z-index: 2; padding-block: 44px 64px; }
.hero .sun { position: absolute; right: 9%; top: 34px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--hero-sun) 0%, var(--hero-sun) 55%, transparent 70%); opacity: .85; }
.hero .palms { position: absolute; right: 2%; bottom: 26px; width: min(380px, 40vw); height: auto; opacity: .5; color: var(--hero-a); }
.hero .waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; color: var(--bg); }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--hero-sub); }
.hero h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-top: 14px; max-width: 700px; }
.hero h1 em { font-style: normal; color: var(--hero-sun); }
.hero .sub { color: var(--hero-sub); font-size: 16px; margin-top: 8px; max-width: 620px; }
.search { margin-top: 26px; background: var(--surface); color: var(--fg); border-radius: 16px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 0; max-width: 860px; box-shadow: var(--shadow-lg); }
.sf { padding: 6px 14px; border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.sf:nth-child(3) { border-right: 0; }
.sf label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 5px; }
.sf label .ic { width: 14px; height: 14px; }
.sf select { border: 0; background: transparent; font-size: 17px; font-weight: 700; padding: 2px 0; width: 100%; min-width: 0; }
.search .btn { min-height: 54px; padding: 0 28px; font-size: 17px; border-radius: 12px; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 15px; color: var(--hero-sub); }
.popular button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: var(--hero-fg); border-radius: 15px; padding: 2px 12px; font-weight: 600; }
.popular button:hover { background: rgba(255,255,255,.2); }
@media (max-width: 760px) {
  .hero-in { padding-block: 28px 56px; }
  .hero .sub { font-size: 16px; }
  .search { grid-template-columns: 1fr 1fr; }
  .sf { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .sf:nth-child(3) { grid-column: 1 / -1; }
  .search .btn { grid-column: 1 / -1; margin-top: 8px; min-height: 48px; }
  .hero .palms { width: 200px; opacity: .3; }
}

/* ---------- sections ---------- */
.sec { padding-block: 28px 8px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { font-size: 24px; font-weight: 800; }
.sec-h .btn { flex: none; }
.cats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.cat { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 14.5px; line-height: 1.2; min-height: 112px; justify-content: center; }
.cat:hover { border-color: var(--c, var(--teal)); }
.cat .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.cat .ico .ic { width: 24px; height: 24px; }
.cat small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .cat { min-height: 100px; font-size: 13px; padding: 10px 6px; } }
.t-teal { background: var(--teal-soft); color: var(--teal); }
.t-lat { background: var(--lat-soft); color: var(--lat); }
.t-mango { background: var(--mango-soft); color: var(--mango-ink); }
.t-palm { background: var(--palm-soft); color: var(--palm); }
.ctone { background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); color: color-mix(in srgb, var(--c) var(--ink-pct), var(--ink-base)); }

.adbar { display: flex; align-items: center; gap: 14px; background: var(--mango-soft); border: 1.5px dashed var(--mango); border-radius: var(--r); padding: 12px 16px; color: var(--mango-ink); margin-top: 26px; flex-wrap: wrap; }
.adbar .adtag { font-size: 11px; font-weight: 800; letter-spacing: .08em; border: 1.5px solid currentColor; border-radius: 5px; padding: 0 6px; }
.adbar b { font-family: var(--font-display); font-size: 18px; color: var(--fg); }
.adbar span { font-size: 14px; }
.adbar .btn { margin-left: auto; }
.dper { margin-bottom: 10px; }
/* the owner's seasonal box, first on the home page, and its own page /season/<id> (ads plan section K) */
.special.sp-page { margin-top: 18px; }
.special.sp-page h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.15; margin: 0; color: var(--lat-strong); }
.special .sp-until { font-size: 14px; font-weight: 700; color: var(--lat-strong); margin-top: 6px; }
.sp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; margin: 18px 0 36px; }
.special { background: linear-gradient(120deg, var(--lat-soft) 0%, var(--mango-soft) 100%); color: var(--fg); border: 1px solid color-mix(in srgb, var(--lat) 22%, transparent); border-left: 6px solid var(--lat); border-radius: var(--r); padding: 16px 18px 18px; margin-top: 22px; box-shadow: 0 6px 18px rgba(185, 71, 42, .10); }
.special .sp-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.special .sp-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--lat); color: var(--on-lat); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px 3px 8px; margin-bottom: 6px; }
.special .sp-tag .ic { width: 14px; height: 14px; }
.special h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.2; margin: 0; color: var(--lat-strong); }
.special p { margin: 2px 0 0; color: var(--muted); }
.special .sp-head .btn { margin-left: auto; flex: none; background: var(--lat); color: var(--on-lat); border-color: var(--lat); min-height: 44px; }
.special .sp-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.special .mini { color: var(--fg); }
.dper .chip { min-height: 44px; } /* dashboard period chips: big enough to tap */

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; }
.mini:hover { box-shadow: var(--shadow); }
.mini .cov { height: 120px; position: relative; }
.mini .cov svg, .mini .cov img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mini .cov .tag { position: absolute; left: 10px; top: 10px; }
/* No photo: on a phone the big drawn cover says nothing, so it shrinks to a side tile. */
@media (max-width: 560px) { .mini.nop { flex-direction: row; } .mini.nop .cov { flex: 0 0 96px; height: auto; min-height: 96px; } .mini.nop .cov .tag { left: 6px; top: 6px; } .mini.nop .bd { flex: 1; min-width: 0; justify-content: center; } }
.mini .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.mini h3 { font-size: 18px; font-weight: 700; }
.mini .meta { font-size: 14px; color: var(--muted); }
/* ad booking (js/ads.js) */
.adprice { display: flex; flex-direction: column; gap: 2px; }
.adprice b { font-size: 24px; font-weight: 800; }
.adprice small { color: var(--muted); }
.adrep { border: 0; background: none; color: var(--faint); font-size: 12px; padding: 4px; margin-left: 4px; text-decoration: underline; }
/* paid plans (js/pay.js) */
.myplan h3 { font-size: 15px; margin: 14px 0 6px; }
.pl-head { display: flex; flex-direction: column; gap: 2px; border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; border-left: 5px solid; }
.pl-head b { font-size: 18px; }
.pl-head small { color: var(--muted); font-size: 13.5px; }
.pl-head.ok { background: var(--palm-soft); border-color: var(--palm); }
.pl-head.warn { background: var(--mango-soft); border-color: var(--mango-ink); }
.pl-head.bad { background: var(--lat-soft); border-color: var(--lat); }
.pl-due { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.paybtn { min-height: 48px; font-size: 17px; }
.pl-lines, .pl-past { display: flex; flex-direction: column; gap: 6px; }
.pl-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.pl-line > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pl-line small, .pl-past small { color: var(--muted); font-size: 13px; }
.pl-line .tag { grid-column: 1 / -1; justify-self: start; }
.pl-amt { font-weight: 800; }
.pl-past > div { display: flex; flex-direction: column; }
.planpill { display: inline-flex; align-items: center; gap: 6px; border-radius: 16px; padding: 3px 12px; font-size: 14px; font-weight: 700; border: 0; }
.planpill.ok { background: var(--palm-soft); color: var(--palm); }
.planpill.warn { background: var(--mango-soft); color: var(--mango-ink); }
.planpill.bad { background: var(--lat-soft); color: var(--lat-strong); }
.planbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--mango-soft); color: var(--mango-ink); border-radius: 12px; padding: 10px 12px; margin-top: 14px; }
.planbar span { flex: 1; min-width: 200px; color: var(--fg); font-weight: 600; }
.planbar .x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.pr-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pr-row small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.pricing-own { max-width: 560px; padding-bottom: 30px; }
/* what a listing sells, my businesses, the seller page (js/items.js) */
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.items.sm, .items.edit { grid-template-columns: 1fr; margin-bottom: 10px; }
.item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--surface); min-width: 0; }
.item.off .iph, .item.off .ibd b { opacity: .6; }
.item .iph { width: 64px; height: 64px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; }
.item .iph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .iph .ic { width: 26px; height: 26px; }
.item .ibd { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.item .ibd b { font-size: 16px; overflow-wrap: anywhere; }
.item .ibd small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.item .ibd .rateinfo { margin-top: 0; }
.item > .btn { flex: none; }
@media (max-width: 640px) { .items { grid-template-columns: 1fr; } }
.sells1 { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--palm); margin-top: 2px; }
.sells1 .ic { width: 15px; height: 15px; }
.tag.warn { background: var(--mango-soft); color: var(--mango-ink); }
.dot.ctone { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; }
.dot.ctone .ic { width: 15px; height: 15px; }
.mybiz { margin-bottom: 14px; }
.mybiz .mb-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mybiz .mb-h h2 { margin-right: auto; }
.mb-g { margin-top: 12px; }
.mb-gh { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.mb-gh small { color: var(--muted); }
.mb-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; min-height: 52px; }
.mb-row.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 4px 0 0 var(--teal); }
.mb-row .mb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mb-row .mb-t b { overflow-wrap: anywhere; }
.mb-row small { color: var(--muted); font-size: 13px; }
.mybiz .acts { margin-top: 10px; }
.seller-head { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.seller-head .av { width: 64px; height: 64px; font-size: 22px; }
.seller-head .sh-t { flex: 1; min-width: 200px; }
.sl-box { display: flex; align-items: center; gap: 8px; }
.sl-box small { color: var(--muted); font-size: 15px; font-weight: 600; }
.copyfrom { background: var(--teal-soft); border-radius: 12px; padding: 10px 12px; }
.copyfrom label { display: flex; align-items: center; gap: 6px; }
/* Google's hotel and restaurant lists on a hotel or restaurant search (js/gplace.js). Owner, 1 Dec 2026: it looks like our
   own listings (our surface, line, text colours and font; no "From Google" title); Google's "Google Maps" logo in the list
   says where it comes from. Google's own elements sit on the panel: the same panel colour for the list and for the
   details, set through the CSS properties Google documents for its elements (--gmp-mat-color-*), and the colour scheme of
   the element follows ours. The attribution (light-scheme-color, dark-scheme-color in js/gplace.js) keeps a 4.5:1 contrast
   on the panel in both modes (checked by tests/e2e/google_hotels.mjs). Nothing here hides, clips or covers Google's logo
   or attribution. Our own "Directions" link (#gh-dir) is under the card, outside it, in our usual button style.
   gh-line: the panel's border; gh-ink: our messages; gh-panel: the surface of Google's elements;
   gh-panel-ink and gh-panel-ink2: their text; gh-link: their links; gh-scheme: light or dark for the elements. */
:root { --gh-line: var(--line); --gh-ink: var(--fg); --gh-panel: var(--surface); --gh-panel-ink: var(--fg); --gh-panel-ink2: var(--muted); --gh-link: var(--teal); --gh-scheme: light; } /* the site's own colours (owner, 1 Dec 2026) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --gh-scheme: dark; }
}
:root[data-theme="dark"] { --gh-scheme: dark; }
.gh-card { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.gh-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; background: var(--teal-soft); border-radius: var(--r); font-weight: 600; }
.gh-cta span { flex: 1 1 220px; }
.gh-card .gh-cta .btn { align-self: center; }
.gh-card .btn { align-self: flex-start; max-width: 100%; height: auto; padding-block: 8px; white-space: normal; text-align: left; }
.gh-msg { background: var(--gh-panel); color: var(--gh-ink); border: 1px solid var(--gh-line); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; font-weight: 600; }
#gh-ctl:empty, .gh-dir:empty { display: none; }
.gh-dir { margin-top: 8px; }
.gh-holder { padding: 6px; background: var(--gh-panel); color: var(--gh-panel-ink); border: 1.5px solid var(--gh-line); border-radius: var(--r); color-scheme: var(--gh-scheme); }
.gh-holder gmp-place-search, .gh-holder gmp-place-details { width: 100%; margin: 0; border: none; color-scheme: var(--gh-scheme);
  --gmp-mat-color-surface: var(--gh-panel); --gmp-mat-color-on-surface: var(--gh-panel-ink); --gmp-mat-color-on-surface-variant: var(--gh-panel-ink2);
  --gmp-mat-color-primary: var(--gh-link); --gmp-mat-color-outline-decorative: var(--gh-line); --gmp-mat-font-family: var(--font-body); }

.owner { margin-top: 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }
.owner .l { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.owner h2 { font-size: 28px; font-weight: 800; }
.owner p { color: var(--muted); font-size: 16.5px; }
.owner ol { margin: 4px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.owner .r { background: var(--lat-soft); display: grid; place-items: center; padding: 24px; }
@media (max-width: 760px) { .owner { grid-template-columns: 1fr; } .owner .r { display: none; } }

/* ---------- results ---------- */
.rbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.rbar-in { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 12px; }
.rsel { display: flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; flex-wrap: wrap; }
.rsel label { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-right: 1px solid var(--line); min-height: 42px; color: var(--muted); }
.rsel label:last-child { border-right: 0; }
.rsel select { border: 0; background: transparent; font-weight: 700; color: var(--fg); padding: 6px 2px; max-width: 200px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 14px; color: var(--muted); padding-top: 14px; }
.crumb b { color: var(--fg); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; padding-block: 12px 28px; align-items: start; }
.rlist { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rmap { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--map-land); }
.viewtog { display: none; }
@media (max-width: 760px) {
  .rsel { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .rsel label { border-right: 0; border-bottom: 1px solid var(--line); }
  .rsel label:first-child { border-right: 1px solid var(--line); }
  .rsel label:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .rsel select { max-width: none; width: 100%; }
  .rbar .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; padding-bottom: 2px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .rmap { position: relative; top: 0; }
  .viewtog { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin-left: auto; }
  .viewtog button { border: 0; background: var(--surface); padding: 6px 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
  .viewtog button[aria-pressed="true"] { background: var(--teal); color: var(--on-teal); }
  .split[data-mode="list"] .rmap { display: none; }
  .split[data-mode="map"] .rlist { display: none; }
}
.bcard { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
.bcard.sel { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.bcard.featured { border-color: var(--mango); }
.bthumb { width: 104px; height: 104px; border-radius: 12px; border: 0; padding: 0; position: relative; overflow: hidden; display: grid; place-items: center; }
.bthumb img { width: 100%; height: 100%; object-fit: cover; }
.bthumb .ic { width: 42px; height: 42px; stroke-width: 1.6; }
.pinno { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--c, var(--lat)); color: var(--on-c, var(--on-lat)); box-shadow: 0 0 0 2px var(--surface); font-size: 13px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.pinno.feat { background: var(--mango); color: var(--on-mango); }
.binfo { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.binfo h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.binfo h3 button { background: none; border: 0; padding: 0; font: inherit; text-align: left; color: var(--fg); }
.binfo h3 button:hover { color: var(--teal); }
.binfo .meta { font-size: 14px; color: var(--muted); }
.binfo .line { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; align-items: center; }
.binfo .who { font-size: 14px; color: var(--muted); }
.binfo .who b { color: var(--fg); }
.acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
@media (max-width: 560px) { .bcard { grid-template-columns: 76px minmax(0, 1fr); padding: 12px; gap: 12px; } .bthumb { width: 76px; height: 76px; } .bthumb .ic { width: 32px; height: 32px; } .binfo h3 { font-size: 17px; } }
.empty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty h3 { font-size: 21px; }
.empty p { color: var(--muted); max-width: 46ch; }

/* ---------- map ---------- */
svg.map { display: block; width: 100%; height: auto; font-family: var(--font-body); }
.m-land { fill: var(--map-land); }
.m-park { fill: var(--map-park); }
.m-block { fill: var(--map-block); }
.m-water { fill: var(--map-water); }
.m-river { fill: none; stroke: var(--map-water); stroke-width: 16; stroke-linecap: round; }
.m-edge { fill: none; stroke: var(--map-edge); stroke-width: 10; stroke-linecap: round; }
.m-road { fill: none; stroke: var(--map-road); stroke-width: 7; stroke-linecap: round; }
.m-hwy-e { fill: none; stroke: var(--map-hwy-edge); stroke-width: 15; }
.m-hwy { fill: none; stroke: var(--map-hwy); stroke-width: 10; }
.m-rail { fill: none; stroke: var(--map-label); stroke-width: 3; opacity: .55; }
.m-rail-d { fill: none; stroke: var(--map-land); stroke-width: 1.5; stroke-dasharray: 9 9; }
.m-lbl { fill: var(--map-label); font-weight: 700; font-size: 15px; paint-order: stroke; stroke: var(--map-halo); stroke-width: 4px; stroke-linejoin: round; }
.m-lbl.big { font-size: 20px; letter-spacing: .08em; font-weight: 800; }
.m-sea { fill: var(--map-water-ink); font-style: italic; font-size: 15px; letter-spacing: .3em; }
.m-shield { fill: var(--surface); stroke: var(--map-hwy-edge); }
.m-shield-t { fill: var(--fg); font-size: 12px; font-weight: 800; }
.m-pin { cursor: pointer; }
.m-pin .pin, .m-pick .pin { fill: var(--c, var(--lat)); stroke: var(--surface); stroke-width: 2.5; }
.m-pin .halo { fill: var(--c); opacity: 0; }
.m-pin.sel .halo { opacity: .3; }
.m-pin .pic, .m-pick .pic { fill: none; stroke: var(--on-c, #FFFFFF); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.m-pin .nb circle { fill: var(--surface); stroke: var(--c); stroke-width: 2; }
.m-pin .nb text { fill: var(--fg); font-size: 11px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.m-pin.feat .nb circle { fill: var(--mango); stroke: var(--surface); }
.m-pin.feat .nb text { fill: var(--on-mango); }
.m-pick circle { fill: var(--surface); }
.m-ring { fill: var(--c, var(--lat)); opacity: .18; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.legend button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px 0 5px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; }
.legend button:hover { border-color: var(--c); }
.legend button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); }
.legend .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: var(--on-c); display: grid; place-items: center; flex: none; }
.legend .dot .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.legend small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.mapnote { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; font-size: 13px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.mapnote a { font-weight: 700; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.mapnote .ic { width: 14px; height: 14px; }
.pop { position: absolute; z-index: 3; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 12px; width: 240px; transform: translate(-50%, calc(-100% - 46px)); }
.pop b { display: block; font-size: 16px; font-family: var(--font-display); }
.pop .meta { font-size: 13px; color: var(--muted); }
.pop .acts { margin-top: 8px; }

/* ---------- detail ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--teal); font-weight: 700; padding: 14px 0 6px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; padding-bottom: 36px; align-items: start; }
@media (max-width: 900px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
.gallery { border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 16 / 8; background: var(--surface-2); max-width: 100%; }
.gallery > svg, .gallery > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery .thumbs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.gallery .thumbs button { width: 52px; height: 40px; border-radius: 8px; border: 2px solid var(--surface); padding: 0; overflow: hidden; background: var(--surface-2); }
.gallery .thumbs button[aria-pressed="true"] { border-color: var(--lat); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dhead { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.dhead h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
.dhead .meta { color: var(--muted); font-size: 16px; }
.dhead .line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side { position: sticky; top: calc(78px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .side { position: static; } }
.person { display: flex; align-items: center; gap: 12px; }
.person b { display: block; font-size: 17px; }
.person small { color: var(--muted); font-size: 14px; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cgrid .btn { padding: 0 6px; }
.numrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 15px; flex-wrap: wrap; }
.numrow span { user-select: all; font-weight: 700; }
.noprice { display: flex; gap: 10px; align-items: flex-start; background: var(--mango-soft); color: var(--mango-ink); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 15px; }
.noprice .ic { margin-top: 2px; }
.rateline { display: flex; gap: 10px; align-items: flex-start; background: var(--teal-soft); color: var(--fg); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.rateline .ic { margin-top: 2px; color: var(--teal); flex: none; }
.rateline small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.rateinfo { font-weight: 700; font-size: 14.5px; margin-top: 2px; }
.rates { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rates .inp { flex: 1 1 96px; min-width: 0; }
.rates select.inp { flex: 1 1 140px; }
.ask { border: 2px solid var(--teal); }
.ask textarea { width: 100%; min-height: 84px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; background: var(--surface); }
.ask .quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.ask .quick button { font-size: 13px; min-height: 28px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.hours .today { color: var(--teal); }
.sells { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rev { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.rev:first-of-type { border-top: 0; }
.rev .h { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.rev .h small { color: var(--faint); font-weight: 500; }
.rev p { color: var(--muted); }
.rsum { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.rsum .big { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: minmax(0, 1fr); } }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > label, .lbl { font-size: 14px; font-weight: 700; }
.fld .hint { font-size: 13px; color: var(--muted); }
.fld .err { font-size: 13.5px; color: var(--lat); font-weight: 600; }
.inp { width: 100%; min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); }
textarea.inp { min-height: 90px; resize: vertical; }
.inp:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.inp[aria-invalid="true"] { border-color: var(--lat); }
.req { color: var(--lat); margin-left: 3px; font-weight: 800; }
.gnote { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--teal-soft); color: var(--teal-strong); border-radius: 10px; padding: 9px 12px; font-size: 14.5px; }
.gnote > .ic { width: 18px; height: 18px; }
.gnote span { flex: 1; min-width: 200px; }
.pickmap[aria-invalid="true"] { border-color: var(--lat); box-shadow: 0 0 0 3px var(--lat-soft); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 9px; min-height: 40px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--lat); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos .ph { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; position: relative; background: var(--surface-2); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos .ph button { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); display: grid; place-items: center; padding: 0; }
.photos .ph button .ic { width: 13px; height: 13px; }
.photos .add { width: 76px; height: 76px; border-radius: 10px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.pickmap { border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); cursor: crosshair; }
.lgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 36px; }
@media (max-width: 900px) { .lgrid { grid-template-columns: minmax(0, 1fr); } }
.fsec { display: flex; flex-direction: column; gap: 14px; }
.fsec + .fsec { border-top: 1px solid var(--line); padding-top: 18px; }
.fsec h3 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.fsec h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--lat); color: var(--on-lat); font-size: 14px; display: grid; place-items: center; font-family: var(--font-body); }
.golive { display: flex; gap: 12px; align-items: flex-start; background: var(--palm-soft); color: var(--palm); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.pagehead { padding-block: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.pagehead h1 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; }
.pagehead p { color: var(--muted); font-size: 17px; }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi .l { font-size: 14px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.kpi .l .ic { width: 16px; height: 16px; }
.kpi .v { font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.kpi .d { font-size: 13px; color: var(--muted); }
.dgrid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; padding-bottom: 36px; }
@media (max-width: 900px) { .dgrid2 { grid-template-columns: minmax(0, 1fr); } }
.enq { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.enq:first-of-type { border-top: 0; }
.enq .h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.enq .h b { font-size: 16px; }
.enq .h small { color: var(--faint); font-size: 13px; }
.bubble { margin-top: 6px; background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: 9px 13px; display: inline-block; max-width: 100%; }
.bubble.me { background: var(--teal-soft); border-radius: 14px 4px 14px 14px; }
.trains .pagehead h1 { display: flex; align-items: center; gap: 10px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tgrid .panel { display: flex; flex-direction: column; gap: 10px; }
.tgrid .panel h2 { display: flex; align-items: center; gap: 8px; }
.tstations { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip { color: var(--fg); text-decoration: none; }
/* Station, train and route pages (tools/build_site.py): timetables as tables that scroll sideways on small phones. */
.statpage .doc { max-width: 960px; margin-bottom: 36px; }
.statpage .crumbs { font-size: 14px; color: var(--muted); }
.statpage .crumbs a { color: var(--teal); font-weight: 600; }
/* ST bus stand pages (tools/bus_pages.py): the other language's name under the h1, the language link at the top,
   one freshness box, hour jumps and destination chips big enough to tap. */
.statpage h1 .alt { display: block; font-size: 60%; font-weight: 700; color: var(--muted); margin-top: 2px; }
.statpage .crumbs .langto { margin-left: 12px; }
.statpage .fresh { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.statpage .fresh.warn { border-color: var(--mango); }
/* Festival calendar (design review, 1 Dec 2026): each month folds; a row is day | name, tag, village */
.evpage .evmonth { border-top: 1px solid var(--line); }
.evpage .evmonth > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; }
.evpage .evmonth > summary::-webkit-details-marker { display: none; }
.evpage .evmonth > summary h2 { margin: 0; flex: 1; display: flex; align-items: baseline; gap: 8px; }
.evpage .evmonth > summary h2 small { font-size: 14px; font-weight: 700; color: var(--muted); }
.evpage .evmonth > summary::after { content: "+"; font-size: 24px; font-weight: 700; color: var(--teal); padding: 0 4px; }
.evpage .evmonth[open] > summary::after { content: "−"; }
.evpage .evmonth h3 { font-size: 14px; text-transform: none; color: var(--muted); margin: 12px 0 4px; }
.evpage .evcal { list-style: none; padding: 0; margin: 0 0 8px; }
.evpage .evcal li { display: grid; grid-template-columns: 3.2em 1fr; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.evpage .evcal li > .d { grid-row: span 2; font-variant-numeric: tabular-nums; font-weight: 800; }
.evpage .evcal li > .tag { grid-column: 2; justify-self: start; margin-top: 2px; }
.evpage .evcal li > small { grid-column: 2; color: var(--muted); font-size: 14px; }
.statpage .busacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.statpage .busacts .btn { min-height: 44px; }
/* Jatra and festival pages and /events (RFD 004, design review D6, D14, D17 to D22): the date in the tinted box, a grey
   tag that still shows on the tint, visited links in mango ink, lines of about 70 characters, a photo that keeps its
   space while it loads. The weekly job writes the page (tools/seo_loop.py); the Pages Function adds the countdown and
   "Last checked" lines. */
/* the job's box (seo_loop.py datebox): p.fine label, p.dateline with the date and its tag, a second line, p.fine close */
.datebox > .fine:first-child { font-size: 13px; color: var(--muted); font-weight: 700; margin: 0; }
.datebox .dateline { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 2px 0 6px; }
.datebox .tag { margin: 0 6px 4px 0; vertical-align: middle; }
.datebox .wrongdate { display: inline-flex; align-items: center; min-height: 44px; } /* D6, D21: a 44 px tap target */
.tag.grey { background: var(--line); color: var(--fg); }
.statpage .countdown { font-weight: 700; color: var(--palm); margin: 6px 0 0; }
.statpage .lastcheck { margin: -4px 0 12px; }
.evpage a:not(.btn):visited { color: var(--mango-ink); }
.evpage .doc p:not(.busacts) { max-width: 70ch; }
/* Festival calendar month grid (owner, 1 Dec 2026; afterRender.static): chips on a computer, dots and a day list on a
   phone. Month view hides the server's folded list; List view (.cg-list) shows it as it was. */
.evpage .doc:not(.cg-list) > section[data-until] { display: none; }
.cg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; margin: 4px 0 10px; }
.cg-nav { display: flex; align-items: center; gap: 4px; }
.cg-bar button { min-height: 44px; min-width: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-weight: 700; font-size: 15px; padding: 0 12px; }
.cg-nav button[data-cgnav="-1"], .cg-nav button[data-cgnav="1"] { border-color: transparent; font-size: 26px; line-height: 1; padding: 0; }
.cg-bar button:disabled { opacity: .35; }
.cg-title { font-size: 18px; margin-left: 4px; }
.cg-switch { display: inline-flex; }
.cg-switch button { border-radius: 0; } .cg-switch button:first-child { border-radius: 10px 0 0 10px; } .cg-switch button:last-child { border-radius: 0 10px 10px 0; margin-left: -1.5px; }
.cg-switch button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.cg-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cg-grid th { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; text-align: center; }
.cg-grid td { border: 1px solid var(--line); vertical-align: top; height: 104px; padding: 2px; position: relative; overflow: hidden; }
.cg-grid td.out { background: var(--surface-2); color: var(--faint); }
.cg-d { display: flex; justify-content: center; width: 100%; border: 0; background: none; color: inherit; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 700; }
.cg-d > span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; }
.cg-d[aria-current="date"] > span { background: var(--teal); color: var(--on-teal); }
.cg-chip, .cg-more { display: block; width: 100%; margin: 2px 0 0; padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; text-decoration: none; border: 1px solid transparent; }
.cg-chip.s-confirmed, .cg-chip.s-reported { background: var(--palm-soft); color: var(--palm); }
.cg-chip.s-expected { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--faint); }
.evpage a.cg-chip:visited { color: inherit; }
.cg-chip.s-user { background: var(--teal-soft); color: var(--teal-strong); } /* festivals people added (migration 0061) */
.cg-add { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.festpage .fe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); }
.festpage .fe-lead { font-size: 17px; font-weight: 600; }
.festpage article p { overflow-wrap: anywhere; }
.cg-more { background: none; color: var(--teal-strong); font-weight: 700; }
.cg-dots { display: none; }
.cg-daylist:not(.picked) { display: none; } /* a computer shows the day only when it is clicked; a phone always (below) */
.cg-daylist h3, .cg-usual > summary { font-size: 15px; margin: 14px 0 4px; }
.cg-usual > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.cg-usual > summary small { color: var(--muted); }
@media (max-width: 767px) {
  .cg-grid td { height: 52px; padding: 0; }
  .cg-chip, .cg-more { display: none; }
  .cg-d { position: absolute; inset: 0; padding-top: 4px; align-items: flex-start; } /* the whole cell is the tap target */
  .cg-d[aria-pressed="true"]:not([aria-current]) > span { background: var(--teal-soft); color: var(--teal-strong); }
  .cg-dots { display: flex; gap: 3px; justify-content: center; position: absolute; left: 0; right: 0; bottom: 6px; pointer-events: none; }
  .cg-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--palm); }
  .cg-dots i.s-expected { background: var(--faint); }
  .cg-dots i.s-user { background: var(--teal); }
  .cg-daylist:not(.picked) { display: block; }
  .cg-title { font-size: 16px; }
}
.evphoto { margin: 0 0 12px; } /* the job writes figure.evphoto > img + figcaption.fine */
.evphoto img, img.evphoto { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 460px; object-fit: cover; border-radius: 12px; }
.btn.evrow { min-height: 48px; margin-bottom: 8px; } /* the Places screen's first row (D5) */
.toplist { padding-left: 22px; } .toplist > li { margin: 0 0 20px; } /* a district's Top 10 page (seo_loop.py render_top) */
/* "Phone / enquiry" box: stand and station pages, and the app's "All buses from" screen (data/phones.json) */
.phones { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 2px; margin: 12px 0; }
.phones h2, .phones h3 { font-size: 16px; margin: 8px 0 4px; }
.phones ul { margin: 0; padding-left: 18px; }
.phones li { margin: 4px 0; }
.phones a[href^="tel:"] { font-weight: 700; white-space: nowrap; color: var(--teal); }
.buspage .dests, .buspage .hours { display: flex; flex-wrap: wrap; gap: 8px; }
.buspage .dests .chip { min-height: 44px; }
.buspage .hours a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 11px; color: var(--teal); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.buspage details { margin: 12px 0; } .buspage summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.buspage .tt tr[id] { scroll-margin-top: 80px; }
.ttwrap { overflow-x: auto; margin: 8px 0 4px; }
.tt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tt th, .tt td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tt th { font-size: 13px; color: var(--muted); font-weight: 700; }
.tt td.tn { white-space: normal; min-width: 170px; }
@media (max-width: 560px) {
  .statpage .panel.doc { padding-inline: 12px; }
  .tt th, .tt td { padding: 8px 5px; }
  .tt th { white-space: normal; }
  .tt td.tn { min-width: 130px; overflow-wrap: break-word; }
}
.tgrid .panel .btn.block { margin-top: auto; }
.tsearch { margin-bottom: 10px; }
.tsearch .inp { width: 100%; }
.tlist { padding: 4px 14px; }
.trow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border: 0; border-top: 1px solid var(--line); width: 100%; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trow:hover { background: var(--surface-2); }
.tnowbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.tnowbox > span:first-child { display: flex; align-items: center; gap: 6px; }
.tnowbox .ic { width: 16px; height: 16px; color: var(--lat); }
.tnowbox .tdl, #tdetail .tdl { font-weight: 800; font-size: 13px; border-radius: 10px; padding: 3px 9px; white-space: nowrap; }
.tnext { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.tnext .ic { width: 18px; height: 18px; color: var(--teal); }
.ttl { list-style: none; margin: 12px 0 0; padding: 0; }
.ttl li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 34px; }
.ttl li::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.ttl li.past::before, .ttl li.now::before { background: var(--teal); }
.ttl .tdot { position: relative; z-index: 1; width: 12px; height: 12px; margin-left: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; }
.ttl li.past .tdot { background: var(--teal); border-color: var(--teal); }
.ttl li.past > span:nth-child(2) { color: var(--muted); }
.ttl li.here .tdot, .ttl li.moving .tdot { width: 26px; height: 26px; margin-left: 1px; background: var(--lat); border-color: var(--lat); color: #fff; }
.ttl li.here .tdot .ic, .ttl li.moving .tdot .ic { width: 15px; height: 15px; }
.ttl li.here > span:nth-child(2), .ttl li.moving > span:nth-child(2) { font-weight: 800; }
.ttl li.moving > span:nth-child(2) { color: var(--lat-strong); }
.ttl li.more { color: var(--faint); font-size: 13px; padding-left: 36px; display: block; min-height: 26px; }
.tmid .tends { display: block; font-size: 13px; font-weight: 700; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmapbtn { margin-top: 12px; }
.tmapbtn .ic { width: 18px; height: 18px; }
.lmap.tmapbox { height: 320px; border-radius: 14px; margin-top: 10px; }
.tmapbox path.tline { stroke: var(--teal); stroke-opacity: .55; stroke-dasharray: 2 7; stroke-linecap: round; fill: none; }
.tmapbox path.tline.past { stroke: var(--teal); stroke-opacity: 1; stroke-dasharray: none; }
.tmapbox path.tstop { stroke: var(--teal); fill: var(--surface); }
.tmapbox path.tstop.past { fill: var(--teal); stroke: var(--surface); }
.tmapbox path.tstop.end { stroke-width: 3; }
.ttrain span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lat); color: #fff; border: 2px solid #fff; box-shadow: var(--shadow); }
.ttrain .ic { width: 18px; height: 18px; }
.ttl li small { color: var(--muted); }
.ttl li .tlate { color: var(--lat-strong); }
.trow .tgo .ic { width: 18px; height: 18px; color: var(--faint); }
.trow .twhere > span { overflow-wrap: anywhere; }
.trow:first-child { border-top: 0; }
.trow .tno { font-weight: 800; color: var(--teal-strong); background: var(--teal-soft); border-radius: 8px; padding: 4px 8px; }
.trow .tmid { display: flex; flex-direction: column; min-width: 0; }
.trow .tmid b { font-size: 16px; }
.trow .tmid small { color: var(--muted); font-size: 13px; }
.trow .twhere { display: flex; align-items: center; gap: 4px; font-size: 14px; margin-top: 2px; }
/* ST bus page (js/stbus.js; owner, 2026-10-26) */
.bform { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; grid-template-areas: "from swap to find"; gap: 10px; align-items: end; margin-bottom: 12px; }
.bform .bfield:first-of-type { grid-area: from; } .bform .bfield + .bswap + .bfield { grid-area: to; } .bform .bswap { grid-area: swap; } .bform > .btn { grid-area: find; width: auto; }
@media (max-width: 760px) { .bform { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "from swap" "to swap" "find find"; } .bform .bswap { align-self: center; } }
.bfield { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfield label { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.bswap { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--teal); display: grid; place-items: center; cursor: pointer; }
.bswap .ic { width: 20px; height: 20px; }
.bsug { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto; }
.bsug button { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 9px 12px; color: inherit; font: inherit; cursor: pointer; }
.bsug button:first-child { border-top: 0; }
.bsug button:hover, .bsug button:focus-visible { background: var(--surface-2); }
.bsug small { display: block; color: var(--muted); font-size: 12.5px; }
.bsug .fine { padding: 10px 12px; margin: 0; }
.bsug .bme { display: flex; gap: 10px; align-items: center; }
.bsug .bme .ic { width: 18px; height: 18px; color: var(--teal); flex: none; }
.confirm { display: flex; gap: 8px; align-items: flex-start; background: var(--mango-soft); color: var(--mango-ink); border-radius: 12px; padding: 9px 12px; font-size: 14px; margin: 0 0 12px; }
.confirm .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.buspage .bh { font-size: 17px; margin: 16px 0 8px; }
.blist { padding: 2px 14px; }
.blist .li { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.blist .li:first-child { border-top: 0; }
.blist .li > .ic { margin-left: auto; width: 18px; height: 18px; color: var(--faint); transform: rotate(-90deg); flex: none; }
.blist .li small { display: block; color: var(--muted); font-size: 13px; }
.lic { width: 32px; height: 32px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-strong); display: grid; place-items: center; flex: none; }
.lic .ic { width: 17px; height: 17px; }
.bhead { display: flex; flex-direction: column; margin: 6px 0 8px; text-align: left; }
.bhead b { font-family: var(--font-display); font-size: 19px; }
.bhead small { color: var(--muted); }
.bnext { display: flex; gap: 8px; align-items: center; background: var(--palm-soft); color: var(--palm); border-radius: 12px; padding: 9px 12px; margin: 8px 0 10px; font-size: 14px; }
.bnext .ic { width: 18px; height: 18px; flex: none; }
.brow { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.brow:first-child { border-top: 0; }
.brow:hover { background: var(--surface-2); }
.brow.gone { opacity: .5; }
.brow .bt { display: flex; flex-direction: column; }
.brow .bt b { font-size: 19px; font-weight: 800; line-height: 1.15; }
.brow .bt b small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.brow .bt > small { font-size: 12.5px; color: var(--muted); }
.brow .bm { display: flex; flex-direction: column; min-width: 0; }
.brow .bm b { font-size: 15.5px; }
.brow .bm small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bb { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.brow .bf { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.bchg .brow { cursor: default; }
.bchg .brow:hover { background: none; }
.bchg .brow .bm small { white-space: normal; }
.brow .bf .ic { width: 18px; height: 18px; color: var(--faint); transform: rotate(-90deg); }
.btag { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.btag.lal { background: var(--lat-soft); color: var(--lat-strong); }
.btag.shiv { background: var(--teal-soft); color: var(--teal-strong); }
.btag.hir, .btag.warn { background: var(--mango-soft); color: var(--mango-ink); }
.btag.ktcl { background: var(--palm-soft); color: var(--palm); }
.bacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lmap.bmap { height: 300px; border-radius: 14px; margin-top: 4px; }
.bmap path.bline { stroke: var(--teal); stroke-opacity: .9; fill: none; }
.bmap path.bline.off { stroke-dasharray: 3 7; stroke-opacity: .6; stroke-linecap: round; }
#bdetail .tlh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 14px; }
#bdetail .tlh small { color: var(--muted); }
.bttl li.stand > span:nth-child(2) { font-weight: 700; }
.bttl li.onway { color: var(--muted); font-size: 14px; }
.bttl li.onway small { color: var(--faint); font-size: 12px; }
.bmap path.tstop.via { stroke: var(--teal); fill: var(--surface); }
.bttl .bdir { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-strong); vertical-align: middle; margin-left: 4px; }
.bttl .bdir .ic { width: 14px; height: 14px; }
.breport summary { cursor: pointer; display: flex; gap: 6px; align-items: center; font-weight: 700; color: var(--muted); margin-top: 12px; }
.breport summary .ic { width: 16px; height: 16px; }
.breport form { display: grid; gap: 8px; margin-top: 8px; justify-items: start; }
.breport textarea { width: 100%; }
.breport form > label:not(.sr) { font-weight: 700; font-size: 14px; }
.breport .inp { width: 100%; }
.bkind { display: grid; gap: 6px; }
.bkind label { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.bstopf { display: grid; gap: 8px; width: 100%; }
.bstopf .fine { margin: 0; }
.lmap.bpick { height: 240px; border-radius: 12px; }
/* "I'm on this bus" (js/stbus.js) */
.blive-box:empty { display: none; }
.blive-box { margin: 4px 0 10px; }
.blive-on { display: flex; gap: 8px; align-items: center; background: var(--palm-soft); color: var(--palm); border-radius: 12px; padding: 8px 12px; margin: 0 0 8px; font-size: 14px; }
.blive-on .dot, .bsharebar .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; animation: blivepulse 1.6s ease-in-out infinite; }
@keyframes blivepulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .blive-on .dot, .bsharebar .dot { animation: none; } }
.bshare-in { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.bshare-in small { color: var(--muted); font-size: 13px; flex: 1 1 240px; }
.btag.live { background: var(--palm-soft); color: var(--palm); }
.ttrain.blive span { background: var(--palm); }
.ttrain.bstopin span { background: var(--teal); }
.bnearnote { display: flex; gap: 8px; align-items: flex-start; background: var(--teal-soft); color: var(--teal-strong); border-radius: 12px; padding: 9px 12px; margin: 4px 0 10px; font-size: 14px; }
.bnearnote .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.bsharebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 1200; display: flex; gap: 10px; align-items: center;
  max-width: calc(100vw - 32px); padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--palm); color: #fff; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px; }
.bsharebar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bsharebar .btn { background: #fff; color: var(--palm); flex: none; }
.trow .twhere .ic { width: 14px; height: 14px; color: var(--lat); }
.trow .tdl { font-weight: 800; font-size: 13px; border-radius: 10px; padding: 3px 9px; white-space: nowrap; }
.trow .tdl.ok { background: var(--palm-soft); color: var(--palm); }
.trow .tdl.late { background: var(--lat-soft); color: var(--lat-strong); }
/* Katta (js/katta.js; was Bites) and Jobs (js/jobs.js) */
.bites { max-width: 620px; }
/* Katta feed, plain like X and Instagram (owner, 11 Nov 2026: no big title, no boxes with round corners): on a computer
   place | feed | today, the feed a flat column between two thin lines with posts divided by a line; on a phone the
   same feed edge to edge, with round "today" buttons over it (js/katta.js). */
.bites.kwide { max-width: 1180px; font-size: 15px; }
.kgrid { display: grid; grid-template-columns: 200px minmax(0, 580px) 300px; justify-content: center; gap: 0 24px; align-items: start; }
.kmain { background: var(--surface); border-inline: 1px solid var(--line); min-height: calc(100vh - 70px); }
.krooms, .kside { position: sticky; top: 76px; display: flex; flex-direction: column; padding-top: 12px; }
.krooms { gap: 2px; }
.kroom { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 20px; background: none; color: var(--fg); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.kroom:hover { background: var(--surface-2); }
.kroom[aria-pressed="true"] { font-weight: 800; }
.kroom .ic { width: 20px; height: 20px; }
.krooms select { margin: 4px 0 4px 8px; width: auto; min-height: 36px; border-radius: 18px; font-size: 14px; }
.kpostbtn { margin-top: 14px; min-height: 42px; border: 0; border-radius: 21px; background: var(--lat); color: var(--on-lat); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.bites .kchips { position: sticky; top: 62px; z-index: 4; display: flex; align-items: stretch; margin: 0; padding: 0 6px 0 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.ktab { flex: 1 0 auto; min-height: 44px; padding: 0 14px; font-size: 14.5px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ktab[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--teal); }
.kchips .kbell { align-self: center; border: 0; }
.kchips select { display: none; flex: none; align-self: center; width: auto; max-width: 132px; min-height: 34px; margin: 0 4px 0 10px; padding: 0 8px; border-radius: 17px; font-weight: 700; font-size: 14px; }
.kstories { display: none; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.kst { flex: none; width: 64px; white-space: nowrap; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; text-align: center; cursor: pointer; padding: 0; }
.kst i { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 4px; border-radius: 50%; border: 2.5px solid var(--lat); background: var(--surface); color: var(--teal); }
.kwide .kcompose { margin: 0; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; }
.kcompose b { margin-left: auto; padding: 5px 14px; border-radius: 16px; background: var(--teal); color: var(--on-teal); font-size: 14px; }
.kwide .bfeed { gap: 0; padding-bottom: 60px; }
.kwide .bite { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.kwide .bfeed > .empty { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.kwide .bite .bwho b { font-size: 15px; }
.kwide .bite .av { width: 36px; height: 36px; font-size: 13px; }
.kwide .bact .ic { width: 20px; height: 20px; }
.kwide .kopt { min-height: 38px; }
/* nobody's post to show yet: today's automatic posts fill the feed, so the side does not repeat them */
.kgrid:has(.kfill) .kauto { display: none; }
.kside { gap: 14px; }
.ktoday { padding: 14px 16px; border: 0; border-radius: 16px; background: var(--surface-2); }
.ktoday { font-size: 14px; }
.ktoday .klab { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.ktoday .bcap, .ktoday .kpoll, .ktoday .klink { margin-inline: 0; }
@media (max-width: 1099px) {
  .kgrid { grid-template-columns: 76px minmax(0, 600px) 300px; gap: 0 16px; }
  .kroom span, .krooms select { display: none; }
  .kroom { justify-content: center; padding: 0; }
  .kpostbtn { font-size: 0; }
  .kpostbtn::before { content: "+"; font-size: 26px; }
}
@media (max-width: 959px) {
  .bites.kwide { padding-inline: 0; }
  .kgrid { display: block; }
  .kmain { border-inline: 0; }
  .krooms, .kside { display: none; }
  .kstories { display: flex; }
  .kchips select { display: block; }
  .bites .kchips { position: static; overflow-x: auto; scrollbar-width: none; }
  .ktab { flex: none; }
  .kwide .kcompose { display: none; } /* phones post with the + button in the tab bar */
}
.bhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.bhead h1 { margin: 0; }
.bites .filters { margin: 12px 0; }
.bfeed { display: flex; flex-direction: column; gap: 16px; padding-bottom: 36px; }
.bite { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; }
.bite header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.bite .bwho { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.bite .bwho > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.bite .bwho small { color: var(--faint); font-size: 12px; }
.bite .bwho b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmedia { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
div.bmedia { background: var(--surface-2); }
.bacts { display: flex; gap: 4px; padding: 6px 8px 0; }
.bact { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--fg); font-weight: 700; cursor: pointer; }
.bact .ic { width: 24px; height: 24px; }
.bact.on { color: var(--lat); }
.bact.on .ic { fill: currentColor; }
.bcap { margin: 4px 14px 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.bmorec { margin: 0 14px 12px; padding: 0; min-height: 0; }
.bitead header { background: var(--mango-soft); }
.bhouse { padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bhouse h3 { margin: 0; }
.bperson { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.bperson > div { flex: 1; }
.bperson h2 { margin: 0; }
.bperson small { color: var(--muted); }
.bclist { display: flex; flex-direction: column; gap: 12px; max-height: 50vh; overflow-y: auto; margin-bottom: 12px; }
.bc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.bc p { margin: 2px 0 0; overflow-wrap: anywhere; }
.bc small { color: var(--faint); }
.bt-prev img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 12px; background: #000; }
.mlayers { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.mlayers .mlhead { display: none; }
@media (max-width: 760px) {
  .mlayers .mlhead { display: flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--fg); min-height: 36px; padding: 0; }
  .mlayers.folded .mlbody { display: none; }
}
.mlayers label { display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: 28px; }
.mlayers .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.mlayers .mlnote { color: var(--muted); font-size: 12px; }
/* Places people added (js/spots.js) */
.mlayers .mladd { display: flex; align-items: center; gap: 4px; margin-top: 4px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: 8px; background: none; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer; }
.mlayers .mladd svg { width: 14px; height: 14px; }
.sppop img { display: block; width: 200px; max-width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; background: var(--line); }
.spstrip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px 0 10px; }
.spstrip img { flex: 0 0 85%; max-height: 300px; object-fit: cover; border-radius: 12px; scroll-snap-align: start; background: var(--line); }
.spdet { white-space: pre-line; }
.spphotos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.spphotos span { position: relative; }
.spphotos img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.spphotos button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.spphotos button svg { width: 14px; height: 14px; }
.spphotos small { color: var(--muted); }
#sp-loc.ok { color: var(--palm); font-weight: 600; }
#sp-loc svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.sppts { font-size: 28px; margin: 4px 0; }
.sppick { height: 260px; margin-top: 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.spmap { color: var(--mango-ink); }
/* Maps page (js/map.js) and the Map buttons */
.qbox.big .btn.qmap { padding: 0 20px; }
.phead-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.phead-row .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mappage { position: relative; isolation: isolate; }
.lmap.full { height: calc(100vh - 76px); height: calc(100dvh - 76px); }
@media (max-width: 900px) { .lmap.full { height: calc(100vh - 140px); height: calc(100dvh - 140px); } .qbox.big .btn.qmap { padding: 0 14px; } }
.mapq { position: absolute; z-index: 1000; top: 12px; left: 60px; right: 12px; max-width: 460px; display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px 4px 12px; box-shadow: var(--shadow); }
.mapq > .ic { color: var(--muted); flex: none; }
.mapq .inp { border: 0; box-shadow: none; padding: 8px 4px; min-width: 0; flex: 1; background: transparent; }
.mapq-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 50vh; overflow: auto; }
.mapq-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 10px; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; border-radius: 8px; cursor: pointer; }
.mapq-list button:hover, .mapq-list button:focus-visible { background: var(--teal-soft); }
.mapq-list small, .mapq-list .none { color: var(--muted); font-size: 13px; }
.mapq-list .none { padding: 8px 10px; }
.mapq-list .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.macts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.mdir svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.mini .visits { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--teal-strong); font-weight: 700; }
.mini .visits .ic { width: 14px; height: 14px; }
/* chats (js/chat.js) */
/* Chats inbox like Instagram's messages (owner, 22 Nov 2026) */
.inbox { max-width: 760px; padding-bottom: 36px; }
.inbox .ihead { font-size: 24px; font-weight: 800; padding-block: 16px 10px; }
.isearch { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 10px; color: var(--muted); }
.isearch input::placeholder { color: var(--muted); }
.isearch input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--fg); outline: none; }
.isearch:focus-within { box-shadow: 0 0 0 2px var(--teal); }
.itabs { display: flex; gap: 18px; padding: 5px; margin: -5px -5px 1px; overflow-x: auto; scrollbar-width: none; } /* the padding keeps the focus ring inside the scroll box */
.itabs button { flex: none; min-height: 44px; background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.itabs button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.inbox .pending { margin: 6px 0; }
.chatlist .crow { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px 4px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; cursor: pointer; }
.chatlist .crow[hidden] { display: none; }
.chatlist .crow:hover { background: var(--surface-2); }
.crow .av { width: 52px; height: 52px; font-size: 17px; }
.crow .av .ic { width: 24px; height: 24px; }
.crow .cmid { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.crow .cmid b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .clast { display: flex; min-width: 0; color: var(--muted); font-size: 14px; }
.crow .clast > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .clast small { flex: none; white-space: pre; font-size: 14px; }
.crow .cnote { color: var(--lat); font-size: 12px; font-weight: 700; }
.crow .cwhich { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow.unread .cmid b, .crow.unread .clast { font-weight: 800; color: var(--fg); }
.cdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.chatlist .cnone { text-align: center; padding: 18px 0; }
.chatlist .cnone:empty { padding: 0; }
.chatwrap { max-width: 760px; display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.chathead { display: flex; align-items: center; gap: 10px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.chathead > .av { width: 40px; height: 40px; }
.chathead .ct { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chathead .ct .btn.link, .chathead .ct b { font-size: 17px; font-weight: 800; padding: 0; min-height: 0; justify-content: flex-start; text-align: left; }
.chathead .ct .btn.link { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chathead .ct small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chathead .cacts { display: flex; gap: 6px; }
.chathead .cacts .btn { min-width: 44px; min-height: 44px; }
.cbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.cbar > span:not(.acts) { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.cbar small { color: var(--muted); font-size: 13px; }
.cbar.ok { background: var(--palm-soft); }
.cbar .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.chatbox { background: none; border: 0; padding: 4px 2px 8px; height: calc(100dvh - 300px); min-height: 260px; overflow-y: auto; }
/* phones and the app: the chat fills the space between the header and the tab bar, so the message bar is never under the tabs */
@media (max-width: 760px) { .chatwrap { height: calc(100dvh - 56px - 76px - env(safe-area-inset-bottom, 0px)); } .chatbox { flex: 1; min-height: 0; height: auto; } }
html.app .chatwrap { height: calc(100dvh - 56px - 76px - env(safe-area-inset-bottom, 0px)); }
html.app .chatbox { flex: 1; min-height: 0; height: auto; }
.chatbox .warnline { margin-top: 6px; }
.chatbox .cempty { text-align: center; margin: 28px 0; }
.msg { display: flex; margin-top: 4px; }
.msg.mine { justify-content: flex-end; }
.msg .bubble { max-width: 80%; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatbox .bubble { margin-top: 0; border-radius: 20px; padding: 8px 14px; background: var(--surface-2); }
.chatbox .bubble:not(.me) { border: 1px solid var(--line); } /* light theme: the grey bubble on the grey page needs an edge */
.chatbox .bubble.me { background: var(--teal); color: var(--on-teal); border-radius: 20px; }
.chatbox .bubble.me small { color: inherit; opacity: .85; }
.chatbox .msg.mine + .msg.mine .bubble.me { border-top-right-radius: 6px; }
.chatbox .msg:not(.mine):not(.sys) + .msg:not(.mine):not(.sys) .bubble { border-top-left-radius: 6px; }
@media (max-width: 480px) { .hide-xs { display: none; } }
.msg .bubble small { display: block; text-align: right; color: var(--faint); font-size: 11px; margin-top: 2px; }
.msg.failed { flex-direction: column; align-items: flex-end; }
.msg.failed .bubble { opacity: .7; background: var(--teal-soft); color: var(--fg); } /* white on a faded teal was too faint */
.msg.sys { justify-content: center; }
.syscard { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; background: var(--mango-soft); color: var(--mango-ink); border-radius: 12px; padding: 8px 12px; font-size: 14px; max-width: 92%; text-align: center; }
.syscard small { color: inherit; opacity: .7; font-size: 11px; }
.syscard .ic { width: 16px; height: 16px; }
.cday { text-align: center; margin: 12px 0 4px; }
.cday span { background: var(--surface-2); color: var(--muted); font-size: 12px; border-radius: 10px; padding: 2px 10px; }
.chatform { display: flex; gap: 6px; align-items: flex-end; border: 1px solid var(--line); border-radius: 24px; padding: 4px 4px 4px 14px; background: var(--surface); }
.chatform:focus-within { border-color: var(--teal); }
.chatform textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; border: 0; background: none; padding: 9px 0; box-shadow: none; outline: none; }
.chatform textarea:focus { box-shadow: none; } /* the pill's teal border shows the focus */
.chatform .btn { min-width: 44px; min-height: 40px; border-radius: 20px; }
.chatclosed { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 12px; }
.reqrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.reqrow > span:first-child { display: flex; flex-direction: column; }
.reqrow small { color: var(--faint); font-size: 13px; }
.reqrow .acts { display: flex; gap: 6px; }
.reply { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.reply .inrow { display: flex; gap: 8px; }
.reply .inrow .inp { min-height: 38px; }
.starpick { display: inline-flex; gap: 2px; }
.starpick button { background: none; border: 0; padding: 2px; color: var(--line); }
.starpick button.on { color: var(--star); }
.starpick .ic { width: 26px; height: 26px; }
.starpick.sm .ic { width: 20px; height: 20px; }
.status-live { display: inline-flex; align-items: center; gap: 7px; background: var(--palm-soft); color: var(--palm); font-weight: 700; border-radius: 16px; padding: 3px 12px; font-size: 14px; }
.status-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.danger-zone { border-color: var(--lat); }
.pending { display: flex; gap: 12px; align-items: flex-start; background: var(--mango-soft); color: var(--mango-ink); border-radius: 12px; padding: 12px 14px; }
.pending b { color: var(--fg); }

/* ---------- overlays ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(6, 20, 24, .55); display: flex; align-items: flex-start; justify-content: center; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px 24px; overflow-y: auto; }
.mbox { background: var(--surface); border-radius: 20px; width: min(480px, 100%); box-shadow: var(--shadow-lg); padding: 22px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.mbox h2 { font-size: 26px; font-weight: 800; padding-right: 40px; }
.mbox .x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.oauth { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; font-size: 16px; width: 100%; }
.oauth:hover { background: var(--surface-2); }
.oauth.gbig { min-height: 58px; font-size: 18px; border-color: var(--teal); background: var(--teal-soft); color: var(--teal-strong); }
.gmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--teal); }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp { letter-spacing: .5em; font-size: 22px; font-weight: 800; text-align: center; }
.fine { font-size: 13px; color: var(--muted); }
.fyline { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; } .fyline svg { width: 14px; height: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 110; background: var(--fg); color: var(--bg); border-radius: 12px; padding: 12px 18px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: min(520px, calc(100vw - 32px)); display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* app-open ad (one fixed look in both themes) */
.ad { position: fixed; inset: 0; z-index: 100; background: #0A242A; color: #F4FAF9; display: flex; flex-direction: column; align-items: center; justify-content: safe center; overflow-y: auto; padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.ad-card { width: min(440px, 100%, 54vh); display: flex; flex-direction: column; gap: 14px; }
@media (max-height: 460px) { .ad-card { width: min(440px, 100%); } .ad-art { display: none; } }
.ad-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: #A9C9CD; }
.ad-top span { background: rgba(255,255,255,.1); border-radius: 12px; padding: 3px 10px; }
.ad-art { border-radius: 22px; overflow: hidden; aspect-ratio: 1 / .82; background: radial-gradient(circle at 50% 30%, #FFE7A8 0%, #F6C35A 45%, #E58A2E 100%); max-width: 100%; }
.ad-art svg { width: 100%; height: 100%; display: block; }
.ad h2 { font-size: 30px; font-weight: 800; color: #FFFFFF; }
.ad p { color: #C4DADC; }
.ad-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ad-visit { background: #FFFFFF; color: #0A242A; }
.ad-skip { min-width: 128px; background: rgba(255,255,255,.12); color: #FFFFFF; border: 1.5px solid rgba(255,255,255,.3); }
.ad-skip.ready { background: #FFFFFF; color: #0A242A; border-color: #F3BE55; box-shadow: 0 0 0 4px rgba(243,190,85,.45); }
.ad-prog { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.ad-prog i { display: block; height: 100%; width: 0; background: #F3BE55; }
@media (prefers-reduced-motion: reduce) { .ad-prog { visibility: hidden; } } /* the time still shows */
.ad-note { text-align: center; font-size: 13px; color: #8FB0B5; }

/* ---------- one-box search ---------- */
.hero-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.qbox { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--fg); border: 1.5px solid var(--line); border-radius: 14px; padding: 5px 5px 5px 14px; min-width: 0; }
.qbox > .ic { color: var(--muted); }
.qbox:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.q-in { flex: 1; border: 0; background: transparent; width: 100%; min-width: 0; font-size: 17px; font-weight: 600; padding: 8px 0; outline: none; color: var(--fg); }
.q-in::placeholder { color: var(--faint); font-weight: 500; }
.qbox.big { margin-top: 26px; max-width: 820px; border-color: transparent; padding: 8px 8px 8px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.qbox.big > .ic { width: 24px; height: 24px; }
.qbox.big .q-in { font-size: 17px; padding: 10px 0; }
.qbox.big .btn { min-height: 48px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.rbar .qbox { flex: 1 1 420px; }
.rfilt { flex: 1 1 100%; }
.rsub { font-size: 18px; margin: 4px 0 10px; }
.rfilt > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); padding: 2px 0; list-style: none; }
.rfilt > summary::-webkit-details-marker { display: none; }
.rfilt > summary .ic { width: 16px; height: 16px; }
.rfilt[open] > summary { margin-bottom: 8px; }
.qhint { color: var(--hero-sub); font-size: 15px; margin-top: 10px; }
@media (max-width: 560px) { .qbox.big { padding-left: 12px; } .qbox.big .btn { padding: 0 16px; } .qbox.big .btn .ic { display: none; } .qbox.big .q-in { font-size: 17px; } }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; max-height: min(420px, 60vh); overflow-y: auto; text-align: left; }
.sugg li { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--surface-2); }
.sugg .sgi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.sugg .sgi .ic { width: 18px; height: 18px; }
.sugg li b { display: block; font-size: 15.5px; line-height: 1.25; font-weight: 700; }
.sugg li small { display: block; color: var(--muted); font-size: 13px; }
.sugg .pc { margin-left: auto; font-size: 12.5px; color: var(--teal); font-weight: 700; white-space: nowrap; }
.sugg .hd { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 6px 10px 2px; cursor: default; }
.sugg .hd:hover { background: none; }
.rhead { padding-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.rhead h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.rhead .crumb { padding-top: 0; }
.widen { display: flex; gap: 8px; align-items: center; margin-top: 8px; background: var(--mango-soft); color: var(--mango-ink); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14.5px; }
.catrow { padding: 12px 0 0; background: none; border: 0; }
.hscroll { scrollbar-width: none; }
@media (max-width: 760px) { .hscroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .hscroll > * { flex: none; } }

/* region map (all Konkan) */
.m-stdot { fill: var(--map-label); opacity: .55; }
.m-stlbl { fill: var(--map-label); font-weight: 600; paint-order: stroke; stroke: var(--map-halo); stroke-width: 4px; stroke-linejoin: round; }
.m-dist { fill: var(--map-label); opacity: .3; font-weight: 800; letter-spacing: .3em; }
.m-hwy, .m-hwy-e, .m-rail, .m-rail-d { stroke-linejoin: round; stroke-linecap: round; }
.m-cl { cursor: pointer; }
.m-cl .core { fill: var(--c); stroke: var(--surface); stroke-width: 3; }
.m-cl .halo { fill: var(--c); opacity: .22; }
.m-cl text { fill: var(--on-c); font-weight: 800; text-anchor: middle; pointer-events: none; }
.m-cl:hover .halo, .m-cl:focus .halo { opacity: .4; }

/* ---------- news ---------- */
.feed { display: flex; flex-direction: column; gap: 16px; max-width: 880px; padding-bottom: 36px; }
.ncard { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ncard.hl { box-shadow: 0 0 0 3px var(--teal); }
.ncard.nophoto { grid-template-columns: minmax(0, 1fr); }
.nread { align-self: flex-start; padding: 0; font-weight: 700; color: var(--teal); }
.nimg { position: relative; }
.nimg .ncredit { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 8px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nimg .ncredit a { color: #fff; }
.nimg.npic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 16px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0a2a30)); }
.nimg.npic .ic { position: static; width: 44px; height: 44px; opacity: .9; }
.nimg.npic b { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.nimg.npic span { font-size: 14px; opacity: .85; }
.nfoot .nshare { margin-left: auto; color: var(--wa); }
.nfoot .nshare ~ .btn.link, .nfoot .nshare ~ .own { margin-left: 0; }
.nfoot .nlike ~ .nshare { margin-left: 0; }
.nlike .ic { width: 20px; height: 20px; }
.nlike.on { color: var(--lat); }
.nlike.on .ic { fill: currentColor; }
.nfline { display: flex; align-items: center; gap: 10px; padding: 10px 0 8px; }
.nfsum { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--muted); font-size: 14px; white-space: nowrap; cursor: pointer; }
.nfsum b { color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.nfsum .ic { width: 16px; height: 16px; flex: none; }
.nfsum[aria-expanded="true"] > .ic:last-child { transform: rotate(180deg); }
.nfline .btn { margin-left: auto; flex: none; }
.seentag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--faint); }
.seentag .ic { width: 13px; height: 13px; }
.newsread .feed { max-width: 760px; padding-top: 4px; }
.ncard.stacked { grid-template-columns: minmax(0, 1fr); }
.ncard.stacked .nimg { min-height: 0; aspect-ratio: 16 / 9; }
/* a long post makes the card tall: keep the picture its own shape instead of stretching and cropping it */
@media (min-width: 761px) { .ncard:not(.stacked) .nimg { align-self: start; min-height: 0; aspect-ratio: 4 / 5; } }
.nimg { position: relative; min-height: 210px; background: var(--surface-2); }
.nimg > svg, .nimg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nbody { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nmeta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.nbody h3 { font-size: 22px; font-weight: 800; }
.nbody p { color: var(--muted); font-size: 16px; }
.nbody p.ntext { white-space: pre-line; overflow-wrap: anywhere; }
.nbody p.ntext b { color: var(--fg); font-weight: 800; }
.nfoot { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.poster { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; font-weight: 700; color: var(--fg); text-align: left; }
.poster .av { width: 32px; height: 32px; border-radius: 9px; }
.poster .av .ic { width: 17px; height: 17px; }
.poster small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; line-height: 1.1; }
.nfoot .btn.link { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.kind { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 800; }
.sample { font-size: 12px; color: var(--faint); }
.ntext a.wiki { color: var(--teal); overflow-wrap: anywhere; }
.nsrc { display: inline-block; margin: 2px 0 6px; font-size: 13px; font-weight: 700; color: var(--teal); text-decoration: none; overflow-wrap: anywhere; }
.swipehint { display: none; }
@media (max-width: 760px) {
  .ncard { grid-template-columns: minmax(0, 1fr); }
  .nimg { min-height: 0; aspect-ratio: 16 / 9; }
  .feed.snap { height: calc(100dvh - 215px); min-height: 440px; overflow-y: auto; scroll-snap-type: y mandatory; gap: 12px; padding-bottom: 0; }
  /* one news = one phone screen (like Inshorts): a long text fades out and "Read full story" and Share stay in view */
  .feed.snap .ncard { scroll-snap-align: start; height: 100%; flex: 0 0 auto; grid-template-rows: auto minmax(0, 1fr); }
  .feed.snap .nimg { max-height: 30dvh; }
  .feed.snap .nbody { min-height: 0; overflow: hidden; }
  .feed.snap .ncard.nophoto { grid-template-rows: minmax(0, 1fr); }
  .feed.snap .ncard.nophoto .nbody p.ntext { font-size: 17.5px; line-height: 1.65; }
  .feed.snap .nbody > * { flex-shrink: 0; }
  .feed.snap .nbody p.ntext { flex: 0 1 auto; min-height: 0; overflow-y: auto; } /* up to 100 words: it scrolls, no fade (28 Nov 2026) */
  .feed.snap .nimg { max-height: 26dvh; }
  .swipehint { display: flex; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
}
.nmini { text-align: left; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.nmini:hover { box-shadow: var(--shadow); }
.nmini .nimg { min-height: 0; aspect-ratio: 16 / 7; }
.nmini .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.nmini h3 { font-size: 17px; font-weight: 700; }
.nmini .meta { font-size: 13px; color: var(--muted); }

/* ---------- ads ---------- */
.adtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .adtypes { grid-template-columns: minmax(0, 1fr); } }
.adtype { text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.adtype b { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.adtype small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.adtype[aria-pressed="true"] { border-color: var(--lat); background: var(--lat-soft); }
.counter { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--lat); font-weight: 700; }
.mphone { width: 240px; max-width: 100%; margin: 0 auto; border-radius: 28px; background: #0A242A; border: 7px solid #15191B; padding: 12px; color: #F4FAF9; display: flex; flex-direction: column; gap: 8px; }
.mphone .top { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: #A9C9CD; font-weight: 700; }
.mphone .art { border-radius: 14px; overflow: hidden; aspect-ratio: 1 / .8; position: relative; background: #F6C35A; }
.mphone .art > svg, .mphone .art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mphone h4 { font-family: var(--font-display); font-size: 19px; line-height: 1.15; color: #FFFFFF; margin: 0; overflow-wrap: anywhere; }
.mphone p { font-size: 12.5px; color: #C4DADC; overflow-wrap: anywhere; }
.mphone .row { display: flex; justify-content: space-between; gap: 6px; }
.mphone .row span { font-size: 11px; font-weight: 700; border-radius: 8px; padding: 5px 9px; background: #FFFFFF; color: #0A242A; }
.mphone .row span.sk { background: rgba(255,255,255,.12); color: #FFFFFF; }
.areq { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.areq:first-of-type { border-top: 0; }
.ad-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-cta { background: #FFFFFF; color: #0A242A; }

/* ---------- safety, sheets ---------- */
.safety h2 { display: flex; gap: 10px; align-items: center; }
.safety .lead { background: var(--mango-soft); color: var(--mango-ink); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.safety ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.warnline { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.warnline .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--mango-ink); }
.sheet { display: flex; flex-direction: column; gap: 10px; }
.sheet button { display: flex; gap: 12px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; width: 100%; }
.sheet button:hover { border-color: var(--teal); }
.sheet .av { border-radius: 12px; width: 42px; height: 42px; }
.sheet b { display: block; font-size: 16px; }
.sheet small { display: block; color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { .top .me { padding: 2px; border: 0; } .top .me .nm { display: none; } }
@media (max-width: 560px) {
  .cats { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 31%; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
}
/* Phones: the categories scroll sideways, so a small arrow (and a fade) shows there are more. */
.cats-wrap { position: relative; }
.cats-more { display: none; }
@media (max-width: 560px) {
  .cats-more { display: grid; place-items: center; position: absolute; right: -4px; top: 50%; width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--teal); box-shadow: var(--shadow); z-index: 2; transform: translateY(-50%); animation: catsNudge 1.6s ease-in-out infinite; }
  .cats-more .ic { width: 18px; height: 18px; transform: rotate(-90deg); }
  .cats-wrap::after { content: ''; position: absolute; top: 0; right: 0; bottom: 4px; width: 30px; pointer-events: none; background: linear-gradient(to right, transparent, var(--bg)); }
  .cats-wrap.at-end::after { display: none; }
}
@keyframes catsNudge { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(4px, -50%); } }
@media (prefers-reduced-motion: reduce) { .cats-more { animation: none; } }

/* ---------- station picker (searches gaons too) ---------- */
.pp { position: relative; min-width: 0; flex: 1; }
.pp-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: transparent; padding: 2px 0; text-align: left; color: var(--fg); min-width: 0; }
.pp-txt { min-width: 0; display: flex; flex-direction: column; }
.pp-txt b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.pp-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-btn > .ic { width: 16px; height: 16px; color: var(--muted); }
.pp-pop { position: absolute; left: -14px; top: calc(100% + 10px); width: min(400px, calc(100vw - 32px)); z-index: 70; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; }
.pp-qw { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--teal); border-radius: 10px; padding: 0 10px; box-shadow: 0 0 0 3px var(--teal-soft); }
.pp-qw .ic { color: var(--muted); width: 18px; height: 18px; }
.pp-q { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 10px 0; outline: none; color: var(--fg); }
.pp-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: min(360px, 55vh); overflow-y: auto; }
.pp-list li { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.pp-list li[aria-selected="true"], .pp-list li:hover { background: var(--surface-2); }
.pp-list li.cur b { color: var(--teal); }
.pp-list li > .ic { margin-left: auto; color: var(--teal); }
.pp-list .sgi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.pp-list .sgi .ic { width: 18px; height: 18px; }
.pp-list b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.pp-list small { display: block; color: var(--muted); font-size: 13px; }
.pp-list .hd { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 2px; cursor: default; }
.pp-list .none { color: var(--muted); cursor: default; }
.pp-list .hd:hover, .pp-list .none:hover { background: none; }
.rsel { overflow: visible; }
.rpp { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--line); min-height: 46px; min-width: 220px; color: var(--muted); }
.rpp .pp-txt b { font-size: 15.5px; }
.rpp .pp-txt small { font-size: 11.5px; }
.qhint .ic { width: 16px; height: 16px; vertical-align: -3px; }
.newsbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.nmeta .for { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--fg); }
.nmeta .ic { width: 14px; height: 14px; }
.nfoot .own { margin-left: auto; display: flex; gap: 4px; }
.nfoot .own .btn.link { margin-left: 0; }
@media (max-width: 760px) {
  .rpp { min-width: 0; border-bottom: 1px solid var(--line); }
  .newsbar .rsel { width: 100%; }
  .newsbar .rsel > label:last-child { grid-column: auto; }
  .newsbar .rpp { border-bottom: 0; }
}
/* Leaflet 1.9.4 stylesheet (BSD-2-Clause), inlined */
.leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-bottom,.leaflet-top{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:focus,.leaflet-bar a:hover{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px 'Lucida Console',Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:focus,.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px rgba(0,0,0,.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:0 0}.leaflet-container a.leaflet-popup-close-button:focus,.leaflet-container a.leaflet-popup-close-button:hover{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0,0,0,.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{position:absolute;pointer-events:none;border:6px solid transparent;background:0 0;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* ---------- live OpenStreetMap ---------- */
.lmap { height: 560px; width: 100%; background: var(--map-land); isolation: isolate; } /* keeps Leaflet's z-index 400-1000 layers inside the map, under pop-ups */
.lmap.tall { height: 640px; }
.lmap.small { height: 240px; }
/* Places to visit: cards, photo with its credit, text, facts and map */
.mini.place { color: inherit; text-decoration: none; }
.place-cov { width: 100%; height: 100%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.place-cov .ic { width: 42px; height: 42px; }
.place-photo { margin: 0; }
.place-photo img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r); display: block; }
.place-photo figcaption, .credit { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.place-body p { margin: 0 0 12px; line-height: 1.65; }
.place-body p:last-child { margin-bottom: 0; }
.ssr { padding-block: 18px 36px; }
/* The text each page carries for Google (data-ssr) stays invisible while the app starts, so it does not flash for a
   moment before the app draws the real screen (owner, 8 Nov 2026: "something blinks"). render() removes .booting;
   if the app has not started after 12 seconds (very slow data, or a failed script), the text shows anyway. */
.booting #view > [data-ssr] { visibility: hidden; animation: ssr-late 0s 12s forwards; }
@keyframes ssr-late { to { visibility: visible; } }
.lmap.pick { height: 320px; }
@media (max-width: 900px) { .lmap { height: 440px; } .lmap.tall { height: 480px; } }
.lmap .leaflet-tile-pane { filter: var(--tile-filter); }
.mzhint { position: absolute; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .2s; }
.mzhint.on { opacity: 1; }
/* "Show my location": a blue dot like Google Maps (addMeControl) */
.lme a { display: grid !important; place-items: center; }
.lme a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.lme a.on { color: #1a73e8; }
.leaflet-interactive.meloc { fill: #1a73e8; stroke: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.meacc { fill: #1a73e8; fill-opacity: .13; stroke: #1a73e8; stroke-opacity: .35; stroke-width: 1; }
.leaflet-container { font-family: var(--font-body); font-size: 14px; }
.lpin, .lcl-wrap { background: none; border: 0; }
.lpin svg { display: block; overflow: visible; }
.lcl { width: 100%; height: 100%; border-radius: 50%; background: var(--c); color: var(--on-c); display: grid; place-items: center; font-weight: 800; font-size: 15px; border: 3px solid var(--surface); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 28%, transparent), 0 4px 10px rgba(0,0,0,.25); cursor: pointer; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content b { display: block; font-family: var(--font-display); font-size: 16px; }
.leaflet-popup-content .meta { font-size: 13px; color: var(--muted); }
.leaflet-popup-content .acts { margin-top: 8px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--surface); color: var(--fg); border-bottom-color: var(--line); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 88%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--teal); }
.leaflet-tooltip.ltip { background: var(--surface); color: var(--fg); border: 0; box-shadow: var(--shadow); font-weight: 700; padding: 2px 8px; }
.leaflet-tooltip.ltip::before { display: none; }
.pickrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 22px; font-size: 14px; color: var(--muted); }
.foot b { color: var(--fg); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot button, .foot a { background: none; border: 0; color: var(--teal); font-weight: 700; padding: 0; text-decoration: none; }
.foot a { display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.doc { max-width: 780px; }
.doc h2 { font-family: var(--font-display); font-size: 20px; margin: 22px 0 6px; }
.doc p, .doc li { line-height: 1.6; }
.doc ul { padding-left: 20px; margin: 6px 0; }
.doc a { color: var(--teal); font-weight: 600; }
.pagehead .updated { color: var(--muted); font-size: 14px; }
.adbar .adimg { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.linkrow { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }

/* ---------- design review 1 Nov 2026: tap size, smallest text, sun behind the headline ---------- */
.cat small.first { color: var(--palm); font-weight: 700; }
/* trains and buses glide on the map between position updates (js/trains.js trainMover, js/stbus.js busMover) */
.ttrain.moving { transition: transform 4s linear; }
.ttrain.best span { background: var(--teal); }
.ttrain.best span::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed var(--teal); opacity: .6; }
.ttrain.best span { position: relative; }
/* an empty Katta page has its own "Write a post" button, so the box at the top hides (the feed fills in after the
   header is drawn, so this is done here and not when the header is written) */
.bites:has(.bfeed > .empty [data-bpost]) .kcompose { display: none; }
.bhead h1 small { font-size: .55em; color: var(--muted); font-weight: 600; }
.bhead-r { display: flex; align-items: center; gap: 4px; }
.kbell { position: relative; }
.kbell .badge { position: absolute; top: -6px; right: -6px; }
.kcompose { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.kcompose .ic { color: var(--lat); flex: none; }
.bites .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.kmenu { margin-left: auto; }
.kpost header { padding-bottom: 6px; }
.kpost header .bwho { flex: 0 1 auto; }
.kfollow { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--teal); color: var(--on-teal); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.kfollow.on { background: var(--surface-2); color: var(--fg); }
.ktag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; vertical-align: 2px; color: var(--fg); border: 1px solid var(--line); }
.ktag.q { background: color-mix(in srgb, #F59E0B 26%, transparent); }
.ktag.p { background: color-mix(in srgb, #3B82F6 22%, transparent); }
.ktag.h { background: color-mix(in srgb, #16A34A 22%, transparent); }
.ktag.r { background: color-mix(in srgb, #8B5CF6 22%, transparent); }
.av.kc { background: var(--teal); color: var(--on-teal); font-size: 13px; }
.kmention { color: var(--teal); font-weight: 700; }
.kurl { color: var(--teal); overflow-wrap: anywhere; }
.klink { display: flex; gap: 10px; align-items: center; margin: 0 14px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: inherit; text-decoration: none; }
.klink .ic { color: var(--teal); flex: none; }
.kcomic { display: block; margin: 0 14px 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.kcomic img { display: block; width: 100%; height: auto; }
.ktoday .kcomic { margin-inline: 0; }
.klink b { display: block; color: var(--teal); overflow-wrap: anywhere; font-size: 14px; }
.klink small { color: var(--muted); font-size: 12px; }
.kpoll { display: flex; flex-direction: column; gap: 8px; margin: 0 14px 12px; }
.kopt { display: flex; justify-content: space-between; gap: 8px; min-height: 44px; align-items: center; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.kopt:disabled { cursor: default; opacity: .7; }
.kopt.res { cursor: default; background: linear-gradient(90deg, color-mix(in srgb, var(--teal) 22%, transparent) var(--w), transparent var(--w)); }
.kopt.mine { border-color: var(--teal); }
.kpoll small { color: var(--muted); font-size: 12px; }
.kreplies { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.kreplies-h { font-size: 17px; margin: 8px 0 0; }
.kreplies .bc { padding: 10px; border-radius: 12px; }
.khelp { grid-template-areas: "t t t" "a b c"; border-left: 4px solid #16A34A; background: color-mix(in srgb, #16A34A 12%, transparent); }
.khelp-t { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; color: var(--fg); font-weight: 800; font-size: 13px; }
.khelp-t .ic { width: 16px; height: 16px; color: #16A34A; }
.kreply { position: sticky; bottom: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 8px; margin: 4px 0 28px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; }
.kreply textarea { flex: 1; resize: vertical; min-height: 44px; max-height: 40vh; }
.kreply-login { margin: 4px 0 28px; }
.ksug { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.ksug[hidden] { display: none; }
.kform .fld { margin: 0; }
.kcount { display: block; text-align: right; color: var(--muted); font-size: 12px; margin-top: 4px; }
.kchips { display: flex; flex-wrap: wrap; gap: 8px; }
.kchips .chip { cursor: pointer; }
.kchips .chip.static { cursor: default; }
.kchips .chip.off { opacity: .45; pointer-events: none; }
.kpollf { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.kpollf[hidden] { display: none; }
.kpollf .btn { align-self: flex-start; }
.krules { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.sheet button.danger b { color: #B42318; }
.kalerts button.new { border-color: var(--teal); background: var(--teal-soft); }
.kbl { display: block; margin-top: 4px; }
.kempty { margin: 4px 0; }
.kjob header { flex-wrap: wrap; }
.kjob header small { color: var(--faint); font-size: 12px; }
.kjob-b { padding: 0 14px; }
.kjob-b h3 { margin: 0 0 4px; font-size: 18px; }
.kjob-b h3 a { color: inherit; text-decoration: none; }
.kjob-m { margin: 0 0 6px; color: var(--muted); font-weight: 600; }
.kjob dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 8px 0; font-size: 14px; }
.kjob dt { color: var(--muted); }
.kjob dd { margin: 0; overflow-wrap: anywhere; }
.kjob .bcap { margin: 6px 0 8px; }
.kjob .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kjob-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px 12px; }
.jintro { color: var(--muted); margin: 8px 0 0; }
.jnote { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--lat-soft); color: var(--fg); font-size: 14px; }
.jnote .ic { flex: none; color: var(--lat); }

/* ---------- Travel (owner, 24 Nov 2026) ---------- */
/* the Travel tab: the bus on a small red pill (40 x 26), its name the same grey and font as the other tabs */
.tabs button .ic { box-sizing: content-box; padding: 3px 10px; border-radius: 13px; } /* every tab icon sits in the same 40 x 26 box, so all five names line up */
.tabs button.trav .ic { background: var(--lat-soft); color: var(--lat-strong); }
.tabs button.trav[aria-current="page"] { color: var(--lat-strong); }
/* Bus / Trains / Cabs at the top of the Travel page: the underline look of All posts / Following on Katta */
.ttabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin: 0 0 6px; }
.ttabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 700; font-size: 15px; color: var(--muted); }
.ttabs button[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--teal); }
.ttabs .ic { width: 18px; height: 18px; }
.cabsat { margin-top: 10px; } .cabsat label { display: flex; align-items: center; gap: 6px; }
.cabsat label .ic { width: 16px; height: 16px; }
/* a bus trip or a train opens as a full page over the screen (not a pop-up); the bottom tabs stay below it */
.modal.page { background: var(--bg); padding: 0; align-items: stretch; z-index: 44; } /* over the top bar (40), under the bottom tabs (45), which overlap its edge: no gap */
@media (max-width: 760px) { .modal.page { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); } }
html.app .modal.page { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
.modal.page .mbox { width: 100%; max-width: 760px; margin: 0 auto; min-height: 100%; border-radius: 0; box-shadow: none; padding: 0 16px 24px; }
.modal.page .mbox > .x { display: none; }
.pghead { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 0 -16px 12px; padding: 8px 12px; min-height: 56px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.pghead b { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgback { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -6px; background: none; border: 0; color: var(--fg); }
.pgback .ic { width: 24px; height: 24px; }
.pgmap { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--teal); font-weight: 700; font-size: 13px; }
.pgmap .ic { width: 16px; height: 16px; }
.modal.page #tdetail > h2:first-child, .modal.page #bdetail > h2:first-child { display: none; } /* the name is in the top line */
.modal.page #tdetail .ttl { max-height: none; overflow: visible; } /* the whole page scrolls: every station can be reached */
.modal.page .lmap.tmapbox, .modal.page .lmap.bmap { height: 220px; }
/* Full map: the map fills the screen and one finger moves it */
.fullmap { position: absolute; right: 8px; bottom: 26px; z-index: 1000; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 0; background: var(--surface); color: var(--teal); font-weight: 700; font-size: 13px; box-shadow: 0 1px 5px rgba(0, 0, 0, .25); }
.fullmap .ic { width: 15px; height: 15px; }
.lmap.big { position: fixed !important; inset: 0; z-index: 95; height: auto !important; border-radius: 0 !important; margin: 0 !important; }
/* nothing smaller than 12px */
.msg .bubble small, .syscard small, .btag, .adbar .adtag, .sugg .hd, .pp-list .hd, .rpp .pp-txt small { font-size: 12px; }
/* amenities: buttons in the listing form, ticks on the business page */
.amen { margin-top: 8px; }
.amenhead { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.amenrow { display: flex; flex-wrap: wrap; gap: 8px; }
.amenrow .chip[aria-pressed="true"]::before { content: '✓'; font-weight: 800; }
.tag.amen-on::before { content: '✓'; font-weight: 800; margin-right: 4px; color: var(--palm); }
.hoursame { margin: 4px 0 0; }
/* the ad cards that only say "advertise here" take less room */
.adbar.house { padding: 8px 12px; gap: 10px; margin-top: 16px; }
.adbar.house b { font-size: 15px; }
.adbar.house span:not(.adtag) { font-size: 13px; }
/* Pricing: the price is the first thing to see in each row; examples and "if you don't pay" sit in a tinted box */
.pr-row { padding: 14px 0; align-items: baseline; }
.pr-row b { font: 800 21px/1.1 var(--font-display); color: var(--teal-strong); }
.pr-row small { font-size: 14px; }
@media (max-width: 560px) { .pr-row b { font-size: 19px; max-width: 48%; text-align: right; } }
.dgrid2 .panel h3 { margin: 22px 0 6px; }
.dgrid2 .panel h3 + .fine { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.blist .bnext { color: var(--palm); font-weight: 700; }
.tmy { margin: 8px 0 0; display: grid; gap: 6px; }
.tmine { display: flex; gap: 8px; align-items: center; background: var(--palm-soft); color: var(--palm); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.tmine .ic { width: 18px; height: 18px; flex: none; }
.ttlh { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.ttlh + .ttl { margin-top: 4px; }
/* the train's station list: every station, in its own scrolling frame so the status above stays in view */
#tdetail .ttl { position: relative; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
/* news without a photo stays a text card (owner, 26 Oct); the kind's colour runs along the top so it is not plain */
.ncard.nophoto { border-top: 6px solid var(--c, var(--teal)); }
.ncard.nophoto .nbody h3 { font-size: 25px; line-height: 1.25; }
/* the contact bar on a business page: phones only, above the bottom tabs */
.stickybar { display: none; }
/* login screen (owner, 22 Nov 2026): the app shows only this until login; a website screen shows it in the page */
html.walled .top, html.walled #tabs, html.walled footer, html.walled #gad, html.walled .guestbar { display: none !important; }
html.walled body { padding-bottom: 0; }
.applock { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; background: var(--bg); }
.lw-lang { align-self: flex-end; }
.lw-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 4vh; }
.lw-brand img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow-lg); margin-bottom: 8px; }
.lw-brand b { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.lw-brand small { color: var(--muted); font-size: 16px; }
.lw-brand p { color: var(--muted); max-width: 30ch; margin-top: 6px; }
.lw-box, .lwall { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.lwall { margin: 28px auto 36px; text-align: center; }
.lw-box h2, .lwall h2 { font-size: 21px; }
.lw-box p, .lwall p { color: var(--muted); }
.lw-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lw-agree { font-size: 13px; }
.lw-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: auto; }
.lsearch .btn { min-height: 48px; width: 100%; max-width: 520px; }
.lw-box .btn.block, .lwall .btn.block { white-space: normal; padding-block: 8px; } /* long labels wrap (small phones, big system font) */
.lwall .btn.link, .applock .btn.link { min-height: 44px; min-width: 44px; }
.lw-lang button { min-height: 44px; min-width: 44px; }
.lang button:focus-visible { outline-offset: -3px; } /* .lang clips overflow: draw the ring inside */
.lw-wait [data-act="reload"] { animation: lw-late 0s 10s backwards; } /* not before 10 s: a reload during the Google code exchange loses the login */
@keyframes lw-late { from { visibility: hidden; } }
@media (max-height: 480px) { .lw-brand img, .lw-brand p { display: none; } .lw-brand { margin-top: 0; } }
/* website, logged out: a small bar to log in, above the phone tab bar */
.guestbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 43; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 16px; background: var(--surface); border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.guestbar .gbx { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--muted); cursor: pointer; }
html.has-guestbar body { padding-bottom: 64px; }
html.has-guestbar .toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
html.app .guestbar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: 6px; }
html.app.has-guestbar body { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
html.app.has-guestbar .toast { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) {
  .guestbar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: 6px; }
  html.has-guestbar body { padding-bottom: 136px; }
  html.has-guestbar .toast { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  body:has(.stickybar) .guestbar { display: none !important; } /* a business page has its own bar ('Log in to chat') */
}
@media (max-width: 760px) {
  .stickybar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 44; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(20, 38, 41, .10); padding: 8px 12px; }
  .stickybar .btn { flex: 1; min-height: 48px; font-size: 15px; padding: 0 8px; }
  #view:has(.stickybar) { padding-bottom: 72px; }
}
.foot .links button, .foot .links a { min-height: 44px; padding: 0 2px; }
.foot .links { gap: 0 14px; }
.sec-h .btn.link { min-height: 44px; }
.gad-label { font-size: 12px; }
@media (max-width: 760px) {
  .tabs button, html.app .tabs button { font-size: 12px; }
  .top-in .btn, .top-in .lang button, .top-in .only-sm { min-height: 44px; min-width: 44px; }
  .chip, .popular button, .btn, .btn.sm { min-height: 44px; }
  .brand, .cats-more { min-width: 44px; min-height: 44px; }
  .foot .links button, .foot .links a { min-width: 44px; }
  .popular { gap: 4px 8px; }
  /* the sun moves to the corner so the headline never sits on it */
  html:not(.app) .hero .sun { right: -30px; top: 12px; width: 108px; height: 108px; }
  html:not(.app) .hero h1 { padding-right: 56px; }
}
#kguide{position:fixed;inset:0;z-index:9000}
#kguide .kg-ring{position:fixed;border:3px solid #ff7a1a;border-radius:14px;box-shadow:0 0 16px #ff7a1a;pointer-events:none}
#kguide .kg-dim{position:fixed;background:#000;opacity:.6}
#kguide .kg-arrow{position:fixed;width:0;height:0;margin-left:-22px;border:22px solid transparent;animation:kgbob 1s ease-in-out infinite}
#kguide .kg-arrow.up{border-bottom:34px solid #ff7a1a;border-top:0}
#kguide .kg-arrow.down{border-top:34px solid #ff7a1a;border-bottom:0}
#kguide .kg-arrow.up::after,#kguide .kg-arrow.down::after{content:'';position:absolute;left:-7px;width:14px;height:40px;background:#ff7a1a;border-radius:4px}
#kguide .kg-arrow.up::after{top:32px}#kguide .kg-arrow.down::after{bottom:32px}
@keyframes kgbob{50%{transform:translateY(-8px)}}
#kguide .kg-arrow.down{animation-name:kgbobd}@keyframes kgbobd{50%{transform:translateY(8px)}}
#kguide .kg-card{position:fixed;left:16px;right:16px;max-width:420px;margin:0 auto;background:var(--card,#fff);color:var(--ink,#1a1a1a);border-radius:18px;padding:16px 18px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
#kguide .kg-card b{font-size:20px}#kguide .kg-card p{margin:6px 0 12px;font-size:16px;line-height:1.45}
#kguide .kg-card small{color:var(--muted,#666);font-size:14px}
.appbar { display: none; }
.top .gplay { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--fg); text-decoration: none; white-space: nowrap; }
.top .gplay:hover { background: var(--surface-2); }
.top .gplay svg { width: 14px; height: 14px; fill: var(--teal); }
html.has-appbar .appbar { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 4px 6px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
html.app .appbar { display: none !important; }
.appbar img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.appbar span { flex: 1; min-width: 0; line-height: 1.25; }
.appbar b { display: block; font-size: 15px; }
.appbar small { display: block; font-size: 13px; color: var(--muted); }
.appbar .btn { flex: none; min-height: 40px; }
.appbar .abx { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--muted); cursor: pointer; }
#kguide .kg-row{display:flex;gap:8px;align-items:center}#kguide .kg-row span{flex:1;color:var(--muted,#666);font-size:14px}
