/* MassGoWhere — Liturgical Seasons.
   One accent, set by the Church's season (or a fixed palette), used only for the one action and the season mark. */
:root {
  --bg: #ffffff;
  --ink: #16181d;
  --ink-2: #545a66;      /* secondary text, 7:1 on white */
  --ink-3: #666b76;      /* tertiary, 5.2:1 on white, 4.6:1 on --field */
  --field-line: #9aa0aa; /* input borders, 3:1 */
  --line: #e6e8ec;
  --field: #f4f5f7;
  --raised: #ffffff; /* sheets sit above the page */
  --ok: #1d6b45;
  --warn: #8a4b00;
  --radius: 14px;
  --tap: 52px;
  --gutter: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;

  /* default accent: Ordinary Time green */
  --accent: #2e6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e7f1ec;
  --accent-deep: #2e6b4f; /* stays dark in dark mode, for map pins with a white mark */
}
[data-accent="green"]  { --accent-deep: #2e6b4f; --accent: #2e6b4f; --accent-soft: #e7f1ec; }
[data-accent="violet"] { --accent-deep: #5b3a8c; --accent: #5b3a8c; --accent-soft: #efe9f6; }
[data-accent="gold"]   { --accent-deep: #8a5f0a; --accent: #8a5f0a; --accent-soft: #f6efdf; }
[data-accent="red"]    { --accent-deep: #a3282b; --accent: #a3282b; --accent-soft: #f7e7e7; }
[data-accent="blue"]   { --accent-deep: #1f4e8c; --accent: #1f4e8c; --accent-soft: #e6eef8; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --ink: #eef0f3; --ink-2: #b4bac5; --ink-3: #9aa1ad; --line: #262a31; --field: #1a1d23; --field-line: #4a505a; --raised: #1b1e24;
    --ok: #7fd3a8; --warn: #f0b26b; --accent-ink: #0d0f12; color-scheme: dark;
  }
  :root:not([data-theme="light"])[data-accent="green"],  :root:not([data-theme="light"]):not([data-accent]) { --accent: #7cc4a0; --accent-soft: #17291f; }
  :root:not([data-theme="light"])[data-accent="violet"] { --accent: #b9a0e3; --accent-soft: #231b30; }
  :root:not([data-theme="light"])[data-accent="gold"]   { --accent: #e3bd6b; --accent-soft: #2b2415; }
  :root:not([data-theme="light"])[data-accent="red"]    { --accent: #f0999b; --accent-soft: #321a1b; }
  :root:not([data-theme="light"])[data-accent="blue"]   { --accent: #9dbdf0; --accent-soft: #172335; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
input { caret-color: var(--accent); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.shell { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.season { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.season i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
main { flex: 1; display: flex; flex-direction: column; outline: none; }
main:focus-visible { outline: none; } /* focus moves here after each answer so screen readers start at the top */

/* ---------- shared pieces ---------- */
h1 { font-size: clamp(30px, 8vw, 38px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; color: var(--ink-2); }
.lede { color: var(--ink-2); margin: 12px 0 0; text-wrap: pretty; }
.muted { color: var(--ink-3); font-size: 14px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--tap);
  border: 0; border-radius: var(--radius); font-weight: 600; font-size: 17px; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 6px 18px -8px var(--accent); }
.btn-primary:active { transform: scale(.985); }
.btn-primary[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn-quiet { background: var(--field); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 15px; }

/* travel mode */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--field); border-radius: calc(var(--radius) + 2px); }
.modes label { position: relative; }
.modes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.modes span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: var(--radius); font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.modes span svg { width: 18px; height: 18px; }
.modes input:checked + span { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 2px 8px -2px rgb(0 0 0 / .08); }
.modes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- home ---------- */
.home { padding-top: 8vh; display: flex; flex-direction: column; gap: 28px; }
.home .actions { display: flex; flex-direction: column; gap: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.search { position: relative; }
.search input {
  width: 100%; min-height: var(--tap); border: 1px solid var(--field-line); background: var(--bg); border-radius: var(--radius);
  padding: 0 52px 0 44px; font-size: 16px;
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.clear { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-3); border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.clear svg { position: static; translate: none; width: 18px; height: 18px; }
.search input::placeholder { color: var(--ink-3); }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--ink-3); }
.suggest { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.suggest button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 12px 16px; cursor: pointer; min-height: 48px; }
.suggest li + li button { border-top: 1px solid var(--line); }
.suggest button:focus-visible { background: var(--field); }
@media (hover: hover) { .suggest button:hover { background: var(--field); } .row:hover .n { text-decoration: underline; text-underline-offset: 3px; } }
.suggest small { display: block; color: var(--ink-3); font-size: 13px; }
.browse { border: 1px solid var(--field-line); background: var(--bg); color: var(--ink); }
.browse svg { color: var(--accent); }
@media (hover: hover) { .browse:hover { background: var(--field); } }
.browse-wrap { margin: 28px 0 0; }
.msg { font-size: 15px; color: var(--warn); margin: 0; }

/* home: the plan as a sentence; each underlined word opens a picker */
.sentence { font-size: clamp(21px, 6vw, 24px); line-height: 1.75; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-2); margin: 0; }
.tok { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 0 2px; margin: 0 1px; border: 0; border-bottom: 2.5px solid var(--accent); background: none; color: var(--ink); font-weight: 650; line-height: 1.25; cursor: pointer; font-size: inherit; letter-spacing: inherit; vertical-align: baseline; }
.tok { position: relative; }
.tok::after { content: ""; position: absolute; inset: -8px -4px; } /* 44px tap target around a word */
.tok span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok svg { width: 16px; height: 16px; color: var(--accent); flex: none; stroke-width: 2.4; }
@media (hover: hover) { .tok:hover { background: var(--accent-soft); } }
@media (prefers-reduced-motion: no-preference) {
  .tok.just { animation: glow 1.4s var(--ease); }
  @keyframes glow { 0% { background: color-mix(in srgb, var(--accent) 28%, transparent); } 100% { background: transparent; } }
  .tok:active { transform: scale(.97); }
  .when-chip span.from-right { animation: in-right .35s var(--ease); }
  .when-chip span.from-left { animation: in-left .35s var(--ease); }
  @keyframes in-right { from { opacity: 0; translate: 10px 0; } }
  @keyframes in-left { from { opacity: 0; translate: -10px 0; } }
}
.hint { font-size: 14px; color: var(--ink-3); margin: -14px 0 0; }

/* bottom sheets */
html.sheet-lock { overflow: hidden; }
.sheet-root .scrim { position: fixed; inset: 0; z-index: 4000; background: rgb(22 24 29 / .38); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: 4001; width: 100%; max-width: 560px; max-height: 85dvh; display: flex; flex-direction: column; background: var(--raised); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgb(0 0 0 / .18); translate: -50% 102%; visibility: hidden; transition: translate .35s var(--ease), visibility 0s .35s; padding-bottom: env(safe-area-inset-bottom); }
.sheet-root.open .scrim { opacity: 1; pointer-events: auto; }
.sheet-root.open .sheet { translate: -50% 0; visibility: visible; transition: translate .35s var(--ease); }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px var(--gutter) 10px; flex: none; }
.sheet-head h2 { margin: 0; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.sheet-close { width: 44px; height: 44px; border: 0; background: var(--field); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { overflow-y: auto; padding: 4px var(--gutter) 22px; display: flex; flex-direction: column; gap: 14px; }
.sheet .label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 -6px; }
.opts { display: grid; gap: 6px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 12px; cursor: pointer; text-align: left; }
.opt svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.opt small { display: block; color: var(--ink-3); font-size: 13px; }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.recent { display: flex; flex-wrap: wrap; gap: 6px; }
.recent button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.recent svg { width: 15px; height: 15px; color: var(--ink-3); }
.quick { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.sheet .q { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent-soft); font-size: 15px; font-weight: 600; cursor: pointer; }
.sheet .q.now { background: var(--accent); color: var(--accent-ink); }
/* alarm-clock wheels: swipe each column; the band marks the choice */
.wheels { position: relative; display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; height: 220px; margin: 4px -6px; }
.wheels::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; translate: 0 -50%; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 12px; }
.wheel { position: relative; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; padding-block: 88px; scrollbar-width: none; perspective: 500px; outline: none; border-radius: 12px;
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wheel:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.wheel .it { height: 44px; display: grid; place-items: center; scroll-snap-align: center; font-size: 22px; font-weight: 500; color: var(--ink-3); cursor: pointer; white-space: nowrap; user-select: none; transition: color .15s; }
.wheel.day .it { font-size: 17px; }
.wheel .it.sel { color: var(--ink); font-weight: 650; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-root .scrim { transition: none; } }

/* ---------- result ---------- */
.bar { display: flex; align-items: center; gap: 4px; min-height: 44px; margin: 4px 0 6px; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px; border-radius: 50%; color: var(--ink); background: none; border: 0; cursor: pointer; }
.back svg { width: 22px; height: 22px; }
.from { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the one thing you change on the answer screen: when you leave */
/* a full-width stepper under the bar, on the same edges as the leave box and Navigate below it */
.when { display: grid; grid-template-columns: 48px 1fr 48px; align-items: stretch; min-height: 50px; border-radius: var(--radius); background: var(--field); }
.when.set { background: var(--accent-soft); }
.when-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; font-size: 16px; font-weight: 600; cursor: pointer; min-width: 0; padding: 0 4px; border-inline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.when-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when-chip svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.nudge { min-height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--accent); border-radius: var(--radius); }
.nudge svg { width: 18px; height: 18px; stroke-width: 2.4; }
.nudge:disabled { color: var(--ink-3); opacity: .45; cursor: default; }
.busy { opacity: .45; transition: opacity .2s; pointer-events: none; }
.answer { padding-top: 6vh; }
.when + .answer { padding-top: 28px; }
.when + .loading { padding-top: 14vh; }
.answer .day { font-size: 17px; font-weight: 500; color: var(--ink-2); margin: 0; }
.answer .time { font-size: clamp(64px, 22vw, 96px); line-height: .95; letter-spacing: -0.045em; font-weight: 700; margin: 4px 0 14px; }
.answer .time small { font-size: .36em; letter-spacing: -0.01em; font-weight: 600; margin-left: .08em; }
.answer h1.church { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.answer .meta { color: var(--ink-2); margin: 6px 0 0; }
.leave { display: grid; gap: 2px; margin: 22px 0 22px; padding: 14px 16px; border-radius: var(--radius); background: var(--field); }
.leave strong { font-size: 19px; font-weight: 650; white-space: nowrap; }
.leave span { color: var(--ink-2); font-size: 15px; }
.leave em { font-style: normal; font-weight: 600; color: var(--ink); }
.answer .sub { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.see-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 18px; padding: 10px 16px; border: 0; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.see-more svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (prefers-reduced-motion: no-preference) { .see-more svg { animation: bob 1.6s var(--ease) 3 .8s; } @keyframes bob { 50% { translate: 0 3px; } } }
.more { scroll-margin-top: 16px; }
.est { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.notice { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--field); color: var(--ink); font-size: 15px; }

.more { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; min-height: 56px; }
.rows li + li .row { border-top: 1px solid var(--line); }
.row .t { font-weight: 600; font-size: 17px; }
.row .t small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.row .n { font-weight: 500; line-height: 1.3; }
.row .n small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.row .d { text-align: right; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--field); color: var(--ink-2); margin-left: 6px; vertical-align: 1px; }

.source { margin-top: 36px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.blessing { margin: 28px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); font-style: italic; letter-spacing: .005em; }
.again { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; color: var(--ink); text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .go-now { animation: nudge 2.4s var(--ease) 3; }
  @keyframes nudge { 0%, 100% { box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 6px 18px -8px var(--accent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), 0 6px 18px -8px var(--accent); } }
}

/* loading */
.loading { padding-top: 20vh; display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--ink-2); text-align: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 1turn; } }

/* ---------- church ---------- */
.church-page h1 { font-size: clamp(28px, 7.5vw, 34px); }
.church-page .addr { color: var(--ink-2); margin: 8px 0 20px; }
.church-page .acts { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.church-page .acts .btn-quiet { width: auto; padding: 0 18px; }
.week { margin-top: 30px; }
.week h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 22px 0 6px; }
.week ul { list-style: none; margin: 0; padding: 0; }
.week li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.week li:first-child { border-top: 0; }
.week .t { font-weight: 600; }
.week .x { color: var(--ink-2); font-size: 15px; }
.next-here { margin: 0 0 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--field); }
.next-here strong { font-size: 19px; }
.next-here span { display: block; color: var(--ink-2); font-size: 15px; }
details.rest { margin-top: 18px; }
details.rest summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); }
details.rest summary::-webkit-details-marker { display: none; }
details.rest summary::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s var(--ease); }
details.rest[open] summary::after { rotate: 225deg; translate: 0 2px; }
.row-church { grid-template-columns: 1fr; }
.notes { margin: 24px 0 0; padding: 0 0 0 18px; color: var(--ink-2); font-size: 15px; }

/* ---------- churches ---------- */
.list-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--field); border-radius: 12px; align-self: flex-start; }
.seg button { border: 0; background: none; min-height: 44px; padding: 0 16px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
#map { height: 60dvh; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--field); margin-top: 8px; }
/* pins: saturated fill with a white keyline and a dark halo, so they stand off both the pale and the dark basemap */
.church-pin { --pin: var(--accent-deep); width: 48px; height: 52px; padding: 2px 5px 0; display: flex; align-items: flex-end; justify-content: center; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 1px rgb(0 0 0 / .55)) drop-shadow(0 3px 4px rgb(0 0 0 / .35)); transition: transform .15s var(--ease); }
.church-pin svg { width: 38px; height: 47px; display: block; flex: none; }
.church-pin path:first-child { fill: var(--pin); stroke: #fff; stroke-width: 2.5; }
.church-pin .x { fill: #fff; }
.church-pin[aria-expanded="true"] { transform: scale(1.15); z-index: 2; }
@media (hover: hover) { .church-pin:hover { transform: translateY(-2px) scale(1.08); } }
.church-pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.me { width: 22px; height: 22px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 8px rgb(26 115 232 / .25), 0 1px 4px rgb(0 0 0 / .4); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); }
.legend .l-church { background: var(--accent-deep); }
.legend .l-you { background: #1a73e8; }
#map .maplibregl-popup-content { font: 14px/1.4 Geist, system-ui, sans-serif; color: var(--ink); background: var(--bg); padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 28px rgb(0 0 0 / .22); display: grid; gap: 2px; }
#map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--bg); }
#map .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--bg); }
#map .maplibregl-popup-content span { color: var(--ink-2); }
#map .maplibregl-popup-content a { color: var(--ink); font-weight: 600; margin-top: 2px; min-height: 44px; display: inline-flex; align-items: center; }
.maplibregl-ctrl-group { background: var(--bg) !important; box-shadow: 0 1px 4px rgb(0 0 0 / .2) !important; }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }
.maplibregl-ctrl-group button + button { border-top-color: var(--line) !important; }
.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--bg) 85%, transparent) !important; color: var(--ink-2); }
.maplibregl-ctrl-attrib a { color: var(--ink-2) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); } :root:not([data-theme="light"]) .maplibregl-ctrl-attrib-button { filter: invert(1); } }

/* preview-only palette picker */
.palette-picker { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 3000; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 8px 30px rgb(0 0 0 / .15); }
.palette-picker button { border: 0; border-radius: 999px; padding: 8px 12px; min-height: 44px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--field); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.palette-picker button i { width: 12px; height: 12px; border-radius: 50%; }
.palette-picker button[aria-pressed="true"] { outline: 2px solid var(--ink); }

@media (min-width: 720px) {
  .home { padding-top: 16vh; }
  .answer { padding-top: 8vh; }
}
@media (prefers-reduced-motion: no-preference) {
  .answer.reveal > * { animation: rise .5s var(--ease) both; }
  .answer.reveal > *:nth-child(2) { animation-delay: .05s; }
  .answer.reveal > *:nth-child(3) { animation-delay: .1s; }
  .answer.reveal > *:nth-child(4) { animation-delay: .15s; }
  .answer.reveal > *:nth-child(5) { animation-delay: .2s; }
  @keyframes rise { from { opacity: .001; translate: 0 8px; } }
}
