/* The facts pages and their class pages (programme Pro, F1). Loaded only
   there, so site.css keeps its size cap. Every state is said in text, never by
   colour alone; nothing animates for a person who asks for reduced motion. */

.facts-shell { padding-block: 1rem 3rem; }
.facts-landing h1 { font-size: clamp(1.6rem, 6.4vw, 2.6rem); line-height: 1.12; margin: 0 0 .5rem; }
.facts-lead { margin: 0 0 .75rem; font-size: 1.02rem; }
.facts-choice { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .55rem; padding: 0; border: 0; min-inline-size: 0; }
.facts-choice legend:not(.visually-hidden) { float: left; width: 100%; margin-bottom: .3rem; font-weight: 700; font-size: .95rem; }
.facts-chip-choice { position: relative; display: inline-flex; }
.facts-chip-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.facts-chip-choice span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: .35rem .8rem; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface); }
.facts-chip-choice input:checked + span { background: var(--ink); color: #fff; }
.facts-chip-choice input:checked + span::before { content: "\2713\00a0"; }
.facts-chip-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.facts-tables .facts-chip-choice span { min-width: 48px; padding: .35rem .5rem; }
.facts-select { margin: 0 0 .55rem; }
/* One look in every engine (Pro review, UX LOW): WebKit draws its own short
   native control, so the arrow is two gradients and the height is ours. */
.facts-select select { -webkit-appearance: none; appearance: none; box-sizing: border-box; min-height: 48px; padding: .45rem 2.4rem .45rem .7rem; border: 2px solid var(--ink); border-radius: 10px; background-color: var(--surface); background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%; background-size: 6px 6px; background-repeat: no-repeat; color: var(--ink); font: inherit; font-weight: 700; line-height: 1.3; }
.facts-select select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.join-line { margin: .75rem 0; font-weight: 700; }
.facts-choice-note:empty { display: none; }
.facts-choice-note { margin: 0 0 .4rem; font-weight: 700; color: var(--coral-ink); }
.facts-landing [data-start] { margin-block-start: .5rem; min-width: 10rem; }
.facts-class-set { font-weight: 700; }

.facts-work { padding: clamp(.9rem, 3vw, 2rem); }
.facts-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.facts-progress { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts-clock { height: 8px; margin: .5rem 0; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.facts-clock span { display: block; height: 100%; background: var(--sea); transform-origin: left center; }
.facts-prompt { margin: .6rem 0 .3rem; font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.2rem, 11vw, 3.4rem); font-weight: 700; line-height: 1.1; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts-answer-row { display: flex; justify-content: center; margin: 0; }
.facts-answer { width: 7.5rem; min-height: 56px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 2rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.facts-status { min-height: 1.4em; margin: .3rem 0; text-align: center; font-weight: 700; }
.facts-pad { display: grid; grid-template-columns: repeat(3, minmax(44px, 1fr)); gap: 8px; max-width: 22rem; margin: .4rem auto 0; }
.facts-key { min-height: 52px; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.5rem; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.facts-key:active { background: var(--lime); }
.facts-key:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.facts-enter { background: var(--ink); color: #fff; }

.facts-result h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
.facts-missed { display: grid; gap: .35rem; padding: 0; list-style: none; }
.facts-missed li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.facts-q { font-weight: 700; font-variant-numeric: tabular-nums; }
.facts-chip { padding: .1rem .55rem; border-radius: 999px; font-size: .9rem; font-weight: 700; border: 1px solid var(--ink); }
.facts-chip[data-kind="not-yet"] { background: #ffe2a8; }
.facts-chip[data-kind="slow"] { background: #e6e6e1; }
[data-facts-again] { margin: .6rem 0; }
.facts-grid-wrap { margin: 1rem 0; overflow-x: auto; }
.facts-grid { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .85rem; }
.facts-grid th, .facts-grid td { width: 1.85rem; height: 1.85rem; padding: 0; text-align: center; border: 1px solid var(--line); }
.facts-grid th { font-weight: 700; background: var(--paper-2); }
.facts-grid td[data-mark="right"] { color: var(--sea); }
.facts-grid td[data-mark="not-yet"] { background: #ffe2a8; font-weight: 800; }
.facts-grid td[data-mark="slow"] { background: #e6e6e1; font-weight: 800; }
.facts-growth { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.facts-points { display: block; width: 100%; max-width: 20rem; height: auto; }
.facts-points circle.counted { fill: var(--sea); }
.facts-points circle.warmup { fill: none; stroke: var(--sea); stroke-width: 2; }
.class-block { max-width: 900px; margin: 1.5rem auto; padding: .9rem 1.1rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--surface); }
.class-block p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .facts-clock span { transition: none !important; } }
/* At phone widths the first screen holds the H1, the lead, the choices and
   Start (V-product-ux-seo S3), so the card's padding is smaller and the table
   chips sit six to a row. */
@media (max-width: 480px) {
  .facts-landing { padding: .9rem; }
  .facts-tables { display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); gap: 4px; }
  .facts-tables legend { grid-column: 1 / -1; }
  .facts-tables .facts-chip-choice span { width: 100%; padding: .35rem 0; }
  /* The tick stays at phone widths (UX LOW): smaller, with no space after it. */
  .facts-tables .facts-chip-choice input:checked + span::before { content: "\2713"; font-size: .8em; margin-inline-end: 1px; }
}
.facts-result h2:focus { outline: none; }
