/* Printable A4 sheets (join poster, teacher quick-start). Shown on screen as a
   page on a grey desk; printed edge to edge on A4. */
:root {
  --brand: #086bb5;
  --brand-lt: #e7f1fa;
  --text: #1d1f23;
  --muted: #5b616b;
  --border: #d3d7dd;
  --gold: #b07f0c;
  --green: #2b8a3e;
  --font: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #e9eaed; color: var(--text); font-family: var(--font); line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Bar above the sheet (screen only) */
.print-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 210mm; margin: 16px auto 0; padding: 0 16px; font-size: 15px; }
.print-bar span { flex: 1; color: var(--muted); min-width: 12em; }
.print-bar a { color: var(--brand); }
.btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff !important; font: 700 15px var(--font); text-decoration: none; cursor: pointer; }
.btn.ghost { background: #fff; color: var(--brand) !important; }

.sheet { width: 210mm; min-height: 297mm; margin: 16px auto 32px; padding: 14mm 15mm; background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.12); display: flex; flex-direction: column; }
@media screen and (max-width: 820px) {
  .sheet { width: auto; min-height: 0; margin: 12px 16px 24px; padding: 20px; }
}
@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .print-bar { display: none; }
  .sheet { margin: 0; box-shadow: none; width: 210mm; height: 297mm; overflow: hidden; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
}

/* ── Join poster ── */
.poster-head { display: flex; align-items: center; gap: 7mm; padding-bottom: 7mm; border-bottom: 2px solid var(--brand-lt); }
.poster-head .logo { width: 30mm; height: 30mm; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.poster-head h1 { margin: 0; font-size: 46pt; line-height: 1; color: var(--brand); letter-spacing: -.01em; }
.poster-head .sub { margin: 3mm 0 0; font-size: 16pt; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.step { flex: 1; display: grid; grid-template-columns: 18mm 1fr 52mm; align-items: center; gap: 6mm; padding: 6mm 0; border-bottom: 1px solid var(--border); }
.step .num { width: 18mm; height: 18mm; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28pt; font-weight: 800; }
.step h2 { margin: 0 0 2mm; font-size: 25pt; line-height: 1.15; }
.step p { margin: 0; font-size: 15pt; color: var(--muted); }
.step p strong { color: var(--text); }
.url { color: var(--brand); white-space: nowrap; }
.step .qr { width: 42mm; height: 42mm; justify-self: center; }
.step .phone { width: 46mm; max-height: 70mm; object-fit: cover; object-position: top; justify-self: center; border: 1px solid var(--border); border-radius: 10px; }

.poster-foot { padding-top: 6mm; }
.poster-foot p { margin: 0 0 2mm; font-size: 13pt; }
.poster-foot .small { font-size: 11pt; color: var(--muted); }

@media screen and (max-width: 820px) {
  .poster-head { flex-direction: column; align-items: flex-start; }
  .poster-head h1 { font-size: 34px; }
  .poster-head .sub { font-size: 17px; }
  .step { grid-template-columns: 44px 1fr; }
  .step .num { width: 44px; height: 44px; font-size: 22px; }
  .step h2 { font-size: 22px; }
  .step p { font-size: 16px; }
  .step .qr, .step .phone { grid-column: 2; justify-self: start; width: 160px; }
}

/* ── Teacher quick start ── */
.qs { font-size: 10.5pt; }
.qs-head { display: flex; align-items: center; gap: 5mm; padding-bottom: 4mm; border-bottom: 2px solid var(--brand-lt); margin-bottom: 4mm; }
.qs-head .logo { width: 17mm; height: 17mm; object-fit: contain; flex-shrink: 0; }
.qs-head h1 { margin: 0; font-size: 26pt; line-height: 1.05; color: var(--brand); }
.qs-head .sub { margin: 1.5mm 0 0; font-size: 12pt; color: var(--muted); }
.qs h2 { margin: 0 0 2mm; font-size: 13.5pt; color: var(--text); }
.qs section { margin-bottom: 4.5mm; }
.qs b { font-weight: 700; }
.qs-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.qs-steps li { counter-increment: s; position: relative; padding: 0 0 2mm 10mm; line-height: 1.4; }
.qs-steps li::before { content: counter(s); position: absolute; left: 0; top: -.5mm; width: 7mm; height: 7mm; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 11pt; display: flex; align-items: center; justify-content: center; }
.bar-fig { position: relative; border: 1px solid var(--border); border-radius: 6px; overflow: visible; margin-bottom: 5mm; }
.bar-fig img { display: block; width: 100%; border-radius: 6px; }
.bar-fig .mk { position: absolute; top: 100%; transform: translate(-50%, 1mm); width: 5.2mm; height: 5.2mm; border-radius: 50%; background: #e8590c; color: #fff; font-size: 8.5pt; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bar-key { margin: 0; padding: 0; list-style: none; counter-reset: k; columns: 2; column-gap: 8mm; }
.bar-key li { counter-increment: k; position: relative; padding: 0 0 1.4mm 7mm; break-inside: avoid; line-height: 1.35; }
.bar-key li::before { content: counter(k); position: absolute; left: 0; top: .2mm; width: 4.6mm; height: 4.6mm; border-radius: 50%; background: #e8590c; color: #fff; font-size: 7.5pt; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.qs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.qs-cols ul { margin: 0; padding-left: 4.5mm; }
.qs-cols li { margin-bottom: 1.3mm; line-height: 1.35; }
.qs .note { margin: 2mm 0 0; color: var(--green); font-weight: 700; }
.qs-tips { background: var(--brand-lt); border-radius: 10px; padding: 3.5mm 5mm; }
.qs-tips p { margin: 0 0 1.5mm; line-height: 1.35; }
.qs-tips p:last-child { margin: 0; }
.qs-foot { margin-top: auto; padding-top: 4mm; color: var(--muted); font-size: 10pt; }

@media screen and (max-width: 820px) {
  .qs { font-size: 16px; }
  .qs-head h1 { font-size: 28px; }
  .qs-cols { grid-template-columns: 1fr; gap: 0; }
  .bar-fig { overflow-x: auto; }
  .bar-fig img { min-width: 640px; }
  .bar-fig .mk { display: none; }
  .bar-key { columns: 1; }
}

/* ── Text documents (IT checklist, data pack, training notes) ── */
.doc { font-size: 10.5pt; }
.doc section { margin-bottom: 5mm; }
.doc h2 { margin: 0 0 2mm; font-size: 13.5pt; color: var(--brand); }
.doc h3 { margin: 3mm 0 1.5mm; font-size: 11.5pt; }
.doc p { margin: 0 0 2mm; line-height: 1.45; }
.doc ul, .doc ol { margin: 0 0 2mm; padding-left: 5mm; }
.doc li { margin-bottom: 1.2mm; line-height: 1.4; }
.doc-summary { background: var(--brand-lt); border-radius: 10px; padding: 3.5mm 5mm; margin-bottom: 5mm; }
.doc-summary p { margin: 0; }
.doc-warn { border-left: 4px solid #e8590c; background: #fdf1ea; border-radius: 6px; padding: 3mm 4mm; margin-bottom: 2.5mm; }
.doc-warn p { margin: 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; margin: 1mm 0 2mm; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 1.6mm 2.4mm; border-bottom: 1px solid var(--border); line-height: 1.35; }
.doc-table th { background: #f4f5f7; font-weight: 700; }
.doc-table td:first-child { font-weight: 700; word-break: break-word; }
.doc-steps li { padding-left: 1mm; }
.doc .fill { display: inline-block; min-width: 45mm; border-bottom: 1px solid #9aa0a8; height: 1.1em; vertical-align: bottom; }
@media screen and (max-width: 820px) {
  .doc { font-size: 16px; }
  .doc-table { font-size: 14px; display: block; overflow-x: auto; }
}
.doc-table th:first-child { width: 42%; }
.doc-table th:last-child { width: 18%; }
.doc-table td:first-child { word-break: normal; overflow-wrap: anywhere; }
.doc-part { padding-bottom: 3mm; border-bottom: 2px solid var(--brand-lt); margin-bottom: 4mm; }
.doc-part h1 { margin: 0; font-size: 20pt; color: var(--brand); line-height: 1.1; }
.doc-part .sub { margin: 1.5mm 0 0; color: var(--muted); font-size: 11pt; }
.doc-table.form td:first-child { width: 38%; }
.doc-table.form td { padding-top: 2.6mm; padding-bottom: 2.6mm; }
.doc-table.risk td:first-child { font-weight: 600; width: 34%; }
.doc-table.risk td:last-child { width: 14%; }
.checks { list-style: none; padding-left: 0; }
.checks li { position: relative; padding-left: 7mm; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5mm; width: 3.6mm; height: 3.6mm; border: 1.5px solid var(--muted); border-radius: 2px; }
.doc-note { margin-top: auto !important; font-size: 9pt; color: var(--muted); }
.doc .hint { font-size: 9.5pt; color: var(--muted); font-style: italic; }
.letter { font-size: 11pt; }
.letter p { line-height: 1.5; }
@media print { .pack .doc { font-size: 10pt; } .pack .doc section { margin-bottom: 3.5mm; } .pack .doc-table td { padding-top: 1.3mm; padding-bottom: 1.3mm; } }
.doc-table.faq td:first-child { width: 34%; }
.doc-table.plan th:first-child { width: 17%; }
.doc-table.plan th:nth-child(2) { width: 11%; }
.doc-table.plan th:last-child { width: auto; }
.doc-table.plan td:first-child { white-space: nowrap; }
