/* The front pages' shared half: the root site's front page (web-root/site/index.html) and
   every corpus site's own front page (pipeline/corpus_front_page.py). Both link it after
   their base stylesheets — the root after site.css and site-bar.css, a corpus site after
   site-bar.css and passage.css (`PageWiring.stylesheets` in pipeline/page_shell.py) — and
   the root adds front.css after it for what only the root has: the tagline lockup and the
   corpus cards. One copy, served by both images from web-shared/, so the hero, the buttons
   and the claim marks cannot drift between the two (2026-11-14).

   A corpus page is two parts since 2026-11-20: a centred hero that is the way in (a
   question box, the starter questions, the way to read), then one row of tabs over five
   panels built from the same parts — a head, one list of rows, one note. Without script
   the tabs are in-page links and the panels stand in turn (web-shared/landing-tabs.js).

   Everything is scoped to `.front`, the class on both pages' <main>, and every selector
   starts with a class: a bare `footer` or `h1` rule here would restyle every page that
   happens to load it. Colours and the --space-* scale are tokens.css's. */

/* Every claim mark draws one side only (see .claim-mark--* further down). First in the file
   so each mark's own side and width, declared later, win over it. */
.front .claim-mark { border-width: 0; }

/* --- the hero ------------------------------------------------------------- */

/* What the page is, read top to bottom: the headline, a lede, the way in. */
.front .hero {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
  align-content: start;
  padding-block: clamp(var(--space-m), 6vw, var(--space-xl)) var(--space-l);
  /* The look's ground behind the hero: the master's dot grid (nodes waiting to connect),
     nothing on the other looks unless a look sets one (the Bible's lamplight). */
  background-image: var(--hero-ground);
  background-size: 24px 24px;
}

/* The one large thing on the page: the look's `display` style and hero tracking (68 px on the
   master, 72 on the Bible, 60 and 52 on the law sites). On a phone, where a display-sized word
   would not fit the column, the look's `title-1`. */
.front .hero h1 {
  margin: 0 0 var(--space-xs);
  max-inline-size: 18ch;
  text-wrap: balance;
  font: var(--type-display);
  letter-spacing: var(--tracking-hero);
}
@media (max-width: 40rem) {
  .front .hero h1 { font: var(--type-title-1); letter-spacing: var(--tracking-title-1); }
}

/* The lede in the look's large reading style, muted under the headline (each design system's
   front-page lede). */
.front .hero .lede {
  margin: 0;
  max-inline-size: 40rem;
  font: var(--type-reading-lg);
  color: var(--ink-muted);
}

/* What the tool cannot promise (Jack, 2026-11-15): the discipline is aimed at, not
   guaranteed — the eval measures it, and a measured rate is not a certainty. Prominent, not
   small print: on the root under the way in; on a corpus page it is the "why" panel's note. */
.front .hero .caveat {
  margin: var(--space-xs) 0 0;
  max-inline-size: 40rem;
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Small capitals above the headline: which corpus this is, on a corpus site's page. The look's
   `eyebrow` style in its own eyebrow colour (`--ink-eyebrow`) — the master's mono "machine
   voice", led by `// ` in the link colour. */
.front .hero .eyebrow {
  margin: 0;
  color: var(--ink-eyebrow);
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.front .hero .eyebrow::before { content: var(--eyebrow-prefix); color: var(--link); }

/* The page's doors. Primary is the action the page exists for; secondary the other way in. */
.front .doors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-s);
  margin: var(--space-xs) 0 0;
  font: var(--type-ui);
}
/* `display: flex` would otherwise beat the attribute: the root's sign-up row stays hidden
   until a server says sign-up is open (account.js). */
.front .doors[hidden] { display: none; }

/* A door is a button: the look's control height and button padding (each design system's
   `.st-btn`), its label in the look's button weight. */
.front .door {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--control-height);
  padding-inline: var(--space-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: var(--weight-button);
  text-decoration: none;
  cursor: pointer;
}
.front .door--primary { border-color: var(--action); background: var(--action); color: var(--on-action); }
.front .door--secondary { background: var(--surface-raised); color: var(--ink); }
.front .door--secondary:hover { background: var(--surface-sunken); }

/* A corpus page's hero is one centred column, the way an AI tool opens: what it is, then the
   box to ask in at the centre of the first screen (2026-11-20). It replaced a two-column
   hero whose right half was an example answer. */
.front .hero--ask { justify-items: center; text-align: center; }
.front .hero--ask .doors { justify-content: center; }

/* The question box: one raised field with the Ask button inside it, the focus ring round the
   whole box — the chat's composer, met on the front page. A plain GET to the chat, which
   puts the question in its box unsent. */
.front .ask { inline-size: min(100%, 44rem); margin-block-start: var(--space-s); text-align: start; }

/* Named for a screen reader; the placeholder and the button say it to the eye. */
.front .ask__label {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.front .ask__box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  font: var(--type-ui);
}
.front .ask__box:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }

.front .ask__input {
  flex: 1;
  min-inline-size: 0;
  min-block-size: var(--control-height);
  padding-inline: var(--space-3);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: var(--type-reading);
}
/* The box draws the ring (:focus-within above), so the field inside it does not draw a second. */
.front .ask__input:focus { outline: none; }
.front .ask__input::placeholder { color: var(--ink-muted); }

.front .ask__hint {
  margin: var(--space-2) 0 0;
  color: var(--ink-muted);
  font: 0.8125rem/1.5 var(--font-sans);
  text-align: center;
}

/* The starter questions: the ones the chat's empty conversation offers, as chips that open
   the chat with the question in its box (LandingCopy.questions — one list for both). */
.front .starters { inline-size: min(100%, 48rem); }
.front .starters__label {
  margin: 0 0 var(--space-2);
  color: var(--ink-muted);
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.front .starters__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.front .starter {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--ink);
  font: 0.9375rem/1.4 var(--font-sans);
  text-decoration: none;
}
.front .starter:hover { border-color: var(--accent-text); }

/* A section's heading beside its paragraph (the root's corpora). */
.front .section-head { margin-block-end: var(--space-m); }
.front .section-head h2 {
  margin-block: 0 var(--space-s);
  font: var(--type-title-2);
  letter-spacing: var(--tracking-title-2);
}
.front .section-head p { margin: 0; max-inline-size: 44rem; color: var(--ink-muted); }

@media (min-width: 64rem) {
  .front .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--space-l);
    align-items: baseline;
  }
  .front .section-head p { max-inline-size: none; }
}

/* --- the tab row and its panels (corpus pages) ----------------------------- */

/* The middle of the page: one column, the row of tabs at its head. */
.front .front-sections {
  max-inline-size: 60rem;
  margin: var(--space-l) auto 0;
  scroll-margin-block-start: var(--space-m);
}

/* The row: a segmented control, centred; on a narrow screen it scrolls sideways inside
   itself rather than wrapping into a second row. */
.front .front-tabs { display: flex; justify-content: center; }
.front .front-tabs__list {
  display: flex;
  gap: var(--space-1);
  min-inline-size: 0;
  max-inline-size: 100%;
  margin: 0;
  padding: var(--space-1);
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  list-style: none;
  scrollbar-width: none;
}
.front .front-tabs__tab {
  display: block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font: var(--type-ui);
  text-decoration: none;
  white-space: nowrap;
}
.front .front-tabs__tab:hover { color: var(--ink); }
/* Chosen: raised out of the sunken row, in ink. Never bolder — a heavier weight widens the label
   and shifts every tab beside it on each press. */
.front .front-tabs__tab[aria-selected="true"] {
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.front .front-tabs__tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* A panel: a raised card. Without script they stand one after another; with it one shows. */
.front .panel {
  margin-block-start: var(--space-m);
  padding: var(--space-l);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  scroll-margin-block-start: var(--space-m);
}
.front .panel[hidden] { display: none; }
.front .panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 40rem) {
  .front .panel { padding: var(--space-m); }
}

.front .panel__head h2 {
  margin: 0 0 var(--space-xs);
  font: var(--type-title-2);
  letter-spacing: var(--tracking-title-2);
}
.front .panel__lead { margin: 0; max-inline-size: 48rem; color: var(--ink-muted); }

/* The example's question, set as a reader's message in a chat: on the right, on the accent's
   soft ground. The rows under it are the answer. */
.front .panel__question {
  inline-size: fit-content;
  max-inline-size: min(100%, 36rem);
  margin: var(--space-m) 0 0 auto;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--ink);
  font: 600 1.0625rem/1.5 var(--font-sans);
}

/* The rows: every panel's list, one shape — a title over its text, on the page's ground. */
.front .rows {
  display: grid;
  gap: var(--space-s);
  margin: var(--space-m) 0 0;
  padding: 0;
  list-style: none;
}
.front .row {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-md);
  background: var(--surface-page);
  font-size: 1rem;
  line-height: 1.6;
}
.front .row__title { font: var(--type-ui-strong); }
.front .row__text { color: var(--ink); }
.front .row a { color: var(--link); }

/* Numbered where the order is the point (the ladder, the study's steps): the number in the
   accent beside the title and text. */
.front .rows--numbered { counter-reset: row; }
.front .rows--numbered .row {
  counter-increment: row;
  grid-template-columns: 2rem minmax(0, 1fr);
}
.front .rows--numbered .row::before {
  content: counter(row);
  grid-row: 1 / span 3;
  color: var(--accent-text);
  font: 600 1.0625rem/1.5 var(--font-sans);
}
.front .rows--numbered .row > * { grid-column: 2; }

/* A citation in the look's `ref` style, in the colour of what is marked. */
.front .row .row__cite {
  display: inline-block;
  margin-inline-start: var(--space-1);
  font: var(--type-ref);
  color: var(--accent-text);
}

/* A rung the corpus holds nothing on: still in the order, because the order explains the
   ranking, but it must never read as a source the tool has. Said in words (the note before
   its description), with the rung quieter — never by colour alone. Not struck through: a line
   through a law's name reads as "repealed", which is a different and false claim. */
.front .row--unheld .row__title,
.front .rows--numbered .row--unheld::before { color: var(--ink-muted); }
.front .row__note {
  display: block;
  color: var(--ink-muted);
  font: italic 600 0.8125rem/1.5 var(--font-sans);
}

/* A panel's one note under its rows: the coverage, the honest limit, the way on. Ruled off and
   quieter than the rows, so it never reads as one more of them. */
.front .panel__note {
  margin: var(--space-m) 0 0;
  padding: var(--space-s) 0 0;
  border-block-start: 1px solid var(--rule);
  color: var(--ink-muted);
  font: 0.9375rem/1.55 var(--font-sans);
}
/* The limit is read, not skimmed: at reading size, in ink, edged as open on the page's ground
   (Jack, 2026-11-15). */
.front .panel__note.claim-mark {
  padding: var(--space-s) var(--space-m);
  border-block-start-width: 0;
  border-radius: var(--radius-md);
  background: var(--surface-page);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.front .panel__note--link { border-block-start: 0; padding: 0; }
.front .panel__note--link a { color: var(--link); font-weight: 600; }
.front .panel__note--link a::after { content: " →" / ""; }

/* A claim's kind, marked: one rule per kind for every mark on the page. The style and colour
   are the tokens' (--claim-*-line, --claim-*); a marked row or note draws its start edge. */
.front .row.claim-mark,
.front .panel__note.claim-mark { border-inline-start-width: 4px; }
.front .claim-mark--asserted { border-style: var(--claim-asserted-line); border-color: var(--claim-asserted); }
.front .claim-mark--inferred { border-style: var(--claim-inferred-line); border-color: var(--claim-inferred); }
.front .claim-mark--open { border-style: var(--claim-open-line); border-color: var(--claim-open); }
.front .claim-mark--asserted .row__title { color: var(--claim-asserted); }
.front .claim-mark--inferred .row__title { color: var(--claim-inferred); }
.front .claim-mark--open .row__title { color: var(--claim-open); }
