/* ==========================================================================
   TNSTC homepage · base, layout and components.
   Mobile-first: every rule is written for 390px, then widened.
   Motifs: zari temple border (silk saree edge), pulli kolam texture,
   ticket perforations. Used sparingly, as accents rather than wallpaper.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: -.015em; font-weight: var(--fw-bold); }
h1, h2 { font-weight: var(--fw-black); }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3 { letter-spacing: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); font-weight: var(--fw-semibold); text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ---- Motifs --------------------------------------------------------------- */
.zari-band { height: 10px; background: url("../assets/zari.svg") repeat-x left center / 28px 10px; }
.kolam {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: var(--kolam-ink);
  -webkit-mask: url("../assets/kolam.svg") repeat 0 0 / 48px 48px;
          mask: url("../assets/kolam.svg") repeat 0 0 / 48px 48px;
}
/* three-dot pulli ornament before section titles */
.orn { display: inline-flex; gap: 5px; margin-bottom: var(--s-2); }
.orn i { width: 7px; height: 7px; border-radius: 50%; background: var(--cta); }
.orn i:nth-child(2) { background: var(--festive); }
.orn i:nth-child(3) { background: var(--brand); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-4);
  border: 1.5px solid transparent; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(2px); }
.btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: var(--sh-cta); }
.btn-cta:hover { background: var(--marigold-300); }
.btn-cta:active { box-shadow: 0 1px 0 var(--marigold-600); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-sunk); }
.btn-soft { background: var(--brand-soft); color: var(--link); }
.btn-soft:hover { background: var(--brand-soft-2); }
.btn-lg { min-height: var(--field-h); padding: 0 var(--s-5); font-size: var(--fs-md); border-radius: var(--r-md); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap); border-radius: var(--r-md);
  border: 0; background: transparent; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-sunk); color: var(--text); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap);
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); text-decoration: none; color: var(--link);
}
.link-arrow:hover { text-decoration: underline; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .zari-band { height: 6px; background-size: 17px 6px; }
.header-row { display: flex; align-items: center; gap: var(--s-2); height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: inherit; min-width: 0; margin-right: auto; }
.brand-logos { display: flex; align-items: center; gap: var(--s-2); }
.brand-logos .emblem { width: 34px; height: 34px; color: var(--brand); }
:root[data-theme="dark"] .brand-logos .emblem { color: var(--peacock-300); }
.brand-logos .divider { width: 1px; height: 28px; background: var(--line-strong); }
.brand-logos .logo { width: 36px; height: 36px; }
@media (min-width: 420px) { .brand-logos .logo { width: 40px; height: 40px; } }
.brand-name { display: flex; flex-direction: column; min-width: 0; }
.brand-name strong { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-black); letter-spacing: .02em; line-height: 1; }
.brand-name span { display: none; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; margin-top: 2px; }
@media (min-width: 560px) { .brand-name span { display: block; } }

.main-nav { display: none; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3);
  border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-sm); white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--surface-sunk); }

.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill);
  background: var(--surface-sunk); border: 1px solid var(--line);
}
.lang-switch button {
  min-height: 38px; min-width: 44px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--text-muted); font-weight: var(--fw-semibold); font-size: var(--fs-sm);
}
.lang-switch .full { display: none; }
@media (min-width: 480px) { .lang-switch .full { display: inline; } .lang-switch .short { display: none; } }
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.header-actions { display: flex; align-items: center; gap: var(--s-1); }
.header-actions .desk { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: flex; gap: var(--s-1); margin-right: var(--s-3); }
  .header-actions .desk { display: inline-flex; }
  .header-actions .mob { display: none; }
  .header-row { gap: var(--s-3); height: 72px; }
}

/* ---- Drawer (mobile menu) ---------------------------------------------- */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(360px, 88vw);
  border: 0; padding: 0; background: var(--surface); color: var(--text);
  box-shadow: var(--sh-3);
}
.drawer::backdrop { background: var(--scrim); }
.drawer[open] { animation: drawer-in 220ms var(--ease); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-inner { display: flex; flex-direction: column; min-height: 100%; padding: calc(env(safe-area-inset-top, 0px) + var(--s-3)) var(--s-4) calc(env(safe-area-inset-bottom, 0px) + var(--s-5)); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.drawer-head h2 { font-size: var(--fs-xl); }
.drawer-account { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-bottom: var(--s-5); }
.drawer-group + .drawer-group { margin-top: var(--s-5); }
.drawer-group h3 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--zari-text); margin-bottom: var(--s-2); }
:lang(ta) .drawer-group h3 { text-transform: none; letter-spacing: 0; }
.drawer-group a {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: var(--fw-medium);
}
.drawer-settings { margin-top: auto; padding-top: var(--s-5); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

/* ---- Network notice ------------------------------------------------------ */
.notice { background: var(--accent-soft); color: var(--text); }
.notice .container { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding-block: var(--s-1); }
.notice .icon { color: var(--accent-text); }
.notice p { flex: 1; font-size: var(--fs-sm); }
.notice .icon-btn { width: 40px; height: 40px; margin-right: calc(var(--s-2) * -1); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; padding-top: var(--s-6); padding-bottom: var(--s-5); }
.hero-art { position: absolute; inset: 0 0 auto 0; height: 440px; z-index: -1; overflow: hidden; background: var(--peacock-950); }
.hero-art svg { width: 100%; height: 100%; }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgb(4 32 46 / .55), rgb(4 32 46 / .25) 45%, transparent 70%); }
@media (min-width: 768px) { .hero-art::before { background: linear-gradient(to right, rgb(4 32 46 / .6), rgb(4 32 46 / .1) 50%, transparent 65%); } }
.hero-art::after {
  content: ""; position: absolute; z-index: 2; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--hero-fade));
}
:root[data-theme="dark"] .hero-art svg { filter: brightness(.78) saturate(.95); }
.hero-copy { color: #fff; max-width: 700px; margin-bottom: var(--s-5); text-shadow: 0 2px 16px rgb(4 32 46 / .4); }
.hero-seal {
  display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--zari-300); letter-spacing: .04em; text-shadow: none;
}
.hero-seal svg { width: 22px; height: 22px; color: var(--zari-300); }
:root:lang(en) .hero-seal { text-transform: uppercase; }
.hero h1 { font-size: var(--fs-2xl); }
:root:lang(ta) .hero h1 { font-size: var(--fs-xl); }
.hero-echo { display: block; margin-top: var(--s-2); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--marigold-300); line-height: 1.3; }
.hero-copy p { margin-top: var(--s-3); font-size: var(--fs-base); opacity: .92; }
@media (min-width: 768px) {
  .hero { padding-top: var(--s-9); }
  .hero-art { height: 500px; }
  .hero-art::after { height: 130px; }
  .hero-art .h-scene { transform: translateY(-46px); }
  .hero h1 { font-size: var(--fs-4xl); }
  :root:lang(ta) .hero h1 { font-size: var(--fs-3xl); }
  .hero-echo { font-size: var(--fs-xl); }
  .hero-copy p { font-size: var(--fs-md); }
}

/* hero motion: slow, ambient, and paused off-screen or for reduced motion */
.hero-art .h-cloud { animation: cloud 60s linear infinite; }
.hero-art .h-cloud.c2 { animation-duration: 90s; animation-delay: -30s; }
.hero-art .h-cloud.c3 { animation-duration: 75s; animation-delay: -50s; }
@keyframes cloud { from { transform: translateX(-260px); } to { transform: translateX(1700px); } }
.hero-art .h-rays { transform-box: fill-box; transform-origin: center; animation: spin 120s linear infinite; }
.hero-art .h-wheel { transform-box: fill-box; transform-origin: center; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art .h-bus { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-1.6px); } }
.hero-art .h-birds { animation: birds 28s linear infinite; }
@keyframes birds { from { transform: translate(-200px, 30px); } to { transform: translate(1600px, -40px); } }
.hero-art .h-flap { transform-box: fill-box; transform-origin: center; animation: flap .6s ease-in-out infinite; }
@keyframes flap { 50% { transform: scaleY(.45); } }
.hero-art .h-star { animation: twinkle 3.2s ease-in-out infinite; }
.hero-art .h-star:nth-child(2n) { animation-delay: -1.6s; }
.hero-art .h-star:nth-child(3n) { animation-delay: -.8s; }
@keyframes twinkle { 50% { opacity: .15; } }
.hero-art .h-glow { animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .55; } }
.hero-art .h-road { animation: road .9s linear infinite; }
@keyframes road { to { transform: translateX(-60px); } }
.hero.is-paused .hero-art * { animation-play-state: paused !important; }

/* ---- Search card --------------------------------------------------------- */
.search-card {
  position: relative; overflow: visible;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: calc(var(--s-4) + 8px) var(--s-4) var(--s-4); border: 1px solid var(--line);
}
.search-card > .zari-band { position: absolute; left: 0; right: 0; top: 0; height: 8px; background-size: 22px 8px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (min-width: 768px) { .search-card { padding: calc(var(--s-5) + 8px) var(--s-5) var(--s-5); } }
.search-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }

.segmented { display: inline-flex; padding: 4px; border-radius: var(--r-md); background: var(--surface-sunk); border: 1px solid var(--line); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4);
  border-radius: var(--r-sm); font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--text-muted);
}
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }

.recent-chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.recent-chip:hover { background: var(--surface-sunk); }
.recent-chip b { color: var(--text); font-weight: var(--fw-semibold); }

.search-grid { display: grid; gap: var(--s-3); }
.search-grid > *, .route-pair > *, .date-pair > * { min-width: 0; }
.route-pair { position: relative; display: grid; gap: var(--s-2); }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.search-submit { order: 4; }
.search-foot { order: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }

.field {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  min-height: 64px; padding: var(--s-2) var(--s-4);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field:hover { border-color: var(--text-muted); }
.field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field[data-invalid="true"] { border-color: var(--danger); }
.field > .icon { color: var(--text-muted); }
.field-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.field label, .field .field-label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); line-height: 1.3; }
.field input, .field .field-value {
  width: 100%; border: 0; outline: 0; background: transparent; padding: 0; margin: 0;
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text); line-height: 1.35;
  text-overflow: ellipsis;
}
.field input::placeholder { color: var(--text-muted); font-family: var(--font-body); font-size: var(--fs-md); font-weight: var(--fw-regular); opacity: 1; }
.field-sub { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-error { display: flex; align-items: center; gap: var(--s-1); margin-top: var(--s-1); color: var(--danger); font-size: var(--fs-xs); font-weight: var(--fw-medium); }

.field-btn { width: 100%; text-align: left; cursor: pointer; }
.field-btn:focus-visible { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field-btn .field-value { white-space: nowrap; overflow: hidden; }
@media (max-width: 479px) {
  .date-pair .field { padding-inline: var(--s-3); }
  .date-pair .field > .icon { display: none; }
  .field-btn .field-value { white-space: normal; }
  .hero-copy p { display: none; }
  .notice p { font-size: var(--fs-xs); }
}
.field-btn.is-empty .field-value { color: var(--link); font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: var(--fs-base); }

.swap-btn {
  position: absolute; z-index: 2; right: var(--s-4); top: 50%; transform: translateY(-50%);
  width: var(--tap); height: var(--tap); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cta); color: var(--cta-ink); border: 3px solid var(--surface); box-shadow: var(--sh-1);
  transition: transform 300ms var(--spring);
}
.swap-btn:hover { background: var(--marigold-300); }
.swap-btn.spin { transform: translateY(-50%) rotate(180deg); }
.route-pair .field:first-of-type { padding-right: 72px; }
.route-pair .field:last-of-type { padding-right: 72px; }

.date-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.date-chips .chips-label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); margin-right: var(--s-1); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-2);
}
.chip:hover { border-color: var(--link); color: var(--link); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: var(--fw-semibold); }
.chip-festival { border-color: color-mix(in srgb, var(--cta) 60%, transparent); background: var(--accent-soft); color: var(--accent-text); }
.chip-festival:hover { border-color: var(--cta-hover); color: var(--accent-text); }
.chip-festival[aria-pressed="true"] { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }

/* Single Lady preference: a pill that sits on the quick-dates row at the same 40px height */
.pref {
  display: flex; align-items: center; gap: var(--s-2); width: 100%;
  min-height: 44px; padding: 4px 8px 4px 6px; border-radius: var(--r-md);
  background: var(--festive-soft); border: 1.5px solid color-mix(in srgb, var(--festive) 30%, transparent);
}
.pref-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--festive); flex: none; }
.pref-label { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.3; cursor: pointer; }
.pref-label b { font-weight: var(--fw-semibold); }
.pref-hint { color: var(--text-2); font-size: var(--fs-xs); margin-left: 4px; }
@media (max-width: 1023px) {
  .pref-label { display: grid; line-height: 1.25; }
  .pref-hint { margin-left: 0; }
}

.switch { position: relative; flex: none; width: 40px; height: 24px; }
.switch input { position: absolute; inset: -10px -8px; width: calc(100% + 16px); height: calc(100% + 20px); opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--text-muted); transition: background var(--dur) var(--ease); }
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform 260ms var(--spring);
}
.switch input:checked + .switch-track { background: var(--festive); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--focus); outline-offset: 2px; }

.search-submit .btn { width: 100%; height: 100%; min-height: var(--field-h); font-size: var(--fs-md); font-family: var(--font-display); font-weight: var(--fw-black); }

@media (min-width: 1024px) {
  .search-grid { grid-template-columns: minmax(0, 2.4fr) minmax(0, 2fr) minmax(170px, auto); }
  .route-pair { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .route-pair .field:first-of-type { padding-right: 36px; }
  .route-pair .field:last-of-type { padding-right: var(--s-4); padding-left: 36px; }
  .swap-btn { right: auto; left: 50%; transform: translate(-50%, -50%) rotate(90deg); }
  .swap-btn.spin { transform: translate(-50%, -50%) rotate(270deg); }
  .search-submit { order: 0; }
  .search-foot { order: 0; grid-column: 1 / -1; justify-content: space-between; }
  .pref { width: auto; min-height: 40px; border-radius: var(--r-pill); padding: 0 8px 0 6px; }
}

/* ---- Combobox listbox ------------------------------------------------------ */
.combo { position: relative; }
.listbox {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  max-height: min(360px, 55vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3);
  padding: var(--s-2);
}
.listbox-head { padding: var(--s-2) var(--s-3) var(--s-1); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--zari-text); }
.option {
  display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm); cursor: pointer;
}
.option .icon { color: var(--text-muted); }
.option-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.option-names b { font-weight: var(--fw-semibold); }
.option-names span { font-size: var(--fs-sm); color: var(--text-muted); }
.option-tag { margin-left: auto; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }
.option[aria-selected="true"], .option:hover { background: var(--brand-soft); }
.option mark { background: transparent; color: var(--link); }
.listbox-empty { padding: var(--s-4) var(--s-3); color: var(--text-muted); font-size: var(--fs-sm); }

/* ---- Calendar (dialog) ------------------------------------------------- */
.cal-dialog {
  border: 0; padding: 0; background: var(--surface); color: var(--text);
  width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-3); overflow: hidden;
}
.cal-dialog::backdrop { background: var(--scrim); }
.cal-dialog[open] { animation: sheet-in 260ms var(--ease); }
@keyframes sheet-in { from { transform: translateY(32px); opacity: 0; } }
@media (min-width: 640px) { .cal-dialog { width: 400px; margin: auto; border-radius: var(--r-xl); } }
.cal { padding: var(--s-5) var(--s-4) calc(env(safe-area-inset-bottom, 0px) + var(--s-4)); }
@media (min-width: 640px) { .cal { padding: var(--s-5); } }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.cal-top h2 { font-size: var(--fs-xl); }
.cal-quick { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.cal-nav strong { font-family: var(--font-display); font-size: var(--fs-md); }
.cal-nav .icon-btn:disabled { opacity: .35; cursor: default; background: none; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-muted); padding-bottom: var(--s-2); }
.cal-grid td { padding: 2px; text-align: center; }
.day {
  position: relative; width: 100%; height: 46px;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--text);
  font-size: var(--fs-base); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums;
}
.day:hover:not(:disabled) { background: var(--brand-soft); }
.day:disabled { color: var(--text-muted); opacity: .45; cursor: default; }
.day.is-today { box-shadow: inset 0 0 0 2px var(--link); font-weight: var(--fw-bold); }
.day.is-festival::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--festive);
}
.day[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.day[aria-pressed="true"].is-festival::after { background: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--text-muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.cal-legend .lg-today { box-shadow: inset 0 0 0 2px var(--link); }
.cal-legend .lg-fest { width: 8px; height: 8px; border-radius: 50%; background: var(--festive); }
.cal-festivals { margin-top: var(--s-3); display: grid; gap: var(--s-1); }
.cal-festivals li { display: flex; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.cal-festivals b { color: var(--festive); min-width: 52px; }

/* ---- Sections ------------------------------------------------------------ */
.section { position: relative; padding-block: var(--s-6); }
@media (min-width: 768px) { .section { padding-block: var(--s-8); } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-5); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--text-muted); margin-top: var(--s-1); font-size: var(--fs-sm); }
@media (min-width: 768px) { .section-head h2 { font-size: var(--fs-3xl); } .section-head p { font-size: var(--fs-base); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }

/* ---- Quick actions ------------------------------------------------------- */
.quick { padding-top: var(--s-6); }
@media (min-width: 768px) { .quick { padding-top: var(--s-7); } }
.quick h2 { margin-bottom: var(--s-3); font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--zari-text); letter-spacing: .06em; }
:root:lang(en) .quick h2 { text-transform: uppercase; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.quick-grid li:last-child { grid-column: 1 / -1; }
.qa {
  display: flex; align-items: center; gap: var(--s-3); min-height: 60px; height: 100%; padding: var(--s-2) var(--s-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--text); text-decoration: none; font-weight: var(--fw-semibold); font-size: var(--fs-sm); line-height: 1.3;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.qa:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-1px); }
.qa-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--link); flex: none; }
.qa-icon::after { content: ""; position: absolute; right: -2px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--cta); border: 2px solid var(--surface); }
@media (min-width: 768px) {
  .quick-grid { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
  .quick-grid li:last-child { grid-column: auto; }
  .qa { min-height: 72px; padding: var(--s-3) var(--s-4); }
}

/* ---- Results (search preview) ------------------------------------------- */
.results { margin-top: var(--s-4); }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.results-head h2 { font-size: var(--fs-xl); }
.results-head p { color: var(--text-muted); font-size: var(--fs-sm); }
.bus-list { display: grid; gap: var(--s-3); }
.bus { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3) var(--s-4); padding: var(--s-4); }
.bus-times { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.bus-times .line { position: relative; flex: 1; min-width: 32px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.bus-times .line::before, .bus-times .line::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.bus-times .line::before { left: -2px; } .bus-times .line::after { right: -2px; }
.bus-times small { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); white-space: nowrap; }
.bus-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px var(--s-2); border-radius: var(--r-pill);
  background: var(--surface-sunk); color: var(--text-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.tag-success { background: var(--success-soft); color: var(--success); }
.tag-brand { background: var(--brand-soft); color: var(--link); }
.tag-accent { background: var(--accent-soft); color: var(--accent-text); }
.tag-festive { background: var(--festive-soft); color: var(--festive); }
.bus-price { text-align: right; }
.bus-price strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-black); }
.bus-price small { color: var(--text-muted); font-size: var(--fs-xs); }
@media (min-width: 768px) {
  .bus { grid-template-columns: 1.2fr 2fr auto auto; align-items: center; }
  .bus-meta { grid-column: auto; }
}
.bus-name { font-weight: var(--fw-semibold); }
.bus-name small { display: block; color: var(--text-muted); font-size: var(--fs-xs); font-weight: var(--fw-medium); }

.skeleton { position: relative; overflow: hidden; background: var(--surface-sunk); border-radius: var(--r-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { padding: var(--s-4); display: grid; gap: var(--s-3); }
.sk-row { display: flex; gap: var(--s-3); }

.state { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-6) var(--s-4); }
.state-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.state-icon.is-error { background: var(--danger-soft); color: var(--danger); }
.state h3 { font-size: var(--fs-xl); }
.state p { color: var(--text-muted); max-width: 44ch; }
.state .date-chips { justify-content: center; }

/* ---- Promo: WhatsApp + App ---------------------------------------------- */
.promo-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .promo-grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-5); } }
.wa-card { position: relative; overflow: hidden; display: grid; gap: var(--s-5); padding: var(--s-5); align-items: center; }
.wa-card > *:not(.kolam) { position: relative; }
@media (min-width: 640px) { .wa-card { grid-template-columns: 1fr auto; padding: var(--s-6); } }
.wa-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #25d366; color: #fff; margin-bottom: var(--s-3); }
.wa-badge svg { width: 28px; height: 28px; }
.wa-card h3 { font-size: var(--fs-2xl); font-weight: var(--fw-black); }
.wa-card p { color: var(--text-2); margin-top: var(--s-2); }
.wa-number { display: block; font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-black); letter-spacing: .01em; margin: var(--s-1) 0 var(--s-4); color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
.wa-number:hover { color: var(--link); }
.btn-wa { background: #075e54; color: #fff; }
.btn-wa:hover { background: #054a42; }
.wa-qr { display: none; text-align: center; }
.wa-qr img { width: 148px; height: 148px; padding: var(--s-2); background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); margin-inline: auto; }
.wa-qr p { font-size: var(--fs-xs); color: var(--text-muted); max-width: 160px; margin: var(--s-2) auto 0; }
@media (min-width: 640px) and (hover: hover) { .wa-qr { display: block; } }
@media (min-width: 900px) { .wa-qr { display: block; } }

.app-card {
  position: relative; overflow: hidden; padding: var(--s-5); border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, var(--peacock-500) 0%, var(--peacock-700) 45%, var(--peacock-950) 100%);
  box-shadow: var(--sh-2);
}
.app-card .kolam { background: rgb(255 255 255 / .06); }
.app-card > *:not(.kolam) { position: relative; }
@media (min-width: 640px) { .app-card { padding: var(--s-6); } }
.app-card h3 { font-size: var(--fs-2xl); font-weight: var(--fw-black); }
.app-card > p { margin-top: var(--s-2); opacity: .9; max-width: 34ch; }
.app-card .phone-art { position: absolute; right: -18px; bottom: -40px; width: 150px; opacity: .95; pointer-events: none; }
@media (max-width: 480px) { .app-card .phone-art { width: 110px; right: -24px; bottom: -48px; opacity: .5; } }
.store-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); position: relative; }
.store { display: flex; flex-direction: column; gap: var(--s-2); }
.store-badge {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 48px; padding: 0 var(--s-4) 0 var(--s-3);
  background: #000; color: #fff; border-radius: 10px; border: 1px solid rgb(255 255 255 / .35); text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge svg { width: 24px; height: 24px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge small { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; font-family: system-ui, sans-serif; }
.store-badge b { font-size: 17px; font-weight: 600; font-family: system-ui, -apple-system, sans-serif; }
.store-count { font-size: var(--fs-sm); opacity: .95; }
.store-count b { font-size: var(--fs-md); font-variant-numeric: tabular-nums; }

/* ---- Route cards: postcard tickets ------------------------------------------ */
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 900px) { .route-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } }
.route-card {
  --notch: 8px; --art-h: 92px;
  position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform 260ms var(--spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.route-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.route-art {
  position: relative; display: block; height: var(--art-h); overflow: hidden; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
  background: var(--tint); color: var(--ink);
}
.route-art[data-tone="peacock"] { --tint: var(--peacock-50); --ink: var(--peacock-700); }
.route-art[data-tone="marigold"] { --tint: var(--marigold-100); --ink: #b46b00; }
.route-art[data-tone="kumkum"] { --tint: var(--kumkum-100); --ink: var(--kumkum-600); }
.route-art[data-tone="leaf"] { --tint: var(--leaf-50); --ink: var(--leaf-700); }
.route-art[data-tone="zari"] { --tint: var(--zari-100); --ink: var(--zari-700); }
:root[data-theme="dark"] .route-art { background: color-mix(in srgb, var(--ink) 24%, #0f2229); color: color-mix(in srgb, var(--ink) 55%, #ffffff); }
.route-art .sun { position: absolute; right: 22%; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--cta); opacity: .9; }
.route-art > svg { position: absolute; right: 8px; bottom: 0; height: 80px; width: auto; }
.route-art .route-time {
  position: absolute; left: var(--s-3); top: var(--s-3); display: inline-flex; align-items: center; gap: 4px;
  padding: 2px var(--s-2); border-radius: var(--r-pill); background: var(--surface); color: var(--text);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); box-shadow: var(--sh-1);
}
/* perforation: two notches + a row of punched dots */
.route-card::before, .route-card::after {
  content: ""; position: absolute; top: calc(var(--art-h) - var(--notch)); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line); z-index: 1;
}
.route-card::before { left: calc(var(--notch) * -1 - 1px); clip-path: inset(0 0 0 50%); }
.route-card::after { right: calc(var(--notch) * -1 - 1px); clip-path: inset(0 50% 0 0); }
.route-body { position: relative; display: grid; gap: 2px; padding: var(--s-4) var(--s-3) var(--s-3); }
.route-body::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -2px; height: 4px;
  background: radial-gradient(circle, var(--line-strong) 1.6px, transparent 2px) 0 50% / 9px 4px repeat-x;
}
.route-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-md); line-height: 1.2; color: var(--text); overflow-wrap: break-word; }
/* Tamil city names are long: a touch smaller on two-up phone cards so words never split */
@media (max-width: 767px) { :root:lang(ta) .route-cities { font-size: calc(.9375rem * var(--ts)); } }
.route-cities .icon { color: var(--festive); width: 16px; height: 16px; }
.route-ta { font-size: var(--fs-xs); color: var(--text-muted); }
.route-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--link); }
@media (min-width: 768px) {
  .route-card { --notch: 9px; --art-h: 108px; }
  .route-body { padding: var(--s-5) var(--s-4) var(--s-4); }
  .route-art > svg { height: 96px; }
  .route-cities { font-size: var(--fs-lg); }
}

/* ---- Tour carousel -------------------------------------------------------- */
.carousel-ctrl { display: none; gap: var(--s-2); }
@media (min-width: 768px) { .carousel-ctrl { display: flex; } }
.carousel-ctrl .icon-btn { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 50%; }
.carousel-ctrl .icon-btn:disabled { opacity: .4; cursor: default; }
.tour-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: var(--s-1) var(--gutter) var(--s-4); margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.tour-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .tour-track { grid-auto-columns: calc((100% - 2 * var(--gutter) - var(--s-4)) / 2); gap: var(--s-4); } }
@media (min-width: 1024px) { .tour-track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 3 * var(--s-5)) / 4); gap: var(--s-5); } }
.tour-card { scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; transition: transform 260ms var(--spring), box-shadow var(--dur) var(--ease); }
.tour-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.tour-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-sunk); overflow: hidden; }
.tour-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.tour-card:hover .tour-img img { transform: scale(1.04); }
.tour-img .tag { position: absolute; left: var(--s-3); top: var(--s-3); background: rgb(255 252 247 / .95); color: var(--sand-900); box-shadow: var(--sh-1); }
.tour-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: url("../assets/zari.svg") repeat-x 0 0 / 17px 6px; }
/* Tamil place name painted on the poster, in the manner of hand-painted lorry and bus lettering */
.tour-img { container-type: inline-size; }
.tour-word {
  position: absolute; left: 6%; bottom: 9%; z-index: 1; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: .01em;
  font-size: clamp(15px, 6.4cqi, 26px); color: #fffaf0;
  text-shadow: 1.5px 1.5px 0 #3b0d0c, 3px 3px 0 #c8281e, 0 4px 10px rgb(0 0 0 / .3);
}
.tour-word::after {
  content: ""; display: block; width: 2.2em; height: 5px; margin-top: .3em;
  background: radial-gradient(circle, #f2b705 2px, transparent 2.4px) 0 50% / 7px 5px repeat-x;
  filter: drop-shadow(1px 1px 0 #3b0d0c);
}
.tour-body { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4); flex: 1; }
.tour-body h3 { font-size: var(--fs-lg); }
.tour-body .places { font-size: var(--fs-sm); color: var(--text-muted); }
.tour-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); }
.price small { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.price b { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-black); }
.price span { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
:lang(ta) .price span { display: inline; }

/* ---- News + stats --------------------------------------------------------- */
.split { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .split { grid-template-columns: 1.4fr 1fr; gap: var(--s-6); } }
.news { padding: var(--s-2) 0; }
.news li + li { border-top: 1px solid var(--line); }
.news a { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4); min-height: 72px; color: var(--text); text-decoration: none; }
.news a:hover h3 { color: var(--link); text-decoration: underline; }
.news-date { display: grid; place-items: center; flex: none; width: 52px; height: 58px; border-radius: var(--r-md); background: var(--surface-sunk); border-top: 4px solid var(--festive); color: var(--text); line-height: 1.05; }
.news-date b { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-black); }
.news-date small { font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; color: var(--text-muted); }
.news-body { flex: 1; min-width: 0; }
.news-body h3 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: 1.4; letter-spacing: 0; }
.news-body .tag { margin-top: var(--s-1); }
.news a > .icon { color: var(--text-muted); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.stat { position: relative; overflow: hidden; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); }
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 72px; height: 72px; background: var(--kolam-ink); -webkit-mask: url("../assets/kolam.svg") center / 72px 72px; mask: url("../assets/kolam.svg") center / 72px 72px; }
.stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); margin-bottom: var(--s-2); }
.stat b { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-black); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--brand); }
:root[data-theme="dark"] .stat b { color: var(--peacock-300); }
.stat span { font-size: var(--fs-sm); color: var(--text-2); font-weight: var(--fw-medium); }
.stat small { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---- Help & contact ------------------------------------------------------ */
.help-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .help-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.contact { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); border-top: 4px solid var(--tone, var(--brand)); }
.contact:nth-child(2) { --tone: var(--cta); }
.contact:nth-child(3) { --tone: var(--festive); }
.contact-head { display: flex; gap: var(--s-3); align-items: flex-start; }
.contact-head .qa-icon { width: 44px; height: 44px; }
.contact-head .qa-icon::after { display: none; }
.contact-head h3 { font-size: var(--fs-lg); }
.contact-head p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }
.contact-list { display: grid; gap: var(--s-2); }
.contact-list li > small { display: block; font-size: var(--fs-xs); color: var(--zari-text); font-weight: var(--fw-semibold); margin: var(--s-2) 0 var(--s-1); }
.contact-link {
  display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-3);
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.contact-link .icon { color: var(--link); }
.contact-link:hover { border-color: var(--link); color: var(--link); }
.contact-link .hint { margin-left: auto; font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); white-space: nowrap; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { position: relative; margin-top: var(--s-6); background: var(--peacock-950); color: #e9e1d3; padding-bottom: calc(var(--s-5) + 88px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.site-footer > .kolam { background: rgb(212 168 74 / .07); }
.site-footer > .container { position: relative; padding-top: var(--s-8); }
@media (min-width: 1024px) { .site-footer { padding-bottom: calc(var(--s-5) + 72px); } }
.site-footer a { color: #e9e1d3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: var(--peacock-300); }
.footer-top { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.2fr 3fr; } }
.footer-brand { display: grid; gap: var(--s-3); align-content: start; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name span { display: block; color: #b9ad99; white-space: normal; }
.footer-brand .emblem { color: var(--zari-300) !important; }
.footer-brand .divider { background: rgb(255 255 255 / .2) !important; }
.footer-brand p { font-size: var(--fs-sm); max-width: 36ch; color: #b9ad99; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h2 { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--zari-300); margin-bottom: var(--s-3); font-weight: var(--fw-semibold); letter-spacing: .04em; }
.footer-cols a { display: flex; align-items: center; min-height: 40px; font-size: var(--fs-sm); }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgb(255 255 255 / .12);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; font-size: var(--fs-xs); color: #b9ad99;
}
.footer-bottom .meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }

/* ---- Sticky mobile search bar --------------------------------------------- */
.sticky-search {
  position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(31 26 21 / .25);
  display: flex; align-items: center; gap: var(--s-3);
  transform: translateY(110%); transition: transform 260ms var(--ease);
}
.sticky-search.is-visible { transform: none; }
.sticky-route { flex: 1; min-width: 0; line-height: 1.3; }
.sticky-route b { display: block; font-family: var(--font-display); font-size: var(--fs-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-route small { font-size: var(--fs-xs); color: var(--text-muted); }
.sticky-search .btn { flex: none; }
@media (min-width: 1024px) { .sticky-search { display: none; } }

/* ---- Sticky app download (bottom-right) ----------------------------------- */
.app-float {
  position: fixed; z-index: 36; right: var(--s-4);
  bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3);
  transition: bottom 260ms var(--ease), opacity 260ms var(--ease), transform 260ms var(--ease);
}
body.has-sticky .app-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
/* phones: stay out of the way of the search form; appear once it has scrolled off */
@media (max-width: 1023px) {
  .app-float { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }
  body.has-sticky .app-float { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .app-fab { min-height: 44px; font-size: var(--fs-xs); padding-right: var(--s-3); }
  .app-fab .fab-logo { width: 32px; height: 32px; }
}
@media (min-width: 1024px) { .app-float { right: var(--s-5); bottom: var(--s-5); } body.has-sticky .app-float { bottom: var(--s-5); } }
.app-fab {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-4) 0 6px;
  border-radius: var(--r-pill); border: 0; background: var(--peacock-950); color: #fff;
  box-shadow: 0 10px 28px -10px rgb(4 32 46 / .7), 0 0 0 3px color-mix(in srgb, var(--cta) 70%, transparent);
  font-weight: var(--fw-semibold); font-size: var(--fs-sm);
}
.app-fab .fab-logo { width: 36px; height: 36px; border-radius: 50%; background: var(--cta); color: var(--cta-ink); display: grid; place-items: center; }
.app-fab .fab-logo .icon { width: 18px; height: 18px; }
.app-fab:hover { background: var(--peacock-800); }
/* the button steps aside while the panel is showing, including while it folds away */
.app-panel:not([hidden]) + .app-fab { display: none; }
.app-panel {
  position: relative; width: min(340px, calc(100vw - 32px)); overflow: hidden;
  padding: var(--s-4); border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(160deg, var(--peacock-700), var(--peacock-950) 70%);
  box-shadow: 0 24px 48px -16px rgb(4 32 46 / .6);
  transform-origin: bottom right;
}
.app-panel[data-state="open"] { animation: panel-in 380ms var(--spring); }
@keyframes panel-in { from { transform: scale(.6) translateY(20px); opacity: 0; } }
.app-panel[data-state="closing"] { animation: panel-out 200ms var(--ease) forwards; }
@keyframes panel-out { to { transform: scale(.82) translateY(14px); opacity: 0; } }
.app-panel .kolam { background: rgb(255 255 255 / .05); }
.app-panel > *:not(.kolam) { position: relative; }
.app-panel > .zari-band { position: absolute; left: 0; right: 0; top: 0; height: 6px; background-size: 17px 6px; }
.app-panel-head { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-1); padding-right: var(--s-6); }
.app-panel-head .app-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 4px 12px rgb(0 0 0 / .3); }
.app-panel-head h2 { font-size: var(--fs-lg); line-height: 1.15; }
.app-panel-head p { font-size: var(--fs-xs); color: #cfe7f1; margin-top: 2px; }
.app-panel .app-close { position: absolute; right: 2px; top: 10px; color: #fff; width: 40px; height: 40px; }
.app-panel .app-close:hover { background: rgb(255 255 255 / .12); color: #fff; }
.app-panel-badges { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-4); }
.app-panel-badges .store-badge { height: 44px; padding: 0 var(--s-2); gap: 6px; justify-content: center; }
.app-panel-badges .store-badge svg { width: 20px; height: 20px; }
.app-panel-badges .store-badge b { font-size: 14px; }
.app-panel-badges .store-badge small { font-size: 9px; }
.app-panel-counts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--fs-xs); color: #cfe7f1; text-align: center; }
.app-panel-counts b { display: block; color: #fff; font-family: var(--font-display); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }

/* ---- Toast ------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--text); color: var(--surface); font-size: var(--fs-sm); box-shadow: var(--sh-3);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: var(--s-6); } }
