/* Shared presentation and explicit contrast pairs for both display modes. */
html{color-scheme:light}html[data-theme="dark"]{color-scheme:dark}
.theme-control{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:.72rem;font-weight:750;color:inherit;flex-shrink:0}
.theme-control select{font:inherit;font-size:.8rem;min-height:44px;padding:8px 10px;border:1px solid #b8c1cc;background:#fff;color:#17212b;border-radius:3px;max-width:160px}
.coverage-lead{position:relative;padding:32px 26px!important;margin:28px 0 20px;background:var(--brand-paper);border-left:8px solid var(--brand-accent);border-bottom:1px solid var(--brand-line)}
.coverage-lead h1{font-size:clamp(2rem,5vw,3.8rem);font-weight:850;max-width:950px;line-height:1.06}
.coverage-kicker,.section-label{font-weight:850;letter-spacing:.16em}
.coverage-card{border-top:2px solid var(--brand-line);transition:border-color .15s ease}
.coverage-card:hover{border-top-color:var(--brand-accent)}
.coverage-card.incident{border-left:3px solid var(--brand-accent)}
.region-links a{border-left:3px solid var(--brand-accent);padding-left:18px}
.local-feed h2,.coverage-columns>section>h2{font-weight:850}
.nefa .hero{border-bottom:5px double #b18a35}.nefa .nefa-feed{border-top:5px double #b18a35;padding-top:24px}
.local-scanner{background:var(--brand-paper);color:var(--brand-ink);border-top:5px solid var(--brand-accent);padding:24px;margin:24px 0}
.regional-scanner{width:100%;min-width:0}.regional-scanner iframe{width:100%;height:560px;display:block;border:1px solid var(--brand-line);background:var(--brand-soft)}
html[data-theme="dark"] body{--brand-paper:#18232e;--brand-soft:#101820;--brand-ink:#edf2f7;--brand-muted:#b8c6d3;--brand-line:#445567;background:#101820;color:#edf2f7}
html[data-theme="dark"] body{--brand-accent:#ff8a92}
html[data-theme="dark"] body.rochester,html[data-theme="dark"] body[data-region="rochester"]{--brand-accent:#9cc6ff}
html[data-theme="dark"] body.nefa,html[data-theme="dark"] body[data-region="nefa"]{--brand-accent:#f3ce7a}
html[data-theme="dark"] body[data-region="maine"]{--brand-accent:#8be0c0}
html[data-theme="dark"] body[data-region="vermont"]{--brand-accent:#abd895}
html[data-theme="dark"] body[data-region="new-york"]{--brand-accent:#a8cbff}
html[data-theme="dark"] body[data-region="massachusetts"]{--brand-accent:#ffacbd}
html[data-theme="dark"] .samg-header,html[data-theme="dark"] .coverage-page:not(.nefa):not(.rochester) header{background:#18232e;color:#edf2f7}
html[data-theme="dark"] .card,html[data-theme="dark"] .path-card,html[data-theme="dark"] .editor-block,html[data-theme="dark"] .samg-regions,html[data-theme="dark"] .samg-paths,html[data-theme="dark"] .scanner-section,html[data-theme="dark"] .nefa .hero{background:#18232e!important;color:#edf2f7!important;border-color:#445567}
html[data-theme="dark"] .coverage-meta,html[data-theme="dark"] .coverage-note,html[data-theme="dark"] .coverage-freshness,html[data-theme="dark"] .intro,html[data-theme="dark"] .card p,html[data-theme="dark"] .path-card p,html[data-theme="dark"] .samg-regions p,html[data-theme="dark"] .nefa .hero p{color:#b8c6d3!important}
html[data-theme="dark"] .nefa .hero-card,html[data-theme="dark"] .nefa .button.ghost{color:#f3ce7a;border-color:#a8894d}
html[data-theme="dark"] .coverage-regions a{background:#18232e;color:#edf2f7;border-color:#445567}
html[data-theme="dark"] .coverage-regions a[aria-current]{background:#edf2f7;color:#101820}
html[data-theme="dark"] .major-warning{background:#342029;color:#edf2f7}
html[data-theme="dark"] .theme-control select,html[data-theme="dark"] select,html[data-theme="dark"] input,html[data-theme="dark"] textarea{background:#101820;color:#edf2f7;border-color:#64768a}
html[data-theme="dark"] .button.primary,html[data-theme="dark"] .samg-button.red,html[data-theme="dark"] .editor-block>a{background:#b91f2a!important;color:#fff!important}
html[data-theme="dark"] .rochester .button.primary{background:#2156a1!important}
html[data-theme="dark"] .traffic{color:#ffacbd}
html[data-theme="dark"] .samg-hero:not(.photo-hero){background:#18232e;color:#edf2f7}
html[data-theme="dark"] .samg-hero:not(.photo-hero) h1 em{color:#ff8a92}
html[data-theme="dark"] .samg-button.outline{color:#edf2f7;border-color:#64768a}
html[data-theme="dark"] .merch-band,html[data-theme="dark"] footer{color:#edf2f7}
html[data-theme="dark"] .coverage-skip:focus,html[data-theme="dark"] .skip:focus{background:#18232e;color:#edf2f7}
main,.shell,.coverage-shell,.hero-grid,.samg-hero-grid,.coverage-columns,.grid,.path-grid,.region-layout,.editor-layout{min-width:0}
img,iframe{max-width:100%}button,select,summary{touch-action:manipulation}a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e1ab37;outline-offset:3px}
@media(max-width:1000px){.theme-control{margin-left:0}.samg-nav,.nav,.coverage-page header .coverage-shell{flex-wrap:wrap}}
@media(max-width:760px){.theme-control{width:100%;justify-content:flex-end;border-top:1px solid #64768a66;padding-top:8px}.theme-control select{max-width:170px}.coverage-lead{padding:24px 18px!important;margin-top:18px;border-left-width:5px}.coverage-lead h1{font-size:clamp(1.8rem,8vw,2.7rem)}.coverage-columns,.grid,.path-grid,.region-layout,.hero-grid,.samg-hero-grid{grid-template-columns:minmax(0,1fr)!important}.coverage-regions{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:10px}.coverage-regions a{flex:0 0 auto}.local-scanner{padding:16px}.regional-scanner iframe{height:520px}.samg-footer .shell{flex-wrap:wrap}.samg-footer a{overflow-wrap:anywhere}.merch-band>div{min-width:0;flex-basis:160px}.platform-ad-slot{grid-template-columns:minmax(0,1fr)}}
@media(max-width:380px){.samg-brand strong{font-size:.82rem}.brand-label{font-size:1rem}.coverage-shell{width:calc(100% - 24px)}.shell{width:calc(100% - 24px)}.nefa-identity{display:block}}
@media(prefers-reduced-motion:reduce){.coverage-card{transition:none}}
html[data-theme="dark"] .card a,html[data-theme="dark"] .coverage-card a,html[data-theme="dark"] .coverage-more,html[data-theme="dark"] .local-feed>.shell>a,html[data-theme="dark"] .local-scanner>p>a{color:var(--brand-accent)}
html[data-theme="dark"] .card h3,html[data-theme="dark"] .path-card h2,html[data-theme="dark"] .editor-block h2,html[data-theme="dark"] .local-scanner h2,html[data-theme="dark"] .coverage-lead h1{color:#edf2f7}
/* Region directory text must not inherit the original fixed light-mode colors. */
html[data-theme="dark"] .region-links a,html[data-theme="dark"] .region-links a b{color:#edf2f7}
html[data-theme="dark"] .region-links a span{color:#b8c6d3}
html[data-theme="dark"] .region-links a{border-color:#445567}
html[data-theme="dark"] .region-links a:hover{background:#243443;color:#fff}
html[data-theme="dark"] .region-links a:focus-visible{background:#243443}

.top-incident-ticker{display:flex;gap:14px;align-items:center;padding:8px max(16px,calc((100% - 1180px)/2));background:var(--brand-paper);color:var(--brand-ink);border-bottom:3px solid var(--brand-accent);overflow:hidden}
.top-incident-ticker .recent-cad{flex:1;min-width:0;overflow:hidden}.top-incident-ticker .incident-strip{width:max-content;max-width:none;overflow:visible;scroll-snap-type:none;border:0;margin:0;padding:4px 0}
.top-incident-ticker .incident-strip>a{flex:0 0 280px}.top-incident-ticker .incident-strip>strong{flex:0 0 170px;position:static}
.top-incident-ticker button{flex-shrink:0;min-height:44px;background:var(--brand-soft);color:var(--brand-ink);border:1px solid var(--brand-line);padding:8px 12px;font:inherit;font-size:.75rem;cursor:pointer}
.ticker-moving{animation:incident-ticker 35s linear infinite alternate}.top-incident-ticker:hover .ticker-moving,.top-incident-ticker:focus-within .ticker-moving,.ticker-paused .ticker-moving{animation-play-state:paused}
@keyframes incident-ticker{0%,8%{transform:translateX(0)}92%,100%{transform:translateX(var(--ticker-distance,0px))}}
.feedback-link{text-align:center;margin:16px;padding:12px}.feedback-form{max-width:760px;margin:24px auto;padding:24px;background:var(--brand-paper);color:var(--brand-ink);border:1px solid var(--brand-line)}
.feedback-form label{display:block;margin:18px 0 6px;font-weight:700}.feedback-form input,.feedback-form textarea,.feedback-form select{display:block;width:100%;padding:12px;min-height:44px;font:inherit;background:var(--brand-soft);color:var(--brand-ink);border:1px solid var(--brand-line)}.feedback-form textarea{min-height:110px}.feedback-form button{padding:12px 20px;min-height:44px;background:#b91f2a;color:#fff;border:0;font:inherit;font-weight:750}.feedback-form .website-field{display:none}.feedback-form small{color:var(--brand-muted)}
@media(max-width:760px){.top-incident-ticker{padding:6px 12px;gap:6px}.top-incident-ticker .incident-strip>a{flex-basis:240px}.top-incident-ticker button{max-width:80px;font-size:.7rem}.feedback-form{padding:18px}}
@media(prefers-reduced-motion:reduce){.ticker-moving{animation:none}.top-incident-ticker .recent-cad{overflow-x:auto}}
