/* Namma Temple. Colours, type and spacing follow Vinay's design canvas (design/). */
:root {
  --bg: #FAF5EB;
  --card: #FFFDF8;
  --ink: #2A211C;
  --muted: #63564B;
  --faint: #8A7A6B;
  --line: #E8DCC8;
  --line-2: #D9C9A8;
  --maroon: #7E1F1F;
  --maroon-dark: #5C1414;
  --gold: #ECB44C;
  --gold-ink: #3A2300;
  --date-bg: #F4E8CE;
  --date-ink: #6B4A12;
  --date-day: #8F5400;
  --ok: #3F6B2D;
  --tile: #E9DCC2;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans', 'Noto Sans Kannada', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); }
h1, h2, h3, .serif { font-family: Fraunces, Georgia, serif; font-weight: 600; }
h1 { font-size: 30px; line-height: 1.14; margin: 8px 0 10px; }
h2 { font-size: 20px; margin: 0; }
p { margin: 0 0 12px; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .bar { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand .name { font-family: Fraunces, serif; font-weight: 600; font-size: 19px; line-height: 1; }
.brand .name span { color: var(--maroon); }
.brand .city { font-size: 9.5px; letter-spacing: 0.22em; color: var(--faint); margin-top: 3px; line-height: 1; }
.top nav { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 600; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { min-height: 44px; }
.top nav .nav-only { display: none; }
@media (min-width: 900px) { .top nav .nav-only { display: inline-flex; } }

/* hero + search */
.hero { padding: 26px 0 22px; }
.kicker { font-family: Fraunces, serif; font-weight: 600; font-size: 14.5px; color: var(--maroon); }
.lede { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.search { display: flex; align-items: stretch; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.search:focus-within, .photo-drop:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(126, 31, 31, 0.2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: #7A6A5A; }
.search button { border: 0; cursor: pointer; background: var(--maroon); color: #fff; display: flex; align-items: center; gap: 7px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; }
.note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* sections */
section { padding: 22px 0 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head a { font-size: 13px; font-weight: 600; }
.small { font-size: 12.5px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }

/* chips */
.chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip, .chip-link { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 10px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 44px; }
.chip[aria-pressed="true"], .chip.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* cards */
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); }
a.card:hover { border-color: var(--line-2); color: var(--ink); }
.card.dashed { border-style: dashed; border-color: #DACBB2; }
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.t-name { font-size: 15.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
h1, .a-name { overflow-wrap: anywhere; hyphens: auto; }
.t-kn { font-size: 13px; color: var(--muted); margin-top: 1px; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tag { display: inline-block; background: var(--date-bg); color: var(--date-ink); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.tag.muzrai { background: #EFE3E3; color: var(--maroon); }
.t-line { margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.t-line a { font-weight: 700; }
.ok { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.area-tile .a-name { font-size: 14.5px; font-weight: 600; }
.area-tile .a-n { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (min-width: 900px) { .grid2.wide4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* event rows */
.ev { display: flex; gap: 12px; align-items: flex-start; }
.date { flex-shrink: 0; width: 46px; text-align: center; background: var(--date-bg); border-radius: 9px; padding: 5px 0; }
.date .d1 { font-size: 10px; font-weight: 700; color: var(--date-day); }
.date .d2 { font-size: 15px; font-weight: 700; color: var(--date-ink); }
.empty { background: var(--card); border: 1px dashed #DACBB2; border-radius: var(--radius); padding: 16px; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.empty strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 14.5px; }

/* CTA band */
.band { margin: 22px 0 0; background: var(--maroon); border-radius: 16px; padding: 22px 20px; color: #FBF3E4; }
.band .serif { font-size: 19px; line-height: 1.3; }
.band p { margin: 9px 0 15px; font-size: 13.5px; color: rgba(251, 243, 228, 0.9); }
.btn-gold { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--gold-ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(0.97); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--maroon); color: #fff; border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; min-height: 46px; }
.btn:hover { color: #fff; background: var(--maroon-dark); }
.btn.full { width: 100%; }
.btn-ghost { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); border-radius: 12px; padding: 11px 15px; font-weight: 600; font-size: 14px; }

/* temple page */
.crumb { font-size: 12.5px; color: var(--muted); padding-top: 16px; }
.t-head { padding: 10px 0 4px; }
.t-head h1 { font-size: 27px; margin: 6px 0 4px; }
.t-head .kn { font-size: 16px; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.banner { margin-top: 14px; background: #F6EEDF; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.block h2 { font-size: 18px; margin-bottom: 6px; }
.block .muted { color: var(--muted); font-size: 13.5px; }
.block .go { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; }
.rate { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rate:last-child { border-bottom: 0; }

/* forms */
form.f { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.f label.q { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.f .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field-err { color: #A01818; font-size: 13px; font-weight: 600; margin-top: 6px; }
[aria-invalid="true"], #map[aria-invalid="true"] { border-color: #A01818 !important; box-shadow: 0 0 0 2px rgba(160, 24, 24, 0.2); }
.f input[type=text], .f input[type=tel], .f textarea, .f select {
  width: 100%; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 12px 13px; font: inherit; font-size: 16px; color: var(--ink);
}
.f textarea { min-height: 110px; resize: vertical; }
.f .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.f .opts label { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.f .opts input { width: 20px; height: 20px; margin: 0; accent-color: var(--maroon); }
.f .opts label:has(input:checked) { border-color: var(--maroon); background: #F7EAEA; }
.f .err { color: #A01818; font-size: 13px; font-weight: 600; display: none; }
.f .err.show { display: block; }
#map { height: 260px; border-radius: 12px; border: 1.5px solid var(--line-2); }
.photo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--card); border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; font-weight: 700; }
.photo-drop img { max-height: 220px; border-radius: 8px; }
.suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.suggest button { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.suggest button span { color: var(--muted); font-size: 12.5px; }

/* footer */
footer { margin-top: 32px; border-top: 1px solid var(--line); padding: 16px 0 28px; font-size: 12px; color: var(--muted); line-height: 1.6; }
footer p { margin: 0 0 8px; }
footer .links { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 13.5px; font-weight: 600; margin-top: 4px; }
footer .links a { display: inline-flex; align-items: center; min-height: 44px; }

/* home on a computer */
@media (min-width: 900px) {
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
  .hero h1 { font-size: 40px; }
}
[hidden] { display: none !important; }

/* ---- added after the phone audit (2 Dec 2026) ---- */
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.go, .go-inline { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.go { margin-top: 2px; }
.add-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 0; font-size: 14px; font-weight: 600; }
.sec { padding-top: 18px; }
.sec h2 { font-size: 18px; margin-bottom: 8px; }
.empty-sec { border: 1.5px dashed #DACBB2; border-radius: var(--radius); padding: 12px 14px 4px; font-size: 13.5px; color: var(--muted); }
.empty-sec .go { display: flex; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.block .tiny { margin-top: 8px; }
.fix-line { margin-top: 18px; font-size: 14px; }
.fix-line a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.notice-title { margin: 7px 0 5px; font-size: 17px; color: var(--maroon); }
.notice-img { border-radius: 10px; margin: 6px 0 10px; }
.banner.warn { background: #FFF4E0; border-color: #ECB44C; color: #5A3A00; font-weight: 600; }
.hero-band { margin-top: 18px; }
.hero-band h1 { color: #FBF3E4; font-size: 26px; }
.kicker-light { font-size: 11px; letter-spacing: 0.14em; font-weight: 700; color: rgba(251, 243, 228, 0.85); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps li span { color: var(--muted); font-size: 13.5px; }
.ticks { padding-left: 20px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.ticks li { margin-bottom: 6px; }
.q-label { display: block; font-weight: 700; font-size: 14px; margin: 6px 0 6px; }
.filter-box { width: 100%; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 13px; font-size: 16px; }
.unnamed { margin-top: 16px; }
.unnamed summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); font-weight: 700; font-size: 14px; cursor: pointer; }
.pick-add { margin: 8px 0 0; }
.pick-add a { font-weight: 700; }
.btn-ghost { min-height: 44px; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(126, 31, 31, 0.45); outline-offset: 2px; }
.leaflet-touch .leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
.f .opts label { line-height: 1.2; }

/* ---- after the UI and UX audit (2 Dec 2026) ---- */
.wrap-wide { padding: 0 20px; }
.top nav .nav-search { width: 44px; justify-content: center; color: var(--maroon); }
/* the header stays one line on a 320 px phone: brand and button never wrap, "+ Add" when narrow */
.brand .name, .brand .city, .top nav a { white-space: nowrap; }
.brand { flex-shrink: 0; }
@media (max-width: 419px) { .top nav { gap: 6px; } .top nav .nav-long { display: none; } }
.near-row { margin-top: 12px; }
.near-btn { width: 100%; justify-content: center; }
.why { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); font-style: italic; }
.help-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.help-row { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; color: var(--ink); min-height: 44px; }
.help-row b { font-weight: 600; font-size: 14.5px; }
.help-row span { color: var(--maroon); font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex-shrink: 0; }
.loc-group h3 { font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 18px 0 0; }
.tag.muzrai { background: transparent; border: 1px solid var(--maroon); color: var(--maroon); }
.status { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.status.ok { display: flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 600; }
.muz-note { margin: 6px 0 0; }
.kicker-small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.place-pill { display: inline-block; background: #F1E7D5; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--ink); }
.mini-map { height: 180px; margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); background: #EDE3D0; }
.leaflet-tile-pane { filter: saturate(0.35) sepia(0.15) brightness(1.03); }
.area-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.photo-drop { min-height: 170px; background: #F7EDDA; }
.photo-drop .preview { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.photo-drop .preview b { font-size: 15px; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.chosen div { display: flex; flex-direction: column; min-width: 0; }
.chosen b { font-weight: 600; overflow-wrap: anywhere; }
.opts[aria-invalid="true"] label { border-color: #A01818; }
.photo-drop[aria-invalid="true"] { border-color: #A01818; }
.near-cands { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.near-cands .card { padding: 10px 12px; }
.block.lines > div { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.block.lines > div:last-child { border-bottom: 0; }
.steps li::before { background: var(--date-bg); color: var(--date-ink); }
.claim-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; margin-top: 22px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.faq p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.thanks { text-align: center; padding-top: 32px; }
.thanks-icon { display: flex; justify-content: center; margin-bottom: 6px; }
.pill-row.center { justify-content: center; }
.btn, .btn-ghost { min-height: 46px; }
@media (max-width: 600px) {
  .hero-band { margin-left: -20px; margin-right: -20px; border-radius: 0; }
}
@media (min-width: 900px) {
  .top nav .nav-add { background: var(--maroon); color: #fff; border-radius: 12px; padding: 0 16px; min-height: 40px; }
  .top nav .nav-add:hover { background: var(--maroon-dark); color: #fff; }
  .hero { text-align: center; padding: 56px 0 30px; }
  .hero h1 { font-size: 50px; max-width: 760px; margin: 12px auto; }
  .hero .lede, .hero .why { max-width: 560px; margin-left: auto; margin-right: auto; }
  .hero .lede { font-size: 16px; margin-bottom: 24px; }
  .hero .search { max-width: 560px; margin: 0 auto; }
  .near-row { display: flex; justify-content: center; }
  .near-btn { width: auto; }
  .band { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .band p { margin: 6px 0 0; }
  .area-cards > .list, .loc-group > .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { max-width: 860px; }
}
