/* rohin.me - layout for each scene. Only tokens from tokens.css; shared pieces live in system.css. */

/* ------------------------------------------------------------ 1. now (the opening) */
/* The picture fills the page behind everything; the words sit at the bottom left over a soft shade. The picture takes
   no drags (the camera only leans toward a mouse), so a page swipe can start anywhere on it. */
.opening-stage { position: absolute; inset: 0; }
.opening-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 74%, transparent) 24%, transparent 54%),
              radial-gradient(75% 95% at 0% 70%, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 45%, transparent 78%); }
.opening-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.opening-stage[data-mode] .opening-canvas { opacity: 1; }
.opening-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ring-tag, .plane-tag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: .6875rem; will-change: transform; }
.ring-tag { color: var(--ink-2); opacity: .8; }
.house-tag { color: var(--accent); opacity: 1; font-weight: 500; }
.house-tag span { position: absolute; right: .8rem; top: .35rem; }
.plane-tag { opacity: 0; transition: opacity var(--med); padding: .12rem .5rem; border-radius: var(--r-pill); color: var(--ink-2); background: color-mix(in srgb, var(--bg) 62%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.plane-tag b { color: var(--ink); font-weight: 600; margin-right: .4em; }
.plane-tag.is-on { opacity: 1; }
.plane-tag.is-hover { border-color: var(--line-strong); z-index: 2; }
.scene-opening .scene-inner { z-index: 2; }
.opening-clock { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opening-text { margin-top: auto; display: grid; gap: var(--s-3); width: min(100%, 44rem); }
.hearing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.hearing li { border-top: 1px solid var(--line); }
.hearing a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; min-height: 3.25rem; padding: .3rem 0; border-radius: var(--r-1); transition: background var(--fast); }
.hearing a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.hear-ico { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); background: var(--glass); }
.hearing li[data-kind="sky"] .hear-ico { color: var(--c-sky); } .hearing li[data-kind="sea"] .hear-ico { color: var(--c-sea); } .hearing li[data-kind="yard"] .hear-ico { color: var(--c-yard); } .hearing li[data-kind="radio"] .hear-ico { color: var(--accent); }
.hear-text { display: grid; min-width: 0; }
.hear-main { display: flex; align-items: baseline; gap: .5rem; min-width: 0; line-height: 1.3; }
.hear-label { flex: none; color: var(--ink-2); font-size: var(--t-small); }
.hear-main b { min-width: 0; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hear-sub { font-size: var(--t-tiny); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; min-height: 1.1rem; }
@media (max-width: 720px) {
  .scene-opening .scene-head:has(.feed-note:not([hidden])) .opening-clock { display: none; }      /* no room for both on a phone; offline, the clock says little */
  .hearing { grid-template-columns: 1fr; }
  .hearing a { min-height: var(--tap); padding: .15rem 0; }
  .opening-stage::after { background: linear-gradient(to top, var(--bg) 0%, var(--bg) 38%, color-mix(in srgb, var(--bg) 70%, transparent) 52%, transparent 70%); }
}

/* ------------------------------------------------------------ 2. radio */
.radio { position: absolute; inset: 0; margin: auto; height: min(100%, 31rem); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
.radio-player { position: relative; overflow: hidden; display: grid; grid-template-columns: clamp(9rem, 15vw, 13.5rem) minmax(0, 1fr); gap: var(--s-5) var(--s-6); align-items: center; padding: var(--s-6); isolation: isolate; min-height: 0; }
.radio-glow { position: absolute; inset: -35%; z-index: -1; background-size: cover; background-position: center; filter: blur(64px) saturate(1.25); opacity: .2; pointer-events: none; transition: opacity var(--slow); }
.radio-player[data-playing] .radio-glow { opacity: .34; }
.radio-art { aspect-ratio: 1; border-radius: var(--r-2); overflow: hidden; background: var(--bg-raise); border: 1px solid var(--line); box-shadow: 0 20px 40px -24px var(--shade); }
.radio-art-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity var(--slow) var(--ease), transform 1.4s var(--ease); }
.radio-art-img.is-in { opacity: 1; transform: none; }
.radio-info { display: grid; gap: .3rem; min-width: 0; }
.radio-show { font-size: var(--t-small); color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.radio-by { font-size: var(--t-small); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.radio-prog { display: grid; gap: .3rem; margin-top: var(--s-3); }
.radio-track { height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.radio-track i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.radio-times { display: flex; justify-content: space-between; font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.radio-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.play { display: inline-flex; align-items: center; gap: .8rem; padding: .35rem 1.4rem .35rem .35rem; border-radius: var(--r-pill); background: var(--ink); color: var(--ink-inverse); text-align: left; transition: transform var(--fast) var(--ease), box-shadow var(--med); }
.play:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 10%, transparent); }
.play:active { transform: scale(.97); }
.play-ico { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink-inverse); color: var(--ink); }
.play-ico .ico { fill: currentColor; stroke-width: 1; }
.play[data-busy] .play-ico { animation: breathe 1.2s var(--ease-in-out) infinite; }
.play-text { display: grid; line-height: 1.2; }
.play-label { font-weight: 600; }
.eq { display: none; align-items: flex-end; gap: 2px; height: 14px; margin-left: .2rem; }
.radio-player[data-playing] .eq { display: inline-flex; }
.eq i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq 1.1s var(--ease-in-out) infinite; }
.eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; } .eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; } .eq i:nth-child(4) { animation-duration: .95s; animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes breathe { 50% { transform: scale(.9); opacity: .7; } }
.radio-msg { font-size: var(--t-small); color: var(--ink-2); }
.radio-day { display: grid; gap: var(--s-3); align-content: center; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--glass); min-height: 0; overflow: hidden; }
.radio-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.radio-count { font-size: var(--t-tiny); color: var(--ink-2); }
.ribbon-wrap { position: relative; padding-top: 8px; }
.ribbon { position: relative; height: var(--tap); touch-action: none; }
.slot { position: absolute; top: 0; bottom: 0; padding: 0; }
.slot::before { content: ''; position: absolute; inset: 0 1px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 15%, transparent); transition: background var(--fast), transform var(--med) var(--ease); }
.slot span { display: none; }
.slot:hover::before, .slot[data-picked]::before, .slot:focus-visible::before { background: color-mix(in srgb, var(--ink) 38%, transparent); transform: scaleY(1.08); }
.slot[data-now]::before { background: var(--accent); }
.slot:focus-visible { outline-offset: 1px; z-index: 1; }
.ribbon-now { position: absolute; top: 0; bottom: -4px; width: 1px; background: var(--ink); pointer-events: none; }
.ribbon-now::before { content: ''; position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.ribbon-hours { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--ink-2); }
.ribbon-detail { min-height: 2.9rem; display: grid; align-content: start; font-size: var(--t-small); color: var(--ink-2); line-height: 1.45; }
.ribbon-detail b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-up { display: grid; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.radio-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .1rem var(--s-4); }
.radio-next li { display: grid; grid-template-columns: 3.9rem minmax(0, 1fr); gap: .5rem; padding: .28rem 0; font-size: var(--t-small); color: var(--ink-2); }
.radio-next li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-next time { color: var(--ink-2); }
.radio-streams { display: flex; flex-wrap: wrap; gap: .2rem var(--s-4); }
.radio-streams .link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); }
.table-wrap-text td:last-child { min-width: min(14rem, 45vw); }
/* an upright tablet and phones: the player over the schedule */
@media (max-width: 900px) {
  .radio { height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: var(--s-3); }
}
@media (max-width: 720px) {
  .radio { align-content: start; gap: var(--s-2); }
  .radio-player { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .15rem var(--s-4); padding: var(--s-4); align-items: start; }
  .radio-art { grid-row: 1 / span 3; align-self: center; }
  .radio-info { display: contents; }
  .radio-title { font-size: 1.125rem; }
  .radio-prog, .radio-controls { grid-column: 1 / -1; }
  .radio-prog { margin-top: var(--s-3); }
  .radio-controls { margin-top: var(--s-2); }
  .play { width: 100%; }
  .play-ico { width: 2.75rem; height: 2.75rem; }
  .radio-day { padding: var(--s-4); gap: var(--s-2); align-content: start; }
  .ribbon-detail { min-height: 2.6rem; }
}
@media (max-width: 720px) and (max-height: 800px) { .radio-next li:nth-child(n+4) { display: none; } }

/* 3. sky: part of Now since 14 Nov (css/scene-opening.css: the timeline, the strip, Spotted) */

/* 4. birds: css/scene-birds.css */

/* ------------------------------------------------------------ 5. hikes */
/* One screen, like every page (the frame sizes it). Anything long (trail notes, the data) scrolls inside its own panel.
   Laid out for phones (360 and 390 wide: the map takes the page, two matches in a strip under it, filters in a bottom
   sheet), tablets upright (820: map over a four-row strip) and on their side (1180) and desktops (a short list beside
   the map; an open hike takes the map's place). Every control is at least 44px to a finger; nothing needs a hover.
   The map and a hike's land keep every drag (data-swipe="off", touch-action: none); the elevation chart keeps
   sideways ones; the page swipes from anywhere else. */
.hk-data-btn { min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hk-data-btn .ico, .hike-back .ico, .hk-data-close .ico { color: var(--accent); }
.scene-hikes .seg button { min-height: 2.75rem; }
.scene-hikes .link { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 2.75rem; min-width: 2.75rem; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; background: none; }
.scene-hikes .link:hover { text-decoration-color: var(--accent); }

.scene-hikes .scene-visual.hikes { display: grid; gap: var(--s-3) var(--s-5); grid-template-columns: minmax(19rem, 23rem) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "find main" "chips main" "bar main" "rows main"; }
.hk-find { grid-area: find; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); min-width: 0; }
/* the one count at the left; Zoom out (nothing in view), Clear (nothing matches) or List (phones) at the right */
.hk-bar { grid-area: bar; display: flex; align-items: center; gap: .2rem .8rem; min-height: 2.75rem; min-width: 0; font-size: var(--t-small); color: var(--ink-2); }
.hk-bar .btn { margin-left: auto; min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hk-bar .btn[hidden] { display: none; }
@media (min-width: 1001px) { .hk-bar .hk-list-btn { display: none; } }      /* wide: the list is beside the map */
.hk-bar .btn .ico { color: var(--accent); }
.hk-rows { grid-area: rows; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-self: stretch; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
/* Length, Climb, Time inline, then Filters; a chip's choices drop under the row */
.hk-chips { grid-area: chips; position: relative; min-width: 0; }
.hk-chips-row { display: flex; align-items: center; gap: .35rem; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.hk-chips-row::-webkit-scrollbar { display: none; }
.hk-chips .hk-filter-btn { margin-left: auto; }
.hk-chip { flex: none; display: inline-flex; align-items: center; gap: .2rem; height: 2.75rem; padding: 0 .55rem 0 .75rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.hk-chip > span { overflow: hidden; text-overflow: ellipsis; }
.hk-chip .ico { flex: none; color: var(--ink-3); transition: transform var(--med) var(--ease); }
.hk-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.hk-chip:active { transform: scale(.97); }
.hk-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); color: var(--ink); }
.hk-chip[aria-expanded="true"] .ico { transform: rotate(180deg); }
.hk-chip[aria-pressed="true"]:not([aria-expanded="true"]) .ico { display: none; }      /* a chip that reads its choice drops its arrow: room for the words */
.hk-pop { position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + .4rem); display: flex; flex-wrap: wrap; gap: .35rem; padding: var(--s-2); border-radius: var(--r-3); border: 1px solid var(--line-strong); background: var(--bg-raise); box-shadow: var(--shadow); animation: drop var(--med) var(--ease); }
.hk-pop[hidden] { display: none; }
.hk-main { grid-area: main; position: relative; min-width: 0; min-height: 0; display: grid; }
.hike-search { display: flex; align-items: center; gap: .55rem; height: 2.75rem; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-3); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast); }
.hike-search:focus-within { border-color: var(--accent); color: var(--ink-2); }
.hike-q { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; }
.hike-q::placeholder { color: var(--ink-3); opacity: 1; }
.hike-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.pick { position: relative; flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 2.75rem; padding: 0 1rem 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink); cursor: pointer; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.pick:hover { border-color: var(--line-strong); }
.pick:active { transform: scale(.97); }
.pick .ico { color: var(--ink-3); }
.pick-n { min-width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--t-tiny); font-weight: 600; }
.hikes-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hike-zoom button[disabled] { opacity: .3; cursor: default; }
.hike-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; height: 58px; align-content: center; padding: 0 .55rem; border-bottom: 1px solid var(--line); transition: background var(--fast), padding-left var(--med) var(--ease); }
.hike-row:hover, .hike-row:focus-visible, .hike-row[aria-current] { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.hike-row[aria-current] { box-shadow: inset 2px 0 0 var(--accent); }
.hike-row:focus-visible { outline-offset: -2px; }
.hr-main { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.hr-name { flex: 0 1 auto; min-width: 0; color: var(--ink); font-weight: 500; font-size: .9375rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-where { flex: 1 1 0; min-width: 0; font-size: var(--t-tiny); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-nums { display: flex; gap: .9rem; font-size: var(--t-tiny); color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.hr-num b { color: var(--ink-2); font-weight: 500; font-size: var(--t-small); }

/* the map */
.hk-map { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); justify-items: start; }
.hikes-areas { padding: 3px; max-width: 100%; }
.hikes-areas button { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hikes-map-frame { position: relative; width: 100%; min-height: 0; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: var(--map-water); box-shadow: var(--shadow); }
.hikes-map-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.hikes-map-cv:focus-visible { outline-offset: -4px; border-radius: var(--r-3); }
.hikes-map-tip { position: absolute; z-index: 2; translate: -50% calc(-100% - 16px); max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .25rem .65rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); font-size: var(--t-tiny); color: var(--ink); pointer-events: none; }
.hikes-map-tip.is-below { translate: -50% 16px; }
.hikes-map-frame .hike-zoom { position: absolute; right: var(--s-3); top: var(--s-3); }
.hike-zoom { display: inline-flex; flex-direction: column; padding: 3px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.hike-zoom button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.hike-zoom button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.hike-zoom button:active { transform: scale(.9); }

/* filters: chips in a sheet */
.hikes-sheet { width: min(36rem, calc(100vw - 2 * var(--gutter))); max-height: min(46rem, 92dvh); padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--bg-raise); color: var(--ink); overflow-y: auto; box-shadow: var(--shadow); }
.hikes-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s-3); overflow: hidden; animation: drop var(--med) var(--ease); }
.hikes-sheet::backdrop { background: var(--shade); }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.sheet-head h4 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.sheet-count { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sheet-body { display: grid; gap: var(--s-2); min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding: 2px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.chip-group { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .3rem var(--s-3); align-items: start; }
.chip-label { padding-top: .8rem; font-size: var(--t-small); color: var(--ink-3); }
.chip-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-btn { min-height: 2.75rem; padding: 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.chip-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.chip-btn:active { transform: scale(.96); }
.chip-btn[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); color: var(--ink); }
.sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2); }
/* the list as a sheet (phones, upright tablets): half the screen, every match in view, × closes it */
.hk-list-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; height: min(50dvh, 34rem); max-height: none; margin: 0; padding: var(--s-3) max(var(--gutter), env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(var(--gutter), env(safe-area-inset-left, 0px)); border: 0; border-top: 1px solid var(--line-strong); border-radius: var(--r-3) var(--r-3) 0 0; background: var(--bg-raise); color: var(--ink); box-shadow: 0 -24px 60px -30px var(--shade); overflow: hidden; }
.hk-list-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); animation: sheet-up var(--med) var(--ease); }
.hk-list-sheet::backdrop { background: color-mix(in srgb, var(--shade) 55%, transparent); }
.hk-list-sheet .sheet-head { align-items: center; }
.hk-list-sheet .sheet-head h4 { font-size: var(--t-small); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hk-list-close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: color var(--fast), background var(--fast); }
.hk-list-close:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.hk-list-rows { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); padding-bottom: var(--s-3); }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }

/* one hike */
.hike { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(8rem, 1fr) auto auto clamp(10rem, 28%, 15rem); gap: var(--s-2); }
.hike-head { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.hike-back { flex: none; min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hike-title { flex: 1 1 auto; min-width: 0; display: grid; }
.hike-go { flex: none; min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hike-go .ico { color: var(--accent); }
.hike-name { font-size: clamp(1.125rem, .95rem + .9vw, 1.625rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hike-name:focus-visible { outline: none; }
.hike-where { color: var(--ink-3); font-size: var(--t-tiny); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hike-stagebox { position: relative; min-height: 0; border-radius: var(--r-3); border: 1px solid var(--line); overflow: hidden; background: radial-gradient(110% 80% at 50% 8%, color-mix(in srgb, var(--ink) 6%, transparent), transparent 72%), var(--glass); box-shadow: var(--shadow); }
.hike-stage { position: absolute; inset: 0; }
.hike-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; opacity: 0; transition: opacity 1.1s var(--ease); }
.hike-stage[data-mode] .hike-canvas { opacity: 1; }
.hike-canvas.is-drag { cursor: grabbing; }
.hike-canvas:focus-visible { outline-offset: -5px; border-radius: var(--r-3); }
.hike-flatbox { position: absolute; inset: var(--s-3); display: grid; place-items: center; }
.hike-flatwrap { position: relative; line-height: 0; }
.hike-canvas.hike-flat { position: static; width: auto; height: auto; max-width: 100%; border-radius: var(--r-2); cursor: default; touch-action: auto; border: 1px solid var(--line); }
.hike-mark { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); pointer-events: none; }
.hike-tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hike-tag { position: absolute; left: 0; top: 0; margin: -1.75rem 0 0 .45rem; white-space: nowrap; font-size: .6875rem; line-height: 1.5; padding: .05rem .5rem; border-radius: var(--r-pill); color: var(--ink-2); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--med); will-change: transform; }
.hike-tag.is-on { opacity: 1; }
.hike-tag.is-left { margin-left: 0; translate: calc(-100% - .45rem) 0; }
.hike-tag.is-under { margin-top: .7rem; }
.hike-tag.is-key { color: var(--ink); font-weight: 500; }
.hike-tag.is-spot { z-index: 2; color: var(--accent-ink); background: var(--accent); border-color: transparent; font-weight: 600; font-variant-numeric: tabular-nums; }
.hike-tags[data-photo] .hike-tag { color: var(--paper); background: color-mix(in srgb, var(--on-photo-shade) 72%, transparent); border-color: color-mix(in srgb, var(--paper) 24%, transparent); }
.hike-tags[data-photo] .hike-tag.is-spot { color: var(--on-photo-shade); background: var(--on-photo); border-color: transparent; }
.hike-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: var(--t-small); }
.hike-tools { position: absolute; inset: var(--s-2) var(--s-2) auto; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); pointer-events: none; }
.hike-tools > * { pointer-events: auto; }
.hike-tools .hike-zoom { margin-left: auto; }
.hike-scale { position: absolute; left: var(--s-3); bottom: var(--s-3); padding: .15rem .6rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; pointer-events: none; }
.hike-tabs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); min-width: 0; }
.hike-tabs button { flex: 1 1 0; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .3rem; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--fast), background var(--med) var(--ease); }
.hike-tabs button:hover { color: var(--ink); }
.hike-tabs button[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 12%, transparent); }
.hike-panel { min-height: 0; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass); overflow: hidden; }
.hike-pane { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-3) var(--s-4); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.hike-pane h4 { margin: var(--s-4) 0 var(--s-2); font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.hike-stats { grid-template-columns: repeat(auto-fit, minmax(7.2rem, 1fr)); gap: var(--s-2); }
.hike-stats .stat { padding: var(--s-2) var(--s-3); }
.hike-stats .stat-label { order: -1; font-size: var(--t-tiny); color: var(--ink-3); }
.hike-stats .stat-num { font-size: clamp(1.125rem, .95rem + .7vw, 1.5rem); white-space: nowrap; }
.hike-stats .stat-sub { min-height: 1.05rem; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-body { display: grid; gap: .7rem; font-size: var(--t-small); color: var(--ink-2); line-height: 1.65; max-width: 46rem; }
.hike-small { font-size: var(--t-tiny); color: var(--ink-3); line-height: 1.6; }
.hike-small .ico { display: inline-block; }
.hike-credit { margin-top: var(--s-2); font-size: var(--t-tiny); color: var(--ink-3); line-height: 1.6; }
.hike-credit a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
.expects li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .1rem var(--s-3); padding: .6rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.expects li:first-child, .notes li:first-child, .peaks li:first-child { border-top: 0; }
.ex-label { color: var(--ink-3); }
.ex-value { color: var(--ink); font-weight: 600; }
.ex-quote { grid-column: 2; color: var(--ink-2); font-size: var(--t-tiny); line-height: 1.55; quotes: "\201c" "\201d"; }
.hike-profile { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .35rem; }
.hike-read { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hike-read b { color: var(--ink); font-weight: 600; }
.hike-plot { min-height: 3.5rem; }
.hike-ft { position: absolute; left: 0; translate: 0 -100%; padding: 0 .15rem 1px; font-size: .6875rem; line-height: 1.2; color: var(--ink-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.hike-topdot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bg-raise); border: 1.5px solid var(--accent); pointer-events: none; }
.notes li, .peaks li { border-top: 1px solid var(--line); }
.note { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr); gap: .75rem; width: 100%; min-height: 2.75rem; text-align: left; padding: .68rem .35rem; border-radius: var(--r-1); font-size: var(--t-small); color: var(--ink-2); line-height: 1.5; transition: background var(--fast); }
.note:hover, .peak:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.note-at { padding-top: .16rem; color: var(--accent); font-weight: 600; font-size: var(--t-tiny); font-variant-numeric: tabular-nums; }
.note b { color: var(--ink); }
.peak { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr) auto; gap: 0 .65rem; align-items: center; width: 100%; min-height: 2.75rem; text-align: left; padding: .5rem .35rem; border-radius: var(--r-1); font-size: var(--t-small); transition: background var(--fast); }
.peak .ico { grid-row: span 2; color: var(--ink-3); }
.peak-name { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peak-ft { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.peak-note { grid-column: 2 / -1; font-size: var(--t-tiny); color: var(--ink-3); }
.hike-save { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3) var(--s-5); }
.save-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.save-btns .btn { min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.save-btns .btn .ico { color: var(--accent); }
.save-qr { display: flex; align-items: flex-end; gap: var(--s-3); font-size: var(--t-tiny); color: var(--ink-3); }
.save-code { display: block; width: 6.25rem; height: 6.25rem; border-radius: var(--r-1); overflow: hidden; background: var(--paper); }
.save-code svg { width: 100%; height: 100%; }
.save-said { flex-basis: 100%; font-size: var(--t-tiny); color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.save-said:empty { display: none; }
.hike-print { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; }

/* data: a panel laid over the page */
.hk-data { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-3); border: 1px solid var(--line-strong); background: var(--bg-raise); box-shadow: var(--shadow); animation: drop var(--med) var(--ease); }
.hk-data-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.hk-data-head h3 { font-size: 1.125rem; }
.hk-data-close { min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hk-data-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-content: start; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.hike-scatter { height: clamp(14rem, 28vw, 22rem); border-left: 1px solid var(--line-strong); }
/* a row of the block names at the top of the panel; a tap brings that block up */
.hk-jump { display: flex; gap: .35rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--s-1)); padding: 0 var(--s-1); }
.hk-jump::-webkit-scrollbar { display: none; }
.hk-jump .chip-btn { flex: none; }
/* records: a hike each, a tap opens it */
.hk-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s-2); }
.hk-rec { width: 100%; min-height: 2.75rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem var(--s-3); align-items: baseline; text-align: left; padding: .6rem .8rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass); transition: border-color var(--fast), background var(--fast); }
.hk-rec:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.hk-rec-k { grid-column: 1 / -1; font-size: var(--t-tiny); color: var(--ink-3); }
.hk-rec-name { min-width: 0; color: var(--ink); font-weight: 500; font-size: var(--t-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-rec-v { color: var(--ink-2); font-weight: 600; font-size: var(--t-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scatter-svg .sdot { fill: var(--c-sea); opacity: .6; }
.scatter-svg .sdot.is-here { fill: var(--accent); opacity: 1; }
.scatter-ring, .scatter-here { position: absolute; left: 0; top: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; pointer-events: none; }
.scatter-ring { border: 1.5px solid var(--ink); }
.scatter-here { width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; border: 2px solid var(--accent); background: var(--accent-soft); }
.scatter-tag { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 14px); max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .12rem .55rem; border-radius: var(--r-pill); font-size: var(--t-tiny); font-weight: 500; color: var(--accent-ink); background: var(--accent); pointer-events: none; }
.scatter-tag.is-below { translate: -50% 14px; }
.axis-name, .data-block p.axis-name { font-size: .6875rem; line-height: 1.3; color: var(--ink-3); max-width: none; }
.axis-name.axis-x { text-align: right; }

/* phones and upright tablets: the map takes the page with a short strip of matches under it; an open hike takes over */
@media (max-width: 1000px) {
  .scene-hikes .scene-visual.hikes { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .scene-hikes .scene-visual.hikes { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "find" "chips" "main" "bar"; }
  .hk-rows { display: none; }
  .hikes[data-open] > .hk-find, .hikes[data-open] > .hk-chips, .hikes[data-open] > .hk-bar { display: none; }
  .hikes[data-open] { grid-template-rows: minmax(0, 1fr); grid-template-areas: "main"; }
  .hike { grid-template-rows: auto minmax(8rem, 1fr) auto auto clamp(11.5rem, 36%, 22rem); }
}
@media (max-width: 720px) {
  .hikes-map-frame, .hike-stagebox, .hike-panel { border-radius: var(--r-2); }
  .hikes-areas { width: 100%; }
  .hikes-areas button { flex: 1 1 auto; padding: 0 .35rem; font-size: .8125rem; }
  .hike-row { height: 54px; padding: 0 .25rem; }
  .hike { grid-template-rows: auto minmax(8rem, 1fr) auto auto clamp(9.5rem, 30%, 22rem); }
  .hike-head { gap: var(--s-2); }
  .hike-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .hr-rate .hr-k { display: inline; }
  .hikes-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0; padding: var(--s-4) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); border: 0; border-top: 1px solid var(--line-strong); border-radius: var(--r-3) var(--r-3) 0 0; box-shadow: 0 -24px 60px -30px var(--shade); }
  .hikes-sheet[open] { animation: sheet-up var(--med) var(--ease); }
  .chip-group { grid-template-columns: minmax(0, 1fr); }
  .chip-label { padding-top: 0; }
  .hike-tabs { gap: 0; }
  .hike-tabs button { flex: 1 1 auto; font-size: .78125rem; padding: 0 .2rem; }
  .hike-pane { padding: var(--s-3); }
  .expects li { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .hk-data { padding: var(--s-3); border-radius: var(--r-2); }
  .save-btns .btn { flex: 1 1 8rem; }
}
.hr-k { display: none; }
/* the smallest phones (320 and 360 wide): the chip row and the area buttons still fit side by side */
@media (max-width: 380px) {
  .hk-chips-row { gap: .25rem; }
  .hk-chip { padding: 0 .4rem 0 .6rem; gap: .15rem; font-size: .8125rem; }
  .hk-chips .pick { padding: 0 .7rem; font-size: .8125rem; gap: .3rem; }
  .hk-chips .pick .ico { display: none; }
  .hikes-areas button { padding: 0 .2rem; font-size: .78125rem; }
}
/* a short phone (568 to 700 high): the land keeps its share; the + − tilt stack lies across its top instead of down its side */
@media (max-width: 720px) and (max-height: 700px) {
  .hike { grid-template-rows: auto minmax(7rem, 1fr) auto auto clamp(6.5rem, 24%, 22rem); }
  .hike-where { display: none; }
  .hike-tools .hike-zoom { flex-direction: row; }
}

/* ------------------------------------------------------------ placeholders (6-10) */
/* A page that is not built yet: its title (in the page's title row) and one quiet line drawing. No words. */
.soon { position: absolute; inset: 0; display: grid; place-items: center; }
.soon-art { width: min(100%, 40rem); max-height: 100%; height: auto; color: var(--ink-3); overflow: visible; }
.soon-art .ln { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 250ms); }
.scene[data-seen] .soon-art .ln { stroke-dashoffset: 0; }
.soon-art .thin { stroke-width: 1; opacity: .55; }
.soon-art .hi { stroke: var(--accent); }
.soon-art .dash { stroke-dasharray: .014 .022; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.scene[data-seen] .soon-art .dash { opacity: 1; }
.soon-art .nd { fill: var(--bg); stroke: currentColor; stroke-width: 1.25; }
.soon-art .pt { fill: var(--accent); stroke: none; }

/* 11. machine room: css/scene-machine.css */

/* ------------------------------------------------------------ 12. cities */
.cities { position: absolute; inset: 0; margin: auto; height: min(100%, 36rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.city { display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; min-height: 0; }
.city-map { min-height: 0; border-bottom: 1px solid var(--line); background: radial-gradient(80% 80% at 50% 50%, color-mix(in srgb, var(--ink) 4%, transparent), transparent); }
.city-dots { width: 100%; height: 100%; }
.city-text { padding: var(--s-4) var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem var(--s-4); align-items: center; }
.city-text h3 { font-family: var(--font-title); font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.city-count { grid-column: 1; color: var(--ink-2); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.city-kinds { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0 var(--s-3); font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.city-go { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: 0 1rem 0 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink); font-weight: 500; font-size: var(--t-small); }
.city-go .ico { color: var(--accent); transition: transform var(--med) var(--ease); }
.city:hover .city-go .ico { transform: translate(2px, -2px); }
/* an upright tablet and phones: one card over the other */
@media (max-width: 900px) { .cities { height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
@media (max-width: 720px) { .cities { gap: var(--s-2); } .city-text { padding: var(--s-3) var(--s-4); } .city-text h3 { font-size: 1.25rem; } }


/* hikes: the trail on the real map (a third surface of the open hike), and the row that gets you there */
.hike-route { position: absolute; inset: 0; }
.hike-route[hidden], .hike-stage[hidden] { display: none; }
.hike-routezoom { margin-left: auto; }
.hike-routezoom[hidden] { display: none; }
.hike-actions { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; margin-top: var(--s-3); }
.hike-ll { font-size: var(--t-small); color: var(--ink-3); }
.hike-ll b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* now: the picture as the real map (js/now-map.js). The map takes drags; the page swipes from the title row and the words. */
.now-map { position: absolute; inset: 0; }
.now-over, .now-solid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }      /* .now-solid: the craft as 3D models, under the 2D canvas (round 27) */      /* under the page's shade, like the map */
.scene-opening.has-map .scene-inner { pointer-events: none; }
.scene-opening.has-map .scene-head, .scene-opening.has-map .opening-text { pointer-events: auto; }
.scene-opening.has-map .now-map .rmap-credit { z-index: 3; right: max(var(--gutter), var(--safe-r)); bottom: max(var(--s-3), var(--safe-b)); }
@media (max-width: 899px), (max-aspect-ratio: 9 / 10) { .scene-opening.has-map .now-map .rmap-credit { bottom: calc(var(--now-text, 40%) + max(var(--s-3), var(--safe-b)) + var(--s-2)); } }      /* where the words fill the bottom edge (phones, upright tablets) the credit stands at the right just over them (round 22: it was under the title) */
.now-zoom { position: absolute; z-index: 3; right: max(var(--gutter), var(--safe-r)); top: calc(var(--now-top, 6rem) + var(--s-2)); }
.now-zoom.is-row { flex-direction: row; } .now-zoom.is-tight { visibility: hidden; }      /* Now: where a column of buttons would lie on the chart under the map (js/now-map.js pad) */
/* the Data panel lies over the page: the map's buttons and its credit, which stand over the page too, step back while it is open */
.scene-opening:has(.data-panel:not([hidden])) .now-zoom, .scene-opening:has(.data-panel:not([hidden])) .now-map .rmap-credit { display: none; }
.now-card { position: absolute; z-index: 3; top: calc(var(--now-top, 6rem) + var(--s-2)); right: calc(max(var(--gutter), var(--safe-r)) + 3.75rem); width: min(19rem, calc(100% - 2 * var(--gutter) - 3.75rem));
  padding: var(--s-3) var(--s-4) var(--s-3); border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow); }
.now-card[hidden] { display: none; }
.nc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); }
.nc-head h3 { font-size: var(--t-body); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-ico { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.nc-ico[data-kind="sky"] { color: var(--c-sky); } .nc-ico[data-kind="sea"] { color: var(--c-sea); }
.nc-close { width: var(--tap); height: var(--tap); margin: -.4rem -.6rem -.4rem 0; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.nc-close:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.nc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem var(--s-4); margin-top: var(--s-2); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.nc-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); min-width: 0; border-top: 1px solid var(--line); padding: .22rem 0; }
.nc-wide { grid-column: 1 / -1; }
.nc-k { color: var(--ink-3); font-size: var(--t-tiny); white-space: nowrap; }
.nc-v { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.nc-link { min-height: var(--tap); }
.opening-text > .now-card { position: static; width: auto; padding: var(--s-2) var(--s-3); }
.opening-text > .now-card .nc-links { flex-wrap: nowrap; }
.opening-text > .now-card .nc-link { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: .6rem; }
/* the title row lies over the map: a shade under it, so the map's own names do not run through the title */
.scene-opening.has-map .opening-stage::before { content: ''; position: absolute; inset: 0 0 auto 0; height: calc(var(--now-top, 6rem) + 3rem); z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 38%, color-mix(in srgb, var(--bg) 95%, transparent) 60%, color-mix(in srgb, var(--bg) 68%, transparent) 78%, transparent 100%); }
/* with the real map the shade is only where the words are: on wide screens the lower left, on phones a band as tall as the words */
.scene-opening.has-map .opening-stage::after { background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 14%, transparent 34%),
  radial-gradient(58% 62% at 0% 92%, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 46%, transparent 76%); }
@media (max-width: 720px), (max-aspect-ratio: 9 / 10) {
  .scene-opening.has-map .opening-stage::after { background: linear-gradient(to top, var(--bg) 0, var(--bg) calc(var(--now-text, 40%) + 1.25rem), color-mix(in srgb, var(--bg) 60%, transparent) calc(var(--now-text, 40%) + 3rem), transparent calc(var(--now-text, 40%) + 6rem)); }
}
/* a phone with a card open: the two rows about the sky and the water stay, the bird and the radio wait under the card */
.scene-opening.card-in-text .hearing li[data-kind="yard"], .scene-opening.card-in-text .hearing li[data-kind="radio"] { display: none; }
/* a craft's outline as a small picture (js/craft.js): a card's corner */
.key-craft { display: inline-grid; place-items: center; width: 1rem; height: 1rem; }
.craft-ico { display: block; }
/* Now, a small landscape window: the words at the lower left stand on a soft patch of the page's colour, so no name of the
   map runs under them (from 900px wide the words are a card of their own: css/scene-opening.css) */
@media (min-width: 721px) and (max-width: 899px) and (min-aspect-ratio: 9 / 10) {
  .scene-opening.has-map .opening-text { position: relative; isolation: isolate; }
  .scene-opening.has-map .opening-text::before { content: ''; position: absolute; z-index: -1; inset: -1.4rem 0 0 -2.6rem; border-radius: 2.5rem; background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 1rem .6rem 0 1.2rem color-mix(in srgb, var(--bg) 90%, transparent); filter: blur(14px); pointer-events: none; }      /* right and down the patch is a shadow, not a box: a box past those edges would count as content the words hide (and could be scrolled to) */
}
