/* Spelling and punctuation to check (shared/writing-checks.js): the
   disclaimer, then two columns that stack on a narrow screen. Loaded by John's
   Results page and the teacher's piece reader. Tokens only (shared/tokens.css). */
.wc-note { margin: 0 0 10px; font-size: var(--type-meta); line-height: 1.5; color: var(--text-secondary); }
.wc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; }
.wc-col { min-width: 0; }
.wc-label { display: block; font-size: var(--type-eyebrow); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.wc-sub { margin-top: 12px; }
.wc-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.wc-count { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.wc-sugg { color: var(--text-secondary); }
.wc-punct li { display: flex; flex-direction: column; gap: 1px; }
/* One item per kind of slip (row 461): the heading with its count, up to
   two of the child's lines (row 475), the fix. A little air between kinds. */
.wc-list.wc-punct { gap: 10px; }
.wc-slip-head { color: var(--text-primary); }
/* Row 475: "Most common:" leads the first kind in plain words, no colour
   alarm; "and 2 more" says the lines not shown, in the excerpt's size. */
.wc-lead { font-weight: 400; color: var(--text-secondary); }
.wc-excerpt-more { color: var(--text-secondary); font-size: var(--type-meta); }
.wc-excerpt { color: var(--text-secondary); font-size: var(--type-meta); white-space: pre-wrap; }
/* The fix, said: one short line under the excerpt, in the body ink so it
   reads as the thing to tell the child. */
.wc-hint { display: block; margin-top: 2px; font-size: var(--type-meta); color: var(--text-primary); }
/* The slip itself. No padding: "Aiyana.It" must not look spaced. */
.wc-hit { background: var(--state-warn-bg); box-shadow: inset 0 -2px 0 var(--state-warn-border); color: var(--text-primary); font-weight: 700; padding: 0; border-radius: 0; }
.wc-none { color: var(--text-secondary); margin: 4px 0 0; }
.wc-count-line { margin: 4px 0 6px; font-size: var(--type-meta); color: var(--text-primary); }
.wc-foot { margin: 10px 0 0; font-size: var(--type-eyebrow); line-height: 1.45; color: var(--text-secondary); }

/* GOALS AND CRAFT CHECKS (worklist 380): the goals line above the disclaimer,
   the craft list under the two columns, behind a rule. Counts, never a score. */
.wc-goals { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--warm-white); }
.wc-goals-set { margin-bottom: 6px; color: var(--text-secondary); font-size: var(--type-meta); }
.wc-goals-line { margin: 4px 0 0; line-height: 1.6; color: var(--text-primary); }
/* This week's emailed spelling list: the goal and why it is not checked. */
.wc-goals-list { margin: 4px 0 0; line-height: 1.6; color: var(--text-primary); }
.wc-goal-yes { color: var(--correct-text); }
.wc-goal-no { color: var(--incorrect-text); }
.wc-craft { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.wc-craft-list li { display: block; }
/* STYLE, TIDIED (John, 25 Oct 2026: "a bit visually messy ... what is best
   practice for the teacher to clearly see"). What to act on is one list, its
   "Try" on the same line in quieter ink, an excerpt under its row; the plain
   counts sit in the spelling lists' two columns (.wc-levels), labels down the
   left, so the eye runs down the values; one footnote, the rest folded. */
.wc-craft-list { gap: 6px; }
.wc-craft-list .wc-hint { display: inline; margin: 0 0 0 6px; color: var(--text-secondary); }
.wc-craft-list .wc-hint::before { content: "· "; }
.wc-craft-list .wc-excerpt { display: block; }
.wc-facts { list-style: none; margin: 6px 0 4px; padding: 0; display: grid;
  grid-template-columns: 13.5rem 1fr; gap: 6px 12px; overflow-wrap: anywhere; }
.wc-fact { display: contents; }
.wc-fact-k { font-weight: 700; font-size: var(--type-label); color: var(--text-primary); }
.wc-fact-v { min-width: 0; font-size: var(--type-label); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.wc-fact-full { display: block; grid-column: 1 / -1; font-size: var(--type-label); color: var(--text-secondary); }
.wc-fact-v .wc-chips { margin-top: 2px; }
.wc-how { margin-top: 6px; }
.wc-how > summary { cursor: pointer; font-size: var(--type-eyebrow); color: var(--text-secondary);
  text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.wc-how > .wc-foot { margin-top: 4px; }
@media (max-width: 480px) {
  .wc-facts { grid-template-columns: 1fr; gap: 2px; }
  .wc-fact-v { margin-bottom: 6px; }
}

/* THE NAPLAN SPELLING LISTS (spelling_tiers.py, John 17 Oct 2026). Five
   rows in a fixed order, the names in one column and the counts in the
   next, so the eye runs straight down the counts. Each row's wrong words
   wrap beneath it as whole items ("freind → friend" never splits), most
   repeats first; past eight, the rest wait behind a real button. Counts,
   never a score. */
.wc-levels { display: grid; grid-template-columns: minmax(6.5rem, max-content) 1fr; gap: 6px 12px; margin: 6px 0 4px; }
.wc-level { display: contents; }
.wc-level-name { font-weight: 700; font-size: var(--type-label); color: var(--text-primary); }
.wc-level-count { font-size: var(--type-label); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.wc-level-words { grid-column: 1 / -1; margin: -2px 0 4px; }
.wc-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wc-chip { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; max-width: 100%;
  box-sizing: border-box; padding: 2px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--warm-white); font-size: var(--type-label); line-height: 1.5; }
.wc-chip.hidden { display: none; }
.wc-wrong { color: var(--text-primary); }
.wc-arrow { color: var(--text-tertiary); }
.wc-right { font-weight: 700; color: var(--text-primary); }
.wc-more { margin-top: 6px; min-height: 32px; padding: 4px 12px; font-size: var(--type-label); }
/* A finger's target (row 475, for "4 more kinds of slip · Show all"; every
   Show all here is the same button, so all get it). The 700px step too: a
   desktop pane emulating a phone reports a fine pointer. */
@media (pointer: coarse), (max-width: 700px) {
  .wc-more { min-height: 44px; }
}
.wc-tier { font-size: var(--type-eyebrow); color: var(--text-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 5px; }
.wc-child-sees { margin: 6px 0 0; font-size: var(--type-meta); line-height: 1.45; color: var(--text-secondary); }
.wc-runons li { display: block; font-size: var(--type-meta); }
.wc-runons .wc-excerpt { display: block; }
.wc-runons li { display: flex; flex-direction: column; gap: 1px; }
/* An item wider than its column (a very long word with its correction)
   wraps between its parts, never inside a word and never past the page. */
.wc-chip { flex-wrap: wrap; }
.wc-chip > span, .wc-chip > strong { white-space: nowrap; }

/* THE GENRE SET (genre_checks.py, worklist 388): one sub-heading inside the
   craft block, a line per count; signposts with their paragraphs wrap as
   whole chips, excerpts stack as the run-ons do. */
.wc-genre { margin-top: 4px; }
.wc-genre-list .wc-chips, .wc-genre-list .wc-runons { margin-top: 3px; }
.wc-genre-excerpts .wc-count { font-size: var(--type-eyebrow); }
