/* Blattwerk — screen + A4 print. */

:root {
  --bg: #f6f6f4;
  --panel: #ffffff;
  --ink: #1b1b1a;
  --ink-2: #5d5d58;
  --ink-3: #8b8b84;
  --line: #e0e0da;
  --line-2: #cfcfc6;
  --accent: #2f6f4e;
  --accent-soft: #e8f1eb;
  --warn: #a8442a;
  --ok: #2f6f4e;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17181a; --panel: #1f2023; --ink: #e9e9e4; --ink-2: #a8a8a1; --ink-3: #74746e;
    --line: #2e3034; --line-2: #3c3e43; --accent: #6fbf92; --accent-soft: #1e2b24;
    --warn: #e08b6d; --ok: #6fbf92;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- top bar ---------- */

.topbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: var(--panel); position: sticky; top: 0; z-index: 20;
}
.brand { font-weight: 650; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand span { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

.tracks { display: flex; gap: 4px; background: var(--bg); padding: 3px; border-radius: 8px; border: 1px solid var(--line); }
.tracks button {
  border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px;
  padding: 6px 13px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.tracks button[aria-pressed="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.07); }

/* ---------- grade bar ---------- */

.gradebar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 11px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.gradebar .lab { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.gradebar button {
  min-width: 36px; padding: 5px 9px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-2); border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer;
}
.gradebar button:hover { border-color: var(--accent); color: var(--ink); }
.gradebar button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.gradebar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.gradebar .stage { font-size: 11px; color: var(--ink-3); }

main { max-width: 1120px; margin: 0 auto; padding: 26px 20px 60px; }

/* ---------- browse ---------- */

.hero { margin: 4px 0 26px; }
.hero h1 { font-size: 24px; margin: 0 0 6px; font-weight: 640; letter-spacing: -.015em; }
.hero p { margin: 0; color: var(--ink-2); max-width: 62ch; }

.subject { margin-bottom: 30px; }
.subject h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3);
  margin: 0 0 11px; display: flex; align-items: center; gap: 9px;
}
.subject h2::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: hsl(var(--hue) 45% 48%); }
.subject h2 .n { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
.card {
  display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; transition: border-color .12s, transform .12s;
}
.card:hover { border-color: hsl(var(--hue) 45% 48%); transform: translateY(-1px); }
.card b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 3px; }
.card .sub { color: var(--ink-3); font-size: 12.5px; }
.card .chips { margin-top: 9px; display: flex; gap: 4px; flex-wrap: wrap; }
.chip {
  font-size: 10.5px; padding: 2px 7px; border-radius: 20px; border: 1px solid var(--line-2);
  color: var(--ink-3); letter-spacing: .02em;
}
.chip.lib { border-color: hsl(var(--hue) 45% 48%); color: hsl(var(--hue) 45% 42%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.lib { color: hsl(var(--hue) 50% 62%); } }

.empty { color: var(--ink-3); padding: 40px 0; text-align: center; }

/* ---------- sheet toolbar ---------- */

.toolbar {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; margin-bottom: 20px; display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.field select, .field input[type="number"], .field input[type="text"] {
  font: inherit; font-size: 13.5px; padding: 6px 9px; border: 1px solid var(--line-2);
  border-radius: 7px; background: var(--bg); color: var(--ink); min-width: 96px;
}
.field input[type="text"] { font-family: var(--mono); font-size: 12.5px; width: 120px; }
.checks { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); }
.checks label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.spacer { flex: 1 1 auto; }
.btns { display: flex; gap: 8px; }
button.act {
  font: inherit; font-size: 13.5px; padding: 8px 15px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
}
button.act:hover { border-color: var(--accent); }
button.act.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 550; }
button.act.primary:hover { filter: brightness(1.08); }

.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- the sheet: laid out like a real paper ---------- */

.sheet {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 46px 34px; max-width: 880px; margin: 0 auto;
}
.paper { font-family: var(--serif); }
.paper .q, .paper .sec-note, .paper .paper-howto, .paper .keylist { font-family: var(--serif); }

.paper-head { display: flex; gap: 24px; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.paper-head h1 { font-size: 22px; margin: 0 0 2px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.ph-sub { font-size: 14px; color: var(--ink-2); font-style: italic; }
.ph-topics { font-size: 12px; color: var(--ink-3); margin-top: 5px; font-family: var(--sans); }
.ph-badges {
  margin-left: auto; text-align: right; font-family: var(--sans); font-size: 11.5px;
  color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; white-space: nowrap;
}
.ph-badges .tot { font-weight: 600; color: var(--ink); font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }

.paper-fields {
  display: flex; gap: 30px; font-family: var(--sans); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .06em; padding: 12px 0 11px;
}
.paper-fields span { flex: 1; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

.paper-howto {
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
  border-left: 2.5px solid var(--line-2); padding: 2px 0 2px 12px; margin: 4px 0 24px;
}
.paper-howto b { color: var(--ink); }
.paper-lead { font-size: 13.8px; line-height: 1.6; color: var(--ink-2); margin: 14px 0 24px; max-width: 74ch; }

.sec { margin-bottom: 26px; }
.sec-h {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px;
  border-bottom: 1px solid var(--line-2); padding-bottom: 5px;
  font-size: 15px; font-weight: 600; font-family: var(--sans); letter-spacing: -.005em;
}
.sec-h .letter {
  font-family: var(--serif); font-size: 17px; font-weight: 700; font-style: italic;
  min-width: 17px; color: var(--ink);
}
.sec-h .sec-t { flex: 1; }
.sec-h .sec-m { font-size: 11.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.sec-note { font-size: 12.5px; color: var(--ink-3); font-style: italic; margin: 0 0 8px; }

ol.tasks { list-style: none; counter-reset: t; margin: 0; padding: 0; }
ol.tasks > li {
  counter-increment: t; display: grid; grid-template-columns: 26px 1fr; gap: 10px;
  padding: 9px 0; break-inside: avoid;
}
ol.tasks > li::before {
  content: counter(t) "."; font-variant-numeric: tabular-nums; color: var(--ink-2);
  font-size: 14px; padding-top: 1px;
}
.q { font-size: 15px; line-height: 1.72; }
.q b { font-weight: 600; }
.qm {
  float: right; margin-left: 12px; font-family: var(--sans); font-size: 10.5px;
  color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px;
  line-height: 1.5; font-variant-numeric: tabular-nums;
}

.ans-wrap { margin-top: 8px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.anslab { font-family: var(--sans); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
input.ans {
  font-family: var(--sans); font-size: 14px; padding: 5px 10px; border: 1px solid var(--line-2);
  border-radius: 6px; background: var(--bg); color: var(--ink); min-width: 180px; flex: 0 1 280px;
}
input.ans:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
li.right input.ans { border-color: var(--ok); background: var(--accent-soft); }
li.wrong input.ans { border-color: var(--warn); }
.mark { font-family: var(--sans); font-size: 13px; font-weight: 600; }
li.right .mark { color: var(--ok); }
li.wrong .mark { color: var(--warn); }
.mc { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 14.5px; }
.mc label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

.lines { margin-top: 9px; }
.lines div { border-bottom: 1px solid var(--line-2); height: 25px; }
textarea.ans {
  font-family: var(--serif); font-size: 14.5px; width: 100%; min-height: 90px; padding: 9px 11px;
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg); color: var(--ink); resize: vertical;
}
.workbox {
  margin-top: 9px; border: 1px solid var(--line-2); border-radius: 5px;
  height: var(--wh, 78px); position: relative;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 5mm 5mm; background-position: -1px -1px;
}
.workbox > span {
  position: absolute; top: 3px; right: 6px; font-family: var(--sans); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: var(--panel); padding: 0 3px;
}

.self-assess {
  margin-top: 26px; border-top: 1px solid var(--line-2); padding-top: 11px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12px; color: var(--ink-2);
}
.self-assess label { display: flex; gap: 5px; align-items: center; }
.self-assess .box { width: 11px; height: 11px; border: 1px solid var(--line-2); border-radius: 2px; display: inline-block; }
.self-assess .more { margin-left: auto; color: var(--ink-3); }

.frac {
  display: inline-flex; flex-direction: column; vertical-align: middle;
  text-align: center; font-size: .88em; line-height: 1.18; margin: 0 .12em;
}
.frac > span:first-child { border-bottom: 1.1px solid currentColor; padding: 0 .32em; }
.frac > span:last-child { padding: 0 .32em; }

.score {
  margin: 20px auto 0; max-width: 880px; padding: 13px 18px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent); font-size: 14.5px; font-weight: 550;
}

/* answer key — teacher copy */
.key { margin-top: 30px; }
.key h2 {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  border-top: 2px solid var(--ink); padding-top: 12px; margin: 0 0 4px;
  display: flex; align-items: baseline; gap: 10px;
}
.key h2 span {
  font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px;
}
.key-sec {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  margin: 15px 0 4px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 3px;
}
.key-sec span { margin-left: auto; font-weight: 400; color: var(--ink-3); }
ol.keylist { list-style: none; counter-reset: k; margin: 0; padding: 0; font-size: 13.5px; }
ol.keylist > li {
  counter-increment: k; display: grid; grid-template-columns: 22px 1fr; gap: 9px;
  padding: 5px 0; border-bottom: 1px dotted var(--line); break-inside: avoid;
}
ol.keylist > li::before { content: counter(k) "."; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.keylist .a { font-weight: 600; }
.keylist .w { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; line-height: 1.5; }

.runfoot { display: none; }

/* reference sheets */
.refblock { margin-bottom: 20px; }
.refblock h3 { font-size: 14px; margin: 0 0 7px; font-weight: 640; }
table.ref { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.ref th, table.ref td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ref th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
table.ref td:first-child { font-weight: 600; white-space: nowrap; padding-right: 18px; }

footer { max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; color: var(--ink-3); font-size: 12px; }

/* ---------- print: A4, laid out like an exam paper ---------- */

@media print {
  @page { size: A4; margin: 15mm 16mm 18mm; }
  html, body { background: #fff; color: #000; font-size: 10.8pt; }
  .no-print, .toolbar, .crumb, .score, body > footer { display: none !important; }
  main { max-width: none; padding: 0; margin: 0; }
  .sheet { border: 0; border-radius: 0; padding: 0; max-width: none; background: #fff; }

  .paper-head { border-bottom: 1.6pt solid #000; padding-bottom: 7pt; }
  .paper-head h1 { font-size: 15pt; }
  .ph-sub { font-size: 10.5pt; color: #333; }
  .ph-topics, .ph-badges { color: #444; }
  .ph-badges .tot { color: #000; font-size: 11pt; }
  .paper-fields { color: #666; padding: 9pt 0 8pt; }
  .paper-fields span { border-bottom: .6pt solid #888; }
  .paper-howto { color: #222; border-left: 2pt solid #999; margin-bottom: 14pt; font-size: 9.6pt; }
  .paper-lead { color: #333; font-size: 9.8pt; margin: 9pt 0 13pt; }

  .sec { margin-bottom: 15pt; break-inside: auto; }
  .sec-h { break-after: avoid; page-break-after: avoid; border-bottom: .6pt solid #666; font-size: 11.6pt; }
  .sec-h .sec-m { color: #444; }
  .sec-note { color: #444; break-after: avoid; page-break-after: avoid; }

  ol.tasks > li { break-inside: avoid; page-break-inside: avoid; padding: 6pt 0; }
  .q { font-size: 10.8pt; line-height: 1.6; }
  .qm { border: .5pt solid #999; color: #444; }

  input.ans, textarea.ans { display: none; }
  .anslab { color: #666; }
  .ans-wrap::after { content: ''; display: block; flex: 1 1 60%; border-bottom: .6pt solid #888; height: 14pt; }
  .mc { font-size: 10.6pt; }
  .mc input { -webkit-appearance: none; appearance: none; width: 10pt; height: 10pt; border: .8pt solid #333; border-radius: 2pt; }
  .workbox {
    border: .6pt solid #aaa; height: calc(var(--wh, 78px) * 0.82);
    background-image: linear-gradient(#e2e2e2 .4pt, transparent .4pt), linear-gradient(90deg, #e2e2e2 .4pt, transparent .4pt);
  }
  .workbox > span { background: #fff; color: #888; }
  .lines div { border-bottom: .5pt solid #999; height: 20pt; }

  .self-assess { border-top: .6pt solid #888; color: #333; break-inside: avoid; }
  .self-assess .box { border: .7pt solid #333; }

  .key { break-before: page; page-break-before: always; margin-top: 0; }
  .key h2 { border-top: 1.6pt solid #000; }
  .key h2 span { border: .5pt solid #666; color: #444; }
  .key-sec { border-bottom: .5pt solid #bbb; color: #222; break-after: avoid; }
  ol.keylist > li { border-bottom: .4pt dotted #bbb; }
  li.right input.ans, li.wrong input.ans { background: none; }
  .mark { display: none; }

  /* running footer, repeated on every printed page */
  .runfoot {
    display: flex; position: fixed; bottom: -12mm; left: 0; right: 0;
    font-family: var(--sans); font-size: 7.6pt; color: #777;
    border-top: .4pt solid #ccc; padding-top: 3pt;
  }
  .runfoot span { margin-left: auto; letter-spacing: .08em; text-transform: uppercase; }

  table.ref { font-size: 9.6pt; }
  table.ref th, table.ref td { border-bottom: .4pt solid #ccc; padding: 3.5pt 10pt 3.5pt 0; }
  .refblock { break-inside: avoid; page-break-inside: avoid; margin-bottom: 13pt; }
  .refblock h3 { break-after: avoid; }
}

/* ---------- public library chrome ---------- */

.search {
  flex: 1 1 320px; min-width: 200px; max-width: 520px; font: inherit; font-size: 13.5px;
  padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 20px;
  background: var(--bg); color: var(--ink);
}
.search:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search::-webkit-search-cancel-button { cursor: pointer; }

.gradebar button.subj[aria-pressed="true"] { background: hsl(var(--hue) 45% 45%); border-color: hsl(var(--hue) 45% 45%); }
.gradebar button.subj:hover { border-color: hsl(var(--hue) 45% 48%); }

.brand em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.tolib { margin-left: auto; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.tolib:hover { color: var(--accent); }

.chip.pro { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.card.locked b { opacity: .78; }
.card.locked::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--panel) 72%, transparent));
}
.card { position: relative; }

.more { text-align: center; margin-top: 22px; }

.gate {
  max-width: 880px; margin: 22px auto 0; padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--accent-soft);
}
.gate h3 { margin: 0 0 6px; font-size: 16px; font-weight: 640; }
.gate p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 70ch; }
.gate .act { margin-top: 13px; display: inline-block; text-decoration: none; }

.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.plan.pro { border-color: var(--accent); }
.plan-h { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.plan-h b { font-size: 17px; font-weight: 640; }
.plan-h span { margin-left: auto; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.85; }

.empty { color: var(--ink-3); padding: 48px 0; text-align: center; }
.empty p { margin: 0 0 14px; }

@media print { .gate, .plan, .search, .more { display: none !important; } }

/* ---------- grouped catalogue cards ---------- */

.card.group { display: flex; flex-direction: column; }
.card.group b, .card.group .gt { font-weight: 600; font-size: 14.5px; margin-bottom: 3px; }
.card.group .gt { text-decoration: none; }
.card.group .gt:hover { color: hsl(var(--hue) 45% 45%); }
.card.group:hover { border-color: hsl(var(--hue) 45% 48%); }
.card.group .chips.meta { margin-top: 9px; }
.sheetlinks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sl {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  font-size: 12px; padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--bg);
}
.sl:hover { border-color: hsl(var(--hue) 45% 48%); color: hsl(var(--hue) 45% 42%); }
.sl.locked { opacity: .72; }
.sl .lk { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; }

/* explainers */
.sl.ex { border-color: hsl(var(--hue) 45% 48%); color: hsl(var(--hue) 45% 38%); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sl.ex { color: hsl(var(--hue) 50% 66%); } }
.topicnav {
  max-width: 880px; margin: 0 auto 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--ink-3);
}
.topicnav > span { margin-right: 4px; }
.topicnav .sl { --hue: 212; }
.refblock table.ref.steps td:first-child { white-space: normal; min-width: 90px; }

/* curriculum references */
.curline { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 9px 0 0; font-family: var(--sans); font-size: 11px; color: var(--ink-3); }
.curline > span:first-child { text-transform: uppercase; letter-spacing: .07em; margin-right: 3px; }
.curline .cur { border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; color: var(--ink-2); }
@media print { .curline .cur { border-color: #bbb; color: #333; } }

/* wide reference tables scroll inside their block on narrow screens instead of crushing */
.refblock { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  table.ref { min-width: 520px; font-size: 12.5px; }
  .sheet { padding: 22px 16px; }
  .paper-head { flex-direction: column; gap: 8px; }
  .ph-badges { margin-left: 0; text-align: left; }
}
@media print { .refblock { overflow: visible; } table.ref { min-width: 0; } }

/* the hidden attribute must win over the bar's own display rule */
.gradebar[hidden] { display: none; }
.tracks:empty { display: none; }
