/* Layout: one readable column like a well-made worksheet; the bond diagram leads, the practice generator closes the page. */
:root {
  --paper: #f3f6f9;
  --sheet: #ffffff;
  --ink: #1b2a3a;
  --ink-soft: #4d5e70;
  --rule: #d5dde6;
  --mark: #f2c230;        /* highlighter yellow */
  --mark-soft: #fbedb8;
  --whole: #2c6db5;       /* the whole */
  --whole-soft: #dce9f7;
  --part: #1f8a6a;        /* the parts */
  --part-soft: #d7f0e6;
  --avoid: #b4472f;
  --avoid-soft: #f6e0da;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111a24; --sheet: #182431; --ink: #e8eef4; --ink-soft: #a8b6c4; --rule: #2c3b4b;
    --mark: #e6b928; --mark-soft: #4a3f17; --whole: #7fb3ea; --whole-soft: #1d3550;
    --part: #6fd0ae; --part-soft: #173d33; --avoid: #ee8f78; --avoid-soft: #45251f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111a24; --sheet: #182431; --ink: #e8eef4; --ink-soft: #a8b6c4; --rule: #2c3b4b;
  --mark: #e6b928; --mark-soft: #4a3f17; --whole: #7fb3ea; --whole-soft: #1d3550;
  --part: #6fd0ae; --part-soft: #173d33; --avoid: #ee8f78; --avoid-soft: #45251f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  padding-inline: 16px; padding-block: 0 64px;
}
.wrap { max-width: 760px; margin: 0 auto; }
a { color: var(--whole); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

/* site bar */
.site { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.logo span { background: linear-gradient(transparent 58%, var(--mark) 58%); padding-inline: 2px; }
.site nav { display: flex; gap: 16px; font-size: 0.95rem; }
.site nav a { color: var(--ink-soft); text-decoration: none; }
.site nav a:hover { color: var(--ink); text-decoration: underline; }

/* hero */
.crumbs { font-size: 0.85rem; color: var(--ink-soft); margin-top: 28px; }
.crumbs a { color: var(--ink-soft); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; margin: 10px 0 14px; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--mark) 62%); }
.lead { font-size: 1.2rem; max-width: 62ch; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule); color: var(--ink-soft); }

/* big diagram */
.figure { margin-top: 32px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 24px 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.figure svg { width: 100%; max-width: 300px; height: auto; justify-self: center; }
.figure ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.figure li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.dot { width: 18px; height: 18px; border-radius: 50%; margin-top: 4px; border: 3px solid; }
.dot.w { border-color: var(--whole); background: var(--whole-soft); }
.dot.p { border-color: var(--part); background: var(--part-soft); }
.figure figcaption { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-soft); text-align: center; border-top: 1px dashed var(--rule); padding-top: 12px; }
@media (max-width: 600px) { .figure { grid-template-columns: minmax(0, 1fr); } }

/* svg roles */
.b-line { stroke: var(--ink-soft); stroke-width: 3; }
.b-whole { fill: var(--whole-soft); stroke: var(--whole); stroke-width: 4; }
.b-part { fill: var(--part-soft); stroke: var(--part); stroke-width: 4; }
.b-blank { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 3; stroke-dasharray: 6 5; }
.b-num { font-family: var(--display); font-weight: 800; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.b-ans { fill: var(--avoid); }

/* sections */
section { margin-top: 52px; }
h2 { font-size: clamp(1.55rem, 4vw, 2rem); font-weight: 800; margin: 0 0 12px; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
p { max-width: 66ch; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin: 0 0 6px; }

/* say / avoid */
.coach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .coach { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card .chip { font-family: var(--body); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.say .chip { background: var(--part-soft); color: var(--part); }
.avoid .chip { background: var(--avoid-soft); color: var(--avoid); }
.card ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 10px; }
.card q { font-style: italic; }
.card small { display: block; color: var(--ink-soft); font-size: 0.9rem; }

/* worked example */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.2rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mark-soft); color: var(--ink); }
.eq { font-family: var(--display); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.eq b { color: var(--part); }
.example-svg { display: block; max-width: 220px; width: 100%; height: auto; margin-top: 8px; }

/* generator */
.gen { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 20px; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; margin: 14px 0 18px; }
.field { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
select { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; }
.btn { font: inherit; font-weight: 700; font-size: 0.95rem; border-radius: 8px; padding: 9px 16px; cursor: pointer; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { filter: brightness(1.1); }
.sheet-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.sheet-head span:first-child { min-width: 14ch; border-bottom: 1px solid var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid figure { margin: 0; text-align: center; }
.grid figcaption { font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.grid svg { width: 100%; max-width: 130px; height: auto; }
.note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }

/* pack cta */
.pack { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; background: var(--mark-soft); border-radius: 14px; padding: 24px 22px; }
@media (max-width: 640px) { .pack { grid-template-columns: minmax(0, 1fr); } }
.pack h2 { margin-bottom: 6px; }
.pack p { margin: 0; }
.pack form { display: grid; gap: 8px; }
.pack input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); width: 100%; }
.pack .thanks { font-weight: 700; }

/* faq */
details { border-top: 1px solid var(--rule); padding-block: 12px; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }

footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (prefers-reduced-motion: no-preference) { .grid figure { animation: pop .25s ease-out both; } @keyframes pop { from { transform: scale(.96); } to { transform: none; } } }
/* shared additions: tape diagrams, area models, related methods */
.t-part { fill: var(--part-soft); stroke: var(--part); stroke-width: 2.5; }
.t-big { fill: var(--whole-soft); stroke: var(--whole); stroke-width: 2.5; }
.t-gap { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 2; stroke-dasharray: 5 4; }
.t-brace { fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.t-txt { font-family: var(--display); font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.t-name { font-family: var(--body); font-weight: 700; fill: var(--ink-soft); dominant-baseline: central; }
.a-cell { fill: var(--whole-soft); stroke: var(--whole); stroke-width: 2; }
.a-cell.alt { fill: var(--part-soft); stroke: var(--part); }
.a-head { font-family: var(--display); font-weight: 600; fill: var(--ink-soft); text-anchor: middle; dominant-baseline: central; }
.a-txt { font-family: var(--display); font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.b-ans, .t-txt.b-ans, .a-txt.b-ans { fill: var(--avoid); }
.grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
@media (max-width: 560px) { .grid.wide { grid-template-columns: minmax(0, 1fr); } }
.grid.wide svg { max-width: 320px; }
.grid.wide figcaption { font-size: 0.9rem; color: var(--ink); text-align: left; font-variant-numeric: tabular-nums; }
.grid.wide figure { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; text-align: left; }
.ans-line { font-family: var(--display); font-weight: 600; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .related { grid-template-columns: minmax(0, 1fr); } }
.related a, .related .here { display: grid; gap: 2px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.related a:hover { border-color: var(--ink-soft); }
.related strong { font-family: var(--display); font-size: 1.1rem; }
.related span { font-size: 0.85rem; color: var(--ink-soft); }
.related .here { background: var(--mark-soft); border-color: transparent; }
/* round 1 additions: answers, list sheets, fact families, blocks, charts, ladders, index */
.key { color: var(--avoid); font-weight: 700; }
.blank { display: inline-block; min-width: 7ch; border-bottom: 1.5px solid var(--ink-soft); height: 1.1em; vertical-align: baseline; }
.blank.s { min-width: 3ch; }
.gen-intro { margin: 0; }
.grid.list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
@media (max-width: 560px) { .grid.list { grid-template-columns: minmax(0, 1fr); } }
.grid.list figure { text-align: left; margin: 0; }
.prob { margin: 0; font-variant-numeric: tabular-nums; font-size: 1.05rem; line-height: 1.8; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
.grid.g3 svg { max-width: 150px; }
.ff { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; }
.ff svg { width: 100%; max-width: 110px; }
.ff ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.drawbox { border: 1.5px dashed var(--rule); border-radius: 8px; min-height: 96px; padding: 6px; display: grid; place-items: center; margin-top: 6px; }
.drawbox svg { max-width: 100%; }
.work { border: 1.5px dashed var(--rule); border-radius: 8px; min-height: 150px; margin: 8px 0; padding: 6px 10px; }
.ladder { border-collapse: collapse; font-variant-numeric: tabular-nums; font-family: var(--display); font-weight: 600; }
.ladder td { padding: 1px 10px; text-align: right; }
.ladder td + td { border-left: 2px solid var(--ink-soft); text-align: left; color: var(--avoid); }
.ladder tr.sub td:first-child { border-bottom: 1.5px solid var(--ink-soft); }
.pv-wrap { overflow-x: auto; }
.pv { border-collapse: collapse; width: 100%; min-width: 240px; table-layout: fixed; font-variant-numeric: tabular-nums; margin: 8px 0; }
.pv th, .pv td { border: 1.5px solid var(--rule); text-align: center; padding: 4px 2px; font-size: 0.85rem; }
.pv th { background: var(--paper); color: var(--ink-soft); }
.pv td { height: 2.1em; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.pv .pt { width: 1.4em; border-color: transparent; background: transparent; font-weight: 800; }
.num { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.num u { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bk-flat { fill: var(--whole-soft); stroke: var(--whole); stroke-width: 1.5; }
.bk-grid { stroke: var(--whole); stroke-width: 0.5; opacity: 0.6; fill: none; }
.bk-rod { fill: var(--part-soft); stroke: var(--part); stroke-width: 1.2; }
.bk-rgrid { stroke: var(--part); stroke-width: 0.6; opacity: 0.7; fill: none; }
.bk-unit { fill: var(--mark-soft); stroke: var(--ink-soft); stroke-width: 1; }
.hc { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.hc.given { fill: var(--whole-soft); stroke: var(--whole); }
.hc.dim { fill: var(--paper); stroke: var(--rule); }
.hc-txt { font-family: var(--display); font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.hc-txt.dim { fill: var(--ink-soft); font-weight: 400; }
.arrow { stroke: var(--avoid); stroke-width: 2.5; fill: none; }
.arrow-head { fill: var(--avoid); }
.arrow-lbl { font-family: var(--display); font-weight: 800; fill: var(--avoid); }
.svg-quiet { font-family: var(--body); fill: var(--ink-soft); }
.svg-rule { stroke: var(--ink); stroke-width: 2; }

/* index */
.hero-index { padding-block: 36px 8px; }
.hero-index h1 { max-width: 18ch; }
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
@media (max-width: 640px) { .promise { grid-template-columns: minmax(0, 1fr); } }
.promise div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.promise strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.promise span { font-size: 0.92rem; color: var(--ink-soft); }
.filter { margin-top: 36px; display: grid; gap: 6px; max-width: 420px; }
.filter input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); }
.band { margin-top: 32px; }
.band h2 { font-size: 1.4rem; }
.method-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.method-list a, .method-list .soon { display: grid; gap: 2px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.method-list a:hover { border-color: var(--ink-soft); }
.method-list strong { font-family: var(--display); font-size: 1.08rem; }
.method-list span { font-size: 0.85rem; color: var(--ink-soft); }
.method-list .soon { background: transparent; border-style: dashed; }
.method-list .soon strong { color: var(--ink-soft); }
.empty-filter { color: var(--ink-soft); }
div.empty-filter { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--sheet); border: 2px dashed var(--line, #c9d2db); }
div.empty-filter p { margin: 0 0 10px; }
.finder-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#finder-out .btn { margin-top: 4px; }

/* printing a practice sheet on the live site */
@media print {
  body { background: #fff; color: #000; }
  body.sheet-print * { visibility: hidden; }
  body.sheet-print .gen.printing, body.sheet-print .gen.printing * { visibility: visible; }
  .gen.printing { position: absolute; left: 0; top: 0; width: 100%; border: none; }
  .gen.printing .controls, .gen.printing .note, .gen.printing .gen-intro { display: none; }
  .grid figure { break-inside: avoid; }
}

/* round 2 additions */
.nl { stroke: var(--ink); stroke-width: 2.5; }
.nl-txt { font-family: var(--display); font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.jump { stroke: var(--whole); stroke-width: 2.5; fill: none; }
.jump-lbl { font-family: var(--display); font-weight: 800; fill: var(--whole); text-anchor: middle; }
.jump.alt { stroke: var(--part); }
.jump-lbl.alt { fill: var(--part); }
.tf-cell { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.tf-dot { fill: var(--whole); }
.tf-dot.alt { fill: var(--part); }
.ar-dot { fill: var(--whole); }
.ar-dot.alt { fill: var(--part); }
.seq { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.seq > span { min-width: 3.2em; height: 2.3em; padding-inline: 4px; border: 1.5px solid var(--rule); border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; background: var(--sheet); }
.seq > span.gap { border-style: dashed; border-color: var(--ink-soft); background: transparent; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-family: var(--display); font-weight: 600; line-height: 1.15; margin-inline: 2px; }
.frac > span:first-child { border-bottom: 2px solid currentColor; padding-inline: 3px; }
.choice { display: inline-grid; place-items: center; min-width: 2em; height: 2em; margin-inline: 3px; border: 1.5px solid var(--rule); border-radius: 999px; font-family: var(--display); font-weight: 600; }
.choice.on { border: 2.5px solid var(--avoid); color: var(--avoid); }
.rt { border-collapse: collapse; margin: 8px 0; font-variant-numeric: tabular-nums; min-width: 280px; }
.rt th, .rt td { border: 1.5px solid var(--rule); padding: 6px 10px; text-align: center; }
.rt th { background: var(--paper); color: var(--ink-soft); font-weight: 700; font-size: 0.85rem; text-align: left; white-space: nowrap; }
.rt td { min-width: 3.2em; height: 2.2em; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.controls .field { min-width: 0; max-width: 100%; }
.controls select { max-width: 100%; text-overflow: ellipsis; }
.controls .field { grid-template-columns: minmax(0, 1fr); }
.controls select { width: 100%; }
.grid.one { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.grid.one figure { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; text-align: left; margin: 0; }
.grid.one figcaption { font-size: 0.9rem; text-align: left; }

/* round 3 additions */
.fs-on { fill: var(--whole-soft); stroke: var(--whole); stroke-width: 1.5; }
.fs-on.alt { fill: var(--part-soft); stroke: var(--part); }
.fs-off { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.fs-key { fill: var(--avoid-soft); stroke: var(--avoid); stroke-width: 1.5; }
.fs-lbl { font-family: var(--display); font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.lt-cell { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.lt-diag { stroke: var(--ink-soft); stroke-width: 1; }
.lt-dig { font-family: var(--display); font-weight: 800; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.lt-num { font-family: var(--display); font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.key-svg { fill: var(--avoid); }
.grid.one svg { width: 100%; max-width: 420px; }

/* round 4 additions */
.seq > span.start { background: var(--whole-soft); border-color: var(--whole); }
.card-bg { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.rk-frame { fill: var(--ink-soft); }
.rk-wire { stroke: var(--ink-soft); stroke-width: 2; }
.rk-red { fill: var(--avoid); stroke: var(--avoid); }
.rk-white { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.grp { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.fm-col { fill: var(--whole-soft); stroke: var(--ink-soft); stroke-width: 1; }
.fm-row { fill: var(--part-soft); stroke: var(--ink-soft); stroke-width: 1; }
.fm-both { fill: var(--avoid-soft); stroke: var(--avoid); stroke-width: 1.5; }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
@media (max-width: 560px) { .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid.g4 figure { margin: 0; }
.stack { border-collapse: collapse; font-family: var(--display); font-weight: 600; font-size: 1.35rem; font-variant-numeric: tabular-nums; margin: 4px 0 0 auto; }
.stack td { width: 1.05em; text-align: center; padding: 0; height: 1.5em; }
.stack tr.under td { border-bottom: 2px solid var(--ink); }
.stack tr.ans td { color: var(--avoid); }
.stack tr.carry td { color: var(--avoid); font-size: 0.75rem; height: 1em; vertical-align: bottom; }

/* logo mark */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; flex: none; box-shadow: 0 0 0 1px var(--rule); }

/* how-it-helps page + links to it */
.site nav a.nav-cta { color: var(--ink); font-weight: 700; background: var(--mark-soft); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.site nav a.nav-cta:hover { background: var(--mark); text-decoration: none; }
.site nav a.nav-cta.here { background: var(--mark); }
@media (max-width: 480px) { .site nav { gap: 10px; font-size: 0.88rem; } .site nav a.nav-cta { padding: 3px 9px; } }
.callout { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--sheet); border: 2px solid var(--mark); text-decoration: none; color: var(--ink); }
.callout:hover { background: var(--mark-soft); }
.callout-tag { flex: none; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; background: var(--mark); color: #1b2a3a; border-radius: 999px; padding: 4px 10px; }
.callout-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.callout-text strong { font-family: var(--display); font-size: 1.1rem; }
.callout-text span { font-size: 0.9rem; color: var(--ink-soft); }
.callout-go { font-size: 1.5rem; font-weight: 700; }
@media (max-width: 560px) { .callout { flex-wrap: wrap; } .callout-go { display: none; } }
.helps section { margin-top: 48px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-ctas .btn, .way .btn, .end-cta .btn { text-decoration: none; display: inline-block; }
.vs, .who, .ways { display: grid; gap: 16px; margin-top: 18px; }
.vs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.who, .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .vs, .who, .ways { grid-template-columns: minmax(0, 1fr); } }
.vs-before .chip { background: var(--avoid-soft); color: var(--avoid); }
.vs-after .chip { background: var(--part-soft); color: var(--part); }
.who-sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.who h3, .way h3 { font-size: 1.25rem; }
.way { display: flex; flex-direction: column; gap: 4px; }
.way ul { flex: 1; margin-bottom: 12px; align-content: start; }
.way-price { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.8rem; }
.way-price small { font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.way.feature { border: 2px solid var(--mark); }
.way-note { margin: 0 0 8px; font-size: 0.9rem; color: var(--ink-soft); }
.way form { display: grid; gap: 8px; }
.way input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); width: 100%; box-sizing: border-box; }
.way .btn { align-self: flex-start; }
.steps.three p { margin: 4px 0 0; color: var(--ink-soft); }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 640px) { .trust { grid-template-columns: minmax(0, 1fr); } }
.trust div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.trust strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.trust span { font-size: 0.92rem; color: var(--ink-soft); }
.end-cta { background: var(--mark-soft); border-radius: 14px; padding: 26px 22px; text-align: center; }
.end-cta p { margin: 6px auto 16px; }

/* subjects on the homepage */
.subjects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; max-width: 760px; }
.subject { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.subject:hover { filter: brightness(1.15); }
.subject strong { font-family: var(--display); font-size: 1.35rem; }
.subject span { font-size: 0.9rem; opacity: 0.85; }
.subject .new { font-style: normal; font-weight: 700; background: var(--mark); color: #1b2a3a; border-radius: 999px; padding: 1px 8px; margin-right: 4px; font-size: 0.75rem; }
.subject-sec { margin-top: 44px; }
.subject-sec > h2 { font-size: 1.8rem; }
.band-h { font-size: 1.3rem; margin: 0 0 6px; }
.dot.a { border-color: var(--avoid); background: var(--avoid-soft); }

/* reading figures */
.rd-box { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.rd-box.hl { fill: var(--whole-soft); stroke: var(--whole); }
.rd-box.alt { fill: var(--part-soft); stroke: var(--part); }
.rd-box.bad { fill: var(--avoid-soft); stroke: var(--avoid); }
.rd-box.ok { fill: var(--part-soft); stroke: var(--part); }
.rd-txt { font-family: var(--display); font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.rd-txt.big { font-weight: 800; }
.rd-txt.hl { fill: var(--whole); } .rd-txt.bad { fill: var(--avoid); }
.rd-note { font-family: var(--body); fill: var(--ink-soft); text-anchor: middle; dominant-baseline: central; }
.rd-note.hl { fill: var(--whole); font-weight: 700; } .rd-note.alt, .rd-note.ok { fill: var(--part); font-weight: 700; } .rd-note.bad { fill: var(--avoid); font-weight: 700; }
.rd-dot { fill: var(--ink); } .rd-dot.ok { fill: var(--part); }
.rd-arrow { stroke: var(--whole); stroke-width: 2.5; fill: none; }
.rd-arrowhead { fill: var(--whole); }
.rd-heart { fill: var(--avoid); }
.rd-x { stroke: var(--avoid); stroke-width: 3; stroke-linecap: round; }
.rd-check { stroke: var(--part); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rd-brace { stroke: var(--whole); stroke-width: 2; fill: none; }
.rd-fold { stroke: var(--rule); stroke-width: 1.5; }
.rd-rule { stroke: var(--rule); stroke-width: 1; }

/* reading practice sheets */
.ls-card { display: grid; justify-items: center; gap: 2px; border: 1.5px solid var(--rule); border-radius: 10px; padding: 8px 4px; }
.ls-letter { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; }
.ls-kw { font-size: 0.9rem; min-height: 1.3em; }
.ls-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.seq.snd > span { min-width: 2.8em; }
.seq .eqs, .spell .eqs { border: none !important; background: transparent !important; min-width: 0 !important; font-weight: 700; color: var(--ink-soft); }
.wordans { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.sbox { width: 2.6em; height: 2.6em; border: 2px solid var(--ink-soft) !important; border-radius: 6px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.1rem; background: var(--sheet); }
.rword { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.spell { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3px; margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.spell .lblank { display: inline-block; width: 0.9em; border-bottom: 2.5px solid var(--ink); height: 1.15em; }
.spell .key { font-size: 1.6rem; text-decoration: underline; text-underline-offset: 4px; }
.spell.se { align-items: center; gap: 10px; font-size: 1rem; }
.hw { display: grid; gap: 8px; justify-items: center; border: 1.5px solid var(--rule); border-radius: 10px; padding: 12px 6px; }
.hw-word { font-family: var(--display); font-weight: 800; font-size: 1.7rem; }
.hpart { color: var(--avoid); position: relative; }
.hpart::before { content: "\2665"; position: absolute; left: 50%; top: -0.55em; transform: translateX(-50%); font-size: 0.55em; color: var(--avoid); }
.rsent { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.story { font-size: 1.05rem; line-height: 1.6; background: var(--paper); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.rt.swbst { width: 100%; min-width: 0; }
.rt.swbst td { text-align: left; font-family: var(--body); font-weight: 400; font-size: 0.98rem; height: 2.4em; }
.rt.swbst th { width: 7em; }
.rt.rlog { width: 100%; min-width: 0; }
.rt.rlog td { height: 3.2em; }
.rt.rlog thead th { text-align: center; white-space: normal; }
@media print { .story { background: none; border: 1px solid #ccc; } }
.covers h3 a { color: inherit; text-decoration: none; }
.covers h3 a:hover { text-decoration: underline; }
.newtag { font-family: var(--body); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--mark); color: #1b2a3a; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }

/* reading wave 2 */
.rd-txt .rd-hl { fill: var(--whole); } .rd-txt .rd-alt { fill: var(--part); }
ol.chain { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 10px; }
ol.chain li { font-size: 1rem; }
.lblank.inl { display: inline-block; width: 2.2em; border-bottom: 2.5px solid var(--ink); height: 1em; margin-left: 2px; vertical-align: baseline; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-row .choice { padding-inline: 8px; font-size: 0.85rem; height: 1.9em; }
.dict-line { display: flex; align-items: flex-end; gap: 8px; min-height: 2.4em; font-size: 1.05rem; }
.dict-line .wline { flex: 1; border-bottom: 1.5px solid var(--ink-soft); height: 1.6em; max-width: 14em; }
.dict-line.sent .wline { max-width: none; }
.grid.one .dict-line + .dict-line { margin-top: 0; }
.ptitle { margin: 0 0 6px; font-size: 1.2rem; }
table.passage { width: 100%; border-collapse: collapse; font-size: 1.1rem; line-height: 1.5; }
table.passage td { padding: 3px 0; vertical-align: top; }
table.passage td.wc { width: 3em; text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 0.9rem; padding-left: 10px; }
.rt.fscore { width: 100%; min-width: 0; margin-top: 14px; }
.rt.fscore thead th { white-space: normal; text-align: center; }
.mtable { margin-top: 10px; }
.mtop, .mleg { border: 2px solid var(--ink-soft); border-radius: 8px; padding: 6px 10px; min-height: 3.2em; background: var(--sheet); }
.mtop { border-color: var(--whole); background: var(--whole-soft); }
.mtop small, .mleg small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.mlegs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 6%; }
.mleg { min-height: 6.5em; border-top: none; border-radius: 0 0 8px 8px; }
@media (max-width: 560px) { .mlegs { grid-template-columns: minmax(0, 1fr); padding: 0; } .mleg { border-top: 2px solid var(--ink-soft); border-radius: 8px; margin-top: 8px; min-height: 3.2em; } }
.ls-card.sw { gap: 3px; padding: 8px 6px; text-align: center; }

/* reading wave 3 */
.scoop { display: inline; padding-bottom: 4px; border-bottom: 2.5px solid var(--whole); border-radius: 0 0 40% 40% / 0 0 10px 10px; margin-right: 4px; line-height: 2.3; }
.scoop.key-scoop { border-bottom-color: var(--avoid); }
.phr-text { font-size: 1.15rem; line-height: 2.3; margin: 6px 0 0; }
.phr-text.roomy { line-height: 2.8; }
.rt.echo { width: 100%; min-width: 0; }
.rt.echo td { text-align: left; font-family: var(--body); font-weight: 400; font-size: 1rem; }
.rt.echo td.ck { width: 4.2em; }
.rt.echo thead th { white-space: normal; text-align: center; }
.rt.swbst th small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--ink-soft); white-space: normal; }
.rt.race th { width: 9em; }
.akey { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; padding: 8px 10px; border: 1.5px dashed var(--rule); border-radius: 8px; }
.story.roomy { line-height: 2.1; }
.rt.kwl { width: 100%; min-width: 0; table-layout: fixed; }
.rt.kwl thead th { white-space: normal; text-align: center; }
.rt.kwl td { height: 22em; vertical-align: top; }

/* math grades 7-8 */
.ic-pos { fill: var(--whole-soft); stroke: var(--whole); stroke-width: 1.5; }
.ic-neg { fill: var(--avoid-soft); stroke: var(--avoid); stroke-width: 1.5; }
.ic-pair { fill: none; stroke: var(--part); stroke-width: 2; stroke-dasharray: 4 3; }
.at-x2 { fill: var(--whole-soft); stroke: var(--whole); stroke-width: 1.5; }
.at-x { fill: var(--part-soft); stroke: var(--part); stroke-width: 1.5; }
.at-1 { fill: var(--mark-soft); stroke: var(--ink-soft); stroke-width: 1.5; }
.at-neg { fill: var(--avoid-soft); stroke: var(--avoid); stroke-width: 1.5; }
.bal-beam { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.sq-a { fill: var(--part-soft); stroke: var(--part); stroke-width: 1.5; }
.sq-b { fill: var(--whole-soft); stroke: var(--whole); stroke-width: 1.5; }
.slope-line { stroke: var(--whole); stroke-width: 2.5; }
.slope-line.alt { stroke: var(--part); }
.slope-tri { fill: none; stroke: var(--avoid); stroke-width: 2.5; stroke-dasharray: 5 3; }
.rd-txt .rd-bad, .rd-bad { fill: var(--avoid); }
svg.chips { width: 100%; height: auto; display: block; margin-top: 6px; }
svg.gridsvg { width: 100%; max-width: 230px; height: auto; display: block; margin-top: 6px; }
.rt.boxg { min-width: 0; }
.rt.boxg td { min-width: 4.5em; height: 2.6em; }
.rt.boxg th { text-align: center; background: transparent; border-color: transparent; font-family: var(--display); font-size: 1rem; color: var(--ink); }
.treekey { font-size: 0.92rem; line-height: 1.7; background: var(--paper); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
ol.steps-key .wline { display: inline-block; width: 100%; max-width: 16em; border-bottom: 1.5px solid var(--ink-soft); height: 1.4em; }
/* ---------- writing ---------- */
.wr-box { stroke-width: 1.5; }
.wr-g { fill: var(--part-soft); stroke: var(--part); }
.wr-y { fill: var(--mark-soft); stroke: var(--mark); }
.wr-r { fill: var(--avoid-soft); stroke: var(--avoid); }
.wr-ring { fill: none; stroke: var(--avoid); stroke-width: 2.5; }
.wr-bun { fill: #f1cf94; stroke: #b9853b; stroke-width: 1.5; }
.wr-lettuce { fill: var(--part-soft); stroke: var(--part); stroke-width: 1.5; }
.wr-tomato { fill: var(--avoid-soft); stroke: var(--avoid); stroke-width: 1.5; }
.wr-meat { fill: #e2c0a2; stroke: #8a5a36; stroke-width: 1.5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wr-bun { fill: #5a4422; stroke: #c99a52; } :root:not([data-theme="light"]) .wr-meat { fill: #4f3423; stroke: #b58560; } }
:root[data-theme="dark"] .wr-bun { fill: #5a4422; stroke: #c99a52; } :root[data-theme="dark"] .wr-meat { fill: #4f3423; stroke: #b58560; }
.wlines { padding-top: 2px; }
.wl { height: 1.9em; border-bottom: 1px solid var(--ink-soft); opacity: 0.6; }
.wkey { margin: 4px 0; font-weight: 400; line-height: 1.5; }
.rt.worg td { padding-top: 2px; padding-bottom: 6px; }
.rt.worg th { width: 9.5em; white-space: normal; vertical-align: top; }
.wstart { margin: 4px 0 0; font-style: italic; color: var(--ink-soft); }
.grid.tl { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.grid.tl figure { margin: 0; text-align: left; }
.grid.tl figcaption { font-size: 1rem; text-align: left; }
.grid.tl .chips-row { margin: 4px 0 0; }
.wq { line-height: 1.6; }
.rt.cerdata { min-width: 0; margin: 4px 0 10px; }
.rt.cerdata td { font-family: var(--body); font-weight: 400; font-size: 0.95rem; text-align: left; height: auto; }
.rt.cerdata thead th { text-align: left; }
.burger { display: grid; gap: 6px; margin-top: 8px; }
.b-row { border: 1.5px solid; border-radius: 12px; padding: 6px 14px 8px; }
.b-lbl { display: block; font-family: var(--display); font-weight: 700; font-size: 0.9rem; }
.b-bun { background: #fbecd2; border-color: #b9853b; border-radius: 40px 40px 12px 12px; }
.b-bun.bot { border-radius: 12px 12px 40px 40px; }
.b-l { background: var(--part-soft); border-color: var(--part); }
.b-t { background: var(--avoid-soft); border-color: var(--avoid); }
.b-m { background: #f2e2d3; border-color: #8a5a36; }
.ccode { display: grid; gap: 6px; margin-top: 8px; }
.cc-row { border-left: 12px solid; border-radius: 6px; padding: 4px 12px 8px; background: var(--sheet); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cc-lbl { font-size: 0.88rem; color: var(--ink-soft); }
.cc-lbl b { font-family: var(--display); color: var(--ink); margin-right: 4px; }
.cc-g { border-left-color: var(--part); } .cc-y { border-left-color: var(--mark); } .cc-r { border-left-color: var(--avoid); }
.es-sec { border: 1.5px solid var(--rule); border-radius: 10px; padding: 6px 12px 8px; margin-top: 8px; }
.es-sec h4 { margin: 0 0 2px; font-family: var(--display); font-size: 1rem; }
.es-in { border-color: var(--whole); background: var(--whole-soft); }
.es-body { border-color: var(--part); }
.es-lbl { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
.story.student { font-family: "Comic Sans MS", "Chalkboard SE", var(--body); background: var(--sheet); border: 1.5px dashed var(--rule); }
.rt.rubric { width: 100%; min-width: 0; table-layout: fixed; }
.rt.rubric th:first-child { width: 34%; white-space: normal; }
.rt.rubric thead th { text-align: center; white-space: normal; font-size: 0.78rem; }
.rt.rubric th small { display: block; font-weight: 400; font-size: 0.75rem; }
.score { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; color: var(--ink-soft); }
.score.on { border: 2.5px solid var(--avoid); color: var(--avoid); font-weight: 800; }
.rt.wsort td { height: 2.6em; }
.rt.wsort td.wpart { width: 9em; }
.rt.wsort td.word { width: 4em; text-align: center; }
.rt.wsort thead th { text-align: center; }
@media print { .b-row, .cc-row, .es-in { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .wl { opacity: 1; border-bottom-color: #999; } }
@media (max-width: 480px) { .rt.worg th { width: 6.5em; } .rt.rubric th:first-child { width: 30%; } }
.subject em.g { font-style: normal; }
.subject em.g::before { content: " · "; }
@media (max-width: 480px) { .subjects { gap: 8px; } .subject { padding: 12px 12px; } .subject strong { font-size: 1.15rem; } .subject span { font-size: 0.82rem; } .subject em.g { display: block; } .subject em.g::before { content: none; } }
/* writing, wave 2 */
.wr-wafer { fill: #3b2a22; stroke: #3b2a22; } .wr-cream { fill: var(--sheet); stroke: var(--ink-soft); stroke-width: 1.5; }
.rd-txt.wr-on { fill: #fff; }
.wr-venn { fill-opacity: 0.35; stroke-width: 2; } .wr-venn.a { fill: var(--whole-soft); stroke: var(--whole); } .wr-venn.b { fill: var(--part-soft); stroke: var(--part); }
.wr-mtn { fill: none; stroke: var(--ink-soft); stroke-width: 2.5; stroke-linejoin: round; }
.venn-h { display: block; width: 100%; max-width: 300px; height: 44px; margin: 0 auto; }
.mtn-h { display: block; width: 100%; max-width: 420px; margin: 6px auto; }
.rt.venn { width: 100%; min-width: 0; table-layout: fixed; }
.rt.venn thead th { text-align: center; white-space: normal; }
.rt.venn td { vertical-align: top; text-align: left; font-family: var(--body); font-weight: 400; font-size: 0.95rem; padding: 4px 8px 8px; }
.rt.venn td.both { background: var(--whole-soft); }
.oreo { display: grid; gap: 6px; margin-top: 8px; }
.or-row { display: flex; gap: 10px; align-items: stretch; }
.or-l { flex: none; width: 2.4em; display: grid; place-items: center; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.or-w .or-l { background: #3b2a22; color: #fff; } .or-c .or-l { background: var(--sheet); border: 1.5px solid var(--ink-soft); }
.or-b { flex: 1; border: 1.5px solid var(--rule); border-radius: 10px; padding: 4px 12px 8px; }
.or-b small { font-weight: 400; color: var(--ink-soft); font-family: var(--body); }
.iweb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.iw-sub { border: 1.5px solid var(--part); border-radius: 10px; padding: 6px 10px 8px; }
.iw-sub h4 { margin: 0; font-family: var(--display); font-size: 0.95rem; }
@media (max-width: 560px) { .iweb { grid-template-columns: minmax(0, 1fr); } }
.rt.cops td.ck { width: 2.4em; text-align: center; font-size: 1.3rem; }
@media print { .or-l, .rt.venn td.both { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* study skills */
.art { border: 1.5px solid var(--rule); border-radius: 10px; padding: 8px 14px; background: var(--paper); margin-bottom: 10px; font-size: 0.97rem; line-height: 1.55; }
.art-t { margin: 0 0 2px; font-size: 1.15rem; }
.art h4 { margin: 8px 0 0; font-family: var(--display); font-size: 0.98rem; color: var(--whole); }
.art p { margin: 2px 0 0; }
.art-x { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.art-pic { border: 1.5px dashed var(--ink-soft); border-radius: 8px; padding: 10px; display: grid; gap: 4px; min-height: 5em; align-content: center; text-align: center; }
.art-pic span { font-family: var(--display); font-weight: 700; color: var(--ink-soft); }
.art-pic small { font-style: italic; font-size: 0.85rem; }
.art-side { border-left: 5px solid var(--mark); background: var(--sheet); border-radius: 6px; padding: 8px 10px; font-size: 0.9rem; }
@media (max-width: 480px) { .art-x { grid-template-columns: minmax(0, 1fr); } }
.cornell { width: 100%; border-collapse: collapse; margin-top: 4px; }
.cornell th, .cornell td { border: 1.5px solid var(--ink-soft); padding: 6px 10px; vertical-align: top; text-align: left; }
.cornell th { font-family: var(--display); background: var(--whole-soft); }
.cornell th small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.85rem; }
.cn-cue { width: 32%; background: var(--part-soft); }
.cn-sum { background: var(--whole-soft); }
.cn-lbl { display: block; font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); }
.rt.colnotes, .rt.sq3r { width: 100%; min-width: 0; table-layout: fixed; }
.rt.colnotes td, .rt.sq3r td { text-align: left; vertical-align: top; font-family: var(--body); font-weight: 400; font-size: 0.95rem; }
.rt.colnotes thead th, .rt.sq3r thead th { text-align: center; white-space: normal; }
.rt.sq3r tbody th { white-space: normal; text-align: left; vertical-align: top; }
.rt.sq3r th small { display: block; font-weight: 400; font-size: 0.75rem; }
.rt.colnotes.c3 td.word { width: 22%; font-family: var(--display); font-weight: 700; }
.mmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mm-c { grid-column: 1 / -1; justify-self: center; min-width: 50%; border: 2px solid var(--whole); background: var(--whole-soft); border-radius: 999px; padding: 6px 24px 10px; text-align: center; font-family: var(--display); font-weight: 700; }
.mm-b { display: grid; gap: 6px; }
.mm-h { border: 2px solid var(--part); background: var(--part-soft); border-radius: 14px; padding: 4px 10px 8px; font-size: 0.85rem; }
.mm-d { border: 1.5px solid var(--rule); border-radius: 10px; padding: 4px 10px 8px; font-size: 0.85rem; }
@media (max-width: 560px) { .mmap { grid-template-columns: minmax(0, 1fr); } }
.stickies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stk { background: var(--mark-soft); border: 1.5px solid var(--mark); border-radius: 4px; padding: 6px 10px 8px; box-shadow: 2px 3px 0 rgba(0,0,0,.08); }
.stk-s { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-right: 6px; }
.stk small { display: block; color: var(--ink-soft); font-size: 0.8rem; }
@media (max-width: 480px) { .stickies { grid-template-columns: minmax(0, 1fr); } }
.gist-boxes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; margin-top: 6px; }
.gist-boxes span { height: 2em; border-bottom: 1.5px solid var(--ink-soft); }
.rt.habits { width: 100%; min-width: 0; }
.rt.habits td { text-align: left; font-family: var(--body); font-weight: 400; font-size: 0.95rem; }
.rt.habits td.ck { text-align: center; width: 3.2em; font-size: 1.2rem; }
.rt.habits thead th { text-align: center; }
@media print { .cn-cue, .cn-sum, .cornell th, .mm-c, .mm-h, .stk, .art { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
@media (max-width: 600px) { .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); } .subject em.g { display: inline; } .subject em.g::before { content: " · "; } }
.rt.habits { table-layout: fixed; }
.rt.habits th:first-child { width: 40%; }
.rt.habits td.ck, .rt.habits thead th { width: auto; padding-left: 2px; padding-right: 2px; }
@media (max-width: 480px) { .rt.habits td, .rt.habits th { font-size: 0.8rem; } }
/* study skills, wave 2 */
.ann { margin: 4px 0 10px; padding-left: 1.2em; font-size: 0.95rem; line-height: 1.5; }
.rt.planner { width: 100%; min-width: 0; table-layout: fixed; }
.rt.planner th:first-child { width: 17%; white-space: normal; }
.rt.planner thead th { text-align: center; }
.rt.planner td { height: 4.2em; vertical-align: top; text-align: left; font-family: var(--body); font-weight: 400; font-size: 0.8rem; padding: 4px; }
.rt.planner td .key { display: block; font-weight: 400; margin-bottom: 3px; }
.testtag { font-weight: 700 !important; }
.rt.backward, .rt.prio { width: 100%; min-width: 0; }
.rt.backward td, .rt.prio td { text-align: left; font-family: var(--body); font-weight: 400; font-size: 0.95rem; }
.rt.backward td.word { text-align: center; width: 7em; }
.rt.backward td:last-child { width: 8em; }
.rt.prio td.ck { text-align: center; width: 5.5em; font-size: 1.2rem; }
.rt.prio thead th { text-align: center; white-space: normal; }
.fcards { display: grid; gap: 0; border: 1.5px dashed var(--ink-soft); }
.fc { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1.5px dashed var(--ink-soft); min-height: 4.2em; }
.fc:last-child { border-bottom: 0; }
.fc-f { padding: 8px 12px; font-family: var(--display); font-weight: 700; border-right: 1.5px dashed var(--ink-soft); display: flex; align-items: center; }
.fc-b { padding: 4px 12px 8px; font-size: 0.92rem; }
.scal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sc-d { border: 1.5px solid var(--rule); border-radius: 8px; padding: 4px 8px 8px; font-size: 0.82rem; min-height: 6.5em; }
.sc-d b { display: block; font-family: var(--display); font-size: 0.8rem; color: var(--ink-soft); }
.sc-d.test { background: var(--avoid-soft); border-color: var(--avoid); display: grid; align-content: start; }
.sc-d.test span { font-family: var(--display); font-weight: 800; color: var(--avoid); font-size: 1.1rem; }
@media (max-width: 560px) { .scal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fold { text-align: center; color: var(--ink-soft); letter-spacing: 0.05em; margin: 4px 0; }
.tq { margin-top: 10px; }
ol.mc { margin: 2px 0 0; padding-left: 1.8em; display: grid; gap: 2px; }
ol.mc li.wrong { text-decoration: line-through; color: var(--ink-soft); }
ol.mc li.right { color: var(--avoid); font-weight: 700; }
ol.mc li.right::marker { color: var(--avoid); }
.cq { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.cq .chips-row { margin: 0; }
@media print { .sc-d.test { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.rt.prio { table-layout: fixed; }
.rt.prio th:first-child { width: 44%; }
.rt.prio td.ck, .rt.prio thead th:not(:first-child) { width: auto; padding-left: 2px; padding-right: 2px; }
@media (max-width: 480px) { .rt.prio td, .rt.prio th { font-size: 0.8rem; } }
/* social studies */
.hdoc { border: 1.5px solid var(--ink-soft); border-radius: 6px; background: var(--sheet); padding: 8px 12px; margin: 6px 0; box-shadow: 3px 3px 0 var(--rule); }
.hdoc-t { margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.hdoc-x { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.5; }
.hdoc-s { margin: 0; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pair .hdoc-x { font-size: 0.92rem; }
@media (max-width: 560px) { .pair, .pair.three { grid-template-columns: minmax(0, 1fr); } }
.ct-fig { margin: 0 0 8px; border: 1.5px solid var(--rule); border-radius: 8px; padding: 8px; text-align: center; }
.cartoon { width: 100%; max-width: 440px; height: auto; }
.ct-ink { stroke: var(--ink); }
.ct-fill { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.ct-bldg { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; }
.ct-coin { fill: var(--mark); stroke: var(--ink); stroke-width: 1; }
.ct-wave { fill: none; stroke: var(--whole); stroke-width: 2; }
.ct-lbl { font-family: var(--display); font-weight: 700; font-size: 10px; fill: var(--ink); text-anchor: middle; }
.ct-title { font-family: Georgia, serif; font-weight: 700; font-size: 14px; fill: var(--ink); text-anchor: middle; letter-spacing: 0.05em; }
.hchart { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto 8px; }
@media (max-width: 480px) { .site nav .nav-long { display: none; } .site nav { gap: 8px 10px; flex-wrap: wrap; } }
/* social studies, wave 2 */
.chainrow { display: flex; align-items: stretch; gap: 4px; flex-wrap: wrap; margin: 6px 0 10px; }
.ch-box { flex: 1 1 0; min-width: 7.5em; border: 1.5px solid var(--whole); background: var(--whole-soft); border-radius: 10px; padding: 4px 8px 8px; font-size: 0.88rem; }
.ch-box.cause { border-color: var(--avoid); background: var(--avoid-soft); }
.ch-box b { display: block; font-family: var(--display); font-size: 0.78rem; color: var(--ink-soft); }
.ch-arrow { align-self: center; font-weight: 800; color: var(--whole); }
@media (max-width: 560px) { .chainrow { flex-direction: column; } .ch-arrow { transform: rotate(90deg); } }
.mapwrap { border: 1.5px solid var(--rule); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.mlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; border: 1.5px solid var(--ink-soft); border-radius: 6px; padding: 4px 10px; margin: 6px 0; font-size: 0.88rem; }
.mlegend b { font-family: var(--display); width: 100%; }
.mlegend b:empty { display: none; }
@media print { .ch-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* high school math */
.rt.hsr { width: 100%; min-width: 0; table-layout: fixed; }
.rt.hsr th { width: 38%; white-space: normal; vertical-align: middle; }
.rt.hsr td { text-align: left; font-size: 0.98rem; height: 2.3em; }
.rt.hsx { min-width: 0; width: 100%; table-layout: fixed; }
.rt.hsx td, .rt.hsx th { min-width: 0; padding: 4px 2px; font-size: 0.95rem; }
.rt.hsx th { width: 2.2em; text-align: center; }
.rt.hsx .blank { min-width: 0; width: 80%; }
.grid svg.xsvg, .xsvg { width: 150px; height: auto; display: block; margin: 4px 0; }
.grid svg.tilesvg, .tilesvg { max-width: 100%; height: auto; display: block; margin: 4px 0; }
.frac { vertical-align: middle; }
.rt.hspf { width: 100%; min-width: 0; table-layout: fixed; }
.rt.hspf td { text-align: left; font-family: var(--body); font-weight: 400; font-size: 0.95rem; height: 2.3em; }
.rt.hspf thead th { text-align: center; }
.hsbank { font-size: 0.85rem; line-height: 1.5; }
.hspara { line-height: 2.1; font-size: 1rem; max-width: none; }
.hspara .blank { min-width: 14ch; }
.grid svg.nlsvg, .nlsvg { width: 100%; max-width: 330px; height: auto; display: block; margin: 4px 0; }
.grid svg.pfsvg, .pfsvg { width: 100%; max-width: 240px; height: auto; display: block; margin: 4px 0; }
.grid svg.cgsvg, .grid svg.plsvg, .grid svg.stsvg, .grid svg.trsvg { width: 100%; max-width: 280px; height: auto; display: block; margin: 4px 0; }
/* subject tiles: narrower, all on one row on desktop; grade as its own pill */
.subjects { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; max-width: none; }
.subject { padding: 12px 14px; gap: 8px; align-content: start; }
.subject strong { font-size: 1.15rem; line-height: 1.15; }
.subject span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.85rem; }
.subject em.g { display: inline-block; font-style: normal; font-weight: 700; font-size: 0.78rem; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.subject em.g::before { content: none; }
/* phones: logo and How it helps on one line, subjects on the next */
@media (max-width: 600px) {
  .site { column-gap: 18px; row-gap: 10px; }
  .site nav { display: contents; }
  .site::after { content: ""; flex-basis: 100%; height: 0; order: 2; }
  .site nav a { order: 3; font-size: 0.95rem; }
  .site nav a.nav-cta { order: 1; margin-left: auto; display: inline-flex; align-items: center; line-height: 1.2; padding: 7px 14px; font-size: 0.9rem; }
}
/* tiles: name at the top, count and grade pinned to the bottom so pills line up */
.subject { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.subject span { display: grid; justify-items: start; gap: 6px; }
/* six subjects: fit all tiles in one row on desktop; tighter phone menu */
.subjects { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
@media (max-width: 600px) { .site { column-gap: 13px; } .site nav a { font-size: 0.92rem; } }
.grid svg.scgraph, .scgraph { width: 100%; max-width: 320px; height: auto; display: block; margin: 6px 0; }
.grid svg.smsvg, .smsvg { width: 100%; max-width: 420px; height: auto; display: block; margin: 6px 0; }
/* finder */
.finder { margin-top: 28px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; }
.finder h2 { font-size: 1.3rem; margin: 0 0 4px; }
.finder textarea, .share textarea, .sb-out textarea, #share-app input[type=text], #share-app input[type=search], .share input, .sb-out input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); }
.finder textarea { margin: 8px 0 10px; resize: vertical; }
#finder-out .related { margin-top: 6px; }
/* taught differently */
.variant { margin-top: 18px; border-left: 4px solid var(--mark); background: var(--mark-soft); border-radius: 0 12px 12px 0; padding: 12px 16px; }
.variant h3 { margin: 0 0 4px; font-size: 1rem; }
.variant p { margin: 0; }
/* share box on guides */
details.share { margin-top: 28px; border: 1px dashed var(--whole); border-radius: 14px; background: var(--sheet); padding: 4px 16px; }
details.share summary { cursor: pointer; font-family: var(--display); font-weight: 700; padding: 10px 0; color: var(--whole); }
.share-in { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 6px 0 16px; align-items: start; }
.share-qr { width: 150px; min-height: 150px; background: #fff; border-radius: 8px; }
.share-qr svg { width: 100%; height: auto; display: block; }
.share-fields .field { margin-top: 8px; display: block; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.share-row input { flex: 1 1 200px; }
a.btn { text-decoration: none; display: inline-block; }
@media (max-width: 600px) { .share-in { grid-template-columns: minmax(0, 1fr); } .share-qr { width: 130px; min-height: 130px; } }
/* printable QR card */
#pcard { display: none; }
@media print {
  body.pc > *:not(#pcard) { display: none !important; }
  body.pc #pcard { display: block; text-align: center; padding: 0.8in 0.6in; font-family: var(--body); color: #1b2a3a; }
  #pcard h2 { font-size: 30pt; margin: 10px 0; } #pcard .pc-qr { width: 3.2in; margin: 18px auto; } #pcard .pc-qr svg { width: 100%; height: auto; }
  #pcard .pc-brand { font-weight: 700; } #pcard .pc-link { font-size: 12pt; word-break: break-all; } #pcard .pc-note { font-size: 14pt; max-width: 5in; margin: 12px auto; }
}
/* glossary */
.gl-jump { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 8px; }
.gl-jump a { display: inline-block; min-width: 28px; text-align: center; padding: 3px 4px; border-radius: 6px; background: var(--sheet); border: 1px solid var(--rule); text-decoration: none; font-weight: 700; }
.gl-letter { font-size: 1.4rem; margin: 22px 0 6px; border-bottom: 1px solid var(--rule); }
.gl-row { margin: 0; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.gl-row dt { font-weight: 700; font-family: var(--display); }
.gl-row dd { margin: 2px 0 0; }
.gl-subj { font-size: 0.75rem; color: var(--ink-soft); background: var(--paper); border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
/* share page */
.sb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; margin-top: 18px; }
.sb-grid .field { display: block; margin-top: 10px; }
.sb-list { max-height: 560px; overflow: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); padding: 6px 12px; }
.sb-group { border: 0; margin: 0; padding: 6px 0; }
.sb-group legend { font-family: var(--display); font-weight: 800; padding: 6px 0; }
.sb-item { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; cursor: pointer; }
.sb-item small { color: var(--ink-soft); }
.sb-item[hidden], .sb-group[hidden], #sb-none[hidden] { display: none !important; }
.sb-help { margin: 2px 0 6px; font-size: 0.88rem; color: var(--ink-soft); }
#sb-none { margin: 10px 0; padding: 12px 14px; border-radius: 12px; border: 2px dashed var(--rule); }
#sb-none p { margin: 0 0 8px; }
.sb-out { position: sticky; top: 12px; }
.sb-out h2 { margin-top: 0; font-size: 1.25rem; }
.sb-out .share-qr { width: 160px; margin-bottom: 6px; }
.sv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.sv-card h3 { margin: 4px 0; } .sv-links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .sb-grid { grid-template-columns: minmax(0, 1fr); } .sb-out { position: static; } }
@media print { .finder, details.share { display: none; } }
@media (max-width: 600px) { .site { column-gap: 9px; } .site nav a { font-size: 0.85rem; } .site nav a.nav-cta { font-size: 0.88rem; } }
@media (max-width: 360px) { .site { column-gap: 7px; } .site nav a { font-size: 0.8rem; } }
@media print {
  body:not(.sheet-print):not(.pc) header.site nav, body:not(.sheet-print):not(.pc) .pack, body:not(.sheet-print):not(.pc) footer, body:not(.sheet-print):not(.pc) .related { display: none; }
  body.pc #pcard, body.pc #pcard * { visibility: visible; }
  body { background-image: none !important; }
}
@media print { body.sheet-print header.site, body.sheet-print footer, body.sheet-print main > :not(#practice), body.sheet-print #practice > :not(.gen) { display: none !important; } }
.finder-btns [hidden], div.empty-filter[hidden] { display: none !important; }
/* ---------- prices page ---------- */
.price-line { margin: 12px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.pr-jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.pr-jump a { text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.pr-jump strong { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.pr-jump span { font-size: 0.92rem; color: var(--ink-soft); }
.pr-jump a:hover { border-color: var(--mark); }
.pr-h3 { font-size: 1.3rem; margin: 26px 0 6px; }
.pr-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 14px 0 6px; }
.pr-pages figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.pr-pages img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule), 0 6px 18px rgba(27, 42, 58, 0.08); background: #fff; }
.pr-pages figcaption { font-size: 0.92rem; line-height: 1.4; color: var(--ink-soft); }
.pr-pages figcaption strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.02rem; }
.pr-table { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--sheet); margin-top: 10px; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); }
.pr-row:first-child { border-top: 0; }
.pr-name { display: grid; gap: 2px; min-width: 0; }
.pr-name strong { font-family: var(--display); font-size: 1.1rem; }
.pr-name span { font-size: 0.88rem; color: var(--ink-soft); }
.pr-price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-align: right; white-space: nowrap; }
.pr-price s, .pr-bp s { display: block; font-family: var(--body); font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }
.pr-buy { text-align: right; }
.pr-buy .btn { white-space: nowrap; }
.pr-all { background: var(--mark-soft); }
.pr-soon { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); white-space: nowrap; }
.pr-notify { margin-top: 14px; }
.pr-notify p { margin-top: 0; }
.pr-exs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.pr-ex p { margin: 0 0 6px; }
.pr-who { font-family: var(--display); font-weight: 800; font-size: 1.08rem; }
.pr-pay { margin-bottom: 0 !important; padding-top: 8px; border-top: 1px dashed var(--rule); }
.pr-pay strong { font-family: var(--display); font-size: 1.3rem; }
.pr-pay span { color: var(--ink-soft); font-size: 0.9rem; }
.pr-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.pr-tiers .card p:last-child { margin-bottom: 0; }
.pr-group { border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); margin-top: 8px; padding: 0 14px; }
.pr-group summary { cursor: pointer; padding: 12px 0; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.pr-group summary span { font-family: var(--body); font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); margin-left: 6px; }
.pr-blist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 0; }
.pr-blist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.pr-bn { display: grid; min-width: 0; }
.pr-bn small { color: var(--ink-soft); font-size: 0.84rem; }
.pr-bp { font-family: var(--display); font-weight: 800; text-align: right; white-space: nowrap; }
.pr-cta { margin-top: 16px; }
.pr-cta .btn { text-decoration: none; }
.pr-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.pr-cmp ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.way .btn.ghost { margin-top: 8px; }
@media (max-width: 760px) {
  .pr-jump, .pr-tiers, .pr-exs, .pr-cmp { grid-template-columns: minmax(0, 1fr); }
  .pr-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pr-pages figcaption { font-size: 0.8rem; }
  .pr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pr-buy { grid-column: 1 / -1; text-align: left; }
}
/* ---------- subject icons + sticky subject bar ---------- */
:root { --c-math: #2c6db5; --c-hs: #6b4bb8; --c-reading: #c0581d; --c-writing: #b0376a; --c-study: #1f8a5a; --c-social: #8a6418; --c-science: #137c8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-math: #84b6ee; --c-hs: #b9a2f0; --c-reading: #f2a06c; --c-writing: #f08bb6; --c-study: #74d3a4; --c-social: #e2bd6a; --c-science: #6fd0db; } }
:root[data-theme="dark"] { --c-math: #84b6ee; --c-hs: #b9a2f0; --c-reading: #f2a06c; --c-writing: #f08bb6; --c-study: #74d3a4; --c-social: #e2bd6a; --c-science: #6fd0db; }
.si { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; font-style: normal; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.si svg { width: 17px; height: 17px; }
.s-math { --c: var(--c-math); } .s-hs { --c: var(--c-hs); } .s-reading { --c: var(--c-reading); } .s-writing { --c: var(--c-writing); }
.s-study { --c: var(--c-study); } .s-social { --c: var(--c-social); } .s-science { --c: var(--c-science); }
.method-list a, .method-list .soon { position: relative; padding-right: 46px; }
.method-list .si { position: absolute; top: 11px; right: 11px; }
#finder-out .related a { position: relative; padding-right: 46px; }
#finder-out .related .si { position: absolute; top: 11px; right: 11px; }
.subject { position: relative; }
.subject .si-tile { position: absolute; top: auto; bottom: 12px; right: 12px; width: 24px; height: 24px; border-radius: 7px; color: #fff; background: color-mix(in srgb, var(--c) 70%, #000); }
.subject .si-tile svg { width: 15px; height: 15px; }
:root[data-theme="dark"] .subject .si-tile { color: #111a24; background: var(--c); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .subject .si-tile { color: #111a24; background: var(--c); } }
.subj-bar { position: fixed; z-index: 40; top: 0; left: 50%; width: min(100% - 24px, 960px); transform: translate(-50%, -110%); transition: transform 0.18s ease-out; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; border-radius: 0 0 14px 14px; background: var(--sheet); border: 1px solid var(--rule); border-top: 0;
  box-shadow: 0 6px 18px rgba(17, 26, 36, 0.12); color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.subj-bar.on { transform: translate(-50%, 0); }
.subj-bar .si { display: none; }
.subj-bar .si.cur { display: inline-grid; }
.subj-bar b { font-family: var(--display); font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.subj-bar span { color: var(--ink-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.subj-bar em { font-style: normal; font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 480px) { .subj-bar em { display: none; } .subj-bar { width: calc(100% - 16px); } }
@media print { .subj-bar, .si { display: none !important; } }

.pr-two { grid-template-columns: repeat(2, minmax(0, 260px)) !important; }
@media (max-width: 760px) { .pr-two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.pack-buy { display: flex; flex-wrap: wrap; gap: 10px; }
.pack-buy .btn { text-decoration: none; }
/* teacher pack line + "tell your child's teacher" note */
.tpack { margin-top: 14px; font-size: 0.95rem; color: var(--muted, inherit); }
details.tellt { margin-top: 14px; border: 1px dashed var(--mark); border-radius: 14px; background: var(--sheet); padding: 4px 16px; }
details.tellt summary { cursor: pointer; font-family: var(--display); font-weight: 700; padding: 10px 0; }
details.tellt .share-in { grid-template-columns: minmax(0, 1fr); }
.tellt textarea, .tellt-card textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); }
.tellt-card { margin-top: 24px; }
.tellt-card h2 { font-size: 1.2rem; margin: 0 0 4px; }
@media print { details.tellt, .tpack { display: none; } }

/* anchor targets: a little air above a section title after a jump */
.subject-sec, .band, [id^="band-"] { scroll-margin-top: 14px; }

/* site menu: hides while you scroll down, slides back as soon as you scroll up */
header.site { position: sticky; top: 0; z-index: 45; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); transition: transform 0.2s ease-out; }
header.site.away { transform: translateY(-100%); }
.subj-bar { z-index: 46; }
.subj-bar.under-menu { transform: translate(-50%, -110%); }
@media print { header.site { position: static; transform: none; } }

/* ---------- teachers: start-of-unit kit (prints on one page) ---------- */
.kit-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.kit-steps section { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 4px 18px 10px; }
.kit-steps h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.kit-steps h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mark); color: var(--ink); font-size: 0.9rem; flex: none; }
.kit-steps p, .kit-steps ol { margin: 0 0 6px; font-size: 0.95rem; }
.kit-steps ol { padding-left: 20px; }
.kit-h { font-size: 1.25rem; margin: 32px 0 10px; }
.kit-units { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kit-unit { display: flex; flex-direction: column; gap: 3px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; font-size: 0.9rem; }
.kit-unit .eyebrow { margin: 0; font-size: 0.75rem; }
.kit-unit strong { font-family: var(--display); font-size: 1rem; }
.kit-unit span { color: var(--ink-soft); flex: 1; }
.kit-unit a { font-weight: 700; }
.kit-faq { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; font-size: 0.95rem; }
.kit-faq p { margin: 6px 0; }
.kit-print { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.kit-print .btn { text-decoration: none; }
.kit-foot { display: none; }
@media (max-width: 600px) { .kit-steps, .kit-faq { grid-template-columns: minmax(0, 1fr); } }
@media print {
  @page { size: letter; margin: 0.45in; }
  body:has(main.kit) { background: #fff !important; padding: 0; font-size: 9.5pt; line-height: 1.35; }
  body:has(main.kit) header.site, body:has(main.kit) footer, .kit-print, body:has(main.kit) .subj-bar { display: none !important; }
  body:has(main.kit) .wrap { max-width: none; }
  .kit h1 { font-size: 19pt; margin: 0 0 4px; } .kit > .eyebrow { margin-top: 0 !important; } .kit .lead { font-size: 10.5pt; margin: 0; }
  .kit-steps { gap: 6px; margin-top: 10px; } .kit-steps section { padding: 0 10px 4px; break-inside: avoid; } .kit-steps h2 { font-size: 11pt; margin: 6px 0 2px; }
  .kit-steps p, .kit-steps ol { font-size: 9pt; }
  .kit-h { font-size: 11.5pt; margin: 10px 0 5px; }
  .kit-units { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .kit-unit { padding: 4px 8px; font-size: 8pt; gap: 0; break-inside: avoid; } .kit-unit strong { font-size: 9pt; } .kit-unit a { display: none; }
  .kit-faq { margin-top: 8px; font-size: 8.5pt; gap: 0 14px; } .kit-faq p { margin: 2px 0; }
  .kit-foot { display: block; margin-top: 8px; font-size: 8pt; color: #555; text-align: center; }
}
.kit-paper { display: none; }
@media print { .kit-web { display: none; } .kit-paper { display: inline; font-weight: 400; font-family: var(--body); } }
/* second, quieter callout (teachers) under "New here?" */
.callout-2 { margin-top: 10px; padding-block: 10px; border-width: 1px; border-style: dashed; }
.callout-2 .callout-text strong { font-size: 1rem; }
/* home: a little less air above the finder (promise tiles, callouts, price lines) */
.promise { margin-top: 18px; gap: 10px; }
.promise div { padding: 10px 14px; }
.promise span { display: block; line-height: 1.45; margin-top: 2px; }
.callout { margin-top: 14px; padding: 10px 16px; }
.callout-2 { margin-top: 8px; padding-block: 8px; }
.hero-index .price-line { margin-top: 8px; }
.hero-index + .finder, .finder { margin-top: 18px; }

/* faint classroom doodles behind every page */
:root { --doodle: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22520%22 height=%22520%22 viewBox=%220 0 520 520%22 fill=%22none%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg stroke=%22%232c6db5%22 stroke-opacity=%220.14%22 transform=%22translate(18 22) rotate(-4)%22%3E%3Crect x=%220%22 y=%220%22 width=%22118%22 height=%2274%22 rx=%226%22/%3E%3Crect x=%227%22 y=%227%22 width=%22104%22 height=%2260%22 rx=%223%22/%3E%3Cpath d=%22M24 74 L14 104 M94 74 L104 104 M30 80 H88%22/%3E%3C/g%3E%3Ctext x=%2238%22 y=%2272%22 transform=%22rotate(-4 76 60)%22 font-family=%22Comic Sans MS, Chalkboard, cursive%22 font-size=%2222%22 fill=%22%232c6db5%22 fill-opacity=%220.14%22%3E2%2B3=5%3C/text%3E%3Cg stroke=%22%231f8a6a%22 stroke-opacity=%220.14%22 transform=%22translate(182 44) rotate(28)%22%3E%3Crect x=%220%22 y=%220%22 width=%2286%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M86 0 L106 8 L86 16 M99 5.5 L106 8 L99 10.5%22/%3E%3Cpath d=%22M14 0 V16 M8 0 V16 M0 8 H86%22/%3E%3C/g%3E%3Cg stroke=%22%232c6db5%22 stroke-opacity=%220.14%22 transform=%22translate(30 168)%22%3E%3Ccircle cx=%2234%22 cy=%2216%22 r=%2214%22/%3E%3Cpath d=%22M22 10 Q30 0 46 8%22/%3E%3Cpath d=%22M29 18 h0.1 M39 18 h0.1%22 stroke-width=%224%22/%3E%3Cpath d=%22M30 24 Q34 27 38 24%22/%3E%3Cpath d=%22M34 30 Q32 48 34 64 M34 64 L18 86 L30 92 M34 64 L52 84 L62 80%22/%3E%3Cpath d=%22M12 40 Q28 34 34 42 Q40 34 58 40 V62 Q40 56 34 62 Q28 56 12 62 Z%22/%3E%3C/g%3E%3Cg stroke=%22%231f8a6a%22 stroke-opacity=%220.14%22 transform=%22translate(286 150) rotate(-6)%22%3E%3Cpath d=%22M0 10 Q25 0 50 10 V56 Q25 46 0 56 Z M50 10 Q75 0 100 10 V56 Q75 46 50 56%22/%3E%3Cpath d=%22M10 20 H38 M10 30 H38 M10 40 H32 M62 20 H90 M62 30 H90 M62 40 H84%22/%3E%3C/g%3E%3Cg stroke=%22%231f8a6a%22 stroke-opacity=%220.14%22 transform=%22translate(176 236)%22%3E%3Ccircle cx=%2240%22 cy=%2216%22 r=%2214%22/%3E%3Cpath d=%22M28 8 Q24 0 32 2 M48 4 Q56 0 54 10%22/%3E%3Cpath d=%22M35 18 h0.1 M45 18 h0.1%22 stroke-width=%224%22/%3E%3Cpath d=%22M36 24 Q40 28 44 24%22/%3E%3Cpath d=%22M40 30 V62 M40 38 L58 18 L62 0 M40 40 L22 56%22/%3E%3Cpath d=%22M0 64 H96 M10 64 V96 M86 64 V96%22/%3E%3Cpath d=%22M18 56 H40 L36 62 H16 Z%22/%3E%3C/g%3E%3Cg stroke=%22%23d9822b%22 stroke-opacity=%220.14%22 transform=%22translate(40 318) rotate(-12)%22%3E%3Cpath d=%22M0 22 L74 0 L34 44 L28 28 Z M28 28 L74 0%22/%3E%3Cpath d=%22M-30 40 Q-10 30 -4 36%22 stroke-dasharray=%224 5%22/%3E%3C/g%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --doodle: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22520%22 height=%22520%22 viewBox=%220 0 520 520%22 fill=%22none%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg stroke=%22%237fb3ea%22 stroke-opacity=%220.1%22 transform=%22translate(18 22) rotate(-4)%22%3E%3Crect x=%220%22 y=%220%22 width=%22118%22 height=%2274%22 rx=%226%22/%3E%3Crect x=%227%22 y=%227%22 width=%22104%22 height=%2260%22 rx=%223%22/%3E%3Cpath d=%22M24 74 L14 104 M94 74 L104 104 M30 80 H88%22/%3E%3C/g%3E%3Ctext x=%2238%22 y=%2272%22 transform=%22rotate(-4 76 60)%22 font-family=%22Comic Sans MS, Chalkboard, cursive%22 font-size=%2222%22 fill=%22%237fb3ea%22 fill-opacity=%220.1%22%3E2%2B3=5%3C/text%3E%3Cg stroke=%22%236fd0ae%22 stroke-opacity=%220.1%22 transform=%22translate(182 44) rotate(28)%22%3E%3Crect x=%220%22 y=%220%22 width=%2286%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M86 0 L106 8 L86 16 M99 5.5 L106 8 L99 10.5%22/%3E%3Cpath d=%22M14 0 V16 M8 0 V16 M0 8 H86%22/%3E%3C/g%3E%3Cg stroke=%22%237fb3ea%22 stroke-opacity=%220.1%22 transform=%22translate(30 168)%22%3E%3Ccircle cx=%2234%22 cy=%2216%22 r=%2214%22/%3E%3Cpath d=%22M22 10 Q30 0 46 8%22/%3E%3Cpath d=%22M29 18 h0.1 M39 18 h0.1%22 stroke-width=%224%22/%3E%3Cpath d=%22M30 24 Q34 27 38 24%22/%3E%3Cpath d=%22M34 30 Q32 48 34 64 M34 64 L18 86 L30 92 M34 64 L52 84 L62 80%22/%3E%3Cpath d=%22M12 40 Q28 34 34 42 Q40 34 58 40 V62 Q40 56 34 62 Q28 56 12 62 Z%22/%3E%3C/g%3E%3Cg stroke=%22%236fd0ae%22 stroke-opacity=%220.1%22 transform=%22translate(286 150) rotate(-6)%22%3E%3Cpath d=%22M0 10 Q25 0 50 10 V56 Q25 46 0 56 Z M50 10 Q75 0 100 10 V56 Q75 46 50 56%22/%3E%3Cpath d=%22M10 20 H38 M10 30 H38 M10 40 H32 M62 20 H90 M62 30 H90 M62 40 H84%22/%3E%3C/g%3E%3Cg stroke=%22%236fd0ae%22 stroke-opacity=%220.1%22 transform=%22translate(176 236)%22%3E%3Ccircle cx=%2240%22 cy=%2216%22 r=%2214%22/%3E%3Cpath d=%22M28 8 Q24 0 32 2 M48 4 Q56 0 54 10%22/%3E%3Cpath d=%22M35 18 h0.1 M45 18 h0.1%22 stroke-width=%224%22/%3E%3Cpath d=%22M36 24 Q40 28 44 24%22/%3E%3Cpath d=%22M40 30 V62 M40 38 L58 18 L62 0 M40 40 L22 56%22/%3E%3Cpath d=%22M0 64 H96 M10 64 V96 M86 64 V96%22/%3E%3Cpath d=%22M18 56 H40 L36 62 H16 Z%22/%3E%3C/g%3E%3Cg stroke=%22%23f0b35a%22 stroke-opacity=%220.1%22 transform=%22translate(40 318) rotate(-12)%22%3E%3Cpath d=%22M0 22 L74 0 L34 44 L28 28 Z M28 28 L74 0%22/%3E%3Cpath d=%22M-30 40 Q-10 30 -4 36%22 stroke-dasharray=%224 5%22/%3E%3C/g%3E%3C/svg%3E"); } }
:root[data-theme="dark"] { --doodle: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22520%22 height=%22520%22 viewBox=%220 0 520 520%22 fill=%22none%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg stroke=%22%237fb3ea%22 stroke-opacity=%220.1%22 transform=%22translate(18 22) rotate(-4)%22%3E%3Crect x=%220%22 y=%220%22 width=%22118%22 height=%2274%22 rx=%226%22/%3E%3Crect x=%227%22 y=%227%22 width=%22104%22 height=%2260%22 rx=%223%22/%3E%3Cpath d=%22M24 74 L14 104 M94 74 L104 104 M30 80 H88%22/%3E%3C/g%3E%3Ctext x=%2238%22 y=%2272%22 transform=%22rotate(-4 76 60)%22 font-family=%22Comic Sans MS, Chalkboard, cursive%22 font-size=%2222%22 fill=%22%237fb3ea%22 fill-opacity=%220.1%22%3E2%2B3=5%3C/text%3E%3Cg stroke=%22%236fd0ae%22 stroke-opacity=%220.1%22 transform=%22translate(182 44) rotate(28)%22%3E%3Crect x=%220%22 y=%220%22 width=%2286%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M86 0 L106 8 L86 16 M99 5.5 L106 8 L99 10.5%22/%3E%3Cpath d=%22M14 0 V16 M8 0 V16 M0 8 H86%22/%3E%3C/g%3E%3Cg stroke=%22%237fb3ea%22 stroke-opacity=%220.1%22 transform=%22translate(30 168)%22%3E%3Ccircle cx=%2234%22 cy=%2216%22 r=%2214%22/%3E%3Cpath d=%22M22 10 Q30 0 46 8%22/%3E%3Cpath d=%22M29 18 h0.1 M39 18 h0.1%22 stroke-width=%224%22/%3E%3Cpath d=%22M30 24 Q34 27 38 24%22/%3E%3Cpath d=%22M34 30 Q32 48 34 64 M34 64 L18 86 L30 92 M34 64 L52 84 L62 80%22/%3E%3Cpath d=%22M12 40 Q28 34 34 42 Q40 34 58 40 V62 Q40 56 34 62 Q28 56 12 62 Z%22/%3E%3C/g%3E%3Cg stroke=%22%236fd0ae%22 stroke-opacity=%220.1%22 transform=%22translate(286 150) rotate(-6)%22%3E%3Cpath d=%22M0 10 Q25 0 50 10 V56 Q25 46 0 56 Z M50 10 Q75 0 100 10 V56 Q75 46 50 56%22/%3E%3Cpath d=%22M10 20 H38 M10 30 H38 M10 40 H32 M62 20 H90 M62 30 H90 M62 40 H84%22/%3E%3C/g%3E%3Cg stroke=%22%236fd0ae%22 stroke-opacity=%220.1%22 transform=%22translate(176 236)%22%3E%3Ccircle cx=%2240%22 cy=%2216%22 r=%2214%22/%3E%3Cpath d=%22M28 8 Q24 0 32 2 M48 4 Q56 0 54 10%22/%3E%3Cpath d=%22M35 18 h0.1 M45 18 h0.1%22 stroke-width=%224%22/%3E%3Cpath d=%22M36 24 Q40 28 44 24%22/%3E%3Cpath d=%22M40 30 V62 M40 38 L58 18 L62 0 M40 40 L22 56%22/%3E%3Cpath d=%22M0 64 H96 M10 64 V96 M86 64 V96%22/%3E%3Cpath d=%22M18 56 H40 L36 62 H16 Z%22/%3E%3C/g%3E%3Cg stroke=%22%23f0b35a%22 stroke-opacity=%220.1%22 transform=%22translate(40 318) rotate(-12)%22%3E%3Cpath d=%22M0 22 L74 0 L34 44 L28 28 Z M28 28 L74 0%22/%3E%3Cpath d=%22M-30 40 Q-10 30 -4 36%22 stroke-dasharray=%224 5%22/%3E%3C/g%3E%3C/svg%3E"); }
body { background-image: var(--doodle); background-size: 520px 520px; background-repeat: repeat; background-attachment: fixed; }
@media print { body { background-image: none; } }
