@font-face {
  font-family: Inter;
  src: url('./inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url('./newsreader.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #ffffff;
  --white: #ffffff;
  --ink: #191a31;
  --muted: #444b62;
  --wine: #781a44;
  --wine-dark: #55122d;
  --blue: #1d4b8f;
  --green: #245464;
  --surface: #f1eff7;
  --line: #cbd0e1;
  --skywash: #edf3fb;
  --serif: Newsreader, Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --text-meta: .875rem;
  --text-support: .9375rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.125rem/1.68 var(--sans);
}
h1, h2, h3, h4, p, figure, dl { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.5rem, 4.85vw, 4.35rem); letter-spacing: -.042em; }
h2 { font-size: clamp(2.15rem, 3.5vw, 3.25rem); letter-spacing: -.032em; }
h3 { font-size: clamp(1.55rem, 2.25vw, 1.95rem); letter-spacing: -.022em; }
h4 { font-size: 1.45rem; }
p + p { margin-top: 1em; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; }
button, summary, select { cursor: pointer; }
select, input { color: var(--ink); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[id]:target { scroll-margin-block: 14px; }
#main:focus { outline: 0; }
.map-marker:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 4px var(--white); }
.source-link, .diagram-label, .diagram-nodes strong, .cut-marker, .budget-item dt,
.choices span, .footer-grid a { overflow-wrap: anywhere; }

.wrap { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.section { padding-block: clamp(56px, 6.6vw, 92px); }
.muted { color: var(--muted); }
.small { font-size: var(--text-meta); }
.glyph { display: inline-block; flex: 0 0 auto; font: 500 1em/1 var(--sans); }
.eyebrow {
  color: var(--wine);
  font: 650 var(--text-meta)/1.4 var(--sans);
  letter-spacing: .095em;
  text-transform: uppercase;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.site-header {
  background: var(--canvas);
  border-top: 4px solid var(--wine);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  text-decoration: none;
  flex: 0 0 auto;
}
.wordmark { display: grid; justify-items: end; padding-block: 3px 5px; }
.wordmark-prefix { font: 650 var(--text-meta)/1.05 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.wordmark-city { font: 575 2.3rem/.85 var(--serif); letter-spacing: -.064em; white-space: nowrap; }
.wordmark-initial { position: relative; font-size: 1.18em; color: var(--wine); }
.wordmark-initial::after {
  content: '';
  position: absolute;
  width: .9em;
  height: 2px;
  bottom: .12em;
  left: -.02em;
  background: var(--blue);
  transform: rotate(-12deg);
  transform-origin: left;
}
.wide-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: clamp(10px, 1.4vw, 22px); }
.wide-nav a, .practical-link {
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 580;
  line-height: 1.28;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-block: 6px;
  text-align: center;
  text-decoration: none;
}
.wide-nav a:hover, .practical-link:hover, .wide-nav [aria-current] { color: var(--wine); text-decoration: underline; }
.header-tools { display: flex; align-items: center; gap: 5px; }
.practical-link { color: var(--wine); padding-inline: 11px; border-right: 1px solid var(--line); }
.icon-button {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 5px;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 650;
  text-decoration: none;
  padding: 0 8px;
}
.icon-button:hover, details[open] > .icon-button { background: var(--surface); }
.search-icon {
  border: 1.6px solid currentColor;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  position: relative;
  margin: -3px 3px 0 0;
}
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.6px; background: currentColor; transform: rotate(45deg); right: -4px; bottom: -2px; }
.menu-icon { width: 18px; height: 13px; border-block: 1.5px solid currentColor; display: grid; align-items: center; }
.menu-icon::before { content: ''; height: 1.5px; background: currentColor; }
.chevron { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin: -3px 1px 0; }
details[open] > summary .chevron { transform: rotate(225deg); margin-top: 3px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
details { position: relative; }
.header-popover {
  margin: 0;
  padding: 8px;
  list-style: none;
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 176px;
  max-width: min(280px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 32px #28234124;
  background: var(--white);
}
.header-popover a { padding: 9px 11px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.header-popover a:hover, .header-popover a[aria-current] { color: var(--wine-dark); background: var(--surface); }
.header-popover small { color: var(--muted); font-size: var(--text-meta); }
.small-nav { display: none; }

.button, .inline-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 620;
  line-height: 1.35;
}
.button {
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  max-width: 100%;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  text-decoration: none;
  text-align: left;
}
.primary { color: var(--white); background: var(--wine); }
.primary:hover { background: var(--wine-dark); }
.outline { color: var(--wine-dark); border-color: var(--wine); background: transparent; }
.outline:hover { background: #781a440e; }
.light { color: var(--green); background: #f9faff; }
.light:hover { background: var(--white); }
.inline-link { color: var(--wine-dark); text-underline-offset: .22em; min-height: 44px; align-items: center; }
.inline-link .glyph { font-size: .92em; }
.stack-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 20px; }

.cover-frame { padding-top: clamp(12px, 2vw, 25px); }
.cover-edition {
  display: grid;
  grid-template-columns: minmax(0, 1.88fr) minmax(0, .8fr);
  align-items: end;
  gap: clamp(24px, 4vw, 62px);
  padding-block: clamp(22px, 3vw, 42px);
}
.cover-edition h1 {
  font-size: clamp(2.9rem, 5.15vw, 4.8rem);
  line-height: .96;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.cover-name { color: var(--wine); font-weight: 570; }
.hero-dek { max-width: 64ch; margin-top: 14px; color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.1875rem); line-height: 1.55; }
.cover-intro .hero-dek { margin-top: 0; }
.editorial-cta { margin-top: 14px; color: var(--white); background: var(--blue); border-radius: 3px; gap: 22px; }
.editorial-cta:hover { background: var(--ink); }
.cover-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: start;
  gap: clamp(18px, 5vw, 68px);
  padding-block: clamp(24px, 4.4vw, 60px);
}
.cover-decision h2 { color: var(--wine-dark); font-size: clamp(1.94rem, 3.6vw, 3.15rem); }
.cover-decision p { max-width: 55ch; margin-top: 8px; line-height: 1.56; }
.cover-reading { display: flex; flex-wrap: wrap; gap: 1px 18px; margin-top: 6px; }
.cover-reading .inline-link { color: var(--wine-dark); font-size: 1rem; gap: 8px; }
.cover-reading .try-example { color: var(--blue); }
.photo { min-width: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 4px; object-fit: cover; }
.photo figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 15px;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}
.photo figcaption a { color: inherit; }
.home-hero-photo img { height: clamp(270px, 33vw, 442px); object-position: 50% 33%; border-radius: 2px; }

.quick-wrap { border-block: 1px solid var(--line); background: #f1eff7; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-links a {
  min-height: 69px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-inline-start: 1px solid var(--line);
  color: var(--ink);
  font-weight: 620;
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: none;
}
.quick-links a:last-child { border-inline-end: 1px solid var(--line); }
.quick-links a:hover { background: var(--surface); text-decoration: underline; }
.quick-links .glyph { color: var(--wine); }

.section-head { max-width: 47rem; margin-bottom: 30px; }
.section-head .eyebrow, .feature-copy .eyebrow { margin-bottom: 10px; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.door { border-bottom: 1px solid var(--line); padding-bottom: 23px; }
.door .photo img { aspect-ratio: 1.57; }
.door-body { padding-top: 22px; }
.door h3 { margin-block: 9px 10px; }
.door h3 a, .path-cards h3 a, .search-row h3 a { color: inherit; text-decoration: none; }
.door h3 a:hover, .path-cards h3 a:hover, .search-row h3 a:hover { text-decoration: underline; }
.door h3 .glyph, .path-cards h3 .glyph, .search-row h3 .glyph { color: var(--wine); font-size: .56em; }
.door-body p:last-child { font-size: .94rem; color: var(--muted); }

.map-band { background: #f3f5fb; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 34px; align-items: start; }
.map-art {
  height: clamp(330px, 32vw, 442px);
  background: repeating-linear-gradient(0deg, transparent 0 29px, #4c659a24 29px 30px), repeating-linear-gradient(90deg, transparent 0 29px, #4c659a24 29px 30px), #cfddf2;
  border: 1px solid #a7b5cf;
  border-radius: 4px;
  position: relative;
  isolation: isolate;
}
.map-land {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(46deg, transparent 0 24px, #8184a923 24px 25px), #eeedf7;
  clip-path: polygon(52% 0, 49% 7%, 45% 9%, 44% 18%, 47% 25%, 48% 32%, 46% 40%, 43% 45%, 42% 54%, 40% 60%, 37% 67%, 36% 75%, 39% 81%, 45% 84%, 56% 79%, 63% 78%, 72% 73%, 79% 79%, 88% 75%, 93% 71%, 100% 70%, 100% 0);
}
.map-water { position: absolute; padding: 4px; color: #244669; font: 480 clamp(.78rem, 2vw, 1.31rem)/1 var(--serif); max-width: 29%; }
.map-water.bay { left: 8%; top: 25%; }
.map-water.ocean { right: 7%; bottom: 8%; }
.map-compass { position: absolute; top: 12px; right: 16px; font-size: .91rem; color: var(--wine-dark); }
.map-compass b { font-size: 1.2em; }
.map-marker, .place-key { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-size: .9rem; font-weight: 650; }
.map-marker { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); border: 2px solid var(--white); text-decoration: none; box-shadow: 0 2px 4px #2228473d; }
.map-marker:hover { background: var(--wine); }
.map-list { display: grid; gap: 1px; list-style: none; padding: 0; margin: 0; border-block: 1px solid #aebbd6; }
.map-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #b3c0db80; }
.map-list li:last-child { border: none; }
.map-list li:target { background: #edf3fb; box-shadow: inset 3px 0 0 var(--green); padding-inline-start: 10px; }
.map-list h3 { font-size: 1.47rem; }
.map-list p { font-size: .91rem; line-height: 1.5; margin-top: 3px; }
.map-list a, .map-note { font-size: var(--text-meta); }
.place-key { width: 27px; height: 27px; font-size: var(--text-meta); }
.map-note { grid-column: 1/-1; margin-top: 10px; color: var(--muted); display: flex; gap: 5px 12px; flex-wrap: wrap; }

.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5.4vw, 78px); align-items: center; }
.feature-photo img { aspect-ratio: 1.16; }
.feature-copy > p:not(.eyebrow) { margin-block: 13px 17px; }
.feature-practical { padding: 15px 17px; border-left: 3px solid var(--green); background: var(--skywash); font-size: .9rem; }
.feature-practical h3 { font: 650 .88rem/1.4 var(--sans); color: var(--green); margin-bottom: 4px; }
.feature .button { margin-top: 20px; }

.days-band { background: var(--green); color: #ffffff; }
.days-band a:not(.button) { color: #ffffff; }
.days-band :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.days-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 7vw, 103px); }
.days-intro > p { margin-block: 14px 24px; max-width: 30rem; }
.days-grid ol { list-style: none; padding: 0; margin: 0; }
.days-grid li { border-top: 1px solid #cfd6ef72; padding: 15px 0; }
.days-grid li:last-child { border-bottom: 1px solid #cfd6ef72; }
.days-grid li p { margin-top: 5px; font-size: .93rem; }

.path-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.path-cards article { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--wine); border-radius: 4px; padding: 20px; }
.path-cards p { font-size: .91rem; line-height: 1.6; margin-top: 8px; color: var(--muted); }
.pathways > .button { margin-top: 22px; }
.plan-band { background: var(--surface); }
.plan-band .path-cards article { border-top-color: var(--green); }
.method { display: flex; justify-content: space-between; gap: 24px 50px; align-items: flex-end; }
.method p { max-width: 38rem; margin-top: 12px; }

.article-hero { padding-block: clamp(26px, 4vw, 56px) 25px; }
.article-hero-text .eyebrow { color: var(--blue); margin-bottom: 11px; }
.article-hero h1 {
  max-width: 24ch;
  font-size: clamp(2.55rem, 5.5vw, 5rem);
  line-height: 1.01;
  text-wrap: pretty;
}
.article-hero.essay h1 { color: var(--wine-dark); }
.article-hero-lead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding-block: 13px 17px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.article-decision { max-width: 66ch; font-size: clamp(1.125rem, 1.45vw, 1.1875rem); line-height: 1.54; }
.layer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.layer-links .button { min-height: 48px; padding: 9px 14px; border-radius: 3px; }
.article-hero-photo img { aspect-ratio: 3.02; border-radius: 2px; object-position: 50% 48%; }
.article-hero.essay .article-hero-photo img { object-position: 50% 54%; }
.article-hero.itinerary .article-hero-photo img { object-position: 50% 39%; }

.article-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(12px, 4vw, 56px);
  padding: clamp(20px, 3.4vw, 43px);
  border-top: 2px solid var(--wine);
  background: #f1eff7;
}
.article-summary .eyebrow { margin-bottom: 7px; }
.article-summary h2 { font-size: clamp(1.55rem, 2.25vw, 2.1rem); margin-bottom: 8px; }
.direct-answer { font-size: clamp(1.125rem, 1.48vw, 1.18rem); max-width: 60ch; }
.article-summary dl { display: grid; grid-template-columns: 1fr; align-content: start; gap: 8px; }
.article-summary dl > div { border-bottom: 1px solid var(--line); padding-block: 4px 8px; }
.article-summary dt, .offer dt { color: var(--muted); font-size: var(--text-meta); line-height: 1.4; }
.article-summary dd, .offer dd { margin: 2px 0 0; font-size: .94rem; font-weight: 620; line-height: 1.4; }
.article-map { margin-block: 44px 0; }
.article-map > h2 { margin-bottom: 18px; }
.article-grid { display: grid; grid-template-columns: minmax(166px, .27fr) minmax(0, 1fr); gap: clamp(22px, 6vw, 87px); margin-block: clamp(30px, 5.2vw, 74px); align-items: start; }
.toc { border-top: 1px solid var(--line); padding: 14px 0 0; position: sticky; top: 20px; align-self: start; }
.toc h2 { margin-bottom: 11px; font: 650 var(--text-meta)/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.toc ol { padding-left: 20px; margin: 0 0 8px; }
.toc li { color: var(--wine); }
.toc a { display: flex; min-height: 44px; align-items: center; padding-block: 4px; color: var(--ink); font-size: var(--text-meta); line-height: 1.4; }
.toc > a { color: var(--wine-dark); }
.reading { max-width: 77ch; min-width: 0; }
.reading .chapter h2 { max-width: 34ch; margin-bottom: 14px; text-wrap: pretty; }
.chapter > p { max-width: 68ch; font-size: clamp(1.125rem, 1.4vw, 1.1875rem); }
.chapter { margin-bottom: 36px; }
.chapter:target h2 { color: var(--wine); }
.article-summary:target, .practical-panel:target { box-shadow: inset 0 0 0 2px var(--wine); }
.practical-panel { margin: 18px 0 40px; padding: clamp(17px, 3vw, 31px); border-left: 3px solid var(--green); background: var(--skywash); border-radius: 0 4px 4px 0; font-size: .98rem; }
.practical-panel .eyebrow { color: var(--green); }
.practical-panel h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-block: 8px 9px; }
.practical-panel ul { margin: 10px 0; padding-left: 22px; }
.practical-panel li { padding: 3px 0; }
.practical-panel .inline-link { color: var(--green); font-size: .88rem; }
.inline-photo { margin-bottom: 32px; max-width: 32rem; }
.inline-photo img { aspect-ratio: 1.75; }
.source-chips { padding: 0; margin: 13px 0 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.source-chips li { min-width: 0; }
.source-chips a { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); font-size: var(--text-meta); text-decoration: none; line-height: 1.28; }
.source-chips a:hover { background: var(--surface); text-decoration: underline; }
.source-chip-title { overflow-wrap: anywhere; }
.itinerary .chapter { padding-left: 19px; border-left: 2px solid #a3b6d2; position: relative; }
.itinerary .chapter::before { content: ''; position: absolute; top: 5px; left: -6px; width: 10px; height: 10px; background: var(--green); border: 1px solid var(--canvas); border-radius: 50%; }
.comparison .chapter { border-top: 1px solid var(--line); padding-top: 13px; }
.service .reading { counter-reset: step; }
.service .chapter { counter-increment: step; border-top: 1px solid var(--line); padding-top: 16px; }
.service .chapter > h2::before { content: counter(step, decimal-leading-zero) ' '; display: inline-block; vertical-align: .42em; font: 650 .32em/1 var(--sans); color: var(--wine); margin-inline-end: 7px; }
.glossary { margin: 45px 0 33px; padding: 20px; border: 1px solid var(--line); background: var(--white); }
.glossary h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 13px; }
.term { border-top: 1px solid var(--line); }
.term[open], .term:target { background: var(--canvas); }
.term summary { padding: 10px 8px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-weight: 650; color: var(--wine-dark); min-height: 44px; }
.term p { padding: 0 8px 10px; }
.term .source-chips { margin: 0 8px 12px; }
.term-toggle { width: 14px; height: 14px; position: relative; display: inline-grid; place-items: center; }
.term-toggle::before, .term-toggle::after { content: ''; width: 11px; height: 1px; background: currentColor; position: absolute; }
.term-toggle::after { transform: rotate(90deg); }
.term[open] .term-toggle::after { display: none; }
.term-link { font-weight: 550; }
.article-references { padding-block: 20px; border-top: 1px solid var(--line); }
.article-references h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.article-references p { margin-top: 12px; color: var(--muted); font-size: var(--text-meta); }
.article-related { margin-bottom: 64px; border-top: 1px solid var(--line); padding-top: 25px; }
.article-related h2 { margin-bottom: 20px; }
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 13px; }
.offer { padding: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.offer h3 { font-size: 1.47rem; text-wrap: pretty; }
.offer dl { display: grid; gap: 9px; margin-block: 10px; }
.offer a { font-size: var(--text-meta); }

.utility-hero { padding-block: clamp(39px, 5vw, 73px) 23px; }
.utility-hero h1 { max-width: 19ch; text-wrap: pretty; }
.utility-hero p { max-width: 61ch; }
.utility-body { padding-bottom: 65px; }
.utility-body section { max-width: 77ch; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.utility-body h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 9px; text-wrap: pretty; }
.institution-copy > .inline-link { margin-top: 25px; }
.library-list, .search-index { margin: 15px 0 0; padding: 0; list-style: none; }
.library-list li { padding: 11px; position: relative; border-block-start: 1px solid var(--line); overflow-wrap: anywhere; }
.library-list li:target { background: var(--skywash); box-shadow: inset 3px 0 0 var(--green); }
.library-list a { display: flex; align-items: center; min-height: 44px; gap: 5px; font-weight: 550; }
.library-list p { color: var(--muted); font-size: var(--text-meta); }
.library-list p a { display: inline; }
.library-list .eyebrow { display: block; margin-bottom: 3px; }
.search-form { max-width: 43rem; padding: 17px; background: var(--surface); border-radius: 6px; margin-bottom: 33px; }
.search-form label { display: block; font-weight: 620; font-size: 1rem; margin-bottom: 5px; }
.search-form > div { display: flex; gap: 9px; }
.search-form input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: 1px solid #626781;
  border-radius: 6px;
  background: var(--white);
  padding: 0 12px;
}
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-row { padding-block: 15px; border-bottom: 1px solid var(--line); }
.search-row p { font-size: .95rem; color: var(--muted); margin-top: 3px; }

.planner-intro h1 { max-width: 24ch; }
.journey-shell {
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 52px);
  padding-block: 9px 65px;
}
.journey-shell:has(.journey-controls[hidden]) { grid-template-columns: minmax(0, 740px); }
.journey-controls {
  border: 1px solid var(--line);
  background: var(--white);
  border-top: 3px solid var(--wine);
  border-radius: 4px;
  padding: clamp(16px, 2vw, 26px);
}
.journey-controls h2, .selection-panel > h2 { font-size: clamp(1.95rem, 3.2vw, 2.8rem); margin-bottom: 12px; }
.journey-controls fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.journey-controls legend, .journey-controls label[for], .slot-edit { font-weight: 620; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.journey-controls legend { margin-bottom: 2px; }
.journey-controls form { display: grid; gap: 14px; }
.journey-controls select, .slot-edit select {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid #626781;
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--white);
  font-size: 1rem;
}
.journey-controls select { font-weight: 450; }
.form-double, .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 9px; }
.form-double label { display: flex; flex-direction: column; justify-content: space-between; }
.choices label, .guide-required { display: flex; gap: 7px; align-items: flex-start; cursor: pointer; min-height: 44px; padding-block: 8px; font-size: var(--text-support); line-height: 1.34; }
.choices input, .guide-required input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--wine); flex: none; cursor: pointer; }
.guide-required { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 580; }
.journey-controls .button { margin-top: 2px; width: max-content; }
.selection-panel { min-width: 0; }
.matching-note { color: var(--muted); font-size: .9rem; margin-bottom: 13px; }
.journey-actions { background: var(--surface); border-block: 1px solid var(--line); padding: 10px 12px; }
.journey-actions > div { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.journey-actions button { color: var(--wine-dark); background: transparent; border: 0; padding: 3px 0; min-height: 44px; font-size: var(--text-support); font-weight: 620; text-decoration: underline; text-underline-offset: .19em; }
.journey-actions p { font-size: var(--text-meta); color: var(--muted); }
.journey-replace { margin-top: 9px; padding: 12px; border-left: 3px solid var(--wine); background: var(--white); }
.journey-replace h3 { font: 650 1rem/1.4 var(--sans); color: var(--wine-dark); }
.journey-replace p { margin-top: 4px; color: var(--ink); }
.journey-replace div { display: flex; flex-wrap: wrap; column-gap: 16px; }
#journey-status { min-height: 10px; font-size: var(--text-meta); color: var(--green); margin-top: 7px; }
.slots, .pending-list { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 12px; }
.slot-card, .pending-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  padding: clamp(14px, 2.1vw, 24px);
}
.slot-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 9px; }
.slot-heading .eyebrow { color: var(--green); }
.slot-heading > span:last-child { font-size: var(--text-meta); color: var(--muted); }
.slot-card h3 { margin-bottom: 8px; text-wrap: pretty; }
.slot-card p, .pending-card p { font-size: 1rem; line-height: 1.55; margin-top: 6px; }
.slot-card .slot-access { color: var(--green); font-size: var(--text-meta); font-weight: 550; }
.slot-times { display: flex; flex-wrap: wrap; gap: 7px 17px; margin: 12px 0 8px; border-top: 1px solid var(--line); padding-top: 9px; }
.slot-times dt { font-size: var(--text-meta); color: var(--muted); }
.slot-times dd { font-weight: 650; font-size: 1rem; margin: 0; line-height: 1.35; }
.plan-context { display: inline-flex; color: var(--green); font-size: var(--text-meta); padding-block: 2px; }
.slot-edit { display: block; margin-top: 11px; }
.slot-edit select { display: block; font-weight: 450; }
.form-issue { border-left: 2px solid var(--wine); background: #f3edf6; padding: 7px 8px; color: #55122d; font-size: var(--text-meta); }
.pending, .journey-references { margin-top: 26px; }
.pending-card { border-left-color: var(--wine); }
.pending-card h4 { margin-block: 6px; }
.journey-references ul { margin: 9px 0; padding-left: 20px; }
.journey-references a, .reference-date { font-size: var(--text-meta); }
.journey-references li + li { margin-top: 4px; }
.reference-date { color: var(--muted); }
#journey-example > p { font-size: .89rem; }
.print-preferences { display: none; }

.site-footer { background: #25273d; color: #ffffff; padding: 44px 0 15px; }
.site-footer a { color: #ffffff; }
.site-footer .wordmark-initial { color: #f9c9e1; }
.site-footer .wordmark-initial::after { background: #aecbff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 18px 31px; padding-bottom: 26px; }
.footer-grid p { max-width: 200px; font-size: .91rem; margin-top: 12px; }
.footer-grid h2 { font: 650 var(--text-meta)/1.5 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: #e4e1f2; }
.footer-grid ul { padding: 0; margin: 5px 0 0; list-style: none; }
.footer-grid li { font-size: var(--text-meta); }
.footer-grid li a { display: flex; align-items: center; min-height: 44px; }
.footer-base { border-top: 1px solid #cbd0e15c; padding-top: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; color: #e4e1f2; font-size: var(--text-meta); }

@media (max-width: 1110px) {
  .wide-nav { display: none; }
  .small-nav { display: block; }
  .header-row { min-height: 65px; }
  .practical-link { padding-inline: 11px; }
}

@media (max-width: 840px) {
  .wrap { width: calc(100% - 46px); }
  .cover-edition { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cover-edition h1 { max-width: 24ch; }
  .path-cards, .doors { gap: 14px; }
  .quick-links a { padding-inline: 10px; }
  .map-grid { gap: 0 19px; }
  .article-grid { gap: 24px; }
  .method { align-items: start; }
}
@media (max-height: 680px) {
  .toc { position: static; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .cover-decision, .feature, .days-grid, .article-summary, .article-grid, .journey-shell { grid-template-columns: minmax(0, 1fr); }
  .home-hero-photo img { height: auto; aspect-ratio: 1.42; object-position: 50% 56%; }
  .cover-edition h1 { font-size: clamp(2.7rem, 11vw, 4.1rem); max-width: 15ch; }
  .cover-phrase { display: block; }
  .hero-dek { margin-top: 12px; }
  .quick-links a { min-height: 62px; grid-template-columns: 1fr auto; font-size: var(--text-meta); gap: 6px; }
  .section { padding-block: 47px; }
  .section-head { margin-bottom: 20px; }
  .days-grid { gap: 22px; }
  .doors, .path-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .map-art { height: clamp(220px, 65vw, 365px); }
  .map-note { margin-top: 0; }
  .feature { gap: 21px; }
  .feature-photo img { aspect-ratio: 1.45; }
  .method { display: grid; }
  .practical-link { display: none; }
  .header-row { min-height: 61px; gap: 8px; }
  .header-tools { gap: 0; }
  .wordmark-city { font-size: 1.9rem; }
  .article-hero { padding-block: 24px 15px; }
  .article-hero-photo img { aspect-ratio: 1.6; }
  .article-summary dl { gap: 5px; }
  .toc { position: static; }
  .toc a { padding-block: 7px; }
  .chapter { margin-bottom: 27px; }
  .practical-panel { margin-bottom: 28px; }
  .journey-shell { gap: 26px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .doors, .path-cards, .offer-list { grid-template-columns: minmax(0, 1fr); }
  .quick-links { grid-template-columns: minmax(0, 1fr); }
  .quick-links a { min-height: 44px; border: 0; border-bottom: 1px solid var(--line); font-size: var(--text-meta); }
  .quick-links a:last-child { border: 0; }
  .door-body { padding-top: 15px; }
  .door h3 { margin-block: 6px; }
  .utility-hero { padding-bottom: 17px; }
  .source-chip-title { max-width: 36ch; }
}
@media (max-width: 345px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 2.38rem; }
  .wordmark-city { font-size: 1.72rem; }
  .header-tools .icon-button { padding-inline: 4px; }
  .search-form { padding: 12px; }
  .search-form button { padding-inline: 9px; }
  .journey-controls { padding: 12px; }
}
@media print {
  body { background: white; color: black; font: 10.5pt/1.42 var(--sans); }
  @page { margin: 1.45cm; }
  .site-header, .site-footer, .skip, .journey-controls, .journey-actions, #journey-status,
  .slot-edit, .layer-links, .cover-reading, .editorial-cta, .photo, .toc { display: none !important; }
  .wrap { width: 100%; margin: 0; }
  .planner-intro { padding-block: 0 10px; }
  .journey-shell { display: block; padding: 0; }
  .journey-shell h1, .utility-hero h1 { font-size: 27pt; }
  .journey-shell h2 { font-size: 20pt; }
  .journey-shell h3, .journey-shell h4 { font-size: 14pt; }
  .slot-card, .pending-card { break-inside: avoid; padding: 9px; border-color: #666; }
  .journey-references .source-link::after { content: " (" attr(href) ")"; display: inline; font-size: .84em; overflow-wrap: anywhere; }
  .print-preferences { display: block; margin-block: 8px; padding-block: 5px; border-block: 1px solid #777; break-inside: avoid; }
  .print-preferences dl { display: flex; flex-wrap: wrap; gap: 3px 16px; }
  .print-preferences dt, .print-preferences dd { display: inline; margin: 0; }
  .print-preferences dt { font-weight: 650; margin-inline-end: .3em; }
}

/* Editorial diagrams use shape and text so the reading survives zoom, print and no JS. */
.destination-cut { margin-block: 45px 0; }
.field-heading { margin-bottom: clamp(15px, 2.6vw, 24px); }
.field-heading p { max-width: 64ch; color: var(--muted); margin-top: 9px; }
.field-limit { margin-top: 13px; color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.cut-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(16px, 3.1vw, 40px); align-items: start; }
.cut-profile {
  min-height: 365px;
  height: clamp(365px, 37vw, 495px);
  position: relative;
  isolation: isolate;
  border: 1px solid #a5b1cb;
  overflow: clip;
  border-radius: 4px;
  background: #edeefa;
}
.cut-sky, .cut-water, .cut-land, .cut-shore { position: absolute; inset: 0; }
.cut-sky {
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #667ba722 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, #667ba71a 23px 24px),
    linear-gradient(164deg, #e8eef9, #e9e6f5);
}
.cut-water {
  top: 71%;
  background:
    repeating-linear-gradient(180deg, #f1f4ff30 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #86a4cf, #c6d7ee);
}
.cut-land {
  clip-path: polygon(14% 72%, 22% 67%, 41% 67%, 46% 60%, 51% 50%, 56% 40%, 61% 39%, 72% 39%, 77% 36%, 100% 36%, 100% 100%, 29% 100%, 21% 90%);
  background:
    repeating-linear-gradient(169deg, transparent 0 11px, #61558432 11px 12px, transparent 12px 15px),
    linear-gradient(172deg, #bfc1df 48%, #8b91bf 95%);
}
.cut-shore {
  clip-path: polygon(14% 72%, 22% 67%, 41% 67%, 46% 60%, 51% 50%, 56% 40%, 61% 39%, 72% 39%, 77% 36%, 100% 36%, 100% 38%, 77% 38%, 72% 41%, 61% 41%, 57% 42%, 52% 51%, 47% 61%, 42% 69%, 22% 69%, 15% 74%);
  background: #646e9a;
}
.cut-town { position: absolute; display: flex; align-items: end; gap: 2px; }
.cut-town i { display: block; background: #8c6691; width: 1.4rem; height: 2rem; border: solid #625475; border-width: 2px 1px 0; border-top-color: #594054; box-shadow: inset 5px 0 #ebeafb50; }
.cut-town i:nth-child(2) { height: 2.55rem; background: #c4c0de; }
.cut-town i:nth-child(3) { height: 1.4rem; background: #879bc2; }
.low-town { left: 23%; bottom: 33%; }
.high-town { left: 65%; bottom: 61%; }
.high-town i { width: 1.6rem; }
.cut-tower {
  position: absolute;
  width: 5.5%;
  height: 35%;
  left: 43%;
  bottom: 34%;
  background: repeating-linear-gradient(90deg, #e8e6f3 0 40%, #8c83ab 40% 49%, #d3d0e7 49% 100%);
  border: 1px solid #786f93;
}
.cut-tower::before { content: ''; position: absolute; left: -13%; right: -12%; top: -5px; height: 6px; background: #75566f; }
.cut-tower::after { content: ''; position: absolute; width: 200%; left: 100%; height: 10px; top: 23%; border-block: 1px solid #746e8a; background: #d0d2e8; }
.cut-bay {
  position: absolute;
  left: 5%;
  bottom: 5%;
  max-width: 24%;
  overflow-wrap: anywhere;
  font: 500 clamp(.875rem, 1.5vw, 1.36rem)/1.14 var(--serif);
  color: #263c67;
  background: #edf3fb;
  padding: 3px 5px;
  border-radius: 3px;
}
.cut-marker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  min-height: 44px;
  max-width: 53%;
  color: var(--wine-dark);
  background: var(--white);
  padding: 4px 8px;
  border: 1px solid #917e9d;
  border-radius: 4px;
  text-decoration: none;
  font-size: var(--text-meta);
  font-weight: 650;
  line-height: 1.24;
  z-index: 1;
}
.cut-marker::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 43%;
  height: 25px;
  border-left: 1px dashed #6c4565;
  pointer-events: none;
}
.cut-marker:hover, .city-cut:has(#corte-alta:target) .cut-alta,
.city-cut:has(#corte-ligacao:target) .cut-ligacao, .city-cut:has(#corte-baixa:target) .cut-baixa {
  background: var(--wine);
  color: var(--white);
}
.cut-alta { left: 60%; top: 11%; }
.cut-ligacao { left: 27%; top: 27%; }
.cut-baixa { left: 6%; top: 51%; }
.cut-key { list-style: none; margin: 0; padding: 0; border-block: 1px solid #b7bfd6; }
.cut-key > li { padding: 13px 9px 13px 15px; border-bottom: 1px solid #b7bfd6; border-left: 2px solid transparent; }
.cut-key > li:last-child { border-bottom: 0; }
.cut-key > li:target { background: #f1eff7; border-left-color: var(--wine); }
.cut-key h3 { font-size: clamp(1.4rem, 2.05vw, 1.82rem); margin-block: 4px 6px; text-wrap: pretty; }
.cut-key p:not(.eyebrow) { font-size: .91rem; line-height: 1.56; }
.cut-key .inline-link { font-size: var(--text-meta); margin-top: 5px; padding-block: 5px; }
.cut-key .source-chips { margin-top: 4px; }
.map-disclosure { margin-top: 28px; border-block: 1px solid #b5bfd8; }
.map-disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-block: 11px; min-height: 44px; color: var(--green);
  font-weight: 640; font-size: .94rem;
}
.map-disclosure[open] > summary { margin-bottom: 12px; }
.map-disclosure[open] > summary .term-toggle::after { display: none; }
.map-disclosure[open] .map-grid { padding-bottom: 15px; }

.field-sheet, .heritage-timeline {
  margin-block: 37px 47px;
  padding: clamp(15px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--wine);
  background: #f1eff7;
  border-radius: 0 0 4px 4px;
}
.field-sheet h2, .heritage-timeline h2 { font-size: clamp(1.95rem, 3.4vw, 2.85rem); text-wrap: pretty; }
.field-sheet .field-heading p, .heritage-timeline figcaption p { font-size: .94rem; line-height: 1.55; }
.field-sheet .source-chips { margin-top: 9px; }
.reading-rail, .heritage-timeline ol, .arrival-steps, .decision-rows { padding: 0; list-style: none; margin: 0; }
.reading-rail > li {
  display: grid;
  grid-template-columns: minmax(90px, .3fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  position: relative;
}
.rail-setting { padding: 14px 10px 14px 2px; font-size: var(--text-meta); font-weight: 650; line-height: 1.35; color: var(--wine-dark); }
.rail-copy { position: relative; padding: 14px 6px 14px 16px; border-left: 1px solid #ab8aa8; }
.rail-copy::before {
  position: absolute; content: ''; left: -4px; top: 21px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--wine);
}
.rail-copy h3, .decision-name h3, .route-place h3 { font-size: clamp(1.36rem, 2.4vw, 1.72rem); text-wrap: pretty; }
.rail-copy p, .decision-rows dd, .route-text p { font-size: .92rem; line-height: 1.58; margin-top: 5px; }
.field-fallback { border-left: 3px solid var(--green); padding: 11px 13px; background: var(--skywash); margin-top: 14px; }
.field-fallback p { font-size: .91rem; }
.field-fallback h3 { font-size: 1.45rem; margin-bottom: 4px; }
.field-fallback .inline-link { margin-top: 5px; font-size: var(--text-meta); padding-block: 5px; color: var(--green); }
.heritage-timeline { background: var(--white); border-top-color: var(--blue); }
.heritage-timeline figcaption p { color: var(--muted); margin-top: 6px; }
.heritage-timeline ol { margin-top: 15px; }
.heritage-timeline li {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 11px;
  padding: 9px 3px; border-block-start: 1px solid var(--line); align-items: baseline;
}
.heritage-timeline time { color: var(--wine-dark); font: 500 1.39rem/1 var(--serif); }
.heritage-timeline li p { font-size: .91rem; }
.year-ref { font-size: var(--text-meta); white-space: nowrap; }

.choice-sheet { background: #f1eff7; }
.decision-rows > li {
  display: grid; grid-template-columns: minmax(90px, .30fr) minmax(0, 1fr); gap: 6px 16px;
  border-top: 1px solid var(--line); padding-block: 13px; align-items: start;
}
.decision-rows dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 15px; }
.decision-rows dl > div:last-child { padding-left: 12px; border-left: 2px solid #98accb; }
.decision-rows dt { color: var(--wine-dark); font-weight: 640; font-size: var(--text-meta); line-height: 1.4; }
.decision-rows dd { margin-inline: 0; }
.decision-rows .base-link { display: flex; margin-top: 6px; padding-block: 4px; font-size: var(--text-meta); }
.decision-rows .source-chips { grid-column: 2; margin-top: 0; }
.choice-sheet > .inline-link { margin-top: 8px; }
.arrival-route { background: #edf3fb; border-top-color: var(--green); }
.arrival-steps > li {
  margin-left: 9px; padding: 9px 0 12px 19px; border-left: 1px solid #587da2;
  position: relative; display: grid; grid-template-columns: minmax(123px, .34fr) minmax(0, 1fr); gap: 12px;
}
.arrival-steps li::before {
  position: absolute; top: 15px; left: -5px; content: ''; width: 9px; height: 9px;
  border-radius: 50%; border: 1px solid #245464; background: #f9faff;
}
.arrival-steps li:nth-child(2)::before { background: var(--blue); border-color: var(--blue); }
.arrival-steps li:nth-child(3)::before { background: var(--wine); border-color: var(--wine); }
.arrival-steps li:last-child { border-left-style: dashed; }
.route-place > span { color: var(--green); font-size: var(--text-meta); font-weight: 650; line-height: 1.34; display: block; margin-bottom: 4px; }

.pending-jump { color: var(--wine-dark); font-size: .88rem; margin-bottom: 9px; }
.pending-jump a { display: inline-block; padding-block: 3px; }
.slot-budget {
  padding: 11px 12px 10px;
  margin-block: 14px;
  border: 1px solid #ccd0e2;
  background: #f1eff7;
  border-radius: 4px;
}
.slot-budget figcaption { font-weight: 650; font-size: var(--text-support); line-height: 1.36; }
.budget-track { display: flex; overflow: hidden; min-height: 15px; margin-block: 8px 9px; border-radius: 2px; border: 1px solid #737895; }
.budget-track span { flex: var(--minutes) 0 0; min-width: 0; }
.budget-track span + span { box-shadow: inset 1px 0 var(--white); }
.budget-place { --budget-tone: #781a44; }
.budget-travel { --budget-tone: #1d4b8f; }
.budget-break { --budget-tone: #245464; }
.budget-open { --budget-tone: repeating-linear-gradient(-45deg, #d4d7eb 0 3px, #f0f1f9 3px 7px); }
.budget-track span, .budget-item dt::before { background: var(--budget-tone); }
.slot-budget .slot-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 0; padding: 0; margin: 0; gap: 7px 9px; }
.budget-item dt { display: flex; align-items: baseline; gap: 4px; line-height: 1.3; }
.budget-item dt::before { content: ''; display: inline-block; flex: 0 0 8px; height: 8px; border: 1px solid #656a84; }
.budget-item dd { margin-top: 2px; }
.slot-card .budget-note { font-size: var(--text-meta); color: var(--muted); line-height: 1.45; margin-top: 8px; }
.chosen-reason h4, .slot-decisions h4 { font: 650 var(--text-meta)/1.4 var(--sans); color: var(--wine-dark); }
.chosen-reason { margin-bottom: 4px; }
.chosen-reason .reason-interests, .chosen-reason .reason-new { font-size: var(--text-meta); }
.area-tag {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid #aebbd5;
  color: var(--green);
  font-size: var(--text-meta);
  margin-inline-start: 5px;
  border-radius: 3px;
}
.slot-card .slot-shortest { background: #edf3fb; border-left: 2px solid #577da5; padding: 7px 9px; }
.slot-decisions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); margin-top: 13px; padding-top: 10px; gap: 12px;
}
.slot-decisions > div { min-width: 0; }
.slot-decisions:not(:has(.slot-check)) { grid-template-columns: 1fr; }
.slot-decisions p { font-size: var(--text-support); line-height: 1.46; margin-top: 4px; }
.slot-decisions .inline-link { font-size: var(--text-meta); padding-block: 5px; }
.slot-check { padding-left: 10px; border-left: 2px solid #987192; }
.slot-action {
  min-height: 44px; margin-top: 5px; padding: 3px 0; border: 0; color: var(--blue);
  background: transparent; font-size: var(--text-support); font-weight: 650; text-align: left;
  text-decoration: underline; text-underline-offset: .2em;
}
.pending-card:target { outline: 2px solid var(--wine); outline-offset: 3px; scroll-margin-top: 16px; }
.pending-sources { padding-left: 0; margin: 5px 0 0; list-style: none; font-size: var(--text-meta); }
.pending-sources .source-link { display: inline-block; padding-block: 3px; }

@media (max-width: 840px) {
  .cut-body { grid-template-columns: minmax(0, 1fr); }
  .cut-profile { min-height: 0; height: clamp(245px, 52vw, 395px); }
  .cut-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cut-key > li { border-bottom: 0; }
}
@media (max-width: 700px) {
  .cut-key { grid-template-columns: minmax(0, 1fr); }
  .cut-key > li { border-bottom: 1px solid #b7bfd6; }
  .cut-profile { height: clamp(230px, 62vw, 350px); }
  .cut-marker { gap: 4px; }
  .cut-marker::after { height: 15px; }
  .cut-alta { left: 57%; top: 8%; }
  .cut-ligacao { left: 24%; top: 29%; }
  .cut-baixa { left: 5%; top: 53%; }
  .cut-town i, .high-town i { width: 1.07rem; height: 1.2rem; }
  .cut-town i:nth-child(2) { height: 1.55rem; }
  .cut-town i:nth-child(3) { height: .93rem; }
  .reading-rail > li, .decision-rows > li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail-setting { padding-bottom: 0; }
  .rail-copy { border-left: 0; padding: 5px 0 12px; }
  .rail-copy::before { display: none; }
  .decision-name { margin-bottom: 8px; }
  .decision-rows .source-chips { grid-column: 1; margin-top: 6px; }
  .arrival-steps > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 441px) {
  .decision-rows dl, .slot-decisions { grid-template-columns: minmax(0, 1fr); }
  .slot-budget .slot-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-decisions { gap: 9px; }
}
@media print {
  .slot-action, .pending-jump, .slot-edit { display: none !important; }
  .slot-budget { print-color-adjust: exact; }
  .pending-card:target { outline: 0; }
}

/* The opening diagram links the first decision to its chapter and evidence. */
.opening-diagram {
  --diagram-ink: var(--wine-dark);
  --diagram-line: #b69bb1;
  margin-top: 12px;
  min-width: 0;
  padding: 12px 14px 10px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--wine);
  border-radius: 2px;
  background: #f1eff7;
}
.opening-diagram figcaption {
  color: var(--diagram-ink);
  font: 500 1.35rem/1.1 var(--serif);
  letter-spacing: -.018em;
}
.diagram-nodes {
  display: grid;
  grid-template-columns: repeat(var(--node-count), minmax(0, 1fr));
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.diagram-nodes > li { min-width: 0; padding: 0 8px 6px; position: relative; }
.diagram-nodes > li:first-child { padding-left: 1px; }
.diagram-nodes > li:last-child { padding-right: 0; }
.diagram-label { display: block; color: var(--diagram-ink); font-size: var(--text-meta); font-weight: 650; line-height: 1.28; }
.diagram-nodes strong { display: block; margin-top: 3px; font: 560 1.0625rem/1.22 var(--serif); }
.diagram-mark {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  margin-block: 2px 6px;
  border: 1px solid var(--diagram-ink);
  border-radius: 50%;
  z-index: 1;
  background: #f1eff7;
}
.diagram-mark::before {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--diagram-ink);
  content: '';
}
.diagram-branches .diagram-nodes > li + li { border-left: 1px solid var(--diagram-line); }
.diagram-branches .diagram-nodes > li:nth-child(2) .diagram-mark { border-style: dashed; border-radius: 2px; }
.diagram-branches .diagram-nodes > li:nth-child(2) .diagram-mark::before { border-radius: 0; opacity: .76; }
.diagram-branches .diagram-nodes > li:nth-child(3) .diagram-mark {
  border-radius: 1px;
  border-style: double;
  border-width: 3px;
}
.diagram-branches .diagram-nodes > li:nth-child(3) .diagram-mark::before { display: none; }
.diagram-route .diagram-nodes > li:not(:last-child)::after {
  position: absolute;
  border-top: 1px solid var(--diagram-line);
  content: '';
  top: 10px;
  left: 15px;
  right: -8px;
}
.diagram-city .diagram-nodes > li:nth-child(2)::after { border-top-style: dashed; }
.diagram-arrival .diagram-nodes > li:nth-child(2) .diagram-mark { border-radius: 2px; }
.diagram-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  border-top: 1px solid var(--diagram-line);
  padding-top: 3px;
  margin-top: 3px;
}
.diagram-links .inline-link { color: var(--diagram-ink); font-size: var(--text-support); min-height: 44px; align-items: center; gap: 6px; }
.diagram-sources { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; }
.diagram-sources a { display: inline-flex; color: var(--diagram-ink); gap: 3px; align-items: center; min-height: 44px; font-size: var(--text-meta); }
.diagram-home {
  --diagram-ink: #ffffff;
  --diagram-line: #bfa4c1;
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  color: #ffffff;
  padding-inline: clamp(13px, 2vw, 22px);
}
.diagram-home figcaption { font-size: clamp(1.34rem, 2.1vw, 1.75rem); }
.diagram-home .diagram-mark { background: var(--wine-dark); }
.diagram-home .diagram-label { color: #f0e8f3; }
.diagram-home .diagram-nodes strong { font-size: clamp(1rem, 1.38vw, 1.28rem); }
.diagram-home .diagram-links { margin-top: 6px; }
.diagram-home :focus-visible { outline-color: #fff; }
#selection:focus-visible { outline: 0; }
#selection:focus-visible > h2 {
  width: fit-content;
  max-width: 100%;
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.example-notice {
  margin-bottom: 12px;
  padding: 11px 13px;
  border-left: 3px solid var(--wine);
  background: #f1eff7;
}
.example-notice h3 { font: 600 1.24rem/1.1 var(--serif); color: var(--wine-dark); }
.example-notice p { margin-top: 4px; font-size: var(--text-meta); line-height: 1.45; }
.example-notice a { min-height: 44px; font-size: var(--text-support); align-items: center; }
@media (max-width: 700px) {
  .opening-diagram { margin-top: 9px; }
}
@media (max-width: 380px) {
  .opening-diagram { padding-inline: 9px; }
  .diagram-nodes > li { padding-inline: 5px; }
  .diagram-label, .diagram-nodes strong { overflow-wrap: anywhere; }
}
@media print {
  .example-notice .inline-link { display: none; }
}

@media (any-pointer: coarse) {
  .practical-panel .inline-link, .map-marker, .cut-marker, .cut-key .inline-link,
  .slot-decisions .inline-link, .plan-context, .quick-links a { min-height: 44px; }
  .map-marker { min-width: 44px; }
}

@media screen and (min-width: 960px) {
  body { font-size: 1.1875rem; }
}
@media (prefers-reduced-motion: no-preference) and (display-mode: browser) {
  .home-hero-photo img, .article-hero-photo img { animation: plate-arrival 420ms ease-out both; }
}
@keyframes plate-arrival {
  from { opacity: .9; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Alvos de toque dos links de oferta e de busca de hospedagem (parceiros) */
.offer .source-link { display: inline-flex; align-items: center; min-height: 44px; }
