/* v5 craft layer — site accents via CSS vars already on page */
.v5-fresh{font-size:16px;color:var(--muted,#5c5c56);margin:8px 0 0}
.v5-fresh time{font-variant-numeric:tabular-nums}
.v5-section{padding:48px 0;position:relative}
.v5-section .wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.v5-kicker{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.v5-h2{font-size:clamp(1.35rem,2.4vw,1.75rem);margin:0 0 16px;letter-spacing:-.02em}
.v5-heat{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:12px}
.v5-heat button{appearance:none;border:1px solid var(--border,rgba(0,0,0,.1));background:var(--surface,#fff);border-radius:var(--card-radius,12px);padding:16px;text-align:left;cursor:pointer;min-height:88px;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;font:inherit;color:inherit}
.v5-heat button:hover,.v5-heat button:focus-visible{transform:translateY(-2px);outline:2px solid var(--accent,var(--primary));outline-offset:2px}
.v5-heat .v5-heat-count{display:block;font-size:1.75rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--primary)}
.v5-heat .v5-heat-label{display:block;font-size:16px;margin-top:4px}
.v5-heat .v5-heat-tip{display:none;font-size:14px;color:var(--muted);margin-top:6px}
.v5-heat button[aria-pressed=true] .v5-heat-tip,.v5-heat button:hover .v5-heat-tip{display:block}
.v5-heat-bar{height:6px;border-radius:3px;background:color-mix(in srgb,var(--primary) 18%,transparent);margin-top:10px;overflow:hidden}
.v5-heat-bar>i{display:block;height:100%;background:var(--primary);width:0;transition:width .8s ease}
.v5-explorer{margin-top:12px}
.v5-exp-controls{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.v5-exp-controls label{font-size:16px;display:flex;flex-direction:column;gap:4px}
.v5-exp-controls select,.v5-exp-controls input{font:inherit;font-size:16px;min-height:48px;padding:8px 12px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:inherit}
.v5-exp-list{display:grid;gap:10px;min-height:120px}
.v5-exp-card{border:1px solid var(--border);border-radius:var(--card-radius,12px);padding:14px 16px;background:var(--surface);transition:background .2s ease,transform .2s ease;opacity:1}
.v5-exp-card.is-hide{opacity:0;transform:scale(.98);pointer-events:none;position:absolute;width:1px;height:1px;overflow:hidden}
.v5-exp-card h3{margin:0 0 6px;font-size:1.05rem}
.v5-exp-meta{font-size:16px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px 14px}
.v5-exp-meta a{color:var(--primary);font-weight:600}
.v5-skel{background:linear-gradient(90deg,rgba(0,0,0,.04),rgba(0,0,0,.08),rgba(0,0,0,.04));background-size:200% 100%;animation:v5shimmer 1.2s ease infinite;border-radius:8px;height:72px}
@keyframes v5shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.v5-skel{animation:none}}
.v5-story{position:relative;margin:24px 0}
.v5-story-sticky{position:sticky;top:72px;height:70vh;min-height:360px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:var(--card-radius,12px);background:var(--surface);overflow:hidden}
.v5-story-sticky svg{width:min(520px,90%);height:auto}
.v5-story-sticky path.v5-draw{fill:none;stroke:var(--primary);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.v5-story-steps{display:grid;gap:40vh;padding:20vh 0}
.v5-story-steps article{max-width:420px;padding:16px;border-left:3px solid var(--primary);background:color-mix(in srgb,var(--surface) 92%,var(--primary));border-radius:0 8px 8px 0}
.v5-story-steps h3{margin:0 0 6px;font-size:1.15rem}
.v5-story-steps p{margin:0;font-size:16px;color:var(--muted)}
.v5-mag{display:inline-block;transition:transform .15s ease}
.v5-card-aware{transition:background .2s ease,box-shadow .2s ease}
.v5-sig{margin-top:18px}
.v5-floor{perspective:900px;max-width:360px}
.v5-floor-inner{transform-style:preserve-3d;transition:transform .15s ease;border:1px solid var(--border);border-radius:12px;padding:18px;background:var(--surface)}
.v5-floor svg{width:100%;height:auto;display:block}
.v5-ticker{overflow:hidden;border:1px solid var(--border);border-radius:var(--card-radius,12px);background:var(--surface);height:220px;position:relative}
.v5-ticker-track{display:flex;flex-direction:column;gap:8px;padding:12px;animation:v5tick 28s linear infinite}
@keyframes v5tick{0%{transform:translateY(0)}100%{transform:translateY(-50%)}}
@media (prefers-reduced-motion:reduce){.v5-ticker-track{animation:none}}
.v5-ticker-row{font-size:16px;padding:10px 12px;border-radius:8px;background:color-mix(in srgb,var(--primary) 8%,transparent);display:grid;grid-template-columns:1fr auto;gap:8px}
.v5-ledger{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:16px;border:1px solid var(--border);border-radius:0;background:var(--surface);padding:14px;min-height:200px}
.v5-ledger .v5-led-line{opacity:0;transform:translateY(4px);transition:opacity .35s ease,transform .35s ease;padding:4px 0;border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent)}
.v5-ledger .v5-led-line.on{opacity:1;transform:none}
.v5-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;max-width:420px}
.v5-cal span{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:13px;border-radius:8px;background:color-mix(in srgb,var(--primary) 6%,transparent)}
.v5-cal span.due{background:color-mix(in srgb,var(--primary) 28%,transparent);font-weight:700;animation:v5fill .5s ease both}
@keyframes v5fill{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.v5-cal span.due{animation:none}}
.v5-price-toggle{display:inline-flex;gap:0;border:1px solid var(--border);border-radius:999px;padding:4px;margin:10px 0}
.v5-price-toggle button{appearance:none;border:0;background:transparent;font:inherit;font-size:14px;min-height:40px;padding:0 14px;border-radius:999px;cursor:pointer;color:var(--muted)}
.v5-price-toggle button[aria-pressed=true]{background:var(--primary);color:#fff}
.v5-gap-note{font-size:16px;color:var(--muted);margin-top:8px}

.v5-band{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:700;letter-spacing:.02em;padding:2px 8px;border-radius:999px;vertical-align:middle}
.v5-band-High{background:color-mix(in srgb,var(--primary) 22%,transparent);color:var(--primary)}
.v5-band-Medium{background:color-mix(in srgb,#b78100 18%,transparent);color:#8a6200}
.v5-band-Low{background:rgba(0,0,0,.08);color:var(--muted)}
.v5-why{font-size:16px;margin:8px 0 0;color:inherit;line-height:1.45}
.v5-exp-empty{font-size:15px;color:var(--muted);padding:18px 0}
.v5-logo-mark{height:28px;width:auto;display:block}

/* Cogni:wave-inspired airy spacing — structure only */
.v5-section{padding:64px 0}
.v5-section .wrap{max-width:1120px}
.v5-heat button,.v5-exp-card,.v5-ticker,.v5-ledger,.v5-floor-inner,.v5-story-sticky{
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);
  border-color:rgba(0,0,0,.08);
}
.v5-heat{gap:14px}
.v5-exp-controls{gap:12px;margin-bottom:18px}
.v5-exp-list{gap:12px}
.brand img.v5-logo-mark,.v5-logo-mark{height:28px;width:auto}

.v5-wordmark{font-weight:700;letter-spacing:-.02em;font-size:1.05rem}
.v5-sul-heat-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);gap:20px;align-items:start;margin-top:14px}
@media (max-width:800px){.v5-sul-heat-grid{grid-template-columns:1fr}}
.v5-sul-aside{position:sticky;top:88px}
.v5-sul-steps .v5-story-sticky{display:none}
.v5-sul-steps .v5-story-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:12px 0;max-width:none}
.v5-sul-steps .v5-story-steps article{max-width:none;border-left:3px solid var(--primary);padding:14px 16px;background:var(--surface);border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04)}
@media (max-width:800px){.v5-sul-steps .v5-story-steps{grid-template-columns:1fr}}
/* Pest: ticker-led */
.v5-pest-ticker-wrap{margin-top:12px}
.v5-pest-chips .v5-heat{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
/* NCA: ledger-led */
.v5-nca-ledger-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
@media (max-width:900px){.v5-nca-ledger-hero{grid-template-columns:1fr}}
/* LT: calendar-led */
.v5-lt-cal-hero{max-width:520px;margin:18px auto 0;text-align:center}
.v5-lt-cal-hero .v5-cal{margin:0 auto}

/* SUL choropleth heat map (not a 3-col card grid) */
.v5-choropleth{margin-top:14px}
.v5-choro-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(200px,.7fr);gap:20px;align-items:start}
@media (max-width:900px){.v5-choro-layout{grid-template-columns:1fr}}
.v5-choro-map{border:1px solid rgba(0,0,0,.08);border-radius:16px;background:var(--surface,#fff);padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);overflow:hidden;min-width:0}
.v5-choro-map svg{width:100%;height:auto;display:block;max-height:min(70vh,560px)}
.v5-ward-path{cursor:pointer;transition:fill .2s ease,stroke-width .15s ease}
.v5-ward-path:hover,.v5-ward-path:focus-visible,.v5-ward-path.is-active,.v5-ward-path[aria-pressed=true]{stroke:#1B5E4A;stroke-width:2.4;stroke-opacity:1;outline:none}
.v5-ward-label{pointer-events:none;font-size:17px;font-weight:700;fill:#0B0B0B;font-family:inherit;paint-order:stroke fill;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.v5-ward-label-n{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
.v5-choro-side-h{margin:0 0 8px;font-size:16px;font-weight:700;letter-spacing:.02em}
.v5-ward-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:520px;overflow:auto}
.v5-ward-legend-btn{appearance:none;width:100%;display:grid;grid-template-columns:14px 1fr auto;align-items:center;gap:10px;border:1px solid rgba(0,0,0,.08);background:var(--surface,#fff);border-radius:10px;padding:10px 12px;min-height:48px;font:inherit;font-size:16px;cursor:pointer;text-align:left;color:inherit}
.v5-ward-legend-btn:hover,.v5-ward-legend-btn:focus-visible,.v5-ward-legend-btn[aria-pressed=true]{outline:2px solid var(--primary,#1B5E4A);outline-offset:1px}
.v5-ward-swatch{width:14px;height:14px;border-radius:4px;border:1px solid rgba(0,0,0,.12)}
.v5-ward-legend-count{font-weight:700;font-variant-numeric:tabular-nums;color:var(--primary,#1B5E4A);max-width:11ch;text-align:right;line-height:1.2}
.v5-ward-legend-count.is-zero{font-weight:600;font-size:14px;color:var(--muted,#5c5c56)}
.v5-ward-scale{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:13px;color:var(--muted,#5c5c56)}
.v5-ward-scale-bar{flex:1;height:10px;border-radius:999px;border:1px solid rgba(0,0,0,.1);background:linear-gradient(90deg,rgba(27,94,74,.12),rgba(27,94,74,.9))}
.v5-ward-tap-note{padding-bottom:88px}
.v5-sul-heat{padding-bottom:24px}
.v5-ward-map-h{margin:6px 0 6px;font-size:clamp(1.15rem,2.4vw,1.45rem);line-height:1.25;letter-spacing:-.02em}
.v5-ward-map-lede{margin:0 0 10px;font-size:15px;color:var(--muted,#5c5c56);line-height:1.45;max-width:42ch}
@media (max-width:900px){
  .v5-choro-side{padding-right:56px;padding-bottom:8px}
  .v5-ward-legend-btn{padding-right:10px}
  .v5-credit{padding-right:56px;padding-bottom:72px}
}
@media (min-width:901px){
  .v5-ward-tap-note{padding-bottom:16px}
}
.v5-credit{font-size:14px;color:var(--muted,#5c5c56);margin-top:12px;line-height:1.45}
.v5-credit a{color:var(--primary);font-weight:600}

/* Intensity tiles fallback / pest-nca (contain overflow) */
.v5-heat-tiles,.v5-ward-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:12px}
.v5-heat-tile,.v5-ward-tile{appearance:none;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:14px 16px;min-height:48px;text-align:left;cursor:pointer;font:inherit;color:inherit;background:color-mix(in srgb,var(--primary,#1B5E4A) calc(var(--v5-i,0)*55%), var(--surface,#fff));box-shadow:0 1px 2px rgba(0,0,0,.04);overflow:hidden;display:flex;flex-direction:column;gap:4px;box-sizing:border-box}
.v5-heat-tile .v5-heat-count,.v5-ward-tile .v5-heat-count{font-size:1.5rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--primary,#1B5E4A);line-height:1.1}
.v5-heat-tile .v5-heat-label,.v5-ward-tile .v5-heat-label{font-size:16px}
.v5-heat-tile .v5-heat-tip{font-size:14px;color:var(--muted);display:none}
.v5-heat-tile:hover .v5-heat-tip,.v5-heat-tile[aria-pressed=true] .v5-heat-tip{display:block}
.v5-heat-tile:hover,.v5-ward-tile:hover,.v5-heat-tile:focus-visible,.v5-ward-tile:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
/* Contain legacy heat bars if any remain */
.v5-heat{overflow:hidden}
.v5-heat button{overflow:hidden;box-sizing:border-box;min-width:0}
.v5-heat-bar{max-width:100%;box-sizing:border-box}

/* === Cogni:wave restyle (flat colour only; no blobs/glows) === */
.v5-section{padding:clamp(72px,10vw,140px) 0}
.hero .wrap.hero-grid,.hero-grid{align-items:start!important}
.hero-grid h1,.hero h1{
  font-size:clamp(2.1rem,4vw + 0.5rem,3.5rem)!important; /* fits longest word in ~45% col */
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  max-width:none!important;
  width:100%;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:manual;
  text-wrap:balance;
  margin:0 0 18px!important;
}
@media (min-width:900px){
  .hero-grid h1,.hero h1{font-size:clamp(2.35rem,3.1vw + 0.6rem,3.65rem)!important}
}
.v5-wave{
  position:absolute;left:0;right:0;pointer-events:none;z-index:0;
  height:120px;overflow:hidden;opacity:.55;
}
.v5-wave svg{width:200%;height:100%;display:block;animation:v5wave 28s linear infinite}
@keyframes v5wave{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.v5-wave svg{animation:none}}
.hero,.v5-section{position:relative}
.hero > .wrap,.v5-section > .wrap{position:relative;z-index:1}
.v5-reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.v5-reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .v5-reveal{opacity:1;transform:none;transition:none}
}

/* Hero product proof: real 45/55 grid — never crush text for a 520px min */
.hero .wrap.hero-grid,
.wrap.hero-grid{
  max-width: min(1180px, 100%) !important;
  width: 100%;
  box-sizing: border-box;
}
.hero-grid{
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) !important;
  gap: clamp(20px, 3vw, 40px) !important;
  align-items: start !important;
  min-width: 0;
}
@media (min-width: 900px){
  .hero-grid{
    /* Text ≥45%, feature ≥55%; both minmax(0,…) so fr tracks share without overlap */
    grid-template-columns: minmax(0, 0.47fr) minmax(0, 0.53fr) !important;
  }
  .hero-grid > .reveal,
  .hero-grid > :first-child{
    min-width: 0;
    max-width: 100%;
  }
  .hero-grid > .hero-visual{
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  /* At 1280+ content ~1140: feature col ≈ 627px (≥520). Below that, still 55% of wrap. */
}
.v5-hero-proof, .v5-hero-panel{
  position: relative;
  min-width: 0;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  min-height: 420px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--surface,#fff);
}
.v5-hero-panel .v5-panel-bg,
.v5-hero-panel > .live-photo{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  z-index: 0;
}
.v5-hero-panel .live-photo img.poster,
.v5-hero-panel .live-photo video,
.v5-hero-panel .v5-panel-bg img.poster,
.v5-hero-panel .v5-panel-bg video{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  min-height: 100% !important;
  max-height: none !important;
  display: block;
}
.v5-panel-fg{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  min-height: 420px;
  box-sizing: border-box;
}
.v5-panel-fg .v5-kicker{ margin: 0; font-size: 14px !important; }
.v5-panel-fg .v5-fresh{ font-size: 14px !important; margin: 0; }

/* Pest: horizontal ticker strip + spotlight panel */
.v5-pest-ticker-strip{
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: color-mix(in srgb, var(--primary,#0B3D3A) 6%, #fff);
  overflow: hidden;
}
.v5-pest-ticker-strip .wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
}
.v5-ticker-h{
  overflow: hidden;
  height: auto;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.v5-ticker-h .v5-ticker-track{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 28px;
  padding: 0;
  width: max-content;
  animation: v5tick-h 40s linear infinite;
}
@keyframes v5tick-h{ from{transform:translateX(0)} to{transform:translateX(-50%)} }
@media (prefers-reduced-motion:reduce){
  .v5-ticker-h .v5-ticker-track{ animation: none; }
}
.v5-ticker-h .v5-ticker-row{
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px !important;
  line-height: 1.35;
  padding: 6px 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  gap: 14px;
  align-items: baseline;
}
.v5-ticker-h .v5-ticker-row span{ font-size: 14px !important; }
.hero-pest .v5-pest-panel .v5-panel-fg{
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 35%, rgba(255,255,255,.88) 78%);
  /* Jayden: no glow blobs — flat soft veil only via solid mix, not radial glow */
  background: color-mix(in srgb, #fff 0%, transparent);
}
.hero-pest .v5-pest-panel .v5-panel-caption{
  align-self: flex-start;
  margin-top: auto;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 36ch;
  font-size: 14px !important;
}
/* flat veil without gradient blob: use solid translucent panel caption only */
.hero-pest .v5-pest-panel .v5-panel-fg{ background: transparent; justify-content: flex-end; }

/* NCA: ledger over parallax clip + horizontal heat bars */
.hero-nca .v5-nca-panel .v5-panel-fg{
  background: rgba(250,248,244,.92);
  backdrop-filter: none;
}
.v5-ledger{
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px !important;
  line-height: 1.45;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  min-height: calc(4 * 1.45em + 24px);
  max-height: none;
  overflow: hidden;
}
.v5-ledger .v5-led-line{
  display: grid;
  grid-template-columns: 7.5em minmax(0,1fr) 5.5em;
  gap: 10px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border,#ddd) 70%, transparent);
  white-space: nowrap;
  font-size: 14px !important;
}
.v5-ledger .v5-led-line.on{ opacity: 1; transform: none; }
.v5-ledger .v5-led-line > span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px !important;
}
.v5-ledger .v5-led-date{ color: var(--muted,#5c5c56); }
.v5-ledger .v5-led-region{ text-align: right; color: var(--muted,#5c5c56); }
.v5-heat-bars{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.v5-heat-bar-row{
  display: grid;
  grid-template-columns: 5.5em minmax(0,1fr) 3.2em;
  gap: 10px;
  align-items: center;
  font-size: 14px !important;
  min-height: 28px;
}
.v5-heat-bar-row .v5-heat-label{ font-weight: 600; }
.v5-heat-bar-row .v5-heat-count{ text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.v5-heat-bar-track{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  overflow: hidden;
}
.v5-heat-bar-fill{
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary,#5c5346);
}
.hero-nca .float-chip{
  max-width: 11rem;
  font-size: 14px !important;
  line-height: 1.25;
  white-space: normal;
}
.hero-nca .float-chip b{
  display: block;
  font-size: 14px !important;
  white-space: nowrap;
}

/* LT: large calendar panel, clip tilt behind */
.hero-lt .v5-lt-panel .v5-panel-bg{
  transform: rotate(-2.5deg) scale(1.08);
  transform-origin: 60% 40%;
  filter: none;
  opacity: .42;
}
.hero-lt .v5-lt-panel .v5-panel-fg{
  background: rgba(255,255,255,.94);
}
.v5-cal{
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  gap: 8px;
  max-width: none;
  width: 100%;
}
.v5-cal span{
  aspect-ratio: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  position: relative;
}
.v5-cal span.due{
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  font-weight: 700;
}
.v5-cal span.due::after{
  content: "";
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #1B5E4A);
}
.v5-gap-note, .v5-panel-fg .v5-gap-note{
  font-size: 14px !important;
  color: var(--muted,#5c5c56);
  margin: 4px 0 0;
  line-height: 1.4;
}

@media (max-width: 899px){
  .hero-grid{
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .hero-grid > .reveal{ order: 0; }
  .hero-grid > .hero-visual{ order: 1; width: 100%; }
  .v5-hero-panel, .v5-hero-proof{ min-height: 360px; width: 100%; }
  .v5-panel-fg{ min-height: 360px; }
  .v5-cal{ grid-template-columns: repeat(7, minmax(40px, 1fr)); gap: 6px; }
  .v5-cal span{ min-width: 40px; min-height: 40px; }
  .hero-lt .v5-lt-panel .v5-panel-bg{ transform: none; opacity: .35; }
}

/* SUL hero heat */
.v5-hero-heat{align-self:start}
.v5-hero-heat .v5-kicker{margin-top:0}
.v5-fresh-caption,.v5-hero-heat .v5-fresh{
  font-size:14px!important;color:var(--muted,#5c5c56);margin:10px 0 0;line-height:1.4;max-width:52ch
}
.v5-hero-heat > .v5-fresh{display:none} /* moved under map via JS/caption slot */
.v5-choro-caption{font-size:15px;color:var(--muted,#5c5c56);margin:10px 0 0;line-height:1.4}

/* Kill shimmer gradient (flat pulse instead) */
.v5-skel{background:rgba(0,0,0,.06);animation:v5pulse 1.2s ease infinite;background-image:none}
@keyframes v5pulse{0%,100%{opacity:1}50%{opacity:.55}}
.hero-grid > .reveal, .hero-grid > .hero-visual { margin-top: 0 !important; padding-top: 0 !important; align-self: start !important; }
.hero .wrap.hero-grid { align-items: start !important; }
.v5-choro-caption { font-size: 15px !important; max-width: 42ch; }

.hero .reveal, .hero-visual, .hero .v5-reveal { opacity:1 !important; transform:none !important; }


/* Reserve choropleth space so async wards_geo does not shift hero (CLS) */
.v5-hero-heat .v5-choro,
.v5-sul-heat .v5-choro,
.v5-choro-svg-wrap{min-height:220px}
.v5-choro-layout{min-height:240px}
.v5-choro svg{width:100%;height:auto;aspect-ratio:4/3;display:block}

.v5-choro-skel{width:100%;aspect-ratio:640/520;min-height:220px;border-radius:12px;background:color-mix(in srgb,var(--primary,#1B5E4A) 8%,transparent);border:1px solid rgba(0,0,0,.06)}

#v5-heat.v5-choro-hero,
.v5-choro-hero{
  min-height: 520px;
}
@media (max-width:700px){
  #v5-heat.v5-choro-hero,
  .v5-choro-hero{ min-height: 640px; }
}
.v5-credit{min-height:4.5em; margin-top:12px;}

/* Defeat page-local .live-photo aspect-ratio inside hero panels */
.v5-hero-panel .live-photo,
.v5-panel-bg .live-photo{
  aspect-ratio:auto!important;
  height:100%!important;
  min-height:100%!important;
}
.v5-hero-panel .live-photo .spot,
.v5-hero-panel .live-photo .clinical-stamp,
.v5-hero-panel .live-photo .float-chip,
.v5-hero-panel .live-photo .hotspot{z-index:1}
.v5-pest-ticker-strip .v5-tick-name,
.v5-pest-ticker-strip .v5-tick-dist,
.v5-pest-ticker-strip .v5-tick-date{font-size:14px!important}

.v5-gap-note,.v5-panel-caption,.v5-fresh{font-size:14px!important}

.v5-band{font-size:14px!important;line-height:1.3}


/* Contain tilted/scaled panel media so it never paints over the H1 column */
.v5-hero-panel,
.v5-hero-proof,
.v5-lt-panel,
.hero-visual.v5-hero-panel,
.hero-visual.v5-lt-panel{
  overflow: hidden !important;
  isolation: isolate;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.hero-lt .v5-lt-panel .v5-panel-bg{
  /* keep parallax look but stay inside overflow:hidden panel */
  will-change: transform;
}

/* Break hero out of a nested page .wrap (SUL) so 45/55 can use ~1180px */
@media (min-width: 900px){
  .hero[data-hero="v5"]{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
  }
  .hero[data-hero="v5"] > .wrap.hero-grid{
    max-width: 1180px !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}
