/* Home page, handout and instructor notes: readable on screen, A4 when printed. */
body { font: 17px/1.55 var(--sans); background: #f4f6f8; }
.page { max-width: 820px; margin: 0 auto; padding: 40px 28px 80px; background: #fff; min-height: 100vh; }
.toolbar { max-width: 820px; margin: 0 auto; padding: 14px 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar .btn { min-height: 42px; padding: 8px 18px; background: var(--navy); color: #fff; border: 0; border-radius: 8px; font-weight: 600; }
.toolbar .btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line-strong); }
.toolbar .small { color: var(--muted); font-size: 14px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.15; color: var(--navy); margin: 0 0 8px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.25; color: var(--navy); margin: 40px 0 10px; }
h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 22px 0 6px; }
p { margin: 0 0 10px; }
.meta { color: var(--muted); margin: 0 0 24px; }
.q { font-weight: 600; }
.source { font-size: 13px; color: var(--faint); margin: 6px 0 12px; }
.chart-h { font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
.chart { max-width: 100%; height: auto; }
.lc { font-size: 14px; }
.texts { padding-left: 20px; margin: 8px 0 12px; }
.texts li { margin: 0 0 6px; }
table.data { border-collapse: collapse; font-size: 14px; margin: 8px 0 4px; }
table.data th, table.data td { padding: 4px 12px 4px 0; text-align: right; border-bottom: 1px solid var(--line); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { font-weight: 600; color: var(--muted); vertical-align: bottom; }
table.data tr.focus td { font-weight: 700; color: var(--navy); }
.numbers-d { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 8px 0 12px; }
.numbers-d b { display: block; font-family: var(--serif); font-size: 30px; color: var(--navy); }
.sentences-d { padding-left: 22px; }
.sentences-d li { margin: 0 0 8px; }
.h-pair { margin: 0 0 18px; }
.foot { margin-top: 40px; font-size: 13px; color: var(--muted); }
.choice-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 6px 0 10px; }
.choice-cols .role-name { font-weight: 700; color: var(--navy); margin: 0 0 4px; font-size: 14px; }
/* notes */
.plan { border-collapse: collapse; width: 100%; font-size: 15px; margin: 10px 0 20px; }
.plan td, .plan th { text-align: left; padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan th { color: var(--muted); font-weight: 600; }
.plan td.t { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.step { margin: 26px 0 0; }
.step-h { display: flex; gap: 12px; align-items: baseline; margin: 0 0 4px; }
.step-h .n { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--navy); min-width: 26px; }
.step-h .t { font-weight: 700; font-size: 18px; color: var(--navy); }
.step-h .k { font-size: 13px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.note-s { margin: 0 0 8px 38px; }
.note-s b { color: var(--navy); }
/* home */
.sem { border-top: 1px solid var(--line); padding: 22px 0; }
.sem h2 { margin: 0 0 4px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.row .btn, .row a.btn { display: inline-block; min-height: 44px; padding: 10px 18px; border-radius: 8px; background: var(--navy); color: #fff; border: 0; font-weight: 600; text-decoration: none; font-size: 16px; }
.row .btn.ghost, .row a.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line-strong); }
.recent { list-style: none; padding: 0; margin: 8px 0 0; }
.recent li { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.recent .code { font-weight: 700; letter-spacing: 0.06em; min-width: 60px; }
.err { color: #b42318; }
/* login and logout */
.login { display: grid; gap: 10px; max-width: 360px; margin: 10px 0 30px; }
.login label { font-weight: 600; color: var(--navy); }
.login input { font: inherit; font-size: 18px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; }
.login .btn { min-height: 46px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; }
.login .btn:disabled { opacity: 0.6; }
.out { float: right; background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
@media print {
  @page { size: A4; margin: 15mm 16mm 16mm; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  .toolbar { display: none; }
  .page { max-width: none; padding: 0; min-height: 0; }
  h1 { font-size: 20pt; }
  h2 { font-size: 14pt; margin-top: 18pt; break-after: avoid; }
  h3 { font-size: 11pt; break-after: avoid; }
  .h-pair, .step, .lc, svg, table, blockquote { break-inside: avoid; }
  h2 + p, h2 + .meta { break-before: avoid; }
  .source { font-size: 8.5pt; }
  a { color: inherit; text-decoration: none; }
}
