:root {
  color-scheme: light;
  --ink: #173639;
  --dark: #0c2b2e;
  --deep: #133c40;
  --page: #f6f8f6;
  --surface: #fff;
  --muted: #4a6769;
  --edge: #d2ded9;
  --mint: #d3f2de;
  --accent: #00665c;
  --ember: #b95129;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font: 100%/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #db8f48; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; background: white; padding: .6rem 1rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 4rem, 76rem); margin-inline: auto; }
.top { min-height: 43rem; color: white; overflow: hidden; position: relative; isolation: isolate; background: var(--dark); display: grid; grid-template-rows: auto 1fr auto; }
.hero-photo { position: absolute; z-index: -2; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.top::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #081f23ed 0%, #081f23a8 42%, #081f2320 100%), linear-gradient(0deg, #081f2399, transparent 35%, transparent 72%, #081f2388); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.35rem; border-bottom: 1px solid #ffffff50; }
.nav a, .footer-inner a { text-decoration: none; }
.nav-links { display: flex; gap: clamp(.9rem, 3vw, 2.2rem); flex-wrap: wrap; font-size: .92rem; }
.nav a:hover, .footer-inner a:hover { text-decoration: underline; }
.wordmark { display: inline-flex; gap: .5rem; align-items: center; font-weight: 650; letter-spacing: .035em; white-space: nowrap; }
.compass { font-size: 1.85rem; line-height: .9; color: var(--mint); }
.hero { padding-block: clamp(4.5rem, 11vw, 9rem) 4.5rem; align-self: center; }
.eyebrow { margin: 0 0 .5rem; color: var(--accent); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; }
.hero .eyebrow, .route-detail .eyebrow { color: var(--mint); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(4rem, 8.5vw, 8.3rem); line-height: .91; margin: .85rem 0 1.6rem; letter-spacing: -.057em; }
h2 { font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: 1; margin: 0; letter-spacing: -.04em; }
h3 { font-size: 1.28rem; line-height: 1.3; margin-bottom: .55rem; }
.intro { max-width: 31rem; font-size: clamp(1.06rem, 1.8vw, 1.3rem); line-height: 1.5; margin-bottom: 1.65rem; }
.button { display: inline-block; padding: .78rem 1.15rem; font-weight: 720; border-radius: .35rem; text-decoration: none; }
.button.light { background: var(--mint); color: var(--dark); }
.button.light:hover { background: white; }
.hero-credit { text-align: right; margin: 0 auto 1rem; width: min(100% - 4rem, 76rem); font-size: .78rem; color: white; text-shadow: 0 1px 4px #000; }
.stats { padding-block: 2rem; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--edge); }
.stats div { padding: .3rem 1.3rem; border-inline-start: 1px solid var(--edge); }
.stats div:first-child { padding-inline-start: 0; border: 0; }
.stats dt { color: var(--muted); font-size: .85rem; font-weight: 650; }
.stats dd { margin: .1rem 0 0; font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 2.55rem); line-height: 1.05; letter-spacing: -.035em; white-space: nowrap; }
.stats small { font-size: .54em; letter-spacing: 0; }
.section { padding-block: clamp(3.75rem, 8vw, 7.25rem); scroll-margin-top: .4rem; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(18rem, 29rem); gap: 1.1rem 3.5rem; align-items: end; margin-bottom: 2.2rem; }
.section-heading > p { color: var(--muted); margin: 0; }
.route-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(17rem, 1fr); gap: 1rem; align-items: stretch; }
.map-card { margin: 0; background: #e1efe9; border: 1px solid #b7d0c6; border-radius: .6rem; overflow: hidden; display: flex; flex-direction: column; }
.map-toolbar, .map-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: .65rem 1rem; font-size: .82rem; flex-wrap: wrap; }
.map-toolbar { font-weight: 750; }
.map-toolbar button { padding: .25rem .55rem; border: 1px solid #9abbb2; background: #f5fbf7; color: var(--ink); border-radius: .3rem; font-size: .83rem; }
#route-map { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; background: #c2dcd7; flex: 1; }
.map-card figcaption span:last-child { margin-left: auto; }
.map-card figcaption i { display: inline-block; width: 1.15rem; border-top: 3px solid var(--accent); vertical-align: middle; margin-inline-end: .25rem; }
.map-card figcaption span:nth-child(2) i { border-color: var(--ember); }
.map-line { stroke: #006d64; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; vector-effect: non-scaling-stroke; }
.map-line.active { stroke: var(--ember); stroke-width: 3.5; }
.map-halo { stroke: #f8ffff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; vector-effect: non-scaling-stroke; }
.map-pin { fill: #0f4648; stroke: white; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map-pin.active { fill: var(--ember); }
.map-label, .water-label { font: 700 15px system-ui, sans-serif; fill: #153b3b; paint-order: stroke; stroke: #e2f0e9; stroke-width: 3px; stroke-linejoin: round; }
.water-label { font-family: var(--display); letter-spacing: .13em; font-size: 17px; fill: #3a6865; stroke: #c2dcd7; }
.route-detail { background: var(--dark); color: white; border-radius: .6rem; padding: clamp(1.1rem, 2.5vw, 2rem); display: flex; flex-direction: column; }
.route-detail label { display: block; }
select { background: var(--surface); color: var(--ink); border: 1px solid #a2b8b2; border-radius: .3rem; min-height: 2.65rem; padding: .35rem .6rem; max-width: 100%; }
.route-detail select { background: #21464b; color: white; border-color: #537478; width: 100%; margin-bottom: 1.35rem; }
.route-detail h3 { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.08 var(--display); }
.route-detail p { margin-bottom: .75rem; }
.route-detail .day-metrics { font-size: .88rem; color: var(--mint); }
.day-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1.1rem; }
.day-nav button { background: transparent; border: 1px solid #809c9c; border-radius: .3rem; color: white; padding: .36rem .54rem; font-size: .84rem; }
.day-nav button:hover:enabled { background: #285359; }
.day-nav button:disabled { color: #a8b9b9; border-color: #50696b; cursor: default; }
.underlink { display: inline-block; margin-top: 1rem; color: var(--mint); font-size: .87rem; }
.itinerary { background: #e9f1ee; border-block: 1px solid var(--edge); }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.chart { min-width: 0; margin: 0; padding: 1.2rem; background: var(--surface); border: 1px solid var(--edge); border-radius: .55rem; }
.chart figcaption { font-weight: 740; margin-bottom: .8rem; }
.chart figcaption span { display: block; font-size: .85rem; color: var(--muted); font-weight: 450; }
.chart-plot svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-plot text { fill: var(--muted); font: 14px/1 system-ui, sans-serif; }
.chart-plot .grid { stroke: #d9e7e1; vector-effect: non-scaling-stroke; }
.chart-plot .bar { fill: #5c9f8f; cursor: pointer; }
.chart-plot .bar.active, .chart-plot .bar:hover { fill: var(--ember); }
.chart-plot .bar:focus { outline: none; stroke: #3b251b; stroke-width: 2; }
.data-panel { margin: 1rem 0 0; background: var(--surface); border: 1px solid var(--edge); border-radius: .55rem; overflow: hidden; }
summary { cursor: pointer; font-weight: 725; padding: 1rem 1.2rem; }
summary:hover { background: #f2f7f4; }
summary:focus-visible { outline-offset: -4px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
th, td { padding: .75rem 1.2rem; border-top: 1px solid var(--edge); vertical-align: top; }
thead th { background: #f2f7f4; font-size: .83rem; color: var(--muted); white-space: nowrap; }
tbody th { white-space: nowrap; font-weight: 630; }
td.distance, td.duration { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stage-link { border: 0; background: none; color: var(--accent); padding: 0; text-align: left; text-decoration: underline; text-underline-offset: .18em; font-weight: 680; }
table p { color: var(--muted); font-size: .86rem; margin: .25rem 0 0; max-width: 56rem; }
.details-body { padding: 0 1.2rem 1rem; }
.details-body label { display: block; color: var(--muted); font-size: .84rem; font-weight: 650; margin-bottom: .2rem; }
.details-body select { margin-bottom: .7rem; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin-bottom: 2.5rem; }
.checklist article { border-top: 1px solid var(--edge); padding-block: 1.3rem .65rem; }
.checklist p, .conditions p { color: var(--muted); margin-bottom: .45rem; }
.conditions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem 2rem; padding: clamp(1.3rem, 3vw, 2.2rem); background: #dfede7; border-radius: .55rem; }
.conditions ul { margin: 0; padding-left: 1.1rem; }
.conditions a, .details-body a { color: var(--accent); font-weight: 620; }
.gallery-section { background: var(--deep); color: white; }
.gallery-section .eyebrow { color: var(--mint); }
.gallery-section .section-heading > p { color: #d3e6e3; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: .42rem; background: #235359; }
.gallery figcaption { margin-top: .5rem; line-height: 1.45; }
.gallery figcaption small { display: block; color: #c4dfd9; margin-top: .15rem; }
footer { background: var(--dark); color: #e3f1ed; }
.footer-inner { padding-block: 1.55rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
.footer-inner p { margin: 0; }
@media (max-width: 880px) {
  .route-grid { grid-template-columns: 1fr; }
  .route-detail { min-height: 19rem; }
  .section-heading { grid-template-columns: 1fr; }
  .stats dd { white-space: normal; }
}
@media (max-width: 620px) {
  .shell, .hero-credit { width: calc(100% - 2rem); }
  .top { min-height: 39rem; }
  .nav { display: grid; justify-content: start; gap: .7rem; }
  .nav-links { column-gap: 1.2rem; }
  h1 { font-size: clamp(3.25rem, 14vw, 5rem); }
  .top::after { background: linear-gradient(90deg, #081f23d6, #081f2344), linear-gradient(0deg, #081f23ab, transparent 40%); }
  .hero-photo img { object-position: 60% center; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: .8rem; padding-block: 1.2rem; }
  .stats div:nth-child(odd) { border: 0; padding-inline-start: 0; }
  .stats dt { font-size: .8rem; }
  .stats dd { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .charts, .checklist, .conditions { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  th, td { padding-inline: .7rem; }
  .map-card figcaption span:last-child { margin-left: 0; }
  #route-map:not(.zoomed) .map-label { font-size: 22px; }
  #route-map:not(.zoomed) .map-label.optional { display: none; }
  #route-map:not(.zoomed) .water-label { font-size: 21px; }
}
@media (max-width: 380px) {
  .nav-links { column-gap: .7rem; }
  .gallery { grid-template-columns: 1fr; }
}
