@font-face {
  font-family: Inter;
  src: url('./assets/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('./assets/BarlowCondensed-Bold-latin-ext.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('./assets/BarlowCondensed-Bold-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #ffffff;
  --surface: #ffffff;
  --ink: #162234;
  --subtle: #42546f;
  --cobalt: #1947d1;
  --cobalt-dark: #102f96;
  --emerald: #006d55;
  --magenta: #a01963;
  --soft: #f1f5ff;
  --blue-tint: #e8efff;
  --bay-tint: #e7f5f1;
  --map-land: #eef4ff;
  --alert: #faedf5;
  --alert-border: #d9afc8;
  --alert-ink: #79164c;
  --border: #d3ddea;
  --control: #788bac;
  --focus: var(--cobalt);
  --display: 'Barlow Condensed', 'Arial Narrow', Inter, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, system-ui, sans-serif;
  --text-meta: .84rem;
  --text-secondary: .94rem;
  --header-offset: 88px;
  scroll-padding-block-start: var(--header-offset);
  font-size: 112.5%;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
figure, dl, dd { margin: 0; }
ul, ol { padding-inline-start: 1.3em; }
a { color: var(--cobalt); text-underline-offset: .24em; }
a:hover { color: var(--cobalt-dark); }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.12; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.018em; }
h1 { font-size: clamp(2.55rem, 5.1vw, 4.1rem); line-height: .99; }
h2 { font-size: clamp(2.05rem, 3.6vw, 2.82rem); }
h3 { font-size: 1.18rem; letter-spacing: -.025em; }
hr { border: 0; border-top: 1px solid var(--border); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:target { scroll-margin-block-start: 10px; }
main:focus { outline: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.section { margin-block-start: 72px; }
.section:last-child { margin-block-end: 72px; }
.fine { font-size: var(--text-meta); color: var(--subtle); }
.overline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--cobalt);
  font-weight: 740;
  font-size: var(--text-meta);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.atlas-line { width: 32px; height: 8px; background: var(--cobalt); flex: 0 0 32px; clip-path: polygon(0 0, 58% 0, 75% 65%, 100% 65%, 100% 100%, 72% 100%, 55% 35%, 0 35%); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--cobalt);
  border-radius: 10px;
  background: var(--cobalt);
  color: white;
  text-decoration: none;
  font-weight: 650;
  font-size: var(--text-meta);
  line-height: 1.35;
  transition: background .17s ease, border-color .17s ease;
}
.button svg, .text-link svg { flex: none; }
.button:hover { background: var(--cobalt-dark); color: white; border-color: var(--cobalt-dark); }
.button-outline { background: transparent; color: var(--cobalt); border-color: var(--control); }
.button-outline:hover { background: var(--soft); color: var(--cobalt-dark); border-color: var(--cobalt); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; text-decoration-thickness: 1px; font-weight: 680; font-size: var(--text-meta); }

.site-header {
  position: sticky;
  z-index: 6;
  top: 0;
  background: var(--page);
  border-bottom: 1px solid var(--border);
}
.header-inner { min-height: 77px; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--cobalt); text-decoration: none; }
.brand img { width: 156px; max-width: 100%; height: auto; flex: none; }
.nav-desktop ul, .site-footer ul, .popover, .popover ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}
.nav-desktop a:hover, [aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.search-icon, .header-actions summary {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 700;
  list-style: none;
}
.header-actions summary::-webkit-details-marker { display: none; }
.search-icon:hover, .header-actions summary:hover, .header-actions details[open] summary { background: var(--soft); }
.locale-menu { position: relative; }
.locale-menu summary { padding-inline: 9px; }
.locale-menu[open] summary svg:last-child { transform: rotate(180deg); }
.header-plan { min-height: 42px; padding: 9px 13px; font-size: var(--text-meta); }
.plan-icon { display: none; }
.mobile-menu { display: none; }
.popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - var(--header-offset) - 12px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 44px #16223420;
  padding: 6px;
}
details[open] .popover { animation: reveal .16s ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.popover a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 630;
  font-size: var(--text-meta);
  text-decoration: none;
}
.popover a:hover, .popover a[aria-current='page'] { background: var(--soft); }
.popover small { color: var(--subtle); font-size: var(--text-meta); line-height: 1.3; font-weight: 550; text-align: end; }

.hero-support { max-width: 58ch; color: var(--subtle); font-size: 1.02rem; line-height: 1.62; }
.photo { min-width: 0; }
.photo img { object-fit: cover; border-radius: 16px; background: var(--soft); }
.photo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 8px;
  font-size: var(--text-meta);
  color: var(--subtle);
}
.photo figcaption span { font-weight: 630; }
.photo figcaption a { color: var(--subtle); }
.quick { padding-block: 0 4px; }
.quick-heading h2 { font: 700 .94rem/1.35 Inter, system-ui, sans-serif; letter-spacing: -.014em; margin-bottom: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-card, .city-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background .17s ease, border-color .17s ease;
}
.quick-card:hover, .city-link:hover, .link-card:hover { background: var(--soft); border-color: var(--control); }
.quick-card strong, .city-link strong { display: block; margin: 0 0 4px; font-size: .93rem; line-height: 1.2; }
.quick-card > svg, .city-link > svg { color: var(--cobalt); }
.quick-copy, .city-link span span { display: block; color: var(--subtle); font-size: var(--text-secondary); line-height: 1.45; }
.tile-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  width: 43px;
  height: 43px;
  flex: none;
  color: var(--cobalt);
  background: var(--soft);
}
.quick-card:nth-child(2) .tile-icon, .city-link:nth-child(2) .tile-icon { color: var(--emerald); background: var(--bay-tint); }
.quick-card:nth-child(3) .tile-icon, .city-link:nth-child(3) .tile-icon { color: var(--magenta); background: var(--alert); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--subtle); }
.section-head > a { flex: none; margin-block-end: 3px; max-width: 42%; }
.city-grid { display: grid; grid-template-columns: 1.13fr 1fr; gap: 24px; align-items: start; }
.city-photo img { aspect-ratio: 1.75; object-position: center; }
.city-links { display: grid; gap: 8px; }
.city-link { min-height: 71px; padding: 11px 14px; }

.atlas-band { background: var(--soft); border-block: 1px solid var(--border); padding-block: 52px; }
.atlas-layout, .hub-map { display: grid; grid-template-columns: 1.8fr 1fr; align-items: start; gap: 24px; }
.map-figure { min-inline-size: 0; }
.map-art { position: relative; inline-size: 100%; min-height: 310px; aspect-ratio: 1.7; overflow: hidden; border-radius: 15px; background: var(--map-land); }
.map-art svg { position: absolute; width: 100%; height: 100%; }
.map-figure figcaption { color: var(--subtle); font-size: var(--text-meta); margin-block-start: 9px; }
.map-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 8px;
  border: 1px solid var(--control);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: background .17s ease, box-shadow .17s ease;
}
.map-marker:hover, .map-marker:focus-visible { background: white; color: var(--cobalt); z-index: 3; box-shadow: 0 0 0 3px #bdccff; }
.map-marker:focus-visible { outline-color: var(--focus); outline-offset: -3px; }
.map-marker span, .legend-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dot, var(--cobalt)); flex: none; }
.tone-sea { --dot: var(--emerald); }
.tone-inland { --dot: var(--magenta); }
.map-salvador { top: 44%; left: 63%; }
.map-praia { top: 19%; left: 72%; }
.map-baia { top: 52%; right: 46%; }
.map-morro { top: 75%; left: 57%; }
.map-chapada { top: 40%; left: 8%; }
.map-list, .hub-legend { list-style: none; margin: 0; padding: 0; }
.map-list li { border-block-end: 1px solid var(--border); }
.map-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 5px;
  color: var(--ink);
  text-decoration: none;
  min-height: 56px;
}
.map-list a:hover { text-decoration: underline; }
.map-list small, .hub-legend small { display: block; color: var(--subtle); font-size: var(--text-meta); }
.map-list strong, .hub-legend strong { font-size: .89rem; }

.demo { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; background: var(--soft); border: 1px solid var(--border); padding: 44px; border-radius: 16px; }
.demo h2 { margin-top: 13px; }
.demo-copy p { max-width: 42ch; }
.demo-results { background: var(--surface); padding: 24px; border: 1px solid var(--border); border-radius: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--page); }
.stats dt { color: var(--subtle); font-size: var(--text-meta); line-height: 1.3; }
.stats dd { font-size: 1.54rem; line-height: 1.15; color: var(--cobalt); font-weight: 680; font-variant-numeric: tabular-nums; }
.combo-grid, .region-grid, .source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.combo-grid article { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.combo-grid article > div { padding: 13px 22px 22px; }
.combo-grid img { aspect-ratio: 2; border-radius: 0; }
.combo-grid figcaption { padding: 0 22px; }
.soft-band { background: var(--soft); padding-block: 44px; }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.offer-short { display: flex; flex-direction: column; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 19px; }
.offer-short h3 { margin-bottom: 11px; }
.offer-short p:not(.overline) { font-size: var(--text-meta); }
.offer-short a { margin-top: auto; }
.transparency { display: flex; justify-content: space-between; align-items: center; gap: 24px; }

.crumb { margin: 20px 0 18px; color: var(--subtle); font-size: var(--text-meta); }
.crumb span { margin-inline-start: 6px; }
.article-head { padding-block: 12px 26px; margin-block-end: 22px; border-bottom: 1px solid var(--border); }
.article-head.with-photo { display: grid; align-items: center; grid-template-columns: 1fr minmax(0, 1fr); gap: 36px; }
.article-head h1, .subhead h1 { margin-bottom: 16px; }
.article-head .hero-support { max-width: 40ch; }
.article-photo img { aspect-ratio: 1.95; border-radius: 0 29px 0 0; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: 'index answer' 'index content'; gap: 0 36px; align-items: start; }
.article-answer { grid-area: answer; }
.article-aside { grid-area: index; position: sticky; top: 99px; border-inline-start: 1px solid var(--border); padding: 4px 0 8px 18px; }
.article-aside h2 { font: 700 var(--text-meta)/1.4 Inter, system-ui, sans-serif; letter-spacing: 0; margin-bottom: 8px; }
.article-aside ul { margin: 0 0 12px; list-style: none; padding: 0; }
.article-aside li a { display: block; padding: 5px 0; font-size: var(--text-meta); }
.article-aside .button { font-size: var(--text-meta); }
.article-body { grid-area: content; min-width: 0; }
.answer { background: var(--soft); padding: 22px 25px; border: 1px solid var(--border); border-left: 4px solid var(--cobalt); border-radius: 0 12px 12px 0; }
.answer h2 { margin-bottom: 8px; font: 750 var(--text-meta)/1.3 Inter, system-ui, sans-serif; letter-spacing: .075em; text-transform: uppercase; color: var(--cobalt); }
.answer p { max-width: 72ch; }
.article-feature, .prose-section { margin-top: 40px; }
.article-feature h2, .prose-section h2, .related h2 { font-size: clamp(1.77rem, 3vw, 2.25rem); }
.prose-section { max-width: 73ch; }
.section-source { font-size: var(--text-meta); color: var(--subtle); }
.bands, .city-map ol, .logistics-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.bands li, .logistics-steps li { display: flex; align-items: start; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.bands h3, .logistics-steps h3 { margin: 0 0 5px; }
.bands p, .logistics-steps p { font-size: .89rem; }
.band-period { min-width: 92px; width: max-content; flex: none; padding: 6px 9px; border-radius: 6px; font-weight: 690; color: var(--cobalt); background: var(--soft); font-size: var(--text-meta); text-align: center; }
.logistics-steps li > span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--soft); border-radius: 50%; font-weight: 720; color: var(--cobalt); }
.comparison-grid, .operational-grid, .link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comparison-card, .link-card { border: 1px solid var(--border); border-radius: 12px; padding: 19px; background: var(--surface); min-width: 0; }
.comparison-card h2 { font-size: clamp(1.46rem, 2.5vw, 1.85rem); }
.comparison-card dl > div { border-top: 1px solid var(--border); padding-block: 9px; }
.comparison-card dt { color: var(--cobalt); font-size: var(--text-meta); font-weight: 740; }
.comparison-card dd, .comparison-card p { font-size: var(--text-secondary); }
.comparison-card a { overflow-wrap: anywhere; }
.operational .section-source, .region-grid .section-source { margin-top: 12px; font-size: var(--text-meta); }
.callout { display: flex; align-items: start; gap: 10px; color: var(--ink); background: var(--alert); padding: 13px 16px; border-radius: 8px; font-size: .84rem; }
.callout svg { flex: none; color: var(--magenta); margin-block-start: 2px; }
.excursion-grid + .callout { margin-top: 16px; }
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 116px;
  padding-inline-end: 46px;
  color: var(--ink);
  text-decoration: none;
  transition: background .17s ease, border-color .17s ease;
}
.link-card strong { line-height: 1.23; }
.link-card span, .link-card small { color: var(--subtle); font-size: var(--text-meta); }
.link-card small { font-weight: 640; font-size: var(--text-meta); }
.link-card svg { position: absolute; top: 19px; right: 16px; color: var(--cobalt); }
.subpage { padding-bottom: 64px; }
.subhead { max-width: 840px; padding-block: 12px 28px; }
.subhead .overline { margin-bottom: 8px; }
.subpage > .callout { margin-bottom: 24px; }
.hub-legend li { border-block-end: 1px solid var(--border); }
.hub-legend a { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 8px; color: var(--ink); }
.hub-legend small { color: var(--subtle); }
.region-grid { margin-top: 22px; }
.itinerary-hub { margin-top: 24px; }
.itinerary-hub .button { margin-top: 8px; }
.narrow { max-width: 72ch; }
.narrow .prose-section:first-child { margin-top: 0; }
.narrow .button { margin-top: 20px; }

.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-form input {
  width: min(100%, 585px);
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--control);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
}
.search-heading { margin-top: 24px; font-size: 1.72rem; }
.search-status { min-height: 1.6em; }
.edition-notice { min-height: 55vh; padding-block: 70px; }
.edition-notice .actions { margin-block-start: 24px; }
.site-footer { background: var(--soft); border-top: 1px solid var(--border); }
.footer-main { display: flex; justify-content: space-between; gap: 32px; padding-block: 34px 23px; }
.footer-main p { color: var(--subtle); margin-top: 9px; font-size: var(--text-meta); }
.footer-main ul { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 10px; }
.footer-main a:not(.brand) { font-size: var(--text-meta); font-weight: 640; }

@media (max-width: 1120px) {
  .header-inner { gap: 13px; }
  .nav-desktop ul { gap: 12px; }
  .nav-desktop a { font-size: var(--text-meta); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-offset: 75px; }
  .nav-desktop { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu .popover { right: max(20px, calc((100vw - 1240px) / 2)); top: calc(100% - 1px); }
  .header-inner { min-height: 65px; }
  .header-actions { gap: 4px; }
  .quick-grid { gap: 9px; }
  .quick-card { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .quick-card .tile-icon { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 182px minmax(0, 1fr); gap: 21px; }
  .article-aside { top: 85px; padding-inline-start: 12px; }
  .transparency { flex-direction: column; align-items: start; }
}

@media (max-width: 720px) {
  :root { font-size: 106.25%; }
  .wrap { width: calc(100% - 40px); }
  .section { margin-top: 52px; }
  .section:last-child { margin-bottom: 52px; }
  .section-head { display: block; margin-bottom: 16px; }
  .section-head > a { margin-top: 9px; max-width: none; }
  .quick-grid, .city-grid { grid-template-columns: 1fr; gap: 10px; }
  .quick-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 12px; }
  .quick-card .tile-icon { grid-column: auto; }
  .atlas-band, .soft-band { padding-block: 32px; }
  .atlas-layout, .hub-map, .demo { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .map-art { min-height: 275px; aspect-ratio: 1.25; }
  .map-marker { min-height: 35px; padding-inline: 5px; font-size: var(--text-meta); }
  .map-marker span { width: 8px; height: 8px; }
  .map-salvador { top: 40%; left: auto; right: 4%; }
  .map-praia { top: 16%; left: auto; right: 7%; }
  .map-baia { top: 57%; right: 38%; }
  .map-morro { top: 76%; right: 4%; left: auto; }
  .map-chapada { top: 29%; left: 3%; }
  .demo { padding: 20px; }
  .demo-results { padding: 13px; }
  .combo-grid, .region-grid, .source-grid, .offer-grid, .comparison-grid, .operational-grid, .link-grid { grid-template-columns: 1fr; gap: 12px; }
  .article-head.with-photo, .article-layout { grid-template-columns: 1fr; gap: 17px; }
  .article-head { padding-block: 5px 22px; }
  .article-aside { position: static; }
  .article-layout { grid-template-areas: 'answer' 'index' 'content'; }
  .article-aside { width: 100%; }
  .bands li { flex-direction: column; gap: 8px; }
  .band-period { text-align: start; }
  .footer-main { flex-direction: column; gap: 9px; padding-block: 24px 15px; }
}

@media (max-width: 490px) {
  .header-inner { gap: 6px; }
  .brand img { width: 138px; }
  .search-icon { display: none; }
  .header-plan { min-width: 44px; min-height: 44px; padding: 8px; }
  .header-plan .plan-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .header-plan .plan-icon { display: block; }
  .locale-menu summary { padding-inline: 5px; }
  .locale-menu .popover { right: -64px; }
}

@media (max-width: 360px) {
  .header-actions { gap: 2px; }
  .header-inner .brand img { width: 122px; }
  .header-actions { flex: none; }
  .locale-menu summary svg:last-child { display: none; }
  .stats { gap: 5px; }
  .stats > div { padding: 7px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Topology and decisions */
.city-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--magenta);
  border-radius: 9px;
  background: var(--bay-tint);
}
.city-note > svg { color: var(--magenta); }
.city-note h3 { font-size: .97rem; margin-bottom: 3px; }
.city-note p { font-size: var(--text-meta); color: var(--subtle); }
.city-note .text-link { max-width: 31ch; }

.sample-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}
.sample-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--control);
  border-radius: 8px;
  color: var(--cobalt);
  background: var(--surface);
  font-size: var(--text-meta);
  font-weight: 670;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sample-option:hover { border-color: var(--cobalt); background: var(--blue-tint); }
.sample-option[aria-pressed='true'] { background: var(--cobalt); border-color: var(--cobalt); color: white; }
.sample-option svg { flex: none; }
[data-sample-panel]:not([hidden]) { animation: reveal .18s ease-out both; }
  display: grid;
  gap: 4px;
  padding: 0;
  list-style: none;
  margin: 13px 0;
}
.demo-results .text-link { margin-top: 9px; }

.template-destination .article-photo img { aspect-ratio: 2.25; }
.urban-map { margin-top: 9px; }
.urban-art {
  position: relative;
  width: 100%;
  min-height: 250px;
  aspect-ratio: 2.55;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--map-land);
  overflow: hidden;
}
.urban-art > svg { display: block; width: 100%; height: 100%; position: absolute; }
.urban-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 36%;
  min-height: 37px;
  padding: 5px 9px;
  border: 1px solid var(--control);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-meta);
  line-height: 1.22;
  font-weight: 720;
  text-decoration: none;
  transition: background .17s ease, box-shadow .17s ease;
}
.urban-marker > svg { flex: none; color: var(--cobalt); }
.urban-marker:hover, .urban-marker:focus-visible { background: white; box-shadow: 0 2px 16px #16223430; z-index: 1; }
.urban-alta { left: 8%; top: 6%; }
.urban-baixa { left: 49%; top: 48%; }
.urban-orla { right: 6%; top: 26%; }
.urban-orla > svg { color: var(--emerald); }
.urban-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: var(--text-meta); font-weight: 680; }
.urban-legend span { display: inline-flex; align-items: center; gap: 8px; }
.urban-legend span::before { content: ''; flex: 0 0 20px; border-top: 2px dashed var(--magenta); }
.urban-legend .coastal-link::before { border-color: var(--emerald); }
.urban-map figcaption { margin-top: 7px; color: var(--subtle); font-size: var(--text-meta); }
.urban-text-title { margin: 16px 0 8px; font-size: .86rem; }
.urban-reading { list-style: none; margin: 0 0 10px; padding: 0; }
.urban-reading li { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 12px; padding: 13px 11px; border-top: 1px solid var(--border); }
.urban-reading li:target { background: var(--soft); border-radius: 8px; animation: mark-route .35s ease-out both; }
.urban-reading h3 { margin-bottom: 3px; font-size: .9rem; }
.urban-reading p { font-size: .85rem; margin-block-end: 4px; }
.urban-reading .urban-places { font-size: var(--text-meta); color: var(--cobalt); font-weight: 650; }
@keyframes mark-route { from { box-shadow: inset 0 0 0 2px var(--magenta); } to { box-shadow: inset 0 0 0 2px transparent; } }

.choice-section { padding: 21px; background: var(--soft); border: 1px solid var(--border); border-radius: 13px; }
.choice-list { display: grid; gap: 0; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); }
.choice:last-child { padding-bottom: 0; }
.choice h3 { margin-bottom: 6px; font-size: .97rem; }
.choice p { max-width: 74ch; font-size: var(--text-secondary); }
.choice-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: var(--blue-tint); color: var(--alert-ink); }

.route-bands { position: relative; }
.route-bands li { position: relative; background: var(--surface); padding-left: 20px; }
.route-bands li + li::before { content: ''; position: absolute; top: -11px; left: 38px; height: 11px; border-left: 2px dotted var(--magenta); }
.band-symbol { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--cobalt); }

.compare-workbench { border-radius: 14px; border: 1px solid var(--border); background: var(--soft); padding: 16px; }
.compare-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.compare-selects label { font-size: var(--text-meta); font-weight: 690; }
.compare-selects select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 7px 9px;
  border: 1px solid var(--control);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: .84rem;
}
.compare-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 9px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.compare-row dt { grid-column: 1 / -1; color: var(--cobalt); font-size: var(--text-meta); font-weight: 740; }
.compare-row dd { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 8px; font-size: var(--text-secondary); }
.compare-row dd strong, .compare-row dd span { display: block; }
.compare-row dd strong { margin-bottom: 3px; color: var(--cobalt-dark); }
.profile-heading { margin: 22px 0 9px; }
.profile { border-top: 3px solid var(--emerald); }
.spoken-label { display: flex; align-items: start; gap: 7px; border-radius: 8px; padding: 10px; margin-bottom: 9px; background: var(--soft); }
.spoken-label > svg { flex: none; color: var(--cobalt); margin-top: 2px; }
.spoken-label strong { display: block; font-size: var(--text-meta); }
.spoken-label p { margin-top: 3px; }
.offer-divergent { border-color: var(--alert-border); }
.offer-divergent .spoken-label { background: var(--alert); }
.offer-divergent .spoken-label > svg { color: var(--magenta); }

@media (max-width: 760px) {
  .urban-art { min-height: 215px; }
  .route-bands li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; }
  .route-bands li div { grid-column: 2; }
}
@media (max-width: 520px) {
  .city-note { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px; }
  .city-note .text-link { grid-column: 2; }
  .urban-marker { max-width: 54%; min-height: 37px; font-size: var(--text-meta); }
  .urban-baixa { left: 35%; top: 55%; }
  .urban-orla { max-width: 48%; right: 5%; top: 25%; }
  .compare-row, .compare-selects { grid-template-columns: 1fr; }
}

/* Salvador and the regional destinations */
.route-hero { padding-block: clamp(26px, 3.6vw, 50px) 0; }
.route-place { margin: 0 0 11px; }
.route-hero h1 {
  font-size: clamp(3.2rem, 8.3vw, 7.1rem);
  line-height: .93;
  letter-spacing: -.028em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.route-hero h1 span { color: var(--cobalt); }
.route-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.route-intro .hero-support { max-width: 42ch; margin: 0; }
.route-intro .actions { gap: 8px 18px; }
.route-board { position: relative; margin-block-start: clamp(19px, 2.7vw, 34px); }
.route-thread { position: absolute; inset: 0 0 auto; width: 100%; height: 96px; pointer-events: none; }
.route-thread-city { stroke: var(--cobalt); }
.route-thread-bay { stroke: var(--emerald); }
.route-thread-inland { stroke: var(--magenta); }
.route-stops {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3.5fr);
  align-items: start;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.route-stop { position: relative; padding-top: calc(29px + var(--step)); min-width: 0; }
.route-stop-city { --route-color: var(--cobalt); --step: 0px; }
.route-stop-bay { --route-color: var(--emerald); --step: 32px; }
.route-stop-inland { --route-color: var(--magenta); --step: 64px; }
.route-stop::before {
  position: absolute;
  inset: calc(14px + var(--step)) auto auto 9px;
  transform: translate(-50%, -50%);
  content: '';
  width: 13px;
  height: 13px;
  background: var(--surface);
  border: 3px solid var(--route-color);
  border-radius: 50%;
}
.route-stop-header { padding-bottom: 9px; }
.route-stop-header > span {
  display: block;
  color: var(--route-color);
  font-size: var(--text-meta);
  font-weight: 730;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.route-stop h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); margin: 2px 0 0; line-height: 1.05; }
.route-stop h2 a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  color: var(--ink);
  text-decoration: none;
}
.route-stop h2 a:hover { color: var(--route-color); text-decoration: underline; }
.route-stop h2 svg { flex: none; color: var(--route-color); }
.route-stop .photo img { height: clamp(175px, 15.5vw, 228px); border-radius: 0 26px 0 0; }
.route-stop-city .photo img { height: clamp(210px, 22vw, 322px); object-position: center 45%; }
.route-stop-bay .photo img { height: clamp(150px, 17vw, 251px); object-position: 53% 58%; }
.route-stop-inland .photo img { object-position: 50% 53%; }
.route-stop .photo figcaption { line-height: 1.36; margin-top: 8px; }
.route-scope { margin-block: 14px 0; }

.opening-reading { margin-bottom: 36px; }
.opening-reading .demo {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.55fr);
  align-items: center;
  gap: 22px;
  padding: 22px;
  background: var(--blue-tint);
  color: var(--ink);
  border-color: var(--blue-tint);
}
.opening-reading .demo-copy { padding: 7px 6px 7px 3px; }
.opening-reading .demo-copy h2 { font-size: clamp(1.75rem, 3vw, 2.44rem); margin: 0 0 10px; }
.opening-reading .demo-copy p { font-size: .89rem; color: var(--subtle); }
.opening-reading .demo-results { padding: 15px 17px; color: var(--ink); min-width: 0; }
.opening-reading .demo-results h3 { margin-bottom: 10px; }
.opening-reading .sample-toggle { margin-top: 13px; gap: 6px; }
.opening-reading .sample-option { min-height: 44px; background: var(--surface); color: var(--cobalt); border-color: var(--control); }
.opening-reading .sample-option:hover { background: var(--soft); }
.opening-reading .sample-option[aria-pressed='true'] { background: var(--cobalt); border-color: var(--cobalt); color: var(--surface); }
.opening-reading .sample-option:focus-visible { outline-color: var(--focus); }

.reading-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 11px; margin-bottom: 9px; }
.reading-metrics > div { display: flex; align-items: center; flex-direction: row-reverse; justify-content: start; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.reading-metrics dt { font-size: var(--text-meta); line-height: 1.12; color: var(--subtle); }
.reading-metrics dd { font-variant-numeric: tabular-nums; font-size: 1.35rem; line-height: 1.15; font-weight: 730; color: var(--cobalt); }
.reading-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.reading-stops li { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; padding: 3px 6px; border-radius: 5px; background: var(--blue-tint); color: var(--cobalt-dark); font-size: var(--text-meta); }
.reading-stops svg { flex: none; }
.date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 0;
  margin: 0 0 7px;
  list-style: none;
}
.date-box button, .date-fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 4px;
  min-height: 40px;
  padding: 4px 2px;
  border: 1px solid #b9d8d0;
  border-radius: 6px;
  background: var(--bay-tint);
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-meta);
  font-weight: 700;
}
.date-box:is(.transfer, .arrival, .departure) :is(button, .date-fallback) { background: var(--alert); border-color: var(--alert-border); color: var(--alert-ink); }
.date-box button:hover { border-color: currentColor; }
.date-box button[aria-pressed='true'] { border-color: currentColor; box-shadow: inset 0 -2px currentColor; }
.date-box button svg, .date-fallback svg { flex: none; }
.reading-day { min-height: 2.6em; margin-bottom: 5px; font-size: var(--text-meta); line-height: 1.28; font-weight: 670; }
.reading-caption { margin-bottom: 0; font-size: var(--text-meta); line-height: 1.36; }

@media (max-width: 850px) {
  .opening-reading .demo { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .opening-reading .demo-copy { padding: 0; }
}
@media (max-width: 720px) {
  .route-hero { padding-top: 23px; }
  .route-hero h1 { font-size: clamp(3.08rem, 12.8vw, 5.2rem); text-wrap: initial; margin-bottom: 14px; }
  .route-hero h1 span { display: block; }
  .route-intro { gap: 10px; }
  .route-intro .actions { gap: 6px 13px; }
  .route-intro .hero-support { line-height: 1.48; }
  .route-board { margin-block-start: 17px; }
  .route-thread { display: none; }
  .route-stops {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 13px;
    row-gap: 16px;
    padding-inline-start: 12px;
  }
  .route-stops::before {
    content: '';
    position: absolute;
    inset: 0 auto 35px 0;
    width: 2px;
    background: linear-gradient(var(--cobalt) 62%, var(--emerald) 62% 84%, var(--magenta) 84%);
  }
  .route-stop { --step: 0px; padding-top: 8px; border-top: 2px solid var(--route-color); }
  .route-stop::before { width: 9px; height: 9px; border-width: 2px; inset: -1px auto auto 8px; }
  .route-stop-city { grid-column: 1 / -1; }
  .route-stop-inland { margin-top: 12px; }
  .route-stop-header { padding-bottom: 4px; }
  .route-stop-city .route-stop-header { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
  .route-stop h2 { letter-spacing: 0; margin: 0; }
  .route-stop h2 a { gap: 5px; }
  .route-stop h2 svg { width: 13px; }
  .route-stop .photo img { height: clamp(110px, 26vw, 190px); border-top-right-radius: 18px; }
  .route-stop-city .photo img { height: clamp(148px, 43vw, 270px); }
  .route-stop .photo figcaption { overflow-wrap: anywhere; }
  .opening-reading { margin-bottom: 25px; }
  .opening-reading .demo { padding: 12px; }
  .opening-reading .demo-results { padding: 12px; }
  .opening-reading .demo-copy h2 { margin-top: 0; }
  .opening-reading .demo-copy p { margin-bottom: 10px; }
  .opening-reading .sample-toggle { margin-top: 0; }
}
@media (max-width: 490px) {
  .route-intro .actions > .text-link svg { display: none; }
  .date-strip { gap: 3px; }
  .date-box button, .date-fallback { flex-direction: column; gap: 2px; line-height: 1; min-height: 44px; }
  .date-box button svg, .date-fallback svg { width: 15px; height: 15px; }
  .reading-metrics > div { align-items: start; flex-direction: column-reverse; gap: 2px; }
}

/* Evidence surfaces */
.shuttle-figure {
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  background: var(--soft);
}
.shuttle-figure h3 { font-size: 1.08rem; margin-bottom: 9px; }
.shuttle-directions { list-style: none; margin: 0 0 9px; padding: 0; }
.shuttle-directions li {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 9px 12px;
  min-height: 52px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.shuttle-directions li > span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-meta); }
.shuttle-directions svg { color: var(--cobalt); flex: none; }
.shuttle-directions .shuttle-arrow { white-space: nowrap; color: var(--cobalt); }
.shuttle-figure figcaption { color: var(--subtle); font-size: var(--text-meta); }

.evidence-index {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.3fr);
  gap: 10px 24px;
  align-items: center;
  padding: 18px 20px;
  background: var(--blue-tint);
  border: 1px solid var(--border);
  border-radius: 13px;
}
.evidence-index h2 { margin-bottom: 7px; font-size: clamp(1.55rem, 2.3vw, 2.1rem); }
.evidence-index p { color: var(--subtle); font-size: .84rem; }
.evidence-index ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.evidence-index a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px;
  border-bottom: 1px dashed var(--control);
  color: var(--cobalt-dark);
  font-size: var(--text-meta);
  font-weight: 680;
}
.source-hub > .evidence-review { margin-block: 16px 22px; }
.source-section { margin-top: 33px; }
.source-section > header { display: flex; gap: 10px; align-items: center; padding-bottom: 11px; }
.source-section > header svg { flex: none; color: var(--cobalt); }
.source-section > header h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); margin: 0; }
.source-card { border-top: 2px solid var(--cobalt); }
.source-card h3 { margin-bottom: 8px; }
.source-card:target { border-color: var(--magenta); animation: mark-route .35s ease-out both; }
@media (max-width: 720px) {
  .evidence-index { grid-template-columns: 1fr; padding: 13px; }
}
@media (max-width: 440px) {
  .evidence-index ul { grid-template-columns: 1fr; }
  .shuttle-figure { padding: 10px; }
  .shuttle-directions li { gap: 5px; }
  .shuttle-directions li > span { align-items: start; flex-direction: column; line-height: 1.2; }
  .shuttle-directions .shuttle-arrow { align-items: center; }
}
.source-next { margin-top: 6px; }

/* Legibility and navigation */
.popover a:focus-visible { outline-offset: -3px; }
.section-source a { display: inline-block; min-height: 24px; }
.article-aside li a { min-block-size: 28px; }
.map-marker, .urban-marker, .sample-option { min-block-size: 44px; }
.date-box button, .date-fallback { min-block-size: 44px; }
.site-footer a:not(.brand) { display: inline-flex; min-block-size: 36px; align-items: center; }
.search-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.search-feedback .search-status { margin: 0; }
.reading-caption { line-height: 1.46; }
.reading-metrics dt { line-height: 1.24; }
@media (max-width: 490px) {
  .date-strip { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
  .date-box button, .date-fallback { flex-direction: row; gap: 5px; }
  .article-aside li a { min-block-size: 36px; }
}
@media (max-height: 470px) {
  :root { --header-offset: 8px; }
  .site-header { position: relative; }
}
