/* Amble Atlas · stylesheet
   Same language as MouCat: Geist for the interface, one accent per meaning on neutral tokens,
   light and dark from the system, chips with aria-pressed, sticky header.
   Brand A (straw star): Fraunces for names and numbers; paper, ink, straw, thread red, pine.
   Colour means status everywhere: red = open today, pine = 2026 dates, straw = last year's dates.
   Phones: one view at a time (list or map), switched with the floating button. */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face {
  font-family: "Fraunces"; src: url("/fonts/Fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; src: url("/fonts/Fraunces-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbf7f0;        /* paper */
  --card: #fffdf9;
  --text: #231c17;      /* ink */
  --muted: #74685d;
  --line: #e7ddcf;
  --soft: #f3ebdf;
  --brand: #b3342b;     /* thread red: open today */
  --pine: #2f5b48;      /* 2026 dates */
  --straw: #c9972f;     /* last year's dates */
  --straw-soft: #f1e2bf;
  --warn: #9a5b00;
  --warn-bg: #fbecd2;
  --map-bg: #efe8dc;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --cap-h: 56px;
  --list-w: 460px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 14px rgba(60, 40, 20, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f; --card: #1b1a16; --text: #f3eee6; --muted: #a59a8d; --line: #2e2b26; --soft: #22201b;
    --brand: #e0645a; --pine: #7fb39b; --straw: #e2b34f; --straw-soft: #3a3020; --warn: #f0b85a; --warn-bg: #3a2b12; --map-bg: #1b1a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 30; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 10px; }

/* ---------- Header ---------- */
.cap { position: sticky; top: 0; z-index: 20; height: var(--cap-h); background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cap-in { height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.page .cap-in { max-width: var(--wrap); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.logo-mark { width: 30px; height: 30px; display: block; }
.logo-word { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--text); background: var(--soft); }
@media (max-width: 420px) { .logo-word { font-size: 19px; } .nav a { padding: 7px 8px; font-size: 13.5px; } }

/* ---------- Home layout ---------- */
.layout { display: grid; grid-template-columns: var(--list-w) 1fr; height: calc(100dvh - var(--cap-h)); }
.panel { overflow-y: auto; border-right: 1px solid var(--line); padding: 30px 18px 32px;
  background: url("/brand/garland.svg") repeat-x 0 -2px / 480px 34px, var(--bg); }
.map-wrap { position: relative; background: var(--map-bg); }
.map { position: absolute; inset: 0; }
.fab { display: none; }

@media (max-width: 820px) {
  .layout { display: block; height: auto; }
  .panel { overflow: visible; border-right: 0; padding: 30px 16px 104px; }
  .map-wrap { display: none; }
  .app[data-view="map"] .panel { display: none; }
  .app[data-view="map"] .map-wrap { display: block; position: fixed; top: var(--cap-h); left: 0; right: 0; bottom: 0; }

  .fab { display: inline-flex; align-items: center; position: fixed; z-index: 25; left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); height: 48px; padding: 0 22px; border-radius: 999px;
    border: 0; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .fab > span { display: inline-flex; align-items: center; gap: 8px; }
  .fab .fab-list { display: none; }
  .app[data-view="map"] .fab .fab-map { display: none; }
  .app[data-view="map"] .fab .fab-list { display: inline-flex; }
}

/* ---------- Hero ---------- */
h1 { font-family: var(--display); font-size: clamp(28px, 4.6vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
h1 .where { display: block; font-style: italic; font-weight: 500; color: var(--pine); }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--muted); font-size: 13.5px; min-height: 26px; }
.stat b { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--text); margin-right: 5px; font-variant-numeric: lining-nums; }

/* ---------- Season chart: markets on, week by week ---------- */
.season { margin-top: 18px; padding: 14px 14px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.season-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; font-weight: 600; }
.key { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); font-size: 12px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw-dated { background: var(--pine); }
.sw-est { background: var(--straw); margin-left: 6px; }
.weeks { display: flex; gap: 4px; margin-top: 10px; min-height: 120px; }
.wk { flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: 16px 72px 18px 14px; justify-items: center; gap: 3px;
  background: none; border: 0; padding: 4px 0; border-radius: 10px; cursor: pointer; }
.wk:hover { background: var(--soft); }
.wk[aria-pressed="true"] { background: color-mix(in srgb, var(--text) 9%, transparent); }
.wk-n { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-bar { width: min(26px, 70%); height: 72px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.seg { display: block; width: 100%; border-radius: 5px; }
.seg-est { background: var(--straw); opacity: .85; }
.seg-dated { background: var(--pine); }
.seg[style="height:0%"] { display: none; }
.wk-d { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-m { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wk-now .wk-d { color: var(--bg); background: var(--brand); border-radius: 999px; padding: 0 6px; }

/* ---------- Search, near me, chips ---------- */
.tools { display: flex; gap: 8px; margin-top: 16px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.search:focus-within { outline: 2px solid var(--brand); border-color: transparent; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15px; color: var(--text); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }

.xips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -18px 0; padding: 0 18px 2px; }
.xips::-webkit-scrollbar { display: none; }
.xip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.xip .ic { width: 16px; height: 16px; color: var(--muted); }
.xip:hover { background: var(--soft); }
.xip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.xip[aria-pressed="true"] .ic { color: var(--bg); }
.xip-near { height: 44px; border-radius: 12px; }

.active { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.active b { color: var(--text); font-family: var(--display); font-size: 17px; margin-right: 2px; }
.clear { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); padding: 4px 6px; border-radius: 6px; }
.clear:hover { background: var(--soft); }
.clear .ic { width: 15px; height: 15px; }

/* ---------- Groups and cards ---------- */
.group { margin-top: 22px; }
.group-h { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.group-h .n { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--soft); padding: 1px 8px; border-radius: 999px; }
.group-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.list { list-style: none; margin-top: 10px; display: grid; gap: 8px; }

.card { border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.card[aria-current="true"] { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.card-btn { width: 100%; display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 12px; color: inherit; text-decoration: none; }
.card-btn:hover { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.card-body { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
.card-name { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.card-place { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km { color: var(--text); font-weight: 600; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.tag-icons { display: inline-flex; gap: 4px; }
.ti { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.ti .ic { width: 15px; height: 15px; }
.unc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 3px 8px 3px 5px; border-radius: 999px; }
.unc .ic { width: 15px; height: 15px; }

/* Tear-off calendar badge. Colour tells the status: red open, pine 2026, straw last year's. */
.cal { position: relative; display: grid; grid-template-rows: 18px auto auto; width: 58px; border-radius: 10px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); text-align: center; }
.cal-m { background: var(--pine); color: var(--card); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 18px; }
.cal-d { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.15; padding-top: 2px; font-variant-numeric: lining-nums; }
.cal-to { font-size: 10.5px; color: var(--muted); padding: 0 2px 5px; white-space: nowrap; }
.card[data-status="open"] .cal-m, .pop .cal-open .cal-m { background: var(--brand); }
.card[data-status="past"] .cal-m { background: var(--muted); }
.cal-est { border-style: dashed; border-color: var(--straw); }
.cal-est .cal-m { background: var(--straw-soft); color: color-mix(in srgb, var(--straw) 55%, var(--text)); letter-spacing: .03em; }
.cal-none .cal-m { background: var(--soft); color: var(--muted); }
.cal-none .cal-d { color: var(--muted); padding-bottom: 6px; }

/* Expanded card */
.detail { padding: 0 12px 14px 82px; display: grid; gap: 10px; font-size: 13.5px; }
.facts-mini { list-style: none; display: grid; gap: 6px; }
.facts-mini li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.facts-mini .ic { color: var(--muted); margin-top: 1px; }
.facts-mini .k { display: block; font-size: 12px; color: var(--muted); }
.note { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; background: var(--warn-bg); color: var(--text); font-size: 13.5px; }
.note .ic { color: var(--warn); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--text);
  background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn .ic { width: 16px; height: 16px; }
.btn:hover { background: color-mix(in srgb, var(--text) 85%, var(--brand)); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
@media (max-width: 420px) { .detail { padding-left: 12px; } }

.empty { margin-top: 24px; padding: 22px; border-radius: 14px; background: var(--soft); color: var(--muted); font-size: 14px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.empty .ic { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.peu { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }

/* ---------- Map legend and pins ---------- */
.legend { position: absolute; left: 12px; bottom: 28px; z-index: 2; display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--card) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.pin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.pin-open { background: var(--brand); }
.pin-dated { background: var(--pine); }
.pin-est { background: var(--straw); }
.pin-unc { background: var(--card); border: 2.5px solid var(--straw); box-shadow: none; }
@media (max-width: 820px) { .legend { bottom: calc(80px + env(safe-area-inset-bottom)); } }

.maplibregl-popup-content { background: var(--card); color: var(--text); border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  font: 13.5px/1.4 "Geist", system-ui, sans-serif; }
.pop { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start; padding-right: 14px; }
.pop > div { display: grid; gap: 1px; }
.pop b { font-family: var(--display); font-weight: 600; font-size: 15.5px; line-height: 1.2; }
.pop span { color: var(--muted); }
.pop a { margin-top: 6px; font-weight: 600; }
.maplibregl-popup-close-button { font-size: 18px; width: 28px; height: 28px; color: var(--muted); }
.maplibregl-popup-tip { border-top-color: var(--card) !important; border-bottom-color: var(--card) !important; }
.maplibregl-ctrl-attrib { font-size: 10.5px; line-height: 1.35; }
.maplibregl-ctrl-attrib.maplibregl-compact { min-height: 22px; }
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button { width: 22px; height: 22px; background-size: 16px; }
.maplibregl-ctrl-attrib.maplibregl-compact-show { max-width: calc(100% - 20px); }

/* ---------- Content pages (market, about) ---------- */
.page { background: var(--bg); }
.page .garland { height: 30px; background: url("/brand/garland.svg") repeat-x 0 -2px / 480px 34px; }
.sheet { max-width: 880px; margin: 0 auto; padding: 4px 16px 40px; display: grid; gap: 22px; }
.sheet section { display: grid; gap: 12px; }
.sheet section > p { font-size: 15px; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.entrada { color: var(--muted); font-size: 15.5px; }

/* Market hero: big calendar + name */
.m-hero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.m-hero .cal { width: 88px; border-radius: 14px; box-shadow: var(--shadow); }
.m-hero .cal-m { font-size: 13px; line-height: 24px; }
.m-hero .cal { grid-template-rows: 24px auto auto; }
.m-hero .cal-d { font-size: 40px; }
.m-hero .cal-to { font-size: 12px; padding-bottom: 8px; }
.m-hero h1 { font-size: clamp(26px, 5vw, 38px); }
.m-place { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; margin-top: 6px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 10px 4px 7px; border-radius: 999px; background: var(--soft); color: var(--text); }
.chip .ic { width: 15px; height: 15px; }
.chip-dated { background: color-mix(in srgb, var(--pine) 14%, transparent); color: var(--pine); }
.chip-est { background: var(--straw-soft); color: color-mix(in srgb, var(--straw) 55%, var(--text)); }
.chip-unc { background: var(--warn-bg); color: var(--warn); }

.panel-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; }
.panel-card h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.panel-card h2 .ic { color: var(--muted); }
.sheet .big-dates { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; font-variant-numeric: lining-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }

/* Where in the season */
.sbar { position: relative; height: 54px; }
.sbar-track { position: absolute; left: 0; right: 0; top: 18px; height: 12px; border-radius: 999px; background: var(--soft); }
.sbar-span { position: absolute; top: 14px; height: 20px; border-radius: 999px; background: var(--pine); }
.sbar-span.est { background: repeating-linear-gradient(135deg, var(--straw) 0 6px, color-mix(in srgb, var(--straw) 60%, var(--card)) 6px 12px); }
.sbar-today { position: absolute; top: 6px; width: 2px; height: 36px; background: var(--brand); border-radius: 2px; }
.sbar-today span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.sbar-tick { position: absolute; top: 38px; font-size: 11px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.sbar-tick::before { content: ""; position: absolute; left: 50%; top: -10px; width: 1px; height: 6px; background: var(--line); }
.sbar-note { font-size: 13px; color: var(--muted); }

/* Hours, Monday to Sunday */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { display: grid; gap: 4px; text-align: center; padding: 8px 2px; border-radius: 10px; background: var(--soft); font-variant-numeric: tabular-nums; }
.day b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.day span { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.day.closed span { color: var(--muted); font-weight: 500; }
.day.on { background: color-mix(in srgb, var(--pine) 12%, var(--card)); }
.exceptions { list-style: none; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.hours-text { font-size: 14.5px; }

.minimap { position: relative; height: 300px; border-radius: 16px; overflow: hidden; background: var(--map-bg); border: 1px solid var(--line); }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* How sure are we */
.meter { display: flex; gap: 4px; }
.meter i { flex: 1; height: 8px; border-radius: 999px; background: var(--soft); }
.meter i.on { background: var(--pine); }
.meter.low i.on { background: var(--straw); }
.sure-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.sure-line b { font-weight: 650; }
.small { font-size: 13px; color: var(--muted); }

.tags-big { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-big { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; font-weight: 500; }
.tag-big .ic { color: var(--muted); }

.nearby { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .nearby { grid-template-columns: 1fr; } }
.nearby .card-btn { grid-template-columns: 58px 1fr; }

.about-steps { list-style: none; display: grid; gap: 12px; counter-reset: s; }
.about-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.about-steps .ic-big { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--text); }
.about-steps .ic-big .ic { width: 22px; height: 22px; }
.about-steps b { display: block; font-size: 15.5px; }
.about-steps span { color: var(--muted); font-size: 14.5px; }

.peu-page { max-width: 880px; margin: 0 auto 32px; padding: 14px 16px 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* =====================================================================
   Website around the map: menu, home, lists, guide, footer.
   ===================================================================== */

/* ---------- Header: full nav on wide screens, a menu on narrow ones ---------- */
.nav-wide { display: flex; }
.menu { display: none; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--soft); }
.menu-list { position: absolute; right: 0; top: 46px; min-width: 220px; display: grid; padding: 6px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(40, 25, 10, .18); }
.menu-list a { padding: 11px 12px; border-radius: 9px; text-decoration: none; font-weight: 500; font-size: 15px; }
.menu-list a:hover, .menu-list a[aria-current="page"] { background: var(--soft); }
@media (max-width: 900px) {
  .nav-wide { display: none; }
  .menu { display: block; margin-left: auto; position: relative; }
}

/* Links styled as chips (home quick links, jump links) */
a.xip { text-decoration: none; color: var(--text); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 12px; }

/* ---------- Home: text and the atlas plate ---------- */
.hero-home { max-width: var(--wrap); margin: 0 auto; padding: 18px 16px 8px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.hero-home h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -0.032em; text-wrap: balance; }
.lede { margin-top: 16px; font-size: 17.5px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero-search { display: flex; gap: 8px; margin-top: 24px; }
.hero-search .search { height: 52px; }
.hero-stats { margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero-stats b { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--text); font-variant-numeric: lining-nums; }

/* The plate: a framed map page, a double rule like an engraved atlas plate. */
.plate { margin: 0; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow), 0 28px 50px -28px rgba(60, 40, 20, .35); }
.plate-map { position: relative; height: clamp(340px, 44vw, 540px); margin: 6px; border-radius: 2px; overflow: hidden; background: var(--map-bg);
  outline: 1px solid color-mix(in srgb, var(--text) 28%, transparent); outline-offset: 5px; }
.plate-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 16px 6px 2px; font-size: 13px; color: var(--muted); }
.plate-key { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.plate-key > span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .hero-home { grid-template-columns: 1fr; gap: 26px; padding-top: 8px; }
  .plate-map { height: 320px; }
}

/* ---------- Home and list sections ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px 8px; }
.block { margin-top: 48px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.block-h h2 { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; }
.block-h > a { font-size: 14px; font-weight: 600; }
.block-h .n { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--soft); padding: 2px 9px; border-radius: 999px; margin-right: auto; }
.block-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.block > .list { margin-top: 14px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.empty-line { margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 14.5px; list-style: none; }
.open-now { color: var(--brand); font-weight: 600; }

/* Opening next: a countdown per market */
.soon { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.soon-item a { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; height: 100%; padding: 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; }
.soon-item a:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.soon-count { display: grid; justify-items: center; line-height: 1; padding-right: 12px; border-right: 1px solid var(--line); }
.soon-count b { font-family: var(--display); font-size: 36px; font-weight: 600; color: var(--pine); font-variant-numeric: lining-nums; }
.soon-count span { margin-top: 5px; font-size: 12px; color: var(--muted); }
.soon-body { display: grid; gap: 2px; min-width: 0; }
@media (max-width: 900px) { .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .soon { grid-template-columns: 1fr; } }

/* Areas */
.areas { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.area { display: grid; align-content: start; gap: 6px; height: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); text-decoration: none; }
.area:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.area-name { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.area-blurb { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.area-n { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--pine); }
.area-soon { background: transparent; border-style: dashed; }
.area-soon .area-n { color: var(--muted); }
@media (max-width: 1000px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Guide teaser */
.guide-teaser { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: 18px;
  background: color-mix(in srgb, var(--pine) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--pine) 22%, var(--line)); }
.guide-teaser h2 { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; }
.guide-teaser p { margin: 8px 0 18px; font-size: 15.5px; max-width: 52ch; }
.guide-points { list-style: none; display: grid; gap: 8px; }
.guide-points li { display: grid; gap: 1px; padding: 12px 14px; border-radius: 12px; background: var(--card); }
.guide-points b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.guide-points span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 800px) { .guide-teaser { grid-template-columns: 1fr; padding: 22px; } }

/* How we check dates */
.trust h2 { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -0.022em; }
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 16px 0 14px; }
.trust-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.trust-list .ic { width: 20px; height: 20px; color: var(--pine); margin-top: 2px; }
.trust-list b { display: block; font-size: 15.5px; }
.trust-list span { font-size: 14px; color: var(--muted); }
.trust > a { font-size: 14px; font-weight: 600; }
@media (max-width: 800px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- Content pages: wide lists and the guide ---------- */
.sheet-wide { max-width: var(--wrap); }
.sheet .block { margin-top: 14px; }
.prose { max-width: 760px; }
.prose section { gap: 10px; }
.prose h2 { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.prose p { font-size: 16.5px; line-height: 1.65; max-width: 68ch; }
.facts-list { list-style: none; display: grid; }
.facts-list li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; }
.facts-list li:last-child { border-bottom: 1px solid var(--line); }
.facts-list b { font-family: var(--display); font-weight: 600; font-size: 16.5px; }
@media (max-width: 600px) { .facts-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Map style switch (Paper / Detailed) ---------- */
.maplibregl-ctrl.style-switch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.maplibregl-ctrl.style-switch button { width: auto; height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: none;
  font: 600 12.5px/1 "Geist", system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.maplibregl-ctrl.style-switch button:hover { color: var(--text); background: var(--soft); }
.maplibregl-ctrl.style-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Site footer ---------- */
.site-foot { margin-top: 64px; background: var(--soft); border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 34px 16px 18px; display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-brand p { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 34ch; }
.foot-col h2 { font-size: 13.5px; font-weight: 650; letter-spacing: -0.005em; }
.foot-col ul { list-style: none; display: grid; gap: 7px; margin-top: 10px; font-size: 14px; }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--text); text-decoration: underline; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 14px 16px 30px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 800px) { .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr 1fr; } }

/* ---------- Market page: about, facts, what we know ---------- */
.sheet [id] { scroll-margin-top: calc(var(--cap-h) + 12px); }
.m-about { font-size: 17px; line-height: 1.55; max-width: 62ch; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.fact { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.fact-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--straw-soft); color: color-mix(in srgb, var(--straw) 50%, var(--text)); }
.fact-ic .ic { width: 20px; height: 20px; }
.fact small, .go-card small, .gtk small { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fact b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }

.know { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.know::-webkit-scrollbar { display: none; }
.know a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); }
.know a.ok { background: color-mix(in srgb, var(--pine) 12%, var(--card)); color: var(--pine); border-color: transparent; }
.know a.ok .ic { width: 15px; height: 15px; }
.know a.todo { color: var(--muted); background: var(--card); border-style: dashed; }
.know .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px dashed currentColor; }

.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sec-h h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.sec-h h2 .ic { width: 22px; height: 22px; color: var(--muted); }
.sec-h .n { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--soft); padding: 2px 9px; border-radius: 999px; margin-right: auto; }

/* ---------- Floor plan ---------- */
.plan-box { position: relative; }
.plan-sec .minimap { height: clamp(320px, 52vh, 460px); }
.plan-box.is-empty .minimap { height: 300px; }
.plan-empty { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 14px; }
.plan-empty b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.plan-empty > span { color: var(--muted); }
.plan-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.plan-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.plan-key li { display: inline-flex; align-items: center; gap: 6px; }
.plan-key .n { color: var(--muted); font-size: 12.5px; }
.plan-key .fi { width: 24px; height: 24px; }
.plan-key .fi .ic { width: 14px; height: 14px; }

/* Facility icons: one colour family per job (help = pine, needs = ink, fun = red, food = straw). */
.fi { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--text); color: var(--bg); flex: none; }
.fi .ic { width: 17px; height: 17px; }
.fi-info, .fi-first-aid, .fi-entrance, .fi-transit, .fi-parking { background: var(--pine); color: #fff; }
.fi-stage, .fi-kids, .fi-ice-rink, .fi-nativity, .fi-tio { background: var(--brand); color: #fff; }
.fi-food-court { background: var(--straw); color: #231c17; }
.fi-pin { border: 2px solid var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; padding: 0; }
.fi-pin:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.pop-plain { display: grid; gap: 2px; padding-right: 10px; }
.pop-plain b { font-weight: 650; }
.pop-plain span { color: var(--muted); }

.sw-stall { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1.5px var(--card); }
.g-nativity { background: var(--pine); } .g-crafts { background: var(--straw); } .g-food { background: var(--brand); } .g-other { background: var(--muted); }

/* ---------- Getting there ---------- */
.go { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .go { grid-template-columns: 1fr; } }
.go-card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.go-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); }
.go-ic .ic { width: 21px; height: 21px; }
.go-card b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; margin: 2px 0 6px; }
.go-card a { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; }
.go-card a .ic { width: 14px; height: 14px; }
.gtk { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.gtk li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.gtk .ic { width: 20px; height: 20px; color: var(--muted); }

/* ---------- Stalls and stand information ---------- */
.empty-card { border: 1.5px dashed var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; align-content: start; background: color-mix(in srgb, var(--soft) 45%, transparent); }
.empty-card h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.empty-card h2 .ic { color: var(--muted); }
.sheet .empty-card > p { font-size: 14px; color: var(--muted); }
.cat-preview { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cat-preview li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.cat-preview .ic { width: 17px; height: 17px; color: var(--muted); flex: none; }

#stalls .xips { margin: 0 -16px; padding: 0 16px 2px; }
.xip .sw-stall { margin-right: 1px; }
.xip .n { font-size: 12px; color: var(--muted); font-weight: 500; }
.xip[aria-pressed="true"] .n { color: var(--bg); opacity: .75; }
.stalls { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 600px) { .stalls { grid-template-columns: 1fr; } }
.stall { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.stall[hidden] { display: none; }
.stall-no { width: 40px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.stall-no.g-crafts { color: #231c17; }
.stall-body { display: grid; min-width: 0; }
.stall-body b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stall-body small { color: var(--muted); font-size: 12.5px; }
.stall-link, .stall-find { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.stall-link:hover, .stall-find:hover { background: var(--soft); color: var(--text); }
.stall-link .ic, .stall-find .ic { width: 18px; height: 18px; }

.apply { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.apply-state { display: inline-flex; align-items: center; gap: 8px; }
.apply .btn { margin-left: auto; }
.apply-open { background: color-mix(in srgb, var(--pine) 13%, var(--card)); }
.apply-open .apply-state { color: var(--pine); }
.apply-soon { background: var(--straw-soft); }
.apply-closed .apply-state { color: var(--muted); }
