/* Plain English pages (/basics/…): shared components. Loaded after styles.css, before film.css.
   Colour meaning stays the same as the rest of the site:
   rust = decided ahead of time by people, navy = the model's guess, teal = the ordinary program. */

/* ---------- Header: the four guide pages, drawn as numbered stops ---------- */
/* These are links to separate pages, so they must not look like the pill toggle used for
   "Plain English / With code" or like in-page tabs. Each page gets a number and the current
   one is underlined, like chapters in a course.
   Wide screens: brand and pages only (no in-page links). Up to 1020px the pages sit on their own
   row (styles.css does that for every page). Up to 760px: the number sits above a short label and a
   thin line joins the numbers, so the row never scrolls or clips. */
.page-tabs--four { gap: 0.25rem; padding: 0; background: none; border: 0; border-radius: 0; }
.page-tabs--four a { position: relative; gap: 0.4375rem; padding: 0 0.625rem; border-radius: var(--radius); font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.page-tabs--four a:hover { background: rgba(47, 111, 106, 0.08); color: var(--accent); }
.page-tabs--four .tab-n { display: grid; place-items: center; flex: none; width: 1.375rem; height: 1.375rem; border: 1.5px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 0.6875rem; font-weight: 800; line-height: 1; }
.page-tabs--four a:hover .tab-n { border-color: var(--accent); color: var(--accent); }
.page-tabs--four a[aria-current="page"] { background: none; color: var(--ink); font-weight: 800; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.page-tabs--four a[aria-current="page"] .tab-n { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.page-tabs--four ~ .site-nav .nav-label,
.page-tabs--four ~ .site-nav .nav-extra { display: none; }
@media (min-width: 1021px) {
  /* Pages share the brand row here; a lone in-page link would read as a fifth page, so hide it. */
  .page-tabs--four ~ .site-nav { display: none; }
}
@media (max-width: 1020px) {
  .page-tabs--four ~ .site-nav .nav-extra { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --header-h: 8rem; }
  .page-tabs--four { gap: 0; }
  .page-tabs--four a { flex-direction: column; justify-content: flex-start; gap: 0.1875rem; min-height: 3.25rem; padding: 0.25rem 0.125rem 0.375rem; font-size: 0.75rem; line-height: 1.1; white-space: normal; text-align: center; }
  .page-tabs--four a:hover { background: none; }
  /* Line from the previous number to this one, behind the circles. */
  .page-tabs--four a + a::before { content: ""; position: absolute; top: calc(0.25rem + 0.6875rem - 1px); left: calc(-50% + 0.875rem); right: calc(50% + 0.875rem); height: 2px; background: var(--border-strong); }
}
@media (max-width: 380px) {
  .page-tabs--four a { font-size: 0.6875rem; padding-inline: 0.0625rem; }
}

/* ---------- Bottom of every page: previous / next page ---------- */
/* <nav class="pager" aria-label="…"><div class="pager-inner"> prev link · "Page 2 of 4" · next link </div></nav> */
.pager { padding: 2rem max(1rem, env(safe-area-inset-right, 0px)) 2.25rem max(1rem, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 2px solid var(--border); }
.pager-inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.pager-where { grid-column: 2; margin: 0; text-align: center; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.pager-dots { display: flex; justify-content: center; gap: 0.375rem; margin-top: 0.375rem; }
.pager-dots span { width: 0.625rem; height: 0.625rem; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); }
.pager-dots .is-here { background: var(--accent); border-color: var(--accent); }
.pager-link { display: flex; flex-direction: column; gap: 0.125rem; min-height: 44px; padding: 0.75rem 1rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-tactile); color: var(--ink); text-decoration: none; }
.pager-link:hover { border-color: var(--accent); box-shadow: 2px 2px 0 var(--accent); }
.pager-link:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.pager-link--next { grid-column: 3; text-align: right; align-items: flex-end; }
.pager-link--prev { grid-column: 1; }
.pager-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.pager-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 600px) {
  .pager-inner { grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }
  .pager-where { grid-column: 1; grid-row: 1; }
  .pager-link--next, .pager-link--prev { grid-column: 1; }
  .pager-link--next { grid-row: 2; text-align: left; align-items: stretch; }
}

/* ---------- Analogy callout: "Think of it like…" ---------- */
/* <aside class="analogy"><p class="analogy-label">Think of it like</p><p>…</p></aside> */
.analogy { margin: 1.25rem 0; padding: 0.875rem 1rem 0.875rem 1.125rem; max-width: 38rem; background: #fff; border: 2px solid var(--ink); border-left: 6px solid var(--warn); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--border-strong); }
.analogy > p { margin: 0 0 0.5rem; }
.analogy > p:last-child { margin-bottom: 0; }
.analogy-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--warn); }

/* ---------- Key point: one sentence to remember ---------- */
/* <p class="keypoint">…</p> */
.keypoint { margin: 1.5rem 0; padding: 0.75rem 1rem; max-width: 38rem; font-size: 1.125rem; font-weight: 700; line-height: 1.5; color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Term: a word introduced for the first time ---------- */
/* <dfn class="term">token</dfn> */
.term { font-style: normal; font-weight: 700; color: var(--model); border-bottom: 2px dotted color-mix(in srgb, var(--model) 55%, transparent); }

/* ---------- Token row: a sentence chopped into pieces, each with its ID number ---------- */
/* Reuses .chips / .chip / .chip-t / .chip-id from styles.css.
   <figure class="token-row"><p class="token-src">“Hi, I got charged twice”</p>
     <ul class="chips" aria-label="…"><li class="chip"><span class="chip-t">Hi</span><span class="chip-id">13048</span></li>…</ul>
     <figcaption>…</figcaption></figure> */
.token-row { margin: 1.25rem 0; padding: 0.875rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.token-src { margin: 0 0 0.625rem; font-size: 1.0625rem; font-weight: 600; }
.token-row .chips { min-height: 0; margin-bottom: 0.5rem; }
.token-row .chip-t { font-size: 0.9375rem; }
.token-row .chip-id { font-size: 0.6875rem; }
.token-row figcaption { font-size: 0.875rem; color: var(--muted); }
.chip--next { border: 2px dashed var(--model); background: color-mix(in srgb, var(--model) 8%, #fff); }

/* ---------- Guess bars: scores for possible next pieces ---------- */
/* <ol class="guesses"><li><span class="guess-word">twice</span><span class="guess-bar"><span class="guess-fill guess-w-62"></span></span><span class="guess-pct">62%</span></li>…</ol>
   Widths via classes (CSP forbids inline style attributes): .guess-w-5 … .guess-w-100 in steps of 5, plus 1–4. */
.guesses { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.375rem; max-width: 32rem; }
.guesses li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 3rem; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.guess-word { font: 700 0.875rem/1.3 var(--font-mono); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.guess-bar { height: 0.875rem; background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.guess-fill { display: block; height: 100%; width: 0; background: var(--model); }
.guess-pct { font: 0.8125rem/1 var(--font-mono); color: var(--muted); text-align: right; }
.guesses li.is-picked .guess-word { color: var(--model); }
.guess-w-1 { width: 1%; } .guess-w-2 { width: 2%; } .guess-w-3 { width: 3%; } .guess-w-4 { width: 4%; }
.guess-w-5 { width: 5%; } .guess-w-10 { width: 10%; } .guess-w-15 { width: 15%; } .guess-w-20 { width: 20%; }
.guess-w-25 { width: 25%; } .guess-w-30 { width: 30%; } .guess-w-35 { width: 35%; } .guess-w-40 { width: 40%; }
.guess-w-45 { width: 45%; } .guess-w-50 { width: 50%; } .guess-w-55 { width: 55%; } .guess-w-60 { width: 60%; }
.guess-w-65 { width: 65%; } .guess-w-70 { width: 70%; } .guess-w-75 { width: 75%; } .guess-w-80 { width: 80%; }
.guess-w-85 { width: 85%; } .guess-w-90 { width: 90%; } .guess-w-95 { width: 95%; } .guess-w-100 { width: 100%; }

/* ---------- Steps: a numbered, plain-language sequence ---------- */
/* <ol class="steps"><li><strong>Look.</strong> …</li>…</ol> */
.steps { list-style: none; margin: 1.25rem 0; padding: 0; counter-reset: step; display: grid; gap: 0.625rem; max-width: 40rem; }
.steps > li { counter-increment: step; position: relative; padding: 0.625rem 0.875rem 0.625rem 3.25rem; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 0.75rem; top: 0.6rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.875rem; }
.steps > li.step--model::before { background: var(--model); }
.steps > li.step--rules::before { background: var(--rules); }

/* ---------- Two-up comparison: old way vs new way, note vs program ---------- */
/* <div class="pair"><div class="pair-card pair-card--rules"><h3>…</h3>…</div><div class="pair-card pair-card--model">…</div></div> */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.pair-card { padding: 1rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--border-strong); }
.pair-card > :last-child { margin-bottom: 0; }
.pair-card h3 { margin-top: 0; }
.pair-card--rules { border-color: var(--rules); box-shadow: 3px 3px 0 var(--rules); }
.pair-card--model { border-color: var(--model); box-shadow: 3px 3px 0 var(--model); }
.pair-card--code { border-color: var(--code); box-shadow: 3px 3px 0 var(--code); }
.pair-card ul { padding-left: 1.125rem; }

/* ---------- Myth / fact ---------- */
/* <dl class="mythfact"><dt>Myth: …</dt><dd>…</dd>…</dl> */
.mythfact { margin: 1rem 0; display: grid; gap: 0.75rem; max-width: 42rem; }
.mythfact dt { padding: 0.625rem 0.875rem 0; font-weight: 700; color: var(--rules); background: #fff; border: 1px solid var(--border-strong); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.mythfact dd { margin: -0.75rem 0 0; padding: 0.25rem 0.875rem 0.75rem; background: #fff; border: 1px solid var(--border-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); color: var(--ink); }

/* ---------- Glossary: reuse .glossary from styles.css; .glossary--plain adds a little room ---------- */
.glossary--plain { font-size: 1rem; }
.glossary--plain dd { color: var(--ink); }

/* ---------- Next-page link row at the end of each page ---------- */
.next-page { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 2rem 0 0; }

@media (max-width: 600px) {
  .page-tabs--four ~ .site-nav .nav-extra { display: none; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .guesses li { grid-template-columns: 5rem minmax(0, 1fr) 2.75rem; }
}

/* ===== Page block: /basics/ "How AI works" (owned by that page's builder; scoped to .bx-home) ===== */
.bx-home .section-inner > p, .bx-home .lead { max-width: 40rem; }
.bx-home .h-step { display: block; margin-bottom: 0.125rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.bx-home .idea-card { margin: 1.5rem 0; padding: 1rem 1.25rem; max-width: 42rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 4px 4px 0 var(--border-strong); }
.bx-home .idea-title { margin: 0; font-weight: 800; } .bx-home .idea-card .steps { margin: 0.625rem 0 0; }
/* The four guide pages, as a contents list: separate pages, read in order */
.bx-home .guide-map { margin: 1.75rem 0 1.25rem; max-width: 46rem; }
.bx-home .guide-map-title { margin: 0 0 0.25rem; font-size: 1.125rem; font-weight: 800; }
.bx-home .guide-map-note { margin: 0 0 0.75rem; color: var(--muted); }
.bx-home .guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bx-home .guide-row { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; align-items: center; column-gap: 0.875rem; padding: 0.625rem 0.875rem; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.bx-home a.guide-row:hover { border-color: var(--accent); box-shadow: 2px 2px 0 var(--accent); }
.bx-home a.guide-row:hover .guide-go { color: var(--accent); }
.bx-home .is-here .guide-row { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.bx-home .guide-n { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bx-home .is-here .guide-n { color: var(--accent); }
.bx-home .guide-text { display: flex; flex-direction: column; gap: 0.0625rem; }
.bx-home .guide-name { font-weight: 700; }
.bx-home .guide-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.35; }
.bx-home .guide-go { font-size: 0.8125rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bx-home .guide-here { padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.bx-home .route-caption { margin: 0.5rem 0 1.25rem; font-size: 0.875rem; color: var(--muted); }
.bx-home .lsp { color: var(--muted); font-weight: 400; } .bx-home .withcode { margin: 1.75rem 0 0; font-size: 0.875rem; color: var(--muted); }
.bx-home .withcode a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; } .bx-home .notice { max-width: 42rem; margin: 0 0 1rem; padding-left: 1.25rem; }
.bx-home .notice li { margin-bottom: 0.5rem; }
.bx-home .toggle-btn[aria-pressed="true"] { background: var(--model); color: #fff; } .bx-home .toggle-btn[aria-pressed="false"]:hover { color: var(--ink); background: color-mix(in srgb, var(--model) 8%, #fff); }
.bx-home .chopper { margin: 1.25rem 0 1.75rem; } .bx-home .chopper-picks, .bx-home .stepper-tabs { border-radius: var(--radius-lg); margin-bottom: 0.5rem; }
.bx-home .toggle-btn[aria-pressed="false"] { background: #fff; box-shadow: inset 0 0 0 1px var(--border); } .bx-home .chopper-picks .toggle-btn { padding: 0.5rem 0.875rem; }
.bx-home .chopper-more .token-row { margin: 0.75rem 0 0; box-shadow: none; } .bx-home .chopper-note { max-width: 40rem; margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--muted); }
.bx-home .stepper { margin: 1.5rem 0; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.bx-home .illus-note { margin: 0 0 1rem; padding: 0.5rem 0.75rem; max-width: 40rem; font-size: 0.875rem; background: color-mix(in srgb, var(--warn) 8%, #fff); border: 1px dashed var(--warn); border-radius: var(--radius); }
.bx-home .demo + .demo { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 2px solid var(--border); } .bx-home .stepper.is-live .demo + .demo { margin-top: 0; padding-top: 0; border-top: 0; }
.bx-home .pstep, .bx-home .presult, .bx-home .pfinal { margin: 0 0 1rem; } .bx-home .pstep + .pstep { padding-top: 1rem; border-top: 1px dashed var(--border-strong); }
.bx-home .stepper .chips { min-height: 0; margin-bottom: 0.25rem; } .bx-home .score-table { width: 100%; max-width: 36rem; margin: 0.5rem 0 0; border-collapse: collapse; font-size: 0.9375rem; background: #fff; }
.bx-home .score-table caption { caption-side: top; padding: 0 0 0.375rem; text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.bx-home .score-table th, .bx-home .score-table td { padding: 0.375rem 0.5rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.bx-home .score-table thead th { font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); } .bx-home .score-table tbody th { font-weight: 400; }
.bx-home .score-table td:nth-child(2) { font: 0.8125rem/1.3 var(--font-mono); color: var(--muted); } .bx-home .score-table td:last-child { width: 50%; white-space: nowrap; }
.bx-home .score-table .guess-bar { display: inline-block; vertical-align: middle; width: calc(100% - 8rem); min-width: 3rem; } .bx-home .score-word { margin-left: 0.375rem; font-size: 0.8125rem; color: var(--muted); }
.bx-home .piece { font: 700 0.875rem/1.3 var(--font-mono); white-space: pre; } .bx-home .score-table tr.is-picked { background: color-mix(in srgb, var(--model) 9%, #fff); }
.bx-home .score-table tr.is-picked th, .bx-home .score-table tr.is-picked .score-word { font-weight: 700; color: var(--model); }
.bx-home .pick-tag { display: inline-block; margin-left: 0.375rem; padding: 0 0.375rem; border: 1px solid var(--model); border-radius: 4px; background: var(--model); color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.bx-home .pick-tag--alt { background: #fff; color: var(--model); } .bx-home .is-rest th { font-style: italic; color: var(--muted); }
.bx-home .is-rest .guess-fill { background: var(--border-strong); } .bx-home .demo-caption { max-width: 40rem; margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.bx-home .stepper-status { min-height: 1.6em; margin: 0.75rem 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--model); }
.bx-home .three { list-style: none; margin: 0.75rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.875rem; }
.bx-home .three li { padding: 0.875rem 1rem; background: #fff; border: 1px solid var(--border-strong); border-top: 4px solid var(--model); border-radius: var(--radius); font-size: 0.9375rem; }
.bx-home .three strong { display: block; margin-bottom: 0.25rem; font-size: 1rem; } .bx-home .understand { margin-top: 1.5rem; }
.bx-home .understand h3 { margin: 0 0 0.25rem; } .bx-home .understand p { margin: 0; }
.bx-home .grow { margin: 1.5rem 0; padding: 1rem; max-width: 46rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.bx-home .grow-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; } .bx-home .grow-label { margin: 0 0 0.375rem; font-size: 0.875rem; }
.bx-home .slips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.bx-home .slip { padding: 0.25rem 0.5rem; background: #fff; border: 1px solid var(--border-strong); border-radius: 4px; box-shadow: 2px 2px 0 var(--border); font-size: 0.8125rem; font-weight: 600; transform: rotate(-0.6deg); }
.bx-home .slip:nth-child(even) { transform: rotate(0.6deg); } .bx-home .slip--inst { border-color: var(--rules); color: var(--rules); }
.bx-home .slip--reply { border-color: var(--model); color: var(--model); } .bx-home .slip--new { border: 2px dashed var(--ink); }
.bx-home .grow figcaption { margin-top: 0.875rem; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.bx-home .link-card { display: inline-flex; flex-direction: column; gap: 0.125rem; max-width: 36rem; padding: 0.75rem 1rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-tactile); color: var(--ink); text-decoration: none; }
.bx-home .link-card:hover { border-color: var(--accent); box-shadow: 2px 2px 0 var(--accent); }
.bx-home .link-card-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); } .bx-home .link-card-text { font-weight: 700; }
.bx-home .link-card--next { margin-top: 1rem; } .bx-home .link-card--next .link-card-text { font-size: 1.0625rem; }
.bx-home .recap-grid { display: grid; gap: 1.5rem; } .bx-home .cycle-fig { margin: 0; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.bx-home .cycle, .bx-home .cycle-inner { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; } .bx-home .cycle > li, .bx-home .cycle-inner > li { position: relative; }
.bx-home .cyc { padding: 0.5rem 0.75rem; background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); font-size: 0.9375rem; font-weight: 600; text-align: center; }
.bx-home .cyc--model { border-color: var(--model); color: var(--model); }
.bx-home .cycle > li:not(:last-child)::after, .bx-home .cycle-inner > li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -1.05rem; width: 0.75rem; height: 0.7rem; transform: translateX(-50%); background: var(--border-strong); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bx-home .cyc-loop { padding: 0.75rem; border: 2px dashed var(--model); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--model) 5%, transparent); }
.bx-home .cyc-again { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--model); text-align: center; } .bx-home .cyc-again-mark { font-size: 1.125rem; }
.bx-home .cycle-fig figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); } .bx-home .recap-text .keypoint { margin-top: 0; }
.bx-home .can-explain { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.375rem; } .bx-home .can-explain li { position: relative; padding-left: 1.75rem; }
.bx-home .can-explain li::before { content: "✓"; position: absolute; left: 0.125rem; top: 0; color: var(--accent); font-weight: 800; }
@media (min-width: 900px) { .bx-home .glossary { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); } .bx-home .recap-grid { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
@media (max-width: 860px) { .bx-home .three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .bx-home .guide-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.125rem; } .bx-home .guide-n { grid-column: 1 / -1; } .bx-home .guide-go-word { display: none; } .bx-home .guide-go { font-size: 1.125rem; } .bx-home .stepper { padding: 0.75rem; } .bx-home .score-table th, .bx-home .score-table td { padding: 0.375rem 0.3rem; } .bx-home .score-table .guess-bar { display: block; width: 100%; min-width: 0; } .bx-home .score-word { display: block; margin: 0.125rem 0 0; } }
/* ===== end /basics/ page block ===== */

/* ===== Page block: /basics/instructions/ "Notes vs programs" (owned by that page's builder; scoped to .bx-instr) ===== */
.bx-instr .withcode { margin: 1.75rem 0 0; font-size: 0.875rem; color: var(--muted); }
.bx-instr .withcode a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.bx-instr .legend { margin-top: 1.25rem; }
.bx-instr .anno-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.bx-instr .callouts { margin: 0; }
.bx-instr .callouts a, .bx-instr .myth a, .bx-instr .lead a { color: var(--accent); text-underline-offset: 3px; }
/* Sticky note: every navy line is a request to the model */
.bx-instr .sticky { margin: 0; padding: 1rem 1.125rem 1.125rem; background: #FFF4C2; border: 1px solid #D8C67A; border-left: 6px solid var(--model); border-radius: 2px var(--radius) var(--radius) 2px; box-shadow: 3px 3px 0 var(--border-strong); transform: rotate(-0.6deg); }
.bx-instr .sticky-cap { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--model); }
.bx-instr .sticky-body { font-size: 0.9375rem; line-height: 1.5; }
.bx-instr .ln { margin: 0 0 0.375rem; }
.bx-instr .ln--req { color: var(--model); padding-left: 0.5rem; border-left: 3px solid color-mix(in srgb, var(--model) 55%, transparent); }
.bx-instr .ln--head { margin-top: 0.75rem; font-weight: 700; }
.bx-instr .ln-list { margin: 0 0 0.25rem; padding-left: 1.375rem; }
.bx-instr .ln-list li { padding-left: 0.375rem; }
.bx-instr .ln--app { margin: 0.875rem 0 0; padding: 0.5rem 0.625rem; font-weight: 700; color: var(--code); background: color-mix(in srgb, var(--code) 10%, #fff); border-radius: var(--radius); }
.bx-instr .ln--app .tag { font-size: 0.75rem; background: #fff; }
/* Recipe card: the program version */
.bx-instr .recipe { padding: 1rem; background: var(--surface); border: 2px solid var(--code); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--code); }
.bx-instr .recipe-title { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--code); }
.bx-instr .recipe .steps { margin: 0.5rem 0 0; font-size: 0.9375rem; line-height: 1.5; }
.bx-instr .steps .tag { margin-right: 0.25rem; font-size: 0.8125rem; }
.bx-instr .step--model { border-color: var(--model); background: color-mix(in srgb, var(--model) 5%, #fff); }
.bx-instr .answers { list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.5rem 0 0; padding: 0; }
.bx-instr .answers li { padding: 0.125rem 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--model); background: #fff; border: 1.5px dashed var(--model); border-radius: 999px; }
/* Who table + why cards */
.bx-instr .compare--who { min-width: 0; }
.bx-instr .compare--who tbody th { white-space: normal; }
.bx-instr .compare--who .tag { margin-right: 0.25rem; }
.bx-instr .why-cards dt { color: var(--model); }
/* Spot the trick */
.bx-instr .trick { margin-top: 2rem; padding: 1.25rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 3px 3px 0 var(--border-strong); }
.bx-instr .trick h3 { margin-top: 0; }
.bx-instr .trick .pair { margin-bottom: 0; }
.bx-instr .trick h4 { margin: 0 0 0.5rem; font-size: 1rem; }
.bx-instr .trick-guard { padding: 0.5rem 0.625rem; font-size: 0.9375rem; font-weight: 700; color: var(--model); background: color-mix(in srgb, var(--model) 7%, #fff); border-radius: var(--radius); }
.bx-instr .trick-guard--code { color: var(--code); background: color-mix(in srgb, var(--code) 9%, #fff); }
.bx-instr .trick-answers { margin-top: 1rem; padding: 1rem; background: #fff; border: 2px solid var(--code); border-radius: var(--radius); }
.bx-instr .trick-picks { gap: 0.375rem; margin: 0 0 0.5rem; padding: 0; background: none; border: 0; }
.bx-instr .trick-picks .toggle-btn { min-height: 40px; padding: 0.375rem 0.75rem; font-size: 0.8125rem; color: var(--model); background: #fff; border: 1.5px solid var(--model); border-radius: 999px; box-shadow: 2px 2px 0 var(--model); }
.bx-instr .trick-picks .toggle-btn:hover { background: color-mix(in srgb, var(--model) 8%, #fff); }
.bx-instr .trick-picks .toggle-btn[aria-pressed="true"] { background: var(--model); color: #fff; }
.bx-instr .trick-status { min-height: 3em; margin: 0 0 0.5rem; font-size: 0.9375rem; font-weight: 700; color: var(--code); }
.bx-instr .trick-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.45; }
.bx-instr .trick-table th, .bx-instr .trick-table td { padding: 0.4rem 0.5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.bx-instr .trick-table thead th { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.bx-instr .trick-table tbody th { color: var(--model); }
.bx-instr .trick-table tr.is-picked > * { background: color-mix(in srgb, var(--code) 12%, #fff); }
.bx-instr .trick .keypoint { max-width: none; margin-bottom: 0; }
/* Four questions + recap */
.bx-instr .checklist { max-width: 40rem; padding: 1rem 1.25rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--border-strong); }
.bx-instr .checklist-list { margin: 0; padding-left: 1.5rem; display: grid; gap: 0.5rem; }
.bx-instr .checklist-list li::marker { font-weight: 800; color: var(--accent); }
.bx-instr .can-explain { list-style: none; margin: 0.5rem 0 1.5rem; padding: 0; display: grid; gap: 0.375rem; }
.bx-instr .can-explain li { position: relative; padding-left: 1.75rem; }
.bx-instr .can-explain li::before { content: "✓"; position: absolute; left: 0.125rem; top: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 760px) {
  .bx-instr .anno-grid { grid-template-columns: minmax(0, 1fr); }
  .bx-instr .sticky { transform: none; }
}
@media (max-width: 600px) {
  .bx-instr .trick, .bx-instr .recipe { padding: 0.75rem; }
  .bx-instr .trick-answers { padding: 0.625rem; }
  .bx-instr .compare--who th, .bx-instr .compare--who td { padding: 0.5rem; font-size: 0.875rem; }
  .bx-instr .compare--who td .tag { display: table; margin: 0 0 0.125rem; }
}
/* ===== end /basics/instructions/ page block ===== */

/* ===== Page block: /basics/behind-the-scenes/ "Behind the scenes" (owned by that page's builder; scoped to .bx-behind). One component per line. ===== */
/* withcode / link-card / can-explain match the /basics/ block (candidates for the shared rules above). */
.bx-behind .section-inner--wide > p:not(.keypoint) { max-width: 44rem; } .bx-behind .section-intro a { color: var(--accent); text-underline-offset: 3px; }
.bx-behind .withcode { margin: 1.75rem 0 0; font-size: 0.875rem; color: var(--muted); } .bx-behind .withcode a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.bx-behind .link-card { display: inline-flex; flex-direction: column; gap: 0.125rem; max-width: 36rem; margin-top: 1rem; padding: 0.75rem 1rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-tactile); color: var(--ink); text-decoration: none; }
.bx-behind .link-card:hover { border-color: var(--accent); box-shadow: 2px 2px 0 var(--accent); } .bx-behind .link-card-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); } .bx-behind .link-card-text { font-size: 1.0625rem; font-weight: 700; }
.bx-behind .can-explain, .bx-behind .checklist { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; max-width: 40rem; } .bx-behind .can-explain li, .bx-behind .checklist li { position: relative; padding-left: 1.75rem; }
.bx-behind .can-explain li::before, .bx-behind .checklist li::before { content: "✓"; position: absolute; left: 0.125rem; top: 0; color: var(--accent); font-weight: 800; } .bx-behind .checklist li::before { color: var(--rules); }
/* Package: three envelopes in a kraft parcel */
.bx-behind .pkg { margin: 0 0 1.5rem; } .bx-behind .pkg-parts { list-style: none; margin: 0 0 0.5rem; padding: 0.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; background: #F3E3C3; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--border-strong); }
.bx-behind .pkg-part { display: grid; align-content: start; gap: 0.125rem; padding: 0.625rem 0.75rem; background: #fff; border: 1.5px solid var(--border-strong); border-top: 5px solid var(--ink); border-radius: 4px; } .bx-behind .pkg-part--menu { border-top-color: var(--code); } .bx-behind .pkg-part--conv { border-top-color: var(--model); }
.bx-behind .pkg-num { font: 800 0.75rem/1 var(--font-mono); color: var(--muted); } .bx-behind .pkg-name { font-weight: 800; } .bx-behind .pkg-note, .bx-behind figcaption { font-size: 0.875rem; color: var(--muted); }
.bx-behind .compare--plain { min-width: 0; } .bx-behind .menu-list, .bx-behind .plain-list { padding-left: 1.25rem; display: grid; gap: 0.375rem; max-width: 44rem; }
/* Reply slip */
.bx-behind .reply-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; } .bx-behind .reply-parts { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.625rem; } .bx-behind .reply-card { margin: 0; }
.bx-behind .rc-slip { margin-bottom: 0.5rem; padding: 0.875rem 1rem; background: #FFFDF6; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--model); transform: rotate(-1deg); } .bx-behind .rc-slip > p { margin: 0 0 0.5rem; }
.bx-behind .rc-head { font: 800 0.75rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .bx-behind .rc-req { padding: 0.375rem 0.5rem; color: var(--model); border: 1.5px dashed var(--model); border-radius: 4px; }
.bx-behind .rc-tag { display: inline-block; margin-right: 0.25rem; padding: 0 0.4rem; font: 700 0.75rem/1.5 var(--font-mono); color: #fff; background: var(--warn); border-radius: 3px 10px 10px 3px; }
.bx-behind .rc-boxes { list-style: none; margin: 0 0 0.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.9375rem; } .bx-behind .rc-box { display: inline-grid; place-items: center; width: 1rem; height: 1rem; vertical-align: -0.15em; border: 2px solid var(--ink); border-radius: 2px; background: #fff; }
.bx-behind .is-on .rc-box::after { content: "✓"; font-weight: 900; font-size: 0.8rem; line-height: 1; color: var(--model); } .bx-behind .rc-slip > .rc-count { margin: 0; font: 0.8125rem/1.4 var(--font-mono); } .bx-behind .rc-unit { color: var(--muted); }
/* Five-trip stepper (reuses .rt / .context-list from styles.css) */
.bx-behind .trips-fixed { margin: 0 0 0.375rem; padding: 0.375rem 0.6rem; font-size: 0.8125rem; font-weight: 700; color: var(--muted); border: 1.5px dashed var(--border-strong); border-radius: 6px; } .bx-behind .ctx--result { font-family: inherit; font-size: inherit; }
.bx-behind .trip-facts { margin: 0 0 0.75rem; display: grid; gap: 0.375rem; } .bx-behind .trip-facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.75rem; } .bx-behind .trip-facts dt { font-size: 0.8125rem; font-weight: 800; color: var(--muted); } .bx-behind .trip-facts dd { margin: 0; font-size: 0.9375rem; }
.bx-behind .rt:not(.is-stepping) .trips-list { max-height: none; overflow: visible; } .bx-behind .rt-note--stop { border-left-color: var(--rules); } .bx-behind .rt-note--done { border-left-color: var(--ok); } .bx-behind .compare td.num, .bx-behind .compare tfoot td { font-family: var(--font-mono); font-size: 0.875rem; white-space: nowrap; } .bx-behind .tally { margin-top: 1rem; } .bx-behind .trips-meter { margin-bottom: 0.75rem; }
/* What the model reads: plain labels / real markers */
.bx-behind .reads-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; } .bx-behind .reads-notes-title { margin-top: 0; }
.bx-behind .flat .mk { padding: 0.05em 0.3em; border-radius: 4px; background: var(--model); color: #fff; font-weight: 700; white-space: nowrap; } .bx-behind .flat .cut { color: var(--muted); font-style: italic; }
.bx-behind .flat .mk-real, .bx-behind .flat.is-real .mk-plain { display: none; } .bx-behind .flat.is-real .mk-real { display: inline; } .bx-behind .flat-toggle .toggle-btn[aria-pressed="true"] { background: var(--model); color: #fff; }
.bx-behind .flat-details { margin-top: 0.75rem; padding: 0.625rem 0.875rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); } .bx-behind .flat-details summary { font-weight: 700; cursor: pointer; } .bx-behind .mk-map { margin: 0.625rem 0; padding-left: 1.125rem; display: grid; gap: 0.375rem; font-size: 0.875rem; }
/* Cost tally: bars reuse .guess-bar / .guess-fill / .guess-w-N */
.bx-behind .tally-wrap { margin: 1.25rem 0; max-width: 44rem; } .bx-behind .tally-table { min-width: 0; } .bx-behind .tally-table caption { padding: 0.625rem 0.875rem 0; text-align: left; font-size: 0.875rem; color: var(--muted); } .bx-behind .tally-table td:nth-child(2) { width: 50%; }
.bx-behind .tally-n { display: inline-block; min-width: 3.25rem; font: 0.875rem var(--font-mono); } .bx-behind .tally-table .guess-bar { display: inline-block; width: calc(100% - 3.75rem); vertical-align: middle; }
/* Safety: checklist + the $76 request at the checks */
.bx-behind .safety-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin: 1rem 0; } .bx-behind .checkrun { margin: 0; padding: 0.875rem 1rem; background: #fff; border: 2px solid var(--rules); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--rules); }
.bx-behind .checkrun > p { margin: 0 0 0.5rem; } .bx-behind .checkrun-req { color: var(--model); font-weight: 700; } .bx-behind .checkrun-list { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.375rem; font-size: 0.9375rem; } .bx-behind .checkrun-list li { display: flex; gap: 0.5rem; }
.bx-behind .checkrun-mark { flex: none; font-weight: 900; color: var(--ok); } .bx-behind .is-fail .checkrun-mark, .bx-behind .checkrun-out { color: var(--rules); font-weight: 800; }
@media (max-width: 860px) { .bx-behind .reply-grid, .bx-behind .reads-grid, .bx-behind .safety-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .bx-behind .pkg-parts { grid-template-columns: minmax(0, 1fr); } .bx-behind .trip-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; } .bx-behind .rc-slip { transform: none; } .bx-behind .tally-table .guess-bar { display: none; } .bx-behind .tally-table th, .bx-behind .tally-table td { padding: 0.5rem; } }
/* ===== end /basics/behind-the-scenes/ page block ===== */

/* ===== Page block: /basics/agents/ "What agents are" (owned by that page's builder; scoped to .bx-agents). One component per line. ===== */
.bx-agents .ag-prose { max-width: 40rem; } .bx-agents .ag-prose ul { padding-left: 1.25rem; } .bx-agents .ag-aside { margin: 1.25rem 0 0; font-size: 0.9375rem; color: var(--muted); } .bx-agents .ag-codelink { margin: 1.75rem 0 0; font-size: 0.875rem; color: var(--muted); } .bx-agents .ag-aside a, .bx-agents .ag-codelink a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; } .bx-agents .ag-codelink-alt a { font-weight: 400; }
.bx-agents .ag-flow { margin: 1.25rem 0; padding: 1rem; max-width: 40rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); } .bx-agents .ag-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.bx-agents .ag-flow-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.25rem 1rem; align-items: center; padding: 0.625rem 0.875rem; background: #fff; border: 2px solid var(--rules); border-radius: var(--radius); } .bx-agents .ag-flow-box:not(:last-child)::after { content: "↓"; position: absolute; left: 1.5rem; bottom: -1.5rem; color: var(--rules); font-weight: 800; line-height: 1.5rem; }
.bx-agents .ag-flow-q { font-weight: 700; color: #8f3f20; } .bx-agents .ag-flow-yes { grid-row: span 2; justify-self: start; padding: 0.125rem 0.5rem; font-size: 0.8125rem; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 999px; } .bx-agents .ag-flow-no { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.bx-agents .ag-flow-box--start { border-color: var(--ink); } .bx-agents .ag-flow-box--start .ag-flow-q { color: var(--ink); } .bx-agents .ag-flow-box--end { background: color-mix(in srgb, var(--rules) 12%, #fff); box-shadow: 3px 3px 0 var(--rules); } .bx-agents .ag-flow-here { justify-self: start; padding: 0.125rem 0.5rem; font-size: 0.8125rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 4px; }
.bx-agents .ag-swap-old s { color: var(--rules); text-decoration-thickness: 2px; font-size: 0.875rem; } .bx-agents .ag-swap-new { align-self: center; padding: 0.1em 0.5em; color: #fff; background: var(--model); border-radius: 4px; font-size: 0.875rem; font-weight: 700; }
.bx-agents .ag-trace, .bx-agents .ag-r2-app { padding: 1rem; background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); } .bx-agents .ag-trace-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.875rem; } .bx-agents .ag-trace-task { margin: 0; max-width: 34rem; font-size: 0.9375rem; } .bx-agents .ag-trace-meter { margin: 0; font: 700 0.8125rem/1.4 var(--font-mono); color: var(--model); }
.bx-agents .ag-trace-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; } .bx-agents .ag-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; } .bx-agents .ag-stage { padding: 0.75rem 0.875rem; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius); } .bx-agents .ag-stage-title { margin: 0 0 0.5rem; font-size: 1rem; }
.bx-agents .ag-parts { margin: 0; display: grid; gap: 0.5rem; font-size: 0.9375rem; } .bx-agents .ag-part { padding-left: 0.75rem; border-left: 4px solid var(--border-strong); } .bx-agents .ag-part dt { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .bx-agents .ag-part dd { margin: 0; }
.bx-agents .ag-part--model { border-color: var(--model); } .bx-agents .ag-part--model dt { color: var(--model); } .bx-agents .ag-part--code { border-color: var(--code); } .bx-agents .ag-part--code dt { color: var(--code); } .bx-agents .ag-part--rules { border-color: var(--rules); } .bx-agents .ag-part--rules dt { color: var(--rules); }
.bx-agents .ag-note-top { margin: 0 0 0.375rem; font-size: 0.8125rem; color: var(--muted); } .bx-agents .ag-note .ctx--result { font-family: var(--font); font-size: 0.8125rem; } .bx-agents .ag-note .ctx-who { min-width: 4.25rem; } .bx-agents .ag-trace.is-stepping .context-list { max-height: none; }
.bx-agents .ag-tally { margin: 1.5rem 0; padding: 1rem; max-width: 44rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--border-strong); } .bx-agents .ag-tally-title { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .bx-agents .ag-tally-notes { margin: 0; padding-left: 1.125rem; font-size: 0.9375rem; display: grid; gap: 0.25rem; }
.bx-agents .ag-tally-nums { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; font-size: 0.8125rem; line-height: 1.35; } .bx-agents .ag-tally-nums li { padding: 0.5rem; border-top: 4px solid var(--code); background: var(--surface); } .bx-agents .ag-tally-nums li:nth-child(-n+2) { border-color: var(--model); } .bx-agents .ag-tally-nums .ag-tally-block { border-color: var(--rules); } .bx-agents .ag-tally-nums strong { display: block; font-size: 1.5rem; line-height: 1.2; }
.bx-agents .ag-round-title { margin-top: 1.75rem; } .bx-agents .ag-lab > .ag-round-title:first-child { margin-top: 0; } .bx-agents .ag-round-intro { max-width: 40rem; margin: 0 0 1rem; color: var(--muted); }
.bx-agents .ag-menu-card { margin: 0 0 1rem; padding: 0.75rem 1rem; max-width: 36rem; background: color-mix(in srgb, var(--rules) 7%, #fff); border: 2px solid var(--rules); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--rules); } .bx-agents .ag-menu-card ol { margin: 0; padding-left: 1.25rem; font-size: 0.9375rem; } .bx-agents .ag-menu-title { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #8f3f20; } .bx-agents .ag-arrow { color: #8f3f20; font-weight: 800; }
.bx-agents .ag-quiz { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } .bx-agents .ag-q { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0.875rem; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius); } .bx-agents .ag-q-text { margin: 0; font-weight: 600; }
.bx-agents .ag-q-from { display: block; font: 700 0.75rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); } .bx-agents .ag-q .ag-reveal { margin: 0; padding: 0.25rem 0.75rem; font-size: 0.9375rem; } .bx-agents .ag-reveal p { margin: 0 0 0.5rem; } .bx-agents .ag-verdict { margin: 0; }
.bx-agents .ag-opts-label { margin: 0.625rem 0 0.375rem; } .bx-agents .ag-opts { display: flex; flex-wrap: wrap; gap: 0.375rem; } .bx-agents .ag-opt { flex: 1 1 8rem; min-height: 44px; padding: 0.375rem 0.625rem; font: 600 0.875rem/1.25 var(--font); color: var(--ink); background: #fff; border: 2px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; touch-action: manipulation; } .bx-agents .ag-opt:hover { border-color: var(--ink); }
.bx-agents .ag-opt[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); } .bx-agents .is-answered .ag-opt.is-answer { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.bx-agents .ag-slips { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; } .bx-agents .ag-slips li { padding: 0.25rem 0.625rem; font-size: 0.875rem; color: var(--model); background: #fff; border: 2px solid var(--model); border-radius: var(--radius); }
.bx-agents .ag-r2-app { margin-bottom: 1rem; box-shadow: none; } .bx-agents .ag-move { font-weight: 600; } .bx-agents .ag-whodid { max-width: 40rem; font-size: 0.9375rem; }
.bx-agents .ag-dial .spec-card { border-top: 6px solid var(--rules); } .bx-agents .ag-dial .ag-dial-2 { border-top-color: color-mix(in srgb, var(--rules) 70%, var(--model)); } .bx-agents .ag-dial .ag-dial-3 { border-top-color: color-mix(in srgb, var(--rules) 35%, var(--model)); } .bx-agents .ag-dial .ag-dial-4 { border-top-color: var(--model); } .bx-agents .ag-axis { margin-bottom: 0.5rem; }
.bx-agents .ag-myths { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } .bx-agents .ag-myth { display: flex; flex-direction: column; } .bx-agents .ag-myth dd { flex: 1; margin: 0; padding-top: 0.5rem; } .bx-agents .ag-fact { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--code); }
.bx-agents .ag-stamp { display: inline-block; margin-right: 0.375rem; padding: 0 0.375rem; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rules); border: 2px solid var(--rules); border-radius: 3px; transform: rotate(-4deg); vertical-align: 0.1em; }
.bx-agents .ag-checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.375rem; max-width: 40rem; } .bx-agents .ag-checklist li { position: relative; padding-left: 1.75rem; } .bx-agents .ag-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--accent); }
.bx-agents .ag-next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; max-width: 44rem; } .bx-agents .ag-next-card { display: flex; flex-direction: column; gap: 0.125rem; height: 100%; padding: 0.875rem 1rem; color: var(--ink); text-decoration: none; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-tactile); } .bx-agents .ag-next-card:hover { border-color: var(--accent); }
.bx-agents .ag-next-kicker { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); } .bx-agents .ag-next-name { font-weight: 800; font-size: 1.0625rem; } .bx-agents .ag-next-name::after { content: " →"; color: var(--warn); } .bx-agents .ag-next-desc { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 860px) { .bx-agents .ag-trace-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .bx-agents .ag-trace, .bx-agents .ag-r2-app { padding: 0.75rem; } .bx-agents .ag-flow-box { grid-template-columns: minmax(0, 1fr); } .bx-agents .ag-flow-yes { grid-row: auto; }
  .bx-agents .ag-tally-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bx-agents .ag-quiz, .bx-agents .ag-myths, .bx-agents .ag-next { grid-template-columns: minmax(0, 1fr); }
}
/* ===== end /basics/agents/ page block ===== */
/* "All five trips at a glance": stack each row into a card on phones instead of scrolling sideways */
@media (max-width: 600px) {
  .bx-behind .compare--trips, .bx-behind .compare--trips tbody, .bx-behind .compare--trips tr, .bx-behind .compare--trips th, .bx-behind .compare--trips td { display: block; }
  .bx-behind .compare--trips { min-width: 0; }
  .bx-behind .compare--trips thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bx-behind .compare--trips tbody tr { padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--border); }
  .bx-behind .compare--trips tbody tr:last-child { border-bottom: 0; }
  .bx-behind .compare--trips tbody th { padding: 0 0 0.375rem; border: 0; font-size: 1rem; }
  .bx-behind .compare--trips tbody th::before { content: "Trip "; content: "Trip " / ""; }
  .bx-behind .compare--trips td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.3rem 0; border: 0; }
  .bx-behind .compare--trips td::before { content: attr(data-label); content: attr(data-label) / ""; font-family: var(--font); font-size: 0.75rem; font-weight: 700; line-height: 1.6; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
  .bx-behind .compare--trips td.num { white-space: normal; }
}
