:root {
  --ink: #241f1b;
  --paper: #f5f0e7;
  --paper-strong: #fffaf2;
  --paper-deep: #e9e0d2;
  --wine: #673a34;
  --wine-dark: #4d2d2a;
  --forest: #2e4a3d;
  --rust: #c96743;
  --muted: #776f67;
  --line: #cfc4b6;
  --header-height: 118px;
  --display-hero: clamp(58px, 6.6vw, 104px);
  --display-section: clamp(46px, 5.4vw, 78px);
  --display-detail: clamp(48px, 5.4vw, 82px);
  --lead-size: clamp(17px, 1.45vw, 22px);
  --section-space: clamp(64px, 8vw, 112px);
  --section-space-compact: clamp(48px, 6vw, 86px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button:focus-visible,
a:focus-visible,
summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 50;
  display: grid;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, .97);
  grid-template-rows: 22px 60px 36px;
}

.header-note {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  background: var(--wine-dark);
  color: #f8eee4;
  font-family: var(--serif);
  font-size: 9px;
  font-style: italic;
  letter-spacing: .1em;
}

.wordmark {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 12px;
  color: var(--wine);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .19em;
  line-height: 1;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  background: url("/assets/hipster-route-mark.svg?v=20260716-02") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.site-nav {
  display: flex;
  min-width: 0;
  align-items: stretch;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.site-nav a {
  display: flex;
  align-items: center;
  padding: 0 clamp(14px, 2.4vw, 36px);
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  color: #514944;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible { border-color: var(--line); color: var(--wine); }
.site-nav .nav-app { color: var(--wine); font-family: var(--serif); font-style: italic; text-transform: none; }

.kicker {
  margin: 0 0 15px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker--acid { color: var(--wine); }

.planner-section {
  padding: clamp(38px, 5vw, 68px) clamp(16px, 3vw, 48px) 24px;
  background: var(--paper);
}

.map-hero-head {
  display: grid;
  width: min(100%, 1560px);
  margin: 0 auto 28px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: clamp(42px, 6vw, 92px);
}

.map-hero-head h1,
.archive-heading h2,
.manifesto h2,
.app-copy h2 {
  margin: 0;
  font-size: var(--display-hero);
  font-weight: 450;
  letter-spacing: -.065em;
  line-height: .84;
  text-transform: uppercase;
}

.map-hero-head h1 em,
.archive-heading h2 em,
.manifesto h2 em,
.app-copy h2 em {
  color: var(--wine);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.045em;
  text-transform: none;
}

.map-hero-intro { padding-bottom: 6px; }
.map-hero-intro p { max-width: 620px; margin: 0 0 24px; font-family: var(--serif); font-size: var(--lead-size); line-height: 1.42; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-action { display: inline-flex; min-height: 44px; align-items: center; border: 1px solid var(--wine); padding: 0 15px; color: var(--wine); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.hero-action:hover,
.hero-action:focus-visible,
.hero-action--primary { background: var(--wine); color: #fff; }
.hero-action--primary:hover,
.hero-action--primary:focus-visible { background: var(--forest); border-color: var(--forest); }

.planner-shell {
  position: relative;
  width: min(100%, 1560px);
  min-height: 660px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #a89e92;
  background: #d8d5ca;
  box-shadow: 0 24px 70px rgba(62, 45, 35, .12);
}

.map-stage { position: absolute; inset: 0; min-height: 660px; overflow: hidden; background: #d8d5ca; }
#map { position: absolute; inset: 0; }

.planner-panel {
  position: absolute;
  z-index: 5;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: min(360px, calc(100% - 40px));
  padding: 0 22px 22px;
  overflow-y: auto;
  border: 1px solid rgba(104, 83, 70, .35);
  background: rgba(255, 250, 242, .96);
  box-shadow: 0 18px 50px rgba(48, 34, 27, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: thin;
}

.planner-heading {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 9px;
  margin: 0 -22px 22px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px rgba(46, 74, 61, .1); }
.planner-coverage { margin-left: auto; color: var(--muted); font-size: 8px; }
.planner-controls { min-width: 0; }
.planner-controls-title { display: none; margin: 0 0 24px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.planner-controls-title p { margin: 0 0 4px; color: var(--wine); font-family: var(--serif); font-size: 17px; font-weight: 600; }
.planner-controls-title span { color: #81776f; font-family: var(--serif); font-size: 10px; font-style: italic; }
.route-field { position: relative; margin-bottom: 10px; }
.route-field label,
.profile-picker legend { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; color: #514943; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.point-index { display: inline-grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--forest); border-radius: 50%; color: var(--forest); font-size: 9px; }
.point-index--destination { border-color: var(--rust); color: var(--rust); }

.input-row { display: grid; min-height: 48px; border: 1px solid #bcb0a3; grid-template-columns: minmax(0, 1fr) 44px 44px; background: rgba(255, 255, 255, .7); }
.input-row:focus-within { border-color: var(--wine); }
.input-row input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 12px; background: transparent; color: var(--ink); font-size: 14px; }
.input-row input::placeholder { color: #9a9086; }
.icon-button { border: 0; border-left: 1px solid #d2c7bb; background: transparent; color: var(--wine); cursor: pointer; font-size: 20px; }
.icon-button:hover,
.icon-button:focus-visible,
.icon-button.is-active { background: var(--wine); color: #fff; }
.field-help { margin: 6px 0 0 31px; color: #8e857d; font-size: 9px; }

.search-results { position: absolute; z-index: 20; top: calc(100% - 14px); right: 0; left: 0; border: 1px solid #b9aea1; background: var(--paper-strong); box-shadow: 0 16px 32px rgba(49, 37, 29, .2); }
.search-results button { display: block; width: 100%; border: 0; border-bottom: 1px solid #ddd3c7; padding: 12px 13px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font-size: 11px; line-height: 1.35; }
.search-results button:last-child { border-bottom: 0; }
.search-results button:hover,
.search-results button:focus-visible { background: var(--wine); color: #fff; }

.route-tools { display: flex; justify-content: flex-end; gap: 4px; margin: 8px 0 11px; }
.route-tools button { border: 0; padding: 6px 7px; background: transparent; color: #7f756d; cursor: pointer; font-size: 9px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.route-tools button:hover,
.route-tools button:focus-visible { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }

.profile-picker { min-width: 0; margin: 22px 0 18px; border: 0; padding: 0; }
.profile-options { display: grid; grid-template-columns: repeat(3, 1fr); }
.profile-button { min-width: 0; border: 1px solid #c3b8ac; border-right: 0; padding: 10px 4px; background: transparent; color: #776f67; cursor: pointer; text-align: center; }
.profile-button:last-child { border-right: 1px solid #c3b8ac; }
.profile-button span,
.profile-button small { display: block; }
.profile-button span { font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.profile-button small { margin-top: 3px; font-family: var(--serif); font-size: 9px; font-style: italic; }
.profile-button:hover,
.profile-button:focus-visible,
.profile-button.is-active { border-color: var(--wine); background: var(--wine); color: #fff; }

.routing-principle { margin: -4px 0 15px; padding-left: 12px; border-left: 2px solid var(--wine); color: #685f58; font-family: var(--serif); font-size: 10px; font-style: italic; line-height: 1.45; }
.profile-guide-link { display: inline-block; margin: -6px 0 15px; color: var(--wine); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.profile-guide-link:hover,
.profile-guide-link:focus-visible { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }

.plan-button { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; border: 0; padding: 0 16px; background: var(--wine); color: #fff; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.plan-button:hover,
.plan-button:focus-visible { background: var(--forest); }
.plan-button:disabled { cursor: wait; opacity: .65; }
.planner-panel.is-routing .plan-button { display: none; }
.route-loading { position: relative; display: block; min-height: 72px; margin: 0; overflow: hidden; background: radial-gradient(circle at 48% 46%, rgba(146, 93, 82, .62), transparent 24%), linear-gradient(112deg, #422d2b, #68413a); box-shadow: inset 0 1px rgba(255, 255, 255, .08); animation: route-loading-reveal .38s cubic-bezier(.2, .8, .2, 1) both; }
.route-loading[hidden] { display: none; }
.route-loading-heading { position: absolute; z-index: 3; top: 10px; right: 14px; left: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: rgba(255, 250, 242, .72); font-size: 7px; font-weight: 700; letter-spacing: .1em; pointer-events: none; }
.route-loading-heading strong { color: #fffaf2; font-size: 8px; letter-spacing: .08em; text-align: right; }
.route-loading-map { position: absolute; inset: 0; overflow: hidden; background: transparent; }
.route-loading-map::after { position: absolute; z-index: 1; top: 0; bottom: 0; left: -34%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 247, 236, .34), transparent); content: ""; mix-blend-mode: screen; animation: route-loading-scan 2.25s ease-in-out infinite; }
.route-loading-map svg { position: relative; z-index: 2; display: block; width: 100%; height: 100%; }
.route-loading-contour { fill: none; stroke: rgba(255, 250, 242, .18); stroke-width: .7; stroke-dasharray: 2 4; }
.route-loading-contour--lower { stroke-dashoffset: 4; }
.route-loading-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-loading-route--forest { stroke: rgba(176, 207, 194, .78); stroke-width: 2; stroke-dasharray: 2 7; animation: route-loading-track 1.35s linear infinite reverse; }
.route-loading-route--rust { stroke: rgba(246, 182, 160, .76); stroke-width: 2; stroke-dasharray: 2 8; animation: route-loading-track 1.7s linear infinite; }
.route-loading-route--active { stroke: #fff9f1; stroke-width: 2.7; stroke-dasharray: 3 7; filter: drop-shadow(0 1px 1px rgba(31, 18, 16, .45)); animation: route-loading-track 1.05s linear infinite; }
.route-loading-ripple { fill: none; stroke: #fff9f1; stroke-width: 1.25; transform-box: fill-box; transform-origin: center; animation: route-loading-ripple 1.45s ease-out infinite; }
.route-loading-waypoint { stroke: rgba(66, 45, 43, .9); stroke-width: 1.5; }
.route-loading-waypoint--start { fill: #b4d0c3; }
.route-loading-waypoint--destination { fill: #f0a88e; }
.route-loading-waypoint-label { fill: #3d2927; font-family: var(--sans); font-size: 7px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.route-loading-stages { display: none; }
@keyframes route-loading-reveal { from { transform: translateY(-5px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes route-loading-scan { 0%, 18% { transform: translateX(0); opacity: 0; } 30% { opacity: 1; } 74% { opacity: 1; } 100% { transform: translateX(480%); opacity: 0; } }
@keyframes route-loading-track { to { stroke-dashoffset: -20; } }
@keyframes route-loading-ripple { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes route-loading-dot { 0%, 100% { transform: scale(.65); opacity: .45; } 48% { transform: scale(1.35); opacity: 1; } }
.planner-status { min-height: 16px; margin: 9px 0 0; color: #8b8178; font-family: var(--serif); font-size: 10px; font-style: italic; line-height: 1.35; }
.planner-status.is-error { color: #a64632; }

.route-result { margin: 18px -4px -4px; border-top: 1px solid var(--line); padding: 18px 4px 0; }
.result-title-row { display: flex; align-items: center; justify-content: space-between; }
.result-title-row h3 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: 14px; letter-spacing: .04em; }
.result-title-row span { padding: 4px 6px; border: 1px solid var(--line); color: var(--forest); font-size: 8px; font-weight: 700; }
.result-lead { margin: 8px 0 0; color: #746b64; font-family: var(--serif); font-size: 10px; font-style: italic; line-height: 1.4; }
.route-metrics { display: grid; margin: 13px 0; grid-template-columns: repeat(3, 1fr); }
.route-metrics div { border-right: 1px solid var(--line); padding: 0 9px; }
.route-metrics div:first-child { padding-left: 0; }
.route-metrics div:last-child { border-right: 0; }
.route-metrics dt { color: #8b8178; font-size: 7px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.route-metrics dd { margin: 4px 0 0; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.official-route-breakdown { margin: 16px 0 15px; border: 1px solid #c3b8ac; padding: 13px; background: rgba(233, 224, 210, .32); }
.official-route-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.official-route-heading p,
.official-route-itinerary-heading > p { margin: 0 0 4px; color: #81776f; font-size: 7px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.official-route-heading h4 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 13px; font-weight: 400; }
.official-route-heading h4 strong { color: var(--wine); font-family: var(--sans); font-size: 23px; font-weight: 650; letter-spacing: -.045em; }
.official-route-heading > span { padding-bottom: 2px; color: var(--forest); font-size: 8px; font-weight: 700; text-align: right; }
.official-route-meter { height: 6px; margin: 10px 0 7px; overflow: hidden; background: #d8cec1; }
.official-route-meter span { display: block; width: 0; height: 100%; background: var(--forest); transition: width .45s ease; }
.official-route-breakdown.is-loading .official-route-meter span { min-width: 7%; opacity: .55; }
.official-route-breakdown.is-unavailable .official-route-meter span { min-width: 0; }
.official-route-status { margin: 0; color: #746b64; font-family: var(--serif); font-size: 9px; font-style: italic; line-height: 1.35; }
.official-route-itinerary { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 11px; }
.official-route-itinerary-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.official-route-itinerary-heading button { border: 0; padding: 6px 0; background: transparent; color: var(--wine); cursor: pointer; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.official-route-itinerary-heading button:hover,
.official-route-itinerary-heading button:focus-visible { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.official-route-itinerary ol { max-height: 260px; margin: 7px 0 0; overflow-y: auto; padding: 0; list-style: none; counter-reset: route-section; scrollbar-width: thin; }
.official-route-itinerary li { display: grid; min-height: 49px; align-items: center; border-top: 1px solid rgba(207, 196, 182, .72); padding: 7px 0; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 7px; counter-increment: route-section; }
.official-route-itinerary li:first-child { border-top: 0; }
.official-route-itinerary li::before { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; content: counter(route-section); font-size: 7px; font-weight: 700; }
.official-route-itinerary li.is-connection::before { border: 1px solid #ad9f92; background: transparent; color: #81776f; }
.official-route-itinerary li > div { min-width: 0; }
.official-route-itinerary li strong,
.official-route-itinerary li small { display: block; }
.official-route-itinerary li strong { overflow-wrap: anywhere; color: var(--ink); font-family: var(--serif); font-size: 10px; font-weight: 600; line-height: 1.25; }
.official-route-itinerary li strong a { color: var(--wine); text-decoration-color: rgba(103, 58, 52, .35); text-underline-offset: 2px; }
.official-route-itinerary li small { margin-top: 3px; color: #8b8178; font-size: 7px; line-height: 1.25; }
.official-route-itinerary li > b { color: var(--forest); font-size: 9px; white-space: nowrap; }
.official-route-itinerary li.is-connection strong,
.official-route-itinerary li.is-connection > b { color: #81776f; }
.export-note { margin: -2px 0 10px; color: #80766e; font-family: var(--serif); font-size: 9px; font-style: italic; }
.route-actions { display: grid; grid-template-columns: 1.6fr .8fr; gap: 5px; }
.route-actions button { min-height: 38px; border: 1px solid #b9aea1; padding: 0 8px; background: transparent; cursor: pointer; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.route-actions button:hover,
.route-actions button:focus-visible { border-color: var(--wine); color: var(--wine); }
.route-actions .action-primary { border-color: var(--wine); background: var(--wine); color: #fff; }
.app-handoff { display: block; margin-top: 10px; color: #81776f; font-family: var(--serif); font-size: 9px; font-style: italic; text-decoration: none; }
.app-handoff strong { color: var(--wine); }

/* Once a route is ready, editing stays on the map and the full report follows below it. */
.planner-shell.is-route-ready .planner-controls-title { display: block; margin-bottom: 18px; }
.route-result--below-map {
  width: min(100%, 1560px);
  margin: 18px auto 0;
  border: 1px solid #a89e92;
  padding: clamp(28px, 3.4vw, 52px);
  background: var(--paper-strong);
  box-shadow: 0 22px 56px rgba(62, 45, 35, .1);
  scroll-margin-top: 18px;
}
.route-result--below-map .result-overview { display: grid; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: clamp(26px, 3vw, 42px); grid-template-columns: minmax(280px, .8fr) minmax(560px, 1.2fr); gap: clamp(40px, 6vw, 94px); }
.route-result--below-map .result-title-row { justify-content: flex-start; gap: 14px; }
.route-result--below-map .result-title-row h3 { font-size: clamp(27px, 2.4vw, 38px); letter-spacing: .025em; }
.route-result--below-map .result-title-row span { padding: 8px 10px; font-size: 10px; }
.route-result--below-map .result-lead { max-width: 570px; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.route-result--below-map .route-metrics { margin: 0; }
.route-result--below-map .route-metrics div { padding: 0 clamp(18px, 2.4vw, 38px); }
.route-result--below-map .route-metrics dt { font-size: 9px; letter-spacing: .12em; }
.route-result--below-map .route-metrics dd { margin-top: 8px; font-size: clamp(32px, 3vw, 48px); }
.route-alternatives { margin-top: clamp(28px, 3vw, 44px); }
.route-alternatives-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.route-alternatives-heading p { margin: 0 0 7px; color: #81776f; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.route-alternatives-heading h4 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: clamp(21px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.025em; }
.route-alternatives-heading > span { color: var(--forest); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.route-alternative-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.route-alternative { display: grid; min-height: 118px; align-content: center; border: 1px solid #c3b8ac; padding: 18px 20px; background: rgba(233, 224, 210, .22); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.route-alternative:hover,
.route-alternative:focus-visible { border-color: var(--wine); background: rgba(103, 58, 52, .06); }
.route-alternative.is-selected { border-color: var(--wine); background: var(--wine); color: #fff; }
.route-alternative-title { margin-bottom: 9px; color: var(--wine); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.route-alternative.is-selected .route-alternative-title { color: #efd3bd; }
.route-alternative strong { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 25px); font-weight: 500; }
.route-alternative small { margin-top: 8px; color: #81776f; font-size: 9px; }
.route-alternative.is-selected small { color: #e5cfc0; }
.planned-elevation { margin-top: clamp(28px, 3vw, 44px); padding: clamp(24px, 3vw, 42px); background: var(--wine-dark); color: #fff; }
.planned-elevation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.planned-elevation-heading p { margin: 0 0 8px; color: #d6c0b4; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.planned-elevation-heading h4 { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.025em; }
.planned-elevation-heading small { display: block; margin-top: 7px; color: #bca9a0; font-family: var(--serif); font-size: 11px; font-style: italic; }
.planned-elevation-heading output { color: #f0d7c3; font-family: var(--serif); font-size: clamp(22px, 3vw, 40px); white-space: nowrap; }
#planned-elevation-chart { display: block; width: 100%; height: clamp(180px, 22vw, 280px); margin-top: 25px; overflow: visible; }
.planned-elevation-grid { stroke: rgba(255,255,255,.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.planned-elevation-area { fill: rgba(235,205,183,.12); }
.planned-elevation-line { fill: none; stroke: #efd3bd; stroke-width: 3; vector-effect: non-scaling-stroke; }
.planned-elevation-axis { display: flex; justify-content: space-between; margin-top: 8px; color: #b8a59c; font-size: 9px; }
.route-result--below-map .official-route-breakdown { margin: clamp(28px, 3vw, 44px) 0 28px; padding: clamp(24px, 2.8vw, 40px); }
.route-result--below-map .official-route-heading p,
.route-result--below-map .official-route-itinerary-heading > p { margin-bottom: 8px; font-size: 10px; }
.route-result--below-map .official-route-heading h4 { font-size: 19px; }
.route-result--below-map .official-route-heading h4 strong { font-size: clamp(40px, 4vw, 58px); }
.route-result--below-map .official-route-heading > span { font-size: 12px; }
.route-result--below-map .official-route-meter { height: 12px; margin: 18px 0 12px; }
.route-result--below-map .official-route-status { font-size: 13px; line-height: 1.5; }
.route-result--below-map .official-route-itinerary { margin-top: 24px; padding-top: 20px; }
.route-result--below-map .official-route-itinerary-heading button { font-size: 9px; }
.route-result--below-map .official-route-itinerary ol { display: grid; max-height: none; margin-top: 12px; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(34px, 5vw, 82px); }
.route-result--below-map .official-route-itinerary.is-collapsed li:nth-child(n+13) { display: none; }
.route-result--below-map .official-route-itinerary li { min-height: 74px; padding: 12px 0; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 13px; }
.route-result--below-map .official-route-itinerary li:first-child { border-top: 1px solid rgba(207, 196, 182, .72); }
.route-result--below-map .official-route-itinerary li::before { width: 28px; height: 28px; font-size: 10px; }
.route-result--below-map .official-route-itinerary li strong { font-size: 16px; line-height: 1.3; }
.route-result--below-map .official-route-itinerary li small { margin-top: 5px; font-size: 10px; line-height: 1.4; }
.route-result--below-map .official-route-itinerary li > b { font-size: 12px; }
.route-result--below-map .result-export { width: min(100%, 700px); margin-left: auto; }
.route-result--below-map .export-note { margin: 0 0 14px; font-size: 12px; }
.route-result--below-map .route-actions { gap: 8px; }
.route-result--below-map .route-actions button { min-height: 56px; font-size: 10px; }
.route-result--below-map .app-handoff { margin-top: 13px; font-size: 11px; }

.maplibregl-map { font-family: var(--sans); }
.maplibregl-ctrl-top-right { top: 12px; right: 12px; }
.maplibregl-ctrl-group { border: 1px solid #afa397 !important; border-radius: 0 !important; box-shadow: none !important; }
.maplibregl-ctrl-group button { background-color: var(--paper-strong); }
.maplibregl-ctrl-group button + button { border-top-color: #d5cabf; }
.maplibregl-ctrl-icon { filter: sepia(.5) saturate(.5); }
.maplibregl-ctrl-attrib { background: rgba(255, 250, 242, .9) !important; color: #413a35 !important; font-size: 9px !important; }

.point-marker { display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid var(--paper-strong); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 5px 16px rgba(43, 31, 24, .3); color: #fff; font-size: 10px; font-weight: 700; }
.point-marker span { transform: rotate(45deg); }
.point-marker--start { background: var(--forest); }
.point-marker--destination { background: var(--rust); }
.point-marker--start,
.point-marker--destination { cursor: grab; }
.point-marker--start:active,
.point-marker--destination:active { cursor: grabbing; }
.point-marker--user { width: 20px; height: 20px; border: 4px solid #fff; border-radius: 50%; transform: none; background: #476d89; box-shadow: 0 0 0 8px rgba(71, 109, 137, .18); }
.planned-route-label {
  display: block;
  max-width: min(330px, calc(100vw - 38px));
  overflow: hidden;
  border: 2px solid #2e4a3d;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(217, 255, 63, .96);
  box-shadow: 0 1px 0 rgba(10, 10, 10, .8), 0 2px 8px rgba(18, 15, 11, .18);
  color: #17130f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planned-route-label--international,
.planned-route-label--national { border-color: #eb3b4f; }
.planned-route-label--regional { border-color: #436dff; }
.planned-route-label--local { border-color: #d11dd6; }

.map-tip,
.map-legend { position: absolute; z-index: 3; border: 1px solid rgba(111, 91, 77, .25); background: rgba(255, 250, 242, .94); color: #5c534c; box-shadow: 0 8px 24px rgba(49, 37, 29, .08); backdrop-filter: blur(10px); }
.map-tip { top: 20px; left: 400px; padding: 11px 13px; font-family: var(--serif); font-size: 10px; font-style: italic; }
.map-tip span { margin-right: 5px; color: var(--wine); }
.map-tip strong { color: var(--ink); }
.map-legend { right: 14px; bottom: 28px; display: flex; gap: 12px; padding: 8px 10px; font-size: 8px; font-weight: 650; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-line { display: inline-block; width: 18px; height: 3px; }
.legend-line--international { background: #d4484e; }
.legend-line--regional { background: #4169b1; }
.legend-line--local { background: #a94199; }
.coverage-note { width: min(100%, 1560px); margin: 10px auto 0; color: #847a72; font-family: var(--serif); font-size: 10px; font-style: italic; }
.planner-safety-note { width: min(100%, 1560px); margin: 8px auto 0; color: #746b64; font-family: var(--serif); font-size: 10px; line-height: 1.5; }
.planner-safety-note strong { color: var(--wine-dark); }
.planner-safety-note a { color: var(--wine); text-underline-offset: 3px; }

.profile-guide { border-top: 1px solid var(--line); padding: var(--section-space-compact) clamp(18px, 5vw, 80px); background: var(--paper-strong); }
.profile-guide-inner { width: min(100%, 1460px); margin: 0 auto; }
.profile-guide-heading { display: grid; align-items: end; margin-bottom: clamp(38px, 5vw, 64px); grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(38px, 7vw, 110px); }
.profile-guide-heading h2 { margin: 0; font-size: var(--display-section); font-weight: 450; letter-spacing: -.065em; line-height: .88; text-transform: uppercase; }
.profile-guide-heading h2 em { color: var(--wine); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.045em; text-transform: none; }
.profile-guide-heading > p { max-width: 690px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: var(--lead-size); line-height: 1.5; }
.profile-guide-grid { display: grid; border-top: 1px solid #bdb1a4; border-left: 1px solid #bdb1a4; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-card { position: relative; min-width: 0; border-right: 1px solid #bdb1a4; border-bottom: 1px solid #bdb1a4; padding: clamp(24px, 3vw, 42px); }
.profile-card::before { position: absolute; top: -1px; right: -1px; left: -1px; height: 4px; background: var(--forest); content: ""; }
.profile-card--rennrad::before { background: var(--wine); }
.profile-card--mtb::before { background: var(--rust); }
.profile-card-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(24px, 3vw, 38px); }
.profile-card-label span { color: #8b8178; font-family: var(--serif); font-size: 13px; font-style: italic; }
.profile-card-label strong { color: var(--forest); font-size: 10px; letter-spacing: .14em; }
.profile-card--rennrad .profile-card-label strong { color: var(--wine); }
.profile-card--mtb .profile-card-label strong { color: #a34f31; }
.profile-card h3 { min-height: 2.2em; margin: 0 0 18px; font-family: var(--serif); font-size: clamp(24px, 2.25vw, 34px); font-weight: 400; line-height: 1.08; }
.profile-card > p { min-height: 8em; margin: 0 0 28px; color: var(--muted); font-size: 12px; line-height: 1.58; }
.profile-card dl { margin: 0; border-top: 1px solid var(--line); }
.profile-card dl div { display: grid; min-height: 54px; align-items: center; border-bottom: 1px solid var(--line); grid-template-columns: 86px minmax(0, 1fr); gap: 12px; }
.profile-card dl div:last-child { border-bottom: 0; }
.profile-card dt { color: #8b8178; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.profile-card dd { margin: 0; color: #4f4842; font-family: var(--serif); font-size: 12px; line-height: 1.35; }
.profile-guide-note { margin: 18px 0 0; color: #81776f; font-family: var(--serif); font-size: 10px; font-style: italic; line-height: 1.5; }

.archive-section,
.manifesto { display: grid; padding: var(--section-space) clamp(18px, 5vw, 80px); grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(44px, 7vw, 110px); }
.archive-section { border-top: 1px solid var(--line); background: var(--wine-dark); color: #fff; }
.archive-section .kicker { color: #d9c8bd; }
.archive-heading h2 { max-width: 820px; color: #fff; font-size: var(--display-section); }
.archive-heading h2 em { color: #ebcdb7; }
.archive-copy { align-self: end; }
.archive-lead { max-width: 690px; margin: 0 0 34px; color: #f0e7df; font-family: var(--serif); font-size: var(--lead-size); line-height: 1.5; }
.archive-data { margin: 0 0 34px; border-top: 1px solid rgba(255,255,255,.28); }
.archive-data div { display: grid; min-height: 72px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.28); grid-template-columns: 150px 1fr; gap: 20px; }
.archive-data dt { color: #ebcdb7; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.archive-data dd { margin: 0; color: #f0e7df; font-family: var(--serif); font-size: 16px; }
.section-link { display: inline-flex; min-height: 50px; align-items: center; border: 1px solid #d6c5b9; padding: 0 17px; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.section-link:hover,
.section-link:focus-visible { background: var(--paper); color: var(--wine-dark); }

.manifesto { background: var(--paper-deep); }
.manifesto h2 { max-width: 780px; font-size: var(--display-section); }
.manifesto-intro { max-width: 720px; margin: clamp(30px, 4vw, 50px) 0 0; color: var(--muted); font-family: var(--serif); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }
.manifesto-list { align-self: end; border-top: 1px solid #bdb1a4; }
.manifesto-list article { display: grid; min-height: 132px; align-items: center; border-bottom: 1px solid #bdb1a4; grid-template-columns: 48px 1fr; gap: 20px; }
.manifesto-list article > span { color: var(--wine); font-family: var(--serif); font-size: 13px; font-style: italic; }
.manifesto-list h3 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 29px); font-weight: 400; }
.manifesto-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.app-section { padding: var(--section-space) 20px; background: var(--paper-strong); color: var(--ink); text-align: center; }
.app-copy { max-width: 960px; margin: 0 auto; }
.app-copy .kicker { color: var(--wine); }
.app-copy h2 { color: var(--wine-dark); font-size: var(--display-section); }
.app-copy > p { max-width: 680px; margin: 28px auto; color: var(--muted); font-family: var(--serif); font-size: var(--lead-size); line-height: 1.5; }
.store-button { display: flex; width: min(100%, 420px); min-height: 62px; margin: 0 auto; align-items: center; justify-content: space-between; border: 1px solid var(--wine-dark); padding: 0 20px; background: var(--wine-dark); color: #fff; text-decoration: none; }
.store-button span { font-family: var(--serif); font-size: 12px; font-style: italic; }
.store-button strong { font-size: 10px; letter-spacing: .12em; }
.store-button:hover { background: var(--forest); border-color: var(--forest); }

.site-footer { display: grid; min-height: 200px; align-items: end; padding: 42px clamp(20px, 5vw, 80px); border-top: 1px solid var(--line); background: var(--paper-strong); grid-template-columns: 1fr auto; gap: 22px 50px; }
.site-footer > div { display: flex; align-items: center; gap: 15px; color: var(--wine); font-family: var(--sans); font-size: 13px; font-weight: 750; letter-spacing: .16em; }
.site-footer > div .wordmark-mark { width: 54px; height: 54px; }
.site-footer > p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 14px; font-style: italic; }
.site-footer nav { display: flex; align-self: end; gap: 22px; grid-column: 2; grid-row: 1 / 3; }
.site-footer nav a { color: #675f58; font-size: 9px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--wine); }

@media (max-width: 980px) {
  .map-hero-head { grid-template-columns: 1fr; gap: 28px; }
  .map-hero-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .map-hero-intro p { margin: 0; }
  .planner-shell { display: flex; min-height: 0; overflow: visible; flex-direction: column; }
  .map-stage { position: relative; min-height: 68svh; order: 2; }
  .planner-panel { position: relative; top: auto; bottom: auto; left: auto; width: 100%; max-height: none; order: 1; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .map-tip { left: 18px; }
  .route-result--below-map .result-overview { grid-template-columns: 1fr; gap: 30px; }
  .route-alternative-options { grid-template-columns: 1fr; }
  .route-alternative { min-height: 96px; }
  .route-result--below-map .result-export { width: 100%; }
  .profile-guide-heading { grid-template-columns: 1fr; gap: 26px; }
  .profile-guide-grid { grid-template-columns: 1fr; }
  .profile-card h3,
  .profile-card > p { min-height: 0; }
  .archive-section,
  .manifesto { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root {
    --header-height: 91px;
    --display-hero: clamp(44px, 13.5vw, 62px);
    --display-section: clamp(40px, 12vw, 56px);
    --display-detail: clamp(40px, 11.5vw, 54px);
    --lead-size: 17px;
    --section-space: clamp(56px, 14vw, 76px);
    --section-space-compact: clamp(42px, 11vw, 62px);
  }
  .site-header { position: relative; grid-template-rows: 54px 37px; }
  .header-note { display: none; }
  .wordmark { min-width: 0; justify-self: start; padding-left: 14px; font-size: 12px; letter-spacing: .14em; }
  .wordmark-mark { width: 38px; height: 38px; }
  .site-nav { overflow: hidden; justify-content: flex-start; }
  .site-nav a { min-width: 0; flex: 1 1 0; justify-content: center; padding: 0 7px; font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
  .site-nav .nav-app { display: none; }
  .planner-section { padding: 34px 0 0; }
  .map-hero-head { padding: 0 16px; }
  .map-hero-head h1 { font-size: var(--display-hero); }
  .map-hero-intro { display: block; }
  .map-hero-intro p { margin-bottom: 18px; }
  .planner-shell { border-right: 0; border-left: 0; }
  .planner-panel { padding-right: 16px; padding-left: 16px; }
  .planner-heading { margin-right: -16px; margin-left: -16px; }
  .map-stage { min-height: 68svh; }
  .map-tip { top: 12px; left: 12px; }
  .map-legend { right: 10px; bottom: 28px; left: 10px; justify-content: center; }
  .route-result--below-map { margin-top: 0; border-right: 0; border-left: 0; padding: 30px 16px; }
  .route-result--below-map .route-metrics dd { font-size: clamp(25px, 8vw, 34px); }
  .route-alternatives-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .planned-elevation { margin-inline: -16px; padding: 25px 16px; }
  .planned-elevation-heading { flex-direction: column; gap: 14px; }
  #planned-elevation-chart { height: 180px; }
  .route-result--below-map .official-route-breakdown { padding: 18px 16px; }
  .route-result--below-map .official-route-itinerary ol { grid-template-columns: 1fr; }
  .route-result--below-map .official-route-itinerary.is-collapsed li:nth-child(n+7) { display: none; }
  .route-result--below-map .official-route-itinerary-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .coverage-note { padding: 0 14px; }
  .planner-safety-note { padding: 0 14px; }
  .profile-guide { padding-right: 18px; padding-left: 18px; }
  .profile-guide-heading h2 { font-size: var(--display-section); }
  .profile-card { padding: 28px 22px; }
  .profile-card dl div { grid-template-columns: 78px minmax(0, 1fr); }
  .archive-section,
  .manifesto { padding-right: 18px; padding-left: 18px; }
  .archive-heading h2 { font-size: var(--display-section); }
  .archive-data div { min-height: 68px; grid-template-columns: 105px 1fr; gap: 12px; }
  .manifesto h2 { font-size: var(--display-section); }
  .manifesto-list article { min-height: 130px; grid-template-columns: 36px 1fr; }
  .site-footer { min-height: 0; padding: 42px 18px; grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .route-loading, .route-loading *, .plan-button.is-loading > span:last-child { animation: none !important; }
}
