@font-face {
  font-family: Manrope;
  src: url("./identidad/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f1e9;
  --ink: #242a25;
  --muted: #5b5e55;
  --subtle: #666860;
  --brand: #245843;
  --brand-bright: var(--neon);
  --hair: #ded9cd;
  --white: #fdfbf5;
  --panel: #faf8ef;
  --recess: #ece9de;
  --face: linear-gradient(145deg, #fffdf5, #eeece1);
  --relief: 9px 13px 28px #564f3424, -5px -5px 17px #fffdf1bd, inset 0 1px #fff;
  --inset: inset 3px 4px 8px #645f4221, inset -3px -3px 7px #fffdf6c4;
  --neon: #a3f7cd;
  --neon-lilac: #d8baf2;
  --map-water: #151c23;
  --radius: 20px;
  --gutter: clamp(17px, 4vw, 60px);
  --panel-pad: clamp(16px, 2.2vw, 30px);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
}

body {
  overflow-x: clip;
  background: radial-gradient(ellipse 55rem 38rem at 77% 23rem, #e8e8dbbd, transparent 95%), var(--paper);
}

::selection { color: #163428; background: #c9eed8; }
:focus-visible { outline: 2px solid #357557; }
a, button, summary { -webkit-tap-highlight-color: #26594122; }
main, .page-footer { max-width: 1520px; padding-inline: var(--gutter); }
html { scroll-padding-top: 93px; }

/* Floating navigation and raised controls use the same materials as the brand site. */
.masthead {
  position: sticky;
  top: 12px;
  z-index: 8;
  width: min(calc(100% - 44px), 1460px);
  margin: 12px auto 0;
  color: var(--ink);
  background: linear-gradient(105deg, #faf9f0f5, #efeee3f0);
  border: 1px solid #fffdf5;
  border-radius: 24px;
  box-shadow: 0 12px 32px #554f3320, inset 0 1px #fff;
  backdrop-filter: blur(18px);
}

.masthead-inner {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 25px);
  padding: 0 clamp(14px, 1.8vw, 23px);
}

.brand img, .page-footer img { display: block; height: auto; }
.brand img { width: 138px; }

.masthead nav {
  width: max-content;
  max-width: 100%;
  align-self: center;
  align-items: center;
  justify-self: center;
  gap: 2px;
  padding: 4px;
  background: #eae9df;
  border-radius: 999px;
  box-shadow: var(--inset);
  scrollbar-width: none;
}

.masthead nav a, .nav-source {
  color: #46554b;
  font-size: .84rem;
  font-weight: 675;
}

.masthead nav a {
  position: relative;
  justify-content: center;
  min-height: 38px;
  padding: 6px clamp(9px, 1vw, 15px);
  border-radius: 999px;
  transition: background-color .18s, box-shadow .18s, color .18s;
}

.masthead nav a:is(:hover, [aria-current="location"]) {
  color: #173f31;
  background: var(--face);
  box-shadow: 2px 3px 8px #544b2927, inset 0 1px #fff;
  text-decoration: none;
}

.masthead nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  bottom: 1px;
  inset-inline: 32%;
  height: 1px;
  background: #79b798;
  box-shadow: 0 0 6px #75eeb282;
}

.masthead nav a:focus-visible { outline-offset: -2px; }
.nav-source:hover { color: #245843; }

main { padding-top: clamp(25px, 3.5vw, 55px); }

.atlas-opening {
  display: grid;
  grid-template-areas: "intro" "map" "inspector";
  align-items: start;
  gap: 18px clamp(26px, 4vw, 59px);
  position: relative;
  isolation: isolate;
}

.atlas-opening::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -55px calc(-1 * var(--gutter));
  background: radial-gradient(ellipse at 71% 25%, #fffcf4d9, transparent 66%);
  pointer-events: none;
}

.intro {
  grid-area: intro;
  display: block;
  min-width: 0;
  padding: 10px 0 4px;
}

.intro h1 {
  margin: 12px 0 14px;
  color: #163d32;
  font-size: clamp(2.6rem, 6.1vw, 5.5rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -.068em;
}

.intro h1 span { color: #3b7057; }
.intro .client-credit, .series-label { font-size: .83rem; font-weight: 675; color: #526354; }
.intro .client-credit { letter-spacing: .04em; }

.client-credit span {
  display: inline-block;
  margin: 0 5px;
  height: .85em;
  border-inline-start: 1px solid #a9ab9a;
  vertical-align: -.08em;
}

.intro .intro-description {
  max-width: 42ch;
  color: #49554c;
  font-size: clamp(1rem, 1.47vw, 1.17rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: clamp(15px, 2vw, 27px);
}

.intro .data-date { margin-top: 10px; font-size: .83rem; }

.intro-primary {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 7px 13px 7px 15px;
  border: 1px solid #244e3e;
  border-radius: 999px;
  color: #f7f6eb;
  background: linear-gradient(138deg, #32604c, #163c31);
  box-shadow: inset 0 1px #ffffff47, inset 0 -1px #0d2c22, 0 5px 14px #243c2b2e;
  font-size: .875rem;
  font-weight: 670;
  text-decoration: none;
  transition: box-shadow .2s, filter .2s;
}

.intro-primary:hover { filter: brightness(1.12); box-shadow: inset 0 1px #ffffff47, 0 7px 18px #243c2b43; }
.map-housing {
  grid-area: map;
  min-width: 0;
  container-type: inline-size;
  scroll-margin-top: 14px;
}
.loading {
  min-height: clamp(340px, 57svh, 575px);
  margin: 0;
  padding: 21px var(--panel-pad);
  border-radius: 26px;
  color: var(--muted);
  background: var(--face);
  box-shadow: var(--relief);
}

.loading[data-state="error"] { min-height: 0; background: var(--panel); }

/* Light body and beveled frame around the darker cartography. */
.map-frame {
  --map-height: clamp(400px, 39vw, 560px);
  padding: 10px;
  border: 1px solid #fffdf5;
  border-radius: 26px;
  background: linear-gradient(145deg, #fffdf5 4%, #f2efe4 52%, #e9e6d9);
  box-shadow: 16px 25px 44px -19px #4d492d52, -9px -10px 31px #fffdf5bd, inset 0 0 0 1px #f7f4e9;
}

.map-head, .map-tools, .road-scenario { padding-inline: var(--panel-pad); }
.map-head {
  align-items: center;
  gap: 9px 16px;
  flex-wrap: wrap;
  padding-block: 8px 13px;
}

.map-head h2 {
  font-size: clamp(1.32rem, 2.1vw, 1.8rem);
  font-weight: 680;
  letter-spacing: -.06em;
}

.map-head p { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.segments {
  border-color: #dcd7ca;
  background: var(--recess);
  border-radius: 999px;
  box-shadow: var(--inset);
}

.segments button {
  color: #545c51;
  border-radius: 999px;
  font-weight: 650;
  transition: background-color .16s, color .16s;
}

.segments button:hover { background: #e7e3d8; }
.segments button[aria-pressed="true"], .map-head .segments button[aria-pressed="true"] {
  color: #294539;
  background: var(--face);
  box-shadow: 2px 3px 6px #3934242b, inset 0 1px #fff, inset 0 -1px #a9dfbd;
}

.map-head .segments button { min-height: 39px; }
.map-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) auto;
  grid-template-areas: "layer layers shortcut";
  align-items: end;
  gap: 7px clamp(8px, 1vw, 15px);
  margin-bottom: 7px;
  padding: 8px 10px;
  border: 1px solid #dcd8c9;
  border-radius: 14px;
  background: #efebe0;
  box-shadow: inset 1px 2px 4px #5d56371a, inset -1px -1px #fffaf0;
}

.map-tools .map-field { grid-area: layer; display: flex; align-items: center; gap: 9px; }
.map-tools .map-field > span { white-space: nowrap; }
.map-tools .map-field select { width: 100%; min-width: 0; }
.map-tools .map-select { grid-area: layers; gap: 4px clamp(8px, 1vw, 15px); }
:is(#mapa[data-layer="trip"], #mapa[data-layer="influence"]) .map-tools .map-field { max-width: 330px; }
.map-tools .toggle-anchor {
  color: #494d44;
  font-size: .84rem;
  font-weight: 640;
  min-height: 43px;
}

.toggle-anchor input { accent-color: #367758; }

.map-route-action {
  grid-area: shortcut;
  min-height: 43px;
  padding: 7px 15px;
  color: #f7f8ef;
  background: linear-gradient(145deg, #38443f, #202c29);
  border: 1px solid #293a31;
  border-radius: 999px;
  box-shadow: inset 0 1px #e0f3e144, 0 3px 9px #26362933;
  font-size: .875rem;
  font-weight: 705;
  transition: filter .18s, box-shadow .18s;
}

.map-route-action:hover { filter: brightness(1.13); }
.map-route-action[aria-pressed="true"] {
  color: #1b4733;
  background: linear-gradient(145deg, #f1fae9, #cff0de);
  border-color: #94c9aa;
  box-shadow: inset 0 1px #fafff7, inset 0 -2px #98e8b9, 0 0 15px #97e3bb7a, 2px 4px 7px #466a4920;
}

#mapa[data-scenario="busy"] .map-route-action[aria-pressed="true"] {
  color: #554366;
  background: linear-gradient(145deg, #fbf5fd, #e7d8f0);
  border-color: #ba9dca;
  box-shadow: inset 0 1px #fff, inset 0 -2px #d7b6ee, 0 0 15px #b49bdb56, 2px 4px 7px #5a477826;
}

.road-scenario {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px 16px;
  padding: 8px 10px 10px;
  margin-bottom: 8px;
  border: 1px solid #ded9ce;
  border-radius: 13px;
  background: #eeeae0;
}

.road-scenario .scenario-field { display: grid; gap: 3px; min-width: 0; }
.scenario-field span, #road-scenario-note { color: var(--muted); font-size: .83rem; }
.scenario-field select { min-height: 38px; }
#road-scenario-note { flex: 1 1 160px; max-width: 49ch; padding-block: 0 3px; line-height: 1.4; }
#map-trip-field { flex: 1 1 205px; }
#map-trip-field select { width: 100%; }
:is(#map-trip-field, #map-influence-field) select { max-width: min(365px, 100%); }
.map-load-note { background: #efebe2; }

.map-console {
  display: block;
  overflow: hidden;
  border: 1px solid #333f45;
  border-radius: 18px;
  background: var(--map-water);
  box-shadow: 0 -1px #a3c6ae57, 0 4px 9px #34342a29;
}

.map-surface { height: var(--map-height); }

.map-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 1px #d6fbe033, inset 0 0 33px #0c131946;
  pointer-events: none;
}

#mapa[data-layer="trip"] .map-console {
  border-color: #557569;
  box-shadow: 0 -1px #a8f5ce88, 0 0 17px #96e8bd4a, 0 5px 10px #3d483533;
}

#mapa[data-layer="trip"][data-scenario="busy"] .map-console {
  border-color: #6c5e82;
  box-shadow: 0 -1px #e5bdf278, 0 0 17px #d7b6e859, 0 5px 10px #3d344e31;
}

#map-canvas:focus-visible { outline-color: var(--brand-bright); }
.map-position, .map-credit, .scale, .map-head p, .num, .data-line dd { font-variant-numeric: tabular-nums; }

.map-position {
  position: absolute;
  top: 16px;
  left: 49px;
  color: #d1d9df;
  border: 1px solid #8ba5b343;
  border-radius: 7px;
  padding: 5px 9px;
  background: #17202ae8;
  font: 500 .73rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  pointer-events: none;
}

.map-zoom {
  top: 14px;
  right: 14px;
  gap: 5px;
}

.map-zoom button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #303f4aeb, #17222beb);
  border-color: #8fa5b576;
  border-radius: 10px;
  box-shadow: inset 0 1px #ebfff017, 0 3px 8px #090e163b;
  color: #f1f4f7;
  transition: border-color .18s, background-color .18s;
}

#zoom-reset i {
  width: 15px;
  height: 15px;
  background:
    linear-gradient(currentColor, currentColor) left top / 5px 1px,
    linear-gradient(currentColor, currentColor) left top / 1px 5px,
    linear-gradient(currentColor, currentColor) right top / 5px 1px,
    linear-gradient(currentColor, currentColor) right top / 1px 5px,
    linear-gradient(currentColor, currentColor) right bottom / 5px 1px,
    linear-gradient(currentColor, currentColor) right bottom / 1px 5px,
    linear-gradient(currentColor, currentColor) left bottom / 5px 1px,
    linear-gradient(currentColor, currentColor) left bottom / 1px 5px;
  background-repeat: no-repeat;
}

.map-zoom button:hover { background: #2d3b45; border-color: #9bd0b6; }
.map-zoom button:focus-visible { outline-color: var(--brand-bright); }

.map-key {
  left: 16px;
  bottom: 30px;
  max-width: calc(100% - 112px);
  padding: 8px 10px;
  color: #eef1f3;
  border-color: #8197a257;
  background: #141d27ee;
}

.key-row + .key-scale { border-color: #8899a84d; }
.dot.dt { box-shadow: none; }
.dot.approx { border-color: var(--brand-bright); }
.dot.wm { background: #aac1ec; }
.dot.proposal { background: #d3b7ed; }
.map-credit {
  right: 13px;
  bottom: 6px;
  padding: 1px 4px;
  border-radius: 4px;
  color: #c5d0d9;
  background: #101721dd;
}

.map-credit a { pointer-events: auto; color: inherit; }
.map-credit a:focus-visible { outline-color: var(--brand-bright); }

.inspector {
  grid-area: inspector;
  align-self: start;
  padding: clamp(16px, 1.9vw, 26px);
  border: 1px solid #fffef7;
  border-radius: 22px;
  background: var(--face);
  box-shadow: var(--relief);
}

.inspector h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.42rem);
  font-weight: 690;
  line-height: 1.18;
  letter-spacing: -.047em;
}

.inspector .data-line { padding-block: 4px; }
.inspector-p { line-height: 1.62; }
.inspector .close { background: #faf8f2; }
.inspector .quiet-link { white-space: normal; }
.inspector .map-market-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100px, 100%), 1fr));
  margin: 12px 0;
  padding: 9px 12px 10px;
  border-radius: 13px;
  background: #eeebdf;
  box-shadow: var(--inset);
}

.map-market-counts > div:not(:first-child) { padding-inline-start: 14px; border-inline-start: 1px solid #d8d2c5; }
.map-market-counts dt { color: var(--muted); font-size: .83rem; font-weight: 650; }
.map-market-counts dd {
  margin: 2px 0 0;
  color: #294738;
  font-size: 2.3rem;
  font-weight: 635;
  letter-spacing: -.065em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.map-guide-note { margin-top: 9px; color: var(--muted); font-size: .83rem; line-height: 1.55; }

.inspector .trip-jump {
  margin-top: 7px;
  padding-inline: 10px;
  color: #284f3c;
  border-color: #cbdbcc;
  background: #eef4e8;
}

.trip-stops {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.trip-stops li {
  display: grid;
  align-content: start;
  position: relative;
  gap: 2px;
  padding-left: 18px;
}

.trip-stops li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border: 1px solid #337954;
  border-radius: 50%;
  background: #a3f7cd;
}

.trip-stops li:first-child::before {
  border-color: #7d6495;
  border-radius: 1px;
  background: #d3b7ed;
  transform: rotate(45deg);
}

.trip-stops li:first-child::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 19px;
  bottom: -10px;
  border-left: 1px dotted #8d8a7e;
}

.trip-stops :is(small, span) { font-size: .81rem; line-height: 1.4; color: var(--muted); }
.trip-stops strong { font-size: 1rem; font-weight: 720; }

.inspector .trip-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 13px 0 0;
  padding: 4px;
  border: 1px solid #e0dace;
  border-radius: 12px;
  background: #eeeade;
  box-shadow: inset 0 1px 3px #453e2410;
}

.trip-time {
  display: grid;
  align-content: space-between;
  gap: 4px;
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.trip-time[data-active="true"] {
  border-color: #c2d8c8;
  background: #f9fcf4;
  box-shadow: 0 1px 6px #68a27e35, inset 0 2px var(--neon);
}

.trip-time[data-scenario="busy"][data-active="true"] {
  border-color: #d9cbe1;
  background: #fcf7fd;
  box-shadow: 0 1px 6px #9c79ba32, inset 0 2px var(--neon-lilac);
}

.trip-time dt { color: var(--muted); font-size: .78rem; font-weight: 680; line-height: 1.35; }
.trip-time dd {
  margin: 0;
  color: #263a30;
  font-size: clamp(1.08rem, 1.8vw, 1.48rem);
  font-weight: 720;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trip-difference { margin-top: 9px; color: var(--muted); font-size: .83rem; }
.trip-difference strong { color: var(--ink); }

.trip-legend, .trip-legend span { display: flex; align-items: center; gap: 5px 11px; }
.trip-legend { flex-wrap: wrap; }
.trip-legend span { gap: 6px; }
.trip-legend i { display: block; }
.trip-legend .origin-symbol { width: 7px; height: 7px; background: #d3b7ed; transform: rotate(45deg); }
.trip-legend .destination-symbol { width: 8px; height: 8px; background: var(--brand-bright); border-radius: 50%; }
.trip-legend .connector-symbol { width: 16px; border-top: 2px dotted #fff8df; }

/* Analysis and tables */
.section { margin-top: clamp(46px, 5.4vw, 82px); }
.section-heading { gap: 12px 24px; margin-bottom: clamp(14px, 1.8vw, 25px); }
.section-heading h2 {
  color: #28332c;
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -.065em;
}

.section-heading p { max-width: 78ch; line-height: 1.64; text-wrap: pretty; }
.section-heading > a { flex: none; }
.quiet-link, .text-button { white-space: normal; }
.quiet-link:hover, .text-button:hover { text-underline-offset: .24em; }

.executive-summary { margin-top: clamp(41px, 5.4vw, 73px); }
.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  border: 1px solid #fffdf5;
  border-radius: 24px;
  background: var(--face);
  box-shadow: var(--relief);
  overflow: clip;
}

.brief-grid h3 { font-size: clamp(1.17rem, 1.6vw, 1.48rem); letter-spacing: -.038em; }
.brief-grid article > p { margin-top: 5px; font-size: .88rem; line-height: 1.5; }
.brief-coverage {
  display: flex;
  flex-direction: column;
  padding: clamp(19px, 2.85vw, 38px);
  color: #f4f4ea;
  background: radial-gradient(ellipse at 20% 6%, #374a48 0, #263238 49%, #222b30 100%);
  box-shadow: inset -1px 0 #ffffff21;
}

.brief-coverage > p, .brief-coverage .brief-country-list dd span { color: #d0dacf; }
.brief-coverage > a { align-self: flex-start; color: #b6efcf; }
.brief-findings { padding: 0 clamp(18px, 2.8vw, 38px); }
.brief-findings > article { padding-block: clamp(16px, 2vw, 26px); }
.brief-findings > article + article { border-top: 1px solid #dcd6c9; }
.brief-findings article > p { color: var(--muted); }
.brief-context {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 17px;
  padding: 14px clamp(18px, 2.8vw, 38px);
  border-top: 1px solid #ded8c9;
  color: #53594e;
  background: #f0ecdf;
  font-size: .86rem;
  line-height: 1.55;
}

.brief-context strong { color: var(--ink); }

.brief-country-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  margin: 13px 0 9px;
}

.brief-country-list > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #cecbbd;
}

.brief-country-list dt { color: #576055; font-size: .84rem; font-weight: 680; }
.brief-country-list dd { margin: 0; overflow-wrap: anywhere; }
.brief-country-list dd > strong, .brief-country-list dd > a {
  color: #253f33;
  font-weight: 735;
  font-size: .98rem;
}

.brief-country-list dd span { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; }
.brief-coverage .brief-country-list { grid-template-columns: minmax(0, 1fr); gap: 13px; margin: 20px 0; }
.brief-coverage .brief-country-list > div { border-color: #667a738a; }
.brief-coverage .brief-country-list dt { color: #e8ece1; }
.brief-coverage .brief-country-list dd strong {
  font-size: clamp(2.2rem, 4.1vw, 3.9rem);
  font-weight: 625;
  color: #c6fbe0;
  line-height: 1.03;
  letter-spacing: -.067em;
  font-variant-numeric: tabular-nums;
}

.coverage-overview { margin: 24px 0 18px; }
.coverage-overview h3 { font-size: 1.19rem; }
.coverage-overview #overview-scope { margin: 4px 0 12px; }
.context-section { margin-top: clamp(24px, 3vw, 48px); scroll-margin-top: 14px; }
.context-section .section-heading h3 {
  font-size: clamp(1.29rem, 2.2vw, 2rem);
  letter-spacing: -.048em;
}

.growth-controls { display: grid; grid-template-columns: .83fr 1.1fr 1fr 1.3fr; }
.growth-controls :is(select, input) { width: 100%; }
.growth-panel .growth-table table { min-width: 680px; }
.growth-table thead th { white-space: normal; vertical-align: bottom; }
.growth-table th[aria-sort] { color: #1e4735; box-shadow: inset 0 -2px #7ca58a; }
.growth-table .growth-position-col { width: 4.5em; color: var(--subtle); }
.growth-mobile-rank, .growth-mobile-data { display: none; }
.growth-table .growth-change { color: #285540; font-weight: 720; }
.growth-table .growth-change.is-negative { color: #8a4531; }
.growth-results { padding-block: 6px; border-top: 1px solid var(--hair); }
.growth-method { padding: 15px var(--panel-pad); color: var(--muted); font-size: .875rem; }
.growth-method p { max-width: 100ch; }
.growth-method p + p { margin-top: 7px; }

.panel {
  border-color: #ded8cb;
  background: var(--panel);
  box-shadow: 5px 8px 20px -13px #4d472f50, inset 0 1px #fffef5;
}

.panorama-grid { gap: clamp(12px, 1.8vw, 24px); }
.panorama-card { padding: var(--panel-pad); background: var(--face); box-shadow: var(--relief); }
.panorama-card h3 { font-size: 1.25rem; letter-spacing: -.04em; }
.panorama-indicators p { color: var(--muted); }
.overview-access > strong { font-weight: 650; }
.mini-line, .bar-row i, .spacing-distance-row > div, .influence-trend i { background: #e6e1d5; }
.mini-line i, .bar-row i span, .spacing-distance-row i, .influence-trend i span { background: #4a846c; }
.panorama-indicators .proximity { background: #ece4ee; }
.panorama-indicators .proximity i, .influence-trend .projection i span { background: #807597; }

.panel-top, .directory-filter {
  padding: 15px var(--panel-pad);
  background: #f4f0e7;
  border-color: var(--hair);
}

.directory-filter.network-controls, .directory-filter.municipal-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px 15px;
}

.network-controls .field:last-child { grid-column: span 2; }
.municipal-filter .search { grid-column: span 2; }
:is(.network-controls, .municipal-filter, .traffic-controls) .field { min-width: 0; }
:is(.network-controls, .municipal-filter) :is(select, input[type="search"]) { width: 100%; }
.field > span, .map-field > span { color: #53564d; font-size: .85rem; font-weight: 675; }

select, input[type="search"] {
  min-width: 0;
  max-width: 100%;
  min-height: 43px;
  border-color: #d6d1c4;
  border-radius: 10px;
  background-color: #fdfbf3;
  box-shadow: inset 1px 2px 4px #4c422113, 0 1px #fff9;
  font-size: .925rem;
}

select {
  appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 52%, #545a50 53%), linear-gradient(135deg, #545a50 47%, transparent 48%);
  background-position: calc(100% - 15px) 53%, calc(100% - 11px) 53%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}

input[type="search"]::placeholder { color: #717267; }
.order-controls { display: flex; align-items: end; gap: 11px; min-width: 0; }
.order-controls .field { max-width: 100%; }

thead, .table-scroll thead th { color: #464b42; background: #eeeadf; }
.table-scroll th, .table-scroll td { min-height: 40px; padding-block: 11px; }
.table-scroll tbody th, .table-scroll tbody td { border-color: #e5e0d4; }
.table-scroll tbody tr:nth-child(even) { background: #f6f2e9; }
.table-scroll tbody tr:hover { background: #eeeee3; }
.table-link { color: var(--brand); }
.table-foot { min-height: 42px; padding-inline: var(--panel-pad); }
.table-sub { color: #5e6259; }
#departamentos thead th { white-space: normal; vertical-align: bottom; }
#network-loss-head, .network-table .network-closure { background: #f1eee4; }
.network-stack { background: #e0dcd0; }
.network-panel .emphasis { color: #854430; }

.panel p, #routes-content p, #traffic-stores > p { line-height: 1.62; }
.disclosure > summary { padding-block: 14px 5px; }
.note-panel { color: #414b41; background: #eeeee5; }
.result-notice { color: #694634; background: #f5ecdf; }
.analysis-grid .country-name { color: #434e42; background: #e9e5d9; }

#coverage-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
#coverage-grid article { padding: var(--panel-pad); }
#coverage-grid article > p { max-width: 92ch; }
#coverage-grid article:first-child :is(th, td) { padding: 13px 15px; }
#coverage-grid article:first-child table { width: 100%; }
#coverage-grid article:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 13px 30px;
}

#coverage-grid article:nth-child(2) > :is(h3, p) { grid-column: 1/-1; }
#coverage-grid article:nth-child(2) .cover-chart { margin: 0; padding-top: 8px; }

.expansion-panel { --expansion-purple: #634e76; }
.expansion-toolbar { background: #efebef; }
.expansion-toolbar > p, .expansion-reference { color: #5c5760; }
.expansion-rank { color: #634e76; background: #eee6f2; }
.expansion-method { background: #f5f1e9; }
#decision-sensitivity {
  padding: 14px var(--panel-pad);
  border-block: 1px solid #e1d8df;
  background: #f3eef3;
}

#decision-scenarios { max-width: none; }
#decision-scenarios p { max-width: 95ch; }
#decision-scenarios table { min-width: 580px; }
#decision-scenarios th { white-space: normal; }
.trip-limits { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.trip-limits button {
  display: grid;
  min-width: 128px;
  gap: 3px;
  padding: 9px 13px;
  border: 1px solid #d4c9d8;
  border-radius: 10px;
  background: #fcf9fb;
  color: #524458;
  text-align: left;
}

.trip-limits button span { font-size: .83rem; }
.trip-limits button[aria-pressed="true"] {
  background: #534460;
  border-color: #534460;
  color: #fff7fd;
  box-shadow: 0 3px 6px #51385c33;
}

.trip-answer h4 { color: #574366; font-size: 1.15rem; }

#routes-content, #traffic-stores, #traffic-observations { padding: 12px clamp(9px, 1.5vw, 22px); }
#traffic-stores th { white-space: normal; }
#traffic-stores :is(th:first-child, td:nth-child(2)) { min-width: 145px; }
.traffic-controls { flex-wrap: wrap; }
#traffic .traffic-controls select { width: 100%; }
.economy-open { padding: var(--panel-pad); margin-block: 14px; }
.economy-open > .series-label { margin-block: 3px 14px; }
.economy-open .table-scroll { margin-block: 14px; }
.economy-open h4, .economic-subsection { margin-top: 20px; }
.economy-open p { max-width: 98ch; }

.page-footer {
  display: flex;
  align-items: center;
  gap: 13px 20px;
  padding-block: 23px;
  border-top-color: #dcd7ca;
  color: #565b51;
  background: #efebe0;
}

.page-footer .section-links { margin-left: auto; }

@media (min-width: 1080px) {
  .atlas-opening {
    grid-template-columns: minmax(310px, .49fr) minmax(0, 1fr);
    grid-template-rows: max-content 1fr;
    grid-template-areas: "intro map" "inspector map";
  }
  .intro { padding-top: clamp(15px, 2.5vw, 34px); }
  .intro h1 { font-size: clamp(3.4rem, 5.3vw, 5.2rem); }
  .intro h1 span { display: block; }
  .trip-stops { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 10px; }
  .trip-stops li:first-child::after { display: none; }
}

@container (max-width: 745px) {
  .map-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "layer shortcut" "layers layers";
    gap: 4px 9px;
  }
  .map-tools .map-select { flex-wrap: wrap; }
  .map-tools .toggle-anchor { min-height: 31px; }
  :is(#mapa[data-layer="trip"], #mapa[data-layer="influence"]) .map-tools {
    grid-template-areas: "layer shortcut";
  }
}

@media (max-width: 920px) {
  .masthead-inner { gap: 4px 13px; padding-block: 6px 8px; }
  .masthead nav { grid-column: 1/-1; grid-row: 2; justify-self: start; }
  .nav-source { grid-column: 3; grid-row: 1; }
  html { scroll-padding-top: 124px; }
  .panel-top { flex-wrap: wrap; }
}

@media (max-width: 830px) {
  .masthead { position: static; }
  html { scroll-padding-top: 0; }
  .map-frame { --map-height: clamp(390px, 61vw, 520px); }
  .inspector .trip-comparison { max-width: 480px; }
  .brief-grid { grid-template-columns: minmax(0, 1fr); }
  .brief-coverage .brief-country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-coverage .brief-country-list dd strong { font-size: clamp(2rem, 7vw, 3rem); }
  .growth-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-filter.network-controls, .directory-filter.municipal-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .network-controls .field:last-child { grid-column: 1/-1; }
}

@media (max-width: 600px) {
  .masthead { width: calc(100% - 22px); margin-top: 9px; border-radius: 19px; }
  .masthead-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .brand img { width: 119px; }
  .masthead nav {
    display: flex;
    width: 100%;
    grid-column: 1/-1;
    justify-content: start;
    gap: 2px;
    border-radius: 14px;
  }
  .masthead nav a { flex: 0 0 auto; min-height: 36px; font-size: .82rem; padding-inline: 8px; }
  .nav-source { display: flex; grid-column: 2; min-height: 31px; font-size: .83rem; }
  main { padding-top: 17px; }
  .atlas-opening { gap: 12px; }
  .intro { padding-top: 2px; padding-bottom: 3px; }
  .intro h1 { margin-block: 8px; }
  .intro-actions { margin-top: 14px; column-gap: 12px; }
  .intro .data-date { margin-top: 7px; }
  .intro-actions .quiet-link, .intro-primary { font-size: .81rem; }
  .intro-primary { min-height: 39px; padding: 5px 9px 5px 11px; gap: 7px; }
  .map-frame { --map-height: clamp(347px, 100vw, 425px); padding: 6px; border-radius: 20px; }
  .map-console { border-radius: 15px; }
  .map-head { align-items: start; padding-inline: 8px; padding-block: 8px 9px; }
  .map-head p { font-size: .83rem; }
  .map-head .segments button { min-height: 39px; }
  .map-head .segments { max-width: 100%; }
  .map-head .segments button { padding-inline: 7px; white-space: normal; }
  .map-tools .map-field { display: grid; }
  .map-tools .map-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .map-tools .map-field select { min-width: 0; }
  .map-tools .toggle-anchor { min-height: 32px; font-size: .8rem; }
  .map-route-action { padding-inline: 11px; font-size: .84rem; }
  select, input[type="search"] { font-size: 1rem; }
  .map-tools select { min-height: 43px; }
  .road-scenario { gap: 8px 10px; }
  .road-scenario #map-trip-field { flex: 1 1 100%; }
  .road-scenario #road-scenario-note { flex-basis: 100%; }
  #map-trip-store, #map-influence-store { width: 100%; max-width: 100%; }
  .map-position { top: 12px; left: 34px; padding: 4px 6px; font-size: .63rem; }
  .compass { left: 12px; top: 13px; }
  .map-zoom { top: 10px; right: 9px; }
  .map-key { bottom: 48px; left: 8px; max-width: calc(100% - 18px); }
  .map-credit { right: 8px; }
  .scale { bottom: 25px; }
  .inspector { padding: var(--panel-pad); }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .growth-controls .search { grid-column: 1/-1; }
  .growth-panel .growth-table table { min-width: 0; }
  .growth-table :is(th, td) { padding-inline: 8px; }
  .growth-table tr > * { vertical-align: top; }
  .growth-table :is(.growth-position-col, .growth-detail-col) { display: none; }
  .growth-table .growth-mobile-rank { display: inline; color: var(--subtle); font-size: .82rem; }
  .growth-table .growth-mobile-data {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.45;
    font-size: .79rem;
  }
  .growth-table :is(.table-link, .table-sub, .growth-mobile-data) { white-space: normal; overflow-wrap: anywhere; }
  .directory-filter.network-controls, .directory-filter.municipal-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .order-controls { width: 100%; }
  .order-controls .field { flex: 1 1 0; }
  .order-controls select { width: 100%; }
  .trip-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .trip-limits button { min-width: 0; padding: 8px 6px; }
  .trip-limits button span { overflow-wrap: anywhere; }
  .traffic-controls .field { flex: 1 1 100%; }
  #coverage-grid article:first-child :is(th, td) { padding: 10px; }
  .page-footer { flex-wrap: wrap; }
  .page-footer .section-links { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead nav a, .intro-primary, .map-route-action, .map-zoom button, .segments button { transition: none; }
}
