/* Emergency notices: a red strip above everything else on the home page */
.alert-strip{background:var(--danger-soft);border-bottom:4px solid var(--danger);padding-block:18px 20px}
.alert-label{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--danger)}
.alert-label svg{flex:none;fill:var(--danger)}
.alert-label .mark{fill:none;stroke:var(--danger-soft);stroke-width:2.4;stroke-linecap:round}
.alert-list{display:grid;gap:10px;margin-top:10px}
.alert-item{background:var(--surface);border:var(--border-w) solid var(--danger);border-left-width:8px;border-radius:12px;padding:14px 18px}
.alert-item h3{font-size:1.3rem;font-weight:800;color:var(--ink)}
.alert-item p{margin-top:6px;max-width:75ch}
.alert-item .alert-meta{color:var(--muted)}
@media (min-width:900px){.alert-list:has(> :nth-child(2)){grid-template-columns:1fr 1fr}}
:root[data-text="larger"] .alert-list{grid-template-columns:1fr !important}

/* Home page: the "what do you need" helper, estate numbers and gentle motion.
   All motion is decoration only and switches off when the device asks for reduced motion. */
.helper{margin-top:28px;background:var(--surface);border:var(--border-w) solid var(--line);border-radius:16px;padding:24px}
.helper h2{font-size:1.5rem}
.helper>.muted{margin-top:4px}
.help-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.help-chip{min-height:44px;padding:8px 16px;border-radius:999px;border:2px solid var(--field);background:var(--surface);color:var(--ink);font:inherit;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.help-chip:hover{border-color:var(--accent);background:var(--accent-soft)}
.help-chip[aria-expanded="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.help-chip[aria-expanded="true"]::before{content:"✓ ";}
.help-answer{margin-top:18px;padding:18px 20px;border-radius:12px;background:var(--accent-soft);border-left:5px solid var(--accent)}
.help-answer h3{font-size:1.15rem}
.help-answer p{margin-top:8px;max-width:68ch}
.help-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px !important}


/* motion: only for people who haven't asked their device to reduce it */
@media (prefers-reduced-motion: no-preference){
  .rise{animation:rise .7s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--d,0) * 90ms)}
  @keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
  .roofline .win.lit{animation:twinkle 7s ease-in-out infinite;animation-delay:var(--wd,0s)}
  @keyframes twinkle{0%,100%{opacity:1}45%{opacity:1}55%{opacity:.25}65%{opacity:1}}
  .roofline .cone{animation:hum 5s ease-in-out infinite alternate}
  /* police light bar: the two halves take turns, slower than 3 flashes a second */
  .roofline .pol-light{animation:blues .8s steps(1) infinite}
  .roofline .pol-r{animation-delay:-.4s}
  @keyframes blues{0%{fill:#1C3FAA}50%{fill:#8EC5FF}}
  @keyframes hum{from{opacity:.14}to{opacity:.3}}
  .tile{transition:transform .2s,border-color .15s,box-shadow .2s}
  .tile:hover,.tile:focus-visible{transform:translateY(-3px)}
  .tile:hover .tile-icon,.tile:focus-visible .tile-icon{animation:nudge .5s ease}
  @keyframes nudge{30%{transform:rotate(-8deg) scale(1.08)}60%{transform:rotate(5deg)}}
  .latest{transition:transform .25s,box-shadow .25s}
  .latest:hover{transform:translateY(-3px) rotate(-.4deg)}
  .help-chip:active{transform:scale(.96)}
  .help-answer:not([hidden]){animation:rise .35s ease both}
  .motion .reveal{transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
  .motion .reveal:not(.in){opacity:0;transform:translateY(18px)}
}

/* Pause button for the moving road. Paused, everything in the picture stands still. */
.road-ctl{display:flex;justify-content:flex-end;margin:6px 0 12px}
.road-ctl .pill-btn{font-size:.875rem;min-height:44px}
.motion-off .roofline *{animation-play-state:paused!important}
