/* Three live publications in the project picker. Each layout follows its own artwork. */

/* Northline  /  the coast opens the guide; the itinerary and relief share the same sheet. */
#stage[data-scene=northline] > .cf-trail:has(.fde-terrain) {
  display:grid;grid-template:"coast" auto "book" auto / 100%;min-height:0;background:#20392f;
}
#stage[data-scene=northline] .cf-trail .nl-hero {
  grid-area:coast;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;
  min-height:236px;height:clamp(236px,21vw,334px);padding:25px clamp(28px,4vw,58px) 20px;background:#20392f;
}
#stage[data-scene=northline] .nl-hero > .cf-print {
  object-fit:cover;object-position:50% 49%;mask-image:linear-gradient(to bottom,#000 65%,#000c 82%,transparent);
}
#stage[data-scene=northline] .nl-hero::after {
  content:"";display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#142820bd 0%,#152a2266 31%,transparent 67%);
}
#stage[data-scene=northline] .nl-brand {
  color:#f9f1d5;background:none;padding:0;gap:8px;font:600 clamp(16px,1.6vw,26px)/1.1 Georgia,serif;
}
#stage[data-scene=northline] .nl-brand .nl-mark {display:inline-block}
#stage[data-scene=northline] .nl-mark::before,#stage[data-scene=northline] .nl-mark::after {background:#eee9c5}
#stage[data-scene=northline] .nl-hero > div:last-child {align-self:flex-start;display:block;padding:0;background:none}
#stage[data-scene=northline] .nl-hero > div:last-child::before {content:none}
#stage[data-scene=northline] .nl-hero .nl-location {margin:0 0 9px;color:#eee4c8}
#stage[data-scene=northline] .nl-hero h2 {font:400 clamp(45px,5.6vw,86px)/.94 Georgia,serif;letter-spacing:-.065em}
#stage[data-scene=northline] .nl-hero h2 span {display:inline}
#stage[data-scene=northline] .nl-hero h2 span+span::before {content:" "}
#stage[data-scene=northline] .cf-trail .nl-book:has(.fde-terrain) {
  grid-area:book;display:grid;grid-template:"title relief" auto "routes relief" auto "profile relief" 1fr / minmax(0,.77fr) minmax(0,1.23fr);
  align-items:start;align-content:start;gap:0 clamp(32px,6vw,96px);padding:18px clamp(28px,4vw,58px) 32px;
  border:0;box-shadow:none;background:#20392f;
}
#stage[data-scene=northline] .nl-routehead {grid-area:title;border:0;padding:0;margin:0}
#stage[data-scene=northline] .nl-routehead h3 {font:400 clamp(32px,3.8vw,58px)/1 Georgia,serif;margin:6px 0 8px}
#stage[data-scene=northline] .nl-meta {margin:0}
#stage[data-scene=northline] .nl-route-tabs {grid-area:routes;display:flex;flex-wrap:wrap;align-items:center;gap:0 15px;margin:8px 0 12px;padding:0;border:0;background:transparent;box-shadow:none}
#stage[data-scene=northline] .nl-route-tabs button,#stage[data-scene=northline] .nl-route-tabs button[aria-pressed=true] {
  position:relative;display:inline-flex;flex-direction:row;justify-content:start;gap:6px;align-items:center;min-height:44px;
  padding:3px 0 3px 10px;border:0;box-shadow:none;background:transparent;text-decoration:none;
  text-align:left;font:600 14px/1.25 Georgia,serif;color:#c6d2c1;
}
#stage[data-scene=northline] .nl-route-tabs button[aria-pressed=true] {color:#ffe3ab}
#stage[data-scene=northline] .nl-route-tabs button[aria-pressed=true]::before {
  content:"";display:block!important;position:absolute;left:0;top:50%;width:5px;height:5px;border:0;background:currentColor;border-radius:50%;transform:translateY(-50%);
}
#stage[data-scene=northline] .fde-terrain {grid-area:relief;margin:0;background:transparent;border:0}
#stage[data-scene=northline] .fde-terrain-top {padding:0 0 10px}
#stage[data-scene=northline] .fde-topolegend {padding:8px 0}
#stage[data-scene=northline] .fde-waynote {border:0;padding:5px 0 0;grid-template-columns:minmax(95px,.58fr) minmax(0,1.42fr);gap:15px}
#stage[data-scene=northline] .fde-waynote strong {font-size:clamp(18px,1.7vw,26px)}
#stage[data-scene=northline] .fde-waynote p {font-size:14px;line-height:1.45}
#stage[data-scene=northline] .cf-trail .nl-book .nl-plotbox {grid-area:profile;align-self:start;margin:0;padding:10px 0 2px;border:0;background:none;box-shadow:none}
#stage[data-scene=northline] .nl-chart {height:clamp(55px,6vw,86px)}
#stage[data-scene=northline] .nl-chart-head,#stage[data-scene=northline] .nl-profile-foot {border:0}

/* Civic  /  the illustrated crossing and its station line are the left page, readings the right. */
#stage[data-scene=civic] > .tt-edition:has(.fde-stations) {
  position:relative;display:grid;grid-template:"art tabs" auto "art report" auto "stations report" minmax(132px,auto) / minmax(0,1.06fr) minmax(0,.94fr);
  height:auto;min-height:0;gap:0;background:#193540;
}
#stage[data-scene=civic] .tt-image {min-height:360px;grid-area:art;background:#193540}
#stage[data-scene=civic] .tt-image img.cf-print {object-fit:cover;object-position:50% 53%;mask-image:linear-gradient(to bottom,#000 72%,#000c 83%,transparent)}
#stage[data-scene=civic] .tt-image::after {content:none}
#stage[data-scene=civic] .tt-title {
  grid-area:art;z-index:1;align-self:start;position:relative;isolation:isolate;display:flex;align-items:center;flex-wrap:wrap;
  gap:9px 13px;padding:20px clamp(18px,2.25vw,35px) 36px;background:none;pointer-events:none;color:#fff0c6;
}
#stage[data-scene=civic] .tt-title::before {content:"";position:absolute;inset:0 0 -25%;z-index:-1;background:linear-gradient(to bottom,#102e3af5,#12333dd6 44%,transparent)}
#stage[data-scene=civic] .tt-title h2 {font:850 clamp(35px,4.05vw,70px)/.95 Arial,sans-serif;letter-spacing:-.075em;color:#fff2cd}
#stage[data-scene=civic] .tt-title img {width:clamp(32px,3.7vw,58px)}
#stage[data-scene=civic] .tt-title p {margin:0 0 0 auto;color:#faedca;font:600 10px/1.45 Consolas,monospace}
#stage[data-scene=civic] .tt-choices {display:flex;align-self:start;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:2px clamp(12px,1.6vw,24px);border:0;background:transparent;padding:22px clamp(20px,2.7vw,42px) 0}
#stage[data-scene=civic] .tt-choices button,#stage[data-scene=civic] .tt-choices button[aria-pressed=true] {
  display:inline-flex;gap:6px;min-height:44px;min-width:0;padding:0;border:0;box-shadow:none;background:transparent;
  font:500 clamp(13px,1vw,16px)/1.15 Arial,sans-serif;color:#cad8d6;text-decoration:none;
}
#stage[data-scene=civic] .tt-choices button[aria-pressed=true] {color:#fff0c1;font-weight:700}
#stage[data-scene=civic] .tt-choices button .tt-token {width:24px;height:24px;font-size:15px}
#stage[data-scene=civic] .tt-choices button:not([aria-pressed=true]) .tt-token {background:#354f57;color:#d4dfdc}
#stage[data-scene=civic] .tt-daily {
  align-self:start;display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,auto);align-items:center;gap:6px 20px;
  padding:14px clamp(20px,2.7vw,42px) 24px;background:transparent;
}
#stage[data-scene=civic] .tt-line {grid-column:1/-1;margin:0 0 6px;font-size:clamp(24px,2.6vw,43px)}
#stage[data-scene=civic] .tt-number {margin:0}
#stage[data-scene=civic] .tt-number strong {font-size:clamp(53px,6.5vw,108px)}
#stage[data-scene=civic] .tt-supp {display:grid;gap:12px;margin:0;padding:0;border:0}
#stage[data-scene=civic] .tt-supp div {padding:0;border:0}
#stage[data-scene=civic] .tt-supp dd {font-size:clamp(18px,1.6vw,26px)}
#stage[data-scene=civic] :is(.tt-number span,.tt-supp dt,.fw-week-caption) {font:600 10px/1.3 Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;color:#c2d3cf}
#stage[data-scene=civic] .fw-week-caption {grid-column:1/-1;margin:20px 0 2px}
#stage[data-scene=civic] .fde-service-scroll {margin:0;background:transparent}
#stage[data-scene=civic] .tt-date {grid-column:1/-1}
#stage[data-scene=civic] .tt-date button {min-height:44px;min-width:44px;padding:0;border:0;background:none;box-shadow:none;color:#e5d4a9;font:500 14px/1.2 Georgia,serif;text-decoration:none}
#stage[data-scene=civic] .fde-stations {
  grid-template-columns:minmax(0,1fr);gap:8px;margin:0;padding:3px clamp(20px,2.7vw,42px) 24px;
  color:#e4e6ce;border:0;background:transparent;
}
#stage[data-scene=civic] .fde-stations header {display:block}
#stage[data-scene=civic] .fde-stations header span {font:600 11px/1.2 Consolas,monospace;color:#c7d3c9}
#stage[data-scene=civic] .fde-stations header h3,#stage[data-scene=civic] .fde-stations header b {display:none}
#stage[data-scene=civic] .fde-platform button img {width:76px;height:43px}
#stage[data-scene=civic] .fde-platform button span {font-size:13px}
#stage[data-scene=civic] .fde-stations .fde-platform-note {padding:4px 0 0;border:0;min-height:24px;font-size:13px;color:#d3e0d9}

/* Salt & Measure  /  a kitchen photograph faces a compact, readable comparison. */
#stage[data-scene=food] > .sm-cover {
  display:grid;grid-template:"mast lab" auto "art lab" minmax(145px,1fr) "story lab" auto / minmax(0,.91fr) minmax(0,1.09fr);
  align-items:stretch;padding:clamp(22px,2.8vw,44px);gap:0 clamp(32px,4.25vw,76px);border:0;background:#e8dfca;color:#342b23;
}
#stage[data-scene=food] .sm-cover-banner {grid-area:mast;display:flex;align-items:baseline;gap:10px;padding:0 0 18px;border:0;background:transparent;color:#343a27}
#stage[data-scene=food] .sm-cover-banner .sm-wordmark {font:600 clamp(32px,3.4vw,58px)/.96 Georgia,serif;letter-spacing:-.068em}
#stage[data-scene=food] .sm-cover-banner>span:last-child {color:#615340;letter-spacing:.085em}
#stage[data-scene=food] .sm-cover-art {grid-area:art;align-self:stretch;height:auto;min-height:170px;overflow:hidden;border:0;box-shadow:none;background:transparent}
#stage[data-scene=food] .sm-cover-art picture {display:block;position:absolute;inset:0}
#stage[data-scene=food] .sm-cover-art img {object-fit:cover;object-position:51% 49%;mask-image:none}
#stage[data-scene=food] .sm-live {display:contents}
#stage[data-scene=food] .sm-cover-heading {grid-area:story;display:block;margin:0;padding:20px 0 0}
#stage[data-scene=food] .sm-cover-heading h4 {margin:3px 0 0;color:#342b23;font:400 clamp(40px,4.15vw,68px)/.98 Georgia,serif;letter-spacing:-.065em}
#stage[data-scene=food] .sm-slot {grid-area:lab;min-width:0;align-self:center}
#stage[data-scene=food] .sm-controls {display:grid;grid-template-columns:1fr;gap:10px;padding:0;border:0}
#stage[data-scene=food] .sm-controls fieldset {display:grid;grid-template-columns:minmax(100px,.52fr) minmax(0,1.48fr);gap:0;align-items:center}
#stage[data-scene=food] .sm-controls legend {float:left;max-width:100%;margin:0;padding:0 10px 0 0;line-height:1.4}
#stage[data-scene=food] :is(.sm-choice,.sm-measure) {display:flex;flex-wrap:wrap;align-items:center;justify-content:start;gap:2px 11px;border:0;background:none}
#stage[data-scene=food] .sm-controls button,#stage[data-scene=food] .sm-controls button[aria-pressed=true] {
  flex:0 1 auto;position:relative;min-height:44px;min-width:0;justify-content:start;padding:2px 0 2px 10px;margin:0;border:0;box-shadow:none;background:none;
  color:#534c36;text-decoration:none;font:600 15px/1.16 Georgia,serif;
}
#stage[data-scene=food] .sm-controls button[aria-pressed=true] {color:#783323}
#stage[data-scene=food] .sm-controls button::before {content:none}
#stage[data-scene=food] .sm-controls button[aria-pressed=true]::before {
  content:"";position:absolute;display:block;inset:auto;left:0;top:50%;width:5px;height:5px;transform:translateY(-50%);border:0;border-radius:50%;background:currentColor;
}
#stage[data-scene=food] .sm-reading {margin:20px 0 0}
#stage[data-scene=food] .sm-label-line {padding:0 0 9px;border:0;letter-spacing:.055em;font-size:10px}
#stage[data-scene=food] .sm-table :is(th,td) {border:0;padding:6px 0}
#stage[data-scene=food] .sm-table thead th {font-size:clamp(17px,1.5vw,23px);padding-left:8px}
#stage[data-scene=food] .sm-table .sm-row-0 td {font-size:clamp(24px,2.15vw,35px);color:#853a26}
#stage[data-scene=food] .sm-table tbody th {font-size:14px}
#stage[data-scene=food] .sm-table tr:not(.sm-row-0) td {font-size:18px}
#stage[data-scene=food] .sm-interpret {padding:13px 0 8px;font:600 17px/1.35 Georgia,serif;color:#39523b}
#stage[data-scene=food] .sm-gloss {border:0}
#stage[data-scene=food] .sm-footnote {max-width:66ch}
@media (hover:hover) {
  #stage[data-scene=northline] .nl-route-tabs button:hover {color:#fff1d3}
  #stage[data-scene=civic] :is(.tt-choices,.tt-date) button:hover {color:white}
  #stage[data-scene=food] .sm-controls button:hover {color:#842e19}
}
#stage:is([data-scene=northline],[data-scene=civic],[data-scene=food]) :is(button,summary):focus-visible {outline:2px solid currentColor;outline-offset:2px}
@media (max-width:799px) {
  #stage[data-scene=northline] .cf-trail .nl-hero {min-height:0;height:clamp(166px,44vw,242px);padding:14px 17px 8px}
  #stage[data-scene=northline] .nl-hero h2 {font-size:clamp(39px,8vw,55px)}
  #stage[data-scene=northline] .cf-trail .nl-book:has(.fde-terrain) {grid-template:"title" auto "routes" auto "relief" auto "profile" auto / minmax(0,1fr);padding:15px 16px 18px;gap:0}
  #stage[data-scene=northline] .nl-routehead h3 {font-size:32px;margin:5px 0}
  #stage[data-scene=northline] .nl-route-tabs {gap:0 12px;margin:1px 0 8px}
  #stage[data-scene=northline] .fde-terrain-top {padding:0 0 6px}
  #stage[data-scene=northline] .fde-waynote {gap:9px;grid-template-columns:minmax(84px,.72fr) minmax(0,1.28fr)}
  #stage[data-scene=northline] .fde-waynote strong {font-size:17px}
  #stage[data-scene=northline] .fde-waynote p {font-size:12px}
  #stage[data-scene=northline] .cf-trail .nl-book .nl-plotbox {padding-top:17px}
  #stage[data-scene=civic] > .tt-edition:has(.fde-stations) {grid-template:"art" clamp(196px,52vw,300px) "tabs" auto "report" auto "stations" auto / minmax(0,1fr)}
  #stage[data-scene=civic] .tt-image {min-height:0}
  #stage[data-scene=civic] .tt-title {padding:12px 14px 27px;gap:6px}
  #stage[data-scene=civic] .tt-title h2 {font-size:clamp(31px,7.75vw,52px)}
  #stage[data-scene=civic] .tt-title p {font-size:9px}
  #stage[data-scene=civic] .tt-choices {padding:0 14px;gap:0 12px;justify-content:space-between}
  #stage[data-scene=civic] .tt-choices button,#stage[data-scene=civic] .tt-choices button[aria-pressed=true] {font-size:13px;gap:5px}
  #stage[data-scene=civic] .tt-choices button .tt-token {width:19px;height:19px;font-size:12px}
  #stage[data-scene=civic] .tt-daily {grid-template-columns:minmax(0,1fr) minmax(95px,auto);padding:12px 17px 15px;gap:4px 15px}
  #stage[data-scene=civic] .tt-supp {gap:6px}
  #stage[data-scene=civic] .tt-number strong {font-size:54px}
  #stage[data-scene=civic] .tt-supp dd {font-size:19px}
  #stage[data-scene=civic] .fw-week-caption {margin:12px 0 2px}
  #stage[data-scene=civic] .fde-stations {grid-template-columns:minmax(0,1fr);padding:8px 17px 20px;gap:5px}
  #stage[data-scene=civic] .fde-platform button img {height:35px}
  #stage[data-scene=food] > .sm-cover {grid-template:"mast" auto "art" auto "story" auto "lab" auto / minmax(0,1fr);padding:16px;gap:0}
  #stage[data-scene=food] .sm-cover-banner {padding:0 0 12px}
  #stage[data-scene=food] .sm-cover-banner .sm-wordmark {font-size:clamp(29px,7.8vw,44px)}
  #stage[data-scene=food] .sm-cover-art {min-height:0;height:clamp(130px,36vw,250px)}
  #stage[data-scene=food] .sm-cover-heading {padding:14px 0 12px}
  #stage[data-scene=food] .sm-cover-heading h4 {font-size:clamp(34px,8.2vw,54px)}
  #stage[data-scene=food] .sm-controls {gap:3px}
  #stage[data-scene=food] .sm-controls fieldset {grid-template-columns:minmax(55px,.26fr) minmax(0,.74fr)}
  #stage[data-scene=food] :is(.sm-choice,.sm-measure) {gap:0 9px}
  #stage[data-scene=food] .sm-controls button,#stage[data-scene=food] .sm-controls button[aria-pressed=true] {font-size:14px}
  #stage[data-scene=food] .sm-reading {margin-top:12px}
  #stage[data-scene=food] .sm-label-line {font-size:9px}
  #stage[data-scene=food] .sm-gloss {margin:4px 0}
}
@media (max-width:355px) {
  #stage[data-scene=northline] .nl-route-tabs {gap:0 8px}
  #stage[data-scene=northline] .nl-route-tabs button {font-size:13px}
  #stage[data-scene=civic] .tt-choices {padding-inline:11px;gap:0 6px}
  #stage[data-scene=civic] .tt-choices button,#stage[data-scene=civic] .tt-choices button[aria-pressed=true] {gap:4px;font-size:12px}
  #stage[data-scene=food] .sm-controls fieldset {grid-template-columns:1fr}
  #stage[data-scene=food] .sm-controls legend {float:none}
  #stage[data-scene=food] .sm-controls {gap:5px}
  #stage[data-scene=food] .sm-table .sm-key-col {width:25%}
}

/* Cover transitions share the paper or ink behind their own illustrations. */
#theater #stage[data-scene=civic] .tt-edition {background:linear-gradient(180deg,var(--join-head),#193540 41%,var(--join-foot))}
#theater #stage[data-scene=civic] .tt-edition :is(.tt-title,.fde-stations) {background:transparent}
#theater #stage[data-scene=civic] .tt-edition .tt-image {background:transparent}
#theater #stage[data-scene=civic] .tt-edition .tt-image img {mask-image:linear-gradient(180deg,#0004,#000 24%,#000 70%,transparent);mask-composite:add}
#stage[data-scene=civic] .tt-supp {grid-template-columns:minmax(0,1fr)}
#stage[data-scene=civic] .fde-service-plot .tt-week button,#stage[data-scene=civic] .fde-service-plot .tt-week button[aria-pressed=true] {
 border:0;background:transparent;box-shadow:none;
}
#stage[data-scene=civic] .fde-service-plot .tt-week button[aria-pressed=true] {color:#ffe3a7;font-weight:700}
#stage[data-scene=civic] .fde-service-scroll {overflow-x:clip}
#stage[data-scene=civic] .tt-daily {align-self:stretch;align-content:space-evenly}
#stage[data-scene=food] > .sm-cover {grid-template:"mast story" auto "art lab" auto / minmax(0,.91fr) minmax(0,1.09fr);background:linear-gradient(var(--join-head),#e8dfca 27px,#e8dfca 88%,var(--join-foot))}
#theater #stage[data-scene=food] .sm-cover .sm-cover-banner {color:#313d2f;background:transparent;align-items:center}
#theater #stage[data-scene=food] .sm-cover .sm-cover-banner>span:last-child {color:#594d3b;font-size:10px;white-space:nowrap}
#theater #stage[data-scene=food] .sm-cover .sm-cover-art {background:transparent}
#theater #stage[data-scene=food] .sm-cover .sm-cover-art img {mask:none}
#stage[data-scene=food] .sm-cover-heading {padding:0 0 17px}
#stage[data-scene=food] .sm-slot {align-self:start}
#stage[data-scene=food] .sm-label-sources a::before,#stage[data-scene=food] .sm-scope a::before {display:none}
#stage[data-scene=food] .sm-gloss summary {width:fit-content}
@media(max-width:799px){
 #stage[data-scene=food] > .sm-cover {grid-template:"mast" auto "art" auto "story" auto "lab" auto / minmax(0,1fr);padding-top:28px}
 #stage[data-scene=food] .sm-cover-heading {padding:17px 0 14px}
 #stage[data-scene=food] .sm-controls fieldset {display:block}
 #stage[data-scene=food] .sm-controls legend {float:none;margin:0;padding:0}
 #stage[data-scene=food] .sm-controls {gap:2px}
 #stage[data-scene=food] :is(.sm-choice,.sm-measure) {column-gap:13px}
 #stage[data-scene=civic] .tt-supp {justify-self:start;gap:7px}
 #stage[data-scene=civic] .tt-number strong {font-size:52px}
 #stage[data-scene=civic] .tt-choices {display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,.88fr) minmax(0,1.10fr);gap:0 5px}
 #stage[data-scene=civic] .tt-daily {grid-template-columns:minmax(0,1.05fr) minmax(0,.72fr);align-content:start}
 #stage[data-scene=civic] .tt-choices button span {text-align:left}
}
@media(min-width:800px){
 #theater #stage[data-scene=civic] .tt-edition .tt-image img {
   mask-image:linear-gradient(180deg,#0003,#000 28%,#000 74%,transparent),linear-gradient(to right,#000 76%,transparent);mask-composite:intersect;
 }
}

#stage[data-scene=civic] .tt-number strong {letter-spacing:-.055em}
#stage[data-scene=northline] .fde-terrain .fde-waymark {min-width:44px;min-height:44px;width:44px;height:44px}
#stage[data-scene=northline] .fde-terrain .fde-waymark::before {inset:13px}
#theater #stage[data-scene=food] .sm-cover .sm-cover-art picture {
 mask-image:linear-gradient(90deg,transparent,#000 9px,#000 calc(100% - 9px),transparent),linear-gradient(180deg,transparent,#000 8px,#000 calc(100% - 10px),transparent);
 mask-composite:intersect;
}
@media(forced-colors:active){
 #theater #stage[data-scene=food] .sm-cover .sm-cover-art picture {mask:none}
 #stage[data-scene=northline] .nl-route-tabs button[aria-pressed=true]::before,#stage[data-scene=food] .sm-controls button[aria-pressed=true]::before {background:ButtonText;forced-color-adjust:none}
}
