/* home.css — the /home front door (2026-10-29 redesign). Uses ONLY the tokens in
   css/tokens.css (--c-*, --r-*, --f-*, --shadow-1). Mobile first; every grid collapses
   to one or two columns at 390 px with no horizontal page scroll.
   The partials featured_festival.html / notices.html and the Lee Solomon facade styles
   (beyond-video.js) carry their own styles and are left alone. */

.hm { display: block; color: var(--c-text); font-family: var(--f-sans); min-width: 0; }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
:where(.hm a) { color: inherit; text-decoration: none; }
.hm a:focus-visible, .hm summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: var(--r-1); }
:where(.hm h1, .hm h2, .hm h3, .hm p) { margin: 0; }

/* ---------- hero: compact, the live board overlaps its bottom edge ---------- */
.hm-hero {
  position: relative; overflow: hidden; border-radius: var(--r-3);
  padding: 34px 20px 78px;
  background: var(--c-bg) url('../img/home-hero-bg.jpg') center 40% / cover no-repeat;
  box-shadow: var(--shadow-1);
}
.hm-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,10,8,.50), rgba(11,10,8,.90) 80%); }
.hm-hero > * { position: relative; z-index: 1; }
.hm-season { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--c-sky); }
.hm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-bad); flex: none; animation: hm-pulse 1.8s ease-in-out infinite; }
@keyframes hm-pulse { 50% { opacity: .3; } }
.hm-h1 { margin: 12px 0 10px; font-size: clamp(2.35rem, 9vw, 3.75rem); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.hm-sub { max-width: 34rem; font-size: 15px; line-height: 1.55; color: var(--c-text-2); }
.hm-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 700; transition: background .15s, border-color .15s; }
.hm-btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.hm-btn--primary:hover { background: var(--c-accent-2); }
.hm-btn--ghost { border: 1px solid var(--c-line-2); color: var(--c-text); background: rgba(11,10,8,.35); }
.hm-btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent-2); }
/* pick-your-coast buttons in the hero: 4 across on phones (2 rows), 8 across on desktop */
.hm-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.hm-q { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 64px;
  padding: 8px 4px; text-align: center; border: 1px solid var(--c-line-2); border-radius: var(--r-2);
  background: rgba(11,10,8,.62); transition: border-color .15s, background .15s; }
.hm-q:hover { border-color: var(--c-accent); background: rgba(11,10,8,.8); }
.hm-q-g { font-size: 22px; line-height: 1.1; }
.hm-q-n { font-size: 13px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.hm-q-d { display: none; font-size: 11.5px; line-height: 1.35; color: var(--c-text-2); }
.hm-hint { margin-top: 14px; font-size: 13px; color: var(--c-text-3); }

/* ---------- right now: the signature board ---------- */
.hm-now { position: relative; z-index: 2; margin: -52px 10px 0; }
.hm-now-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hm-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 104px; padding: 12px 13px 12px 14px;
  background: var(--c-surface); border: 1px solid var(--c-line-2); border-left: 3px solid var(--c-line-2);
  border-radius: var(--r-2); box-shadow: var(--shadow-1); transition: background .15s, border-color .15s; }
.hm-card:hover { background: var(--c-surface-2); border-color: var(--c-accent); }
.hm-card-k { font-size: 12.5px; font-weight: 600; color: var(--c-text-2); }
.hm-card-v { font-size: 1.65rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; }
.hm-card-s { font-size: 12.5px; line-height: 1.35; color: var(--c-text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-card[data-tone="good"] { border-left-color: var(--c-good); }
.hm-card[data-tone="good"] .hm-card-v { color: var(--c-good); }
.hm-card[data-tone="warn"] { border-left-color: var(--c-warn); }
.hm-card[data-tone="warn"] .hm-card-v { color: var(--c-warn); }
.hm-card[data-tone="bad"] { border-left-color: var(--c-bad); }
.hm-card[data-tone="bad"] .hm-card-v { color: var(--c-bad); }
.hm-card[data-tone="water"] { border-left-color: var(--c-water); }
.hm-card[data-tone="fire"] { border-left-color: var(--c-fire); }
.hm-card[data-tone="fire"] .hm-card-v { color: var(--c-fire); }
.hm-card[data-tone="none"] .hm-card-v { color: var(--c-text-3); }
.hm-card[data-state="loading"] .hm-card-v, .hm-card[data-state="loading"] .hm-card-s {
  color: transparent; border-radius: var(--r-1); width: 70%;
  background: linear-gradient(90deg, var(--c-surface-2), var(--c-surface-3), var(--c-surface-2)) 0 0 / 200% 100%;
  animation: hm-shimmer 1.4s linear infinite; }
.hm-card[data-state="loading"] .hm-card-s { width: 90%; -webkit-line-clamp: 1; }
@keyframes hm-shimmer { to { background-position: -200% 0; } }

/* ---------- sections ---------- */
.hm-sec { margin-top: 44px; }
.hm-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hm-h2 { font-size: 1.3rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.hm-sec-note { margin: -8px 0 14px; font-size: 14px; color: var(--c-text-2); max-width: 36rem; }
.hm-link { font-size: 14px; font-weight: 600; color: var(--c-accent); white-space: nowrap; }
.hm-link:hover { color: var(--c-accent-2); text-decoration: underline; text-underline-offset: 3px; }
.hm-board-wrap, .hm-featured { margin-top: 28px; }
.hm-board-wrap .mam-notices { margin-bottom: 0; }

/* ---------- what's on ---------- */
.hm-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hm-day { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: 12px 8px 8px; min-width: 0; }
.hm-day-h { display: flex; align-items: baseline; gap: 8px; padding: 0 8px 6px; font-size: 15px; font-weight: 800; }
.hm-day-h span { font-size: 12.5px; font-weight: 600; color: var(--c-text-3); }
.hm-ev { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; align-items: baseline;
  padding: 8px; border-radius: var(--r-1); min-height: 44px; transition: background .12s; }
.hm-ev:hover { background: var(--c-surface-2); }
.hm-ev-g { grid-row: 1 / 4; font-size: 16px; line-height: 1.3; }
.hm-ev-t { font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hm-ev--star .hm-ev-t { color: var(--c-accent-2); }
.hm-ev-m { font-size: 12.5px; color: var(--c-text-2); line-height: 1.35; }
.hm-ev-m time { color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.hm-badge { display: inline-block; margin-left: 6px; padding: 0 7px; font-size: 11px; font-weight: 700; line-height: 1.5;
  color: var(--c-accent); border: 1px solid var(--c-accent-soft); background: var(--c-accent-soft); border-radius: var(--r-pill); vertical-align: 1px; }
.hm-day-more { display: block; padding: 6px 8px 4px; font-size: 13px; font-weight: 600; color: var(--c-accent); }
.hm-ongoing { margin-top: 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); }
.hm-ongoing summary { cursor: pointer; list-style: none; padding: 12px 14px; min-height: 44px; font-size: 14px; color: var(--c-text-2); }
.hm-ongoing summary::-webkit-details-marker { display: none; }
.hm-ongoing summary b { color: var(--c-text); }
.hm-ongoing summary::after { content: '+'; float: right; color: var(--c-accent); font-weight: 800; }
.hm-ongoing[open] summary::after { content: '\2212'; }
.hm-ongoing ul { list-style: none; margin: 0; padding: 0 14px 10px; }
.hm-ongoing li a { display: block; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--c-line); }
.hm-ongoing li a:hover { color: var(--c-accent-2); }
.hm-ongoing li small { color: var(--c-text-3); font-size: 12.5px; }
.hm-empty { padding: 16px; background: var(--c-surface); border: 1px dashed var(--c-line-2); border-radius: var(--r-2); font-size: 14px; color: var(--c-text-2); }
.hm-empty a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.hm-soon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hm-soon a { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; padding: 10px 14px; min-height: 44px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); }
.hm-soon a:hover { border-color: var(--c-accent); }
.hm-soon b { font-size: 14px; font-weight: 700; }
.hm-soon span { font-size: 12.5px; color: var(--c-text-2); }

/* ---------- find your coast ---------- */
.hm-coasts { align-items: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-ps { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); transition: border-color .15s; }
.hm-ps:hover { border-color: var(--c-accent); }
.hm-ps:first-child { grid-column: 1 / -1; }
.hm-ps-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
/* The share cards have title text baked into their left half; crop to the map on the right. */
.hm-ps-pic { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 1; background: var(--c-surface-3); }
.hm-ps-img { position: absolute; right: 0; top: -65%; height: 230%; width: auto; max-width: none; }
.hm-ps-body { padding: 10px 12px 4px; }
.hm-ps-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.hm-ps-desc { margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--c-text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-ps-map { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--c-accent); }
.hm-ps-map:hover { color: var(--c-accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tile grids (live & conditions, plan & share, cars) ---------- */
.hm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-tile { display: flex; flex-direction: column; min-width: 0; padding: 14px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-2); transition: background .15s, border-color .15s; }
.hm-tile:hover { background: var(--c-surface-2); border-color: var(--c-accent); }
.hm-tile-main { display: block; flex: 1; }
.hm-tile-g { display: block; font-size: 20px; line-height: 1; margin-bottom: 8px; }
.hm-tile-n { display: block; font-size: 15px; font-weight: 800; }
.hm-tile-d { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--c-text-2); }
.hm-tile-alt { display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--c-accent); }
.hm-tile-alt:hover { color: var(--c-accent-2); text-decoration: underline; text-underline-offset: 3px; }
.hm-tile--lead { background: var(--c-accent-soft); border-color: var(--c-accent-soft); }

/* Lee Solomon / Beyond Weather: YouTube facade only (beyond-video.js), links, no "partner" copy */
.hm-lee { margin-top: 10px; display: grid; gap: 14px; padding: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); min-width: 0; }
.hm-lee h3 { font-size: 15px; font-weight: 800; }
.hm-lee p { font-size: 12.5px; line-height: 1.5; color: var(--c-text-2); margin-top: 4px; }
.hm-lee .wx-vtitle { font-size: 12.5px; color: var(--c-text-2); margin: 0; }
.hm-lee-follow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hm-lee-follow a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; border: 1px solid var(--c-line-2); }
.hm-lee-follow a:hover { border-color: var(--c-accent); color: var(--c-accent-2); }
.hm-lee-follow .hm-yt { background: var(--c-bad); border-color: var(--c-bad); color: #fff; }

/* ---------- car week band (in season, cars host) ---------- */
.hm-cw { margin-top: 28px; padding: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); }
.hm-cw-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--c-line); font-size: 14px; }
.hm-cw-row:first-child { border-top: 0; }
.hm-cw-row span { flex: none; min-width: 7.5em; color: var(--c-text-3); font-size: 12.5px; font-weight: 600; }
.hm-cw-row em { font-style: normal; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.hm-cw-row b { color: var(--c-accent-2); }
.hm-cw-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 10px; border-top: 1px solid var(--c-line); }

/* ---------- arts host: shrunk cars corner ---------- */
.hm-cars-mini { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 13.5px; color: var(--c-text-2); }
.hm-cars-mini b { color: var(--c-text); }
.hm-cars-mini a { color: var(--c-accent); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }

.hm-fine { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 13px; line-height: 1.9; color: var(--c-text-3); }
.hm-fine a { color: var(--c-text-2); text-decoration: underline; text-underline-offset: 3px; margin-right: 14px; white-space: nowrap; }
.hm-fine a:hover { color: var(--c-accent-2); }
.hm-fine p { margin-top: 6px; line-height: 1.5; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .hm-hero { padding: 52px 36px 96px; }
  .hm-now { margin: -64px 18px 0; }
  .hm-now-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hm-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-lee { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 860px) {
  .hm-quick { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .hm-q { align-items: flex-start; text-align: left; padding: 10px 12px; min-height: 92px; justify-content: flex-start; }
  .hm-q-n { font-size: 14px; }
  .hm-q-d { display: block; }
  .hm-coasts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-ps:first-child { grid-column: span 2; }
  .hm-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-live-dot, .hm-card[data-state="loading"] .hm-card-v, .hm-card[data-state="loading"] .hm-card-s { animation: none; }
  .hm-btn, .hm-q, .hm-card, .hm-tile, .hm-ps, .hm-ev { transition: none; }
}
