/* ==========================================================================
   Pack N Mail - 2026 Christmas Shipping Countdown
   Core styles. Brand: navy #000079, red #FF000B, soft white #F4F4F9,
   soft pink #FEEDEE. Everything else is a derived shade of those four.
   ========================================================================== */

:root {
  /* Brand */
  --navy:            #000079;
  --red:             #FF000B;
  --white:           #F4F4F9;
  --pink:            #FEEDEE;

  /* Derived depth shades */
  --navy-abyss:      #01011e;
  --navy-deep:       #050544;
  --navy-panel:      #0a0a56;
  --navy-raised:     #10106b;
  --navy-line:       #2a2a9c;
  --navy-soft:       #3d3dba;

  --red-deep:        #b8000a;
  --red-glow:        rgba(255, 0, 11, 0.45);

  --ink:             var(--white);
  --ink-dim:         #b9b9e4;
  --ink-faint:       #8585c4;

  /* Status */
  --st-upcoming:     #7e7ee0;
  --st-approaching:  #ffd166;
  --st-urgent:       var(--red);
  --st-past:         #6b6ba0;
  --st-check:        #46c7d6;
  --st-pending:      #ff9f45;

  /* Geometry */
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  --shadow-panel: 0 18px 46px rgba(0, 0, 20, .55), inset 0 1px 0 rgba(255,255,255,.06);
  --shadow-card:  0 10px 26px rgba(0, 0, 20, .42);

  --gap: clamp(.7rem, 1.1vw, 1.15rem);
  --pad: clamp(.95rem, 1.5vw, 1.6rem);

  --font-ui: "Inter", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --topbar-h: clamp(72px, 7.4vh, 108px);
  --ticker-h: clamp(46px, 5vh, 62px);
}

* { box-sizing: border-box; }

/* `hidden` must win over the display rules below it. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(1200px 680px at 12% -8%, #141488 0%, rgba(20,20,136,0) 62%),
    radial-gradient(1000px 620px at 94% 4%, #2a0a52 0%, rgba(42,10,82,0) 58%),
    linear-gradient(170deg, var(--navy-deep) 0%, var(--navy-abyss) 72%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body[data-boot="loading"] .dash { opacity: .35; }
.dash { transition: opacity .35s ease; }

img { max-width: 100%; }
a { color: var(--pink); }
a:hover { color: #fff; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--white); color: var(--navy); padding: .65rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700; z-index: 90;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Snow ---------- */
.snow-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .75;
}
body.no-snow .snow-canvas { display: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.8rem, 2vw, 2rem);
  min-height: var(--topbar-h);
  padding: .55rem clamp(.8rem, 1.8vw, 1.9rem);
  background: linear-gradient(180deg, rgba(0,0,121,.92) 0%, rgba(0,0,121,.62) 55%, rgba(0,0,121,0) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, #fff 22%, var(--red) 44%, #fff 66%, var(--red) 88%, #fff 100%);
  background-size: 180px 100%;
  opacity: .9;
}

.topbar__brand { display: flex; align-items: center; }
.brand-logo { height: clamp(36px, 4.6vh, 62px); width: auto; display: block; }
.brand-logo.is-missing { display: none; }
.brand-logo.is-missing + .brand-fallback { display: inline-block; }
.brand-fallback {
  display: none; font-weight: 900; letter-spacing: .06em;
  font-size: clamp(1rem, 1.6vw, 1.5rem); color: var(--white);
}

.topbar__title { min-width: 0; }
.topbar__h1 {
  margin: 0;
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  font-size: clamp(1.15rem, 2.5vw, 2.5rem);
  font-weight: 900; letter-spacing: -.015em; line-height: 1.05;
  text-transform: uppercase;
}
.topbar__h1-icon {
  display: inline-grid; place-items: center;
  width: 1.5em; height: 1.5em; flex: 0 0 auto;
  border-radius: 50%; background: var(--red); color: #fff;
  box-shadow: 0 0 0 4px rgba(255,0,11,.18);
}
.topbar__h1-icon svg { width: 62%; height: 62%; }
.topbar__year {
  font-size: .5em; letter-spacing: .14em; font-weight: 800;
  padding: .2em .55em; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}
.topbar__sub {
  margin: .25rem 0 0; color: var(--ink-dim);
  font-size: clamp(.68rem, .85vw, .9rem); letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}

.topbar__meta { display: flex; align-items: center; gap: clamp(.5rem, 1vw, 1rem); }

.xmas-chip {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .85rem; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 8px 22px rgba(255,0,11,.3);
}
.xmas-chip__num {
  font-family: var(--font-num); font-size: clamp(1.4rem, 2.3vw, 2.3rem);
  font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
}
.xmas-chip__label {
  font-size: clamp(.55rem, .68vw, .72rem); line-height: 1.15; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.92);
}
.xmas-chip.is-today { animation: pulse-red 2.4s ease-in-out infinite; }

.clock { text-align: right; line-height: 1.15; }
.clock__time {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: clamp(1.05rem, 1.9vw, 1.9rem); font-weight: 700; letter-spacing: .01em;
}
.clock__date { font-size: clamp(.62rem, .82vw, .86rem); color: var(--ink-dim); font-weight: 600; }
.clock__zone {
  display: flex; align-items: center; justify-content: flex-end; gap: .35rem;
  font-size: clamp(.55rem, .7vw, .74rem); color: var(--ink-faint);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
.live-dot {
  width: .5em; height: .5em; border-radius: 50%; background: #35e07f;
  box-shadow: 0 0 0 0 rgba(53,224,127,.55); animation: live 2.4s ease-out infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(53,224,127,.5); }
  70%  { box-shadow: 0 0 0 .55em rgba(53,224,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,224,127,0); }
}

.icon-btn {
  display: grid; place-items: center;
  width: clamp(34px, 3vw, 44px); height: clamp(34px, 3vw, 44px);
  border-radius: var(--r-sm); cursor: pointer;
  color: var(--ink-dim); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.icon-btn svg { width: 54%; height: 54%; }
.icon-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.icon-btn:active { transform: scale(.94); }
.icon-btn--light { color: var(--navy); background: rgba(0,0,121,.08); border-color: rgba(0,0,121,.16); }
.icon-btn--light:hover { background: rgba(0,0,121,.16); color: var(--navy); }

/* ---------- Alert bar ---------- */
.alert-bar {
  position: relative; z-index: 4; margin: .6rem clamp(.8rem, 1.8vw, 1.9rem) 0;
  padding: .7rem 1rem; border-radius: var(--r-md);
  background: rgba(255,159,69,.14); border: 1px solid rgba(255,159,69,.5);
  color: #ffd9b0; font-weight: 600; font-size: .9rem;
}

/* ---------- Layout ---------- */
.dash {
  position: relative; z-index: 3;
  display: grid;
  gap: var(--gap);
  padding: var(--gap) clamp(.8rem, 1.8vw, 1.9rem) calc(var(--ticker-h) + var(--gap) * 2);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas:
    "hero hero"
    "map cards"
    "schedule schedule"
    "legal legal";
  align-content: start;
}
#hero { grid-area: hero; }
#map-panel { grid-area: map; }
#cards-panel { grid-area: cards; }
#reminder-slide { grid-area: cards; }
#schedule { grid-area: schedule; }
.disclaimer { grid-area: legal; }

.panel {
  position: relative;
  background: linear-gradient(165deg, rgba(16,16,107,.82) 0%, rgba(5,5,54,.78) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
  padding: var(--pad);
  backdrop-filter: blur(6px);
  min-width: 0;
}
.panel__head { margin-bottom: .85rem; }
.panel__head--row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.panel__title {
  margin: 0; font-size: clamp(.95rem, 1.25vw, 1.35rem); font-weight: 800;
  letter-spacing: .055em; text-transform: uppercase;
}
.panel__title--sm { font-size: clamp(.82rem, 1vw, 1rem); }
.panel__note { margin: .35rem 0 0; color: var(--ink-dim); font-size: clamp(.7rem, .85vw, .88rem); }

/* ---------- Hero countdown ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 2.2vw, 2.4rem); align-items: center;
  border-color: rgba(255,255,255,.16);
  background:
    radial-gradient(760px 340px at 2% 0%, rgba(255,0,11,.16) 0%, rgba(255,0,11,0) 70%),
    linear-gradient(165deg, rgba(20,20,122,.9) 0%, rgba(5,5,54,.82) 100%);
}
.hero__head { min-width: 0; }
.hero__eyebrow {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem;
  font-size: clamp(.64rem, .82vw, .84rem); font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
}
.hero__eyebrow-icon {
  display: inline-grid; place-items: center; width: 1.9em; height: 1.9em;
  border-radius: var(--r-sm); background: rgba(255,255,255,.1); color: var(--pink);
}
.hero__eyebrow-icon svg { width: 66%; height: 66%; }

.hero__next { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.hero__carrier {
  font-size: clamp(1.5rem, 3.1vw, 3.1rem); font-weight: 900; line-height: 1;
  letter-spacing: -.02em; text-transform: uppercase;
}
.hero__service {
  font-size: clamp(.9rem, 1.35vw, 1.42rem); font-weight: 700; color: var(--pink);
  line-height: 1.2;
}
.hero__shipby {
  margin: .6rem 0 0; font-size: clamp(.85rem, 1.15vw, 1.2rem);
  font-weight: 700; color: var(--white);
}
.hero__shipby .hero__date { color: #ffd166; }
.hero__also {
  margin: .5rem 0 0; font-size: clamp(.7rem, .88vw, .92rem); color: var(--ink-dim);
}
.hero__cutoffnote {
  margin: .7rem 0 0; text-align: center;
  font-size: clamp(.65rem, .82vw, .86rem); color: var(--ink-faint); font-weight: 600;
}

.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, .9vw, .95rem);
}
.cd-box {
  display: grid; justify-items: center; gap: .25rem;
  padding: clamp(.6rem, 1.3vw, 1.3rem) .35rem clamp(.45rem, .9vw, .85rem);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(1,1,30,.92) 0%, rgba(1,1,30,.72) 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 28px rgba(0,0,20,.45);
}
.cd-box__num {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5.4vw, 5.6rem); font-weight: 700; line-height: .95;
  letter-spacing: -.02em; color: #fff;
  text-shadow: 0 0 26px rgba(120,120,255,.3);
}
.cd-box__label {
  font-size: clamp(.52rem, .72vw, .78rem); font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
}

/* urgency states on the hero */
.hero.is-approaching .cd-box { border-color: rgba(255,209,102,.4); }
.hero.is-approaching .cd-box__num { color: #ffe3a3; }
.hero.is-urgent {
  border-color: rgba(255,0,11,.55);
  background:
    radial-gradient(760px 340px at 2% 0%, rgba(255,0,11,.3) 0%, rgba(255,0,11,0) 70%),
    linear-gradient(165deg, rgba(60,4,36,.92) 0%, rgba(26,2,22,.88) 100%);
}
.hero.is-urgent .cd-box { border-color: rgba(255,0,11,.5); }
.hero.is-urgent .cd-box__num { color: #fff; text-shadow: 0 0 30px var(--red-glow); }
.hero.is-urgent .hero__carrier { color: #fff; }
.hero.is-past { border-color: rgba(107,107,160,.4); }
.hero.is-past .cd-box__num { color: var(--st-past); }

.countdown.is-dateonly { grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.6fr); }
.countdown.is-dateonly .cd-box--note {
  justify-items: start; text-align: left; gap: .45rem;
  padding-left: clamp(.8rem, 1.4vw, 1.4rem); padding-right: clamp(.8rem, 1.4vw, 1.4rem);
}
.cd-box__text {
  font-size: clamp(.72rem, .95vw, 1.02rem); font-weight: 700; color: var(--white); line-height: 1.35;
}
.cd-box__sub { font-size: clamp(.63rem, .78vw, .82rem); color: var(--ink-dim); font-weight: 600; line-height: 1.4; }

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 8px 22px rgba(255,0,11,.3); }
  50%      { box-shadow: 0 8px 34px rgba(255,0,11,.65); }
}

/* ---------- Carrier filter ---------- */
.carrier-filter { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  appearance: none; cursor: pointer;
  padding: .48rem .95rem; border-radius: 999px;
  font-size: clamp(.66rem, .82vw, .84rem); font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-dim); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
  min-height: 40px;
}
.chip:hover { background: rgba(255,255,255,.15); color: #fff; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] {
  background: var(--white); color: var(--navy); border-color: var(--white);
  box-shadow: 0 6px 18px rgba(244,244,249,.22);
}
.chip__count {
  display: inline-block; margin-left: .4em; padding: 0 .4em;
  border-radius: 999px; background: rgba(0,0,0,.18); font-size: .85em;
}
.chip[aria-pressed="true"] .chip__count { background: rgba(0,0,121,.12); }

/* ---------- Deadline cards ---------- */
.cards { display: grid; gap: .55rem; }
.cards__empty { margin: 0; color: var(--ink-dim); font-size: .9rem; }

.dcard {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 1rem;
  padding: clamp(.6rem, 1vw, .95rem) clamp(.75rem, 1.2vw, 1.15rem);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,255,255,.14);
  border-left: 5px solid var(--st-upcoming);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.dcard:hover { transform: translateY(-2px); }
.dcard__main { min-width: 0; }
.dcard__top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .18rem; }
.dcard__carrier {
  font-size: clamp(.84rem, 1.08vw, 1.14rem); font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase;
}
.dcard__service {
  font-size: clamp(.74rem, .95vw, 1rem); font-weight: 600; color: var(--pink);
  overflow-wrap: anywhere;
}
.dcard__date { margin: .25rem 0 0; font-size: clamp(.68rem, .85vw, .9rem); color: var(--ink-dim); font-weight: 600; }
.dcard__note { margin: .22rem 0 0; font-size: clamp(.62rem, .76vw, .8rem); color: var(--ink-faint); }
.dcard__right { text-align: right; display: grid; justify-items: end; gap: .15rem; }
.dcard__days {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 2.5vw, 2.6rem); font-weight: 700; line-height: 1;
}
.dcard__dayslabel {
  font-size: clamp(.52rem, .66vw, .7rem); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.dcard__flag {
  font-size: clamp(.68rem, .85vw, .9rem); font-weight: 800; text-align: right; line-height: 1.2;
}

.status-pill {
  display: inline-flex; align-items: center; gap: .32em;
  padding: .18em .6em; border-radius: 999px;
  font-size: clamp(.54rem, .66vw, .7rem); font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.status-pill::before {
  content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor;
}

[data-status="upcoming"]      { --sc: var(--st-upcoming); }
[data-status="approaching"]   { --sc: var(--st-approaching); }
[data-status="urgent"]        { --sc: var(--st-urgent); }
[data-status="past"]          { --sc: var(--st-past); }
[data-status="check-route"]   { --sc: var(--st-check); }
[data-status="pending"]       { --sc: var(--st-pending); }

.dcard[data-status] { border-left-color: var(--sc); }
.dcard .status-pill { color: var(--sc); }
.dcard[data-status] .dcard__days { color: var(--sc); }

.dcard[data-status="urgent"] {
  background: linear-gradient(135deg, rgba(255,0,11,.22) 0%, rgba(255,0,11,.07) 100%);
  border-color: rgba(255,0,11,.5);
}
.dcard[data-status="approaching"] {
  background: linear-gradient(135deg, rgba(254,237,238,.14) 0%, rgba(254,237,238,.04) 100%);
  border-color: rgba(254,237,238,.3);
}
.dcard[data-status="past"] { opacity: .52; }
.dcard[data-status="past"]:hover { opacity: .78; }

.dcard--confirm { border-style: dashed; }
.confirm-tag {
  display: inline-block; margin-left: .4em; padding: .1em .5em;
  border-radius: var(--r-sm); font-size: .62em; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--st-pending); border: 1px dashed currentColor;
}

/* ---------- Map ---------- */
.map-panel { display: flex; flex-direction: column; }
.map-stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(1,1,30,.55) 0%, rgba(1,1,30,.25) 100%);
  border: 1px solid rgba(255,255,255,.08);
  padding: .5rem;
}
.map-stage svg { width: 100%; height: 100%; max-height: 46vh; display: block; }
.map-panel.is-kiosk .map-stage svg { max-height: none; }

.state {
  fill: #1c1c84;
  stroke: #4a4ac4;
  stroke-width: .9;
  stroke-linejoin: round;
  transition: fill .16s ease, stroke .16s ease;
  cursor: pointer;
  outline: none;
}
.state:hover, .state:focus-visible, .state.is-active { fill: #3b3bd6; stroke: var(--pink); stroke-width: 1.6; }
.state[data-zone="origin"] { fill: var(--red); stroke: #ffb3b6; }
.state[data-zone="origin"]:hover, .state[data-zone="origin"].is-active { fill: #ff3a43; }
.state[data-zone="offshore"] { fill: #1d5f6b; stroke: var(--st-check); }
.state[data-zone="offshore"]:hover, .state[data-zone="offshore"].is-active { fill: #2b8a9b; }

.map-tip {
  position: absolute; z-index: 20; max-width: 280px;
  padding: .6rem .75rem; border-radius: var(--r-md);
  background: rgba(1,1,30,.97); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 14px 34px rgba(0,0,20,.6);
  pointer-events: none; font-size: .8rem; line-height: 1.4;
}
.map-tip__name { font-weight: 900; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .2rem; }
.map-tip__row { color: var(--ink-dim); }
.map-tip__row strong { color: var(--white); font-weight: 700; }
.map-tip__warn { margin-top: .35rem; color: var(--st-check); font-weight: 700; font-size: .92em; }

.map-legend {
  display: flex; flex-wrap: wrap; gap: .45rem 1.1rem;
  list-style: none; margin: .7rem 0 0; padding: 0;
  font-size: clamp(.6rem, .76vw, .78rem); color: var(--ink-dim); font-weight: 600;
}
.map-legend li { display: flex; align-items: center; gap: .4rem; }
.swatch { width: .85em; height: .85em; border-radius: 3px; border: 1px solid rgba(255,255,255,.35); }
.swatch--origin { background: var(--red); }
.swatch--lower48 { background: #1c1c84; }
.swatch--offshore { background: #1d5f6b; }

.map-fallback {
  padding: 1.4rem; text-align: center; color: var(--ink-dim); font-size: .9rem;
}

/* ---------- Reminder slide ---------- */
.reminder-slide { display: flex; flex-direction: column; justify-content: center; }
.reminder-list {
  margin: 1rem 0 0; padding: 0; list-style: none;
  display: grid; gap: .75rem;
}
.reminder-list li {
  padding-left: 1.6rem; position: relative;
  font-size: clamp(.82rem, 1.1vw, 1.18rem); line-height: 1.45; color: var(--ink-dim);
}
.reminder-list li strong { color: var(--white); }
.reminder-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--red);
}
.reminder-contact {
  margin: 1.2rem 0 0; color: var(--ink-faint); font-weight: 700;
  font-size: clamp(.68rem, .85vw, .9rem); letter-spacing: .04em;
}

/* ---------- Schedule ---------- */
.schedule__body { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.schedule__body[hidden] { display: none; }

.carrier-block {
  border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.1);
  background: rgba(1,1,30,.4); overflow: hidden;
}
.carrier-block__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
  padding: .7rem .9rem; background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.carrier-block__name { font-size: 1.05rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; margin: 0; }
.carrier-block__target { font-size: .72rem; color: var(--ink-faint); font-weight: 600; }
.carrier-block__notes {
  margin: 0; padding: .55rem .9rem; list-style: none;
  background: rgba(255,159,69,.08); border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .74rem; color: #ffd9b0;
}
.carrier-block__notes li { padding-left: .9rem; position: relative; }
.carrier-block__notes li::before { content: "!"; position: absolute; left: 0; font-weight: 900; }

.svc-table { width: 100%; border-collapse: collapse; font-size: clamp(.68rem, .82vw, .85rem); }
.svc-table th {
  text-align: left; padding: .45rem .9rem; font-size: .62rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.svc-table td { padding: .5rem .9rem; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.svc-table tr:last-child td { border-bottom: 0; }
.svc-table tr[data-status="past"] { opacity: .55; }
.svc-table tr[data-status] .svc-days { color: var(--sc); font-weight: 800; }
.svc-name { font-weight: 700; color: var(--white); }
.svc-meta { display: block; margin-top: .2rem; color: var(--ink-faint); font-size: .92em; font-weight: 500; }
.svc-date { font-weight: 700; white-space: nowrap; }
.svc-days { font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Disclaimer / store ---------- */
.disclaimer__text { margin: .6rem 0 0; font-size: clamp(.72rem, .9vw, .92rem); line-height: 1.55; color: var(--ink-dim); }
.disclaimer__meta { margin: .55rem 0 0; font-size: clamp(.66rem, .8vw, .82rem); color: var(--ink-faint); }
.disclaimer__links {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; margin: .6rem 0 0; padding: 0;
  font-size: clamp(.68rem, .82vw, .85rem); font-weight: 700;
}
.store-card {
  display: grid; gap: .5rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 1rem 0 0; padding: .9rem 0 0; border-top: 1px solid rgba(255,255,255,.1);
}
.store-card dt {
  font-size: .64rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
.store-card dd { margin: .15rem 0 0; font-size: clamp(.72rem, .88vw, .9rem); font-weight: 600; }

/* ---------- Ticker ---------- */
.ticker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
  display: flex; align-items: center; gap: .9rem;
  height: var(--ticker-h); padding: 0 clamp(.7rem, 1.4vw, 1.4rem);
  background: linear-gradient(90deg, var(--navy) 0%, #15157e 50%, var(--navy) 100%);
  border-top: 2px solid var(--red);
  box-shadow: 0 -12px 30px rgba(0,0,20,.5);
}
.ticker__badge {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 2em; height: 2em; border-radius: 50%; background: var(--red); color: #fff;
}
.ticker__badge svg { width: 62%; height: 62%; }
.ticker__viewport { flex: 1 1 auto; overflow: hidden; min-width: 0; }
.ticker__track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: ticker-scroll 46s linear infinite;
  font-size: clamp(.68rem, .92vw, .95rem); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--white);
  white-space: nowrap;
}
.ticker__track span::after { content: "\2744"; margin-left: 3.5rem; color: var(--pink); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker__store {
  flex: 0 0 auto; font-size: clamp(.6rem, .76vw, .78rem); font-weight: 700;
  letter-spacing: .06em; color: var(--ink-dim);
}

/* ---------- Modal / settings ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1,1,20,.72); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; width: min(680px, 100%); max-height: 88vh; overflow: auto;
  background: var(--white); color: var(--navy);
  border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(0,0,20,.6);
  padding: 1.3rem;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal__head h2 { margin: 0; font-size: 1.15rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.modal__warn {
  margin: .9rem 0 0; padding: .7rem .85rem; border-radius: var(--r-md);
  background: var(--pink); border: 1px solid rgba(255,0,11,.3);
  font-size: .8rem; line-height: 1.5; color: #5a0005;
}
.modal__warn code { background: rgba(0,0,121,.1); padding: 0 .3em; border-radius: 4px; }
.modal__foot { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.1rem; }

.settings-form { display: grid; gap: 1rem; margin-top: 1.1rem; }
.set-group {
  border: 1px solid rgba(0,0,121,.16); border-radius: var(--r-md); padding: .85rem;
}
.set-group > legend {
  padding: 0 .4rem; font-size: .68rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}
.set-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem;
  align-items: center; padding: .4rem 0;
}
.set-row + .set-row { border-top: 1px solid rgba(0,0,121,.08); }
.set-row label { font-size: .85rem; font-weight: 700; }
.set-row .set-hint { display: block; font-weight: 500; font-size: .72rem; color: #4b4b8f; margin-top: .15rem; }
.set-row input[type="time"],
.set-row input[type="text"],
.set-row input[type="number"],
.set-row select {
  font: inherit; font-size: .85rem; padding: .4rem .55rem;
  border: 1px solid rgba(0,0,121,.3); border-radius: var(--r-sm);
  background: #fff; color: var(--navy); min-height: 40px; min-width: 130px;
}
.set-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--navy); }
.set-cutoffs { display: grid; gap: .5rem; }

.primary-btn, .ghost-btn {
  font: inherit; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  font-size: .78rem; padding: .62rem 1.1rem; border-radius: var(--r-sm);
  cursor: pointer; min-height: 42px; transition: background .16s ease, transform .16s ease;
}
.primary-btn { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.primary-btn:hover { background: #1a1aa0; }
.ghost-btn {
  background: transparent; color: var(--ink-dim);
  border: 1px solid rgba(255,255,255,.26);
}
.ghost-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.modal .ghost-btn { color: var(--navy); border-color: rgba(0,0,121,.3); }
.modal .ghost-btn:hover { background: rgba(0,0,121,.08); color: var(--navy); }
.primary-btn:active, .ghost-btn:active { transform: scale(.97); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .snow-canvas { display: none; }
  .ticker__track { animation: none; }
}

/* ---------- Alert kinds ---------- */
.alert-bar[data-kind="error"] {
  background: rgba(255,0,11,.16); border-color: rgba(255,0,11,.6); color: #ffd3d5;
}

/* Keep the status pill readable when a card title wraps */
.dcard__top .status-pill { flex: 0 0 auto; }
.hero.is-xmas .cd-box__num { color: var(--pink); }

/* ==========================================================================
   Map hidden (the default). Everything that was sharing the row with the map
   gets the full width, which is what makes the type readable from a distance.
   ========================================================================== */
body.no-map #map-panel { display: none !important; }

body.no-map .dash {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "hero"
    "cards"
    "schedule"
    "legal";
}

/* Wide screens can hold two columns of cards once the map is gone. */
body.no-map .cards {
  /* min() keeps the track from forcing a phone into horizontal scroll. */
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}
