:root {
  color-scheme: light;
  --bg: #f7f1e8;
  --panel: #fbf7ef;
  --panel-strong: #ffffff;
  --paper: #fffaf1;
  --ink: #172033;
  --text: #20263a;
  --text-muted: #646b7b;
  --border: #d7cfc1;
  --border-strong: #b9ad9c;
  --navy: #16223a;
  --navy-soft: #263650;
  --accent: #9e2f2f;
  --accent-strong: #7d2424;
  --gold: #e7b63e;
  --blue: #234b8f;
  --danger: #b9342f;
  --warning: #b86f00;
  --success: #27724a;
  --info: #315da8;
  --shadow: 0 12px 28px rgba(22, 34, 58, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(247, 241, 232, 1) 360px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-masthead {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy);
  color: #ffffff;
}

.site-masthead-inner {
  display: flex;
  width: min(1180px, 100%);
  min-height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.site-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.flag-mark {
  position: relative;
  display: inline-grid;
  width: 50px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.flag-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.top-nav a {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.top-nav a:hover {
  border-color: var(--border-strong);
}

.site-masthead .top-nav a {
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
}

.site-masthead .top-nav a:hover {
  border-bottom-color: var(--gold);
  color: #ffffff;
}

.top-nav a:focus-visible,
.help-controls input:focus-visible,
.filter-row button:focus-visible,
.nearby-actions button:focus-visible,
.btn-link:focus-visible,
.nearby-item a:focus-visible,
.supply-site a:focus-visible,
.nearby-remote-list a:focus-visible,
.trusted-sources a:focus-visible {
  outline: 3px solid rgba(231, 182, 62, 0.55);
  outline-offset: 3px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.panel {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 100vh;
  min-width: 0;
  overflow: auto;
  padding: 24px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-header {
  display: grid;
  gap: 8px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}

h2 {
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}

.lede {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.notice {
  padding: 12px 14px;
  border: 1px solid rgba(184, 111, 0, 0.35);
  border-radius: 3px;
  background: rgba(184, 111, 0, 0.09);
  color: #563805;
  font-size: 0.88rem;
  line-height: 1.4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stats div {
  min-height: 82px;
  padding: 13px 12px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 0;
  background: var(--paper);
}

.stats span {
  display: block;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}

.stats small,
.muted {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.controls {
  display: grid;
  gap: 8px;
}

.exports {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.exports a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.exports a:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.35);
  outline-offset: 3px;
}

.monitor-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.monitor-grid div {
  padding: 8px;
  border-radius: 8px;
  background: rgba(31, 122, 140, 0.07);
}

.monitor-grid span {
  display: block;
  font-size: 1.12rem;
  font-weight: 850;
}

.monitor-grid small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.controls label {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.controls select {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.list-section {
  display: grid;
  gap: 10px;
}

.report-list,
.source-list {
  display: grid;
  gap: 8px;
}

.report-item,
.source-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
}

.report-item button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.report-item button:focus-visible,
.controls select:focus-visible,
.source-item a:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.35);
  outline-offset: 3px;
}

.report-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.official,
.badge.confirmed {
  background: rgba(39, 114, 74, 0.13);
  color: var(--success);
}

.badge.probable {
  background: rgba(56, 103, 183, 0.13);
  color: var(--info);
}

.badge.needs_verification {
  background: rgba(184, 111, 0, 0.13);
  color: var(--warning);
}

.badge.auto {
  background: rgba(31, 122, 140, 0.12);
  color: var(--accent-strong);
}

.report-summary,
.source-item p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.report-meta {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.map-wrap {
  position: relative;
  min-width: 0;
  height: 100vh;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.leaflet-container {
  overflow: hidden;
}

.map-legend {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: 0 8px 22px rgba(29, 36, 48, 0.15);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 999px;
}

.legend-dot.epicenter {
  background: var(--danger);
}

.legend-dot.damage {
  background: #7f4f24;
}

.legend-dot.hospital {
  background: var(--info);
}

.legend-dot.supply {
  background: var(--success);
}

.legend-dot.international {
  background: var(--info);
}

.legend-dot.guidance {
  background: var(--warning);
}

.leaflet-popup-content {
  min-width: 220px;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.popup-title {
  margin-bottom: 4px;
  font-weight: 800;
}

.popup-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 7px 0;
}

.popup-tags span {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(31, 122, 140, 0.11);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 750;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.55);
}

.help-shell {
  display: grid;
  gap: 22px;
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 24px 44px;
}

.help-hero {
  display: grid;
  gap: 18px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--border);
}

.help-hero h1 {
  max-width: 940px;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.96;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.help-hero .lede {
  max-width: 880px;
  color: #3f4656;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.48;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 250, 241, 0.72);
}

.trust-strip div {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.trust-strip span {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.help-notice {
  max-width: 100%;
}

.live-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 0;
  background: var(--paper);
}

.live-card p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.live-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.status-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-chip.ok,
.status-chip.running {
  background: rgba(39, 114, 74, 0.13);
  color: var(--success);
}

.status-chip.waiting {
  background: rgba(31, 122, 140, 0.12);
  color: var(--accent-strong);
}

.status-chip.error {
  background: rgba(188, 61, 47, 0.13);
  color: var(--danger);
}

.status-chip.stopped {
  background: rgba(184, 111, 0, 0.13);
  color: var(--warning);
}

.nearby-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 0;
  background: var(--paper);
}

.nearby-card h2 {
  margin-top: 4px;
  font-size: 1.2rem;
}

.nearby-card p {
  margin-top: 6px;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.nearby-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.nearby-actions button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  background: var(--navy);
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.nearby-actions button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.nearby-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.nearby-empty {
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.nearby-empty p {
  margin-top: 4px;
}

.nearby-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel-strong);
}

.nearby-item h3 {
  margin: 6px 0 4px;
  font-size: 1rem;
}

.nearby-item p {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.nearby-item small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.distance-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(39, 114, 74, 0.13);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 850;
}

.nearby-item a,
.nearby-remote-list a {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.nearby-remote-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.nearby-remote-list a {
  justify-items: start;
  min-height: 58px;
  background: var(--panel-strong);
}

.nearby-remote-list span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.help-map-section {
  display: grid;
  gap: 10px;
}

.help-map-wrap {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel-strong);
}

#help-map {
  width: 100%;
  height: 420px;
  min-height: 360px;
}

.help-map-legend {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: 0 8px 22px rgba(29, 36, 48, 0.15);
}

.help-controls {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--paper);
}

.help-controls label {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.help-controls input {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-row button.active {
  border-color: rgba(158, 47, 47, 0.45);
  background: rgba(158, 47, 47, 0.09);
  color: var(--accent-strong);
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
}

.help-results,
.supply-section {
  display: grid;
  gap: 12px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.help-card,
.supply-site {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel-strong);
}

.help-card h2 {
  font-size: 1.16rem;
  font-family: Georgia, "Times New Roman", serif;
}

.help-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.help-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.type-pill,
.trust-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.type-pill.money {
  background: rgba(39, 114, 74, 0.13);
  color: var(--success);
}

.type-pill.supplies {
  background: rgba(184, 111, 0, 0.13);
  color: var(--warning);
}

.type-pill.skills,
.type-pill.data {
  background: rgba(31, 122, 140, 0.12);
  color: var(--accent-strong);
}

.type-pill.health {
  background: rgba(56, 103, 183, 0.13);
  color: var(--info);
}

.type-pill.logistics {
  background: rgba(111, 90, 168, 0.13);
  color: #5e4b92;
}

.trust-pill {
  background: rgba(29, 36, 48, 0.07);
  color: var(--text-muted);
}

.help-org {
  font-weight: 800;
}

.help-steps {
  display: grid;
  gap: 8px;
  margin: 0;
}

.help-steps div {
  display: grid;
  gap: 3px;
}

.help-steps dt {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.help-steps dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.reach-row span {
  border-color: rgba(31, 122, 140, 0.32);
  color: var(--accent-strong);
}

.btn-link {
  display: inline-grid;
  min-height: 44px;
  width: fit-content;
  place-items: center;
  padding: 0 13px;
  border-radius: 3px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
}

.source-note,
.sidebar-note,
.section-lede {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.help-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
}

.help-sidebar section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--paper);
}

.help-sidebar ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.trusted-sources {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.trusted-sources a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.supply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.supply-site {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.supply-site h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.supply-site p {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.supply-site small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.supply-site a {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-masthead-inner {
    min-height: 0;
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-masthead .top-nav {
    width: 100%;
  }

  .site-masthead .top-nav a {
    min-height: 34px;
  }

  .shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .panel {
    width: 100%;
    max-height: none;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }

  .sources-section {
    display: none;
  }

  .section-title {
    flex-wrap: wrap;
  }

  .map-wrap {
    height: 56vh;
    min-height: 420px;
  }

  #map {
    min-height: 420px;
  }

  .map-legend {
    right: 10px;
    bottom: 10px;
  }

  .help-shell {
    padding: 18px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-sidebar {
    position: static;
  }

  #help-map {
    height: 380px;
  }

  .nearby-card {
    grid-template-columns: 1fr;
  }

  .live-card {
    grid-template-columns: 1fr;
  }

  .live-meta {
    justify-items: start;
    text-align: left;
  }

  .nearby-actions {
    justify-items: stretch;
  }

  .nearby-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-masthead-inner {
    padding: 12px 14px;
  }

  .site-brand {
    align-items: flex-start;
  }

  .flag-mark {
    width: 44px;
    height: 30px;
  }

  .site-masthead .top-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .site-masthead .top-nav a {
    justify-content: start;
  }

  .stats,
  .help-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel {
    gap: 14px;
  }

  .exports {
    grid-template-columns: 1fr;
  }

  .monitor-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .report-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-wrap {
    height: 58vh;
    min-height: 360px;
  }

  #map {
    min-height: 360px;
  }

  .help-shell {
    padding: 14px;
  }

  .filter-row button {
    flex: 1 1 140px;
  }

  .help-grid,
  .supply-grid {
    grid-template-columns: 1fr;
  }

  .supply-site {
    grid-template-columns: 1fr;
  }

  .btn-link,
  .nearby-item a,
  .supply-site a {
    width: 100%;
  }

  .nearby-item {
    grid-template-columns: 1fr;
  }

  #help-map {
    height: 340px;
    min-height: 340px;
  }

  .help-map-wrap {
    min-height: 340px;
  }

  .help-map-legend {
    right: 8px;
    bottom: 8px;
  }
}
