:root {
  --brand-primary: #082f6f;
  --brand-secondary: #e50914;
  --brand-accent: #ffc328;
  --ink: #0f172a;
  --muted: #5d6d86;
  --line: #d6e0ee;
  --surface: #ffffff;
  --soft: #eef4fb;
  --bg: #f6f8fc;
  --shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

[data-theme="dark"] {
  --ink: #eef4ff;
  --muted: #a9b7cd;
  --line: #25364f;
  --surface: #0f1b2d;
  --soft: #15243a;
  --bg: #09111f;
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; }
p { font-weight: 400; line-height: 1.62; }
h1, h2, h3, h4, strong, b { font-weight: 750; line-height: 1.16; }
label, nav, button, .btn { font-weight: 600; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
}
.brand img { width: 110px; display: block; }
[data-theme="dark"] .topbar > .brand,
[data-theme="dark"] .footer > img {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
[data-theme="dark"] .topbar > .brand img { width: 104px; }
[data-theme="dark"] .footer > img { width: 116px; }
.topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.topbar nav a, .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04);
}
.topbar nav a:hover, .theme-toggle:hover { background: color-mix(in srgb, var(--brand-primary) 9%, var(--surface)); border-color: var(--brand-primary); }
.topbar nav a.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.nav-more { position: relative; }
.nav-more summary { min-height: 40px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " +"; color: var(--muted); }
.nav-more[open] summary::after { content: " −"; }
.nav-more > div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: 190px; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.nav-more > div a { justify-content: flex-start; }
.topbar nav .btn.small {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}

.page, .map-page { width: min(1460px, calc(100vw - 28px)); margin: 18px auto 42px; }
.landing, .auth-page { width: min(960px, calc(100vw - 28px)); margin: 32px auto; }
.hero { text-align: center; padding: 40px 0; }
.hero img { width: 190px; }
.hero h1 { font-size: clamp(34px, 7vw, 72px); max-width: 860px; margin: 10px auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary);
  color: white;
  cursor: pointer;
}
.btn.danger { border-color: var(--brand-secondary); background: var(--brand-secondary); }
.btn.ghost { background: var(--soft); color: var(--ink); border-color: var(--line); }
.btn.small { min-height: 34px; padding: 7px 11px; font-size: 14px; }
.password-field { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.password-toggle { min-width: 64px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--brand-primary); cursor: pointer; }
.password-help { margin: 0; color: var(--muted); font-size: 13px; }
.password-help.is-valid { color: #15803d; }
.camera-welcome { grid-column: 1 / -1; max-width: 680px; margin: 0 auto; text-align: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  padding: 18px;
}
.briefing-lead { display: grid; gap: 3px; max-width: 900px; margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--brand-secondary); background: color-mix(in srgb, var(--soft) 72%, transparent); }
.briefing-lead span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.briefing-lead strong { font-size: clamp(17px, 2.2vw, 24px); line-height: 1.2; }
.flash { width: min(980px, calc(100vw - 28px)); margin: 14px auto; padding: 14px 18px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.flash.success { border-color: #16a34a; }
.flash.error { border-color: #dc2626; }
.eyebrow { margin: 0 0 6px; color: var(--brand-secondary); text-transform: uppercase; letter-spacing: 0; font-size: 13px; }
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-primary);
  padding: 5px 10px;
  margin: 0 6px 6px 0;
  font-size: 13px;
}
.pill.danger { background: var(--brand-secondary); color: white; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.briefing-card {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 9%, transparent), transparent 42%),
    var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.briefing-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.briefing-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(340px, 100%);
}
.home-weather-mini {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--soft));
  color: var(--ink);
  text-decoration: none;
}
.home-weather-mini.level-yellow {
  background: color-mix(in srgb, var(--brand-accent) 12%, var(--surface));
}
.home-weather-mini.level-red {
  background: color-mix(in srgb, var(--brand-secondary) 10%, var(--surface));
}
.weather-emoji,
.weather-art.mini {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  font-size: 26px;
}
.weather-art {
  display: block;
  object-fit: contain;
}
.weather-art.large {
  width: clamp(82px, 14vw, 130px);
  height: clamp(82px, 14vw, 130px);
}
.weather-art.small {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.weather-current-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.home-weather-mini small {
  display: block;
  color: var(--brand-secondary);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.home-weather-mini strong {
  display: block;
  overflow: hidden;
  color: var(--brand-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-weather-mini em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.briefing-card h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.02;
}
.briefing-greeting {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.facebook-feed-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 24%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, #1877f2 9%, transparent), transparent 48%),
    var(--surface);
}
.facebook-feed-card.embedded {
  padding: 0;
  border: 0;
  background: transparent;
}
.facebook-feed-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.facebook-feed-card h2,
.facebook-feed-card p {
  margin: 0;
}
.facebook-feed-card h2 {
  font-size: clamp(18px, 2.6vw, 24px);
}
.facebook-feed-card p:not(.eyebrow) {
  color: var(--muted);
}
.facebook-feed-frame {
  display: flex;
  justify-content: center;
  min-height: 700px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.facebook-feed-card.embedded .facebook-feed-frame {
  background:
    linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}
.facebook-feed-frame iframe {
  width: min(500px, 100%);
  max-width: 100%;
}
.nj-news-card {
  display: grid;
  gap: 14px;
}
.news-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.news-head h2,
.news-head p {
  margin: 0;
}
.news-head h2 {
  font-size: clamp(20px, 3vw, 28px);
}
.news-head p:not(.eyebrow) {
  color: var(--muted);
}
.news-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.news-item {
  display: grid;
  gap: 9px;
  min-height: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.news-item.no-image,
.news-page-card.no-image {
  align-content: start;
}
.news-item.no-image .news-source,
.news-page-card.no-image .news-source {
  margin-bottom: 3px;
}
.news-item.no-image .news-content,
.news-page-card.no-image .news-content {
  gap: 8px;
}
.news-item.no-image strong,
.news-page-card.no-image strong {
  max-width: 100%;
}
.news-item:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line));
  box-shadow: 0 8px 18px rgba(8, 47, 111, .08);
}
.news-item.featured {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 15px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 8%, transparent), transparent 58%),
    var(--surface);
}
.news-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-radius: 7px;
  background: var(--soft);
}
.news-item.featured .news-thumb {
  aspect-ratio: 16 / 9;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-item.local-story .news-thumb,
.news-page-card.local-story .news-thumb {
  background: #09172b;
}
.news-item.local-story .news-thumb img,
.news-page-card.local-story .news-thumb img,
.news-page-card.lead.local-story .news-thumb img {
  object-fit: contain;
  object-position: center;
  background: #09172b;
}
.news-item.featured .news-thumb {
  background: #f8fafc;
}
.news-item.featured .news-thumb img {
  object-fit: contain;
}
.news-thumb img[src="/assets/logo.png"] {
  object-fit: contain;
  padding: 18px;
  background: #fff;
}
.news-item.logo-fallback .news-thumb,
.news-page-card.logo-fallback .news-thumb {
  background:
    radial-gradient(circle at center, rgba(255,255,255,.98), rgba(248,250,252,.92) 45%, rgba(226,232,240,.55)),
    linear-gradient(135deg, #fff, var(--soft));
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  min-height: 138px;
  padding: 10px;
}
.news-item.logo-fallback .news-thumb img,
.news-page-card.logo-fallback .news-thumb img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(8, 47, 111, .10);
}
.news-item.featured.logo-fallback .news-thumb img,
.news-page-card.lead.logo-fallback .news-thumb img {
  width: clamp(148px, 18vw, 200px);
  height: clamp(148px, 18vw, 200px);
  padding: 8px;
}
.news-item.featured.logo-fallback .news-thumb,
.news-page-card.lead.logo-fallback .news-thumb { min-height: 230px; max-height: 270px; }
.news-content {
  display: grid;
  gap: 7px;
  align-content: start;
}
.news-source {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.news-item strong {
  font-size: 17px;
  line-height: 1.28;
}
.news-item.featured strong {
  font-size: clamp(20px, 3.3vw, 30px);
  line-height: 1.13;
}
.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.news-item:not(.featured) p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.news-item.featured p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.news-item small {
  color: var(--muted);
  font-weight: 800;
}
.external-note { color: var(--brand-primary) !important; font-weight: 600 !important; }
.article-byline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.article-byline span:not(:first-child)::before, .article-byline time::before { content: "·"; margin-right: 14px; color: var(--line); }
.related-stories { display: grid; gap: 14px; padding: 20px; border-top: 1px solid var(--line); }
.related-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-story-grid a { display: grid; gap: 8px; }
.related-story-grid span, .related-story-grid small { color: var(--muted); font-size: 12px; }
.trust-hero { max-width: 900px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trust-grid .card, .policy-stack .card { box-shadow: none; }
.trust-contact { margin-top: 16px; }
.policy-stack { display: grid; gap: 14px; max-width: 980px; }
.load-more-row { text-align: center; }
.news-page-head {
  margin-bottom: 18px;
}
.news-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) minmax(180px, .8fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.news-page-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.news-page-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.news-page-grid.mixed {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.news-page-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.news-page-card:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line));
  box-shadow: 0 8px 18px rgba(8, 47, 111, .08);
}
.news-page-card.lead {
  grid-column: span 2;
  grid-row: span 2;
}
.news-page-grid.mixed .news-page-card.lead {
  grid-column: span 2;
  grid-row: span 2;
}
.news-page-card .news-thumb {
  aspect-ratio: 16 / 9;
}
.news-page-card.lead .news-thumb {
  aspect-ratio: 16 / 9;
}
.news-page-card.lead:not(.logo-fallback) .news-thumb img {
  object-fit: cover;
  background: #f8fafc;
}
.news-page-card strong {
  font-size: 18px;
  line-height: 1.28;
}
.news-page-card.lead strong {
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.12;
}
.news-page-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.news-page-card:not(.lead) p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.news-page-card.lead p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.article-page {
  max-width: 980px;
}
.article-shell {
  display: grid;
  gap: 18px;
}
.article-hero,
.article-body,
.article-video,
.article-actions {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.article-comments { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.comments-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.comments-heading h2, .comments-heading p { margin: 0; }
.comments-safe { padding: 7px 10px; border-radius: 999px; background: #eaf8ef; color: #18723a; font-size: 12px; font-weight: 900; }
.comment-form { display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.comment-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-form small { color: var(--muted); }
.comment-login { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-radius: 12px; background: var(--soft); }
.comment-login p { margin: 0; }
.comment-list { display: grid; gap: 12px; }
.comment-card { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.comment-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--brand-primary); color: #fff; font-weight: 950; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-content header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.comment-content header span, .comment-content time { color: var(--muted); font-size: 12px; font-style: normal; }
.comment-content header em, .rank-badge { padding: 4px 8px; border-radius: 999px; background: #fff2c7; color: #735400; font-size: 11px; font-style: normal; font-weight: 900; }
.comment-content p { margin: 8px 0; }
.comment-content form button { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.comment-empty { padding: 20px; text-align: center; color: var(--muted); }
.badge-shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.member-badge { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #fff, var(--soft)); text-align: center; }
.member-badge > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-primary); color: #fff; font-weight: 950; }
.member-badge small { color: var(--muted); font-size: 11px; }
.reward-guide { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.reward-guide article { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.reward-guide strong { color: var(--brand-primary); font-size: 24px; }
.reward-guide span { color: var(--muted); font-size: 12px; }
.comment-review-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.comment-review-row small { display: block; margin-top: 3px; color: var(--muted); }
.comment-review-row p { margin: 8px 0 0; }
.article-hero {
  display: grid;
  gap: 14px;
}
.article-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}
.article-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-meta span,
.article-meta time {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.article-hero figure,
.article-body figure {
  margin: 0;
}
.article-hero figure {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
}
.article-hero img,
.article-body img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.article-photo-figure img {
  max-height: 520px;
}
.article-logo-figure {
  min-height: 190px;
  padding: 24px;
}
.article-logo-figure img {
  width: min(240px, 65%);
  max-height: 150px;
  object-fit: contain;
}
.article-body {
  font-size: 18px;
  line-height: 1.62;
}
.article-body p {
  margin: 0 0 18px;
}
.article-body figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.article-video {
  display: grid;
  gap: 12px;
}
.article-video iframe,
.article-video video {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 8px;
  background: #111827;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-share {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--soft) 100%);
  box-shadow: 0 12px 32px rgba(8, 47, 111, .08);
}
.article-share h2 {
  margin: 0;
  font-size: 24px;
}
.share-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.share-heading .eyebrow { margin: 0 0 3px; }
.share-heading > p { margin: 0; color: var(--muted); font-weight: 700; }
.share-actions {
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  gap: 10px;
}
.share-button {
  appearance: none;
  min-width: 0;
  min-height: 80px;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.share-button:hover,
.share-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: 0 8px 18px rgba(8, 47, 111, .14);
}
.share-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brand-primary);
  font-size: 17px;
  font-weight: 950;
}
.share-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-button.facebook .share-icon { background: #1877f2; color: #fff; font: 900 23px/1 Arial, sans-serif; }
.share-button.whatsapp .share-icon { background: #25d366; color: #fff; }
.share-button.x-social .share-icon { background: #111; color: #fff; }
.share-button.linkedin .share-icon { background: #0a66c2; color: #fff; font-size: 14px; }
.share-button.email .share-icon { background: #e8eef8; color: #082f6f; }
.share-button.share-native { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.share-button.share-native .share-icon { background: rgba(255,255,255,.16); color: #fff; }
.share-button.is-success { border-color: #16a34a; color: #15803d; }
.share-status { min-height: 18px; margin: -8px 0 0; color: #15803d; font-size: 13px; font-weight: 800; }
.share-button[hidden] { display: none; }

@media (max-width: 760px) {
  .article-share { padding: 18px 14px; border-radius: 13px; }
  .share-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .share-heading > p { font-size: 13px; }
  .share-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .share-button { min-height: 72px; padding: 8px 4px; font-size: 11px; }
  .share-icon { width: 31px; height: 31px; }
  .comments-heading, .comment-form > div, .comment-login { align-items: stretch; flex-direction: column; }
  .comment-form .btn, .comment-login .btn { width: 100%; }
  .comment-card { grid-template-columns: 38px 1fr; }
  .comment-avatar { width: 38px; height: 38px; font-size: 12px; }
  .comment-review-row { grid-template-columns: 1fr; }
  .reward-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .share-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.briefing-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  white-space: nowrap;
}
.mode {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--muted);
}
.mode.active {
  background: var(--surface);
  color: var(--brand-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.briefing-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: start;
}
.briefing-main,
.briefing-side,
.ai-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--soft));
}
.briefing-main { padding: 18px; }
.briefing-main h2,
.briefing-side h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.briefing-question {
  margin: 0 0 10px;
  color: var(--brand-primary);
}
.briefing-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.briefing-list li { line-height: 1.45; }
.ai-summary {
  margin-top: 16px;
  padding: 14px;
}
.ai-summary strong { color: var(--brand-primary); }
.ai-summary p { margin: 6px 0 0; }
.briefing-important {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.briefing-important h2 {
  margin: 0;
  font-size: 20px;
}
.briefing-side {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.concern-list {
  display: grid;
  gap: 8px;
}
.concern-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.concern-item:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
}
.concern-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #16a34a;
}
.concern-item.yellow .concern-dot { background: #f59e0b; }
.concern-item.red .concern-dot { background: var(--brand-secondary); }
.concern-item.blue .concern-dot { background: var(--brand-primary); }
.concern-item strong,
.concern-item small {
  display: block;
}
.concern-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.concern-item em {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}
.concern-item.yellow em { color: #92400e; }
.concern-item.red em {
  background: color-mix(in srgb, var(--brand-secondary) 12%, var(--soft));
  color: var(--brand-secondary);
}
.important-alert-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.important-alert {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.important-alert:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
}
.important-alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.important-alert-top em {
  color: var(--brand-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}
.important-alert strong,
.important-alert span {
  display: block;
}
.important-alert span,
.important-alert small {
  color: var(--muted);
  font-size: 13px;
}
.important-alert.empty { cursor: default; }
.weather-card {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #38bdf8 24%, transparent), transparent 34%),
    var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.weather-card.level-yellow {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-accent) 28%, transparent), transparent 34%),
    var(--surface);
}
.weather-card.level-red {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-secondary) 22%, transparent), transparent 34%),
    var(--surface);
}
.weather-main {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 168px;
  padding: 18px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 9%, var(--surface));
}
.weather-main h2,
.weather-main p { margin: 0; }
.weather-main strong {
  display: flex;
  align-items: start;
  gap: 4px;
  color: var(--brand-primary);
  font-size: clamp(48px, 8vw, 78px);
  line-height: .9;
}
.weather-main strong span {
  margin-top: 6px;
  font-size: .36em;
}
.weather-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.weather-details div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--soft));
}
.weather-details span {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-primary);
  font-size: 12px;
  text-transform: uppercase;
}
.weather-details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.weather-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent 50%),
    var(--surface);
}
.weather-page-hero.level-yellow {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-accent) 22%, transparent), transparent 52%),
    var(--surface);
}
.weather-page-hero.level-red {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 52%),
    var(--surface);
}
.weather-page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
}
.weather-page-hero p { max-width: 850px; }
.weather-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.weather-current-card {
  display: grid;
  gap: 8px;
  min-height: 260px;
  align-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-primary);
  color: white;
}
.weather-current-card.level-yellow { background: linear-gradient(135deg, var(--brand-primary), #725c08); }
.weather-current-card.level-red { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); }
.weather-current-card .eyebrow,
.weather-current-card p { color: color-mix(in srgb, white 84%, transparent); }
.weather-current-card strong {
  display: flex;
  align-items: start;
  gap: 5px;
  font-size: clamp(70px, 12vw, 116px);
  line-height: .85;
}
.weather-current-card strong span {
  margin-top: 10px;
  font-size: .28em;
}
.weather-current-card h2,
.weather-current-card p { margin: 0; }
.weather-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.weather-mini-grid div,
.forecast-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.weather-mini-grid span,
.forecast-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-secondary);
  font-size: 12px;
  text-transform: uppercase;
}
.weather-mini-grid strong { color: var(--brand-primary); }
.forecast-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.forecast-card {
  display: grid;
  gap: 6px;
}
.forecast-card summary,
.daily-forecast-card summary,
.weather-alert-detail summary {
  list-style: none;
  cursor: pointer;
}
.forecast-card summary::-webkit-details-marker,
.daily-forecast-card summary::-webkit-details-marker,
.weather-alert-detail summary::-webkit-details-marker { display: none; }
.forecast-card strong {
  color: var(--brand-primary);
  font-size: 28px;
}
.forecast-card p,
.forecast-card small { margin: 0; color: var(--muted); }
.weather-expand[open],
.daily-forecast-card[open],
.weather-alert-detail[open] {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 6%, var(--surface));
}
.daily-forecast-grid,
.weather-alert-list,
.county-chip-grid {
  display: grid;
  gap: 10px;
}
.daily-forecast-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.daily-forecast-card,
.weather-alert-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}
.daily-forecast-card strong {
  display: block;
  color: var(--brand-primary);
  font-size: 24px;
}
.daily-forecast-card p,
.weather-alert-detail p,
.weather-alert-detail small { color: var(--muted); }
.weather-alert-detail summary {
  display: grid;
  gap: 5px;
}
.county-chip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.county-chip {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 900;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.signal {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.signal:hover { border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--line)); }
.signal > span {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--muted);
}
.signal.green > span { background: #16a34a; }
.signal.yellow > span { background: #f59e0b; }
.signal.red > span { background: var(--brand-secondary); }
.signal.blue > span { background: var(--brand-primary); }
.signal strong,
.signal small {
  display: block;
}
.signal small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}
.generated-from {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.generated-from summary {
  cursor: pointer;
  color: var(--brand-primary);
}
.generated-from div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.generated-from span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 13px;
}
.today-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.today-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
}
.today-hero p { max-width: 920px; margin-bottom: 0; }
.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.resident-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}
.resident-location h2 { margin: 2px 0 6px; }
.resident-location p:last-child { margin-bottom: 0; }
.resident-location form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.resident-location label { min-width: 210px; }
.resident-location .location-status { flex: 1 0 100%; min-height: 1.25em; color: var(--muted); font-size: 13px; font-weight: 700; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-primary) 42%, transparent);
  outline-offset: 2px;
}
.metric-card {
  display: grid;
  gap: 5px;
  align-content: start;
  min-height: 116px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.metric-card span { display: block; color: var(--brand-primary); font-size: 13px; text-transform: uppercase; }
.metric-card strong { display: block; font-size: clamp(24px, 4vw, 38px); line-height: 1; }
.metric-card small { display: block; color: var(--muted); }
.metric-card.commute-yellow { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 8%, var(--surface)); }
.metric-card.commute-red { border-color: var(--brand-secondary); background: color-mix(in srgb, var(--brand-secondary) 8%, var(--surface)); }
.metric-card.commute-blue { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface)); }
.near-me-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 14px;
  align-items: end;
  margin: 16px 0;
}
.near-me-card h2 { margin: 0; }
.near-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.near-results article {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.near-results span { color: var(--muted); font-size: 13px; }
.near-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.near-item + .near-item { margin-top: 8px; }
.near-item:hover strong,
.near-item:focus-visible strong {
  color: var(--brand-secondary);
}
.near-item span {
  color: var(--muted);
  font-size: 13px;
}
.near-item small {
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 900;
}
.near-item:hover,
.near-item:focus-visible {
  border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
  outline: none;
}
.near-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.near-dialog::backdrop { background: rgba(8, 17, 34, .55); }
.near-dialog .map-popup { max-width: none; }
.near-dialog .camera-frame,
.near-dialog video,
.near-dialog iframe {
  width: 100%;
}
.near-dialog-head { padding-right: 44px; }
.trip-planner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
  margin: 16px 0;
}
.trip-planner > div:first-child {
  grid-column: 1 / -1;
}
.trip-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.transit-layout,
.worldcup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 16px;
  align-items: start;
  margin: 16px 0;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.resource-grid a {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-primary);
}
.match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.match-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.match-card.final { border-color: #16a34a; background: color-mix(in srgb, #16a34a 9%, var(--surface)); }
.match-card.live { border-color: var(--brand-secondary); background: color-mix(in srgb, var(--brand-secondary) 8%, var(--surface)); }
.match-card.checking { border-color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 16%, var(--surface)); }
.match-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.match-card span {
  color: var(--brand-secondary);
  font-size: 12px;
  text-transform: uppercase;
}
.match-card em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-primary);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}
.match-card strong {
  font-size: 18px;
}
.match-card small {
  color: var(--muted);
}
.match-score {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.match-score b {
  color: var(--brand-primary);
  font-size: 24px;
}
.score-note {
  margin: 14px 0 0;
  font-size: 13px;
}
.map-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: visible; }
.panel-head, .page-head, .section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-head { padding: 18px; }
.panel-head h1, .page-head h1 { margin: 0; font-size: clamp(24px, 4vw, 42px); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
label { display: grid; gap: 6px; color: var(--brand-primary); font-size: 13px; text-transform: uppercase; }
[data-theme="dark"] label { color: #dbeafe; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  text-transform: none;
  font-weight: 700;
}
textarea { resize: vertical; }
.town-search-controls {
  display: grid;
  gap: 5px;
}
.town-search-input {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b80' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 17px;
}
.town-search-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-transform: none;
}
.nj-map { height: min(72vh, 720px); min-height: 520px; width: 100%; z-index: 1; }
.clean-map-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.clean-nj-map { height: calc(100vh - 265px); min-height: 620px; }
.map-is-loading { background: #eef3f9; }
.map-loading-status {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--navy);
  text-align: center;
  background: linear-gradient(145deg, #f7faff 0%, #e9f1fb 100%);
}
.map-loading-status small { color: var(--muted); }
.map-loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(8, 53, 116, .16);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: map-loading-spin .8s linear infinite;
}
@keyframes map-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .map-loading-spinner { animation: none; border-top-color: rgba(8, 53, 116, .16); } }
.clean-map-feed {
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.map-camera-section,
.map-alert-feed-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.map-camera-section .filters,
.map-alert-feed-section .filters {
  margin: 0;
}
.leaflet-popup { z-index: 800; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.leaflet-popup-content { margin: 14px !important; font-family: inherit; font-size: 15px; line-height: 1.45; }
.map-popup { display: grid; gap: 10px; min-width: 0; }
.map-popup h3 { margin: 0; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.map-popup > p { margin: 0; }
.map-popup > .muted { font-size: 14px; }
.map-popup video, .map-popup img, .map-popup iframe { width: 100%; max-height: 260px; border-radius: 8px; }
.map-popup video { background: #07111f; object-fit: contain; }
.selected-incident-panel {
  position: absolute;
  z-index: 1100;
  top: 12px;
  right: 12px;
  width: min(420px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
  overflow: hidden;
}
.selected-incident-panel[hidden] { display: none !important; }
.selected-incident-scroll {
  max-height: calc(100vh - 310px);
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.selected-incident-close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.selected-incident-panel .map-popup h3 { padding-right: 40px; }
.incident-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.popup-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.popup-meta span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.popup-meta b {
  color: var(--brand-primary);
  font-size: 10px;
  text-transform: uppercase;
}
.popup-nearby-cameras {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.popup-nearby-cameras h4 {
  margin: 0;
  color: var(--brand-primary);
  font-size: 12px;
  text-transform: uppercase;
}
.popup-nearby-camera {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  overflow: hidden;
}
.popup-nearby-camera summary {
  display: grid;
  gap: 2px;
  padding: 8px;
  cursor: pointer;
  list-style: none;
}
.popup-nearby-camera summary::-webkit-details-marker {
  display: none;
}
.popup-nearby-camera summary strong {
  color: var(--ink);
  font-size: 13px;
}
.popup-nearby-camera summary span {
  color: var(--muted);
  font-size: 12px;
}
.popup-nearby-camera .camera-frame {
  border-radius: 0;
  border-width: 1px 0 0;
}
.map-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  color: white;
  border: 2px solid white;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  font-size: 13px;
}
.map-icon.camera { background: var(--brand-primary); }
.map-icon.event { width:34px; height:34px; background:#0b6b4b; color:#fff; font-size:18px; border:3px solid #fff; box-shadow:0 4px 12px rgba(6,35,27,.3); }
.event-pill { background:#e4f7ef!important; color:#07583e!important; }
.event-location-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.event-popup > img { width:100%; max-height:190px; object-fit:cover; border-radius:12px; }
.map-icon.camera svg { width: 15px; height: 15px; fill: currentColor; }
.map-icon.alert { background: #f97316; }
.map-icon.crash { background: #dc2626; color: white; }
.map-icon.crash svg { width: 18px; height: 18px; fill: currentColor; }
.map-icon.outage { background: #eab308; }
.map-icon.weather { background: #0284c7; }
.map-icon.police { background: #7c3aed; }
.map-emoji-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff1f2;
  box-shadow: 0 8px 22px rgba(127, 29, 29, .34);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.map-image-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: white;
  border: 2px solid white;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
  overflow: hidden;
}
.map-image-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.side-feed { display: grid; gap: 14px; max-height: calc(100vh - 100px); overflow: auto; }
.mini-card, .alert-row { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.alert-row strong { font-size: 18px; }
.alert-row strong { line-height: 1.3; }
.alert-row-button {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.alert-row-button > * { text-align: left; }
.alert-row-button:hover,
.alert-row-button:focus-visible {
  background: color-mix(in srgb, var(--brand-primary) 7%, transparent);
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 35%, transparent);
  outline-offset: 2px;
}
.alert-row small b { color: var(--ink); }
.alert-detail-card {
  cursor: pointer;
}
.alert-detail-card summary {
  display: grid;
  gap: 6px;
  list-style: none;
}
.alert-detail-card summary::-webkit-details-marker {
  display: none;
}
.alert-detail-card summary::after {
  content: "Click for details";
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 950;
}
.alert-detail-card[open] summary::after {
  content: "Hide details";
}
.alert-detail-card:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--line));
}
.alert-detail-card small {
  color: var(--muted);
  font-weight: 850;
}
.alert-detail-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  cursor: default;
}
.alert-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.alert-meta-grid div {
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
}
.alert-meta-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.alert-meta-grid dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 900;
}
.nearby-camera-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
}
.nearby-camera-panel h3,
.nearby-camera-panel p {
  margin: 0;
}
.nearby-camera-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.nearby-camera-card summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}
.nearby-camera-card summary::-webkit-details-marker {
  display: none;
}
.nearby-camera-card summary span {
  color: var(--muted);
  font-size: 13px;
}
.nearby-camera-card .camera-frame {
  margin-top: 10px;
}

.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-card { width: min(460px, 100%); margin: 0 auto; display: grid; gap: 14px; }
.auth-card.wide { width: min(760px, 100%); }
.waitlist { width: min(520px, 100%); margin: 24px auto; display: grid; gap: 14px; text-align: left; }
.handle { display: grid; grid-template-columns: 42px 1fr; }
.handle span { display: grid; place-items: center; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--soft); color: var(--muted); }
.handle input { border-radius: 0 8px 8px 0; }
.check { display: flex; align-items: center; gap: 10px; text-transform: none; color: var(--ink); }
.check input { width: auto; }

.feed-list, .rank-list { display: grid; gap: 14px; margin-top: 16px; }
.alert-card img, .alert-card video { max-width: 520px; width: 100%; border-radius: 8px; }
.camera-grid, .clip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.camera-directory-filters {
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 14px;
}
.camera-directory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 4px;
  color: var(--muted);
  font-weight: 800;
}
.camera-directory-summary strong,
.camera-directory-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 7px 10px;
}
.traffic-view-head h1 {
  max-width: 820px;
}
.traffic-county-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.county-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 9px;
}
.county-chip {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.county-chip:hover,
.county-chip.active {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 9%, var(--surface));
}
.county-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.traffic-view-summary {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr .8fr;
  gap: 12px;
  margin: 14px 0;
}
.traffic-view-summary .card {
  display: grid;
  gap: 5px;
}
.traffic-view-summary strong {
  line-height: 1.25;
}
.embedded-traffic-report {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.embedded-traffic-report h2 {
  margin: 0;
}
.traffic-article-camera-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.traffic-camera-grid .camera-frame,
.traffic-article-camera-grid .camera-frame {
  aspect-ratio: 16 / 10;
}
.directory-camera-card {
  padding: 0;
  overflow: hidden;
}
.directory-camera-card .camera-frame {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}
.camera-card-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}
.camera-card-body h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}
.camera-card-body p,
.camera-card-body small {
  margin: 0;
}
.video-alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.camera-card, .clip-card { display: grid; gap: 10px; padding: 14px; align-content: start; }
.video-alert-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.video-alert-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  display: block;
}
.video-alert-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.video-alert-body h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}
.video-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.video-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  margin-bottom: 14px;
}
.video-switch a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}
.video-switch a.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}
.video-switch strong {
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, white 72%, transparent);
  color: var(--brand-primary);
}
.video-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 4px;
}
.video-section-title h2,
.video-section-title p { margin: 0; }
.video-library-grid { align-items: start; }
.camera-frame, .clip-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #080d18;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.camera-preview {
  display: grid;
  gap: 10px;
}
.camera-popup .camera-preview .btn { width: 100%; min-height: 44px; }
.popup-camera-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
}
.popup-camera-frame .play {
  min-width: 148px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(8,47,111,.94);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.camera-preview-image,
.camera-preview-empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #080d18;
}
.camera-preview-image {
  object-fit: cover;
  display: block;
}
.camera-preview-empty {
  display: grid;
  place-items: center;
  padding: 16px;
  color: white;
  text-align: center;
}
.camera-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.clip-frame {
  aspect-ratio: 9 / 14;
  background: #f8fafc;
}
.camera-frame iframe, .camera-frame video, .camera-frame img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.clip-frame iframe,
.clip-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.clip-frame .facebook-video-embed {
  width: 100%;
  min-height: 100%;
}
.camera-loading {
  color: white;
  padding: 16px;
  text-align: center;
  font-size: 14px;
}
.camera-fallback {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px;
  color: white;
  text-align: center;
}
.camera-fallback p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.camera-fallback .btn {
  min-height: 34px;
}
.camera-source-link {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(8, 47, 111, 0.92);
  color: #fff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.clip-body { display: grid; gap: 8px; }
.clip-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-card .muted {
  margin: 0;
  font-size: 13px;
}
.details-toggle {
  justify-self: start;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--brand-primary);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
}
.clip-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.clip-details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
.play {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid white;
  background: var(--brand-secondary);
  color: white;
  font-size: 28px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  cursor: pointer;
  font-size: 0;
}
.play::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #fff;
  transform: translateX(3px);
}
.rank-row { display: grid; grid-template-columns: 50px 58px 1fr auto; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--soft); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card, .profile-form { max-width: 900px; margin: 0 auto 18px; }
.source-picker { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 10px; }
.source-picker legend { padding: 0 8px; font-weight: 900; color: var(--brand-primary); }
.source-picker .check { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface-soft); justify-content: flex-start; }
.source-picker .check span { margin-left: auto; color: var(--muted); font-size: .82rem; font-weight: 800; }
.source-required {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.source-required .source-chip {
  background: linear-gradient(135deg, rgba(8,47,111,.08), rgba(227,6,19,.06));
}
.source-group { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.source-group summary { cursor: pointer; padding: 12px 14px; font-weight: 900; display: flex; justify-content: space-between; align-items: center; color: var(--brand-primary); }
.source-group summary span { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.source-tier summary {
  gap: 14px;
}
.source-tier-title {
  display: grid;
  gap: 3px;
  color: var(--brand-primary) !important;
  font-size: 1rem !important;
  text-transform: none !important;
}
.source-tier-title em {
  color: var(--muted);
  font-size: .82rem;
  font-style: normal;
  font-weight: 750;
  text-transform: none;
}
.source-search { display: grid; gap: 7px; }
.source-search input { width: 100%; }
.source-chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface-soft); max-height: 360px; overflow: auto; }
.source-chip { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--surface); text-transform: none; color: var(--ink); }
.source-chip input { margin-top: 3px; width: auto; }
.source-chip strong { display: block; font-size: .92rem; }
.source-chip small { display: block; color: var(--muted); font-weight: 800; margin-top: 3px; }
.source-chip:has(input:checked) { border-color: var(--brand-primary); box-shadow: inset 0 0 0 1px var(--brand-primary); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 16px;
  align-items: start;
}
.contact-card {
  display: grid;
  gap: 12px;
}
.contact-card h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
}

.contact-page {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .95;
  letter-spacing: 0;
}

.contact-hero .lead {
  max-width: 780px;
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.contact-quick {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(238, 13, 25, .08), rgba(8, 47, 111, .07));
}

.contact-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ee0d19;
  box-shadow: 0 0 0 4px rgba(238, 13, 25, .12);
}

.contact-lane-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contact-method {
  padding: 18px;
}

.contact-method span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--soft-blue);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-method h2,
.contact-note h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-method p,
.contact-note p,
.contact-note li {
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.contact-form-shell {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(6, 20, 46, .06);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.contact-form label,
.site-bug-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.contact-form input:not([type="hidden"]),
.contact-form select,
.contact-form textarea,
.site-bug-form input,
.site-bug-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid #b8c7dc;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: #06142e;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 1px 2px rgba(6, 20, 46, .06);
  opacity: 1;
}

.contact-form textarea,
.site-bug-form textarea {
  min-height: 178px;
  resize: vertical;
  line-height: 1.45;
}

.contact-form select {
  appearance: auto;
  cursor: pointer;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #73839a;
}

.contact-form input:not([type="hidden"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-primary);
  outline: 3px solid rgba(0, 51, 102, .16);
}

.contact-form .hidden-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn.danger {
  min-height: 48px;
  border-radius: 8px;
  font-size: 15px;
}

[data-theme="dark"] .contact-form input:not([type="hidden"]),
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
  border-color: #2d4260;
  background: #0f1b2f;
  color: #f8fafc;
}

.contact-sidebar {
  display: grid;
  gap: 12px;
}

.contact-note {
  padding: 18px;
}

.contact-note ul {
  margin: 0;
  padding-left: 20px;
}

.contact-note.urgent {
  border-color: rgba(238, 13, 25, .32);
  background: rgba(238, 13, 25, .06);
}

.form-status {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 900;
}

.form-status.success {
  background: rgba(19, 163, 74, .1);
  color: #08713a;
}

.form-status.error {
  background: rgba(238, 13, 25, .1);
  color: #b00012;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.site-bug-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  border: 0;
  border-radius: 9px;
  padding: 13px 16px;
  background: #ee0d19;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  font-weight: 900;
  cursor: pointer;
}
.site-bug-button > span:first-child { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; margin-right: 7px; font-size: 13px; }

.site-bug-modal[hidden] {
  display: none;
}

.site-bug-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.site-bug-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 30, .62);
  backdrop-filter: blur(4px);
}

.site-bug-dialog {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.site-bug-dialog h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
}

.site-bug-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--soft-blue);
  color: var(--brand-primary);
  font-weight: 900;
  cursor: pointer;
}

.site-bug-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.site-bug-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.site-bug-status {
  min-height: 22px;
  color: var(--text-muted);
  font-weight: 800;
}

body.site-bug-open {
  overflow: hidden;
}

@media (max-width: 940px) {
  .contact-hero,
  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .contact-lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .contact-lane-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero,
  .contact-form-shell,
  .contact-note,
  .contact-method {
    padding: 16px;
  }

  .site-bug-button {
    right: 12px;
    bottom: 12px;
  }
}

.admin-alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.admin-alert-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 30%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface));
  color: var(--brand-primary);
  cursor: pointer;
  font-weight: 950;
}
.admin-alert-pill.danger {
  border-color: color-mix(in srgb, var(--brand-secondary) 38%, var(--line));
  background: color-mix(in srgb, var(--brand-secondary) 8%, var(--surface));
  color: var(--brand-secondary);
}
.admin-alert-pill.quiet {
  cursor: default;
  color: var(--muted);
}
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.admin-dash-card {
  display: grid;
  gap: 5px;
  min-height: 120px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.admin-dash-card:hover,
.admin-dash-card.active {
  border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line));
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
}
.admin-dash-card.danger {
  border-color: color-mix(in srgb, var(--brand-secondary) 38%, var(--line));
}
.admin-dash-card span {
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.admin-dash-card strong {
  color: var(--brand-primary);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}
.admin-dash-card small {
  color: var(--muted);
  line-height: 1.25;
}
.admin-workbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}
.admin-workbar button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.admin-workbar button:hover,
.admin-workbar button.active {
  background: var(--brand-primary);
  color: white;
}
.admin-control-ready [data-admin-panel][hidden] {
  display: none !important;
}
.admin-panel-active {
  animation: adminPanelIn .16s ease-out;
}
@keyframes adminPanelIn {
  from { opacity: .65; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-section { scroll-margin-top: 90px; }
.admin-bug-summary { min-width: 112px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; display: grid; text-align: center; background: var(--soft); }
.admin-bug-summary strong { font-size: 32px; line-height: 1; color: var(--brand-primary); }
.admin-bug-summary span { font-weight: 900; text-transform: uppercase; font-size: 11px; color: var(--brand-accent); }
.admin-bug-summary small { color: var(--muted); margin-top: 5px; }
.admin-bug-list { display: grid; gap: 16px; margin-top: 20px; }
.admin-bug-row { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-bug-shot { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); min-height: 180px; }
.admin-bug-shot img { display: block; width: 100%; height: 220px; object-fit: cover; }
.admin-bug-shot.empty-shot { display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.admin-bug-content h3 { margin: 10px 0 6px; }
.admin-bug-content > p { line-height: 1.55; }
.admin-bug-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; }
.admin-bug-review { display: grid; grid-template-columns: 135px 100px minmax(220px, 1fr) minmax(150px, .7fr) auto; gap: 10px; align-items: end; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.admin-bug-review label { display: grid; gap: 5px; color: var(--brand-primary); font-weight: 850; font-size: 11px; text-transform: uppercase; }
.admin-bug-review input, .admin-bug-review select { width: 100%; }
.admin-section:target {
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 45%, transparent);
  outline-offset: 3px;
}
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.admin-grid form, .profile-form { display: grid; gap: 12px; }
.admin-filters { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.media-command-card form {
  display: grid;
  gap: 14px;
}
.media-command-card,
.media-command-result {
  margin: 16px 0;
}
.story-publisher-card {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}
.story-form {
  display: grid;
  gap: 14px;
}
.story-schedule-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.story-schedule-box summary {
  cursor: pointer;
  color: var(--brand-primary);
  font-weight: 900;
}
.story-schedule-box .grid {
  margin-top: 12px;
}
.story-preview-modal {
  width: min(920px, calc(100vw - 24px));
}
.story-preview-shell {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.story-preview-shell h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}
.story-preview-summary {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}
.story-preview-shell figure {
  margin: 0;
}
.story-preview-shell figure img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.admin-story-list {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.admin-story-list h3 {
  margin: 0;
}
.admin-story-row {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.admin-story-summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.admin-story-row img {
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  background: #fff;
}
.admin-story-row div {
  display: grid;
  gap: 4px;
}
.admin-story-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-story-actions {
  display: flex;
  justify-content: flex-end;
}
.story-edit-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.story-edit-details summary {
  cursor: pointer;
  color: var(--brand-primary);
  font-weight: 900;
}
.story-form.compact {
  margin-top: 12px;
}
.story-revision-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.story-revision-list h4,
.story-revision-list p {
  margin: 0;
}
.story-revision-list p {
  color: var(--muted);
}
.story-revision-list small {
  display: block;
  color: var(--brand-primary);
  font-weight: 900;
}
.article-updates {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.article-updates h2 {
  margin: 0;
  font-size: 20px;
}
.article-updates article {
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}
.article-updates time {
  display: block;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.article-updates p {
  margin: 4px 0 0;
  color: var(--text);
}
.social-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.social-copy-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.social-copy-grid h3 {
  margin: 0;
}
.social-copy-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.social-copy-grid textarea {
  min-height: 160px;
  background: var(--surface);
}
.social-preview-grid textarea {
  color: var(--muted);
}
.review-row { display: grid; grid-template-columns: 1.3fr 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-camera-list { display: grid; gap: 10px; margin-top: 14px; }
.member-admin-list { display: grid; gap: 10px; margin-top: 14px; }
.member-admin-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto repeat(4, auto) minmax(170px, 220px) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.member-admin-row div { display: grid; gap: 4px; }
.member-admin-row div span,
.member-admin-row small { color: var(--muted); font-size: 13px; }
.member-admin-row strong span { color: var(--muted); font-size: 14px; }
.member-admin-row button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* 2026-07-12: post-beta admin control center */
.admin-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  margin-bottom:14px;
  padding:20px 22px;
  border:1px solid var(--line);
  border-radius:12px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--brand-primary) 8%,var(--surface)),var(--surface) 62%);
}
.admin-hero h1{margin:3px 0 7px;font-size:clamp(30px,4vw,46px);line-height:1}
.admin-hero p{margin:0;max-width:760px}
.admin-hero-status{display:grid;gap:3px;min-width:210px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.admin-hero-status span,.admin-hero-status small{color:var(--muted);font-size:12px}
.admin-hero-status strong{color:var(--brand-primary)}
.admin-dashboard{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.admin-dash-card{min-height:104px;padding:13px;border-radius:10px}
.admin-workbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
.admin-workbar button{white-space:nowrap}
.admin-section-head{align-items:flex-start}
.admin-result-count{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:var(--soft);color:var(--brand-primary);font-size:12px;font-weight:900}
.admin-user-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}
.admin-user-metrics article{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}
.admin-user-metrics article.attention{border-color:color-mix(in srgb,var(--brand-secondary) 35%,var(--line))}
.admin-user-metrics span{color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase}
.admin-user-metrics strong{color:var(--brand-primary);font-size:26px;line-height:1}
.admin-search-field{grid-column:span 2}
.member-admin-list{gap:12px}
.member-admin-row{
  grid-template-columns:minmax(320px,1fr) minmax(170px,auto) minmax(260px,auto);
  gap:14px;
  padding:14px;
  border-radius:10px;
  background:var(--surface);
  box-shadow:0 5px 18px rgba(8,47,111,.05);
}
.admin-user-identity{display:grid!important;grid-template-columns:46px minmax(0,1fr);gap:11px!important;align-items:center}
.admin-user-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:linear-gradient(145deg,var(--brand-primary),#1565a9);color:#fff;font-weight:950;letter-spacing:.03em}
.admin-user-identity>div{min-width:0}
.admin-user-identity strong{display:flex;align-items:center;gap:7px;font-size:16px}
.admin-user-identity strong em{padding:2px 6px;border-radius:999px;background:var(--soft);color:var(--brand-primary);font-size:10px;font-style:normal;text-transform:uppercase}
.admin-user-identity span,.admin-user-identity small{overflow-wrap:anywhere}
.admin-user-badges{align-content:center!important;justify-items:start}
.admin-user-badges .pill{font-size:11px}
.pill.status-approved{background:#dcfce7;color:#166534}
.pill.status-pending{background:#fef3c7;color:#92400e}
.pill.status-suspended{background:#ffedd5;color:#9a3412}
.pill.status-banned,.pill.status-rejected{background:#fee2e2;color:#991b1b}
.admin-user-primary-actions{display:flex!important;align-items:end;justify-content:flex-end;gap:8px!important;flex-wrap:wrap}
.admin-user-primary-actions label{display:grid;gap:4px;color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase}
.admin-user-primary-actions select{min-height:36px}
.admin-user-security{grid-column:1/-1;border-top:1px solid var(--line);padding-top:9px}
.admin-user-security summary{width:fit-content;cursor:pointer;color:var(--brand-primary);font-size:12px;font-weight:900}
.admin-user-security>div{display:flex!important;align-items:end;gap:8px!important;flex-wrap:wrap;margin-top:10px;padding:11px;border-radius:8px;background:var(--soft)}
.admin-user-security label{display:grid;gap:4px;min-width:230px;color:var(--muted);font-size:11px;font-weight:900}
@media(max-width:900px){
  .admin-hero{grid-template-columns:1fr}.admin-hero-status{min-width:0}
  .admin-user-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-search-field{grid-column:auto}
  .member-admin-row{grid-template-columns:1fr}
  .admin-user-primary-actions{justify-content:flex-start}
  .admin-user-security{grid-column:auto}
}
.newsletter-metrics {
  margin: 12px 0 16px;
}
.newsletter-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.newsletter-admin-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.newsletter-admin-row div {
  display: grid;
  gap: 4px;
}
.newsletter-admin-row div span,
.newsletter-admin-row small {
  color: var(--muted);
  font-size: 13px;
}
.newsletter-admin-row strong span {
  color: var(--muted);
  font-size: 14px;
}
.inline-admin-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.inline-admin-field input {
  min-height: 38px;
  font-size: 13px;
  text-transform: none;
}
.camera-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.camera-admin-row div { display: grid; gap: 4px; }
.camera-admin-row span:not(.pill) { color: var(--muted); font-size: 13px; }

.submit-modal {
  width: min(820px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.submit-modal::backdrop { background: rgba(8, 17, 34, .6); }
.submit-modal form { padding: 22px; display: grid; gap: 12px; }
.x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); cursor: pointer; }
.notice { padding: 12px; background: var(--soft); border-radius: 8px; color: var(--ink); }
.notice.strong { border: 1px solid color-mix(in srgb, var(--brand-secondary) 45%, var(--line)); background: color-mix(in srgb, var(--brand-secondary) 8%, var(--surface)); }
.legal-copy { display: grid; gap: 12px; }
.legal-copy h2 { margin: 14px 0 0; }
.legal-copy p, .legal-copy li { color: var(--muted); font-weight: 650; line-height: 1.6; }
.legal-copy ul { margin: 0; padding-left: 22px; }
.footer { display: flex; align-items: center; gap: 12px; padding: 24px clamp(16px, 5vw, 56px); border-top: 1px solid var(--line); color: var(--muted); }
.footer img { width: 82px; }
.footer div { display: grid; gap: 6px; }
.footer small { font-size: 13px; }
.footer a { color: var(--brand-primary); }
.footer .network-links { display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: baseline; font-size: 12px; line-height: 1.5; }
.footer .network-links strong { color: var(--ink); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 1050px) {
  .map-layout, .admin-dashboard, .admin-grid, .contact-layout, .near-results, .briefing-body, .weather-card, .weather-page-hero, .weather-dashboard, .transit-layout, .worldcup-layout, .trip-planner, .social-copy-grid { grid-template-columns: 1fr; }
  .today-hero, .near-me-card, .briefing-top, .video-head, .video-section-title, .resident-location { grid-template-columns: 1fr; align-items: stretch; flex-direction: column; }
  .resident-location form { display: grid; grid-template-columns: 1fr; }
  .resident-location label { min-width: 0; }
  .briefing-tools { justify-items: stretch; min-width: 0; }
  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-page-feature-grid, .news-page-grid, .news-page-grid.mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-feed { max-height: none; }
  .camera-grid, .clip-grid, .video-alert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-admin-row, .newsletter-admin-row { grid-template-columns: 1fr; align-items: stretch; }
  .admin-bug-review { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .news-filter-bar, .news-page-feature-grid, .news-page-grid, .news-page-grid.mixed { grid-template-columns: 1fr; }
  .news-page-card.lead,
  .news-page-grid.mixed .news-page-card.lead { grid-column: auto; grid-row: auto; }
  .news-page-card.lead strong { font-size: 24px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  input, select, textarea { font-size: 16px; }
  .topbar {
    position: static;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px;
  }
  .brand img { width: 86px; }
  .topbar nav {
    width: auto;
    min-width: 0;
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px;
    gap: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .nav-more { flex: 0 0 auto; }
  .nav-more > div { position: fixed; top: 74px; right: 12px; left: 12px; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar nav a,
  .theme-toggle {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 8px 11px;
    white-space: nowrap;
    scroll-snap-align: start;
    font-size: 14px;
  }
  .filters, .grid.two, .camera-grid, .clip-grid, .video-alert-grid, .video-switch, .signal-grid, .weather-details, .weather-mini-grid, .daily-forecast-grid, .county-chip-grid, .traffic-view-summary, .source-required { grid-template-columns: 1fr; }
  .panel-head, .page-head { align-items: flex-start; flex-direction: column; }
  .facebook-feed-head { align-items: stretch; flex-direction: column; }
  .facebook-feed-frame { min-height: 680px; }
  .news-head { align-items: stretch; flex-direction: column; }
  .news-list { grid-template-columns: 1fr; }
  .news-filter-bar, .news-page-feature-grid, .news-page-grid, .news-page-grid.mixed { grid-template-columns: 1fr; }
  .news-page-card.lead { grid-column: auto; grid-row: auto; }
  .news-page-card.lead strong { font-size: 24px; }
  .news-item.featured .news-thumb { aspect-ratio: 16 / 9; }
  .news-item.featured.logo-fallback .news-thumb,
  .news-page-card.lead.logo-fallback .news-thumb { min-height: 190px; max-height: 220px; }
  .news-item.featured.logo-fallback .news-thumb img,
  .news-page-card.lead.logo-fallback .news-thumb img { width: 150px; height: 150px; }
  .briefing-modes { width: 100%; }
  .mode { flex: 1; justify-content: center; }
  .nj-map { min-height: 500px; }
  .leaflet-popup { max-width: calc(100vw - 24px); }
  .leaflet-popup-content-wrapper { width: 100%; border-radius: 14px; }
  .leaflet-popup-content {
    width: calc(100vw - 72px) !important;
    max-width: 342px;
    min-width: 280px;
    max-height: min(62vh, 590px);
    margin: 16px !important;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 15px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #nj-map .selected-incident-panel {
    top: 8px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: min(62vh, 540px);
  }
  #nj-map .selected-incident-scroll {
    max-height: min(62vh, 540px);
    padding: 16px;
  }
  .map-popup { gap: 11px; }
  .map-popup h3 { font-size: 21px; line-height: 1.2; }
  .map-popup > .muted { font-size: 15px; line-height: 1.45; }
  .popup-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .popup-meta span { min-width: 0; padding: 9px; overflow-wrap: anywhere; }
  .incident-share-actions .btn { flex: 1 1 118px; justify-content: center; min-height: 42px; }
  .map-popup video, .map-popup img, .map-popup iframe { max-height: 300px; object-fit: contain; }
  .camera-popup .camera-preview { min-width: 0; }
  .review-row, .rank-row, .camera-admin-row, .member-admin-row, .newsletter-admin-row, .admin-story-row, .admin-story-summary { grid-template-columns: 1fr; }
  .admin-bug-row, .admin-bug-review { grid-template-columns: 1fr; }
  .admin-bug-shot img { height: 200px; }
  .admin-story-actions { justify-content: stretch; }
  .admin-story-actions .btn { width: 100%; }
  .article-hero, .article-body, .article-video, .article-actions { padding: 15px; }
  .article-video iframe, .article-video video { min-height: 260px; }
  .related-story-grid, .trust-grid { grid-template-columns: 1fr; }
  .article-byline { gap: 5px 9px; }
  .article-byline span:not(:first-child)::before, .article-byline time::before { margin-right: 9px; }
  .site-bug-button { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
  .site-bug-button > span:first-child { margin: 0; }
  .site-bug-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.events-hero { display:flex; align-items:end; justify-content:space-between; gap:28px; background:linear-gradient(135deg,#fff 0%,#eef6ff 58%,#fff5f6 100%); }
.events-hero > div:first-child { max-width:780px; }
.events-hero h1 { max-width:720px; }
.events-hero-actions { display:flex; gap:10px; flex-wrap:wrap; flex:0 0 auto; }
.event-filter-card { margin-top:18px; }
.event-filters { display:grid; grid-template-columns:repeat(3,minmax(170px,1fr)) auto auto; gap:12px; align-items:end; }
.event-filters label { display:grid; gap:6px; font-size:12px; font-weight:900; color:var(--brand-primary); text-transform:uppercase; letter-spacing:.04em; }
.events-section { margin:30px 0; }
.featured-disclosure { color:var(--muted); font-size:12px; font-weight:800; }
.event-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.event-card { overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 14px 38px rgba(12,44,91,.08); display:flex; flex-direction:column; min-width:0; }
.event-card.is-featured { border-color:#f3b2b9; box-shadow:0 16px 44px rgba(205,23,42,.13); }
.event-card-image { display:block; aspect-ratio:16/9; overflow:hidden; background:var(--soft); }
.event-card-image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.event-card:hover .event-card-image img { transform:scale(1.025); }
.event-card-body { padding:18px; display:flex; flex-direction:column; gap:12px; flex:1; }
.event-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.event-card-top time { width:54px; min-width:54px; height:60px; border:1px solid var(--line); border-radius:12px; display:grid; place-content:center; text-align:center; background:var(--soft); }
.event-card-top time strong { color:var(--brand-accent); font-size:11px; line-height:1; }
.event-card-top time span { color:var(--brand-primary); font-weight:950; font-size:24px; line-height:1.05; }
.event-card-top > div { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.event-card h3 { margin:0; font-size:22px; line-height:1.15; }
.event-card h3 a { color:var(--brand-primary); text-decoration:none; }
.event-card p { margin:0; color:var(--muted); line-height:1.5; }
.event-card dl,.event-detail-facts dl,.admin-event-review dl { margin:0; display:grid; gap:9px; }
.event-card dl div,.event-detail-facts dl div,.admin-event-review dl div { display:grid; grid-template-columns:78px 1fr; gap:8px; }
.event-card dt,.event-detail-facts dt,.admin-event-review dt { font-size:11px; text-transform:uppercase; letter-spacing:.05em; font-weight:900; color:var(--muted); }
.event-card dd,.event-detail-facts dd,.admin-event-review dd { margin:0; color:var(--brand-primary); font-weight:750; }
.event-card-link { margin-top:auto; font-weight:900; color:var(--brand-primary); }
[data-theme="dark"] .events-hero { background:linear-gradient(135deg,#0f1b2d 0%,#112743 58%,#24171f 100%); }
[data-theme="dark"] .event-card,
[data-theme="dark"] .event-submit-form fieldset,
[data-theme="dark"] .admin-event-review { background:var(--surface); }
[data-theme="dark"] .event-card h3 a,
[data-theme="dark"] .event-card dd,
[data-theme="dark"] .event-card-link,
[data-theme="dark"] .event-submit-form legend,
[data-theme="dark"] .event-submit-form label,
[data-theme="dark"] .event-filters label { color:var(--ink); }
[data-theme="dark"] .event-card p,
[data-theme="dark"] .event-card dt,
[data-theme="dark"] .event-submit-form label small { color:var(--muted); }
[data-theme="dark"] .event-card-top time,
[data-theme="dark"] .event-login-prompt { background:var(--soft); border-color:var(--line); }
[data-theme="dark"] .event-card-top time span { color:var(--ink); }
[data-theme="dark"] .feature-interest { background:#102a4a!important; border-color:#31577f!important; }
.event-empty { text-align:center; padding:42px; }
.event-submit-card { scroll-margin-top:90px; }
.event-step { padding:9px 12px; border-radius:999px; background:#fff4dc; color:#8a5100; font-weight:900; font-size:12px; }
.event-login-prompt { padding:28px; border:1px dashed var(--line); border-radius:16px; background:var(--soft); }
.event-login-prompt .btn { margin-right:8px; }
.event-submit-form { display:grid; gap:18px; }
.event-submit-form fieldset { margin:0; padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.event-submit-form legend { padding:0 8px; font-size:15px; font-weight:950; color:var(--brand-primary); }
.event-submit-form label { display:grid; gap:6px; font-weight:850; color:var(--brand-primary); }
.event-submit-form label small { font-weight:600; color:var(--muted); }
.event-submit-form .span-two { grid-column:1/-1; }
.event-submit-form .check { display:flex; grid-template-columns:none; align-items:flex-start; }
.event-honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.feature-interest { background:#f3f8ff!important; border-color:#b8ccec!important; }
.event-promo-preview { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr) auto; gap:26px; align-items:center; margin:30px 0; background:linear-gradient(135deg,#061b3f,#0b3a80); color:#fff; }
.event-promo-preview h2,.event-promo-preview p { color:#fff; }
.event-promo-preview ul { margin:0; display:grid; gap:8px; }
.event-detail { max-width:1180px; margin:0 auto; }
.event-back { display:inline-block; margin-bottom:14px; font-weight:900; }
.event-detail-hero { position:relative; overflow:hidden; min-height:460px; border-radius:22px; background:#06162f; }
.event-detail-hero:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 25%,rgba(2,13,32,.9) 100%); }
.event-detail-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.event-detail-title { position:absolute; z-index:1; left:0; right:0; bottom:0; padding:42px; color:#fff; }
.event-detail-title h1 { color:#fff; max-width:850px; margin:12px 0; font-size:clamp(38px,6vw,68px); line-height:.98; }
.event-detail-title p { max-width:760px; margin:0; font-size:19px; line-height:1.5; }
.event-detail-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr); gap:20px; margin-top:20px; align-items:start; }
.event-detail-copy p { font-size:17px; line-height:1.72; }
.event-detail-facts { position:sticky; top:90px; display:grid; gap:16px; }
.admin-event-review-list { display:grid; gap:16px; margin-top:18px; }
.admin-event-review { display:grid; grid-template-columns:220px minmax(0,1fr); gap:18px; padding:16px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.admin-event-review > img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; background:var(--soft); }
.admin-event-review h3 { margin:10px 0 6px; }
.admin-event-actions { display:grid; grid-template-columns:minmax(200px,1fr) auto auto; gap:10px; align-items:end; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.admin-event-actions label { display:grid; gap:5px; font-size:11px; text-transform:uppercase; font-weight:900; }

@media (max-width: 980px) {
  .event-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .event-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .event-promo-preview { grid-template-columns:1fr; }
}

@media (max-width: 680px) {
  .events-hero { display:grid; align-items:start; }
  .events-hero-actions,.events-hero-actions .btn { width:100%; }
  .event-filters,.event-grid,.event-detail-layout { grid-template-columns:1fr; }
  .event-filters .btn { width:100%; }
  .event-submit-form .grid.two { grid-template-columns:1fr; }
  .event-submit-form .span-two { grid-column:auto; }
  .event-submit-form fieldset { padding:14px; }
  .event-detail-hero { min-height:520px; }
  .event-detail-title { padding:24px; }
  .event-detail-title h1 { font-size:40px; }
  .event-detail-title p { font-size:16px; }
  .event-detail-facts { position:static; }
  .admin-event-review { grid-template-columns:1fr; }
  .admin-event-actions { grid-template-columns:1fr; }
}
