/* The Dive — shared visual language.
 *
 * Lifted from index.html so every page of the platform feels like the same
 * water: near-black ground, one hairline, a serif for prose, a wide-tracked
 * sans for instruments. The hush is the brand. Do not add chrome.
 */

:root{
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ink: 232, 243, 250;
  --abyss: #04070d;
  --rule: rgba(232,243,250,.14);
  --dim: rgba(232,243,250,.72);
  --dimmer: rgba(232,243,250,.62);
}

*{ box-sizing: border-box; }

html{ background: var(--abyss); -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--abyss);
  color: rgba(var(--ink), .9);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: rgba(var(--ink), .92); text-decoration: none; border-bottom: 1px solid rgba(232,243,250,.22); }
a:hover{ border-bottom-color: rgba(232,243,250,.7); }

/* ---------------------------------------------------------- structure */

.wrap{ width: min(880px, 90vw); margin: 0 auto; }
.wrap-wide{ width: min(1180px, 92vw); margin: 0 auto; }

.masthead{
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(4,7,13,.97) 0%,
              rgba(4,7,13,.95) 82%, rgba(4,7,13,.72) 93%, rgba(4,7,13,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 0 26px;
}
.masthead-inner{ display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.brand{
  font-family: var(--serif); font-size: 1.28rem; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(var(--ink), .95); border: 0;
}
.nav{ display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.nav a{
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--dim); border: 0; padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.on{ color: rgba(var(--ink), .95); border-bottom-color: rgba(232,243,250,.5); }

main{ padding: 30px 0 140px; }

/* ------------------------------------------------------------ headings */

.eyebrow{
  font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--dimmer); margin: 0 0 1.6em;
}
h1, .h1{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.1;
  letter-spacing: .04em; margin: 0 0 .5em; color: rgba(var(--ink), .96);
}
h2, .h2{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.25;
  letter-spacing: .05em; margin: 2.6em 0 1em; color: rgba(var(--ink), .92);
}
h3, .label-h{
  font-family: var(--sans); font-weight: 400; font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--dim); margin: 2.2em 0 1em;
}
.section-rule{ height: 1px; background: var(--rule); border: 0; margin: 3.4em 0 0; }

p{ margin: 0 0 1.2em; }
.prose{ font-family: var(--serif); font-size: clamp(1.05rem, 2.4vw, 1.28rem); line-height: 1.72; }
.prose p{ margin: 0 0 1.4em; }
.lede{ font-family: var(--serif); font-size: clamp(1.15rem, 2.8vw, 1.5rem); line-height: 1.62; color: rgba(var(--ink), .82); }
.quiet{ color: var(--dim); }
.small{ font-size: .85rem; }
.tiny{ font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--dimmer); }

/* ------------------------------------------------------------- instruments */

.vitals{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin: 2.4em 0 0;
}
.vital{ background: var(--abyss); padding: 18px 16px 16px; }
.vital .k{ font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--dimmer); }
.vital .v{
  font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 200;
  font-variant-numeric: tabular-nums; margin-top: .5em; color: rgba(var(--ink), .95);
}
.vital .v small{ font-size: .5em; letter-spacing: .14em; opacity: .55; margin-left: .35em; }

/* --------------------------------------------------------------- cards */

.card{
  border: 1px solid var(--rule); padding: 24px 24px 20px; margin: 0 0 14px;
  background: rgba(255,255,255,.012);
}
/* A card title is h3 under an h2 section and h4 under an h3 one, so the
   outline a screen reader reads matches the one you can see. Both get the
   same face — the level is structure, not size. The bare `h3` rule above is
   the small uppercase label, and it only applies outside a card. */
.card h3, .card h4{
  font-family: var(--serif); font-weight: 400; font-size: 1.3rem;
  text-transform: none; letter-spacing: .02em;
  margin: 0 0 .5em; color: rgba(var(--ink), .95);
}
.card .type{
  font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--dimmer); margin-bottom: 1.2em;
}
.card .band{ font-variant-numeric: tabular-nums; }
.grid{ display: grid; gap: 14px; }
.grid-2{ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.links-inline{ display: flex; flex-wrap: wrap; gap: 18px; margin-top: 1.2em; }
.links-inline a{
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(var(--ink), .7); border-bottom: 1px solid rgba(232,243,250,.25);
}

.sources{ margin-top: 1.4em; font-size: .8rem; color: var(--dimmer); }
.sources a{ color: var(--dim); border-bottom-color: rgba(232,243,250,.18); }

.todo{
  border-left: 2px solid rgba(255,196,120,.5); padding: 10px 0 10px 14px;
  margin: 1.4em 0 0; font-size: .85rem; color: rgba(255,214,160,.72);
}
.todo b{ font-weight: 400; letter-spacing: .2em; text-transform: uppercase; font-size: 9px; }

/* --------------------------------------------------------------- buttons */

.btn{
  display: inline-block; appearance: none; cursor: pointer;
  border: 1px solid rgba(var(--ink), .3); background: rgba(255,255,255,.02);
  color: rgba(var(--ink), .86); font-family: var(--sans); font-weight: 300;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  padding: 13px 22px 12px; border-radius: 2px; transition: border-color .3s, color .3s;
}
.btn:hover{ border-color: rgba(var(--ink), .65); color: #fff; }
.btn[disabled]{ opacity: .35; cursor: not-allowed; }
.btn-quiet{ border-color: rgba(var(--ink), .16); color: var(--dim); }

input[type=text], input[type=email], input[type=number], textarea, select{
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--rule); color: rgba(var(--ink), .95);
  font-family: var(--sans); font-weight: 300; font-size: .95rem;
  padding: 12px 14px; border-radius: 2px;
}
input:focus, textarea:focus, select:focus{ outline: 1px solid rgba(var(--ink), .4); outline-offset: 1px; }
label{ display: block; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--dimmer); margin: 1.6em 0 .6em; }

.notice{ border: 1px solid var(--rule); padding: 16px 18px; margin: 1.6em 0; font-size: .9rem; color: var(--dim); }
.notice-warn{ border-color: rgba(255,196,120,.32); color: rgba(255,214,160,.8); }
.notice-live{ border-color: rgba(120,220,255,.35); color: rgba(180,235,255,.9); }

/* --------------------------------------------------------- the empty state */

.unexplored{
  border: 1px solid rgba(232,243,250,.1); padding: clamp(30px, 7vw, 64px);
  margin: 2em 0 0; text-align: center;
}
.unexplored .line{
  font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 2rem);
  line-height: 1.5; color: rgba(var(--ink), .84); margin: 0;
}
.unexplored .sub{ margin-top: 1.8em; color: var(--dimmer); font-size: .9rem; }

/* ------------------------------------------------------------ live marker */

.live-dot{
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #7fe3ff; box-shadow: 0 0 10px rgba(127,227,255,.9);
  margin-right: .7em; vertical-align: middle;
  animation: livepulse 2.4s ease-in-out infinite;
}
@keyframes livepulse{ 0%,100%{ opacity:.35 } 50%{ opacity:1 } }

.embed{ position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border: 1px solid var(--rule); margin: 1.6em 0; }
.embed iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------- ignorance */

.column-map{ display: flex; flex-direction: column; gap: 2px; margin: 2.4em 0 0; }
/* Renamed from .band. `.band` is used as an inline tabular-nums span in a
   dozen cards and table cells (.card .band, below), and a global
   display:grid turned every one of those into a three-column grid. The
   column map is only wanted by the three places that ask for it by name. */
.band-row{ display: grid; grid-template-columns: 116px 1fr 92px; align-items: center; gap: 14px; }
.band .lab{ font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--dimmer); font-variant-numeric: tabular-nums; text-align: right; }
.band .bar{ position: relative; height: 26px; background: rgba(255,255,255,.035); border: 1px solid rgba(232,243,250,.07); overflow: hidden; }
.band .bar i{ position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(150,220,255,.75), rgba(120,190,240,.4)); display: block; }
.band .pct{ font-size: 9.5px; letter-spacing: .1em; color: var(--dim); font-variant-numeric: tabular-nums; }
.band a{ border: 0; }
.band:hover .bar{ border-color: rgba(232,243,250,.3); }

/* --------------------------------------------------------------- tables */

table{ width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .92rem; }
th, td{ text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--rule); }
th{ font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--dimmer); font-weight: 400; }
td{ color: rgba(var(--ink), .82); }
td.num, th.num{ text-align: right; font-variant-numeric: tabular-nums; }

/* A wide table must scroll inside its own box rather than widening the page.
   Without this, /live's four-column table forces horizontal scroll on a phone. */
@media (max-width: 760px){
  table{ display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td{ white-space: nowrap; }
  td .tiny, td .small{ white-space: normal; }
}

/* --------------------------------------------------------------- footer */

.foot{ border-top: 1px solid var(--rule); margin-top: 90px; padding: 34px 0 70px; color: var(--dimmer); font-size: .82rem; }
.foot a{ color: var(--dim); }
.foot .cols{ display: flex; gap: 40px; flex-wrap: wrap; }

/* ------------------------------------------------------------ chamber nav */

.neighbours{ display: flex; justify-content: space-between; gap: 20px; margin-top: 3em; }
.neighbours a{ font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); border: 0; }
.neighbours a:hover{ color: rgba(var(--ink), 1); }

.depth-jump{ display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.depth-jump input{ width: 150px; }

@media (prefers-reduced-motion: reduce){
  .live-dot{ animation: none; }
}

/* ------------------------------------------------ the site-wide live rail --
   One line under the masthead, on every platform page. Quiet enough to ignore
   while reading, present enough that the ocean never looks like an archive. */
#live-rail{ display: none; border-bottom: 1px solid var(--rule);
  background: rgba(9,14,22,.72); backdrop-filter: blur(6px); }
#live-rail.on{ display: block; }
.lr-inner{ display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 20px; padding: 9px 0; font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; }
.lr-k{ color: var(--dimmer); white-space: nowrap; }
.lr-k .live-pip{ display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: #7fe3ff; margin-right: .7em;
  box-shadow: 0 0 8px rgba(127,227,255,.9);
  animation: lrpulse 2.6s ease-in-out infinite; }
@keyframes lrpulse{ 0%,100%{ opacity:.35 } 50%{ opacity:1 } }
@media (prefers-reduced-motion: reduce){ .lr-k .live-pip{ animation: none } }
.lr-i{ color: rgba(232,243,250,.62); text-decoration: none;
  border-bottom: 1px solid transparent; white-space: nowrap; }
.lr-i:hover{ color: rgba(232,243,250,.95); border-bottom-color: var(--rule); }
.lr-i b{ font-weight: 400; color: rgba(232,243,250,.95);
  font-variant-numeric: tabular-nums; }
.lr-down{ color: rgba(255,190,150,.85); }
.lr-wait{ color: var(--dimmer); font-style: normal; }
.lr-deep b{ color: rgba(150,225,255,.95); }
.lr-all{ margin-left: auto; color: var(--dimmer); }
@media (max-width: 720px){
  .lr-inner{ flex-wrap: nowrap; overflow-x: auto; gap: 18px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .lr-inner::-webkit-scrollbar{ display: none; }
  .lr-all{ margin-left: 0; }
}

/* Visually hidden, still announced. For pages that are full-bleed by design
   and therefore have nowhere to put a visible h1. */
.vh{ position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0 }
.skip{ position:absolute; left:-9999px; top:0; z-index:999;
  background:#04070d; color:rgba(232,243,250,.98); padding:14px 20px;
  border:1px solid rgba(232,243,250,.5); font:300 12px/1 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.18em; text-transform:uppercase }
.skip:focus{ left:12px; top:12px }

/* ------------------------------------------------- the doors (no dead ends) */
/* One line each, the weight of a caption, never a box of blue links. The
   left rule is the only ornament: it says "this is a way out of here" without
   saying it in words. Axis tints are deliberately almost imperceptible —
   enough that a regular reader senses depth doors and action doors are
   different kinds of thing, not enough to become a colour key. */
.doors{ margin: 2.2em 0 0; padding-top: 1.4em;
  border-top: 1px solid rgba(var(--ink), .07); }
.door{ margin: 0 0 .55em; padding-left: 14px; position: relative;
  font-size: .88rem; line-height: 1.55; color: var(--dim); }
.door:last-child{ margin-bottom: 0; }
.door::before{ content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 1px; background: rgba(var(--ink), .3); }
.door a{ color: inherit; text-decoration: none;
  border-bottom: 1px solid rgba(var(--ink), .18); }
.door a:hover{ color: rgba(var(--ink), .95); border-bottom-color: rgba(var(--ink), .5); }
.door-depth::before{ background: rgba(150, 225, 255, .5); }
.door-time::before{ background: rgba(200, 190, 255, .45); }
.door-place::before{ background: rgba(150, 255, 220, .45); }
.door-action::before{ background: rgba(255, 214, 160, .55); }

/* Inside a card the rule would fight the card's own border. */
.card .doors{ border-top: 0; margin-top: 1.4em; padding-top: 0; }
.card .door{ font-size: .82rem; }

/* --------------------------------------------------- the creator network */
/* A spotlight, not a scrape. The creator's name sits ABOVE the video, the
   channel link is full weight, and nothing here is styled to keep a viewer
   on this site. */
.cvideo{ border: 1px solid var(--rule); padding: 20px 22px 18px; margin: 0 0 18px;
  background: rgba(255,255,255,.012); }
.cvideo-by{ font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dimmer); margin: 0 0 .7em; }
.cvideo-by a{ color: rgba(var(--ink), .82); border-bottom-color: rgba(232,243,250,.3); }
.cvideo h3{ font-family: var(--serif); font-weight: 400; font-size: 1.25rem;
  text-transform: none; letter-spacing: .02em; margin: 0 0 .8em;
  color: rgba(var(--ink), .95); }
.cvideo-frame{ position: relative; width: 100%; aspect-ratio: 16/9;
  border: 1px solid var(--rule); background: #000; }
.cvideo-frame iframe{ width: 100%; height: 100%; border: 0; display: block; }
.cvideo-play{ position: absolute; inset: 0; cursor: pointer;
  background: rgba(4,10,18,.55); border: 0; color: rgba(var(--ink), .92);
  font: 300 11px/1 Inter, system-ui, sans-serif; letter-spacing: .28em;
  text-transform: uppercase; }
.cvideo-play:hover{ background: rgba(4,10,18,.3); color: #fff; }
.cvideo-play:focus-visible{ outline: 2px solid rgba(150,225,255,.9); outline-offset: -3px; }
.cvideo-blurb{ margin: 1.1em 0 0; font-size: .92rem; line-height: 1.6; color: var(--dim); }
.cvideo-out{ margin: 1.1em 0 0; display: flex; gap: 20px; flex-wrap: wrap; }
.cvideo-out a{ font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(var(--ink), .78); border-bottom: 1px solid rgba(232,243,250,.3); }

.creator-card{ border: 1px solid var(--rule); padding: 22px; display: block;
  text-decoration: none; background: rgba(255,255,255,.012); }
.creator-card h3{ font-family: var(--serif); font-weight: 400; font-size: 1.3rem;
  text-transform: none; letter-spacing: .02em; margin: .2em 0 .5em;
  color: rgba(var(--ink), .95); }
.creator-card .handle{ font-size: 9px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--dimmer); }

/* An automated pick, marked as one. Small, but never absent — the difference
   between "a person chose this" and "a rule did" is the difference the whole
   library trades on. */
.auto-badge{ display: inline-block; margin-left: .5em; font-size: 8px;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid rgba(255,200,140,.5); color: rgba(255,214,160,.9);
  padding: 2px 6px; border-radius: 2px; vertical-align: middle; }

/* ------------------------------------------------ interests and feedback */
/* The prompt is a panel in the page, not a modal. Nothing is blocked, the
   page scrolls behind nothing, and × or Escape ends it for good. */
.ip{ border: 1px solid rgba(150,225,255,.3); background: rgba(10,22,38,.5);
  padding: 22px 24px; margin: 2em 0; }
.ip-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ip-x{ appearance: none; background: transparent; border: 0; cursor: pointer;
  color: var(--dimmer); font-size: 1.3rem; line-height: 1; padding: 0 4px; }
.ip-x:hover{ color: rgba(var(--ink), .95); }
.ip-x:focus-visible{ outline: 2px solid #9fe8ff; outline-offset: 2px; }
.ip-title{ font-family: var(--serif); font-weight: 300; margin: .3em 0 .4em;
  font-size: clamp(1.3rem, 3vw, 1.7rem); }
.ip-sub{ font-size: .88rem; color: var(--dim); margin: 0 0 1.4em; }
.ip-opts{ display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ip-opt{ display: block; margin: 0; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--rule); text-transform: none; letter-spacing: normal; }
.ip-opt:hover{ border-color: rgba(150,225,255,.5); }
.ip-opt input{ position: static; width: 1px; height: 1px; opacity: 0;
  clip-path: inset(50%); }
.ip-opt:has(input:checked){ border-color: #9fe8ff; background: rgba(159,232,255,.07); }
.ip-opt:has(input:focus-visible){ outline: 2px solid #9fe8ff; outline-offset: 2px; }
.ip-lab{ display: block; font-size: .95rem; color: rgba(var(--ink), .92); }
.ip-blurb{ display: block; font-size: .78rem; color: var(--dimmer); margin-top: 3px; }
.ip-actions{ margin: 1.6em 0 0; display: flex; gap: 12px; }

.thumbs{ display: inline-flex; align-items: center; gap: 6px; }
.thumb{ appearance: none; cursor: pointer; background: transparent;
  border: 1px solid var(--rule); border-radius: 2px; color: var(--dimmer);
  font-size: 11px; line-height: 1; padding: 5px 8px; }
.thumb:hover{ border-color: rgba(var(--ink), .5); color: rgba(var(--ink), .9); }
.thumb:focus-visible{ outline: 2px solid #9fe8ff; outline-offset: 2px; }
.thumb.up.on{ border-color: rgba(150,255,220,.8); color: rgba(150,255,220,.95); }
.thumb.down.on{ border-color: rgba(255,170,140,.8); color: rgba(255,170,140,.95); }
.thumb-net{ font-size: 9.5px; letter-spacing: .1em; color: var(--dimmer);
  min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.why-shown{ font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(150,225,255,.65); }

/* ---------------------------------------------------------------- action
   ONE ACTION PER SURFACE (partials/action_block.html) and the single quiet
   invitation (actions.js). Both are deliberately undersized: the loudest
   thing on a page about the deep sea should be the deep sea. */

.action-block{
  margin:2.6em 0 0; padding:1.6em 0 0;
  border-top:1px solid rgba(var(--ink), .14);
}
.action-lead{ margin:.5em 0 .3em; font-size:clamp(1.05rem,2.4vw,1.32rem); font-weight:400; }
.action-lead a{ color:inherit; text-decoration:none; border-bottom:1px solid rgba(var(--ink), .28); }
.action-lead a:hover{ border-bottom-color:rgba(var(--ink), .7); }
.action-detail{ margin:.2em 0 .6em; max-width:56ch; }
.action-more{ margin:1.1em 0 .6em; }
.action-more summary{
  cursor:pointer; font:300 10px/1 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.22em; text-transform:uppercase; opacity:.62;
}
.action-more summary:hover{ opacity:1; }
.action-more[open] summary{ margin-bottom:.9em; }
.action-list{ margin:0; padding-left:1.1em; }
.action-list li{ margin:.35em 0; }

/* The nudge. Bottom-corner, non-modal, and it never takes focus. */
.dv-nudge{
  position:fixed; right:16px; bottom:16px; z-index:70;
  width:min(360px, calc(100vw - 32px));
  padding:1.15em 1.3em 1.25em; border-radius:2px;
  /* Solid, not .94: at phone width these panels span nearly the whole
     column over light-on-dark body text, and the 6% bleed read as footer
     links colliding with the option buttons — the same ghosting the
     arrival prompt's action bar was already fixed for. */
  background:rgb(6,26,44); color:rgba(236,244,250,.94);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 40px rgba(0,10,24,.42);
  opacity:0; transform:translateY(10px);
  transition:opacity .5s ease, transform .5s ease;
}
.dv-nudge.on{ opacity:1; transform:none; }
.dv-nudge-lede{
  margin:0 0 .5em; font:300 10px/1.4 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.2em; text-transform:uppercase; opacity:.66;
}
.dv-nudge-go{
  display:inline-block; color:inherit; text-decoration:none;
  font-family:Cormorant Garamond,Cormorant Fallback,Iowan Old Style,Georgia,serif;
  font-size:1.14rem; line-height:1.4;
  border-bottom:1px solid rgba(255,255,255,.32);
}
.dv-nudge-go:hover{ border-bottom-color:rgba(255,255,255,.85); }
.dv-nudge-body{ margin:.6em 0 0; font-size:.86rem; line-height:1.55; opacity:.8; }
.dv-nudge-x{
  position:absolute; top:6px; right:8px; width:30px; height:30px;
  background:none; border:0; color:inherit; opacity:.5;
  font-size:19px; line-height:1; cursor:pointer;
}
.dv-nudge-x:hover{ opacity:1; }
.dv-nudge-x:focus-visible{ outline:1px solid rgba(255,255,255,.8); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  .dv-nudge{ transition:none; transform:none; }
}

/* ---------------------------------------------------------------- wonder
   The hook leads; the name follows in small type. That inversion is the
   whole design — a taxonomic name tells a reader who already knows that
   they were right, and tells everyone else nothing. */

.wonder-list{ margin:2.4em 0 0; }
.wonder-card{
  padding:1.5em 0; border-top:1px solid rgba(var(--ink), .12);
}
.wonder-card:first-child{ border-top:0; }
.wonder-hook{
  display:block; color:inherit; text-decoration:none;
  font-family:Cormorant Garamond,Cormorant Fallback,Iowan Old Style,Georgia,serif;
  font-weight:300; font-size:clamp(1.14rem,2.7vw,1.52rem); line-height:1.44;
  letter-spacing:.01em; max-width:62ch;
}
.wonder-hook:hover{ text-decoration:underline; text-underline-offset:.18em;
  text-decoration-thickness:1px; text-decoration-color:rgba(var(--ink), .4); }
.wonder-meta{
  margin:.65em 0 0; font:300 11px/1.5 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.14em; text-transform:uppercase; opacity:.62;
}
.wonder-meta a{ color:inherit; }
.wonder-name{ letter-spacing:.18em; }
.wonder-lede{
  font-size:clamp(1.5rem,4.4vw,2.5rem); line-height:1.26; max-width:22ch;
  max-width:26ch; font-weight:300;
}

.filters{ margin:2em 0 1.4em; }
.filter-row{ margin:.5em 0; display:flex; flex-wrap:wrap; gap:.42em;
  align-items:center; }
.filter-lab{
  font:300 10px/1 Inter,Inter Fallback,system-ui,sans-serif; letter-spacing:.22em;
  text-transform:uppercase; opacity:.5; margin-right:.5em; min-width:4.4em;
}
.chip{
  display:inline-flex; align-items:center; gap:.4em;
  padding:.38em .78em; border:1px solid rgba(var(--ink), .2);
  border-radius:2px; text-decoration:none; color:inherit;
  font:300 11px/1 Inter,Inter Fallback,system-ui,sans-serif; letter-spacing:.1em;
}
.chip:hover{ border-color:rgba(var(--ink), .5); }
.chip.on{ border-color:rgba(var(--ink), .72); background:rgba(var(--ink), .07); }
.chip-n{ opacity:.5; font-size:10px; }
.chip-sm{ padding:.2em .5em; font-size:9.5px; opacity:.7; }

/* The daily hook, injected into the descent by wonder-today.js */
.dv-today{ margin:2.2em auto 0; width:min(660px,86vw); text-align:center; }
.dv-today-lab{
  font:300 9.5px/1 Inter,Inter Fallback,system-ui,sans-serif; letter-spacing:.28em;
  text-transform:uppercase; color:rgba(255,255,255,.62); margin:0 0 .7em;
  text-shadow:0 1px 8px rgba(0,30,55,.7);
}
.dv-today-hook{
  font-family:Cormorant Garamond,Cormorant Fallback,Iowan Old Style,Georgia,serif;
  font-weight:300; font-size:clamp(1rem,2.3vw,1.2rem); line-height:1.6;
  color:rgba(255,255,255,.9); margin:0;
  text-shadow:0 1px 14px rgba(0,40,70,.5);
}
.dv-today-hook a{ color:inherit; text-decoration:none;
  border-bottom:1px solid transparent; }
.dv-today-hook a:hover{ border-bottom-color:rgba(255,255,255,.55); }
.card-hook{ font-weight:300; line-height:1.4; }
.card-hook a{ color:inherit; text-decoration:none; }
.card-hook a:hover{ text-decoration:underline; text-underline-offset:.16em;
  text-decoration-thickness:1px; text-decoration-color:rgba(var(--ink), .4); }
.card-name{
  margin:.5em 0 .9em; font:300 10px/1 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.2em; text-transform:uppercase; opacity:.55;
}

/* The trenches. `.never` is the whole argument in one word, so it is the
   one place on this site where absence gets emphasis rather than grey. */
.never{ color:rgb(var(--warn, 214 150 90)); letter-spacing:.06em; }

/* The funding gate. Sits inside the flow above the amount, deliberately
   before the decision rather than after it. */
.criteria-block{
  margin:2em 0; padding:1.4em 1.5em;
  border:1px solid rgba(var(--ink), .16); border-radius:2px;
}
.criteria-list{ margin:1em 0 .8em; padding-left:1.15em; }
.criteria-list li{ margin:.55em 0; line-height:1.6; }

/* The curiosity prompts. Same corner and same restraint as the nudge — at
   most one ask is ever on screen, enforced in curiosity.js, not here. */
.dv-ask{
  position:fixed; left:16px; bottom:16px; z-index:68;
  width:min(400px, calc(100vw - 32px));
  padding:1.15em 1.3em 1.3em; border-radius:2px;
  /* Solid, not .94: at phone width these panels span nearly the whole
     column over light-on-dark body text, and the 6% bleed read as footer
     links colliding with the option buttons — the same ghosting the
     arrival prompt's action bar was already fixed for. */
  background:rgb(6,26,44); color:rgba(236,244,250,.94);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 40px rgba(0,10,24,.42);
  opacity:0; transform:translateY(10px);
  transition:opacity .45s ease, transform .45s ease;
}
.dv-ask.on{ opacity:1; transform:none; }
.dv-ask-lab{
  margin:0 0 .55em; font:300 9.5px/1.4 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.24em; text-transform:uppercase; opacity:.6;
}
.dv-ask-q{
  margin:0 0 .9em; font-family:Cormorant Garamond,Cormorant Fallback,Iowan Old Style,Georgia,serif;
  font-size:1.1rem; line-height:1.4;
}
.dv-ask-opts{ display:flex; flex-wrap:wrap; gap:.4em; }
.dv-ask-opts button{
  background:none; border:1px solid rgba(255,255,255,.22); color:inherit;
  padding:.4em .75em; font:300 11.5px/1.3 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.05em; cursor:pointer; text-align:left;
}
.dv-ask-opts button:hover{ border-color:rgba(255,255,255,.6); }
.dv-ask-x{
  position:absolute; top:6px; right:8px; width:30px; height:30px;
  background:none; border:0; color:inherit; opacity:.5; font-size:19px;
  cursor:pointer;
}
.dv-ask-x:hover{ opacity:1; }
.dv-ask-x:focus-visible,.dv-ask-opts button:focus-visible,
.dv-ask-free button:focus-visible,.dv-ask-free input:focus-visible{
  outline:1px solid rgba(255,255,255,.8); outline-offset:2px;
}
.dv-ask-free{ margin-top:1.1em; }
.dv-ask-free input{
  width:100%; background:rgba(255,255,255,.06); color:inherit;
  border:1px solid rgba(255,255,255,.18); padding:.5em .65em;
  font:300 12.5px/1.4 Inter,Inter Fallback,system-ui,sans-serif; margin:.15em 0 .5em;
}
.dv-ask-free button{
  background:none; border:1px solid rgba(255,255,255,.28); color:inherit;
  padding:.38em .9em; font:300 11px/1 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.12em; text-transform:uppercase; cursor:pointer;
}
@media (prefers-reduced-motion: reduce){
  .dv-ask{ transition:none; transform:none; }
}

/* "What people are asking at this depth" */
.asking{ margin:2.4em 0 0; padding-top:1.5em;
  border-top:1px solid rgba(var(--ink), .12); }
.asking li{ margin:.5em 0; line-height:1.6; }
.asking .answered{ opacity:.72; }
.q-form{ margin-top:.8em; }
.q-form input{ display:block; width:min(420px,100%); margin:.3em 0 .7em; }
.search-form{ margin:2em 0; display:flex; gap:.5em; flex-wrap:wrap; align-items:flex-end; }
.search-form input{ flex:1 1 320px; padding:.55em .7em; }
.search-form label{ position:absolute; left:-9999px; }
/* The action block's lead is an h2 for the document outline, but it should
   not shout like a section heading — it is one sentence, not a chapter. */
h2.action-lead{ font-size:clamp(1.05rem,2.4vw,1.32rem); font-weight:400;
  letter-spacing:0; text-transform:none; margin:.5em 0 .3em; }


/* ==================================================================== a11y
   Findings from the keyboard/low-vision and screen-reader audits. Each rule
   here replaced a hover-only affordance or a contrast failure that was
   measured, not guessed. */

/* Every focusable thing, not just the six buttons that happened to get one.
   #9fe8ff on the abyss ground is 13.4:1. */
:where(a, button, summary, [tabindex]):focus-visible{
  outline: 2px solid #9fe8ff;
  outline-offset: 2px;
  border-radius: 2px;
}
@media (forced-colors: active){
  :where(a, button, summary, [tabindex]):focus-visible{ outline-color: Highlight; }
  /* .chip.on and .nav a.on signal the current state with border and
     background only, both of which forced colours replace — so the active
     filter became undetectable. An outline survives. */
  .chip.on, .nav a.on{ outline: 2px solid Highlight; outline-offset: 1px; }
}

/* Contrast. Opacity composites multiplicatively down a subtree, and body is
   already rgba(--ink,.9): .chip-sm inside .wonder-meta measured 3.33:1 and
   .chip-n/.filter-lab 4.09:1. Setting the colour directly stops the stacking. */
.chip-sm{ opacity: 1; color: rgba(var(--ink), .9); }
.chip-n{ opacity: 1; color: var(--dimmer); }
.filter-lab{ opacity: 1; color: var(--dimmer); }
/* The dismiss glyph is the last thing on a panel that should be dim — it is
   the only way out. .5 measured 4.39:1. */
.dv-nudge-x, .dv-ask-x{ opacity: .8; }
/* .dv-tr-x is NOT listed here: trench-picker.js injects its own
   opacity:.8 / 44x44 rule, and injected CSS lands last and wins.
   A duplicate that cannot take effect is a lie about ownership. */

/* Touch targets. Measured 15-21px across the new UI; 2.5.8 asks for 24 and
   a thumb wants 44. The glyph stays small, the hit box grows. */
.chip, .dv-ask-opts button{ min-height: 44px; display: inline-flex;
  align-items: center; }
.dv-nudge-x, .dv-ask-x, .ip-x{ min-width: 44px; min-height: 44px; }

/* Two fixed corner panels. At 360px both resolve to calc(100vw - 32px) and
   land in the identical column, so "bottom-left" and "bottom-right" are the
   same place and the nudge covered the ask's buttons AND its close control.
   Below 700px they stack and cap their height; the real fix is one-at-a-time
   in actions.js, this is the belt to that pair of braces. */
@media (max-width: 700px){
  .dv-nudge, .dv-ask{
    left: 8px; right: 8px; width: auto; max-height: 45vh; overflow-y: auto;
  }
  .dv-ask{ bottom: 8px; }
  .dv-nudge{ bottom: 8px; }
}

/* The masthead is sticky and 24 links long; at 360px it wrapped to eight
   rows and took 63% of the viewport, permanently. Unstick it where there is
   no room for it. */
@media (max-height: 520px), (max-width: 760px){
  .masthead{ position: static; }
  .nav{ gap: 16px; }
}

/* td.tiny kept nowrap because the rule used a descendant combinator and the
   class is ON the td. /library was 2,074px wide inside a 324px box. */
@media (max-width: 760px){
  td.tiny, td.small{ white-space: normal; }
}

/* PRINT. There was no print stylesheet at all, so every content page came
   out as near-white text on white paper — blank. A teacher cannot use a
   page they cannot hand out. */
@media print{
  html, body{ background: #fff !important; color: #000 !important; }
  a{ color: #000 !important; text-decoration: underline; }
  .masthead, .foot, #live-rail, .dv-nudge, .dv-ask, .dv-tr, .ip,
  .skip, .doors, .action-more, .filters{ display: none !important; }
  .card, .wonder-card, .action-block{ border-color: #999 !important;
    break-inside: avoid; }
  .sources, .quiet, .tiny, .note-sm, .eyebrow{ color: #333 !important; }
  h1, h2, h3{ break-after: avoid; }
  /* A printed citation is worthless without its target. */
  .prose a[href^="http"]::after, .sources a::after{
    content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* The eight-section masthead. Was 24 links / 8 rows / 63% of a phone. */
.nav-util{ margin-left: auto; }
.subnav{ display:flex; gap:20px; flex-wrap:wrap; padding:10px 0 2px; }
.subnav a{
  font:300 9.5px/1 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.22em; text-transform:uppercase; color:var(--dimmer);
  text-decoration:none; padding-bottom:3px;
  border-bottom:1px solid transparent;
}
.subnav a:hover{ color:rgba(var(--ink), .95); }
.subnav a.on{ color:rgba(var(--ink), .95); border-bottom-color:rgba(232,243,250,.5); }
@media (max-width: 640px){
  .nav{ gap:16px; }
  .nav-util{ margin-left:0; }
  .subnav{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none;
    -webkit-overflow-scrolling:touch; }
  .subnav::-webkit-scrollbar{ display:none; }
}

/* Follow-along. Deliberately shaped like the funding gate: the terms sit
   above the field, because terms read after the decision are a disclaimer
   and terms read during it are a commitment. */
.follow-form{ margin:2em 0; max-width:520px; }
.follow-form input[type=email]{ width:100%; padding:.6em .7em; margin:.3em 0 0; }
.follow-topics{ border:0; padding:0; margin:1.6em 0 0; }
.follow-topics legend{
  font:300 10px/1 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.22em; text-transform:uppercase; opacity:.6; padding:0;
  margin-bottom:.8em;
}
.follow-topics .ip-opt{ display:block; margin:.5em 0; cursor:pointer; }

/* The return loop. Quiet by design — it sits at the foot of a page somebody
   has just finished, and it must not read as the point of the page. */
.follow-block{
  margin:3em 0 0; padding:1.6em 0 0;
  border-top:1px solid rgba(var(--ink), .12);
}
.follow-lede{
  font-family:Cormorant Garamond,Cormorant Fallback,Iowan Old Style,Georgia,serif;
  font-weight:300; font-size:clamp(1rem,2.2vw,1.18rem); line-height:1.6;
  margin:.4em 0 .6em; max-width:58ch;
}
.follow-lede a{ color:inherit; border-bottom:1px solid rgba(var(--ink), .3); }
.follow-lede a:hover{ border-bottom-color:rgba(var(--ink), .8); }

/* SECTION HUB. What is in here, on the page you land on — because a subnav
   that only appears once you are inside the section cannot tell you the
   section exists. */
.hub{ margin:0 0 2.6em; }
.hub-cards{
  display:grid; gap:14px;
  grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
}
.hub-card{
  display:block; padding:15px 17px; text-decoration:none; color:inherit;
  border:1px solid rgba(var(--ink), .16); border-radius:2px;
  background:rgba(255,255,255,.012);
}
.hub-card:hover{ border-color:rgba(var(--ink), .45); }
.hub-card.on{ border-color:rgba(var(--ink), .6);
  background:rgba(var(--ink), .06); }
.hub-name{
  display:block; font-size:1.02rem; line-height:1.35; margin-bottom:.35em;
  font-family:Cormorant Garamond,Cormorant Fallback,Iowan Old Style,Georgia,serif;
}
.hub-what{
  display:block; font:300 11.5px/1.5 Inter,Inter Fallback,system-ui,sans-serif;
  color:var(--dimmer);
}
@media (forced-colors: active){ .hub-card.on{ outline:2px solid Highlight; } }

/* Location first — the question is never asked in the abstract. */
.place-form{ margin:2em 0 1.4em; display:flex; gap:.6em; align-items:flex-end;
  flex-wrap:wrap; }
.place-form label{ display:block; font:300 10px/1 Inter,Inter Fallback,system-ui,sans-serif;
  letter-spacing:.22em; text-transform:uppercase; color:var(--dimmer);
  margin-bottom:.5em; }
.place-form select{ padding:.55em .6em; min-width:min(320px, 100%); }
.place-form input{ padding:.55em .6em; min-width:min(240px,100%); }
.place-form > div{ display:flex; flex-direction:column; }

/* WHERE TO START — shown once, right after the arrival prompt is answered. */
.started{
  margin:1.6em 0 2.2em; padding:1.4em 1.6em;
  border:1px solid rgba(var(--ink), .22); border-radius:2px;
  background:rgba(var(--ink), .04);
}
.started-links{ display:flex; flex-wrap:wrap; gap:.5em 1.4em; margin:.6em 0 .9em; }
.started-links a{
  font-family:Cormorant Garamond,Cormorant Fallback,Iowan Old Style,Georgia,serif;
  font-size:1.06rem; color:inherit; text-decoration:none;
  border-bottom:1px solid rgba(var(--ink), .3);
}
.started-links a:hover{ border-bottom-color:rgba(var(--ink), .85); }

/* THE MARK, beside the wordmark in the masthead.
   Sized in em so it follows .brand's existing font-size rather than adding a
   second scale, and vertically centred against the cap height rather than the
   baseline — the wordmark is all caps, so aligning on the baseline would sit
   the lure low. Nothing else about the header changes. */
.brand{ display: inline-flex; align-items: center; gap: .42em; }
.brand-mark{
  width: 1.05em; height: 1.05em; flex: none;
  overflow: visible; margin-top: -.06em;
}

/* THE SEARCH FORM WAS RAW OS CHROME.
   A white box and a grey system button, on every search page, against
   typography that is otherwise deliberate to the pixel. A tester called it
   out before they called out anything else on the page. */
.search-form{ display: flex; gap: .6rem; align-items: stretch; margin: 1.4em 0 0; max-width: 34rem; }
.search-form input[type="search"]{
  flex: 1; min-width: 0; appearance: none; -webkit-appearance: none;
  background: rgba(var(--ink), .04);
  border: 1px solid rgba(var(--ink), .18); border-radius: 3px;
  padding: .72em .9em; color: rgba(var(--ink), .95);
  font: 300 .95rem/1.4 var(--serif); letter-spacing: .01em;
}
.search-form input[type="search"]::placeholder{ color: var(--dim); opacity: .8; }
.search-form input[type="search"]:focus{
  outline: none; border-color: rgba(var(--ink), .48);
  background: rgba(var(--ink), .07);
}
.search-form button{
  appearance: none; cursor: pointer; background: transparent;
  border: 1px solid rgba(var(--ink), .28); border-radius: 3px;
  color: rgba(var(--ink), .9); padding: .72em 1.3em;
  font: 300 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease;
}
.search-form button:hover{ border-color: rgba(var(--ink), .6); color: #fff; }
.search-form button:focus-visible{ outline: 2px solid #8FE3DC; outline-offset: 2px; }

/* =============================================================== the phone
   Findings from the 390/360px screenshot audit. Everything below is scoped
   to small widths (or is width-independent and safe) and follows one rule:
   a phone may get a tighter layout, never a poorer one — nothing becomes
   unreachable that a desktop can reach. */

/* THE PHONE MASTHEAD. Thirty-one links wrapped to thirteen rows of 9.5px
   caps — ~510px of navigation before any page could begin. The two section
   groups fold behind one text toggle (words in the house caps, no icon);
   the four-link utility row stays out where it always was. The classes are
   added by nav.js, so with JS off nothing folds and the full nav renders
   as before. */
.nav-toggle{
  display: none; appearance: none; background: transparent; cursor: pointer;
  border: 1px solid rgba(var(--ink), .3); border-radius: 2px;
  color: rgba(var(--ink), .9); padding: 0 14px;
  font: 300 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
}
.nav-toggle:hover{ border-color: rgba(var(--ink), .6); color: #fff; }
@media (max-width: 760px){
  .masthead-inner{ row-gap: 10px; }
  .masthead.nav-collapsible .nav-main{ display: none; }
  .masthead.nav-collapsible .nav-toggle{
    display: inline-flex; align-items: center; min-height: 44px;
    margin-left: auto;
  }
  .masthead.nav-collapsible.nav-open .nav-main{
    display: flex; flex-direction: column; gap: 0; flex-basis: 100%;
    margin-left: 0;
  }
  /* Rows a thumb can hit. The caps stay 9.5px; the hit box grows, and the
     hairline under each row is the row's edge, not an underline. */
  .masthead.nav-collapsible.nav-open .nav-main a{
    display: flex; align-items: center; min-height: 44px; padding: 0;
    border-bottom: 1px solid rgba(var(--ink), .08);
  }
  .masthead.nav-collapsible.nav-open .nav-main a.on{
    border-bottom-color: rgba(232,243,250,.5);
  }
  /* The utility row stays visible collapsed, so it too needs real targets. */
  .masthead.nav-collapsible .nav-util a{
    display: inline-flex; align-items: center; min-height: 40px;
  }
}

/* PHONE TABLES. The blanket nowrap above made every cell a hostage: payload
   columns clipped mid-word behind the fold ("A camera on the trench floor
   re…") with nothing to say the rest existed. At phone widths cells wrap and
   only the tabular columns keep their single line. A table that still
   overflows keeps its scroll — with the scrollbar visible, because a column
   a reader cannot know about is hidden data. */
@media (max-width: 760px){
  table{ scrollbar-width: thin;
    scrollbar-color: rgba(232,243,250,.35) transparent; }
  table::-webkit-scrollbar{ height: 4px; }
  table::-webkit-scrollbar-track{ background: transparent; }
  table::-webkit-scrollbar-thumb{ background: rgba(232,243,250,.3);
    border-radius: 2px; }
}
@media (max-width: 640px){
  th, td{ white-space: normal; }
  /* Data keeps its single line — "10,935 m" must not break across the
     number. Headers may wrap: "Entries covering it" on two lines costs
     nothing, and its nowrap alone pushed /depth's count column offscreen. */
  td.num, td.band{ white-space: nowrap; }
}

/* /depth at phone widths: 178 rows where ENTRY — the content — was clipped
   to its first word while TYPE spent 110px repeating "CREATURE". The entry
   wraps (rule above) and the TYPE column drops; its header goes with it via
   :has so the two do not fall out of step. The type is not lost — it is the
   first thing the entry's own chamber states — and every row remains the
   same working link. */
@media (max-width: 640px){
  body[data-path="/depth"] table:has(td.tiny) th:nth-child(2),
  body[data-path="/depth"] table:has(td.tiny) td.tiny{ display: none; }
}

/* /trenches at phone widths: DEEPEST and BEEN THERE sat offscreen while the
   caption below discussed them. OCEAN is the column the name already
   carries, so it is the one that folds; depth keeps its single line so
   "10,935 m" cannot break across the number. Exact path match only — the
   tables on /trenches/<slug> pages are a different shape. */
@media (max-width: 640px){
  body[data-path="/trenches"] .tbl th:nth-child(2),
  body[data-path="/trenches"] .tbl td:nth-child(2){ display: none; }
  body[data-path="/trenches"] .tbl td:nth-child(3){ white-space: nowrap; }
}

/* The live rail scrolls sideways on phones with its scrollbar hidden, so a
   number clipped mid-digit looked like the end of the data. The fade says
   "there is more" without adding chrome. */
@media (max-width: 720px){
  #live-rail.on{ position: relative; }
  #live-rail.on::after{
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
    pointer-events: none;
    background: linear-gradient(to left, rgba(9,14,22,.92), rgba(9,14,22,0));
  }
}

/* iOS zooms the whole page when a focused field's text is under 16px, and
   never zooms back out. 16px at phone widths only — the desktop keeps the
   quieter sizes. */
@media (max-width: 760px){
  input[type=text], input[type=email], input[type=number],
  input[type=search], input[type=password], input[type=url],
  textarea, select,
  .search-form input[type="search"]{ font-size: 16px; }
}

/* THE ARRIVAL PROMPT, compacted. At 390px the option cards stacked to
   ~1,850px and Save/Skip sat ~1,400px below the fold — a reader who wanted
   neither had to scroll through the whole question to decline it. Two
   columns, tighter cards, and the actions ride sticky at the panel's foot so
   Save and Skip are on screen the whole time the panel is. Nothing is
   removed: every option and every blurb is still read in full. */
/* The prompt's fold. Desktop never sees it: the summary is hidden and
   nav.js leaves the details open, so nothing changes above 760px. On a
   phone nav.js closes it, and this one line is the whole prompt until the
   reader asks for the options — the × above it still dismisses outright. */
.ip-fold > summary.ip-more{ display: none; }
@media (max-width: 760px){
  .ip-fold:not([open]) > summary.ip-more{
    display: block; list-style: none; cursor: pointer;
    min-height: 44px; display: flex; align-items: center;
    font-size: .92rem; color: rgba(150,225,255,.85);
  }
  .ip-fold > summary.ip-more::-webkit-details-marker{ display: none; }
}
@media (max-width: 640px){
  .ip{ padding: 16px 14px; }
  .ip-opts{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ip-opt{ padding: 8px 10px; }
  .ip-lab{ font-size: .88rem; line-height: 1.35; }
  .ip-blurb{ font-size: .72rem; line-height: 1.4; }
  .ip-actions{
    position: sticky; bottom: 0; z-index: 1;
    margin: 1em -14px -16px; padding: .85em 14px 1em;
    /* Opaque: the cards pass under this while it is stuck, and card text
       ghosting through a translucent bar reads as a rendering bug. */
    background: rgb(7,17,25);
  }
}

/* /follow's topic labels are <label>s, and the global label rule above
   dresses every label as 9.5px tracked caps — right for a one-word form
   label, unreadable as a two-line sentence. The same reset .ip-opt already
   carries. Width-independent: these read wrong at every size. */
.ob-opt{ text-transform: none; letter-spacing: normal;
  color: rgba(var(--ink), .9); }

/* /community's filter labels ("Show:", "Depth:", "Where:") wrapped away
   from their own options mid-row. On phones each label takes its own line
   above its group. The !important outranks the template's inline
   margin-left that spaces the labels on one desktop row. */
@media (max-width: 640px){
  .links-inline > .small.quiet{ flex-basis: 100%; margin-left: 0 !important; }
}

/* ================================ the app ================================
   Installed to a home screen The Dive runs standalone, and two things make
   that feel like an app rather than a website in a costume — both invisible
   to the website itself.

   First: navigations cross-fade instead of blinking. The document swap is
   the single biggest "this is a website" tell, and a quiet fade is the
   house voice anyway. Old browsers simply ignore this. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root){ animation-duration: .22s; }
@media (prefers-reduced-motion: reduce){
  @view-transition { navigation: none; }
}

/* Second: a thumb bar, only in the installed app on a phone. Two triggers
   for one state: the display-mode media query is the browser's statement
   that the reader came in through the home-screen icon, and html.dv-
   standalone is pwa.js mirroring it — which keeps the behaviour testable
   (a test can set the class) and covers engines that report standalone
   without the media query. Four doors, type only, the same letterspaced
   caps as every other instrument. The website never sees it. */
.appbar{ display: none; position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 300; background: rgba(4,10,18,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(232,243,250,.12);
  padding: 2px 0 calc(2px + env(safe-area-inset-bottom)); }
.appbar a{ flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 44px; font: 300 9.5px/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(232,243,250,.55); text-decoration: none; border-bottom: 0; }
.appbar a.on{ color: rgba(232,243,250,.95); }
@media (display-mode: standalone) and (max-width: 760px){
  .appbar{ display: flex; }
  body{ padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px){
  html.dv-standalone .appbar{ display: flex; }
  html.dv-standalone body{ padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
  /* Fixed-bottom panels written before the bar existed stand on top of it
     otherwise — the ask panel's submit sat 14px behind the bar, and its
     taps landed on the bar's Descent link. */
  html.dv-standalone .dv-ask, html.dv-standalone .dv-nudge{
    bottom: calc(58px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) and (max-width: 760px){
  .dv-ask, .dv-nudge{ bottom: calc(58px + env(safe-area-inset-bottom)); }
}
