/* Geozy's local vector atlas: paper, sage land, blue sea, and the Club ink. */
.atlas-explorer { margin: 0 0 48px; }
.atlas-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: end; gap: 14px; margin-bottom: 20px; }
.atlas-toolbar label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 7px; color: var(--ink); }
.atlas-search-wrap { position: relative; }
.atlas-search-wrap > span { position: absolute; left: 13px; top: 8px; font-size: 25px; line-height: 1; color: var(--muted); pointer-events: none; }
.atlas-toolbar input, .atlas-toolbar select, .atlas-world-button { min-height: 46px; border: 2px solid var(--ink); border-radius: 8px; font: 700 13px var(--font-body); color: var(--ink); background: white; width: 100%; box-sizing: border-box; }
.atlas-toolbar input { padding: 10px 36px; }
.atlas-toolbar select { padding: 9px 30px 9px 12px; text-overflow: ellipsis; }
.atlas-world-button { width: auto; padding: 10px 14px; white-space: nowrap; background: var(--soft-green); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }
.atlas-world-button:hover { background: #dbe5d6; transform: translateY(-1px); }
.atlas-world-button > span { font-size: 19px; margin-right: 5px; }
.atlas-toolbar input:focus-visible, .atlas-toolbar select:focus-visible, .atlas-world-button:focus-visible, .atlas-country-panel button:focus-visible, .atlas-country-panel summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.atlas-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(295px, 1fr); gap: 22px; align-items: start; }
.atlas-map-column, .atlas-country-panel { min-width: 0; }
.atlas-map-frame { position: relative; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); background: #dbe7e9; }
.atlas-map { height: 570px; width: 100%; background: #dbe7e9; font-family: var(--font-body); isolation: isolate; }
.atlas-map.leaflet-container { font-size: 12px; }
.atlas-map:focus-visible { outline: 3px solid var(--orange); outline-offset: -5px; }
.atlas-map .leaflet-control-zoom { border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); border-radius: 7px; overflow: hidden; margin: 16px; }
.atlas-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; color: var(--ink); border-color: var(--ink); background: #fff; }
.atlas-map .leaflet-control-zoom a:hover { background: var(--soft-green); }
.atlas-map .leaflet-control-zoom a:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.atlas-map .leaflet-control-attribution { background: #f5f6f5dc; color: var(--muted); font: 9px var(--font-body); max-width: calc(100% - 10px); padding: 3px 5px; }
.atlas-map .leaflet-control-attribution a { color: var(--ink); }
.atlas-map .leaflet-control-scale { margin: 0 0 12px 16px; }
.atlas-map .leaflet-control-scale-line { border-color: var(--muted); color: var(--ink); background: #f5f6f5ba; font: 10px var(--font-body); }
.atlas-map .leaflet-interactive { cursor: pointer; }
.atlas-map .atlas-country-marker { display: grid; place-items: center; background: transparent; border: 0; }
.atlas-country-marker > span { display: block; width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 50%; background: #b74229; box-shadow: 0 0 0 1px #44251e; }
.atlas-country-marker:hover > span, .atlas-country-marker.is-selected > span { width: 10px; height: 10px; background: #44251e; box-shadow: 0 0 0 4px #b7422940; }
.atlas-country-marker:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; border-radius: 50%; }
.atlas-country-tooltip { border: 1px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); color: var(--ink); background: #fff; font: 800 12px var(--font-body); padding: 5px 9px; }
.atlas-compass { position: absolute; right: 17px; top: 15px; display: grid; justify-items: center; font-size: 33px; line-height: .85; color: var(--ink); z-index: 401; pointer-events: none; text-shadow: 0 1px 0 white; }
.atlas-compass span { font: 800 9px var(--font-body); padding-bottom: 7px; }
.atlas-map-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 12px 20px; border: 2px solid var(--ink); border-radius: 9px; background: white; box-shadow: 3px 3px 0 var(--ink); font-size: 13px; font-weight: 800; z-index: 402; text-align: center; }
.atlas-map-loading[hidden] { display: none; }
.atlas-map-caption { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.atlas-marker-legend { display: inline-flex; gap: 7px; align-items: center; }
.atlas-marker-legend i { width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; background: var(--orange); }
.atlas-map-notice { border: 2px solid var(--ink); background: white; border-radius: 8px; padding: 14px; color: var(--muted); font-size: 13px; }
.atlas-country-panel { background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); scroll-margin-top: 24px; overflow: hidden; }
.atlas-empty-state { padding: 30px 27px 34px; position: relative; text-align: center; min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.atlas-empty-number { font: 400 74px var(--font-heading); letter-spacing: -.08em; color: #e5ebe1; position: absolute; top: 12px; left: 23px; }
.atlas-empty-state img { width: 80%; max-width: 250px; height: auto; margin: 30px 0 28px; opacity: .76; filter: brightness(0) saturate(100%) invert(45%) sepia(20%) saturate(681%) hue-rotate(61deg) brightness(96%) contrast(83%); }
.atlas-empty-state h2 { font-size: 24px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -.04em; }
.atlas-empty-state p { font-size: 13px; line-height: 1.75; color: var(--muted); margin: 0 0 23px; }
.atlas-empty-state > span:last-child { padding: 7px 10px; background: var(--soft-green); font-size: 10px; font-weight: 800; border-radius: 5px; }
.atlas-country-heading { padding: 23px 23px 20px; background: #e9eee6; border-bottom: 2px solid var(--ink); }
.atlas-country-flag { object-fit: contain; object-position: left center; display: block; max-width: 100%; height: 64px; margin-bottom: 18px; filter: drop-shadow(1px 2px 0 #44251e17); }
.atlas-country-kicker { text-transform: uppercase; letter-spacing: .07em; font-size: 10px; font-weight: 800; color: var(--muted); }
.atlas-country-heading > .atlas-observation-note { margin: -9px 0 15px; }
.atlas-country-heading h2 { font: 400 31px/1.13 var(--font-heading); letter-spacing: -.055em; margin: 8px 0 17px; overflow-wrap: anywhere; }
.atlas-focus-country { border: 1px solid var(--ink); border-radius: 5px; background: white; font: 800 11px var(--font-body); color: var(--ink); padding: 7px 10px; cursor: pointer; }
.atlas-focus-country:hover { background: var(--soft-orange); }
.atlas-country-panel dl { margin: 0; }
.atlas-country-panel dt { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.atlas-country-panel dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.55; overflow-wrap: anywhere; }
.atlas-country-panel small { display: block; color: var(--muted); font-size: 10px; line-height: 1.65; margin-top: 7px; }
.atlas-country-panel a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.atlas-primary-stats { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-bottom: 1px solid #44251e26; padding: 21px 22px; gap: 15px; }
.atlas-primary-stats > div { min-width: 0; }
.atlas-primary-stats dd { font-size: 19px; font-weight: 900; line-height: 1.3; }
.atlas-country-basics { display: grid; grid-template-columns: 1fr 1fr; padding: 22px; gap: 21px 16px; border-bottom: 1px solid #44251e26; }
.atlas-country-basics > div { min-width: 0; }
.atlas-profile-facts { padding: 0 22px; }
.atlas-profile-fact { padding: 21px 0; border-bottom: 1px solid #44251e26; }
.atlas-profile-fact dd { font-weight: 700; }
.atlas-profile-fact p, .atlas-observation-note { color: var(--muted); font-size: 10px; line-height: 1.65; margin: 7px 0 0; }
.atlas-more-facts, .atlas-sources { padding: 0 22px; }
.atlas-country-panel summary { cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; padding: 17px 0; color: var(--ink); line-height: 1.6; }
.atlas-country-panel summary::-webkit-details-marker { display: none; }
.atlas-more-facts summary { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #44251e26; }
.atlas-more-facts summary > span { font-size: 20px; line-height: 1; }
.atlas-more-facts[open] summary > span { transform: rotate(45deg); }
.atlas-more-facts > dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 15px; padding: 20px 0; border-bottom: 1px solid #44251e26; }
.atlas-more-facts .atlas-stat { min-width: 0; }
.atlas-sources summary { color: var(--muted); font-size: 10px; }
.atlas-sources summary::after { content: ' ↗'; }
.atlas-sources p, .atlas-sources li { color: var(--muted); font-size: 10px; line-height: 1.75; }
.atlas-sources ul { margin: 12px 0 17px; padding-left: 15px; }
.atlas-sources li { margin: 9px 0; }
.atlas-sources li span { display: block; }
.atlas-sources p:last-child { margin-bottom: 22px; }
.atlas-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .atlas-layout { grid-template-columns: minmax(0, 1.65fr) minmax(275px, 1fr); gap: 18px; }
  .atlas-toolbar { gap: 10px; }
  .atlas-country-heading { padding: 21px; }
  .atlas-country-heading h2 { font-size: 28px; }
  .atlas-primary-stats { padding: 20px; gap: 10px; }
  .atlas-primary-stats dd { font-size: 17px; }
}
@media (max-width: 860px) {
  .atlas-layout { grid-template-columns: 1fr; gap: 22px; }
  .atlas-map { height: 480px; }
  .atlas-country-panel { scroll-margin-top: 18px; }
  .atlas-empty-state { min-height: 240px; padding: 25px 28px; }
  .atlas-empty-state img { width: 150px; margin: 15px 0 20px; }
  .atlas-empty-state p { max-width: 400px; }
  .atlas-primary-stats dd { font-size: 23px; }
  .atlas-country-heading h2 { font-size: 32px; }
}
@media (max-width: 560px) {
  .atlas-toolbar { grid-template-columns: 1fr; gap: 14px; }
  .atlas-world-button { justify-self: start; font-size: 11px; min-height: 38px; }
  .atlas-toolbar input, .atlas-toolbar select { font-size: 16px; }
  .atlas-toolbar label { font-size: 11px; }
  .atlas-map { height: 390px; }
  .atlas-map .leaflet-control-zoom { margin: 12px; }
  .atlas-compass { top: 14px; right: 14px; }
  .atlas-map-caption { font-size: 10px; }
  .atlas-country-heading { padding: 21px; }
  .atlas-country-heading h2 { font-size: 29px; }
  .atlas-primary-stats { padding: 21px; }
  .atlas-primary-stats dd { font-size: 18px; }
  .atlas-country-basics { padding: 21px; gap: 20px 12px; }
  .atlas-profile-facts, .atlas-more-facts, .atlas-sources { padding-left: 21px; padding-right: 21px; }
  .atlas-map .leaflet-control-attribution { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .atlas-explorer *, .atlas-map .leaflet-pane { scroll-behavior: auto; transition: none !important; } }
@media (max-width: 380px) { .atlas-map { height: 280px; } }
