/* Small Plans. Light theme only, by design: no prefers-color-scheme block. Mobile first. */

:root {
  --sand: #F5F2EC;
  --ink: #1C1C1C;
  --tan: #E8D4AE;
  --tan-text: #806430;
  --orange: #E4572E;
  --denim: #2F4B7C;
  --muted: #3A3632;
  --muted-2: #6A6560;
  --paper: #FFFFFF;
  --topo: #AB8C52;
  --rain: #9EC3FF;
  --on-ink: #CFC8BD;
  --rule: 2px solid var(--ink);
  --gutter: 16px;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Karla', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip; /* a swiped card flies off-screen without making the page scroll sideways */
  background-color: var(--sand);
  /* A little paper grain so the sand doesn't read as a flat web color. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .11 0 0 0 0 .11 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 500 16px/1.4 var(--body);
  min-height: 100vh;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.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 {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--sand); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 8px; color: var(--sand); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top strip ---------- */
.strip {
  background: var(--ink); color: var(--sand);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.35;
  text-align: center; padding: 8px var(--gutter);
}

/* ---------- Header ---------- */
.site-header { border-bottom: var(--rule); }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 8px; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: 0.02em; line-height: 1;
  min-height: 44px;
}
.brand svg { width: 28px; height: 28px; flex: none; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.brand:hover { color: var(--ink); }
.brand:hover svg { transform: rotate(-8deg) scale(1.08); }

.mode { display: inline-flex; border: var(--rule); border-radius: 999px; background: var(--paper); padding: 0; }
.mode button {
  min-height: 44px; min-width: 44px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 700; font-size: 14px;
}
.mode button[aria-pressed="true"] { background: var(--ink); color: var(--sand); }
.m-hide { display: none; }

.crew-btn {
  order: 3; flex: 1 1 100%; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; border: var(--rule); border-radius: 999px; background: var(--paper);
  padding: 5px 6px 5px 16px; font-weight: 600; font-size: 14px; text-align: left;
}
.crew-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-text .dot { color: var(--muted-2); padding: 0 4px; }
.crew-edit {
  flex: none; background: var(--ink); color: var(--sand); border-radius: 999px; padding: 7px 14px; font-weight: 700;
  transition: background .15s;
}
.crew-btn:hover .crew-edit { background: var(--orange); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; border-bottom: var(--rule); outline: none; }
.hero-main { min-width: 0; padding: 20px 0 24px; display: flex; flex-direction: column; gap: 14px; }

.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chip {
  display: inline-block; background: var(--orange); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.04em; line-height: 1.15;
  padding: 3px 12px; transform: rotate(-2deg);
}
.chip-ink { background: var(--ink); color: var(--sand); }
.pick-count { font-size: 14px; font-weight: 600; color: var(--muted-2); }
/* Swiping the pick is a touch thing; only say so on touch screens. */
.swipe-hint { display: none; }

/* The pick as a card: lifts and tilts under the finger, stamps NEXT/BACK, flies off, the next one slides in. */
.hero-main { position: relative; will-change: transform; }
.hero-main.dragging, .hero-main.flinging, .hero-main.settling {
  background: var(--sand); border-radius: 24px; box-shadow: 0 18px 40px rgba(28, 28, 28, 0.18), 0 0 0 2px var(--ink);
  padding-left: 16px; padding-right: 16px; margin: 0 -16px; z-index: 2;
}
.hero-main.dragging { transition: none; }
.hero-main.flinging { transition: transform .2s ease-in, opacity .2s ease-in; }
.hero-main.settling { transition: transform .3s cubic-bezier(.2, 1.5, .4, 1), box-shadow .3s; }
.swipe-stamp {
  position: absolute; top: 22px; z-index: 3; opacity: 0; pointer-events: none;
  font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .06em; line-height: 1;
  padding: 6px 12px; border: 3px solid currentColor; border-radius: 10px; background: var(--paper);
}
.swipe-stamp.next { right: 16px; color: var(--orange); transform: rotate(12deg); }
.swipe-stamp.prev { left: 16px; color: var(--denim); transform: rotate(-12deg); }
/* The stack: next (or previous) card waiting underneath, sized to the pick on drag start. */
.hero { position: relative; }
.card-under {
  display: none; position: absolute; z-index: 1; box-sizing: border-box; padding: 26px 16px;
  background: var(--paper); border-radius: 24px; box-shadow: 0 0 0 2px var(--ink);
  transform: scale(.94); transform-origin: 50% 30%; overflow: hidden;
}
.hero.is-dragging .card-under { display: block; }
.under-card { display: flex; flex-direction: column; gap: 8px; }
.under-card.prev, .hero.drag-prev .under-card.next { display: none; }
.hero.drag-prev .under-card.prev { display: flex; }
.under-title { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: .92; text-transform: uppercase; overflow-wrap: break-word; }
.under-meta { font-size: 15px; font-weight: 700; color: var(--muted); }
/* "backwards", not "both": a filled end state would pin transform and freeze the next drag. */
.hero.enter-rise .hero-main { animation: card-rise .26s cubic-bezier(.2, 1.3, .4, 1) backwards; }
@keyframes card-rise { from { opacity: .4; transform: scale(.95); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero.enter-rise .hero-main { animation: none; }
}
@media (hover: none) and (pointer: coarse) {
  .swipe-hint { display: inline; }
  .hero { touch-action: pan-y; }
}
.rain-line { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--denim); }
.rain-line svg { flex: none; }
.nap-off { font-size: 14px; font-weight: 600; color: var(--muted); }
.link-btn {
  background: none; border: 0; padding: 0 2px; min-height: 44px; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; color: inherit;
}
.link-btn:hover { color: var(--orange); }

.go-label {
  font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.02em; color: var(--tan-text); line-height: 1;
}
.hero-title {
  margin: 4px 0 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.005em; overflow-wrap: break-word; hyphens: auto;
}
.hero-title a { color: var(--ink); text-decoration: none; }
.hero-title a:hover { color: var(--orange); }
.hero-title.t-xl { font-size: 52px; }
.hero-title.t-l { font-size: 44px; }
.hero-title.t-m { font-size: 36px; }
.hero-title.t-s { font-size: 30px; }
.title-sub { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--tan-text); text-transform: uppercase; letter-spacing: 0.04em; }

.when { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 16px; font-weight: 700; }
.via { font-weight: 600; color: var(--muted-2); }
.reason { margin: 0; font-size: 16px; color: var(--muted); max-width: 560px; }
/* "What it is", straight from the source's own description. */
.what { margin: 0; font-size: 17px; line-height: 1.4; color: var(--ink); max-width: 560px; }

.patches { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.patch {
  --bg: var(--ink); --fg: var(--sand); --tilt: -6deg;
  width: 76px; height: 76px; border-radius: 50%; background: var(--bg); color: var(--fg);
  display: flex; align-items: center; justify-content: center; transform: rotate(var(--tilt));
  transition: transform .35s cubic-bezier(.3,1.7,.5,1);
}
.patch span {
  width: 66px; height: 66px; border-radius: 50%; border: 2px dashed var(--fg);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 0.95; letter-spacing: 0.03em; padding: 5px;
  overflow-wrap: anywhere;
}
.patch.small-text span { font-size: 12px; }
.patch.k1 { --bg: var(--orange); --fg: var(--sand); --tilt: 4deg; }
.patch.k2 { --bg: var(--tan); --fg: var(--ink); --tilt: -3deg; }
.patch.k3 { --bg: var(--denim); --fg: var(--sand); --tilt: 5deg; }
.patch:hover { transform: rotate(calc(var(--tilt) * -2)) scale(1.06); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px;
  background: var(--ink); color: var(--sand); text-decoration: none; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: 0.04em;
  transition: background .15s, transform .15s;
}
.go:hover { background: var(--orange); color: var(--paper); transform: translateY(-2px) rotate(-1deg); }
.go svg { transition: transform .2s; }
.go:hover svg { transform: translateX(4px); }
.nah {
  min-height: 56px; padding: 0 20px; background: transparent; border: var(--rule); border-radius: 999px;
  font-weight: 700; font-size: 16px;
}
.nah:hover:not(:disabled) { background: var(--tan); }
.nah:disabled { opacity: .5; cursor: default; }
.details { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Swap animation when "Nah" lands a new pick. */
.hero.swap .hero-title, .hero.swap .what, .hero.swap .when, .hero.swap .reason { animation: drop-in .38s cubic-bezier(.2,1.4,.4,1) both; }
.hero.swap .patch { animation: stamp .42s cubic-bezier(.3,1.6,.5,1) both; }
.hero.swap .patch:nth-child(2) { animation-delay: .05s; }
.hero.swap .patch:nth-child(3) { animation-delay: .1s; }
.hero.swap .patch:nth-child(4) { animation-delay: .15s; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: rotate(var(--tilt)) scale(1.5); } to { opacity: 1; transform: rotate(var(--tilt)) scale(1); } }

/* Trail map */
.trail {
  margin: 0 calc(-1 * var(--gutter)); height: 340px; background: var(--tan); border-top: var(--rule);
  position: relative; overflow: hidden;
}
.trail svg { display: block; width: 100%; height: 100%; }
.trail .route { animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }

.loading { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 40px 0; }
.loading::after { content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 8px; background: var(--orange); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Empty, failure and "where's home" states */
.empty h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 900; font-size: 40px; line-height: .92; text-transform: uppercase; }
.empty p { margin: 0; color: var(--muted); max-width: 560px; }
.widen { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Pills (shared) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: var(--rule); border-radius: 999px; background: var(--paper); text-decoration: none;
  font-weight: 800; font-size: 15px; color: var(--ink);
}
.pill:hover { background: var(--tan); color: var(--ink); }
.pill-ink { background: var(--ink); color: var(--sand); }
.pill-ink:hover { background: var(--orange); color: var(--paper); }
.pill-small { min-height: 44px; padding: 0 14px; font-size: 14px; }

/* ---------- Backups ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: var(--rule); }
.plan { padding: 22px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: var(--rule); min-width: 0; }
.plan:last-child { border-bottom: 0; }
.plan-label { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; color: var(--tan-text); }
.plan-title {
  align-self: flex-start; font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 0.95; text-transform: uppercase;
  text-decoration: none; overflow-wrap: break-word;
  padding-block: 7px; margin-block: -7px; /* 44px tap target without moving the layout */
}
.plan-meta { font-size: 15px; font-weight: 700; }
.plan-line {
  font-size: 15px; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.plan-solo { font-size: 16px; color: var(--muted); }
.plan-dark {
  background: var(--ink); color: var(--sand); margin: 0 calc(-1 * var(--gutter)); padding: 24px var(--gutter);
  position: relative;
}
.plan-dark .plan-label { color: var(--tan); }
.plan-dark .plan-title { color: var(--sand); }
.plan-dark .plan-title:hover { color: var(--orange); }
.plan-dark .plan-line, .plan-dark .plan-solo { color: var(--on-ink); }
.plan-dark a { color: var(--sand); }
.plan-dark .rain-line { color: var(--rain); }
.plan-dark .via { color: var(--on-ink); }
.plan-dark::after {
  /* a little flag in the corner of the second day's card */
  content: ''; position: absolute; top: 18px; right: var(--gutter); width: 30px; height: 22px; background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%);
}

/* ---------- Week rows ---------- */
.week { border-bottom: var(--rule); }
.week-head { font-family: var(--display); font-weight: 900; font-size: 32px; margin: 22px 0 6px; line-height: 1; }
.week-list { list-style: none; margin: 0; padding: 0; }
.week-list li + li { border-top: 1px solid rgba(28, 28, 28, .25); }
.week-row {
  width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 12px; align-items: start;
  padding: 14px 0; min-height: 64px; border: 0; background: transparent; text-align: left;
}
.week-row:hover .wr-title { color: var(--orange); }
.week-row[aria-current="true"] { background: var(--tan); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); width: calc(100% + 2 * var(--gutter)); }
.wr-day { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; }
.wr-day small { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--muted-2); margin-top: 3px; }
.wr-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wr-title { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; text-transform: uppercase; overflow-wrap: break-word; }
.wr-meta { font-size: 14px; font-weight: 600; color: var(--muted); }
.wr-more { grid-column: 2; font-size: 13px; font-weight: 800; color: var(--tan-text); }
.wr-none .wr-title { color: var(--muted-2); }

/* ---------- Summary + full list ---------- */
.summary { padding: 28px 0 18px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.summary h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.summary p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.summary p:empty { display: none; }

.full-list { padding-bottom: 12px; }
.fl-day { margin: 0 0 22px; }
.fl-day h3 {
  margin: 0 0 4px; padding-bottom: 6px; border-bottom: var(--rule);
  font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .02em;
}
.fl-day h4 { margin: 14px 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tan-text); }
.fl-rows { list-style: none; margin: 0; padding: 0; }
.fl-row {
  display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 2px 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(28, 28, 28, .18);
}
.fl-time { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.fl-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fl-title { font-weight: 800; font-size: 16px; overflow-wrap: break-word; }
.fl-meta { font-size: 13px; color: var(--muted); }
.fl-what { font-size: 14px; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fl-tags { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--tan-text); }
.fl-nap .fl-title, .fl-nap .fl-time { color: var(--muted-2); }
.fl-empty { color: var(--muted-2); font-size: 14px; margin: 8px 0; }

/* ---------- Tune ---------- */
.tune {
  margin: 12px 0 44px; background: var(--paper); border: var(--rule); border-radius: 24px; padding: 20px 18px 22px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; position: relative;
  box-shadow: 6px 6px 0 var(--ink);
}
.tune-title {
  position: absolute; top: -15px; left: 18px; margin: 0; background: var(--ink); color: var(--sand);
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .08em; padding: 3px 10px; transform: rotate(-2deg);
}
.tune fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tune legend { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; padding: 0; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: var(--rule); background: var(--paper);
  font-weight: 700; font-size: 15px; transition: background .12s, transform .12s;
}
.opts button:hover { background: var(--tan); }
.opts button[aria-pressed="true"] { background: var(--ink); color: var(--sand); }
.opts button:active { transform: scale(.96); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); font-size: 14px; }
.footer-grid { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; padding-bottom: 32px; }
.footer-mark { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--sand); line-height: 1; }
.footer-copy p { margin: 0 0 10px; max-width: 680px; }
.footer-label { font-weight: 700; color: var(--sand); }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--orange); }
.sources { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.sources li { display: inline; }
.sources li:not(:last-child)::after { content: ' ·'; color: var(--muted-2); }
.sources a { display: inline-flex; align-items: center; min-height: 44px; }
.credit { font-size: 13px; }
.footer-copy .maker { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(245, 242, 236, 0.18); font-size: 13px; font-weight: 700; color: var(--sand); }

/* ---------- Crew dialog ---------- */
.crew-dialog {
  width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 32px);
  padding: 0; border: var(--rule); border-radius: 24px; background: var(--sand); color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.crew-dialog::backdrop { background: rgba(28, 28, 28, .55); }
.crew-dialog form { padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.dlg-x {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: var(--rule); border-radius: 50%; background: var(--paper);
}
.dlg-x:hover { background: var(--tan); }
.dlg-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dlg-set legend { font-family: var(--display); font-weight: 800; font-size: 22px; padding: 0; margin-bottom: 8px; }
.dlg-set legend span { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted-2); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; display: inline-flex; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: var(--rule); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 15px; cursor: pointer;
}
.check span::before {
  content: ''; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); flex: none;
}
.check input:checked + span { background: var(--ink); color: var(--sand); }
.check input:checked + span::before { background: var(--orange); border-color: var(--orange); }
.check input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.check-solo { align-self: flex-start; }
.nap-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.nap-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.nap-row[hidden] { display: none; }
select, .zip-row input {
  min-height: 44px; border: var(--rule); border-radius: 12px; background: var(--paper); padding: 0 12px; font-weight: 700;
}
.zip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.zip-label { font-weight: 800; }
.zip-row input { width: 7.5em; font-size: 18px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.zip-row input[aria-invalid="true"] { border-color: var(--orange); }
.field-err { margin: 0; font-weight: 700; color: #B23A17; font-size: 14px; }
.field-note { margin: 0; font-size: 14px; color: var(--muted); }
.field-note:empty { display: none; }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 4px; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .strip { font-size: 13px; padding: 9px var(--gutter); }
  .m-hide { display: inline; }
  .brand { font-size: 30px; gap: 10px; }
  .brand svg { width: 34px; height: 34px; }
  .crew-btn { order: 0; flex: 0 1 auto; margin-left: auto; padding-left: 18px; }
  .header-row { padding-top: 18px; padding-bottom: 18px; }
  .patch { width: 104px; height: 104px; }
  .patch span { width: 88px; height: 88px; font-size: 17px; padding: 6px; }
  .patch.small-text span { font-size: 14px; }
  .patches { gap: 14px; }
  .hero-title.t-xl { font-size: 76px; }
  .hero-title.t-l { font-size: 64px; }
  .hero-title.t-m { font-size: 52px; }
  .hero-title.t-s { font-size: 42px; }
  .when { font-size: 19px; gap: 6px 22px; }
  .reason { font-size: 18px; }
  .what { font-size: 20px; }
  .go-label { font-size: 32px; }
  .chip { font-size: 22px; padding: 4px 14px; }
  .pick-count { font-size: 15px; }
  .go { min-height: 58px; padding: 0 26px; font-size: 24px; }
  .nah { min-height: 58px; padding: 0 24px; font-size: 17px; }
  .summary h2 { font-size: 48px; }
  .tune { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px; gap: 24px; border-radius: 28px; }
  .tune legend { font-size: 24px; margin-bottom: 10px; }
  .crew-dialog form { padding: 26px 28px; }
  .fl-row { grid-template-columns: 110px minmax(0, 1fr); }
  .week-row { grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; }
  .wr-more { grid-column: auto; text-align: right; }
  .wr-title { font-size: 26px; }
  .footer-grid { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
}

@media (min-width: 960px) {
  .hero { flex-direction: row; }
  .hero-main { flex: 999 1 560px; padding: 44px 40px 44px 0; gap: 22px; }
  .trail { flex: 1 1 380px; margin: 0; height: auto; min-height: 520px; border-top: 0; border-left: var(--rule); }
  .hero-title.t-xl { font-size: clamp(56px, 8.4vw, 128px); line-height: 0.86; }
  .hero-title.t-l { font-size: clamp(52px, 6.6vw, 100px); }
  .hero-title.t-m { font-size: clamp(46px, 5.2vw, 78px); }
  .hero-title.t-s { font-size: clamp(40px, 4.2vw, 62px); }
  .plans { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .plan { padding: 28px 28px 28px 0; border-bottom: 0; border-right: var(--rule); }
  .plan + .plan { padding-left: 28px; }
  .plan:last-child { border-right: 0; }
  .plan-title { font-size: 38px; }
  .plan-meta { font-size: 16px; }
  .plan-dark { margin: 0; padding: 28px 24px 28px 28px; }
  .plan + .plan-dark { padding-left: 28px; }
  .plan-dark .plan-title, .plan-dark .plan-label { padding-right: 36px; }
  .tune { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
