/* A folded topographic sheet shared by the interactive trail guide and the full atlas. */
:is(#theater #stage[data-scene=northline], html.cf-edition[data-ver-cursor=northline]) .fde-terrain {
  box-sizing:border-box; min-width:0; padding:clamp(12px,1.4vw,21px);
  border:1px solid #b1a88b; border-radius:3px 5px 4px 2px;
  background:linear-gradient(102deg,#e6dfc6,#f3ebd4 55%,#ded8be);
  box-shadow:inset 0 0 0 3px #eee7cf,0 3px 0 -1px #a19d83,0 6px 0 -3px #a3a089,0 10px 26px #10190f45;
  color:#344334;
}
:is(#theater #stage[data-scene=northline], html.cf-edition[data-ver-cursor=northline]) .fde-terrain {
  & .fde-terrain-top, & .fde-topolegend {padding:3px 0 9px;color:#424c3d;font-weight:700;letter-spacing:.06em}
  & .fde-topolegend {padding:9px 0}
  & .fde-relief {border-radius:2px;outline:1px solid #414b3e80;outline-offset:-1px}
  & .fde-waynote {border-top:1px solid #777d655c;padding:10px 0 2px;column-gap:14px;align-items:start}
  & .fde-waynote strong {color:#533d27}
  & .fde-waynote p, & .fde-terrain-range {color:#354635}
  & .fde-terrain-range {padding:12px 0 0}
  & .fde-terrain-range input {accent-color:#3c5b49}
}
#theater #stage[data-scene=northline] {
  & .cf-trail .nl-book:has(.fde-terrain) {
    grid-template-columns:minmax(0,.77fr) minmax(0,1.23fr);gap:0 clamp(24px,3.4vw,58px);
    padding:clamp(14px,2.6vw,40px) clamp(20px,3vw,47px) clamp(29px,3vw,48px);
  }
  & .nl-route-tabs {display:flex;gap:6px;align-items:stretch;margin:14px 0;padding:0}
  & .nl-route-tabs button, & .nl-route-tabs button[aria-pressed=true] {
    flex:1 1 70px;justify-content:center;min-height:48px;padding:6px 8px;
    border-radius:2px; border:1px solid #9da98e60;background:#263b30;color:#e6e8d5;
    text-align:center;font:600 clamp(12px,1.15vw,16px)/1.12 Georgia,serif;
  }
  & .nl-route-tabs button[aria-pressed=true] {border-color:#d8cca4;background:#e1d6b4;color:#272f25;box-shadow:inset 0 -3px #938967}
  & .nl-route-tabs button[aria-pressed=true]::before {display:none!important}
  & .cf-trail .nl-book .nl-plotbox {
    align-self:start;padding:clamp(12px,1.5vw,23px);
    border:1px solid #7e937b66;border-radius:4px;background:linear-gradient(120deg,#203a2f,#18291f);box-shadow:inset 0 1px #96a98422;
  }
  & .nl-chart {height:clamp(75px,7.1vw,115px)}
}
html.cf-edition[data-ver-cursor=northline] {
  & #top .hero-actions :is(a,button), & #atlasUse {border-radius:3px}
  & nav.cf-trail-index {padding-block:10px}
  & nav.cf-trail-index button {border-radius:3px;min-height:46px}
  & nav.cf-trail-index button:is(:hover,:focus-visible) {background:#cbd4b00d}
  & .intro.shell, & #routes, & #atlas, & #planner, & #field, & #weather-brief {padding-block:clamp(40px,5vw,78px);min-height:0}
  & #planner .planner, & #weather-brief .weather-spread {padding-block:0}
  & main .intro .dispatch {
    display:block;align-self:center;min-height:0;height:auto;margin:0;padding:clamp(6px,.85vw,13px);border-radius:3px;border:1px solid #6b7565;
    background:#d4cfb9;box-shadow:0 10px 30px #030b0b4d;
  }
  & main .intro .dispatch img {border-radius:2px;mask:none;aspect-ratio:2.18;object-fit:cover;height:auto;width:100%}
  & main .intro .dispatch figcaption {position:static;min-height:0;height:auto;padding:8px 4px 1px;color:#384235;background:none;line-height:1.4}
  & #routes .route-grid {gap:clamp(13px,1.8vw,27px);align-items:stretch}
  & #routes .route {
    padding:clamp(7px,.72vw,12px);border:1px solid #b4aa8d;border-radius:4px;
    background:linear-gradient(120deg,#eee6cd,#d7cfb7)!important;color:#27392c;box-shadow:0 8px 18px #040c0b44;
  }
  & #routes .route::before, & #routes .route::after {content:none}
  & #routes .route>img {display:block;position:static;border:0;border-radius:2px;width:100%;height:auto;aspect-ratio:1.88;object-fit:cover;mask:none}
  & #routes .route>div {padding:clamp(12px,1.3vw,20px) 6px 5px;border:0;background:none}
  & #routes .route h3 {color:#23382a;margin:.2em 0}
  & #routes .route p {color:#37473b}
  & #routes .route .eyebrow {color:#65513a}
  & #routes .route .inline {border:1px solid #64715e;border-radius:3px;background:#e5dec7;color:#253c2a;padding:9px 15px;min-height:42px;text-decoration:none}
  & #atlas .atlas {display:grid;grid-template:"title map" auto "info map" 1fr / minmax(0,.74fr) minmax(0,1.26fr);align-items:start;gap:18px clamp(20px,3.3vw,52px)}
  & #atlas .atlas-header {grid-area:title;margin:0;padding:0}
  & #atlas .atlas-map {grid-area:map;align-self:center;min-height:0}
  & #atlas .atlas-detail {background:transparent;box-shadow:none;border:0;grid-area:info;min-height:0;margin:0;padding:0;align-self:start}
  & #atlas .atlas-header h2 {font-size:clamp(35px,4.1vw,67px);margin:.15em 0}
  & #atlas .atlas-detail h3 {font-size:clamp(25px,2.5vw,40px);margin:.23em 0}
  & #atlas .atlas-tabs {display:flex;gap:5px;flex-wrap:wrap;margin:10px 0 0}
  & #atlas .atlas-tabs button {min-height:44px;padding:6px 12px;border-radius:3px}
  & #atlas .atlas-map .fde-terrain {margin:0}
  & #atlas .route-facts {margin:12px 0}
  & #field>img {border:7px solid #ddd5ba;border-radius:3px;box-shadow:0 9px 26px #040c0b5c;mask:none;aspect-ratio:1.58;object-fit:cover;height:auto}
}
/* The Civic poster, its enamel destination strip, and the service-day instrument. */
#theater #stage[data-scene=civic] {
  & >.tt-edition:has(.fde-stations) {
    padding:clamp(14px,2.2vw,34px);gap:0 clamp(16px,2vw,34px);
    grid-template:"art tabs" auto "art report" minmax(0,1fr) "stations report" auto / minmax(0,1.04fr) minmax(0,.96fr);
  }
  & .tt-edition .tt-image {position:relative;min-height:clamp(230px,24vw,380px);margin:0;background:#173337;overflow:hidden;border:1px solid #839487;border-radius:7px 7px 0 0}
  & .tt-edition .tt-image img.cf-print {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 52%;mask:none}
  & .tt-edition .tt-title {margin:1px;padding:clamp(13px,2vw,30px);border-radius:6px 6px 0 0;overflow:hidden}
  & .tt-title::before {inset:0;background:linear-gradient(#0c242ddb,#0c242d9e 65%,transparent)}
  & .tt-title h2 {font-size:clamp(28px,3.35vw,55px)}
  & .tt-title p {text-align:right}
  & .tt-edition .fde-stations {padding:15px clamp(13px,1.7vw,27px);border:1px solid #839487;border-top:0;border-radius:0 0 7px 7px;background:#243c3b}
  & .tt-edition .fde-stations header span {color:#e2d8b7}
  & .tt-edition .fde-stations .fde-platform-note {padding:9px 0 0;border-top:1px solid #a3b2a83d}
  & .tt-choices {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;align-self:stretch;align-items:stretch;
    padding:6px;border:1px solid #687a75;border-bottom:0;border-radius:7px 7px 0 0;
    background:linear-gradient(#415051,#293639);box-shadow:inset 0 1px #8e9c92;
  }
  & .tt-choices button, & .tt-choices button[aria-pressed=true] {
    justify-content:flex-start;min-width:0;min-height:45px;gap:6px;padding:6px clamp(5px,.75vw,12px);
    background:#263334;color:#dae1da;border:1px solid #172524;border-radius:3px;
    font:650 clamp(12px,.98vw,16px)/1.12 Arial,sans-serif;text-align:left;
  }
  & .tt-choices button[aria-pressed=true] {color:#19292a;background:#ebd2a1;border-color:#e8d6b3;box-shadow:inset 0 -2px #b9a375}
  & .tt-choices button .tt-token {flex:none}
  & .tt-edition .tt-daily {
    align-self:stretch;align-content:space-between;gap:10px clamp(12px,1.3vw,20px);padding:clamp(15px,2.25vw,34px);
    border:1px solid #687a75;border-top:1px solid #172326;border-radius:0 0 7px 7px;
    background:linear-gradient(130deg,#203134,#142325 84%);box-shadow:inset 0 1px #60727144,0 6px 14px #101b1c3b;
  }
  & .tt-number strong {font-variant-numeric:tabular-nums;line-height:1;font-size:clamp(46px,5.8vw,87px)}
  & .tt-supp {justify-self:stretch;gap:8px;border-left:1px solid #61716b;padding-left:clamp(9px,1.1vw,17px)}
  & .fw-week-caption {margin:8px 0 0}
  & .tt-date {align-items:center;gap:6px;margin:0;padding-top:9px;border-top:1px solid #73857d65}
  & .tt-date button {padding:5px 10px;min-height:44px;border:1px solid #627670;border-radius:3px;background:#2c4140;color:#f8e9cc;font:650 13px/1.2 Arial,sans-serif}
}
html.cf-edition[data-ver-cursor=pulse] body.tt-journal {
  & .hero.cf-front > .cf-print {
    mask-image:linear-gradient(90deg,transparent,#000 21%),linear-gradient(0deg,transparent,#000 8%,#000 91%,transparent)!important;mask-composite:intersect;
  }
  & .network-links.cf-city-index {gap:2px;padding-block:9px}
  & .network-links.cf-city-index a[data-route] {min-height:50px;border-radius:4px}
  & .network-links.cf-city-index a[aria-current=true] {box-shadow:inset 0 -2px #ebcc91;background:#adc5ac13!important}
  & .cf-bulletin.tt-atlas {padding-block:clamp(25px,3.8vw,62px)}
  & .tt-atlas .network-board {
    padding:clamp(13px,2vw,32px);border:1px solid #879691;border-radius:8px;background:#1b3035!important;
    box-shadow:inset 0 2px #d4dcc31f,0 6px 15px #17262a55;
  }
  & .network-board .network-board-top {padding:0 0 12px}
  & .tt-atlas .network-map {border-radius:4px;background:#172b30}
  & .tt-atlas .fde-stations {padding:clamp(13px,1.55vw,23px);margin-top:10px;background:#233d40;border-radius:5px;border:1px solid #849a8a6b}
  & #explore {padding-block:clamp(28px,4.4vw,65px)}
  & #explore .section-top {align-items:end;margin-bottom:clamp(14px,2vw,28px);gap:12px}
  & #explore .toolbar {border:1px solid #80978c88;border-radius:6px;background:#243e42;padding:clamp(10px,1.35vw,22px)}
  & #explore .toolbar select {min-height:44px;border-radius:3px}
  & #explore .stats {gap:5px;margin-block:9px}
  & #explore .metric {padding:clamp(10px,1.65vw,23px);border-radius:4px}
  & #explore .chart-panel {padding:clamp(14px,2.1vw,32px);border:1px solid #80978c88;border-radius:6px;background:#1d353b!important;box-shadow:inset 0 1px #a0ad9b22}
  & #explore .chart-head {align-items:center}
  & #explore .chart-head .action {min-height:44px;border-radius:3px}
  & #data-notes {padding-block:clamp(32px,4.3vw,66px)}
}
@media(max-width:799px) {
  #theater #stage[data-scene=northline] .cf-trail .nl-book:has(.fde-terrain) {grid-template-columns:minmax(0,1fr);padding:15px 14px 24px;gap:0}
  #theater #stage[data-scene=northline] .nl-route-tabs {margin:8px 0 14px}
  #theater #stage[data-scene=northline] .cf-trail .nl-book .nl-plotbox {margin:14px 0 0}
  #theater #stage[data-scene=civic] >.tt-edition:has(.fde-stations) {grid-template:"art" clamp(198px,52vw,300px) "stations" auto "tabs" auto "report" auto / minmax(0,1fr);padding:12px;gap:0}
  #theater #stage[data-scene=civic] .tt-edition .tt-image {min-height:0}
  #theater #stage[data-scene=civic] .tt-choices {margin-top:15px}
  #theater #stage[data-scene=civic] .tt-supp {padding-left:9px}
  #theater #stage[data-scene=civic] .tt-edition .tt-title {padding:12px 10px 18px;gap:6px}
  html.cf-edition[data-ver-cursor=northline] #atlas .atlas {grid-template:"title" auto "map" auto "info" auto / minmax(0,1fr)}
  html.cf-edition[data-ver-cursor=northline] #routes .filters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:min(100%,350px)}
  html.cf-edition[data-ver-cursor=northline] #routes .filters button {padding:6px;min-width:0;min-height:44px}
  html.cf-edition[data-ver-cursor=northline] #routes .route {display:grid;grid-template-columns:minmax(100px,.82fr) minmax(0,1.18fr);gap:11px;align-items:stretch}
  html.cf-edition[data-ver-cursor=northline] #routes .route[hidden] {display:none}
  html.cf-edition[data-ver-cursor=northline] #routes .route>img {height:100%;min-height:145px;aspect-ratio:auto}
  html.cf-edition[data-ver-cursor=northline] #routes .route>div {padding:5px 0}
  html.cf-edition[data-ver-cursor=northline] #routes .route h3 {font-size:clamp(21px,5.8vw,35px)}
  html.cf-edition[data-ver-cursor=northline] #routes .route p {margin:.3em 0 .6em;font-size:14px;line-height:1.4}
  html.cf-edition[data-ver-cursor=northline] #atlas .atlas-tabs button {padding:6px 9px}
  html.cf-edition[data-ver-cursor=pulse] body.tt-journal .hero.cf-front > .cf-print {mask-image:linear-gradient(0deg,transparent,#000 15%,#000 85%,transparent)!important}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) {
  #theater #stage[data-scene=northline] .nl-route-tabs button:hover {border-color:#d1c49c}
  #theater #stage[data-scene=civic] .tt-choices button:hover {border-color:#d6c49d}
}
@media(forced-colors:active) {
  #theater #stage[data-scene=northline] .nl-route-tabs button[aria-pressed=true],
  #theater #stage[data-scene=civic] .tt-choices button[aria-pressed=true] {outline:2px solid Highlight;outline-offset:-3px}
}
