#geography {
  color: #17364d;
  background: #eef4f7;
}

#geography [hidden] {
  display: none !important;
}

#geography .geo-intro,
#geography .geo-stats,
#geography .geo-note {
  color: #4c626f;
}

#geography .geo-intro {
  max-width: 850px;
  line-height: 1.65;
}

#geography .geo-stats {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

#geography .geo-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

#geography .geo-region-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #afc8d5;
  border-radius: 0;
  background: #fff;
  color: #17364d;
  font: 600 13px/1.4 var(--font, 'Segoe UI', Arial, sans-serif);
  cursor: pointer;
}

#geography .geo-region-tabs button[aria-pressed='true'] {
  background: #176f94;
  border-color: #176f94;
  color: #fff;
}

#geography .geo-region-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding-inline: 5px;
  box-sizing: border-box;
  background: #eaf3f7;
  color: #17364d;
  font-size: 11px;
  line-height: 1;
}

#geography .geo-region-tabs button[aria-pressed='true'] .geo-region-count {
  background: #fff;
  color: #176f94;
}

#geography .field-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-top: 17px;
}

#geography .geo-map-column,
#geography .district-stories,
#geography .geo-story-body {
  min-width: 0;
}

#geography .field-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 235px;
  background: #f7fafb;
  border: 1px solid #d4e1e7;
  box-sizing: border-box;
}

#geography .field-map path {
  fill: #edf3f6;
  stroke: #b9ccd7;
  stroke-width: 1;
}

#geography .field-map path.field-region {
  fill: #9dcfdf;
  stroke: #176f94;
  stroke-width: 1.7;
}

#geography .field-map text {
  fill: #17364d;
  stroke: #f7fafb;
  stroke-width: 3px;
  paint-order: stroke;
  font: 600 20px var(--font, 'Segoe UI', Arial, sans-serif);
}

#geography .geo-selection-label {
  margin: 15px 0 8px;
  color: #17364d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

#geography .geo-place-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

#geography .geo-place-list button {
  min-width: 0;
  min-height: 40px;
  padding: 7px 6px;
  border: 1px solid #c4d7e2;
  border-radius: 0;
  background: #fff;
  color: #17364d;
  font: 400 12px/1.4 var(--font, 'Segoe UI', Arial, sans-serif);
  overflow-wrap: anywhere;
  text-wrap: balance;
  cursor: pointer;
}

#geography .geo-place-list button[aria-pressed='true'] {
  background: #176f94;
  border-color: #176f94;
  color: #fff;
}

#geography .geo-region-tabs button:hover,
#geography .geo-place-list button:hover {
  border-color: #176f94;
}

#geography button:focus-visible,
#geography a:focus-visible {
  outline: 3px solid #a85d10;
  outline-offset: 3px;
}

#geography .district-stories {
  min-height: 0;
}

#geography .district-stories > article:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 18px;
  padding: 19px;
  border: 1px solid #d4e1e7;
  background: #fff;
  align-items: start;
}

#geography .district-stories > article.geo-text-story:not([hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

#geography .geo-photo {
  min-width: 0;
  margin: 0;
}

#geography .geo-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 245px;
  object-fit: contain;
}

#geography .geo-photo figcaption {
  margin: 7px 0 0;
  padding: 0;
  color: #526874;
  font-size: 11px !important;
  line-height: 1.5;
}

#geography .district-stories .meta {
  margin: 0 0 7px;
  color: #35647d;
  font-size: 11px !important;
  line-height: 1.55;
}

#geography .district-stories h3 {
  margin: 0 0 11px;
  color: #17364d;
  font: 600 25px/1.2 var(--font, 'Segoe UI', Arial, sans-serif);
  letter-spacing: -.025em;
}

#geography .district-stories .geo-summary,
#geography .geo-event-list p {
  margin: 0;
  color: #4c626f;
  font-size: 13px;
  line-height: 1.65;
}

#geography .geo-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 16px;
}

#geography .geo-materials a,
#geography .geo-event a {
  color: #12688e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

#geography .geo-materials a:hover,
#geography .geo-event a:hover {
  color: #17364d;
}

#geography .geo-event-list {
  display: grid;
  gap: 15px;
  margin-top: 16px;
}

#geography .geo-event-list .geo-event {
  display: block;
  padding: 14px 0 0;
  border-top: 1px solid #d4e1e7;
}

#geography .geo-event h4 {
  margin: 0 0 7px;
  color: #17364d;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

#geography .geo-event a {
  display: inline-block;
  margin-top: 8px;
}

#geography .geo-note {
  max-width: none;
  margin: 17px 0 0;
  font-size: 11px;
  line-height: 1.65;
}

#geography .geo-note a {
  color: #12688e;
}

@media (max-width: 1100px) {
  #geography .geo-place-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #geography .district-stories > article:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }

  #geography .geo-photo img {
    max-height: 200px;
  }
}

@media (max-width: 700px) {
  #geography .geo-region-tabs {
    gap: 6px;
    margin-top: 16px;
  }

  #geography .geo-region-tabs button {
    flex: 1 1 auto;
    gap: 8px;
    padding: 9px 10px;
    font-size: 12px;
  }

  #geography .field-map-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  #geography .field-map {
    max-height: 210px;
  }

  #geography .geo-place-list button {
    min-height: 44px;
  }

  #geography .district-stories > article:not([hidden]) {
    padding: 17px;
  }

  #geography .geo-photo img {
    max-height: 230px;
  }

  #geography .district-stories h3 {
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  #geography .geo-place-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #geography .geo-place-list button {
    font-size: 11px;
  }
}

#geography .geo-research-block { margin-top: 20px; border-top: 1px solid #d4e1e7; padding-top: 17px; }
#geography .geo-text-story .geo-story-body > h3 + .geo-materials:empty + .geo-research-block { margin-top: 0; padding-top: 0; border: 0; }
#geography .geo-materials:empty { display: none; }
#geography .geo-research-block h4 { margin: 5px 0 8px; color: #17364d; font-size: 15px; line-height: 1.45; }
#geography .geo-research-block p { margin: 0; color: #4c626f; font-size: 13px; line-height: 1.65; }
#geography .geo-research-block .meta { color: #35647d; }

#geography .geo-ag-badge { display: inline-block; padding: 1px 4px; margin-left: 4px; background: #eaf3f7; color: #12688e; font-size: 9px; font-weight: 700; line-height: 1.4; border: 1px solid #b8d5df; }
#geography .geo-ag-note { margin: 16px 0 0; padding: 0; border: 0; background: none; font-size: 11px; line-height: 1.5; }
#geography .geo-ag-note a { color: #35647d; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }

#geography .geo-history-controls {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}
#geography .geo-history-controls p {margin:0;color:#526874;font-size:12px}
#geography .geo-history-controls button {background:transparent;border:0;color:#12688e;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:12px;cursor:pointer;padding:7px 0}
#geography .geo-history {max-height:560px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a8bfca transparent;padding-right:5px}
#geography .geo-activity {border:0;border-top:1px solid #dce6eb;background:transparent;margin:0;padding:0}
#geography .geo-activity summary {position:relative;display:grid;grid-template-columns:97px minmax(0,1fr);gap:12px;align-items:start;padding:13px 23px 13px 0;cursor:pointer;list-style:none}
#geography .geo-activity summary::-webkit-details-marker {display:none}
#geography .geo-activity summary::after {content:'+';position:absolute;right:2px;top:12px;color:#176f94;font-size:19px;line-height:1}
#geography .geo-activity[open] summary::after {content:'−'}
#geography .geo-activity summary:focus-visible {outline:3px solid #a85d10;outline-offset:-3px}
#geography .geo-activity-date {font-size:11px;line-height:1.7;color:#526874;font-variant-numeric:tabular-nums}
#geography .geo-activity-title {font-size:13px;line-height:1.55;font-weight:600;color:#17364d}
#geography .geo-activity-body {padding:0 6px 16px 0}
#geography .geo-activity-body p {margin:0;color:#4c626f;font-size:13px;line-height:1.7}
#geography .geo-activity-body p.geo-kind {font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#35647d;margin:0 0 5px}
#geography .geo-activity-body .geo-materials {margin-top:10px;gap:6px 15px}
#geography .geo-activity-body .geo-photo {margin-top:12px;max-width:320px}
#geography .geo-activity-body .geo-photo img {max-height:180px}
@media(max-width:700px){#geography .geo-history{max-height:none;overflow:visible;padding:0}#geography .geo-activity summary{grid-template-columns:89px minmax(0,1fr);gap:9px}}
