/* hub.css | Version 0.2 | 20NOV2026 | Flame (v0.2: result marks pass the contrast probe, gates table scoped)
   Additions for the GlyphSeed project notebook. Every token and notebook component comes
   from the TRCL design system (trcl.css, a copy of the site's global.css). Nothing here
   redraws a brand asset or adds a font.

   Why so little: the notebook already has the right objects. Entries are the contents
   page. Experiments are figures with specimen labels. Failures get the same row as passes. */

/* Experiments: two figures side by side, each a print with its specimen label. */
.exps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 16px 48px; margin-top: 40px; }
.exp { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; min-width: 0; }   /* rows shared, so labels and buttons line up */
.exp .label { justify-self: start; }
.exp > p { font-size: 17.5px; max-width: 34rem; }
.print img { display: block; width: 100%; height: auto; background: #fff; padding: 10px; border: 1px solid var(--hair); box-shadow: 0 10px 22px -16px rgba(29, 11, 38, 0.4); }
.print a { display: block; }

/* The reading column, centred like an entry. */
.hub-prose { max-width: 760px; margin-inline: auto; }
.hub-prose h2 { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 850; letter-spacing: -0.03em; margin-top: 6px; }
.hub-prose h2::before { content: none; }           /* section numbers are set by hand in the kicker */
.hub-prose h2#who { margin-top: 1.8em; font-size: 26px; }
.hub-prose td:nth-child(2), .hub-prose td:nth-child(3) { white-space: normal; }
.hub-prose table { display: table; }
/* Results in the gates table. The word carries the meaning in dark type, and a small square
   carries the colour. Green and orange type at this size fail contrast on the sand band
   (4.49:1 and about 3:1), so colour is never the only signal and never the text. */
.gates td:nth-child(2) { font: 700 15px var(--mono); color: var(--night); white-space: nowrap; }
.gates td:nth-child(2)::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; background: var(--green); }
.gates .fail td:nth-child(2)::before { background: var(--orange); }
.gates .fail td:first-child { font-weight: 650; color: var(--purple); }
.gates td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* What we got wrong: a numbered list that keeps its dates. */
.wrong .k { display: block; margin-top: 2px; }
.refs { padding-left: 1.1em; }
.refs li { margin-top: 0.5em; font-size: 16.5px; line-height: 1.5; }

.hub-fig img { width: 190px; }
.hub-foot { grid-template-columns: 1.6fr 1fr 1fr; }

/* The slim bar on top of each live experiment page. */
.hub-bar { background: var(--purple, #4a0873); color: #fff; font: 600 15px/1.2 Inter, system-ui, sans-serif; padding: 12px 16px; margin: -28px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 24px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hub-bar a { color: #fff; text-underline-offset: 3px; }
.hub-bar span { opacity: 0.8; font-weight: 400; }

@media (max-width: 860px) {
  .exps { grid-template-columns: 1fr; grid-template-rows: none; gap: 56px; }
  .exp { grid-row: auto; grid-template-rows: none; gap: 16px; }
  .hub-foot { grid-template-columns: 1fr 1fr; }
  .hub-prose table { font-size: 14.5px; }
}
