/* "go deeper": what this page adds to css/site.css. Everything else (bar, pinned stages, buttons, touch cursors,
   fallbacks) comes from the home page's sheet unchanged. */

/* Each stop's words sit in a left column, the station to the right of them */
.deeper .stage .content { max-width: 31rem; }
.deeper .stage h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
.deeper .stage-hero h1 { font-size: clamp(3.2rem, 7.4vw, 7rem); }
.deeper .stage-hero .lead { max-width: 24em; }
.deeper .kicker { margin-bottom: 0.8em; font-variant-numeric: tabular-nums; }
.deeper .stage p { font-size: clamp(1.02rem, 1.3vw, 1.18rem); }
.deeper .stage .lead { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
.deeper .quote { color: var(--cyan); font-weight: 550; }

/* the parts that travel with a stop: name and number on one line, what it is below */
.also { margin: 1.3em 0 0; padding: 0; display: grid; gap: 0.85em; }
.also > div { padding-left: 14px; border-left: 1px solid rgba(127, 227, 255, 0.4); }
.also dt { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.also dt .n { margin-left: 0.6em; letter-spacing: 0.04em; text-transform: none; color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.also dd { margin: 0.25em 0 0; font-size: clamp(0.92rem, 1.1vw, 1.02rem); line-height: 1.45; color: var(--soft); text-wrap: pretty; }

/* the close: the owner's line and the two links, low and centred under the whole shaft */
.stage-final { align-items: end; padding-bottom: 5vh; }
.deeper .stage-final .content { max-width: 74rem; }
.deeper .stage-final .close-name { font-size: clamp(1.15rem, 1.65vw, 1.6rem); line-height: 1.3; letter-spacing: -0.015em; max-width: 64em; }
.deeper .stage-final .close-name span { display: block; }
.deeper .stage-final .actions { margin-top: 1.1em; }
.stage-final .actions { justify-content: center; }

/* labels pinned to the stations: a size smaller than the home page's, since a station carries several */
.deeper .pin { font-size: 15px; font-weight: 600; padding: 2px 8px 4px; }


/* the notice at the top of the first stop: calm, read first */
.notice { display: inline-block; margin: 0 0 1.6em; padding: 7px 14px 8px; border-radius: 10px; font-size: clamp(0.92rem, 1.05vw, 1rem) !important; line-height: 1.4; color: var(--ink) !important;
  background: rgba(127, 227, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(127, 227, 255, 0.32); }
.deeper .sub { color: var(--soft); }
/* short lists from the facts sheet */
.pts { margin: 0.3em 0 0; padding-left: 1.05em; display: grid; gap: 0.35em; }
.pts li::marker { color: var(--amber); }
.also dd .pts { margin-top: 0.4em; }
.folders { list-style: none; margin: 1em 0 0; padding: 0 0 0 14px; border-left: 1px solid rgba(127, 227, 255, 0.4); display: grid; gap: 0.3em; font-size: clamp(0.95rem, 1.15vw, 1.08rem); color: var(--soft); }
.folders li::first-line { color: var(--ink); }

/* the router: a longer stop; the five tiers listed, the one the request has reached opened */
.deeper .stage-router .content { max-width: 34rem; }
.tiers { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 4px; }
.tiers li { position: relative; padding: 6px 10px 6px 42px; border-radius: 9px; color: var(--soft); transition: background 0.35s ease, color 0.35s ease; }
.tiers li b { font-weight: 650; font-size: 1.02rem; }
.tiers .tn { position: absolute; left: 10px; top: 5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(127, 227, 255, 0.5); font-variant-numeric: tabular-nums; }
.tiers dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease; }
.tiers dt { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); padding-top: 0.25em; white-space: nowrap; }
.tiers dd { margin: 0; font-size: 0.95rem; line-height: 1.4; color: var(--ink); }
.tiers li.past { color: var(--ink); }
.tiers li.past .tn { color: #05070d; background: var(--cyan); }
.tiers li.on { background: rgba(127, 227, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 182, 92, 0.45); color: var(--ink); }
.tiers li.on .tn { color: #05070d; background: var(--amber); box-shadow: none; }
.tiers li.on dl { max-height: 9em; opacity: 1; margin-top: 6px; }
.deeper .stage .rule { font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--ink); margin-top: 0; }
.rules { margin-top: 1em; color: var(--soft); font-size: clamp(0.98rem, 1.2vw, 1.1rem); }
.stage-router2 .also { margin-top: 1.1em; }
html:not(.pinned) .tiers dl { max-height: none; opacity: 1; margin-top: 6px; } /* a still page shows every tier in full */

/* the progress rail: one tick per stop, placed by the script */
.drail { position: fixed; z-index: 2; right: calc(var(--pad) * 0.5 - 4px); top: 50%; height: 220px; width: 9px; margin-top: -110px; pointer-events: none; }
.drail::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: rgba(127, 227, 255, 0.28); }
.drail i { position: absolute; left: 2px; width: 5px; height: 1px; background: rgba(127, 227, 255, 0.7); }
.drail b { position: absolute; left: 1px; top: calc(var(--p, 0) * 100%); width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px 2px rgba(255, 182, 92, 0.7); }
.no-webgl .drail, html:not(.pinned) .drail { display: none; }
html:not(.pinned) .deeper .pins, html:not(.pinned) body.deeper .pins { display: none; } /* the still page: no scene labels behind the words */

/* the current page in the top bar */
.bar nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 760px) {
  .deeper .stage { padding-bottom: 5svh; }
  .deeper .stage .content { max-width: none; }
  .deeper .stage h2 { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
  .deeper .stage-hero { padding-bottom: 14svh; }
  .deeper .stage-hero h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .deeper .stage p { font-size: 0.98rem; line-height: 1.42; margin-top: 0.6em; }
  .deeper .stage .lead { font-size: 1.1rem; }
  .deeper .kicker { margin-bottom: 0.5em; font-size: 0.92rem; }
  .also { margin-top: 0.8em; gap: 0.55em; }
  .also dt { font-size: 0.72rem; }
  .also dd { font-size: 0.86rem; line-height: 1.38; }
  .deeper .pin { font-size: 12px; padding: 1px 5px 2px; }
  .stage-final { align-items: end; padding-bottom: 7svh; }
  .deeper .stage-final .close-name { font-size: 1.12rem; }
  .deeper .stage-final .close-name span { display: inline; }
  .drail { display: none; }
  .notice { margin-bottom: 1em; }
  .folders { font-size: 0.86rem; margin-top: 0.6em; }
  .pts { font-size: 0.86rem; }
  .tiers li { padding: 3px 8px 3px 36px; } .tiers .tn { left: 8px; top: 3px; width: 20px; height: 20px; }
  .tiers li b { font-size: 0.92rem; } .tiers dd { font-size: 0.84rem; }
}

@media (max-height: 540px) and (min-width: 761px) {
  /* a phone on its side: little height, so the words get a wider column, smaller type and two-column lists */
  .deeper .stage { padding-top: 56px; padding-bottom: 10px; }
  .deeper .stage .content { max-width: 50vw; }
  .deeper .stage-router .content { max-width: 56vw; }
  .deeper .stage-hero .content { max-width: 46vw; }
  .deeper .stage h2 { font-size: min(3.4vw, 7.4vh); }
  .deeper .stage-hero h1 { font-size: min(6vw, 14vh); }
  .deeper .stage p { font-size: 0.8rem; line-height: 1.35; margin-top: 0.45em; }
  .deeper .stage .lead, .deeper .stage .rule { font-size: 0.92rem; }
  .notice { margin-bottom: 0.7em; padding: 4px 10px 5px; font-size: 0.78rem !important; }
  .also { margin-top: 0.5em; gap: 0.35em; }
  .also dt { font-size: 0.64rem; }
  .also dd, .pts, .rules { font-size: 0.72rem; line-height: 1.32; }
  .pts { gap: 0.15em; }
  .folders { columns: 2; column-gap: 18px; font-size: 0.72rem; margin-top: 0.5em; gap: 0; }
  .folders li { break-inside: avoid; margin-bottom: 0.25em; }
  .tiers { margin-top: 0.5em; gap: 1px; }
  .tiers li { padding: 2px 8px 2px 32px; } .tiers .tn { left: 7px; top: 2px; width: 18px; height: 18px; font-size: 0.7rem; }
  .tiers li b { font-size: 0.8rem; } .tiers dd { font-size: 0.72rem; line-height: 1.3; } .tiers dt { font-size: 0.6rem; }
  .tiers li.on dl { margin-top: 3px; }
  .deeper .pin { font-size: 11px; }
  .stage-final { padding-bottom: 4vh; }
}
