/* Design carried over from the original Lemonade Stand demo. */
:root {
  --ink: #102b66;
  --navy: #09266c;
  --green: #0b7f53;
  --yellow: #ffce21;
  --purple: #7547cc;
  --line: #dce8f5;
  --muted: #56667f;
  --red: #a3341b;
  --amber: #8a5300;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(145deg, #eff7ff 0%, #f9fcff 50%, #edf9f3 100%) fixed;
  color: var(--ink);
  font: 16px/1.5 ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: #1a5fb4; }
h1, h2, h3 { color: var(--navy); }
small { color: var(--muted); }
main:focus { outline: none; }
:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }

main { max-width: 1240px; margin: auto; padding: 28px 24px 85px; }
.centre { text-align: center; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: absolute; left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header and footer */
header { background: #fff; border-bottom: 1px solid #e0eafa; box-shadow: 0 3px 18px #163d7110; position: sticky; top: 0; z-index: 3; }
.nav { max-width: 1240px; margin: auto; padding: 14px 26px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.brand { font-weight: 900; font-size: 20px; letter-spacing: -.7px; color: var(--navy); text-decoration: none; }
.brand span { background: #fff0a2; padding: 5px 9px; border-radius: 50%; margin-right: 6px; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { color: #17418b; font-weight: 750; text-decoration: none; padding: 7px 11px; border-radius: 10px; }
.nav nav a:hover { background: #eef5ff; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.profile { color: var(--green); font-weight: 800; }
.mini-btn { border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 8px 12px; font-weight: 750; color: #17418b; text-decoration: none; }
.footer { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.link { background: none; border: 0; padding: 4px; color: #1a5fb4; text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; background: var(--yellow); color: #082c68; border: 0; border-radius: 11px; padding: 12px 18px;
  box-shadow: 0 3px 0 #dba900; font-weight: 850; text-decoration: none; text-align: center; min-height: 44px;
}
.btn:hover { filter: brightness(.97); }
.btn.secondary { box-shadow: none; color: #15417e; background: #f6faff; border: 1px solid #d8e6f5; }
.btn[disabled] { background: #e8edf5; color: #68758c; box-shadow: none; cursor: not-allowed; filter: none; }

/* Shared surfaces */
.gatecard, .card, .panel, .dashbox, .metric {
  background: #fff; border: 1px solid #e0eaf7; border-radius: 21px; box-shadow: 0 10px 26px #173b7710;
}
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 800; color: #0d7557; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #1b6c9e; }
.notice { padding: 12px 16px; border-radius: 10px; background: #eaf4ff; color: #46597a; border: 1px solid #d5e7fb; margin: 15px 0; }
.notice.good { background: #e4f8ec; border-color: #b9e6cb; color: var(--ink); font-weight: 700; }
.hint { font-size: 13px; color: var(--muted); }
.error { color: var(--red); font-weight: 700; }
.progress { height: 7px; background: #e2ecf6; border-radius: 10px; margin: 12px 0; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, #15aa76, #49ca90); border-radius: 10px; transition: width .3s; }
.progress.low > div { background: #d58a35; }
.crumb { display: inline-block; color: var(--green); font-weight: 800; text-decoration: none; margin-bottom: 18px; }

/* Welcome */
.gateway { max-width: 1180px; margin: 15px auto; }
.gateway.small { max-width: 530px; }
.gateway h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -2px; margin: 10px 0; }
.gateway.small h1, .notes-page h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; }
.welcome-banner {
  background: linear-gradient(105deg, #d9efff, #fff4c6); border-radius: 28px; padding: 32px 34px; display: grid;
  grid-template-columns: 1.1fr .9fr; align-items: center; gap: 15px; min-height: 290px; box-shadow: 0 14px 35px #234a7a12;
}
.welcome-banner h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.03; }
.welcome-banner p { font-size: 18px; color: #48617e; max-width: 490px; }
.welcome-art { min-height: 210px; display: flex; align-items: flex-end; justify-content: center; }
.welcome-art .stand-img { height: 250px; width: auto; }
/* Alex and Sam stand either side of the stall, slightly in front of it. */
.welcome-art .kid { position: relative; z-index: 1; font-size: 92px; line-height: 1; margin: 0 -50px; filter: drop-shadow(0 8px 2px #466b9230); }
.welcome-art .kid img { display: block; height: 140px; width: auto; }
.gategrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.gatecard { padding: 27px; text-align: center; transition: transform .2s; }
.gatecard:hover, .card:not(.locked):hover { transform: translateY(-3px); }
.gatecard .symbol { font-size: 48px; background: #eaf5ff; border-radius: 50%; width: 85px; height: 85px; display: grid; place-items: center; margin: auto; }
.gatecard:nth-child(2) .symbol { background: #e2f8ee; }
.gatecard:nth-child(3) .symbol { background: #f0e9ff; }
.gatecard h2 { margin: 10px 0; font-size: 22px; }
.gatecard p { color: var(--muted); min-height: 54px; }
.gatecard .btn { width: 100%; margin-top: 12px; }
.gatecard:nth-child(2) .btn { background: var(--green); color: #fff; box-shadow: 0 3px 0 #06603d; }
.gatecard:nth-child(3) .btn { background: var(--purple); color: #fff; box-shadow: 0 3px 0 #5730a3; }

/* Accounts */
.mini-btn.strong { background: var(--yellow); border-color: #dba900; color: #082c68; }
.btn.danger { background: #fff0ec; color: var(--red); border: 1.5px solid #ce795e; box-shadow: none; }
label.tick { display: block; font-weight: 600; margin: 4px 0 12px; }
label.tick input { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
label.tick small { display: block; margin-left: 28px; }
.recovery-code { font: 800 30px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 2px; text-align: center; background: #fffbea; border: 3px dashed #e0a800; border-radius: 16px; padding: 22px 12px; margin: 18px 0; color: var(--navy); }
.ticks { padding-left: 1.2em; }
.gateway.small h2 { font-size: 20px; margin: 28px 0 6px; }
.gateway.small form { margin-bottom: 8px; }
#sync-status { font-weight: 700; }

/* Forms */
label { font-weight: 700; }
.field { display: block; padding: 13px; border: 1.5px solid #9fb6d1; border-radius: 10px; width: 100%; margin: 8px 0 14px; color: var(--ink); background: #fff; }
.field:focus { outline: 3px solid #d9ecff; border-color: #3d91d1; }
.field.code { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.filter .field { display: inline-block; width: auto; margin: 0 0 0 6px; padding: 9px 12px; }

/* Course home */
.hero {
  background: linear-gradient(120deg, #d9efff 0%, #d3f5e9 100%); border-radius: 25px; padding: 42px; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; overflow: hidden; min-height: 360px; box-shadow: 0 14px 35px #234a7a15;
}
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.03; letter-spacing: -2px; margin: 14px 0; color: #0c2d70; }
.hero p { color: #355875; max-width: 490px; }
.hero .btn { margin-top: 13px; }
.art { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.art .stand-img { position: relative; height: 290px; width: auto; filter: drop-shadow(0 12px 6px #234a7a25); }
.sun { width: 130px; height: 130px; background: var(--yellow); border-radius: 50%; position: absolute; right: 10px; top: -10px; }
.illustrated-banner {
  background: linear-gradient(115deg, #c9e9ff, #f9e9b4); border-radius: 25px; padding: 20px 25px; display: flex;
  justify-content: space-between; align-items: center; gap: 20px; margin: 18px 0 25px; overflow: hidden;
}
.illustrated-banner h2 { font-size: 30px; line-height: 1.12; margin: 0 0 7px; }
.illustrated-banner p { margin: 0; color: #496480; }
.illustrated-banner .people { font-size: 70px; white-space: nowrap; letter-spacing: -10px; padding-right: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin: 36px 0 16px; }
.section-head h2 { font-size: 28px; letter-spacing: -1px; margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.progress-label { font-size: 13px; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px; display: flex; flex-direction: column; min-height: 240px; transition: transform .2s; overflow: hidden; position: relative; }
.card-icon { position: absolute; right: 18px; top: 24px; font-size: 42px; }
.card h3 { font-size: 23px; line-height: 1.15; margin: 15px 0 8px; max-width: 80%; color: #0c2d70; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.card .btn { margin-top: auto; width: 100%; }
.card.locked { background: #f6f8fc; box-shadow: none; min-height: 170px; }
.card.locked h3 { color: #5d6b82; }
.card.locked .tag { color: #5d6b82; }
.card.locked::after { content: "🔒"; position: absolute; right: 18px; top: 20px; opacity: .45; }

/* Lesson */
.lesson-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); gap: 22px; align-items: start; }
.panel { padding: 28px; }
.panel h1 { font-size: 34px; line-height: 1.1; letter-spacing: -1px; margin: 10px 0 15px; }
.panel h2 { font-size: 19px; margin: 22px 0 8px; }
.story {
  background: linear-gradient(135deg, #d9efff, #fff0bb); border: 1px solid #d6e8fa; border-radius: 16px; min-height: 200px;
  padding: 26px 28px; margin: 20px 0; display: flex; align-items: center; gap: 22px; position: relative; overflow: hidden;
}
.story::after { content: "🍋"; position: absolute; right: 15px; bottom: 8px; font-size: 45px; }
.story .face { flex: none; display: flex; align-items: flex-end; font-size: 104px; line-height: 1; filter: drop-shadow(0 6px 2px #416c9622); }
/* Character pictures are sized in em so they follow the emoji size at every breakpoint. */
.story .face img { display: block; height: 1.5em; width: auto; margin: -12px 0 -26px; }
.people img { height: 1.5em; width: auto; vertical-align: bottom; margin: 0 6px; }
.people { display: flex; align-items: flex-end; justify-content: center; letter-spacing: 0 !important; }
.speaker { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 900; color: #1b5a85; }
.speech { font-size: 23px; line-height: 1.3; font-weight: 750; color: #0d3271; max-width: 500px; margin: 4px 0 0; padding-right: 40px; }
/* A warning that a module uses invented figures. Deliberately loud. */
.story-note { background: #fff3cd; border: 2px dashed #b7791f; border-radius: 12px; padding: 12px 16px; margin: 0 0 4px; font-size: 15px; color: #5c3d00; }
.story-note strong { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: #5c3d00; }
.explainer { font-size: 17px; line-height: 1.65; color: #3b526c; }
.actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.recap li { margin-bottom: 6px; }

.statement { width: 100%; border: 1px solid #dbe7f5; border-radius: 15px; border-collapse: separate; border-spacing: 0; overflow: hidden; margin: 15px 0; }
.statement caption { background: #e5f3ff; color: #123f85; padding: 13px 16px; font-weight: 900; text-align: left; border: 1px solid #dbe7f5; border-bottom: 0; border-radius: 15px 15px 0 0; }
.statement th, .statement td { padding: 9px 16px; border-top: 1px solid var(--line); font-weight: 400; text-align: left; }
.statement td { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.statement tr.total th, .statement tr.total td { background: #e8f7f0; font-weight: 900; }
.statement tr.changed th, .statement tr.changed td { background: #fff6d1; }
.statement tr.group th { background: #f4f8fd; color: #35608f; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 6px 16px; }
.statement.compare { min-width: 420px; }
.statement.compare thead th, .statement.compare thead td { background: #f4f8fd; color: #35608f; font-size: 13px; font-weight: 800; text-align: right; }
.statement.compare thead td { text-align: left; }
.delta { font-size: 12px; font-weight: 800; color: var(--amber); white-space: nowrap; }
.eq { background: #e2f2ff; color: #0b4c9a; border: 1px solid #b9d9f6; padding: 16px; border-radius: 12px; text-align: center; font-weight: 900; font-size: 18px; }
.eq small { display: block; font-size: 12px; font-weight: 700; color: #35608f; }
.side h2:first-child { margin-top: 0; }
.side p { color: var(--muted); font-size: 14px; }
.page-count { color: var(--muted); font-size: 13px; }
.before-note { background: #fffbea; border: 1.5px dashed #b7791f; border-radius: 12px; padding: 10px 12px; font-size: 14px; color: #5c3d00 !important; }
.hidden-sheet { background: #f6f8fc; border: 1px dashed #b4c3d8; border-radius: 15px; padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; margin: 15px 0; }
.hidden-sheet span { display: block; font-size: 40px; }

/* Introduction: a ring round the part of the screen being explained */
.spot-story .story, .spot-explain .panel > .explainer, .spot-sheet .side .statement, .spot-balance .side .eq,
.spot-progress .side .progress, .spot-progress .panel > .actions {
  outline: 4px solid #ffb300; outline-offset: 5px; border-radius: 14px; box-shadow: 0 0 0 12px #ffb30026;
}
.spot-explain .panel > .explainer { padding: 6px 10px; }
.notice.tour { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fffbea; border-color: #f2d66b; color: var(--ink); }

/* Activities: predict, sort and fill-in screens (not scored) */
.activity { background: #f7fbff; border: 2px dashed #9cc5ee; border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.activity h2 { font-size: 20px; margin: 6px 0 12px; }
.choice.picked { background: #eaf4ff; border-color: #1a5fb4; }
.choice.picked .mark { color: #1a5fb4; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.sort-list { list-style: none; margin: 0; padding: 0; }
.sort-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sort-list li:last-child { border-bottom: 0; }
.sort-list small { grid-column: 1 / -1; }
.sort-list .slip { color: var(--amber); font-weight: 700; }
.bins { display: flex; gap: 8px; }
.bins .mini-btn { min-width: 72px; min-height: 44px; cursor: pointer; }
.bins .mini-btn:hover { background: #eef5ff; border-color: #519bdc; }
.fill-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 700; }
.fill-row label { min-width: 170px; }
.fill-row input { width: 110px; padding: 10px 12px; border: 1.5px solid #9fb6d1; border-radius: 10px; color: var(--ink); font-weight: 800; }
.fill-row input[aria-invalid] { border-color: #ce795e; background: #fff0ec; }
.fill-row .mark.ok { color: var(--green); }
.fill-row .mark.bad { color: var(--red); font-size: 13px; }
.fill-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.unknown { display: inline-block; min-width: 2.2em; text-align: center; background: #fff3cd; border: 1.5px dashed #b7791f; border-radius: 8px; color: #5c3d00; }

.discussion { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin: 12px 0 4px; }
.says { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.says + .says { border-top: 1px solid var(--line); }
.says p { margin: 0; }
.mini-face { flex: none; font-size: 34px; line-height: 1; }
.mini-face img { display: block; height: 52px; width: auto; }

/* Questions */
.quiz { margin: 18px 0; }
.choice {
  display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1.5px solid #9fb6d1;
  border-radius: 12px; padding: 14px 16px; margin: 9px 0; color: #12336f; font-weight: 600; min-height: 50px;
}
.choice:hover:not([disabled]) { background: #f2f9ff; border-color: #519bdc; }
.choice[disabled] { cursor: default; }
.choice.correct { background: #e4f8ec; border-color: #2d985a; }
.choice.wrong { background: #fff0ec; border-color: #ce795e; color: #5d6b82; }
.mark { font-weight: 900; }
.choice.correct .mark { color: var(--green); }
.choice.wrong .mark { color: var(--red); }
.feedback { font-size: 15px; font-weight: 650; margin-top: 12px; padding: 12px 16px; border-radius: 12px; }
.feedback.good { color: #0b5c3d; background: #e4f8ec; }
.feedback.retry { color: #8a3d1f; background: #fff0ec; }

/* Topic lists and pills */
.dashbox { padding: 22px; }
.dashbox h2 { margin: 0 0 12px; font-size: 21px; }
.dashbox h3 { margin: 18px 0 4px; font-size: 16px; }
.mini { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.pill { display: inline-block; background: #f2f6eb; padding: 5px 11px; border-radius: 30px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.pill.secure { background: #e4f8ec; color: #0b5c3d; }
.pill.practice { background: #fff3d6; color: var(--amber); }
.pill.none { background: #eef2f7; color: var(--muted); }

/* Achievements and certificate */
.badges { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.badge { background: #f6f8fc; border: 1px solid #e0eaf7; border-radius: 21px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.badge-icon { font-size: 46px; filter: grayscale(1); opacity: .45; }
.badge em { font-style: normal; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.badge.got { background: #fffbea; border-color: #f2d66b; color: var(--ink); box-shadow: 0 10px 26px #173b7710; }
.badge.got .badge-icon { filter: none; opacity: 1; }
.badge.got em { color: var(--green); }
.certificate { background: linear-gradient(135deg, #fffbea, #eaf6ff); border: 6px double #e0a800; border-radius: 25px; padding: 34px 24px; text-align: center; margin-bottom: 20px; }
.certificate ul { list-style: none; padding: 0; font-weight: 800; }
.cert-stand .stand-img { height: 150px; width: auto; }
.cert-brand { font-weight: 900; margin: 0; }
.cert-line { font-style: italic; }

/* Teacher */
.teacher-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.teacher-head h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.5px; margin: 6px 0; line-height: 1.1; }
.teacher-head p { margin: 0; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.metric { padding: 20px; }
.metric strong { display: block; font-size: 30px; color: #0d3d89; }
.dashgrid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; margin-bottom: 18px; }
.teacher-shell > .dashbox { margin-bottom: 18px; }
.barrow { margin: 14px 0; }
.barrow .pct { float: right; font-weight: 800; }
.barrow .progress { margin: 5px 0 2px; }
.hard-list { padding-left: 1.2em; margin: 0 0 18px; }
.hard-list li { margin-bottom: 8px; font-size: 14px; }
.hard-list b { display: block; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.table-head h2 { margin: 0; }
.scroll { overflow-x: auto; }
.pupiltable { width: 100%; border-collapse: collapse; font-size: 14px; }
.pupiltable td, .pupiltable th { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; color: #344f72; }
.pupiltable thead th { background: #edf6ff; color: #194581; }
.pupiltable tbody th { font-weight: 800; white-space: nowrap; }
.flag { background: #fff3d6; color: var(--amber); border-radius: 30px; padding: 2px 8px; font-size: 11px; font-weight: 800; }

/* Teacher notes */
.notes-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.note-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.note-tabs a { background: #e9f3ff; border: 1px solid #cbdff5; border-radius: 9px; padding: 8px 12px; color: #17427e; font-weight: 750; text-decoration: none; }
.note-tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.notes h2 { font-size: 16px; margin: 16px 0 4px; }
.notes ul, .notes ol { padding-left: 1.2em; margin: 0 0 8px; }
.notes li { margin-bottom: 4px; }
.notes p { margin: 0 0 8px; }
.notes-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

@media (max-width: 850px) {
  .welcome-banner, .hero, .lesson-wrap, .dashgrid, .notes-cols { grid-template-columns: 1fr; }
  .welcome-art { min-height: 180px; }
  .gategrid, .grid { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .hero { padding: 27px; }
  .art .stand-img { height: 240px; }
  .section-head { display: block; }
}

@media (max-width: 580px) {
  main { padding: 16px 13px 55px; }
  .nav { padding: 12px; }
  .brand { font-size: 16px; }
  .gategrid, .grid { grid-template-columns: 1fr; }
  .welcome-banner { padding: 24px; }
  .panel { padding: 18px; }
  .panel h1 { font-size: 28px; }
  .story { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; }
  .story .face { font-size: 84px; }
  .story .face img { margin: 0; }
  .speech { font-size: 21px; }
  .illustrated-banner .people { font-size: 43px; }
  .illustrated-banner h2 { font-size: 23px; }
  .art .stand-img, .welcome-art .stand-img { height: 190px; }
  .welcome-art .kid { margin: 0 -36px; }
  .welcome-art .kid img { height: 104px; }
  .metric { padding: 12px; }
  .metric strong { font-size: 22px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  .no-print { display: none !important; }
  body { background: #fff; font-size: 9.5pt; line-height: 1.35; }
  main { max-width: none; padding: 0; }
  .gateway { margin: 0; max-width: none; }
  .panel, .dashbox { border: 0; box-shadow: none; padding: 0; }
  .notes h1 { font-size: 17pt; margin: 2pt 0 6pt; }
  .notes h2 { font-size: 10pt; margin: 8pt 0 2pt; }
  .notes-cols { grid-template-columns: 1fr 1fr; gap: 8mm; }
  .pupiltable { font-size: 8.5pt; }
  .pupiltable td, .pupiltable th { padding: 3px 6px; }
  .certificate { margin-top: 30mm; font-size: 14pt; }
}
