.home-map-background,
.home-map-background main,
.home-map-background .updates,
.home-map-background .regions,
.home-map-background .live-operations,
.home-map-background footer {
  background-color: var(--cream);
}

.home-map-background {
  --home-section-space: 30px;
}

.hero {
  position: relative;
  display: block;
  grid-template-columns: 1fr;
  min-height: 0;
  margin-top: 20px;
  padding-top: 0;
}

.hero .map-card {
  position: relative;
  top: -70px;
  width: calc(100vw - 90px);
  margin-left: calc(-350px - max(5vw, 32px));
  border-radius: 0;
}

.hero .map-card > .map-head {
  padding-left: max(6px, calc(max(5vw, 32px) - 45px));
}

.hero .hero-copy {
  position: absolute;
  z-index: 500;
  top: 88px;
  left: max(5vw, 32px);
  width: min(350px, calc(100vw - 64px));
  padding: 13px 16px;
  border-radius: 6px;
  background: transparent;
  color: #111;
  pointer-events: none;
}

.hero .hero-copy h1 {
  margin: 0 0 27px;
  color: #111;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
}

.hero .hero-copy h1 em {
  color: #111;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.updates .section-heading h2,
.updates .update-card h3 {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.hero .hero-copy > p:last-child {
  max-width: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.map-search-control {
  position: absolute;
  z-index: 501;
  top: 247px;
  left: calc(max(5vw, 32px) + 9px);
  width: 344px;
  height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(9, 40, 58, 0.45);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
  font-family: "Open Sans", Arial, sans-serif;
}

.map-search-control input,
.filter-shell,
.filter-shell button,
.filter-shell a {
  font-family: "Open Sans", Arial, sans-serif;
}

.map-search-control .search {
  min-width: 0;
  padding: 0 9px;
}

.map-search-control .search-go {
  height: 100%;
  border-radius: 0;
}

.filter-shell {
  display: grid;
  position: absolute;
  z-index: 502;
  top: -10px;
  left: max(6px, calc(max(5vw, 32px) - 45px));
  width: 344px;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(9, 40, 58, 0.22);
  background: transparent;
  box-shadow: none;
}

.filter-shell .filter-button {
  height: 38px;
  padding-inline: 22px;
  border-radius: 6px;
  background: #fff;
  background-clip: padding-box;
  color: #111;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

.filter-shell .dropdown-wrap:not(:last-child) .filter-button {
  border-right: 10px solid transparent;
}

.filter-shell .dropdown-wrap:last-child .filter-button {
  border-right: 0;
}

.hero > .filter-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 344px;
  max-width: none;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(9, 40, 58, 0.32);
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.hero > .filter-shell .filter-button {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-right: 4px solid rgba(9, 40, 58, 0.28);
  border-radius: 0;
  white-space: nowrap;
}

.hero > .filter-shell .dropdown-wrap:first-child .filter-button {
  border-radius: 4px 0 0 4px;
}

.hero > .filter-shell .dropdown-wrap:last-child .filter-button {
  border-right: 0;
  border-radius: 0 4px 4px 0;
}

.home-crisis-briefs {
  position: absolute;
  z-index: 600;
  top: 75.5px;
  right: 40px;
  width: 264px;
  height: 372px;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e1e3;
  border-radius: 8px;
}

.home-crisis-briefs > h2 {
  margin: 0;
  padding: 9px 10px 7px;
  border-bottom: 1px solid #d7e1e3;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.home-crisis-brief {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 8px;
  border-bottom: 1px solid #d7e1e3;
}

.home-crisis-brief:last-child {
  border-bottom: 0;
}

.home-crisis-brief-image,
.home-crisis-brief-image img {
  width: 72px;
  height: 100%;
  min-height: 0;
}

.home-crisis-brief-image {
  align-self: stretch;
}

.home-crisis-brief-image img {
  display: block;
  object-fit: contain;
  object-position: 50% 0;
  background: #f0f5f5;
}

.home-crisis-brief-copy {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.home-crisis-brief-copy h3 {
  margin: 0 0 3px;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.home-crisis-brief-copy h3 a:hover {
  color: #087faa;
}

.home-crisis-brief-copy h3 a {
  display: block;
  max-width: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-crisis-brief-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #5e727a;
  font-size: 9px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-crisis-brief-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 0;
  margin-top: 3px;
  font-size: 8px;
  line-height: 1;
}

.home-crisis-brief-meta time,
.home-crisis-brief-meta span {
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-crisis-brief-meta time {
  background: #edf2f3;
  color: #40565f;
}

.home-crisis-brief-meta span {
  background: transparent;
  color: #40565f;
  font-weight: 800;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.map-stats-overlay {
  position: absolute;
  z-index: 500;
  right: auto;
  bottom: 20px;
  left: max(11px, calc(max(5vw, 32px) - 40px));
  width: 442px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid rgba(9, 40, 58, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: #111;
  backdrop-filter: blur(2px);
}

.world-map .map-tip {
  bottom: 44px;
}

.map-stats-overlay a {
  min-width: 0;
  padding: 11px 6px 10px;
  border-right: 1px solid rgba(9, 40, 58, 0.24);
  text-align: center;
}

.map-stats-overlay a:last-child {
  border-right: 0;
}

.map-stats-overlay a:first-child {
  border-radius: 9px 0 0 9px;
}

.map-stats-overlay a:last-child {
  border-radius: 0 9px 9px 0;
}

.map-stats-overlay b {
  display: block;
  overflow: hidden;
  color: #111;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-stats-overlay span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 6px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-map {
  height: 402px;
}

/* Front-page section rhythm is maintained here, in one stylesheet. */
.home-map-background .regions {
  position: relative;
  margin-top: -20px;
  padding-top: var(--home-section-space);
  padding-bottom: var(--home-section-space);
}

@media (max-width: 800px) {
  .home-map-background .regions { margin-top: -20px; }
  .hero .map-card {
    top: 0;
    width: calc(100vw - 40px);
    margin-left: calc(0px - max(5vw, 32px));
  }

  .hero .map-card > .map-head {
    padding-left: max(8px, calc(max(5vw, 32px) - 20px));
  }

  .world-map {
    height: 317px;
  }

  .home-crisis-briefs {
    position: static;
    width: calc(100vw - 40px);
    height: auto;
    margin: 46px 0 0 calc(20px - max(5vw, 32px));
    grid-template-rows: none;
    grid-auto-rows: minmax(88px, auto);
  }

  .map-search-control {
    top: 247px;
    width: min(344px, calc(100vw - 64px));
  }

  .filter-shell {
    top: 319px;
    width: min(344px, calc(100vw - 64px));
  }

  .map-stats-overlay {
    right: 8px;
    bottom: 20px;
    left: max(8px, calc(max(5vw, 32px) - 20px));
    width: auto;
  }

  .world-map .map-tip {
    bottom: 40px;
  }

  .map-stats-overlay a {
    padding: 4px 1px 3px;
  }

  .map-stats-overlay b {
    font-size: 11px;
  }

  .map-stats-overlay span {
    font-size: 5px;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .hero .map-card {
    margin-left: 0;
  }

  .home-crisis-briefs {
    margin-left: 0;
  }

  .hero .hero-copy {
    left: 20px;
    width: calc(100vw - 40px);
    padding: 10px 12px;
  }

  .hero .hero-copy h1 {
    font-size: 23px;
  }

  .map-search-control {
    top: 206px;
    left: 20px;
    width: calc(100vw - 40px);
  }

  .filter-shell {
    top: 278px;
    left: 20px;
    width: calc(100vw - 40px);
    grid-template-columns: 1fr 1fr;
  }
}
.map-source-context{padding:15px 18px 17px;border-top:1px solid var(--line);background:#fff;color:#526970;font:12px/1.5 "Open Sans",Arial,sans-serif}
.map-source-context strong{display:block;margin-bottom:3px;color:var(--navy);font-size:13px}
.map-source-context p{margin:0 0 8px;max-width:900px}
.map-source-breakdown{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}
.map-source-breakdown span,.map-source-breakdown>a{display:inline-flex;gap:4px;align-items:baseline;padding:4px 7px;border:1px solid #dbe5e7;border-radius:4px;background:#f7faf9;color:#526970;font-size:11px}
.map-source-breakdown b{color:var(--navy);font-size:12px}
.map-source-breakdown>a:hover{border-color:var(--blue);text-decoration:none}
.map-source-context nav{display:flex;flex-wrap:wrap;gap:5px 15px}
.map-source-context nav span{color:var(--blue);font-weight:700}
.home-footer{display:block;padding:0;background:#f7faf9;border-top:1px solid var(--line)}.footer-map-sources{max-width:1200px;margin:auto;padding:28px max(3vw,22px);display:grid;grid-template-columns:minmax(260px,1fr) minmax(480px,1.35fr);gap:35px;align-items:center}.footer-map-source-copy strong{display:block;margin-bottom:5px;color:var(--navy);font:700 15px/1.3 "Open Sans",Arial,sans-serif}.footer-map-source-copy p{margin:0;color:#526970;font:12px/1.55 "Open Sans",Arial,sans-serif}.footer-map-sources nav{display:grid;grid-template-columns:repeat(6,minmax(58px,1fr));gap:10px}.footer-map-sources nav a{min-width:0;display:grid;grid-template-rows:46px auto;place-items:center;gap:5px;padding:8px 5px;border:1px solid #dce6e8;border-radius:6px;background:#fff;color:#526970;font:700 9px/1.2 "Open Sans",Arial,sans-serif;transition:.2s}.footer-map-sources nav a:hover{border-color:var(--blue);transform:translateY(-2px)}.footer-map-sources nav img{display:block;max-width:72px;width:100%;height:42px;object-fit:contain;background:#fff}.home-footer-base{display:flex;justify-content:space-between;padding:18px max(5vw,32px);border-top:1px solid var(--line);color:#60747c;font-size:11px}@media(max-width:850px){.footer-map-sources{grid-template-columns:1fr}.footer-map-sources nav{grid-template-columns:repeat(3,1fr)}}@media(max-width:480px){.footer-map-sources nav{grid-template-columns:repeat(2,1fr)}.home-footer-base{gap:12px;flex-direction:column}}
.live-operations { position: relative; z-index: 8; margin-top: -170px; padding: var(--home-section-space) max(5vw,32px); background: #fff; }
.seismic-source-panel { position:relative; z-index:9; max-width:1200px; margin:-76px auto 126px; padding:0 max(5vw,32px); }
.seismic-source-panel[hidden] { display:none; }
.seismic-alert-card { display:grid; grid-template-columns:76px minmax(280px,1.6fr) minmax(190px,.8fr) 250px; align-items:center; gap:22px; min-height:154px; padding:20px 24px 16px; color:#10283a; background:#fff; border:1px solid #cfdde3; border-left:7px solid #138bc5; border-radius:10px; box-shadow:0 14px 40px rgba(13,38,55,.14); text-decoration:none; transition:transform .25s ease,box-shadow .25s ease; }
.seismic-alert-card:hover { transform:translateY(-2px); box-shadow:0 18px 46px rgba(13,38,55,.2); }
.seismic-magnitude { display:grid; place-items:center; width:66px; height:66px; border-radius:50%; color:#fff; background:#138bc5; font-size:28px; font-weight:900; letter-spacing:-1px; }
.seismic-identity { display:flex; align-items:center; gap:15px; min-width:0; }
.seismic-flag { display:inline-block; margin-right:4px; font-size:.82em; line-height:1; vertical-align:.05em; }
.seismic-identity h2 { margin:0 0 7px; color:#0b2438; font:700 clamp(18px,2vw,28px)/1.12 'Open Sans',Arial,sans-serif; }
.seismic-identity p,.seismic-identity small { display:block; margin:0; color:#5e707b; font-size:14px; line-height:1.5; }
.seismic-details { display:grid; gap:7px; align-self:start; padding-top:7px; font-size:14px; color:#233e4f; }
.seismic-details strong { font-size:16px; }
.seismic-details span { color:#697b85; }
.seismic-mini-map { width:100%; height:118px; overflow:hidden; border:1px solid #c8d6dc; border-radius:8px; background:#dbe5e9; }
.seismic-mini-map .leaflet-tile-pane { filter:grayscale(1) contrast(.9) brightness(1.08); }
.seismic-mini-map .leaflet-control-container { display:none; }
.seismic-mini-map path { fill:#dbe5e9; stroke:#758b96; stroke-width:1.3; }
.seismic-mini-map circle:first-of-type { fill:none; stroke:#d9304f; stroke-width:3; }
.seismic-mini-map circle:last-of-type { fill:#d9304f; }
.seismic-alert-card footer { grid-column:1/-1; display:flex; justify-content:space-between; padding-top:10px; border-top:1px solid #dce6ea; color:#526873; font-size:10.4px; }
.seismic-alert-card footer strong { color:#10283a; }
.seismic-alert-card footer span { color:#137fb3; font-weight:700; }
@media (max-width:900px){.seismic-alert-card{grid-template-columns:66px 1fr minmax(180px,.7fr)}.seismic-mini-map{display:none}}
@media (max-width:650px){.seismic-source-panel{margin:-40px auto 80px;padding:0 20px}.seismic-alert-card{grid-template-columns:56px 1fr;gap:15px;padding:18px}.seismic-magnitude{width:54px;height:54px;font-size:23px}.seismic-details{grid-column:1/-1;padding:12px 0 0;border-top:1px solid #dce6ea}.seismic-alert-card footer{font-size:11px}.seismic-alert-card footer span{display:none}}
.seismic-source-panel:not([hidden]) + .live-operations { margin-top: 0; }
.live-operations + .updates { position: relative; z-index: 9; margin-top: -20px; padding-top: var(--home-section-space); padding-bottom: var(--home-section-space); }
.updates .cards { margin-bottom: 0; }
.regions + .about { padding-top: var(--home-section-space); padding-bottom: var(--home-section-space); }
.updates-heading-line { display: flex; align-items: baseline; gap: 18px; }
.updates .section-heading .eyebrow { margin-bottom: 0; }
.updates-heading-line h2 { margin-bottom: 0; }
.updates-heading-line a { color: var(--blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.live-operations-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto 24px; }
.live-operations-heading h2 { margin: 5px 0 0; font-family: Georgia,serif; font-size: clamp(30px,3.2vw,44px); color: var(--navy); }
.live-operations-heading > p { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; color: #667b83; font-size: 11px; font-weight: 700; }
.live-operations-pulse { width: 9px; height: 9px; border-radius: 50%; background: #25b96a; box-shadow: 0 0 0 0 rgba(37,185,106,.45); animation: live-operation-pulse 2s infinite; }
.live-operations-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; max-width: 1200px; margin: auto; }
.live-operation-card { display: grid; grid-template-columns: minmax(150px,36%) minmax(0,1fr); min-height: 220px; overflow: hidden; border: 1px solid #d7e1e3; border-radius: 9px; background: #fff; box-shadow: 0 7px 24px rgba(23,50,63,.08); }
.live-operation-image { position: relative; display: block; min-height: 220px; overflow: hidden; background: #dce9ec; }
.live-operation-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.live-operation-card:hover .live-operation-image img { transform: scale(1.035); }
.live-operation-image span { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 7px; border-radius: 4px; color: #fff; background: rgba(9,40,58,.84); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.live-operation-copy { display: flex; flex-direction: column; min-width: 0; padding: 16px; }
.live-operation-meta { display: flex; justify-content: space-between; gap: 10px; color: #75888f; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.live-operation-meta span { color: #d33f3a; }
.live-operation-copy h3 { margin: 8px 0; font: 700 18px/1.25 Georgia,serif; }
.live-operation-copy h3 a:hover { color: var(--blue); }
.live-operation-copy ul { display: grid; gap: 5px; margin: 0 0 12px; padding-left: 17px; color: #536870; font-size: 10px; line-height: 1.4; }
.live-operation-open { margin-top: auto; color: var(--blue); font-size: 10px; font-weight: 800; }
.live-operations-empty { grid-column: 1/-1; margin: 0; padding: 28px; border: 1px dashed #b9cbd0; border-radius: 8px; color: #667b83; background: #f7fafb; text-align: center; font-size: 12px; }
@keyframes live-operation-pulse { 70% { box-shadow: 0 0 0 7px rgba(37,185,106,0); } 100% { box-shadow: 0 0 0 0 rgba(37,185,106,0); } }
@media (max-width: 820px) { .live-operations-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .live-operations { margin-top: 0; padding: var(--home-section-space) 20px; } .live-operations-heading { align-items: start; flex-direction: column; gap: 8px; } .live-operation-card { grid-template-columns: 1fr; } .live-operation-image { min-height: 190px; } }
@media (prefers-reduced-motion: reduce) { .live-operations-pulse { animation: none; } .live-operation-image img { transition: none; } }
