/* Local Car Shows
   Identity: the supplied logo on a black band, gold-and-cherry hot-rod pinstriping, two-tone paint (turquoise + cherry) on chrome-white. */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #14232e;
  --ink-soft: #3a4b58;
  --muted: #566672;
  --ground: #e6ebed;
  --panel: #ffffff;
  --line: #c6d1d6;
  --line-soft: #dde4e7;
  --turq: #12736e;
  --turq-deep: #0b4f4b;
  --turq-tint: #dcefed;
  --cherry: #c4232f;
  --cherry-deep: #9e1b25;
  --cherry-tint: #fbe3e5;
  --gold: #d7b26b;   /* sampled from the logo lettering */
  --amber: #f2b632;
  --amber-tint: #fcefc9;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --focus: 0 0 0 2px #fff, 0 0 0 5px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.5 var(--body);
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: 1.5rem; }
p { margin: 0; }
a { color: var(--turq-deep); }
img { max-width: 100%; display: block; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.pre { white-space: pre-wrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Masthead ---------- */
/* The logo artwork has a pure black background, so the band is pure black and the image blends in with no visible edge. */
.masthead { background: #000; color: #fff; }
.masthead::after {
  content: ""; display: block; height: 9px;
  background: linear-gradient(to bottom, var(--gold) 0 3px, transparent 3px 5px, var(--cherry) 5px 6px, transparent 6px);
}
.masthead-inner {
  max-width: 1360px; margin: 0 auto; padding: .5rem 1.25rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem 1.5rem;
}
.brand { grid-column: 2; display: block; line-height: 0; border-radius: 6px; }
.brand img { display: block; height: clamp(150px, 20vw, 215px); width: auto; max-width: 100%; }
.masthead-nav { grid-column: 3; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.user-chip { display: inline-flex; gap: .75rem; align-items: center; font-weight: 500; }

.verify-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .25rem .75rem; padding: .6rem 1rem; background: var(--amber-tint); border-bottom: 2px solid var(--amber); font-size: .95rem; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 500 .95rem/1 var(--body); padding: .7rem 1rem; min-height: 42px;
  color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--turq-tint); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cherry); border-color: var(--cherry-deep); color: #fff; }
.btn-primary:hover { background: var(--cherry-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { min-height: 34px; padding: .45rem .75rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-ok { background: var(--turq); border-color: var(--turq-deep); color: #fff; }
.btn-ok:hover { background: var(--turq-deep); }
.btn-danger { color: var(--cherry-deep); border-color: var(--cherry); }
.btn-danger:hover { background: var(--cherry-tint); }
.btn[disabled] { opacity: .55; cursor: progress; }

.linkish { appearance: none; background: none; border: 0; padding: .1rem .2rem; font: inherit; color: var(--turq-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish.on-dark { color: #fff; }
.icon-btn { appearance: none; display: inline-grid; place-items: center; width: 38px; height: 38px; background: #fff; border: 1.5px solid var(--line); border-radius: 6px; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); background: var(--turq-tint); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.badge { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 99px; background: var(--amber); color: var(--ink); font-size: .8rem; font-weight: 700; }

/* ---------- Layout ---------- */
.shell { max-width: 1360px; margin: 0 auto; padding: 1.25rem; }
.banner { margin-bottom: 1rem; padding: .8rem 1rem; background: var(--amber-tint); border: 1.5px solid var(--amber); border-radius: 6px; }

.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  padding: .75rem 1rem; margin-bottom: 1.25rem; background: var(--panel); border: 1.5px solid var(--line); border-radius: 8px;
}
.ctl { display: flex; align-items: center; gap: .6rem; }
.ctl .ico { width: 20px; height: 20px; fill: var(--cherry); flex: none; }
.ctl-radius label { font-weight: 500; }
.ctl-radius input[type=range] { width: clamp(120px, 18vw, 240px); accent-color: var(--turq); }
.ctl-radius output { min-width: 4.5rem; font: 500 1.15rem var(--display); }
.ctl-veh { position: relative; margin-left: auto; }
.ctl-veh > summary {
  list-style: none; cursor: pointer; padding: .6rem 2.2rem .6rem .9rem; border: 1.5px solid var(--ink); border-radius: 6px; font-weight: 500; position: relative; background: #fff; min-height: 42px; display: flex; align-items: center;
}
.ctl-veh > summary::-webkit-details-marker { display: none; }
.ctl-veh > summary::after { content: ""; position: absolute; right: .9rem; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
.ctl-veh[open] > summary { background: var(--turq-tint); }
.ctl-veh.has-filter > summary { background: var(--turq); border-color: var(--turq-deep); color: #fff; }
.ctl-veh.has-filter > summary::after { border-color: #fff; }
.veh-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(340px, 90vw); max-height: 60vh; overflow: auto; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; padding: .75rem; box-shadow: 0 10px 24px rgba(20,35,46,.25); }
.veh-pop-head { display: flex; justify-content: space-between; margin-bottom: .5rem; color: var(--muted); font-size: .9rem; }
.veh-list { display: grid; gap: .1rem; }

.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; }
.seg button { appearance: none; border: 0; background: #fff; padding: .4rem .7rem; font: 500 .9rem var(--body); cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.board {
  display: grid; gap: 1.25rem; align-items: start;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas: "cal map" "agenda map";
}
.cal-panel { grid-area: cal; }
.map-panel { grid-area: map; position: sticky; top: 1rem; height: min(760px, calc(100vh - 2rem)); }
.agenda-panel { grid-area: agenda; }

/* ---------- Calendar ---------- */
.cal-panel, .agenda-panel { background: var(--panel); border: 1.5px solid var(--line); border-radius: 8px; padding: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.cal-head h2 { font-size: 1.75rem; }
.cal-nav { display: flex; gap: .4rem; align-items: center; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-weekdays { text-align: center; font-weight: 700; font-size: .8rem; color: var(--muted); padding-bottom: .35rem; }
.cal-grid { gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; }

.day {
  appearance: none; border: 0; margin: 0; text-align: left; font: inherit; color: var(--ink); background: #fff; cursor: pointer;
  min-height: 92px; padding: .35rem .4rem; display: flex; flex-direction: column; gap: .2rem; position: relative; min-width: 0;
}
.day:hover { background: #f3f8f8; }
.day.is-out { background: #f4f6f7; color: #7d8b94; }
.day.is-past .day-num { color: #8a98a1; }
.day-num { font: 500 1rem/1 var(--display); width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; }
.day.is-today .day-num { background: var(--cherry); color: #fff; }
.day.is-selected { box-shadow: inset 0 0 0 3px var(--turq); background: var(--turq-tint); z-index: 1; }
.day:focus-visible { box-shadow: var(--focus); z-index: 2; border-radius: 0; }
.day-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chip {
  display: block; font-size: .72rem; line-height: 1.25; padding: 1px 5px; border-radius: 3px; background: var(--turq-tint); color: var(--turq-deep);
  border-left: 3px solid var(--turq); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500;
}
.day.is-out .chip, .day.is-past .chip { opacity: .65; }
.chip-more { font-size: .72rem; color: var(--muted); padding-left: 5px; }
.day-count { display: none; }

/* ---------- Agenda ---------- */
.agenda-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .5rem; }
.agenda-count { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.agenda-day { margin-top: 1.1rem; font: 500 1.1rem var(--display); letter-spacing: .02em; padding-bottom: .3rem; border-bottom: 2px solid var(--ink); display: flex; align-items: baseline; gap: .6rem; }
.agenda-day .today-flag { font: 700 .75rem var(--body); background: var(--cherry); color: #fff; padding: .1rem .45rem; border-radius: 3px; }
.ev {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .9rem; width: 100%; text-align: left; appearance: none; font: inherit; color: inherit;
  background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: .8rem .25rem; cursor: pointer;
}
.ev:hover { background: #f3f8f8; }
.ev.is-past { opacity: .6; }
.ev-time { font-weight: 700; font-size: .875rem; color: var(--turq-deep); }
.ev-title { font: 500 1.2rem/1.2 var(--display); letter-spacing: .01em; }
.ev-where { color: var(--ink-soft); font-size: .92rem; }
.ev-side { grid-row: 1 / span 4; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.ev-dist { font: 500 1rem var(--display); white-space: nowrap; }
.ev-thumb { width: 56px; height: 72px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.tag { font-size: .75rem; padding: .05rem .5rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink-soft); }
.tag-repeat { background: var(--amber-tint); border-color: var(--amber); color: var(--ink); }

.empty { padding: 1.5rem .5rem 1rem; }
.empty h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.empty p { color: var(--ink-soft); max-width: 46ch; }
.empty .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* ---------- Map ---------- */
#map, #picker { width: 100%; height: 100%; border: 1.5px solid var(--line); border-radius: 8px; background: #d5dfe2; z-index: 0; }
#picker { height: 260px; }
.leaflet-container { font-family: var(--body); }
.pin svg { filter: drop-shadow(0 2px 1px rgba(0,0,0,.35)); }
.pin path { fill: var(--turq); stroke: #fff; stroke-width: 1.5; }
.pin circle { fill: #fff; }
.pin.is-hot path { fill: var(--cherry); }
.pin.is-pick path { fill: var(--cherry); }
.pop-title { font: 500 1.1rem/1.2 var(--display); margin-bottom: .2rem; }
.pop-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: .5rem; }
.pop .btn { min-height: 32px; padding: .35rem .7rem; font-size: .85rem; }

/* ---------- Dialogs ---------- */
dialog.sheet {
  border: 0; padding: 1.25rem 1.5rem 1.5rem; border-radius: 10px; color: var(--ink); background: var(--panel);
  width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
dialog.sheet-narrow { max-width: 440px; }
dialog.sheet-wide { max-width: 760px; }
dialog.sheet::backdrop { background: rgba(20, 35, 46, .66); }
dialog[open] { animation: sheet-in .16s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.sheet-head h2 { font-size: 1.7rem; }
.sheet-foot { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.notice-ok { background: var(--turq-tint); border-left-color: var(--turq); }
.auth-alt { margin-top: 1rem; text-align: center; }
.notice { background: var(--amber-tint); border-left: 4px solid var(--amber); padding: .6rem .8rem; margin-bottom: .75rem; border-radius: 0 4px 4px 0; }

.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--ink); margin-bottom: 1rem; flex-wrap: wrap; }
.tabs button { appearance: none; background: none; border: 0; padding: .6rem 1rem; font: 500 1.05rem var(--display); letter-spacing: .02em; cursor: pointer; color: var(--muted); border-radius: 6px 6px 0 0; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs-tight { margin-top: .5rem; }
.tab-count { font-family: var(--body); font-size: .8rem; opacity: .8; }

/* ---------- Forms ---------- */
.field { margin-bottom: .9rem; }
.field label, legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=range]):not([type=file]), textarea, select {
  width: 100%; font: inherit; color: inherit; padding: .65rem .75rem; min-height: 44px; background: #fff;
  border: 1.5px solid #8899a3; border-radius: 6px;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: var(--focus); border-color: var(--ink); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--cherry); background: #fff8f8; }
.err, .form-error { color: var(--cherry-deep); font-size: .88rem; font-weight: 500; margin-top: .3rem; }
.err:empty, .form-error:empty { display: none; }
.form-error { margin: .5rem 0 .75rem; padding: .5rem .75rem; background: var(--cherry-tint); border-radius: 4px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.input-row { display: flex; gap: .5rem; }
.input-row .btn { flex: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 1rem; }
fieldset.group { border: 0; border-top: 2px solid var(--ink); margin: 1.25rem 0 0; padding: .9rem 0 0; min-width: 0; }
fieldset.group > legend { font: 500 1.25rem var(--display); letter-spacing: .02em; padding: 0 .6rem; margin-left: -.1rem; margin-bottom: 0; }
fieldset.group.has-error { border-top-color: var(--cherry); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .1rem .75rem; margin-bottom: .9rem; }
.check { display: flex; align-items: center; gap: .55rem; padding: .35rem .25rem; cursor: pointer; border-radius: 4px; }
.check:hover { background: var(--turq-tint); }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--turq); flex: none; margin: 0; }
.picker-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; align-items: baseline; }
.result-list { list-style: none; margin: 0 0 .9rem; padding: 0; border: 1.5px solid var(--line); border-radius: 6px; }
.result-list:empty { display: none; }
.result-list li + li { border-top: 1px solid var(--line-soft); }
.result-list button { appearance: none; width: 100%; text-align: left; padding: .6rem .75rem; background: none; border: 0; font: inherit; cursor: pointer; color: inherit; }
.result-list button:hover { background: var(--turq-tint); }
.result-list .none { padding: .6rem .75rem; color: var(--muted); }
.chip-list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-list li { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .3rem .15rem .6rem; border: 1px solid var(--line); border-radius: 99px; background: var(--turq-tint); font-size: .9rem; }
.chip-list button { appearance: none; border: 0; background: none; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink); }
.chip-list button:hover { background: var(--cherry); color: #fff; }
.poster-row { display: flex; gap: 1rem; align-items: center; }
.poster-preview { width: 84px; height: 108px; flex: none; border: 1.5px dashed var(--line); border-radius: 4px; background: #f3f6f7 center/cover no-repeat; }

/* ---------- Detail dialog ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.25rem 1.5rem; }
.detail.no-poster { grid-template-columns: minmax(0, 1fr); }
.detail-poster a { display: block; }
.detail-poster img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }
#detail-title { font-size: 2rem; margin-bottom: .35rem; }
.sheet-head:has(#detail-title) { align-items: flex-start; margin-bottom: 1rem; }
.detail-when { font: 500 1.2rem var(--display); color: var(--turq-deep); }
.detail dl { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem 1rem; margin: 0 0 1rem; }
.detail dt { font-weight: 700; color: var(--ink-soft); }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.detail .desc { white-space: pre-wrap; margin: 1rem 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.date-chips { display: flex; flex-wrap: wrap; gap: .3rem; }

/* ---------- Admin / my submissions ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sub {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem 1.25rem; padding: 1.1rem; margin-bottom: 1rem; background: #fff; border: 1.5px solid var(--line); border-left: 6px solid var(--amber); border-radius: 8px;
}
.sub.st-approved { border-left-color: var(--turq); }
.sub.st-rejected { border-left-color: var(--cherry); }
.sub-poster img { width: 120px; border-radius: 3px; border: 1px solid var(--line); }
.sub-poster .no-img { width: 120px; height: 150px; display: grid; place-items: center; text-align: center; padding: .5rem; border: 1.5px dashed var(--line); border-radius: 3px; color: var(--muted); font-size: .8rem; }
.sub h3 { font-size: 1.5rem; }
.sub-top { display: flex; justify-content: space-between; gap: .5rem .75rem; align-items: flex-start; flex-wrap: wrap; }
.sub-heading { display: flex; align-items: flex-start; gap: .6rem; min-width: 0; }
.sub-flags { display: flex; gap: .4rem; flex-wrap: wrap; }
.sub-select { display: inline-flex; align-items: center; padding-top: .35rem; cursor: pointer; }
.sub-select input { width: 1.25rem; height: 1.25rem; accent-color: var(--turq); margin: 0; }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .6rem .9rem; margin-bottom: 1rem; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; position: sticky; top: .5rem; z-index: 5; }
.bulk input[type=text] { flex: 1 1 220px; min-width: 0; min-height: 36px; padding: .35rem .6rem; }
.sub dl { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .3rem 1rem; margin: .75rem 0; font-size: .95rem; }
.sub dt { color: var(--muted); font-weight: 700; }
.sub dd { margin: 0; overflow-wrap: anywhere; }
.sub-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.reject-box { display: flex; gap: .5rem; flex: 1 1 100%; margin-top: .25rem; }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.pill-import { background: #e9edf0; border: 1px solid var(--line); color: var(--ink-soft); }
.pill-pending { background: var(--amber-tint); border: 1px solid var(--amber); }
.pill-approved { background: var(--turq-tint); color: var(--turq-deep); border: 1px solid var(--turq); }
.pill-rejected { background: var(--cherry-tint); color: var(--cherry-deep); border: 1px solid var(--cherry); }

.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 200%); background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 8px; border-left: 5px solid var(--amber); z-index: 200; max-width: min(92vw, 460px); transition: transform .2s ease-out; }
.toast.show { transform: translate(-50%, 0); }

.foot { max-width: 1360px; margin: 0 auto; padding: 0 1.25rem 2rem; color: var(--muted); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .masthead-inner { grid-template-columns: 1fr; justify-items: center; padding-top: .75rem; }
  .masthead-nav { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; justify-content: center; justify-self: center; align-items: center; }
  .brand { grid-column: 1; grid-row: 2; }
  .brand img { height: auto; width: min(100%, 440px); }
  .board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cal" "map" "agenda"; }
  .map-panel { position: static; height: 360px; }
  .ctl-veh { margin-left: 0; }
  .veh-pop { right: auto; left: 0; }
}
@media (max-width: 640px) {
  .shell { padding: .75rem; }
  .masthead-inner { padding: .6rem .75rem .25rem; }
  .masthead-nav { width: 100%; }
  .masthead-nav .btn { flex: 1 1 auto; }
  .brand img { width: min(100%, 380px); }
  .cal-panel, .agenda-panel { padding: .65rem; }
  .cal-head h2 { font-size: 1.4rem; }
  .day { min-height: 56px; align-items: center; padding: .3rem .15rem; }
  .day-chips { display: none; }
  .day.has-events .day-count { display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; border-radius: 99px; background: var(--turq); color: #fff; font-size: .75rem; font-weight: 700; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail dl, .sub dl { grid-template-columns: 1fr; gap: 0; }
  .detail dt, .sub dt { margin-top: .5rem; }
  .sub { grid-template-columns: 1fr; }
  dialog.sheet { padding: 1rem; width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .ctl-radius { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
