/* ======================================================================
   rooms.css, the room language, shared. September 2026 (Arnold).

   The eight-room homepage (September 2026) introduced it: one idea per room,
   ruled lines instead of boxes, large type, and space between ideas. The
   primitives lived inline in index.html. They live here now so the hub
   pages (learn, tools, how-grades-work, testing) use the same rules, and a
   change to the room language is made once.

   :root tokens from assets/styles.css only. No Tailwind arbitrary classes,
   so gate_g20 and gate_g21 have nothing new to reconcile.
   ====================================================================== */

/* ---------- primitives (moved from index.html) ---------- */
.ebl-room { position: relative; padding: 5.5rem 0; }
.ebl-wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.4rem; }
.ebl-narrow { max-width: 44rem; }
.ebl-mid { max-width: 52rem; }
.ebl-pause { min-height: min(78svh, 760px); display: flex; align-items: center; }
.ebl-pause > .ebl-wrap, .ebl-pause > section { width: 100%; }
.ebl-rule { height: 1px; background: var(--line); max-width: 68rem; margin: 0 auto; }
.ebl-k { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
/* October 2026: height 0 and overflow hidden added. On learn.html app.js rendered all 238
   evidence-log entries into the hidden #evidence-log anchor as well as the real host,
   and a hidden block still takes its height: 48,000 px of black between the FAQ and
   the Evidence Log. An anchor now has no footprint whatever is written into it.
   gate_g202_anchor_host_collision.py holds this rule. */
.ebl-anchor { display: block; position: relative; top: -5rem; height: 0; overflow: hidden; visibility: hidden; }

@media (min-width: 900px) {
  .ebl-room { padding: 7.5rem 0; }
  .ebl-wrap { padding: 0 2.5rem; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ebl-rv { animation: ebl-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes ebl-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- hub rooms ---------- */

/* Room 1 of a hub: the page's one sentence, alone on the screen. */
.ebl-hub-open { min-height: min(72svh, 720px); display: flex; flex-direction: column; justify-content: center; padding: 4rem 0 3rem; overflow: hidden; }
.ebl-hub-open::before { content: ""; position: absolute; inset: -25% -30% auto auto; width: 62vw; height: 62vw; max-width: 720px; max-height: 720px; background: radial-gradient(closest-side, var(--lime-glow), transparent 70%); opacity: .55; pointer-events: none; }
.ebl-hub-open > .ebl-wrap { position: relative; width: 100%; min-width: 0; }
.ebl-hub-h { margin-top: 1.1rem; font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: clamp(2.4rem, 5vw + .5rem, 4.8rem); line-height: 1.03; letter-spacing: -.035em; color: var(--ink-0); max-width: 17ch; text-wrap: balance; }
.ebl-hub-h em { font-style: normal; color: var(--lime); }
.ebl-hub-sub { margin-top: 1.5rem; font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); line-height: 1.55; color: var(--ink-1); max-width: 38rem; text-wrap: pretty; }
.ebl-hub-btn { margin-top: 2.2rem; display: inline-flex; max-width: 100%; align-items: center; gap: .75rem; background: var(--lime); color: var(--bg-0); font-weight: 600; font-size: 1.1rem; padding: 1rem 1.5rem; border-radius: 10px; box-shadow: 0 0 36px var(--lime-glow); transition: box-shadow .25s ease, transform .25s ease; }
.ebl-hub-btn:hover { transform: translateY(-1px); }
.ebl-hub-btn:focus-visible { outline: 2px solid var(--ink-0); outline-offset: 3px; }

/* A room's title. Serif, large, one line of thought. */
.ebl-hub-title { margin-top: .9rem; font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(1.9rem, 2vw + 1.2rem, 2.9rem); line-height: 1.1; letter-spacing: -.01em; color: var(--ink-0); max-width: 26ch; text-wrap: balance; }
.ebl-hub-title em { font-style: normal; color: var(--lime); }
.ebl-hub-lede { margin-top: 1.2rem; font-size: 17px; line-height: 1.6; color: var(--ink-1); max-width: 40rem; }

/* The statement room: a few serif lines, nothing else. */
.ebl-hub-lines { display: grid; gap: 2.2rem; }
.ebl-hub-lines p { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.6rem, 2vw + 1rem, 2.6rem); line-height: 1.18; letter-spacing: -.01em; color: var(--ink-0); text-wrap: balance; }
.ebl-hub-lines .is-lime { color: var(--lime); }
.ebl-hub-lines .ebl-hub-small { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Doors: ruled rows that go somewhere. Same drawing as homepage Room 3. */
.ebl-doors { margin-top: 1.8rem; border-top: 1px solid var(--line-strong); }
.ebl-door { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line-strong); color: var(--ink-1); transition: color .2s ease, padding .25s ease; }
.ebl-door:hover { color: var(--ink-0); padding-left: .4rem; }
.ebl-door:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.ebl-door-t { display: block; font-size: clamp(1.2rem, .8vw + 1rem, 1.55rem); font-weight: 500; color: var(--ink-0); }
.ebl-door-n { margin-right: .7rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; font-weight: 400; color: var(--ink-3); }
.ebl-door-s { display: block; margin-top: .3rem; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ebl-door svg { color: var(--ink-3); transition: transform .25s ease, color .2s ease; }
.ebl-door:hover svg { color: var(--lime); transform: translateX(6px); }
.ebl-door.is-lead .ebl-door-t, .ebl-door.is-lead svg { color: var(--lime); }

/* The close: one line, then the boundary. */
.ebl-hub-close { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 3vw + 1rem, 3.6rem); line-height: 1.08; letter-spacing: -.015em; color: var(--ink-0); max-width: 20ch; text-wrap: balance; }
.ebl-hub-close em { font-style: normal; color: var(--lime); }
.ebl-hub-disc { margin-top: 1.4rem; font-size: 17px; line-height: 1.6; color: var(--ink-3); max-width: 40rem; }

/* ---------- existing hub markup, unboxed ----------
   Inside a room marked .ebl-unbox, the cards the hub already carries lose
   their box and become ruled items, which is what the room language is.
   Content, ids and data-testids are untouched; only the drawing changes. */
.ebl-unbox .card { background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
.ebl-unbox .card:hover { transform: none; }
.ebl-unbox .space-y-4 > .card + .card, .ebl-unbox .space-y-3 > .card + .card { margin-top: 0; }
.ebl-unbox .eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ebl-unbox .h-section { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(1.9rem, 2vw + 1.2rem, 2.9rem); line-height: 1.1; letter-spacing: -.01em; }
.ebl-unbox details.card > summary { padding: .2rem 0; }

/* Catalog rooms keep their product cards, drawn quieter. */
.ebl-catalog .card { background: transparent; border-color: var(--line-strong); }
.ebl-catalog h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; }

/* The grade ladder, one letter per room. */
.ebl-ladder > section { margin-top: 0; padding: 4.5rem 0; border-top: 1px solid var(--line); }
.ebl-ladder > section:first-of-type { border-top: 0; }
.ebl-ladder .ebl-sr-grade { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(5rem, 9vw, 8rem); line-height: .8; padding: 0; border: 0; background: none; margin-right: .6rem; }
.ebl-ladder > section > .flex { flex-wrap: wrap; row-gap: .4rem; }
.ebl-ladder h2 { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.4rem); letter-spacing: -.02em; }
.ebl-ladder > section > p { font-size: 17px; line-height: 1.65; }
.ebl-ladder ol li { padding: 1.1rem 0; border-top: 1px solid var(--line); margin-top: 0; }

@media print {
  .ebl-hub-open { min-height: 0; padding: 1rem 0; }
  .ebl-hub-open::before { display: none; }
  .ebl-room { padding: 1.2rem 0; }
  .ebl-door svg { display: none; }
}

/* learn.html: the seven former tab panels, one room each, ruled apart. */
.ebl-learn-rooms > .learn-panel { border-top: 1px solid var(--line); }
.ebl-learn-rooms > .learn-panel:first-of-type { border-top: 0; }

/* Homepage Room 4 "try it" (render_try_it.py, assets/try-it.js), September 2026.
   Hidden until its script has run, so a reader without JavaScript never meets
   a search box that does nothing. */
.ebl-try { max-width: 30rem; margin: 2.4rem auto 0; display: none; }
.ebl-try.is-ready { display: block; }
.ebl-try-k { text-align: center; }
.ebl-try-lab { display: block; margin-top: .5rem; text-align: center; font-size: 16px; color: var(--ink-1); }
.ebl-try-box { position: relative; margin-top: .9rem; }
.ebl-try-box input { width: 100%; background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: 10px; padding: .85rem 1rem; color: var(--ink-0); outline: none; }
.ebl-try-box input:focus { border-color: var(--lime); }
.ebl-try-box input:disabled { opacity: .5; }
.ebl-try-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: 12px; padding: .3rem; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.ebl-try-hit { display: flex; width: 100%; justify-content: space-between; gap: 1rem; align-items: baseline; text-align: left; padding: .6rem .7rem; border-radius: 8px; background: none; border: 0; color: var(--ink-0); cursor: pointer; font-size: 15px; }
.ebl-try-hit:hover, .ebl-try-hit:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.ebl-try-hit-k { flex: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ebl-try-none { padding: .7rem; font-size: 17px; color: var(--ink-2); }
.ebl-try-note { margin-top: .6rem; text-align: center; font-size: 16px; color: var(--ink-3); }
.ebl-try-go { margin-top: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.ebl-try-go[hidden] { display: none; }
.ebl-try-btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--lime); color: var(--bg-0); font-weight: 600; font-size: 1rem; padding: .85rem 1.3rem; border-radius: 10px; }
.ebl-try-btn:focus-visible { outline: 2px solid var(--ink-0); outline-offset: 3px; }
.ebl-try-clear { background: none; border: 0; color: var(--ink-2); font-size: 17px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ======================================================================
   Supplement pages in rooms (render_supp_rooms.py), September 2026.
   Keyed to main.ebl-sp-rooms, so nothing changes on a page the renderer
   has not reached. Unboxes the cards the pages already carry; the safety
   block keeps its own color and is never unboxed.
   ====================================================================== */
.ebl-sp-rooms .ebl-wrap { padding: 0; }
.ebl-sp-rooms > nav:first-child { margin-bottom: 0; }
.ebl-sp-r1 { min-height: min(72svh, 700px); display: flex; align-items: center; padding: 3rem 0 4rem; overflow: visible; }
.ebl-sp-r1::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 56vw; height: 56vw; max-width: 640px; max-height: 640px; background: radial-gradient(closest-side, var(--lime-glow), transparent 70%); opacity: .5; pointer-events: none; }
.ebl-sp-r1-grid { position: relative; display: grid; gap: 1.6rem; align-items: end; width: 100%; }
@media (min-width: 900px) { .ebl-sp-r1-grid { grid-template-columns: auto minmax(0, 1fr); gap: 3.2rem; } }
.ebl-sp-letter { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(8rem, 17vw, 14rem); line-height: .74; }
.ebl-sp-letter.g-a { color: var(--lime); } .ebl-sp-letter.g-b { color: var(--blue); } .ebl-sp-letter.g-c { color: var(--amber); } .ebl-sp-letter.g-d { color: var(--rust); }
.ebl-sp-r1-id { min-width: 0; }
.ebl-sp-r1 h1 { overflow-wrap: anywhere; hyphens: auto; margin-top: .7rem; font-family: 'Geist', ui-sans-serif, system-ui, sans-serif !important; font-weight: 700; font-size: clamp(2.3rem, 3.6vw + .6rem, 4rem) !important; line-height: 1.03 !important; letter-spacing: -.03em; color: var(--ink-0); text-wrap: balance; }
.ebl-sp-for { margin-top: 1rem; font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); line-height: 1.45; color: var(--ink-1); max-width: 34rem; }
.ebl-sp-scope { margin-top: 1.2rem; font-size: 17px; line-height: 1.55; color: var(--ink-3); max-width: 34rem; }
.ebl-sp-r1 .ebl-sp-jump { margin-top: 1.6rem; }
.ebl-sp-state { min-height: min(46svh, 460px); display: flex; align-items: center; }
.ebl-sp-state-t { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.8rem, 2.2vw + 1rem, 3rem); line-height: 1.15; color: var(--ink-0); text-wrap: balance; }
.ebl-sp-state-t em { font-style: normal; color: var(--lime); }
.ebl-sp-uses { padding-top: 2rem; }
/* space between the sections the pages already carry */
.ebl-sp-rooms > div, .ebl-sp-rooms > details, .ebl-sp-rooms > section:not(.ebl-room) { margin-top: 4rem; }
/* unbox: bordered cards become ruled sections */
.ebl-sp-rooms .rounded-xl.border, .ebl-sp-rooms .card { background: transparent !important; border-width: 1px 0 0 0 !important; border-color: var(--line-strong) !important; border-radius: 0 !important; padding-left: 0 !important; padding-right: 0 !important; box-shadow: none !important; }
.ebl-sp-rooms .eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-size: 15.5px; }
.ebl-sp-rooms .text-\[14px\] { font-size: 16px; line-height: 1.65; }
.ebl-sp-rooms .text-\[13px\] { font-size: 15px; line-height: 1.6; }
.ebl-sp-rooms .text-\[12\.5px\], .ebl-sp-rooms .text-\[12px\] { font-size: 17px; }
@media (max-width: 640px) { .ebl-sp-r1 { min-height: 0; padding: 2rem 0 3rem; } .ebl-sp-state { min-height: 0; padding: 3rem 0; } }
@media print { .ebl-sp-r1, .ebl-sp-state { min-height: 0; padding: 1rem 0; } .ebl-sp-r1::before { display: none; } }
/* the per-use block, drawn like the prototype: big letters, no inner boxes */
.ebl-sp-rooms [data-ebl-usegrades] > .grid { gap: 0; }
.ebl-sp-rooms [data-ebl-usegrades] > .grid > div { padding: 1.6rem 0 !important; }
.ebl-sp-rooms [data-ebl-usegrades] .tier { font-family: 'Newsreader', Georgia, serif; font-size: 3rem; line-height: .8; background: none !important; border: 0 !important; padding: 0 .4rem 0 0; min-width: 2.6rem; }
.ebl-sp-rooms [data-ebl-usegrades] .tier-A { color: var(--lime); } .ebl-sp-rooms [data-ebl-usegrades] .tier-B { color: var(--blue); }
.ebl-sp-rooms [data-ebl-usegrades] .tier-C { color: var(--amber); } .ebl-sp-rooms [data-ebl-usegrades] .tier-D { color: var(--rust); }
.ebl-sp-rooms [data-ebl-usegrades] .text-\[15px\] { font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); }
.ebl-sp-rooms [data-ebl-usegrades] .rounded-lg { background: transparent !important; border: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.ebl-sp-rooms [data-ebl-usegrades] .text-\[9\.5px\], .ebl-sp-rooms [data-ebl-usegrades] .text-\[10px\] { font-size: 15.5px; }
.ebl-sp-rooms [data-ebl-usegrades] .text-\[12\.5px\] { font-size: 15px; }
.ebl-sp-rooms [data-ebl-usegrades] > .eyebrow { margin-bottom: 1rem; }
/* Lower rooms (September 2026). Room 1 carries the letter, so the small chip row that
   opened the old top card repeats it; it stays in the source and is hidden here. */
.ebl-sp-rooms .md\:col-span-7 > div.flex.items-center.gap-3.mb-3:first-child:has(> .tier) { display: none; }
.ebl-sp-rooms .text-\[9\.5px\], .ebl-sp-rooms .text-\[10px\], .ebl-sp-rooms .text-\[10\.5px\] { font-size: 15.5px; }
.ebl-sp-rooms .text-\[11px\], .ebl-sp-rooms .text-\[11\.5px\] { font-size: 16px; }
.ebl-sp-rooms .text-\[16px\] { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); line-height: 1.55; }
.ebl-sp-rooms > .grid { margin-top: 4.5rem; row-gap: 3rem; }
@media print { .ebl-sp-rooms .md\:col-span-7 > div.flex.items-center.gap-3.mb-3:first-child:has(> .tier) { display: flex; } }

/* ======================================================================
   Drug pages in rooms (render_drug_rooms.py), September 2026.
   Keyed to main.ebl-d-rooms. Room 1 shares the supplement room's grid;
   the numeral is the count of depletion rows, colored by the most severe.
   ====================================================================== */
.ebl-d-rooms .ebl-wrap { padding: 0; }
.ebl-d-r1 { min-height: min(64svh, 620px); display: flex; align-items: center; padding: 2.5rem 0 3.5rem; overflow: visible; }
.ebl-d-r1::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 56vw; height: 56vw; max-width: 640px; max-height: 640px; background: radial-gradient(closest-side, var(--lime-glow), transparent 70%); opacity: .35; pointer-events: none; }
.ebl-d-num { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(8rem, 17vw, 14rem); line-height: .74; }
.ebl-d-num.s-crit { color: #ff6b4a; } .ebl-d-num.s-mod { color: #ffb547; } .ebl-d-num.s-mild { color: #7cc5ff; }
.ebl-d-r1 h1 { overflow-wrap: anywhere; hyphens: auto; font-family: 'Geist', ui-sans-serif, system-ui, sans-serif !important; font-weight: 700; font-size: clamp(2.3rem, 3.6vw + .6rem, 4rem) !important; line-height: 1.03 !important; letter-spacing: -.03em; color: var(--ink-0); text-wrap: balance; }
.ebl-d-r1 .text-\[15px\] { font-size: 17px; }
.ebl-d-state { min-height: min(40svh, 400px); display: flex; align-items: center; }
.ebl-d-rooms .ebl-sp-state-t em { font-style: normal; color: var(--lime); }
.ebl-d-rooms > .space-y-4 { margin-top: 3rem; }
.ebl-d-rooms > .space-y-4 > * + * { margin-top: 0 !important; }
.ebl-d-rooms .card, .ebl-d-rooms .rounded-xl.border { background: transparent !important; border-width: 1px 0 0 0 !important; border-color: var(--line-strong) !important; border-radius: 0 !important; padding: 2.4rem 0 !important; box-shadow: none !important; }
.ebl-d-rooms .card .font-display.text-\[22px\] { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.6rem); line-height: 1.1; }
.ebl-d-rooms .text-\[14px\] { font-size: 16px; line-height: 1.65; }
.ebl-d-rooms .text-\[12px\], .ebl-d-rooms .text-\[12\.5px\] { font-size: 17px; }
.ebl-d-rooms .text-\[10px\], .ebl-d-rooms .text-\[11px\] { font-size: 15.5px; }
.ebl-d-rooms .card .rounded-lg { padding: 1.1rem 1.25rem; }
.ebl-d-rooms > .mt-10.card { margin-top: 4rem; }
@media (max-width: 640px) { .ebl-d-r1 { min-height: 0; padding: 2rem 0 3rem; } .ebl-d-state { min-height: 0; padding: 3rem 0; } }
@media print { .ebl-d-r1, .ebl-d-state { min-height: 0; padding: 1rem 0; } .ebl-d-r1::before { display: none; } }

/* ======================================================================
   Condition pages in rooms (render_condition_rooms.py), September 2026.
   Keyed to main.ebl-c-rooms. Room 1 is the title; Room 2 counts the letters
   the rows below print. Cautions (a card with an inline color) keep their box.
   ====================================================================== */
.ebl-c-rooms .ebl-wrap { padding: 0; }
.ebl-c-r1 { min-height: min(52svh, 520px); display: flex; align-items: center; padding: 2.5rem 0 3rem; overflow: visible; }
.ebl-c-r1::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 56vw; height: 56vw; max-width: 640px; max-height: 640px; background: radial-gradient(closest-side, var(--lime-glow), transparent 70%); opacity: .35; pointer-events: none; }
.ebl-c-r1-id { position: relative; min-width: 0; }
.ebl-c-r1 h1 { overflow-wrap: anywhere; hyphens: auto; font-family: 'Geist', ui-sans-serif, system-ui, sans-serif !important; font-weight: 700; font-size: clamp(2.6rem, 4.4vw + .6rem, 5rem) !important; line-height: 1.02 !important; letter-spacing: -.035em; color: var(--ink-0); text-wrap: balance; }
.ebl-c-r1 .text-\[18px\] { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.35rem, 1vw + 1.1rem, 1.8rem); line-height: 1.35; color: var(--ink-1); }
.ebl-c-tally { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line-strong); }
.ebl-c-cells { display: flex; flex-wrap: wrap; gap: 1.2rem 2.8rem; margin-top: 1.4rem; }
.ebl-c-cell { display: flex; align-items: baseline; gap: .7rem; }
.ebl-c-l { font-family: 'Newsreader', Georgia, serif; font-size: clamp(3.4rem, 5vw, 5.2rem); line-height: .9; }
.ebl-c-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.4rem; color: var(--ink-1); }
.ebl-c-cell.g-a .ebl-c-l { color: var(--lime); } .ebl-c-cell.g-b .ebl-c-l { color: var(--blue); }
.ebl-c-cell.g-c .ebl-c-l { color: var(--amber); } .ebl-c-cell.g-d .ebl-c-l { color: var(--rust); }
.ebl-c-cell.g-ng .ebl-c-l { color: var(--ink-3); font-size: clamp(2rem, 3vw, 3rem); }
.ebl-c-cell.is-zero { opacity: .28; }
.ebl-c-say { margin-top: 1.6rem; font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); line-height: 1.5; color: var(--ink-1); max-width: 40rem; }
.ebl-c-rooms > .mt-10 { margin-top: 4rem; }
.ebl-c-rooms .card:not([style]) { background: transparent !important; border-width: 1px 0 0 0 !important; border-color: var(--line-strong) !important; border-radius: 0 !important; box-shadow: none !important; }
.ebl-c-rooms .card:not([style]) > .flex, .ebl-c-rooms .card:not([style]) > .block > .flex, .ebl-c-rooms .card:not([style]) > a > .flex { padding: 1.5rem 0; }
.ebl-c-rooms .font-display.text-\[16px\] { font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); }
.ebl-c-rooms .tier { width: auto; height: auto; font-family: 'Newsreader', Georgia, serif; font-size: 2.2rem; line-height: .9; background: none !important; border: 0 !important; padding: 0 .3rem 0 0; min-width: 2.4rem; }
.ebl-c-rooms .tier-A { color: var(--lime); } .ebl-c-rooms .tier-B { color: var(--blue); } .ebl-c-rooms .tier-C { color: var(--amber); } .ebl-c-rooms .tier-D { color: var(--rust); }
.ebl-c-rooms .tier-NA { color: var(--ink-3); font-size: 1.3rem; padding-top: .35rem; }
.ebl-c-rooms .text-\[14px\] { font-size: 16px; line-height: 1.65; }
.ebl-c-rooms .text-\[13px\] { font-size: 15px; line-height: 1.6; }
.ebl-c-rooms .text-\[12px\], .ebl-c-rooms .text-\[12\.5px\] { font-size: 17px; }
.ebl-c-rooms .text-\[10px\], .ebl-c-rooms .text-\[11px\] { font-size: 15.5px; }
@media (max-width: 640px) { .ebl-c-r1 { min-height: 0; padding: 2rem 0 2.5rem; } .ebl-c-cells { gap: 1rem 1.8rem; } }
@media print { .ebl-c-r1 { min-height: 0; padding: 1rem 0; } .ebl-c-r1::before { display: none; } }

/* ======================================================================
   Device and protocol pages in rooms (render_device_rooms.py), September 2026.
   Main carries ebl-dv-rooms AND ebl-sp-rooms, so the supplement room styles
   apply; these rules hide the small chip the letter room now repeats.
   ====================================================================== */
.ebl-dv-rooms .flex.items-start.gap-4.mb-4 > .tier.shrink-0:first-child { display: none; }
.ebl-dv-rooms .flex.items-center.gap-3.mt-5.mb-1:has(> .tier) { display: none; }
.ebl-dv-rooms .text-\[15px\] { font-size: 17px; line-height: 1.6; }
@media print { .ebl-dv-rooms .flex.items-start.gap-4.mb-4 > .tier.shrink-0:first-child { display: flex; } .ebl-dv-rooms .flex.items-center.gap-3.mt-5.mb-1:has(> .tier) { display: flex; } }
/* the per-use block on device and protocol pages, unboxed with large letters */
.ebl-dv-uses .card, .ebl-dv-uses .rounded-xl { background: transparent !important; border: 0 !important; border-top: 1px solid var(--line-strong) !important; border-radius: 0 !important; padding: 1.5rem 0 !important; margin: 0 !important; }
.ebl-dv-uses > .ebl-wrap > .card { border-top: 0 !important; padding-top: 0 !important; }
.ebl-dv-uses .tier { width: auto !important; height: auto !important; font-family: 'Newsreader', Georgia, serif; font-size: 2.6rem !important; line-height: .9; background: none !important; border: 0 !important; padding: 0 .4rem 0 0; min-width: 2.4rem; }
.ebl-dv-uses .tier-A { color: var(--lime); } .ebl-dv-uses .tier-B { color: var(--blue); } .ebl-dv-uses .tier-C { color: var(--amber); } .ebl-dv-uses .tier-D { color: var(--rust); }
.ebl-dv-uses .text-\[14px\].text-ink-0 { font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); }
.ebl-dv-uses .text-\[13px\] { font-size: 15px; line-height: 1.6; }
/* tighter rhythm on these pages: the statement room does not need half a screen */
.ebl-dv-rooms .ebl-sp-state { min-height: 0; padding: 3.5rem 0; }
.ebl-dv-rooms .ebl-dv-r1 { min-height: min(60svh, 600px); }

/* ======================================================================
   Hand-written pages in rooms (render_page_rooms.py), October 2026.
   main.ebl-pg-rooms; the section holding the <h1> is .ebl-pg-hero.
   ====================================================================== */
.ebl-pg-rooms .ebl-pg-hero { position: relative; min-height: min(62svh, 620px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left !important; max-width: 72rem !important; padding-top: 4rem !important; padding-bottom: 4rem !important; overflow: visible; }
.ebl-pg-rooms .ebl-pg-hero::before { content: ""; position: absolute; inset: -10% 0 auto auto; width: 56vw; height: 56vw; max-width: 640px; max-height: 640px; background: radial-gradient(closest-side, var(--lime-glow), transparent 70%); opacity: .4; pointer-events: none; z-index: -1; }
.ebl-pg-rooms .ebl-pg-hero > .inline-flex.rounded-full { border: 0 !important; background: none !important; padding: 0 !important; margin-bottom: 1rem; }
.ebl-pg-rooms .ebl-pg-hero > .inline-flex.rounded-full > .rounded-full { display: none; }
.ebl-pg-rooms .ebl-pg-hero h1 { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif !important; font-weight: 700 !important; font-size: clamp(2.6rem, 4.6vw + .6rem, 5rem) !important; line-height: 1.02 !important; letter-spacing: -.035em; color: var(--ink-0); max-width: 18ch; text-wrap: balance; margin-left: 0 !important; overflow-wrap: anywhere; }
.ebl-pg-rooms .ebl-pg-hero h1 .text-ink-2 { color: var(--ink-2); }
.ebl-pg-rooms .ebl-pg-hero h1 + p { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.3rem, 1vw + 1.1rem, 1.75rem) !important; line-height: 1.4 !important; color: var(--ink-1) !important; max-width: 40rem !important; margin-left: 0 !important; margin-top: 1.6rem !important; }
.ebl-pg-rooms .ebl-pg-hero > p:not(:first-of-type) { font-size: 17px; max-width: 40rem; margin-left: 0 !important; }
.ebl-pg-rooms .ebl-pg-hero .justify-center { justify-content: flex-start !important; }
.ebl-pg-rooms .ebl-pg-hero .mx-auto { margin-left: 0 !important; }
.ebl-pg-rooms .glow { display: none; }
/* single feature boxes become ruled sections; grids of cards keep their boxes */
.ebl-pg-rooms section > .rounded-2xl.border, .ebl-pg-rooms section > .rounded-xl.border, .ebl-pg-rooms section > .card:not([style]) { background: transparent !important; border-width: 1px 0 0 0 !important; border-color: var(--line-strong) !important; border-radius: 0 !important; padding-left: 0 !important; padding-right: 0 !important; box-shadow: none !important; }
.ebl-pg-rooms section > .rounded-2xl.border p.font-display { font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem) !important; line-height: 1.3 !important; }
.ebl-pg-rooms .text-\[14px\] { font-size: 16px; line-height: 1.65; }
.ebl-pg-rooms .text-\[15px\] { font-size: 17px; line-height: 1.65; }
.ebl-pg-rooms .text-\[13px\] { font-size: 15px; }
.ebl-pg-rooms .text-\[12px\] { font-size: 17px; }
.ebl-pg-rooms .text-\[10px\], .ebl-pg-rooms .text-\[9px\] { font-size: 15.5px; }
@media (max-width: 640px) { .ebl-pg-rooms .ebl-pg-hero { min-height: 0; padding-top: 2.5rem !important; padding-bottom: 3rem !important; } }
@media print { .ebl-pg-rooms .ebl-pg-hero { min-height: 0; } .ebl-pg-rooms .ebl-pg-hero::before { display: none; } }
/* lighter treatment: the <h1> sits directly in <main> (render_page_rooms.py flat mode) */
.ebl-pg-rooms h1.ebl-pg-title { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif !important; font-weight: 700 !important; font-size: clamp(2.3rem, 3.6vw + .6rem, 4.2rem) !important; line-height: 1.04 !important; letter-spacing: -.03em; color: var(--ink-0); text-wrap: balance; overflow-wrap: anywhere; margin-top: 2.5rem; margin-bottom: 1.4rem; }
.ebl-pg-rooms h1.ebl-pg-title + p { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.2rem, .8vw + 1.05rem, 1.55rem) !important; line-height: 1.45 !important; color: var(--ink-1) !important; max-width: 42rem; }
/* figures set never to wrap must wrap on a phone, or the page scrolls sideways */
@media (max-width: 640px) { .ebl-pg-rooms .whitespace-nowrap { white-space: normal; } }

/* ---------- record headings stand down on a phone (November 2026, Arnold) -------
   The five rules above size a record page's <h1> with !important, and at phone
   width they overrode a size this site had already chosen twice:

     assets/styles.css line 908   html { font-size: 18px }   under 640px
     the page markup              text-[30px] on 173 record pages,
                                  text-[34px] on 110, text-[38px] on 11

   A rem is 18px on a phone here, not the 16px a browser defaults to, so those
   clamp minimums resolved to 41.4px and 46.8px against a 30 to 38px intent.
   `.h-hero` in styles.css is specificity 0,1,0 and `.ebl-d-r1 h1` is 0,1,1, so
   rooms.css won every time, and nobody saw it because a heading that is too big
   breaks no check: it overflows nothing, throws nothing, and fits the screen.

   Measured in a browser on the built tree at 390px, across all 381 record pages:

                                        as published   standing down
     headings of 4 lines or more            118             62
     of 5, 6 or 7 lines                      54             21
     total heading lines, all 381 pages   1,152            951
     heading box past the right edge          0              0
     orphaned closing bracket                 1              1

   118 record pages opened with a four to seven line headline, 170 to 290 pixels
   of title before a reader saw anything. The orphaned bracket that started this
   work was the smallest part of it, and it moves rather than disappears:
   s/nmn.html is fixed and s/5-htp.html gains one, because a shorter line moves
   where the break lands. That trade was made deliberately. Orphaned brackets are
   not the measure; lines of heading are.

   WHY A FLAT SIZE AND NOT A CLAMP. The first version of this rule referenced the
   declaration styles.css gives .h-hero under 640px, clamp(2rem, 8vw, 3rem), on
   the principle that inheriting the site's own decision beats inventing a number.
   Measured across the width range, it made headings 30% BIGGER from about 517px
   up: 8vw grows with the viewport, so that declaration only yields 36px near
   phone width and is already 51.1px by 639px. styles.css scopes it to 640px and
   pairs it with a separate tablet rule, clamp(2.4rem, 5vw, 3.5rem), so lifting it
   out of its breakpoint used it outside the range it was written for. A flat size
   cannot do that: everything above the breakpoint is untouched by construction
   rather than by getting a curve right. 34px is the size the largest group of
   record pages already asks for in their own markup.

   gate_g439_record_heading_phone.py holds this: a flat size with no viewport
   unit in it, inside the 30 to 38px range the page markup authors, scoped at or
   below the 640px breakpoint styles.css uses. That gate fails the clamp version.
   Verified at 390, 414, 640, 700, 767, 768, 1024, 1366 and 1440px: nothing at
   768px and above changes by a single pixel. */
@media (max-width: 639px) {
  .ebl-sp-r1 h1,
  .ebl-d-r1 h1,
  .ebl-c-r1 h1,
  .ebl-pg-rooms .ebl-pg-hero h1,
  .ebl-pg-rooms h1.ebl-pg-title { font-size: 34px !important; }
}


/* ---------- latest-changes ticker (restored October 2026, homepage) ----------
   One thin line under the top menu. The scrolling itself is the existing
   .marquee / .marquee__track in styles.css; this adds the frame, the label,
   the pause control and the reduced-motion fallback. gate_g199. */
.ebl-ticker { display: flex; align-items: center; gap: .9rem; padding: .45rem 1.1rem; border-top: 1px solid var(--line); background: var(--bg-1); font-size: 16px; line-height: 1.4; color: var(--ink-1); }
.ebl-ticker-k { flex: 0 0 auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.ebl-ticker-k:hover { text-decoration: underline; }
.ebl-ticker-view { flex: 1 1 auto; min-width: 0; }
.ebl-ticker-view .marquee__track { gap: 2.6rem; white-space: nowrap; animation-duration: 192s !important; } /* October 2026 (Arnold): about 17% slower than the 160s every other marquee uses (styles.css, also !important) */
.ebl-ticker-view a { color: var(--ink-1); }
.ebl-ticker-view a:hover { color: var(--lime); }
/* October 2026: keyboard focus pauses the strip only when it is on a link INSIDE the strip.
   It used to be focus anywhere in .ebl-ticker, which included the Pause button itself:
   after a click the button kept focus, so Play changed the label and the strip stayed paused. */
.ebl-ticker.is-paused .marquee__track, .ebl-ticker-view:focus-within .marquee__track { animation-play-state: paused; }
.ebl-ticker-pause { flex: 0 0 auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: .25rem .7rem; cursor: pointer; }
.ebl-ticker-pause:hover { color: var(--ink-0); border-color: var(--ink-3); }
/* October 2026: with JavaScript the strip is a native horizontal scroller that app.js nudges
   (startTickerScroll), so a finger or trackpad can move it. The CSS transform is switched off
   and the scrollbar hidden; the edge fade from .marquee stays. */
.ebl-ticker.is-js .ebl-ticker-view { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.ebl-ticker.is-js .ebl-ticker-view::-webkit-scrollbar { display: none; }
.ebl-ticker.is-js .ebl-ticker-view .marquee__track { animation: none !important; transform: none !important; }
/* October 2026: an empty strip (no JavaScript, or an empty log) is not drawn at all, rather than a label beside a blank track and a Pause button for nothing. */
.ebl-ticker:not(:has(#ticker-track > *)) { display: none; }
.ebl-ticker-pause:focus-visible, .ebl-ticker-k:focus-visible, .ebl-ticker-view a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
/* November 2026 (Arnold): the strip moved to the bottom of the homepage, so its top rule replaces the bottom rule it had under the menu. On phones the label stays hidden: tried visible, it left room for only a few letters of the moving line. */
@media (max-width: 639px) { .ebl-ticker { gap: .6rem; padding: .4rem .8rem; font-size: 16px; } .ebl-ticker-k { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ebl-ticker-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ebl-ticker-view .marquee__track { animation: none !important; transform: none !important; }
  .ebl-ticker-view [aria-hidden="true"] { display: none; }
  .ebl-ticker-pause { display: none; }
}


/* ---------- chapters (homepage, October 2026, Arnold: "Chapters Lite") ----------
   Every top-level homepage room carries .ebl-chaptered and a small chapter
   number; every second room also carries .ebl-band, a lifted charcoal, so
   the rooms can be counted at a glance. The bands do the separating; the
   boundary is a faint neutral line, not lime. No glow, no outer container.
   The number is decorative (aria-hidden): the room headings already carry
   the structure for assistive technology. gate_g200 holds the sequence. */
:root { --band: #111815; --chap: rgba(198, 255, 58, 0.5); }
.ebl-chaptered { position: relative; }
/* Room padding is raised so every room clears its number and gets more air.
   The hero keeps its own vertical centering; it only gains top room. */
.ebl-chaptered.ebl-room:not(.ebl-hero):not(.ebl-hub-open) { padding-top: 4.75rem; padding-bottom: 4.75rem; }
.ebl-hero.ebl-chaptered { padding-top: 4.25rem; }
.ebl-band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ebl-chap { position: absolute; top: 2rem; left: max(1.4rem, calc((100% - 68rem) / 2 + 1.4rem)); z-index: 2; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15.5px; letter-spacing: .2em; color: var(--chap); pointer-events: none; }
@media (min-width: 900px) {
  .ebl-chaptered.ebl-room:not(.ebl-hero):not(.ebl-hub-open) { padding-top: 8.5rem; padding-bottom: 8.25rem; }
  .ebl-hero.ebl-chaptered { padding-top: 5rem; }
  .ebl-chap { top: 2.6rem; left: max(2.5rem, calc((100% - 68rem) / 2 + 2.5rem)); }
}

/* Hub pages (October 2026). render_room_chapters.py stamps the numbers and bands
   on every room page. A room inside a narrower container (Learn's former tab
   panels, Testing's catalog) gets .ebl-bleed: the band is drawn edge to edge
   with a box-shadow and clipped to the room's own height, so it reads as a
   full-width band, never as a box. Its number sits on the container's edge. */
.ebl-band.ebl-bleed { border-top: 0; border-bottom: 0; box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.ebl-wrap .ebl-chaptered > .ebl-chap { left: 0; }
.ebl-catalog.ebl-chaptered > .ebl-chap { left: 1.25rem; }
@media (min-width: 768px) { .ebl-catalog.ebl-chaptered > .ebl-chap { left: 2rem; } }
.ebl-hub-open.ebl-chaptered > .ebl-chap, .ebl-hero.ebl-chaptered > .ebl-chap { top: 1.6rem; }

/* Fade-up for browsers without scroll-driven animation (Safari, Firefox),
   October 2026. assets/app.js adds .ebl-rv-io to <html> only where
   animation-timeline is unsupported and motion is allowed, then marks each
   .ebl-rv .is-in as it scrolls into view. Without JavaScript nothing is
   hidden. Chrome and Edge keep the scroll-driven version above. */
@media (prefers-reduced-motion: no-preference) {
  .ebl-rv-io .ebl-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
  .ebl-rv-io .ebl-rv.is-in { opacity: 1; transform: none; }
}
@media print { .ebl-rv-io .ebl-rv { opacity: 1 !important; transform: none !important; } .ebl-chap { display: none; } }

/* Drug-nutrient picture, added 2026-10, written by render_drug_rooms.depletion_map.
   HTML rather than an image so it uses the page fonts, reflows on a phone and
   reads aloud in order. Colors are the severity colors the cards below use. */
.ebl-d-map { padding: 2.5rem 0 3rem; }
.ebl-dmap-k { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.ebl-dmap { display: grid; grid-template-columns: minmax(0, 14rem) auto minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.ebl-dmap-drug { border: 1px solid var(--line-strong); border-radius: 14px; padding: 1.1rem 1.25rem; background: var(--bg-2); color: var(--ink-0); font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.3; }
.ebl-dmap-arrow { position: relative; min-width: 6.5rem; height: 2rem; display: flex; align-items: flex-start; justify-content: center; }
.ebl-dmap-arrow::before { content: ""; position: absolute; left: 0; right: 10px; top: 1.45rem; border-top: 1.5px solid var(--ink-2); }
.ebl-dmap-arrow::after { content: ""; position: absolute; right: 0; top: calc(1.45rem - 5px); border-left: 10px solid var(--ink-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ebl-dmap-arrow span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15.5px; color: var(--ink-3); }
.ebl-dmap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ebl-dmap-row { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: .75rem; align-items: baseline; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; background: var(--bg-2); }
.ebl-dmap-dot { width: 12px; height: 12px; border-radius: 999px; grid-row: span 2; align-self: center; }
.ebl-dmap-n { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 17px; color: var(--ink-0); }
.ebl-dmap-m { font-size: 17px; color: var(--ink-2); }
.ebl-dmap-row.s-crit .ebl-dmap-dot { background: #ff6b4a; } .ebl-dmap-row.s-crit { border-color: rgba(255,107,74,0.35); }
.ebl-dmap-row.s-mod .ebl-dmap-dot { background: #ffb547; } .ebl-dmap-row.s-mod { border-color: rgba(255,181,71,0.35); }
.ebl-dmap-row.s-mild .ebl-dmap-dot { background: #7cc5ff; } .ebl-dmap-row.s-mild { border-color: rgba(124,197,255,0.30); }
.ebl-dmap-note { margin-top: 1.1rem; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 46rem; }
@media (max-width: 640px) {
  .ebl-dmap { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .ebl-dmap-arrow { min-width: 0; height: 2.2rem; justify-content: flex-start; padding-left: 1.6rem; }
  .ebl-dmap-arrow::before { left: .55rem; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px solid var(--ink-2); }
  .ebl-dmap-arrow::after { left: calc(.55rem - 5px); right: auto; top: auto; bottom: -2px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid var(--ink-2); border-bottom: 0; }
  .ebl-dmap-arrow span { line-height: 2.2rem; }
}

/* COMPACT RECORD PAGES: the rules written here in October 2026 moved to
   assets/compact.css the same day, because /rx/ pages are compacted too and
   do not load this sheet. render_supp_compact.py links compact.css on every
   page it compacts. */

/* ---------- chapter numbers on the label line (October 2026, Arnold) ----------
   Arnold, on start-patients: the "02", "03" numbers sat alone on their own line
   under a tall band of empty padding, and the label then sat apart from its
   heading behind a divider rule. On explainer pages the number now prints on
   the same line as the room's label ("02 · FOUR STEPS"), the room padding is
   cut back, and the heading follows its label directly. The HTML number from
   render_room_chapters.py stays in place (gate_g200 still holds the sequence);
   where the room has a label it is hidden and a CSS counter prints the same
   number, which matches because every page's numbers run 01, 02, 03 in document
   order. A room with no label (a closing statement, a lone paragraph) keeps
   its own number, aligned to the content edge, one line above the text. */
main.ebl-x-explainer { counter-reset: ebl-chap; }
main.ebl-x-explainer .ebl-chaptered { counter-increment: ebl-chap; }
main.ebl-x-explainer .ebl-chaptered > .ebl-chap { left: 0; }
main.ebl-x-explainer .ebl-chaptered:has(> .ebl-chap + .ebl-wrap > .ebl-k:first-child) > .ebl-chap,
main.ebl-x-explainer .ebl-chaptered:has(> .ebl-chap + .ebl-wrap > div:first-child > .ebl-k:first-child) > .ebl-chap,
main.ebl-x-explainer .ebl-chaptered:has(> .ebl-chap + .eyebrow) > .ebl-chap { display: none; }
main.ebl-x-explainer .ebl-chaptered > .ebl-chap + .ebl-wrap > .ebl-k:first-child::before,
main.ebl-x-explainer .ebl-chaptered > .ebl-chap + .ebl-wrap > div:first-child > .ebl-k:first-child::before,
main.ebl-x-explainer .ebl-chaptered > .ebl-chap + .eyebrow::before { content: counter(ebl-chap, decimal-leading-zero) "\00a0\00a0\00b7\00a0\00a0"; color: var(--chap); }
main.ebl-x-explainer .ebl-chaptered.ebl-room:not(.ebl-hero):not(.ebl-hub-open) { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 900px) {
  main.ebl-x-explainer .ebl-chaptered.ebl-room:not(.ebl-hero):not(.ebl-hub-open) { padding-top: 3.75rem; padding-bottom: 3.75rem; }
}
html:root main.ebl-x-explainer .ebl-chaptered .ebl-k + h2,
html:root main.ebl-x-explainer .ebl-chaptered .eyebrow + h2 { margin-top: .6rem !important; padding-top: 0 !important; border-top: 0 !important; }
/* A closing statement room (.ebl-pause) has no label: its number sits directly
   above the statement instead of alone at the top of a tall empty room, and
   the room is shortened from 78% of the screen to 46%. */
main.ebl-x-explainer .ebl-pause.ebl-chaptered { min-height: min(46svh, 440px); flex-direction: column; align-items: stretch; justify-content: center; }
main.ebl-x-explainer .ebl-pause.ebl-chaptered > .ebl-chap { position: static; display: block; margin-bottom: .6rem; }
html:root main.ebl-x-explainer .ebl-pause.ebl-chaptered > .ebl-wrap > h2:first-child { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
/* Brighter numbers and labels (October 2026, Arnold: "too dark, lighten up
   the letters"). Section labels and the "On this page" label move from gray
   (#979e95 / #a3aaa1) to --ink-1 (#c9cfc6); section numbers from 50% lime and
   the numbered-step digits (01 to 04) from 75% lime, both to 90% lime. */
html:root main.ebl-x-explainer .ebl-chaptered :is(.ebl-k, .eyebrow, .ebl-x-label) { color: var(--ink-1); }
html:root main.ebl-x-explainer .ebl-chaptered { --chap: rgba(198, 255, 58, 0.9); }
html:root main.ebl-x-explainer .ebl-chaptered .sh-steps > li::before { color: rgba(198, 255, 58, 0.9); }
/* Opening room, tightened (October 2026, Arnold: the gap between the "On this
   page" links and section 02 was still too large). On explainer pages the
   opening room no longer stretches to 72% of the screen and centers its text
   in that height; it is as tall as its content plus the heading block's own
   padding, so the opening sits closer under the top bar and section 02 follows
   the "On this page" links directly. */
main.ebl-x-explainer .ebl-hub-open.ebl-chaptered { min-height: 0; padding-top: 0; padding-bottom: 0; }
html:root main.ebl-x-explainer .ebl-hub-open.ebl-chaptered > .ebl-x-lhead { padding-bottom: 1rem !important; }
/* ==========================================================================
   system.css -- the EBL page system. One grid, one spacing scale, four type
   sizes, seven building blocks. Approved by Arnold October 2026.

   Linked on every served page by render_page_template.py, which also marks
   <body data-ebl-template="home|listing|record|explainer|tool|utility">.

   PACKAGE 1 (foundation): tokens and block classes only. No rule below
   targets an existing element, so nothing on the site moves until a page
   type is converted and its pages are assembled from these blocks.

   Colors come from the :root tokens in styles.css (no new color here, so
   gate_g20_color_tokens has nothing to reconcile). Every size is at or
   above the reading floor in type-floor.css.
   ========================================================================== */

:root {
  /* The grid: three widths, no others */
  --x-w-full: 1200px;     /* page frame (px, not rem: root size differs between pages) */
  --x-w-read: 720px;      /* any running text */
  --x-w-side: 240px;      /* "On this page" column on long pages */
  --x-gutter: 1rem;       /* 16px: phone side margin */

  /* The spacing: two gaps decide the rhythm */
  --x-gap-section: 6rem;  /* 96px between sections */
  --x-gap-block: 1.5rem;  /* 24px between blocks inside a section */
  --x-gap-inner: 1rem;    /* 16px inside a card */
  --x-gap-tight: 0.5rem;  /* 8px inside a card */

  /* The type: four sizes */
  --x-fs-title: clamp(2.25rem, 4.5vw, 3rem);
  --x-fs-h2: clamp(1.5rem, 3vw, 1.75rem);
  --x-fs-body: 1.0625rem; /* 17px */
  --x-fs-label: 17px; /* 14px */
  --x-lh-body: 1.6;

  --x-font-display: 'Newsreader', Georgia, serif;
  --x-font-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --x-font-label: 'JetBrains Mono', ui-monospace, monospace;

  --x-radius: var(--radius-card);
}

/* ---- Frame ------------------------------------------------------------- */
.ebl-x-page { max-width: var(--x-w-full); margin: 0 auto; padding: 3rem var(--x-gutter) var(--x-gap-section); }
.ebl-x-layout { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; }
.ebl-x-side { flex: 1 1 13rem; max-width: var(--x-w-side); }
.ebl-x-body { flex: 999 1 35rem; min-width: 0; display: flex; flex-direction: column; gap: 4.5rem; }

/* ---- 1. Page header ---------------------------------------------------- */
.ebl-x-header { display: flex; flex-direction: column; gap: var(--x-gap-inner); margin-bottom: 2.5rem; }
.ebl-x-header .ebl-x-crumb { font-size: var(--x-fs-label); color: var(--ink-2); }
.ebl-x-header h1 { font-family: var(--x-font-display); font-size: var(--x-fs-title); line-height: 1.1; font-weight: 600; margin: 0; color: var(--ink-0); }
.ebl-x-header .ebl-x-lede { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-1); max-width: var(--x-w-read); margin: 0; }

/* ---- 2. Summary panel -------------------------------------------------- */
.ebl-x-summary { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--x-radius); padding: 1.75rem; display: flex; flex-direction: column; gap: var(--x-gap-block); }

/* ---- 3. Section -------------------------------------------------------- */
.ebl-x-section { display: flex; flex-direction: column; gap: var(--x-gap-block); }
.ebl-x-section > h2 { font-family: var(--x-font-display); font-size: var(--x-fs-h2); font-weight: 600; line-height: 1.2; margin: 0; color: var(--ink-0); }
.ebl-x-section > p, .ebl-x-section > ul, .ebl-x-section > ol { max-width: var(--x-w-read); font-size: var(--x-fs-body); line-height: var(--x-lh-body); color: var(--ink-1); margin: 0; }

/* ---- 4. Card grid: equal height, same fields --------------------------- */
.ebl-x-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--x-gap-inner); }
.ebl-x-card { border: 1px solid var(--line-strong); border-radius: var(--x-radius); padding: 1.25rem; display: flex; flex-direction: column; gap: var(--x-gap-tight); min-height: 9rem; }
.ebl-x-card > :last-child { margin-top: auto; }

/* ---- 5. Table ---------------------------------------------------------- */
.ebl-x-table { overflow-x: auto; }
.ebl-x-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ebl-x-table th { text-align: left; font-family: var(--x-font-label); font-size: var(--x-fs-label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: .625rem .75rem .625rem 0; }
.ebl-x-table td { border-top: 1px solid var(--line-strong); padding: .875rem .75rem .875rem 0; color: var(--ink-1); vertical-align: top; }

/* ---- 6. Note: one style of callout ------------------------------------- */
.ebl-x-note { max-width: var(--x-w-read); border: 1px solid var(--line-strong); border-radius: var(--x-radius); padding: 1.125rem 1.25rem; font-size: var(--x-fs-body); line-height: var(--x-lh-body); color: var(--ink-1); }
.ebl-x-note > .ebl-x-label { display: block; margin-bottom: .375rem; }

/* ---- 7. Collapsed detail ----------------------------------------------- */
.ebl-x-fold { max-width: var(--x-w-read); border: 1px solid var(--line-strong); border-radius: var(--x-radius); padding: 1rem 1.25rem; }
.ebl-x-fold > summary { cursor: pointer; font-weight: 600; color: var(--ink-0); min-height: 1.75rem; }
.ebl-x-fold[open] > summary { margin-bottom: .75rem; }

/* ---- Shared label ------------------------------------------------------ */
.ebl-x-label { font-family: var(--x-font-label); font-size: var(--x-fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 640px) {
  .ebl-x-body { gap: 3.5rem; }
  .ebl-x-summary { padding: 1.25rem; }
}

/* ==========================================================================
   RECORD PAGES, ASSEMBLED (package 2). Keyed to main.ebl-x-assembled, which
   render_record_assemble.py writes only on pages it has rebuilt into the
   section order: header, then a side menu beside seven sections. Earlier
   layers (rooms.css, compact.css) styled direct children of <main> and the
   old two-column grid; on an assembled page those positions no longer exist,
   and the rules below set one spacing and one width for everything.
   ========================================================================== */
main.ebl-x-assembled { max-width: var(--x-w-full) !important; }
main.ebl-x-assembled > .ebl-x-rec { margin-top: 2.5rem !important; }
main.ebl-x-assembled .ebl-sp-r1 { padding-bottom: 1rem !important; }

/* side menu: one list, beside the sections on wide screens, above them on a phone */
.ebl-x-rec > .ebl-x-side { position: sticky; top: 6.5rem; }
.ebl-x-rec .ebl-x-menu { display: flex !important; flex-direction: column; gap: .125rem !important; border-top: 1px solid var(--line-strong); padding-top: .875rem; }
.ebl-x-rec .ebl-x-menu .ebl-x-label { margin-bottom: .5rem; }
.ebl-x-rec .ebl-x-menu a { display: block; border: 0 !important; background: none !important; border-radius: 0 !important; padding: .375rem 0 !important; font-size: 1rem !important; color: var(--ink-1) !important; text-decoration: none; }
.ebl-x-rec .ebl-x-menu a:hover { color: var(--lime) !important; }

/* sections: same heading, same rule above, same gap, every time */
.ebl-x-rec > .ebl-x-body { gap: 3.5rem; max-width: 52rem; }
.ebl-x-rec-sec { scroll-margin-top: 6rem; border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.ebl-x-rec-sec > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.ebl-x-rec-sec > .ebl-sp-anchor { display: none; }
.ebl-x-rec-sec > h2.ebl-x-h2 { font-size: var(--x-fs-h2); }

/* blocks that were rooms keep their content, not their room-sized padding or bands */
.ebl-x-rec-sec .ebl-room { padding: 0 !important; min-height: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; }
.ebl-x-rec-sec .ebl-room > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.ebl-x-rec-sec .ebl-sp-state-t { text-align: left !important; }
.ebl-x-rec-sec .ebl-x-h2 + .ebl-room .eyebrow:first-child { display: none; }

/* running text at reading width; grids and cards may use the full body */
.ebl-x-rec-sec > p, .ebl-x-rec-sec > section > p { max-width: var(--x-w-read); }
/* the molecule card: picture and caption on the left, its facts on the right,
   so the card fills the width instead of leaving half of it empty */
.ebl-x-rec-sec > figure { max-width: none; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: 2rem; align-items: start; }
.ebl-x-rec-sec > figure > * { grid-column: 2; }
.ebl-x-rec-sec > figure > :first-child { grid-column: 1; grid-row: 1; }
.ebl-x-rec-sec > figure > figcaption { grid-column: 1; grid-row: 2; }
.ebl-x-rec-sec > figure > :nth-child(n+3) { grid-row: 1 / span 3; }
.ebl-x-rec-sec > figure > dl { border-top: 0 !important; }
/* the first block under a heading does not draw a second rule */
.ebl-x-rec-sec > h2 + *, .ebl-x-rec-sec > h2 + * > :first-child { border-top: 0 !important; padding-top: 0 !important; }
/* every fold looks the same, including the hand-authored ones */
.ebl-x-rec-sec > details:not(.ebl-cx-fold):not(.ebl-sp-fold) { border: 1px solid var(--line) !important; border-radius: 12px !important; padding: .75rem 1rem !important; background: transparent !important; }
.ebl-x-rec-sec > details:not(.ebl-cx-fold):not(.ebl-sp-fold) > summary { cursor: pointer; color: var(--ink-0); list-style: none; display: flex; align-items: baseline; gap: .5rem; }
.ebl-x-rec-sec > details:not(.ebl-cx-fold):not(.ebl-sp-fold) > summary::-webkit-details-marker { display: none; }
.ebl-x-rec-sec > details:not(.ebl-cx-fold):not(.ebl-sp-fold) > summary::after { content: "+"; margin-left: auto; font-family: var(--x-font-label); color: var(--lime); }
.ebl-x-rec-sec > details[open]:not(.ebl-cx-fold):not(.ebl-sp-fold) > summary::after { content: "\2212"; }
.ebl-x-rec-sec > details.ebl-cx-fold, .ebl-x-rec-sec > details.ebl-sp-fold { margin-top: 0 !important; }
.ebl-x-rec-sec .ebl-cx-cards > div > .ebl-cx-trials { margin-top: auto !important; }

@media (max-width: 899px) {
  .ebl-x-rec-sec > figure { display: block; }
  .ebl-x-rec > .ebl-x-side { position: static; max-width: none; flex-basis: 100%; }
  .ebl-x-rec .ebl-x-menu { flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem !important; }
  .ebl-x-rec .ebl-x-menu .ebl-x-label { flex-basis: 100%; margin-bottom: .25rem; }
  .ebl-x-rec > .ebl-x-body { gap: 2.75rem; }
}

/* grades-by-use cards: even rows (2 across for two or four uses, 3 across otherwise) and a real gap */
@media (min-width: 900px) {
  .ebl-x-rec-sec .ebl-cx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1.5rem !important; }
  .ebl-x-rec-sec .ebl-cx-cards:has(> :nth-child(2):last-child),
  .ebl-x-rec-sec .ebl-cx-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ebl-x-rec-sec .ebl-cx-cards:has(> :only-child) { grid-template-columns: minmax(0, 1fr) !important; }
  .ebl-x-rec-sec .ebl-cx-cards .tier { flex-basis: 100%; width: 100%; text-align: left; justify-content: flex-start; }
}

/* the name card on the older Rx pages sits beside the title's width, not across the page */
main.ebl-x-assembled > div[class*="rounded"] { max-width: 24rem; }

/* ==========================================================================
   LISTING PAGES (package 4, October 2026). Keyed to main.ebl-x-listing, which
   render_listing_frame.py writes on the 34 pages registered as "listing".
   One frame width, one title, one line under it, one gap before the list.
   The title takes the bold sans most listing pages already used (Supplements,
   Devices, Protocols, Tools, Testing); the line under it the serif.
   ========================================================================== */
main.ebl-x-listing { max-width: var(--x-w-full) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; }
main.ebl-x-listing > [class*="max-w-"], main.ebl-x-listing > [class*="mx-auto"],
main.ebl-x-listing > .ebl-room > .ebl-wrap, main.ebl-x-listing .ebl-x-lhead { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
main.ebl-x-listing .ebl-x-lhead { text-align: left !important; padding-top: 3rem !important; padding-bottom: 2.5rem !important; min-height: 0 !important; }
main.ebl-x-listing .ebl-x-title { font-family: var(--x-font-body) !important; font-weight: 700 !important; font-size: clamp(2.5rem, 5.3vw, 4.75rem) !important; line-height: 1.02 !important; letter-spacing: -.035em !important; color: var(--ink-0) !important; max-width: 60rem; margin: 0 0 1.25rem !important; text-align: left !important; }
main.ebl-x-listing .ebl-x-lede { font-family: var(--x-font-display) !important; font-size: 1.1875rem !important; line-height: 1.5 !important; color: var(--ink-1) !important; max-width: var(--x-w-read) !important; margin: 0 0 0 !important; text-align: left !important; }
main.ebl-x-listing p { max-width: var(--x-w-read); }
main.ebl-x-listing [class*="grid"] p, main.ebl-x-listing table p, main.ebl-x-listing .card p { max-width: none; }
@media (max-width: 640px) {
  main.ebl-x-listing { padding-left: 1rem !important; padding-right: 1rem !important; }
  main.ebl-x-listing .ebl-x-lhead { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}

/* ==========================================================================
   EXPLAINER PAGES (package 5, October 2026). Keyed to main.ebl-x-explainer,
   written by render_listing_frame.py on the 41 pages registered "explainer".
   The same frame, title and line under it as the listing pages; running text
   held to the reading width; every section heading the same size, with the
   same rule and space above it; one "On this page" menu on pages with four
   or more sections. Cards and grids keep their own headings.
   ========================================================================== */
main.ebl-x-explainer { max-width: var(--x-w-full) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; }
main.ebl-x-explainer > [class*="max-w-"], main.ebl-x-explainer > [class*="mx-auto"],
main.ebl-x-explainer > .ebl-room > .ebl-wrap, main.ebl-x-explainer .ebl-x-lhead { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
main.ebl-x-explainer .ebl-x-lhead { text-align: left !important; padding-top: 3rem !important; padding-bottom: 2.5rem !important; min-height: 0 !important; }
main.ebl-x-explainer .ebl-x-title { font-family: var(--x-font-body) !important; font-weight: 700 !important; font-size: clamp(2.5rem, 5.3vw, 4.75rem) !important; line-height: 1.02 !important; letter-spacing: -.035em !important; color: var(--ink-0) !important; max-width: 60rem; margin: 0 0 1.25rem !important; text-align: left !important; }
main.ebl-x-explainer .ebl-x-lede { font-family: var(--x-font-display) !important; font-size: 1.1875rem !important; line-height: 1.5 !important; color: var(--ink-1) !important; max-width: var(--x-w-read) !important; margin: 0 !important; text-align: left !important; }
main.ebl-x-explainer p, main.ebl-x-explainer li { max-width: var(--x-w-read); }
main.ebl-x-explainer [class*="grid"] p, main.ebl-x-explainer [class*="grid"] li, main.ebl-x-explainer table p, main.ebl-x-explainer .card p { max-width: none; }
main.ebl-x-explainer h2:not(.card h2):not([class*="grid"] h2):not(details h2) { font-family: var(--x-font-display) !important; font-weight: 600 !important; font-size: clamp(1.6rem, 2.4vw, 2.125rem) !important; line-height: 1.2 !important; letter-spacing: -.01em !important; color: var(--ink-0) !important; text-align: left !important; max-width: 46rem; margin-top: 3.5rem !important; margin-bottom: 1.25rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); scroll-margin-top: 6rem; }
main.ebl-x-explainer .ebl-x-emenu { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line-strong); max-width: 60rem; }
main.ebl-x-explainer .ebl-x-emenu .ebl-x-label { flex-basis: 100%; }
main.ebl-x-explainer .ebl-x-emenu a { color: var(--ink-1); text-decoration: none; font-size: .9375rem; }
main.ebl-x-explainer .ebl-x-emenu a:hover { color: var(--lime); }
@media (max-width: 640px) {
  main.ebl-x-explainer { padding-left: 16px !important; padding-right: 16px !important; }
  main.ebl-x-explainer .ebl-x-lhead { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}
/* the name card on the older Rx pages: space between it and the title */
main.ebl-x-assembled > div[class*="rounded"] { margin-bottom: 1.5rem; }

/* ==========================================================================
   TOOL PAGES (October 2026). main.ebl-x-tool, written by render_listing_frame.py
   on the 15 pages registered "tool": the same frame, title and line under it
   as the listing and explainer pages. The tool itself keeps its own layout.
   ========================================================================== */
main.ebl-x-tool { max-width: var(--x-w-full) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; }
main.ebl-x-tool > [class*="max-w-"], main.ebl-x-tool > [class*="mx-auto"], main.ebl-x-tool .ebl-x-lhead { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
main.ebl-x-tool .ebl-x-lhead { text-align: left !important; padding-top: 3rem !important; padding-bottom: 2rem !important; min-height: 0 !important; }
main.ebl-x-tool .ebl-x-title { font-family: var(--x-font-body) !important; font-weight: 700 !important; font-size: clamp(2.5rem, 5.3vw, 4.75rem) !important; line-height: 1.02 !important; letter-spacing: -.035em !important; color: var(--ink-0) !important; max-width: 60rem; margin: 0 0 1.25rem !important; text-align: left !important; }
main.ebl-x-tool .ebl-x-lede { font-family: var(--x-font-display) !important; font-size: 1.1875rem !important; line-height: 1.5 !important; color: var(--ink-1) !important; max-width: var(--x-w-read) !important; margin: 0 !important; text-align: left !important; }
@media (max-width: 640px) {
  main.ebl-x-tool { padding-left: 16px !important; padding-right: 16px !important; }
  main.ebl-x-tool .ebl-x-lhead { padding-top: 1.5rem !important; padding-bottom: 1.25rem !important; }
}

/* October 2026 (outside review, mobile pass): a grade badge inside a flex row
   shrank to about half its width beside a long label at 360px (devices/hbot.html,
   protocol diet pages). A letter never gives up its space. */
.tier { flex-shrink: 0; }

/* ==========================================================================
   ACCESSIBILITY PASS, October 2026 (EBL 2.0 item 52). Found by axe-core run on
   all 701 built pages; each rule names what it fixes.
   ========================================================================== */
/* 1. A link inside a sentence was marked by colour alone: lime beside light
   grey text is 1.3 to 2.3:1, under the 3:1 WCAG 1.4.1 asks for when colour
   is the only cue (157 pages, 1,358 links). An underline is the cue that does
   not depend on seeing colour. Buttons, cards and block links are left alone. */
main :is(p, td, dd, figcaption, blockquote) a:not([class*="btn"]):not(.block):not(.card):not([class*="inline-flex"]):not([class*="rounded"]),
main :not(nav) > a.text-lime.hover\:underline:not(.block):not([class*="inline-flex"]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
/* 2. The faded "Disclosure" footer link (text-lime/40) measured 3.3:1 on the
   page background, under the 4.5:1 normal text needs (13 pages). */
a.text-lime\/40 { color: rgba(198, 255, 58, .72); text-decoration: underline; text-underline-offset: 2px; }
/* 3. Stacked PMID links in evidence tables were 23px tall and touching, under
   the 24px target WCAG 2.5.8 asks for (graded-index.html alone held 461). */
td a[href*="pubmed.ncbi.nlm.nih.gov"], li a[href*="pubmed.ncbi.nlm.nih.gov"] {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}

/* ==========================================================================
   SEARCH: CHECK A CLAIM (October 2026, EBL 2.0 item 20). search.html, drawn by
   assets/search.js claimHtml().
   ========================================================================== */
.ebl-mode { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
.ebl-mode-btn { min-height: 36px; padding: 6px 16px; border-radius: 999px; font-size: 17px; color: var(--ink-1, #c9cfc6); background: transparent; }
.ebl-mode-btn[aria-pressed="true"] { background: #c6ff3a; color: #07090a; font-weight: 600; }
.ebl-mode-btn:focus-visible { outline: 2px solid #c6ff3a; outline-offset: 2px; }
#ebl-claim-results:not(:empty) { padding-bottom: 1rem; }
.ebl-cl-card { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px 20px; margin: 12px 0; background: rgba(255,255,255,.02); }
.ebl-cl-k { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3, #979e95); margin: 0 0 4px; }
.ebl-cl-name { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.ebl-cl-name a { color: var(--ink-0, #f4f6f3); text-decoration: underline; text-underline-offset: 3px; }
.ebl-cl-lead { font-size: 15px; color: var(--ink-1, #c9cfc6); margin: 0 0 8px; line-height: 1.5; }
.ebl-cl-list { list-style: none; margin: 0; padding: 0; }
.ebl-cl-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.ebl-cl-letter { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; flex-shrink: 0; }
.ebl-cl-use { font-size: 15px; color: var(--ink-0, #f4f6f3); line-height: 1.45; }
.ebl-cl-gloss { display: block; font-size: 16px; color: var(--ink-2, #aab1a7); margin-top: 2px; }
.ebl-cl-more { margin-top: 8px; font-size: 17px; color: var(--ink-2, #aab1a7); }
.ebl-cl-more summary { cursor: pointer; min-height: 24px; }
.ebl-cl-note { font-size: 16px; color: var(--ink-2, #aab1a7); line-height: 1.55; max-width: 48rem; margin: 10px 0 0; }
.ebl-cl-tools { font-size: 15px; margin: 12px 0 0; }
.ebl-cl-tools a { color: var(--lime, #c6ff3a); text-decoration: underline; text-underline-offset: 2px; }
[data-ebl-mode-only][hidden] { display: none !important; }

/* ==========================================================================
   COMPARE BY OUTCOME (October 2026, EBL 2.0 item 21). compare-outcomes.html,
   written by render_outcome_compare.py.
   ========================================================================== */
.ebl-oc-jump { margin: 0 0 2rem; }
.ebl-oc-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ebl-oc-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: var(--ink-0, #f4f6f3); text-decoration: none; font-size: 17px; }
.ebl-oc-jump a:hover, .ebl-oc-jump a:focus-visible { border-color: #c6ff3a; color: #c6ff3a; }
.ebl-oc-k { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3, #979e95); margin: 0 0 8px; }
.ebl-oc-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15.5px; color: var(--ink-3, #979e95); margin-left: 4px; }
.ebl-oc-topic { margin: 2.5rem 0 0; scroll-margin-top: 96px; }
.ebl-oc-h { font-size: 24px; font-weight: 600; color: var(--ink-0, #f4f6f3); margin: 0 0 4px; }
.ebl-oc-sub { font-size: 17px; color: var(--ink-2, #aab1a7); margin: 0 0 12px; }
.ebl-oc-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.ebl-oc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ebl-oc-table th, .ebl-oc-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.06); color: var(--ink-1, #c9cfc6); }
.ebl-oc-table thead th { border-top: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3, #979e95); font-weight: 500; }
.ebl-oc-table tbody th { font-weight: 500; color: var(--ink-0, #f4f6f3); min-width: 12rem; }
.ebl-oc-table tbody th a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ebl-oc-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 8px; font-weight: 700; }
@media (max-width: 640px) { .ebl-oc-table { font-size: 17px; } .ebl-oc-table th, .ebl-oc-table td { padding: 8px 10px; } .ebl-oc-table tbody th { min-width: 9rem; } }
.ebl-oc-none { color: var(--ink-3, #979e95); font-size: 16px; }

/* ==========================================================================
   KEPT APART FROM THE LETTERS (October 2026, EBL 2.0 items 35 and 36). The band
   render_feature_lists.py ends every listing page with.
   ========================================================================== */
.ebl-edges { margin-top: 3rem; margin-bottom: 3rem; }
.ebl-edges-h { font-size: 20px; font-weight: 600; color: var(--ink-0, #f4f6f3); margin: 0 0 12px; }
.ebl-edges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ebl-edges-card { display: block; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.02); text-decoration: none; }
.ebl-edges-card:hover, .ebl-edges-card:focus-visible { border-color: #c6ff3a; }
.ebl-edges-t { display: block; font-size: 17px; font-weight: 600; color: #c6ff3a; margin-bottom: 6px; }
.ebl-edges-b { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-1, #c9cfc6); }
.ebl-edges-ch { margin: 12px 0 0; font-size: 17px; color: var(--ink-2, #aab1a7); }
.ebl-edges-ch a { color: #c6ff3a; text-decoration: underline; text-underline-offset: 2px; }

/* CHALLENGE A GRADE (October 2026, EBL 2.0 item 58). challenge-grade.html. */
.ebl-ch-steps { margin: 0; padding-left: 1.25rem; list-style: decimal; color: var(--ink-1, #c9cfc6); font-size: 15px; line-height: 1.6; }
.ebl-ch-steps li { margin: 6px 0; }
.ebl-ch-input { width: 100%; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 14px; font-size: 16px; color: #f4f6f3; min-height: 44px; }
.ebl-ch-input:focus { outline: 2px solid #c6ff3a; outline-offset: 1px; border-color: #c6ff3a; }
select.ebl-ch-input option, select.ebl-ch-input optgroup { background: #0b0f0e; color: #f4f6f3; }

/* SIGN-OFF LEDGER (October 2026, EBL 2.0 item 55). signoff-ledger.html; the
   table reuses the .ebl-oc-* table styles of compare-outcomes.html. */
.ebl-so-sum { font-size: 16px; color: var(--ink-1, #c9cfc6); margin: 0 0 16px; line-height: 1.6; }
.ebl-so-n { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #c6ff3a; font-size: 18px; }

/* HOW EBL USES AI (October 2026, EBL 2.0 item 59). ai-use.html. */
.ebl-ai-list { margin: 12px 0 0; padding-left: 1.25rem; list-style: disc; color: var(--ink-1, #c9cfc6); font-size: 16px; line-height: 1.6; }
.ebl-ai-list li { margin: 10px 0; }
.ebl-ai-list strong { color: var(--ink-0, #f4f6f3); }
/* EBL HEADER FIT. Added November 2026 (Arnold).

   THE DEFECT
   ----------
   The header row needs 1,506px of content: a 369px logo lockup, a 909px
   navigation group and a 169px "Check what I take" button, plus gaps. It sits
   in a max-w-7xl container that offers 1,292px. The header's overflow is
   visible, so the surplus does not scroll and cannot be reached: the button
   runs past the right edge of the screen and there is no way to click it.

   Measured on the built site, in a browser, before this sheet existed:

       1280px   0 of 10 sampled page types clipped a header control
       1366px   7 of 10
       1440px   7 of 10
       1536px   3 of 10
       1600px   0 of 10
       1920px   0 of 10

   1366, 1440 and 1536 are the three most common laptop widths in use. Under
   1024px the burger menu serves and nothing clips. At 1600px and above the
   viewport is wide enough that the escaped button lands back on screen, which
   is why this never showed on a large monitor and why it went unreported: it
   is invisible at both ends of the range and only bites in the middle, where
   most laptops sit. The homepage is one of the three that does not clip.

   THE FIX
   -------
   Width is recovered from the logo lockup, which spends 369px, about a quarter
   of the whole row, restating a site name the page title already carries. The
   mark and the wordmark step down between 1024px and 1599px, and the button's
   own padding tightens below 1430px. Verified after: 13 clipped controls across
   those widths and page types go to zero, with no change at 1280px, 1600px or
   1920px.

   WHAT THIS SHEET DELIBERATELY DOES NOT TOUCH, AND WHY
   ----------------------------------------------------
   The navigation link type. The first draft bought room by dropping nav text
   to 13.5px. That trades a layout defect for a reading one: type-floor.css
   sets a 15px floor that readers asked for twice, and gate_g226_reading_floor
   holds it. The wordmark stops at 15px for the same reason and never goes
   below it. Nothing here sets a size under 15px, and gate_g427_header_fit
   fails the build if a rule ever does.

   The flex gaps. Tightening them to .5rem closed the space between the
   navigation list and the search control and the two overlapped on screen.
   The gaps are left exactly as they are.

   ORDER MATTERS, AND IT IS THE OPPOSITE OF WHAT IT LOOKS LIKE. This sheet is
   linked BEFORE type-floor.css, not after. type-floor.css must be the last
   stylesheet on every page so that nothing can undercut the reading floor, and
   gate_g226_reading_floor fails the build if anything follows it. The first
   draft of this sheet linked last and G226 rejected it on 533 pages, correctly.
   Linking first costs nothing here: the rules below only reduce the logo
   lockup and the button padding, and type-floor governs neither (its ladder
   covers text-[8px] through text-[17px] and the wordmark is text-[19px]), so
   there is no declaration the two sheets both set. Verified in a browser in
   this order: 0 clipped header controls across 10 page types at 1280, 1366,
   1440, 1536, 1600 and 1920px. gate_g427_header_fit fails the build if this
   sheet is ever linked after type-floor.css. */

/* LOGO BACK TO FULL SIZE, November 2026 (Arnold). The lime "Check what I take"
   button has left the top bar (render_nav.HEADER_CTA_IN_BAR, gate_g431), and with
   it the 169px that the logo reductions above were recovering. The mark and the
   wordmark are no longer stepped down; the uncapped container stays, because it
   is what gives the row its room on 1366 to 1599px screens. The lime "Search"
   pill keeps its fixed 7.5rem width (gate_g431 fails the build if it shrinks).
   Verified in Chrome with the live fonts: no header control clipped at 1280,
   1366, 1440, 1536, 1600 or 1920px. */

@media (min-width:1024px) and (max-width:1599px){
  html:root header > div{ max-width:none !important; }
}
/* EBL READING FLOOR. Added October 2026 (Arnold).
   Several readers, young and old, said the text was too small. This sheet is
   linked LAST on every published page by render_type_floor.py. Every rule
   carries "html:root" and !important so it outranks the phone, tablet,
   supplement-page and room rules in styles.css and rooms.css, several of
   which are themselves !important. Every value is a raise, never a cut:
   nothing renders under 15px (raised from 14px in October 2026, Arnold: readers still found it small), reading sizes step up 1 to 3px, and headings
   (18px and up) are untouched. Rungs that land above 14.5px skip h1 to h3 so
   no heading carrying a small utility class can ever be shrunk.
   gate_g226_reading_floor.py holds every rung and the page links. */

/* 1. The utility-class ladder */
html:root .text-\[8px\],
html:root .text-\[9px\],
html:root .text-\[9\.5px\],
html:root .text-\[10px\],
html:root .text-\[10\.5px\],
html:root .text-\[11px\],
html:root .text-\[11\.5px\] { font-size: 15px !important; }
html:root .text-\[12px\],
html:root .text-\[12\.5px\] { font-size: 15.5px !important; }
html:root .text-\[13px\]:not(h1):not(h2):not(h3),
html:root .text-\[13\.5px\]:not(h1):not(h2):not(h3) { font-size: 16px !important; }
html:root .text-\[14px\]:not(h1):not(h2):not(h3),
html:root .text-\[14\.5px\]:not(h1):not(h2):not(h3) { font-size: 17px !important; }
html:root .text-\[15px\]:not(h1):not(h2):not(h3),
html:root .text-\[15\.5px\]:not(h1):not(h2):not(h3) { font-size: 17.5px !important; }
html:root .text-\[16px\]:not(h1):not(h2):not(h3),
html:root .text-\[16\.5px\]:not(h1):not(h2):not(h3) { font-size: 18px !important; }
html:root .text-\[17px\]:not(h1):not(h2):not(h3) { font-size: 18.5px !important; }
/* Small prose (not monospace labels) reads at 15px: long passages need more than labels do */
html:root .text-\[8px\]:not(.font-mono):not(.uppercase),
html:root .text-\[9px\]:not(.font-mono):not(.uppercase),
html:root .text-\[9\.5px\]:not(.font-mono):not(.uppercase),
html:root .text-\[10px\]:not(.font-mono):not(.uppercase),
html:root .text-\[10\.5px\]:not(.font-mono):not(.uppercase),
html:root .text-\[11px\]:not(.font-mono):not(.uppercase),
html:root .text-\[11\.5px\]:not(.font-mono):not(.uppercase),
html:root .text-\[12px\]:not(.font-mono):not(.uppercase),
html:root .text-\[12\.5px\]:not(.font-mono):not(.uppercase) { font-size: 16px !important; }
html:root .text-xs { font-size: 15px !important; line-height: 1.45; }
html:root .text-sm:not(h1):not(h2):not(h3) { font-size: 17px !important; line-height: 1.5; }
html:root .text-base:not(h1):not(h2):not(h3) { font-size: 18px !important; }
/* Wide tracking on enlarged uppercase micro labels costs width and legibility */
html:root .tracking-widest.text-\[8px\],
html:root .tracking-wider.text-\[8px\],
html:root .tracking-widest.text-\[9px\],
html:root .tracking-wider.text-\[9px\],
html:root .tracking-widest.text-\[9\.5px\],
html:root .tracking-wider.text-\[9\.5px\],
html:root .tracking-widest.text-\[10px\],
html:root .tracking-wider.text-\[10px\],
html:root .tracking-widest.text-\[10\.5px\],
html:root .tracking-wider.text-\[10\.5px\],
html:root .tracking-widest.text-\[11px\],
html:root .tracking-wider.text-\[11px\],
html:root .tracking-widest.text-\[11\.5px\],
html:root .tracking-wider.text-\[11\.5px\] { letter-spacing: .07em; }
/* 2. Inline style="font-size:Npx" attributes (only !important reaches them) */
html:root [style*="font-size:8px"],
html:root [style*="font-size: 8px"],
html:root [style*="font-size:9px"],
html:root [style*="font-size: 9px"],
html:root [style*="font-size:9.5px"],
html:root [style*="font-size: 9.5px"],
html:root [style*="font-size:10px"],
html:root [style*="font-size: 10px"],
html:root [style*="font-size:10.5px"],
html:root [style*="font-size: 10.5px"],
html:root [style*="font-size:11px"],
html:root [style*="font-size: 11px"],
html:root [style*="font-size:11.5px"],
html:root [style*="font-size: 11.5px"] { font-size: 15px !important; }
html:root [style*="font-size:12px"],
html:root [style*="font-size: 12px"],
html:root [style*="font-size:12.5px"],
html:root [style*="font-size: 12.5px"] { font-size: 15.5px !important; }
html:root [style*="font-size:13px"],
html:root [style*="font-size: 13px"],
html:root [style*="font-size:13.5px"],
html:root [style*="font-size: 13.5px"] { font-size: 16px !important; }
html:root [style*="font-size:14px"],
html:root [style*="font-size: 14px"],
html:root [style*="font-size:14.5px"],
html:root [style*="font-size: 14.5px"] { font-size: 17px !important; }
html:root [style*="font-size:15px"],
html:root [style*="font-size: 15px"],
html:root [style*="font-size:15.5px"],
html:root [style*="font-size: 15.5px"] { font-size: 17.5px !important; }
html:root [style*="font-size:16px"],
html:root [style*="font-size: 16px"],
html:root [style*="font-size:16.5px"],
html:root [style*="font-size: 16.5px"] { font-size: 18px !important; }
html:root [style*="font-size:17px"],
html:root [style*="font-size: 17px"] { font-size: 18.5px !important; }
/* 3. Custom-class micro type found by the full-site crawl of October 2026 */
html:root :is(.eyebrow,.ebl-k,.lbl,.kind,.date) { font-size: 15px !important; letter-spacing: .1em; }
html:root :is(.pm,.pmid,.src,.cap,.meta,.fp-num,.ebl-dmap-k,.ss-foot,.ss-lbl,.ss-dir,.ss-sample,.ss-pill,.ss-dose,.ss-sub,.ebl-ms-go,.ebl-flag-static,.ebl-sample-k,.ebl-chap,.pe-pmid,.evi-chip,.pyramid-row-short,.pyramid-axis-top,.pyramid-axis-bot,.pyramid-rule,.ebl-try-note,.ebl-ways-c,.grade), html:root small { font-size: 15px !important; }
html:root :is(.btn-primary,.btn-ghost,.ebl-tour-tx,.ebl-tour-cap):not(header *) { font-size: 16px !important; }
html:root :is(.why,.ttl,.note) { font-size: 16.5px !important; }

/* 4. TAP TARGETS (October 2026, Arnold). A phone crawl of every published page
   found 5,816 links and buttons standing on their own (not inside a sentence)
   that were under 24px tall: PMID links, footer links, "see the record" lines.
   Four pixels of padding above and below lifts a 15px link line to 24px or
   more. :where() keeps the selector at zero weight, so any element that
   already sets its own padding (buttons, cards, pills) keeps it; only links
   with no padding of their own gain the margin. Padding on an inline link
   enlarges what a finger can hit without moving the text around it.
   gate_g226_reading_floor.py check F holds this rule. */
:where(div, nav, td, th, dd, dt, section, li, footer, header, span, p) > :where(a[href], button, summary) { padding-block: 4px; }
/* Buttons need their own line: the Tailwind base sets button { padding: 0 } at
   element weight, which outranks the zero-weight rule above. This one sits at
   element weight too and comes later, so it wins over that reset, while any
   padding class on a button (.py-2 and the like) still outranks it. Five
   buttons on reading-list.html and timing.html were 23px tall. */
:where(div, nav, td, th, dd, dt, section, li, footer, header, span, p) > button { padding-block: 4px; }

/* 5. Inline rem sizes written by scripts and renderers (October 2026). The list
   in section 2 names px values only; app.js and render_static_lists.py write
   two rem values on the Grade D list cards, which rendered at 11.2px and 14px. */
html:root [style*="font-size:0.7rem"],
html:root [style*="font-size: 0.7rem"] { font-size: 15px !important; }
html:root [style*="font-size:0.875rem"],
html:root [style*="font-size: 0.875rem"] { font-size: 17px !important; }

/* 6. PHONE WIDTH (November 2026, Arnold). The phone check (phone_check.mjs) found
   text running past the right edge of a 390px phone on 264 pages. This site
   hides sideways scrolling, so that text was not scrollable, it was cut off.
   Four causes: rows of label and value that never wrap; text marked never to
   break (whitespace-nowrap); items marked never to shrink (shrink-0); and
   grid or form columns sized to their widest content (a long dropdown option,
   a long word). These rules apply under 640px only, and only change a row that
   does not fit: a row that already fits on the screen lays out exactly as
   before. The zero-weight :where() rules yield to any size or wrap an element
   sets itself. The "Why the current trials fall short" heading is fixed at its
   own rule in compact.css. */
@media (max-width: 639px) {
  :where(main .flex) > :where(*) { min-width: 0; }
  :where(main .flex) { flex-wrap: wrap; }
  :where(main .grid) > :where(*) { min-width: 0; }
  html:root main :is(.shrink-0, .flex-none) { flex-shrink: 1; }
  html:root main .whitespace-nowrap { white-space: normal; }
  html:root main select { max-width: 100%; min-width: 0; }
  /* break-word, not anywhere, November 2026. This rule said `anywhere`, which lets
     a line break at ANY character, including immediately before a closing
     bracket. Measured in a browser at 390px, that left 61 pieces of text on
     graded-index.html with the closing bracket alone on its own line: 9 record
     names such as "SAM-e (S-adenosyl-L-methionine)" and "C60 (Carbon-60 /
     Buckminsterfullerene)", and 52 evidence descriptions in the narrow table
     cells beside them, such as "Randomized controlled trial (PREDIMED)".
     `break-word` breaks inside a word only when that word cannot fit a line on
     its own, so it still stops a long unbreakable name from overflowing. Across
     386 pages the orphaned brackets went from 63 to 2.

     THE TWO VALUES ARE NOT INTERCHANGEABLE, and the difference is not cosmetic.
     `anywhere` changes a box's MIN-CONTENT size to one character; `break-word`
     leaves min-content at the longest word. For ordinary text in a block that
     makes no difference, because the block's width comes from its parent. For a
     box sized to its own content, it is everything: an inline-block, a flex item
     or a grid track keeps its full max-content width under `break-word` and
     overflows. This was learned by breaking it. The same narrowing was tried on
     the five record-page <h1> rules in assets/rooms.css, whose names are wrapped
     in `span.hero-word` at `display: inline-block`; phone_check.mjs then found
     "Immunosuppressants" reaching 466px, "(Tamsulosin/Flomax)" 446px and
     "(Cyclobenzaprine)" 395px on a 390px phone, cut off with no way to scroll to
     them. It bought one fixed bracket on d/nsaids.html and cost three unreadable
     pages, so rooms.css keeps `anywhere` and so does `a.pmid, code` in
     assets/tw.css, where a PMID or a code string has no other break point.
     Before changing either value, check whether anything under the selector is
     sized to its own content.

     Two orphaned brackets are left and both are a single token too wide for its
     line, which no wrapping mode can keep whole: s/nmn.html's <h1>
     "Mononucleotide)" at 41.4px in a 317px column, and d/nsaids.html's
     "(Anti-Inflammatories)". Only a smaller heading fixes those, which is a
     typographic decision and not this rule's business. */
  html:root main :is(a, .eyebrow, .font-mono) { overflow-wrap: break-word; }
  html:root main .grid-cols-3 .font-display { font-size: 16px !important; }
}

/* 7. A FLEXIBLE TEXT COLUMN NEEDS A FLOOR (November 2026, Arnold).
   Section 6's first rule, `:where(main .flex) > :where(*) { min-width: 0 }`, is
   what lets a row fit on a phone at all: without it a flex child refuses to go
   below its widest word and the row runs off the screen. It has a cost nobody
   had measured. A child may now shrink to NOTHING. Section 6's second rule,
   `flex-wrap: wrap`, is meant to be the safety net and is not one: wrapping is
   driven by a child's MINIMUM width, and the first rule just set every minimum
   to zero, so a row with one sibling that holds its width never wraps. There is
   always room, because the flexible child can be crushed instead.

   protocols.html was crushed. Each protocol is
   `<a class="flex items-start gap-4">` with four children: a tier letter, an
   uppercase mono label ("Surrogate biomarker", "Hard clinical endpoint"), the
   protocol name in `.flex-1.min-w-0`, and an arrow. The label holds 192px and
   the row has 322px, so the name got 12px. Measured in a browser on the built
   tree, November 2026:

     390px   68 of 120 rows, name column 12 to 59px,  page   907,433px tall
     414px   80 of 120 rows, narrowest column 0px,    page 1,344,293px tall
     640px   13 of 120 rows, name column 0 to 55px, AND THE NAME DRAWS NO INK
     660px    4 of 120 rows, same
     680px    4 of 120 rows, same, and 681px is clean
     1440px  no rows affected,                       page    40,144px tall

   At 390px that is 528 blocks of text at fewer than three characters a line, a
   protocol name one letter per line and one paragraph over 329 lines. From 640
   to 680px it is worse and quieter: the column is 0 to 55px wide, the text has
   nowhere to go, and 13 protocol names render no ink at all inside their card.
   Nothing reported any of it. The page overflowed nothing and fit the screen
   perfectly the whole time, so the one browser check that exists had no reason
   to look, and no gate in the build can measure a rendered width. Proved by
   cause and not inferred: hiding the mono label took the squeezed rows from 68
   to 0 at 390px and the page from 907,433px to 133,561px.

   WHY IT IS NOT IN SECTION 6. Section 6 stops at 639px, and the crushing runs to
   680px. Above 639px it is not section 6 doing it: `min-width: 0` comes from the
   page's own Tailwind `.min-w-0` class, which is on the column at every width.
   So the floor is needed for two different reasons in two bands and one rule
   covers both. The ceiling is 767px, the `md:` boundary this site's own markup
   already uses, which clears the measured 680px with room.

   WHY IT CARRIES WEIGHT. `.min-w-0` is specificity 0,1,0. A floor written as
   `:where(...)` would be 0,0,0, lose to it, and do nothing at all while reading
   correctly in the file.

   12rem is 216px here, not 192px: assets/styles.css sets the root font size to
   18px on a phone and 17px on desktop, so a rem is 18px in the band this rule
   covers. That is about 24 characters of body text, and it is deliberately wider
   than the 192px mono label, which is what pushes the label to its own line
   rather than letting it share the row. Measured
   with the rule in place: squeezed rows 68 to 0 at every width from 390 to
   639px, page 907,433px to 120,254px, and across all 810 pages at 390px, 528
   crushed blocks to 0 and still 0 pages whose content runs past the right edge.
   Nothing at 700px and above changes, because the column is already wider than
   the floor there. The floor only binds a column that would otherwise be
   narrower than it, so a row that already fits is untouched.

   gate_g438_flex_text_floor.py holds this rule, and phone_check.mjs now fails
   any page that renders text at fewer than three characters a line, which is the
   browser-side half: on the November tree that check fails five pages,
   /protocols, /graded-index, /engine/biomarkers, /registry-audit and
   /supplement-grades, and passes all 519 with this section in place. */
@media (max-width: 767px) {
  html:root main .flex > .flex-1 { min-width: 12rem; }
}
