/* ============================================================
   MATH PRACTICE — worksheets + Practice band
   Pages live in /worksheets (self-contained, printable).
   The .ws-band styles the Practice band on unit pages.
   Tokens mirror the investigations retheme: sand / ink / iris / amber.
   ============================================================ */
:root{
  --ws-sand:#F3EDDC; --ws-ink:#1A1612; --ws-ink-85:rgba(26,22,18,.85);
  --ws-muted:rgba(26,22,18,.55); --ws-rule:rgba(26,22,18,.18);
  --ws-lane:#FFFFFF; --ws-iris:#5B5BD6; --ws-amber:#D97B2B;
  --ws-ok:#1E7D34;
}

/* ---------- Practice band on unit pages ---------- */
.ws-band .ws-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .ws-band .ws-grid { grid-template-columns: 1fr; } }

.ws-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 18px;
  background: #fff;
  border: 2px solid rgba(26,22,18,0.85);
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink, #1a1612);
  box-shadow: 5px 5px 0 rgba(26,22,18,0.9);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.ws-card:hover {
  transform: translate(-2px,-2px);
  box-shadow: 8px 8px 0 rgba(26,22,18,0.9);
}
.ws-card-addon { border-style: dashed; background: linear-gradient(135deg, #fff 0 72%, rgba(91,91,214,.06) 72% 100%); }
.ws-card h3 {
  font-family: 'Clash Display', sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink, #1a1612);
}
.ws-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(26,22,18,0.65);
}
.ws-pe {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iris, #5b5bd6);
}
.ws-skills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ws-skills span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1.5px dashed rgba(26,22,18,0.35);
  color: rgba(26,22,18,0.6);
}
.ws-go {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber, #d97b2b);
  margin-top: 2px;
}

/* ---------- worksheet document pages ---------- */
body.ws-doc {
  margin: 0;
  background: var(--ws-sand);
  color: var(--ws-ink);
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
.ws-doc .wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 96px; }

.ws-doc .masthead {
  background: var(--ws-ink); color: var(--ws-sand);
  padding: 44px 0 42px; margin-bottom: 40px;
  position: relative; overflow: hidden;
}
.ws-doc .masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--ws-amber) 0 48px, transparent 48px 88px);
}
.ws-doc .masthead .wrap { padding-bottom: 0; }
.ws-doc .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ws-amber); margin: 0 0 14px;
  display: flex; align-items: center; gap: 9px;
}
.ws-doc .eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--ws-amber); flex: none; }
.ws-doc h1 {
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 14px;
}
.ws-doc .standfirst { max-width: 58ch; color: rgba(243,237,220,.75); margin: 0 0 20px; font-size: 16.5px; }

.ws-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-meta .chip {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ws-sand);
  border: 1.5px dashed rgba(243,237,220,.4); padding: 5px 12px; border-radius: 999px;
}
.ws-meta .chip b { color: var(--ws-amber); font-weight: 700; }
.ws-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ws-btn {
  font-family: 'Satoshi', sans-serif; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--ws-sand);
  border: 1.5px solid rgba(243,237,220,.4); border-radius: 12px;
  padding: 10px 18px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .12s, background .12s;
}
.ws-btn:hover { border-color: var(--ws-sand); background: rgba(243,237,220,.08); }

/* name / period line — the turn-in header */
.ws-name {
  display: flex; gap: 26px; flex-wrap: wrap;
  border: 2px solid var(--ws-ink-85); border-radius: 16px;
  background: var(--ws-lane); padding: 14px 18px; margin-bottom: 36px;
  box-shadow: 4px 4px 0 rgba(26,22,18,.9);
}
.ws-name span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ws-muted);
  display: flex; align-items: baseline; gap: 10px;
}
.ws-name i {
  display: inline-block; min-width: 180px; border-bottom: 1.5px dotted var(--ws-muted); height: 1.2em;
}

.ws-khan-embed {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(320px, 1.28fr); gap: 18px;
  align-items: center; margin: 0 0 38px; padding: 20px;
  background: var(--ws-ink); color: var(--ws-sand);
  border: 2px solid var(--ws-ink-85); border-radius: 18px;
  box-shadow: 5px 5px 0 rgba(26,22,18,.9);
}
.ws-khan-copy {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}
.ws-khan-copy .eyebrow { margin-bottom: 9px; }
.ws-khan-copy h2 {
  font-family: 'Clash Display', sans-serif; font-size: 28px; line-height: 1.05; margin: 0 0 9px;
}
.ws-khan-copy p:not(.eyebrow) { color: rgba(243,237,220,.78); max-width: 68ch; margin: 0 auto; }
.ws-khan-frame {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000;
}
.ws-khan-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ws-khan-source { grid-column: 1 / -1; margin: 0; color: rgba(243,237,220,.58); font-size: 12px; }
.ws-khan-embed .ws-video-grid { grid-column: 1 / -1; }
.ws-video-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.ws-video-button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px;
  padding: 12px 14px; border: 2px solid var(--ws-ink-85); border-radius: 13px;
  background: var(--ws-lane); color: var(--ws-ink); text-align: left; cursor: pointer;
  box-shadow: 3px 3px 0 rgba(26,22,18,.9); transition: transform .12s, box-shadow .12s, background .12s;
}
.ws-video-button::before {
  content: "▶"; flex: none; display: grid; place-items: center; width: 31px; height: 31px;
  border-radius: 50%; background: var(--ws-amber); color: var(--ws-ink); font-size: 12px;
}
.ws-video-button:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(26,22,18,.9); background: #fffdf6; }
.ws-video-button:focus-visible, .ws-video-close:focus-visible, .ws-term button:focus-visible { outline: 3px solid var(--ws-amber); outline-offset: 3px; }
.ws-video-button strong { display: block; font-size: 14px; line-height: 1.2; }
.ws-video-button small { display: block; margin-top: 4px; color: var(--ws-muted); font: 10px 'JetBrains Mono', monospace; letter-spacing: .04em; }
.ws-khan-embed .ws-video-button { background: var(--ws-sand); }
.ws-video-lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 22px; background: rgba(26,22,18,.84);
}
body.ws-video-open { overflow: hidden; }
.ws-video-dialog {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 44px); overflow: auto;
  background: var(--ws-lane); color: var(--ws-ink); border: 2px solid var(--ws-ink-85);
  border-radius: 20px; box-shadow: 7px 7px 0 rgba(0,0,0,.55);
}
.ws-video-close {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 37px; height: 37px;
  border: 2px solid var(--ws-ink-85); border-radius: 50%; background: var(--ws-lane);
  color: var(--ws-ink); font: 400 27px/1 'Satoshi', sans-serif; cursor: pointer;
}
.ws-video-dialog-frame { aspect-ratio: 16 / 9; background: #000; }
.ws-video-dialog-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ws-video-dialog-copy { padding: 18px 22px 20px; }
.ws-video-dialog-copy .eyebrow { color: var(--ws-amber); margin: 0 0 7px; font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.ws-video-dialog-copy h2 { margin: 0 42px 7px 0; font-family: 'Clash Display', sans-serif; font-size: 25px; line-height: 1.08; }
.ws-video-dialog-note, .ws-video-dialog-source { margin: 0; color: var(--ws-muted); font-size: 13px; line-height: 1.4; }
.ws-video-dialog-source { margin-top: 12px; font: 11px 'JetBrains Mono', monospace; }
.ws-video-dialog-source a { color: var(--ws-iris); }
.ws-video-dialog-source a[aria-disabled="true"] { color: var(--ws-muted); pointer-events: none; }
@media (max-width: 560px) { .ws-video-grid { grid-template-columns: 1fr; } .ws-video-lightbox { padding: 10px; } }

/* compact vocabulary teaching: visible on hover/focus/click, quiet everywhere else */
.ws-term { position: relative; display: inline-block; white-space: nowrap; }
.ws-term button {
  all: unset; color: var(--ws-iris); font-weight: 700; border-bottom: 1.5px dotted currentColor;
  cursor: help; line-height: 1.25;
}
.ws-term-popover {
  position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 5;
  width: min(250px, calc(100vw - 44px)); padding: 10px 12px;
  border: 1.5px solid var(--ws-ink-85); border-radius: 12px; background: #fff;
  color: var(--ws-ink); box-shadow: 4px 4px 0 rgba(26,22,18,.9);
  font-size: 12px; font-weight: 400; line-height: 1.35; text-align: left;
  white-space: normal; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 4px); transition: opacity .12s, transform .12s, visibility .12s;
}
.ws-part-vocab {
  margin: -2px 0 17px; padding: 11px 13px;
  border: 1.5px dashed var(--ws-rule); border-radius: 12px;
  background: rgba(217,123,43,.06);
}
.ws-part-vocab-label {
  margin: 0 0 8px; color: var(--ws-muted);
  font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .1em;
  text-transform: uppercase;
}
.ws-part-vocab-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ws-part-vocab .ws-term button { font-size: 13px; }
.ws-term button:hover + .ws-term-popover,
.ws-term button:focus + .ws-term-popover,
.ws-term.is-open .ws-term-popover { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.ws-glossary {
  margin: 0 0 38px; padding: 0; border: 2px solid var(--ws-ink-85); border-radius: 15px;
  background: var(--ws-lane); box-shadow: 4px 4px 0 rgba(26,22,18,.9); overflow: visible;
}
.ws-glossary summary { cursor: pointer; list-style: none; padding: 12px 16px; font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.ws-glossary summary::-webkit-details-marker { display: none; }
.ws-glossary summary::after { content: "+"; float: right; font-size: 17px; line-height: 1; }
.ws-glossary[open] summary::after { content: "–"; }
.ws-glossary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 16px 16px; border-top: 1px dashed var(--ws-rule); }
.ws-glossary-grid section { padding-top: 11px; }
.ws-glossary-grid h3 { margin: 0 0 4px; color: var(--ws-amber); font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.ws-glossary-grid p { margin: 0; color: var(--ws-muted); font-size: 12px; line-height: 1.35; }
.ws-glossary-grid b { color: var(--ws-ink); }
@media (max-width: 680px) { .ws-glossary-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .ws-khan-embed { grid-template-columns: 1fr; }
}

/* parts & problems */
.ws-step { border-top: 2px solid var(--ws-ink-85); padding-top: 18px; margin-bottom: 40px; }
.ws-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.ws-learn {
  margin-left: auto; color: var(--ws-iris); text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid rgba(91,91,214,.45);
  border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.ws-learn:hover { background: rgba(91,91,214,.08); border-color: var(--ws-iris); }
.ws-learn span { font-size: 13px; }
.ws-step-num {
  font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12.5px;
  background: var(--ws-ink); color: var(--ws-sand); padding: 3px 10px; border-radius: 8px; letter-spacing: .05em;
}
.ws-doc h2 {
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin: 0;
}
.ws-step-note { color: var(--ws-muted); font-size: 14.5px; margin: 0 0 18px; max-width: 66ch; }
.ws-step-note b, .ws-step-note strong { color: var(--ws-ink); }

.ws-problems { list-style: none; counter-reset: wsprob; margin: 0; padding: 0; }
.ws-problems > li {
  counter-increment: wsprob;
  position: relative;
  padding: 14px 0 14px 52px;
  border-bottom: 1px dashed var(--ws-rule);
}
.ws-problems > li::before {
  content: counter(wsprob);
  position: absolute; left: 0; top: 14px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px;
  width: 34px; height: 34px; border-radius: 10px;
  border: 2px solid var(--ws-ink-85); background: var(--ws-lane);
  display: flex; align-items: center; justify-content: center;
}
.ws-problems p { margin: 0 0 8px; }
.ws-problems .sub { font-size: 14px; color: var(--ws-muted); }
.ws-problems ol.letters { list-style: lower-alpha; margin: 6px 0 0; padding-left: 22px; }
.ws-problems ol.letters li { margin-bottom: 6px; }

/* show-your-work ruled lines */
.work { margin-top: 10px; }
.work i { display: block; height: 30px; border-bottom: 1.5px dotted rgba(26,22,18,.35); }
.work.short i { width: 45%; }

/* data tables */
.ws-table {
  width: 100%; border-collapse: collapse; margin: 12px 0 18px;
  background: var(--ws-lane); border: 2px solid var(--ws-ink-85);
  border-radius: 14px; overflow: hidden;
  font-size: 14.5px;
}
.ws-table caption {
  caption-side: top; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ws-muted); padding: 0 2px 8px 16px;
}
.ws-table th, .ws-table td {
  padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--ws-rule);
}
.ws-table th {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ws-muted); font-weight: 600;
  background: rgba(26,22,18,.04);
}
.ws-table td { font-variant-numeric: tabular-nums; }
.ws-table td.num, .ws-table th.num { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; }
.ws-table tr:last-child td { border-bottom: none; }
.ws-table td.blank { background: repeating-linear-gradient(45deg, rgba(91,91,214,.06) 0 8px, transparent 8px 16px); }

@media (max-width: 640px) {
  html { overflow-x: hidden; }
  .ws-doc .wrap { max-width: 100%; }
  .ws-step, .ws-problems, .ws-part-vocab { min-width: 0; overflow-wrap: anywhere; }
  .ws-term { white-space: normal; }
  .ws-term-popover {
    position: fixed;
    left: 22px;
    right: 22px;
    bottom: 20px;
    width: auto;
    transform: translateY(4px);
  }
  .ws-term button:hover + .ws-term-popover,
  .ws-term button:focus + .ws-term-popover,
  .ws-term.is-open .ws-term-popover { transform: translateY(0); }
  .ws-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ws-formula { max-width: 100%; overflow-x: auto; }
}

/* formula rail */
.ws-formula {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700;
  background: var(--ws-lane); border: 2px solid var(--ws-ink-85); border-radius: 12px;
  padding: 10px 18px; margin: 6px 0 14px;
  box-shadow: 3px 3px 0 rgba(26,22,18,.9);
}
.ws-formula small { font-weight: 400; font-size: 11px; color: var(--ws-muted); letter-spacing: .08em; }

/* graph grid for drawing answers */
.ws-grid-paper {
  width: 100%; max-width: 420px; aspect-ratio: 4/3;
  border: 2px solid var(--ws-ink-85); border-radius: 12px; background: var(--ws-lane);
  background-image:
    linear-gradient(rgba(26,22,18,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,22,18,.10) 1px, transparent 1px);
  background-size: 24px 24px;
  margin: 10px 0 4px;
}
.ws-line, .ws-line-long { display: inline-block; vertical-align: baseline; min-width: 150px; height: 1.2em; border-bottom: 1.5px dotted var(--ws-muted); }
.ws-line-long { min-width: min(360px, 55vw); }
.ws-graph-wrap { width: 100%; max-width: 650px; margin: 12px 0 18px; }
.ws-graph-svg { display: block; width: 100%; height: auto; border: 2px solid var(--ws-ink-85); border-radius: 12px; background: var(--ws-lane); }
.ws-graph-gridline { stroke: rgba(26,22,18,.13); stroke-width: 1; stroke-dasharray: 3 5; }
.ws-graph-axis { stroke: var(--ws-ink); stroke-width: 2; }
.ws-graph-label { fill: var(--ws-muted); font: 11px 'JetBrains Mono', monospace; }
.ws-graph-point { fill: var(--ws-amber); stroke: var(--ws-ink); stroke-width: 2; }
@media (max-width: 640px) { .ws-line, .ws-line-long { max-width: 100%; min-width: 100px; } }

/* answer key */
.ws-key {
  border: 2px solid var(--ws-ink-85); border-radius: 18px;
  background: var(--ws-lane); box-shadow: 5px 5px 0 rgba(26,22,18,.9);
  margin-top: 48px; overflow: hidden;
}
.ws-key summary {
  cursor: pointer; list-style: none;
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 19px;
  padding: 18px 22px; display: flex; align-items: center; gap: 12px;
}
.ws-key summary::-webkit-details-marker { display: none; }
.ws-key summary::before {
  content: "KEY"; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; background: var(--ws-amber); color: var(--ws-ink);
  padding: 4px 10px; border-radius: 8px;
}
.ws-key summary::after { content: "+"; margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 20px; }
.ws-key[open] summary::after { content: "–"; }
.ws-key .key-body { padding: 0 22px 22px; border-top: 1px dashed var(--ws-rule); }
.ws-key .key-body h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ws-amber); margin: 18px 0 6px;
}
.ws-key .key-body p, .ws-key .key-body li { font-size: 14.5px; color: rgba(26,22,18,.8); }
.ws-key .key-body ol { padding-left: 20px; margin: 6px 0; }
.ws-key .key-body li { margin-bottom: 4px; }
.ws-key .key-body b { color: var(--ws-ink); }

/* footer */
.ws-doc footer {
  border-top: 2px solid var(--ws-ink-85);
  padding: 26px 0 0; margin-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ws-muted);
}
.ws-doc footer a { color: var(--ws-iris); text-decoration: none; }

/* print: clean document, key opens, chrome hides */
@media print {
  body.ws-doc { background: #fff; font-size: 12.5px; }
  .ws-doc .masthead { background: #fff; color: var(--ws-ink); padding: 0 0 18px; margin-bottom: 22px; }
  .ws-doc .masthead::after { display: none; }
  .ws-doc .eyebrow, .ws-doc .standfirst { color: var(--ws-muted); }
  .ws-actions, .ws-khan-embed, .ws-video-lightbox, .ws-doc footer { display: none; }
  .ws-glossary { box-shadow: none; margin-bottom: 20px; }
  .ws-glossary-grid { grid-template-columns: repeat(4, 1fr); }
  .ws-term button { color: inherit; border: 0; }
  .ws-term-popover { display: none; }
  .ws-name { box-shadow: none; }
  .ws-key { box-shadow: none; break-before: page; }
  .ws-step { break-inside: avoid-page; }
  .ws-table, .ws-formula { box-shadow: none; }
}

/* ---------- index page (math-practice.html) ---------- */
.mp-section { margin-bottom: 56px; }
.mp-head { border-top: 2px solid var(--ws-ink-85); padding-top: 18px; margin-bottom: 22px; }
.mp-head h2 {
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.01em; margin: 6px 0 8px;
}
.mp-head .sub { color: var(--ws-muted); font-size: 15px; max-width: 62ch; margin: 0; }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .mp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mp-grid { grid-template-columns: 1fr; } }
.mp-note {
  border: 2px dashed var(--ws-rule); border-radius: 16px;
  padding: 18px 20px; color: var(--ws-muted); font-size: 14.5px;
  max-width: 66ch; margin: 0 0 40px;
}
.mp-note b { color: var(--ws-ink); }

/* ---------- extra practice: student-only, print-efficient sheets ---------- */
.extra-doc .masthead { margin-bottom: 28px; }
.extra-doc .masthead .standfirst { max-width: 66ch; }
.extra-doc .extra-purpose {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 8px 12px;
  border: 1.5px dashed var(--ws-amber); border-radius: 10px;
  color: var(--ws-muted); font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.extra-doc .extra-purpose::before { content: "QUESTIONS ONLY"; color: var(--ws-amber); font-weight: 700; }
.extra-doc .ws-step { margin-bottom: 24px; padding-top: 13px; }
.extra-doc .ws-step-note { margin-bottom: 8px; }
.extra-doc .ws-problems > li { padding-top: 10px; padding-bottom: 10px; }
.extra-doc .ws-problems > li::before { top: 10px; }
.extra-doc .work i { height: 25px; }
.extra-doc .extra-close {
  border-top: 2px solid var(--ws-ink-85); margin-top: 28px; padding-top: 14px;
  color: var(--ws-muted); font-size: 13px;
}

@media print {
  @page { size: letter; margin: .45in; }
  body.extra-doc { font-size: 11.5px; }
  .extra-doc .masthead { padding-bottom: 12px; margin-bottom: 16px; }
  .extra-doc .masthead h1 { font-size: 30px; margin-bottom: 8px; }
  .extra-doc .masthead .standfirst { font-size: 12.5px; margin-bottom: 10px; }
  .extra-doc .ws-meta .chip { font-size: 9px; padding: 3px 8px; }
  .extra-doc .ws-actions, .extra-doc footer { display: none; }
  .extra-doc .ws-name { margin-bottom: 18px; padding: 8px 12px; box-shadow: none; }
  .extra-doc .ws-name i { min-width: 125px; }
  .extra-doc .ws-step { margin-bottom: 16px; break-inside: avoid-page; }
  .extra-doc .ws-step-head { margin-bottom: 3px; }
  .ws-learn { display: none; }
  .extra-doc .ws-step-num { font-size: 10px; padding: 2px 7px; }
  .extra-doc h2 { font-size: 17px; }
  .extra-doc .ws-step-note { font-size: 11px; line-height: 1.35; }
  .extra-doc .ws-problems > li { padding: 7px 0 7px 38px; }
  .extra-doc .ws-problems > li::before { top: 7px; width: 27px; height: 27px; font-size: 11px; border-radius: 8px; }
  .extra-doc .work { margin-top: 5px; }
  .extra-doc .work i { height: 18px; }
  .extra-doc .extra-purpose { margin-bottom: 10px; padding: 4px 8px; font-size: 9px; }
  .extra-doc .extra-close { margin-top: 12px; padding-top: 8px; font-size: 10px; }
}
