/* Northline's fieldwork uses canvas, printed expedition tabs and a brass register. */
:is(#theater #stage[data-scene=northline],html[data-ver-cursor=northline]) {
  --trail-ink:#102723;--trail-canvas:#233a2e;--trail-paper:#ece6d2;--trail-gilt:#d2ba84;
  & [data-expedition=coast], & [data-atlas=coast] {--route-pin:url('route-coast.webp')}
  & [data-expedition=cave], & [data-atlas=cave] {--route-pin:url('route-cave.webp')}
  & [data-expedition=ridge], & [data-atlas=ridge] {--route-pin:url('route-ridge.webp')}
}
#theater #stage[data-scene=northline] .cf-trail {
  background:linear-gradient(122deg,#28372e,#172c25 70%);color:#f1e6ca;
  & .nl-hero {height:clamp(228px,24vw,372px);min-height:0;isolation:isolate;position:relative;overflow:hidden;
    margin:clamp(8px,1.2vw,19px) clamp(10px,1.5vw,24px) 0;padding:clamp(15px,2vw,33px);border-radius:5px 16px 4px 4px;background:#152723;box-shadow:0 0 0 1px #abb09660;}
  & .nl-hero>.cf-print {inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:65% 54%;mask:none!important;opacity:1;filter:none}
  & .nl-hero::after {background:linear-gradient(90deg,#12252191,#12252122 41%,transparent 69%),linear-gradient(0deg,#10221cca,transparent 45%);}
  & .nl-brand {font-weight:500;text-shadow:0 1px 5px #15231f}
  & .nl-location {letter-spacing:.12em}
  & .nl-hero h2 {font-size:clamp(47px,6.15vw,94px);font-style:italic;letter-spacing:-.065em}
  & .nl-book:has(.fde-terrain) {padding-top:clamp(17px,2.4vw,34px);gap:0 clamp(15px,3vw,48px)}
  & .nl-route-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;align-items:stretch}
  & .nl-route-tabs button, & .nl-route-tabs button[aria-pressed=true] {
    position:relative;flex-direction:column;justify-content:center;align-items:center;gap:4px;
    padding:8px 4px 9px;min-height:80px;color:#dddcca;background:#1d3028;
    border:1px solid #89957d70;border-radius:4px 4px 10px 4px;text-align:center;
    font:600 clamp(12px,1.1vw,15px)/1.12 Georgia,serif;box-shadow:inset 0 1px #dfdeba0d;
  }
  & .nl-route-tabs button::before {display:block!important;content:'';position:static;flex:none;width:clamp(44px,4.4vw,68px);height:40px;
    transform:none!important;border:0;box-shadow:none;background:var(--route-pin) center / contain no-repeat!important;border-radius:0}
  & .nl-route-tabs button[aria-pressed=true] {background:linear-gradient(145deg,#eee4c8,#c6bc97);color:#243628;border-color:#c3b283}
  & .nl-route-tabs button[aria-pressed=true]::before {display:block!important;background:var(--route-pin) center / contain no-repeat!important}
  & .nl-route-tabs button .cf-emblem {display:none}
  & .fde-terrain {position:relative}
  & .nl-plotbox {background:linear-gradient(105deg,#1c2d24,#213c2b)}
}
html.cf-edition[data-ver-cursor=northline] {
  & body {background:#101e1c}
  & #top.hero.cf-front {min-height:min(61vh,650px);overflow:hidden;isolation:isolate;background:#13231e}
  & #top.hero>.cf-print {position:absolute;inset:0;width:100%;height:100%;max-width:none;mask:none!important;object-fit:cover;object-position:62% 56%;opacity:1;filter:none}
  & #top.hero::after {content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#0c1e18e6,#12251ba0 30%,#13251b00 66%),linear-gradient(0deg,#16281e 0%,#16281e00 17%)}
  & #top.hero>.hero-content, & #top.hero>.hero-lower {z-index:1}
  & #top.hero .hero-content {max-width:min(570px,55%);margin-block:clamp(33px,4vw,58px);background:none}
  & #top.hero h1 {font-size:clamp(58px,7.6vw,126px);letter-spacing:-.073em;line-height:.87}
  & #top.hero .hero-actions .button {border-radius:4px;min-height:46px}
  & #top.hero .hero-lower {font-variant-numeric:tabular-nums}
  & nav.cf-trail-index {position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(1120px,94%);box-sizing:border-box;margin:0 auto;padding:clamp(8px,1vw,17px);
    gap:clamp(5px,1vw,15px);border:1px solid #8c967e6b;border-radius:5px;background:#1b3026;color:#ece4c7;box-shadow:0 8px 23px #06101140;}
  & nav.cf-trail-index button, & #atlas .atlas-tabs button {display:flex;align-items:center;justify-content:center;gap:9px;background:#253b2f;border:1px solid #7f8f795e;border-radius:4px;color:#efe4c8;padding:8px 12px;min-height:50px;}
  & :is(nav.cf-trail-index,.atlas-tabs) button::before, & #planner legend::before {content:"";width:clamp(44px,4.4vw,64px);height:39px;display:inline-block;flex:none;vertical-align:middle;background:var(--route-pin) center / contain no-repeat;}
  & :is(nav.cf-trail-index,.atlas-tabs) button img, & #planner legend>img {display:none}
  & #atlas .atlas-tabs button {font:600 13px/1.2 Georgia,serif;justify-content:flex-start}
  & #atlas .atlas-tabs button[aria-pressed=true] {color:#223829;background:#ded8bc;border-color:#e8deba}
  & .intro.shell {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(22px,4vw,68px)}
  & .intro .dispatch {transform:rotate(.5deg)}
  & #routes .route {position:relative}
  & #routes .route>div::before {content:"";position:absolute;width:46px;height:41px;right:20px;margin-top:-30px;background:var(--route-pin) center/contain no-repeat;filter:drop-shadow(0 2px 2px #272c1b61)}
  & #routes .filters {border:0;display:flex;align-items:stretch;gap:5px;padding:0;background:none}
  & #routes .filters button {display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px 9px;min-height:46px;border:1px solid #7f897258;background:#263e2e;color:#eee8d3;border-radius:4px}
  & #routes .filters button::before {content:"";width:28px;height:26px;background:var(--filter-art) center/contain no-repeat}
  & #routes [data-filter=all] {--filter-art:url('filter-all.svg')}
  & #routes [data-filter=land] {--filter-art:url('filter-land.svg')}
  & #routes [data-filter=water] {--filter-art:url('filter-water.svg')}
  & #routes .filters button[aria-pressed=true] {background:#3b503a;box-shadow:inset 0 -2px #d4bb83;border-color:#9b9e7e}
  & #planner .planner {align-items:start;gap:clamp(20px,4vw,75px)}
  & #planner .builder {padding:clamp(15px,2.1vw,32px);border:1px solid #82947980;border-radius:5px;background:linear-gradient(145deg,#243d30,#172d25);box-shadow:0 8px 22px #0b171d40}
  & #planner legend::before {margin-right:.5em}
  & #planner .plan-summary {background:#dfd7bc;color:#283b2b;border-radius:3px;box-shadow:inset 0 0 0 1px #aca485}
  & #planner .plan-summary :is(strong,span,small,p) {color:#283b2b}
  & #weather-brief .weather-tabs button {display:flex;flex-flow:column;align-items:flex-start;justify-content:end;gap:6px;min-height:76px;padding:9px 12px;border-radius:3px;}
  & #weather-brief .weather-tabs button svg {display:none}
  & #weather-brief .weather-tabs button::before {content:"";display:block;width:100%;height:31px;background:var(--weather-art) left bottom/contain no-repeat}
  & #weather-brief [data-weather=cloud] {--weather-art:url('weather-cloud.svg')}
  & #weather-brief [data-weather=swell] {--weather-art:url('weather-swell.svg')}
  & #weather-brief [data-weather=clear] {--weather-art:url('weather-clear.svg')}
  & #routeDialog .modal {border-radius:6px;border:1px solid #7e8a68;overflow:hidden}
  & #routeDialog .modal-copy {background:linear-gradient(150deg,#24382f,#172922);color:#eae4cf}
}
:is(#theater #stage[data-scene=northline],html.cf-edition[data-ver-cursor=northline]) .fde-terrain-top span:last-child {padding-right:30px;min-height:25px;display:flex;align-items:center;background:url('meridian-rose.svg') right center/25px no-repeat}
@media(max-width:760px){
  #theater #stage[data-scene=northline] .cf-trail .nl-hero {height:clamp(182px,48vw,275px);margin:8px 8px 0}
  #theater #stage[data-scene=northline] .cf-trail .nl-route-tabs button {min-height:68px;padding:5px 2px;font-size:12px}
  html.cf-edition[data-ver-cursor=northline] {
    & #top.hero.cf-front {min-height:0;display:grid;grid-template: "hero" auto "copy" auto "meta" auto / minmax(0,1fr)}
    & #top.hero::after {display:none}
    & #top.hero>.cf-print {grid-area:hero;position:static;height:clamp(185px,45vw,310px);width:100%;mask-image:linear-gradient(#000 88%,transparent)!important;object-position:65% 50%}
    & #top.hero .hero-content {grid-area:copy;width:auto;max-width:none;margin:0;padding:4px 5vw 12px}
    & #top.hero .hero-content h1 {font-size:clamp(54px,11vw,76px);line-height:1}
    & #top.hero .hero-lower {grid-area:meta;position:static;margin:0;padding:6px 5vw 12px}
    & nav.cf-trail-index {width:94%;gap:4px;padding:5px}
    & nav.cf-trail-index button, & #atlas .atlas-tabs button {flex-flow:column;gap:3px;padding:5px;font-size:12px}
    & .intro.shell {grid-template-columns:1fr}
    & #routes .route>div::before {position:static;display:block;float:right;width:28px;height:25px;margin:0}
    & #routes .filters button {flex:1;gap:2px;font-size:12px;padding:5px}
    & #routes .filters button::before {width:22px;height:23px}
  }
}
:is(#theater #stage[data-scene=northline],html.cf-edition[data-ver-cursor=northline]) {
  & .nle-cast {width:clamp(37px,3.2vw,48px);height:auto;object-fit:contain;filter:drop-shadow(0 2px 2px #06181180)}
  & .fde-terrain .fde-waynote {display:grid;grid-template:"engraving title" auto "engraving notes" auto / clamp(84px,10vw,148px) minmax(0,1fr);column-gap:clamp(10px,1.7vw,25px);row-gap:4px;align-content:center;align-items:start;padding:clamp(8px,1.5vw,16px);background:linear-gradient(110deg,#d5cbae,#ece5cf 48%,#e0d8c3);color:#24362b}
  & .fde-waynote .nle-way-engraving {grid-area:engraving;width:100%;height:auto;align-self:center;aspect-ratio:1.52;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px #645f4430,0 2px 4px #403b2929}
  & .fde-terrain .fde-waynote strong {grid-area:title;align-self:end;font:600 clamp(16px,1.7vw,24px)/1.14 Georgia,serif;color:#22382b;letter-spacing:-.026em;margin:0}
  & .fde-terrain .fde-waynote p {grid-area:notes;align-self:start;line-height:1.42;margin:0;color:#3d4b3d}
}
html.cf-edition[data-ver-cursor=northline] {
  & #top.hero .hero-lower.shell {position:absolute;inset:auto clamp(14px,5vw,82px) 15px;transform:none!important;width:auto;max-width:none;margin:0;padding:0;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:5px 20px;color:#f7edd1}
  & #top.hero .hero-lower span {position:static;transform:none;font-size:10px;letter-spacing:.065em;text-shadow:0 1px 5px #13251b}
  & #planner :is(#download,#reset) {display:inline-flex;align-items:center;gap:6px;border-radius:4px}
  & #planner :is(#download,#reset)::before {content:"";width:25px;height:24px;flex:none;background:var(--brief-action) center/contain no-repeat}
  & #planner #download {--brief-action:url('brief-download.svg');background:#274334;color:#f1e9d3;border-color:#96a181}
  & #planner #reset {--brief-action:url('brief-reset.svg');background:#23352c;color:#efe5c9;border-color:#8a9074}
}
@media(max-width:760px){
 html.cf-edition[data-ver-cursor=northline] #top.hero .hero-lower.shell {position:static;grid-area:meta;padding:2px 5vw 14px;gap:3px 12px}
}
html.cf-edition[data-ver-cursor=northline] #planner .builder .plan-summary {
  padding:14px clamp(12px,2vw,25px);background:#e1d9c0!important;color:#23382c!important;
  border:1px solid #a79f83;border-radius:3px;box-shadow:inset 0 1px #fff9;
}
html.cf-edition[data-ver-cursor=northline] #planner .builder .plan-summary :is(.eyebrow,#price,#estimate,#costBasis) {
  color:#23382c!important;-webkit-text-fill-color:#23382c!important;opacity:1;text-shadow:none!important;
}
html.cf-edition[data-ver-cursor=northline] #planner .builder .plan-summary #costBasis {color:#394938!important;-webkit-text-fill-color:#394938!important}
html.cf-edition[data-ver-cursor=northline] #planner .builder .plan-actions :is(#download,#reset) {color:#f4ecd6!important;-webkit-text-fill-color:#f4ecd6}
html.cf-edition[data-ver-cursor=northline] #planner .builder :is(select,select option) {color:#f2ead1;background-color:#20392d;color-scheme:dark}
