/* Psych Stats Practice: an exam paper with its statistics insert. Cool grey desk, white sheets, navy ink, a teal
   accent, humanist sans headings, figures in a mono face, and each critical-value extract boxed like the printed
   table booklet. Black on white on paper. */
:root {
  --bg: #eef1f3;
  --paper: #ffffff;
  --ink: #15212c;
  --muted: #4a5763;
  --line: #d3d9de;
  --edge: #7c8892;
  --accent: #0b6468;
  --accent-ink: #ffffff;
  --accent-soft: #dcefee;
  --insert: #f6f4ec;
  --insert-edge: #5f5a48;
  --info: #1f4f86;
  --ok: #17663a;
  --ok-soft: #dcf0e3;
  --close: #7a5200;
  --close-soft: #f7ebcf;
  --bad: #a3271f;
  --bad-soft: #f9e0dc;
  --focus: #c2410c;
  --pt: #0b6468;
  --head: Seravek, "Gill Sans Nova", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --r: 4px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171c;
    --paper: #182129;
    --ink: #e4eaee;
    --muted: #a9b5bf;
    --line: #2c3842;
    --edge: #6b7883;
    --accent: #5cc4c4;
    --accent-ink: #062224;
    --accent-soft: #163236;
    --insert: #1f2620;
    --insert-edge: #a39e86;
    --info: #8db9ec;
    --ok: #8ad7a5;
    --ok-soft: #14301f;
    --close: #f1c56b;
    --close-soft: #352a12;
    --bad: #ff9d90;
    --bad-soft: #3b1c18;
    --focus: #fb923c;
    --pt: #5cc4c4;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-underline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.hero { padding: 22px 0 6px; border-bottom: 3px solid var(--ink); }
h1 { font: 600 clamp(1.7rem, 5vw, 2.5rem)/1.08 var(--head); margin: 0 0 8px; letter-spacing: -0.005em; }
.lede { margin: 0 0 10px; color: var(--muted); max-width: 62ch; }
h2 { font: 600 1.4rem/1.2 var(--head); margin: 0 0 10px; }

/* settings */
.setup { display: grid; grid-template-columns: 1fr; gap: 10px 22px; padding: 14px 0 4px; }
@media (min-width: 760px) {
  .setup { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
  .setup .topics { grid-column: 1; }
  .setup .setrow { grid-column: 2; }
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .field { font-weight: 650; font-size: 0.95rem; }
legend { padding: 0; margin-bottom: 5px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.sg { position: relative; display: block; cursor: pointer; }
.sg + .sg { border-left: 1px solid var(--ink); }
.sg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sg > span { display: flex; align-items: center; justify-content: center; min-height: 44px; height: 100%; padding: 4px 6px; text-align: center; font-weight: 650; background: var(--paper); line-height: 1.15; }
.sg input:checked + span { background: var(--ink); color: var(--bg); }
.toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tg { position: relative; display: block; cursor: pointer; }
.tg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tg span { display: flex; flex-direction: column; justify-content: center; min-height: 44px; height: 100%; padding: 5px 10px 5px 30px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--paper); line-height: 1.2; position: relative; }
.tg span::before { content: ""; position: absolute; left: 9px; top: 50%; width: 13px; height: 13px; margin-top: -7px; border: 2px solid var(--edge); border-radius: 2px; }
.tg input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tg input:checked + span::before { background: var(--accent); border-color: var(--accent); }
/* a visible tick, so the state never relies on fill colour alone */
.tg input:checked + span::after { content: ""; position: absolute; left: 14px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media print { .tg input:checked + span::after { border-color: #fff; } }
.tg b { font-weight: 650; font-size: 0.95rem; }
.tg small { color: var(--muted); font-size: 0.82rem; }
.tg input:focus-visible + span, .sg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
select, input { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r); min-height: 44px; padding: 6px 10px; }
select { max-width: 100%; }
.btn { font: inherit; font-weight: 650; min-height: 44px; padding: 8px 16px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { background: var(--bad); color: var(--paper); border-color: var(--bad); }
.btn.small { padding: 6px 16px; }
.btn:hover { filter: brightness(0.95); }
.link { font: inherit; background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* the choosing grid */
.gridref { margin: 10px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gridref > summary { cursor: pointer; font-weight: 650; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.gridref > div { padding: 0 0 12px; }
.gridref p { margin: 8px 0 0; font-size: 0.93rem; color: var(--muted); max-width: 70ch; }
table.choose { border-collapse: collapse; width: 100%; max-width: 640px; font-size: 0.92rem; background: var(--paper); }
.choose th, .choose td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.choose thead th { font-size: 0.85rem; background: var(--bg); }
.choose thead small { display: block; font-weight: 400; color: var(--muted); }
.choose tbody th { font-weight: 650; }

.note { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--close); background: var(--close-soft); border-radius: var(--r); }
.note.info { border-color: var(--info); background: var(--paper); }
.note .link { min-height: 0; padding: 0; font-weight: 600; }

/* the set */
.sheet { margin: 18px 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 4px; }
.sheet:focus { outline: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; }
.code { font-family: var(--mono); letter-spacing: 0.08em; color: var(--accent); }
.score { margin: 0; font-size: 0.95rem; color: var(--muted); }
.sub { margin: 2px 0 0; font-size: 0.93rem; color: var(--muted); }
.practice { margin: 4px 0 0; font-size: 0.93rem; color: var(--muted); }
.practice.marking { margin: 14px 0 0; }
.qs { list-style: none; margin: 0; padding: 0; }
.q { border-top: 2px solid var(--ink); padding: 18px 0 8px; margin-top: 16px; }
.q h3 { font: 600 1.22rem/1.25 var(--head); margin: 0 0 6px; display: flex; gap: 10px; align-items: baseline; }
.q h3 .qn { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r); font: 700 1rem var(--sans); }
.q .scen { margin: 0 0 12px; max-width: 72ch; }

/* data */
.fig { margin: 0 0 14px; }
.dt { border-collapse: collapse; background: var(--paper); font-size: 0.95rem; }
.dt caption { text-align: left; font-weight: 650; font-size: 0.9rem; padding: 0 0 4px; caption-side: top; }
.dt th, .dt td { padding: 4px 12px; border: 1px solid var(--line); text-align: center; }
.dt thead th { font-size: 0.84rem; font-weight: 650; background: var(--bg); }
.dt td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dt tbody th { font-weight: 500; color: var(--muted); }
.dt.counts tbody th, .dt.tally tbody th { text-align: left; color: var(--ink); }
.dt tfoot th, .dt tfoot td, .dt td.tot { font-weight: 700; }
.cap { margin: 0 0 4px; font-weight: 650; font-size: 0.9rem; }
.signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); max-width: 680px; }
.signs li { padding: 4px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); font-size: 0.95rem; }
.signs .pn { display: inline-block; min-width: 2.4em; color: var(--muted); font-family: var(--mono); font-size: 0.88rem; }
.corr { display: grid; gap: 14px; align-items: start; }
@media (min-width: 700px) { .corr { grid-template-columns: auto minmax(0, 1fr); } }
.sc { margin: 0; max-width: 440px; }
svg.scatter { display: block; width: 100%; height: auto; }
.scatter .grid { fill: none; stroke: var(--line); stroke-width: 0.8; }
.scatter .axis { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.scatter text { fill: var(--muted); font: 10.5px var(--sans); }
.scatter .tx, .scatter .al { text-anchor: middle; }
.scatter .ty { text-anchor: end; }
.scatter .al { fill: var(--ink); font-weight: 600; }
.scatter .pt { fill: var(--pt); stroke: var(--paper); stroke-width: 1; }

/* the printed table extract */
.extract { margin: 0 0 16px; padding: 10px 12px; background: var(--insert); border: 1px solid var(--insert-edge); border-radius: 2px; box-shadow: 3px 3px 0 var(--line); max-width: 560px; }
.xh { margin: 0 0 6px; font: 600 0.98rem var(--head); }
.xt { border-collapse: collapse; font-size: 0.92rem; }
.xt th, .xt td { padding: 3px 9px; border-bottom: 1px solid var(--line); text-align: right; }
.xt td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.xt thead th { font-family: var(--mono); font-weight: 600; font-size: 0.86rem; }
.xt thead th.lv, .xt tbody th { text-align: left; font-family: var(--sans); font-weight: 600; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.xt thead tr:last-child th { border-bottom: 2px solid var(--insert-edge); }
.xt caption { text-align: left; font-size: 0.85rem; color: var(--muted); padding-bottom: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grids { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.xr { margin: 6px 0 0; font-size: 0.88rem; color: var(--muted); }

/* questions */
.qparts { max-width: 760px; }
.part { margin: 0 0 14px; min-width: 0; }
.part > .prompt, .part legend { display: block; font-weight: 600; margin: 0 0 6px; }
.opts { display: grid; gap: 4px; }
.part.short .opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.part.tiny .opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.opt { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.opt input { margin: 3px 0 0; min-height: 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.opt .ot { min-width: 0; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ain input { width: 9em; font-family: var(--mono); }
.nums { display: flex; flex-wrap: wrap; gap: 0 28px; }
.nums > .part { flex: 0 1 300px; }
.qfoot { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.qfoot .fb { margin: 0; }
.fbwrap:empty { display: none; }
.fb { margin: 6px 0 0; padding: 6px 10px; border-radius: var(--r); max-width: 70ch; }
.fb.right { background: var(--ok-soft); color: var(--ok); }
.fb.close { background: var(--close-soft); color: var(--close); }
.fb.wrong, .fb.unread { background: var(--bad-soft); color: var(--bad); }
.part.is-right .ain input { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.part.is-wrong .ain input, .part.is-unread .ain input { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.part.is-close .ain input { border-color: var(--close); box-shadow: inset 0 0 0 1px var(--close); }
.work { margin-top: 4px; }
.work > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.95rem; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.work .ans { margin: 8px 0 0; }
.work .why { margin: 0; color: var(--muted); font-size: 0.94rem; }
.steps { list-style: disc; margin: 2px 0 6px; padding-left: 1.4em; font-size: 0.94rem; overflow-wrap: anywhere; }
.calcwork { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; overflow-x: auto; }
.cw { margin: 0 0 4px; font-weight: 650; }
.wt { border-collapse: collapse; margin: 2px 0 8px; font-size: 0.9rem; }
.wt th, .wt td { padding: 3px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.wt td { font-family: var(--mono); }
.wt thead th { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.wt tbody th { font-weight: 500; color: var(--muted); text-align: left; }
.sheet-foot { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 14px 0 10px; border-top: 2px solid var(--ink); margin-top: 8px; }
.clear-ask { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; background: var(--bad-soft); border: 1px solid var(--bad); border-radius: var(--r); }
.clear-ask[hidden] { display: none; }
.clear-ask p { margin: 0; flex-basis: 100%; }

.share { margin: 14px 0 8px; }
.print-row { display: flex; align-items: flex-end; gap: 8px 10px; flex-wrap: wrap; }
.share-out label { display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; font-weight: 600; }
.share-out input { width: 100%; }
.recent { margin-top: 12px; border-top: 1px solid var(--line); }
.recent summary { cursor: pointer; padding: 11px 0; font-weight: 600; min-height: 44px; }
.recent ul { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 4px 0; }
.recent small { display: block; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; margin: 8px 0 10px; }

.toast { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 160%); background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); max-width: calc(100% - 32px); transition: transform 0.2s; z-index: 20; }
.toast.on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* content */
.content { padding: 26px 0 8px; }
.content h2 { margin-top: 30px; }
.content p { max-width: 68ch; }
.content .choose { margin: 4px 0 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 11px 0; font-weight: 600; min-height: 44px; }
.faq details p { margin: 0 0 12px; }
.sources { font-size: 0.92rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 22px; }
.crumbs { margin: 12px 0 0; font-size: 0.93rem; }

footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 16px 0 28px; color: var(--muted); font-size: 0.92rem; }
.indep, .also { margin: 0 0 10px; }
.sb-footer p { margin: 6px 0; }
.sb-more { line-height: 1.8; }
.sb-footer a { color: var(--ink); }

@media (max-width: 600px) {
  .hero { padding-top: 10px; }
  table.choose { font-size: 0.8rem; }
  .choose th, .choose td { padding: 4px 5px; overflow-wrap: anywhere; }
  .sheet { padding: 10px 12px 4px; margin-left: -4px; margin-right: -4px; }
  .q .scen { font-size: 0.97rem; }
  .dt th, .dt td { padding: 4px 8px; }
  .xt th, .xt td { padding: 3px 5px; }
  .extract { padding: 8px; }
}

@media (max-width: 400px) {
  .xt { font-size: 0.8rem; }
  .xt th, .xt td { padding: 2px 4px; }
  .xt thead th { font-size: 0.78rem; }
  .extract { padding: 6px; }
  .wt { font-size: 0.78rem; }
  .wt th, .wt td { padding: 2px 3px; }
  .dt { font-size: 0.86rem; }
  .dt th, .dt td { padding: 4px 5px; }
  .dt thead th { font-size: 0.78rem; }
}

/* print: worksheet and key only, black on white */
.print-root { display: none; }
@page { margin: 0.45in 0.5in; }
@media print {
  :root { --ink: #000; --muted: #333; --line: #999; --paper: #fff; --edge: #555; --insert: #fff; --insert-edge: #000; --pt: #000; --bg: #fff; }
  body { background: #fff; color: #000; font: 10.5pt/1.38 var(--sans); }
  main, footer, .toast, .skip { display: none !important; }
  .print-root { display: block; }
  svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  table.pt { width: 100%; border-collapse: collapse; }
  table.pt > tbody > tr > td, table.pt > thead > tr > td { padding: 0; }
  .prun { font: 8.5pt var(--sans); color: #444; text-align: right; padding-bottom: 6pt !important; }
  .ph { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2pt solid #000; margin-bottom: 6pt; }
  .ph h2 { font: 600 15pt var(--head); margin: 0; }
  .ph p { margin: 0; }
  .pmeta { display: flex; justify-content: space-between; gap: 12pt; margin: 4pt 0 6pt; }
  .plabel { margin: 0 0 4pt; font-size: 9pt; font-style: italic; }
  .pq { list-style: none; margin: 0; padding: 0; }
  .pq > li { padding: 8pt 0 4pt; border-top: 1pt solid #000; }
  .pqh { break-after: avoid; page-break-after: avoid; break-inside: avoid; page-break-inside: avoid; }
  .pparts ol.popts.two { columns: 2; column-gap: 4mm; }
  .pq h3 { font: 600 11.5pt var(--head); margin: 0 0 2pt; }
  .pq .pscen { margin: 0 0 5pt; }
  .pfx { display: flex; flex-wrap: wrap; gap: 6pt 14pt; align-items: flex-start; break-inside: avoid; page-break-inside: avoid; margin-bottom: 4pt; }
  .pfx .fig { margin: 0; }
  .pfx .corr { display: flex; gap: 10pt; align-items: flex-start; }
  .pfx .sc { width: 62mm; }
  .scatter .grid { stroke: #bbb; }
  .scatter .pt { fill: #000; stroke: #fff; }
  .scatter text { fill: #000; }
  .dt { font-size: 9pt; }
  .dt th, .dt td { padding: 1.5pt 6pt; border: 0.75pt solid #555; }
  .dt thead th { background: #fff; }
  .dt caption, .cap { font-size: 9pt; }
  .signs { grid-template-columns: repeat(5, 34mm); border-color: #555; max-width: none; }
  .signs li { font-size: 9pt; padding: 1.5pt 4pt; border-color: #555; }
  .extract { box-shadow: none; padding: 4pt 6pt; margin: 0; border: 1pt solid #000; max-width: 92mm; }
  .xh { font-size: 9.5pt; margin-bottom: 2pt; }
  .xt { font-size: 8.8pt; }
  .xt th, .xt td { padding: 1pt 5pt; border-bottom: 0.5pt solid #999; }
  .xt thead tr:last-child th { border-bottom: 1pt solid #000; }
  .xr { font-size: 8.3pt; margin-top: 2pt; color: #000; }
  .pparts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8mm; align-items: start; }
  .pparts .pp { margin: 0 0 6pt; break-inside: avoid; page-break-inside: avoid; }
  .pparts .pp.long { grid-column: 1 / -1; }
  .pparts .pp p { margin: 0 0 1.5pt; }
  .pparts ol.popts { margin: 0; padding-left: 14pt; list-style: upper-alpha; font-size: 9.4pt; }
  .pparts ol.popts li { margin: 0 0 1pt; }
  .pparts .pline { margin-top: 8pt !important; }
  .pkey { break-before: page; page-break-before: always; }
  .pk { margin: 0; padding-left: 16pt; }
  .pk > li { padding: 3pt 0; border-bottom: 0.75pt solid #bbb; break-inside: avoid; page-break-inside: avoid; }
  .pk h3 { font: 600 10.5pt var(--head); margin: 0 0 1pt; }
  .pk .ans { margin: 0; font-size: 9.2pt; line-height: 1.3; }
  .pk .cw { margin: 2pt 0 0; font-weight: 650; font-size: 9pt; }
  .pk .steps { margin: 1pt 0 2pt; padding-left: 13pt; font-size: 8.6pt; line-height: 1.28; }
  .wt { font-size: 8.4pt; margin: 2pt 0; }
  .wt th, .wt td { padding: 0.5pt 5pt; border-bottom: 0.5pt solid #999; }
}
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

/* the descriptive page */
.toggles.five { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 760px) { .setup .topics.wide { grid-column: 1 / -1; } }
.scorelist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-left: 1px solid var(--line); max-width: 640px; }
.scorelist li { min-width: 2.8em; padding: 4px 8px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--mono); }
.sc.wide { max-width: 520px; }
svg.hist, svg.normal { display: block; width: 100%; height: auto; }
.hist .bar { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.hist .grid, .normal .sdl { fill: none; stroke: var(--line); stroke-width: 0.8; }
.normal .curve { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.hist .axis, .normal .axis { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.hist text, .normal text { fill: var(--muted); font: 10.5px var(--sans); }
.hist .tx, .hist .al, .normal .tx, .normal .al { text-anchor: middle; }
.hist .ty { text-anchor: end; }
.hist .al, .normal .al { fill: var(--ink); font-weight: 600; }
@media print {
  .hist .bar { fill: #ddd; stroke: #000; }
  .normal .curve { stroke: #000; }
  .hist text, .normal text { fill: #000; }
  .pfx .sc.wide { width: 95mm; }
  .pfx .sc { width: 70mm; }
  .scorelist li { padding: 1.5pt 5pt; border-color: #555; font-size: 9.5pt; }
}
