/* Public pages: the app's lime-wash and door-green, light and fast. */
:root {
  --ground: #f4f7f4; --surface: #fff; --border: #e1e7e3; --rule: #edf1ee; --text: #13261f; --muted: #536159;
  --accent: #0e6b4f; --accent-soft: #e9f4ee; --accent-ink: #0a3d2e; --warning: #8a3d0c; --warn-bg: #fff4e0;
  --font: "Anek Tamil", "Noto Sans Tamil", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #101412; --surface: #171c19; --border: #29312c; --rule: #222925; --text: #edf2ee; --muted: #a7b3ac;
    --accent: #58c393; --accent-soft: #15241d; --accent-ink: #bfe8d3; --warning: #f0b36a; --warn-bg: #2c2112; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.55 var(--font); background: var(--ground); color: var(--text); }
a { color: var(--accent-ink); text-underline-offset: 3px; }
::selection { background: var(--accent-soft); }
.bar, main, footer, .sample { max-width: 880px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.bar { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; color: var(--text); text-decoration: none; }
.brand svg { width: 20px; height: 24px; fill: var(--accent); }
.open { font-weight: 600; font-size: 15px; }
.sample { background: var(--warn-bg); color: var(--warning); padding-block: 10px; font-size: 14px; border-radius: 8px; }
main { padding-block: 16px 40px; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 6px; text-wrap: balance; }
h2 { font-size: 19px; margin: 32px 0 10px; }
.lead { color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.crumbs { font-size: 14px; color: var(--muted); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.card { display: grid; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); }
.card b { font-size: 18px; color: var(--accent-ink); }
.card span { color: var(--muted); font-size: 15px; }
.areas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areas a { display: inline-block; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 500; }
.areas span { color: var(--muted); font-size: 13px; margin-left: 2px; }
.list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.m { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 18px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.m:last-child { border-bottom: 0; }
.m a { text-decoration: none; color: var(--text); min-width: 0; }
.m a b { display: block; font-weight: 600; }
.m a span { display: block; font-size: 14px; color: var(--muted); }
.t { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.d { grid-column: 1 / -1; font-size: 13px; color: var(--accent-ink); }
.d:empty { display: none; }
.near, .btn { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 6px; font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none; }
.near { background: var(--surface); color: var(--text); border: 1px solid var(--border); margin-bottom: 8px; }
.btn { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn.ghost { background: transparent; color: var(--accent-ink); }
.jum { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.jum div { flex: 1 1 140px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.jum small { display: block; color: var(--muted); font-size: 14px; }
.jum b { font-size: 26px; font-variant-numeric: tabular-nums; }
.times { border-collapse: collapse; min-width: 260px; font-variant-numeric: tabular-nums; }
.times td { padding: 8px 24px 8px 0; border-bottom: 1px solid var(--rule); }
.badge { display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.practices { padding-left: 20px; }
.practices .no { color: var(--muted); }
.empty { padding: 18px; background: var(--surface); border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); }
footer { padding-block: 24px 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); }
@media (max-width: 560px) { .m { gap: 4px 12px; padding-inline: 14px; } h1 { font-size: 26px; } }
.links { display: flex; gap: 14px; align-items: center; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; color: var(--text); }
.links a.open { color: var(--accent-ink); font-weight: 600; }
.today td:first-child { font-weight: 500; }
.today td:last-child b { font-size: 18px; }
.today small, .small { color: var(--muted); font-size: 14px; }
.ta { color: var(--muted); font-weight: 400; margin-left: 4px; }
.scroll { overflow-x: auto; }
.grid { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.grid th, .grid td { text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.grid th { font-size: 13px; color: var(--muted); font-weight: 500; }
.grid th:first-child, .grid td:first-child { text-align: left; }
.grid tr:first-child + tr td { font-weight: 600; color: var(--accent-ink); }
@media (max-width: 560px) { .links { gap: 10px; font-size: 14px; } .links a:not(.open):nth-child(3) { display: none; } }
