/* Toronto area map and area pages (areamap.js). Same identity as style.css: cobalt, signal yellow, rules. */
.am { display: grid; gap: 14px; }
.am-find { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; max-width: 640px; }
.am-field { display: grid; gap: 6px; font: 800 14px/1.2 var(--text); min-width: 0; }
.am-field input, .am-field select { width: 100%; padding: 13px 12px; font: 700 17px/1.2 var(--text); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 8px; }
.am-field input:focus, .am-field select:focus { outline: none; border-color: var(--cobalt); }
.am-say { min-height: 1.4em; margin: 0; color: #b3261e; font-weight: 700; }
.am-note { margin: 0; color: var(--muted); font-size: 15px; }
.am-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.am-mapbox { position: relative; display: grid; gap: 10px; min-width: 0; }
.am [hidden] { display: none !important; }
.am-body:has(.am-mapbox[hidden]) { grid-template-columns: minmax(0, 640px); }
.am-svg { display: block; width: 100%; height: auto; background: var(--tint); border: 2px solid var(--ink); border-radius: 10px; touch-action: manipulation; }
.am-reset { position: absolute; top: 10px; left: 10px; padding: 9px 12px; font: 800 14px/1 var(--text); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; }
.am-reset:hover { background: var(--signal); }
.am-fsa { fill: var(--white); stroke: #8b93a5; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill .15s; }
.am-fsa:hover { fill: #e3e8f7; }
.am-fsa.tone-signups { fill: var(--signal); stroke: var(--ink); }
.am-fsa.tone-signups:hover { fill: #ffdf6b; }
.am-fsa.tone-live { fill: var(--cobalt); stroke: var(--ink); }
.am-fsa.tone-live:hover { fill: var(--cobalt-deep); }
.am-fsa.is-sel { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.am-fsa:focus { outline: none; }
.am-fsa:focus-visible { stroke: var(--ink); stroke-width: 4; }
.am-labels text { font-family: var(--text); font-weight: 800; fill: var(--ink); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--white); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.am-key { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; font-size: 14px; font-weight: 700; }
.am-key li { display: inline-flex; align-items: center; gap: 8px; }
.am-key i { width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 4px; flex: none; }
.k-live { background: var(--cobalt); } .k-signups { background: var(--signal); } .k-none { background: var(--white); border-color: #8b93a5 !important; }
.am-panel { display: grid; gap: 10px; justify-items: start; padding: clamp(16px, 2.5vw, 24px); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; min-width: 0; }
.am-panel h3 { font-size: clamp(24px, 3vw, 32px); overflow-wrap: anywhere; }
.am-panel p { margin: 0; }
.am-kicker { font: 800 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.am-state { font-weight: 700; }
.am-live { display: inline-block; padding: 6px 10px; background: var(--cobalt); color: var(--white); border-radius: 6px; }
.am-hint { color: var(--muted); }
.am-open-head { font: 800 14px/1.2 var(--text); margin-top: 4px !important; }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.am-chips li { padding: 6px 10px; font-size: 15px; font-weight: 700; background: var(--tint); border: 1px solid var(--rule); border-radius: 999px; }
.am-form { width: 100%; display: grid; margin-top: 4px; }
.am-form .wait-row select { padding: 13px 12px; font: 700 17px/1.2 var(--text); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 8px; width: 100%; }
.am-form .wait-row, .am-form .wait { width: 100%; }
.am-form .wait-row { max-width: 420px; }
.am-solo .am-panel { max-width: 520px; }

/* Homepage block and standalone pages */
.mapsec { padding-block: clamp(40px, 6vw, 72px); background: var(--white); border-top: 1px solid var(--rule); }
.mapsec .section-title { max-width: 26ch; margin-bottom: 14px; }
.mapsec .map-lead { max-width: 40em; margin-bottom: 24px; color: var(--muted); }
.ap-hero { padding-block: clamp(36px, 6vw, 72px); background: var(--cobalt); color: var(--white); }
.ap-hero h1 { font-stretch: 125%; font-weight: 900; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -0.025em; max-width: 18ch; }
.ap-hero .lead { color: #e8ecff; }
.ap-main { padding-block: clamp(32px, 5vw, 56px); display: grid; gap: clamp(28px, 4vw, 48px); }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.ap-steps { display: grid; gap: 14px; list-style: none; counter-reset: s; }
.ap-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.ap-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; font: 900 17px/1 var(--display); background: var(--signal); border: 2px solid var(--ink); border-radius: 50%; }
.ap-steps b { display: block; }
.ap-fine { font-size: 15px; color: var(--muted); }

@media (max-width: 860px) {
  .am-body, .ap-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .am-find { grid-template-columns: minmax(0, 1fr); }
  .am-reset { top: 8px; left: 8px; }
}
@media (prefers-reduced-motion: reduce) { .am-fsa { transition: none; } }
