/* W2a: fixes to the public pages at small widths and larger text, loaded after pages.css (which the extraction
   writes, so these stay apart from it). Each rule names its source. */

/* 1. The members page was 380 px wide on a 360 px phone, in his mockup too: the 400 px glow behind its lower phone
   (.stage.tilt3d::before) sat in a section that doesn't clip. Clip only what is past the page's own edge. "clip",
   not "hidden", so no section becomes a scroll container and sticky still works. (Defect fix: the Tech
   Director's ruling, 2 Dec.) */
main#pages > section.page {
  overflow-x: clip;
}

/* 2. His choice, 17:22:36 UTC, "Line below the phone, always": on small phones the hero's two trust lines sit
   below the hero picture, at every text size, instead of over the phone's lower edge. Wide screens stay as
   approved. */
@media (max-width: 860px) {
  ul.hero-trust {
    position: static;
    padding-top: 16px;
  }
}

/* 3. His choice, "Keep pictures as designed": the pictured app screens keep their designed size at any text
   setting, and the page's own words grow. src/app/main.ts sets --rz to 16px over the root's size (1 at the
   default text, so nothing changes there). Each picture is zoomed by --rz, and its fixed 360 by 760 screen is
   divided by it, so the picture keeps its size and the text inside reads as designed. */
.stn,
.phone .glass > .sghost,
.phone .glass > .screen,
.dp-glass .screen,
.dp-glass .sghost {
  zoom: var(--rz, 1);
  width: calc(360px / var(--rz, 1));
  height: calc(760px / var(--rz, 1));
}
.stn > .screen,
.stn > .sghost {
  width: calc(360px / var(--rz, 1));
  height: calc(760px / var(--rz, 1));
}

/* 4. The Chief Inspector, 2 Dec: at larger text, the waiver card's "Approved · 10:02" pill covered
   "Chebet K. · Chair". A name keeps its own width, so when the row is too narrow the pill moves to its own line,
   at the right, below the name. Only rows whose pill is the row's own last item (the waiver card's officials):
   rows with an amount, such as the payment card's, keep the approved layout. */
.fcard .viz .entry:has(> .flagx) {
  flex-wrap: wrap;
}
.fcard .viz .entry:has(> .flagx) > .grow {
  min-width: max-content;
}
.fcard .viz .entry > .flagx {
  margin-left: auto;
}

/* 5. His look at W2a (19:37:35 UTC, through the SD): fix what's plainly wrong at phone widths.
   - The hero's floating cards were cut off at both screen edges: on phones they're hidden, and the phone shows.
   - The pictured phones' text was too small to read: on phones each pictured phone is drawn larger (a 360 px
     screen at 0.78, about 281 px wide, up from about 233), and the hero takes the room it needs. */
@media (max-width: 560px) {
  .hero-stage .tcard,
  .hero-stage .trcpt {
    display: none;
  }
  .lane .phone,
  .wrap.split .phone {
    --s: 0.78;
  }
  .hero-stage {
    height: 700px;
  }
}

/* 6. The public-demo build (3 Dec): the pictured dashboard's chat box is drawn, not an input, and the legal
   drafts read as plain text. */
.chatin .chatin-ph {
  flex: 1;
  min-width: 0;
  background: var(--alt);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
}
.sec.legal .wrap {
  max-width: 760px;
}
.sec.legal h2 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-top: 28px;
}
.sec.legal p {
  margin-top: 8px;
}
