/* Pages outside the workspace: dashboards, lessons, marking, admin. */

.greeting { margin-bottom: 1.75rem; }
.greeting h1 { margin-bottom: .25rem; }
.greeting p { color: var(--graphite); margin: 0; }

.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* Course rows (not cards): a spine like the edge of a textbook */
.course {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 0 1rem; align-items: center;
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius-m);
  padding: 1rem 1.1rem 1rem 0; margin-bottom: .9rem; overflow: hidden;
}
.course-spine { align-self: stretch; background: var(--spine, var(--biro)); margin: -1rem 0; }
.course h3 { margin: 0 0 .2rem; }
.course h3 a { color: var(--ink); text-decoration: none; }
.course h3 a:hover { text-decoration: underline; }
.course p { margin: 0; color: var(--graphite); font-size: var(--step--1); }
.course-meta { display: flex; align-items: center; gap: .75rem; font-size: var(--step--1); color: var(--graphite); }

.lesson-list { list-style: none; margin: .75rem 0 0; padding: 0; grid-column: 2 / -1; }
.lesson-list li { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; border-top: 1px dashed var(--rule); font-size: var(--step--1); }
.lesson-list li a { font-weight: 700; }
.lesson-list .grow { flex: 1; }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; flex: none; }
.tick.done { background: var(--success); border-color: var(--success); color: #fff; }
.tick.part { border-color: var(--biro); background: conic-gradient(var(--biro) var(--p, 50%), transparent 0); }
.tick svg { width: 12px; height: 12px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .75rem 1.1rem; border-top: 1px solid var(--rule); display: flex; gap: .75rem; align-items: center; }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { color: var(--graphite); font-size: var(--step--1); }
.list a.title { font-weight: 700; color: var(--ink); text-decoration: none; }
.list a.title:hover { text-decoration: underline; }

.feedback-item { border-left: 3px solid var(--margin); padding-left: .85rem; }
.feedback-item p { margin: .25rem 0 0; font-size: var(--step--1); }

/* ---------- lesson page ---------- */
.lesson-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-nav { display: none; } }
.lesson-nav { position: sticky; top: 76px; font-size: var(--step--1); }
.lesson-nav h2 { font-size: var(--step-0); margin-bottom: .75rem; }
.lesson-nav h3 { font-size: .8125rem; color: var(--graphite); margin: 1rem 0 .4rem; }
.lesson-nav ol { list-style: none; margin: 0; padding: 0; }
.lesson-nav li a { display: flex; gap: .5rem; align-items: center; padding: .35rem .5rem; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.lesson-nav li a:hover { background: var(--sheet); }
.lesson-nav li a[aria-current="page"] { background: var(--sheet); font-weight: 700; box-shadow: inset 3px 0 0 var(--margin); }

.lesson { max-width: 780px; }
.lesson-head { margin-bottom: 1.5rem; }
.lesson-head .crumbs { font-size: var(--step--1); color: var(--graphite); margin-bottom: .5rem; }
.lesson-head h1 { margin-bottom: .5rem; }
.lesson-head .meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--graphite); font-size: var(--step--1); }
.objectives { margin: 1.25rem 0 0; }
.objectives h2 { font-size: var(--step-0); margin-bottom: .35rem; }
.objectives ul { margin: 0; padding-left: 1.2rem; }

.sheet { line-height: 1.6rem; }
.sheet > * + * { margin-top: 1.6rem; }
.sheet p, .sheet li { max-width: 68ch; }
.sheet h3 { font-size: var(--step-1); margin: 0 0 .5rem; line-height: 1.6rem; }

.fig { margin: 0; }
.fig svg { display: block; width: 100%; height: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .5rem; }
.fig figcaption { font-size: var(--step--1); color: var(--graphite); margin-top: .4rem; }

.codeblock { margin: 0; background: var(--slate); color: var(--slate-text); border-radius: var(--radius-s); overflow: hidden; }
.codeblock .file { font: .75rem var(--mono); color: var(--slate-dim); padding: .4rem .9rem; border-bottom: 1px solid var(--slate-3); }
.codeblock pre { margin: 0; padding: .8rem .9rem; overflow-x: auto; font-size: .8125rem; line-height: 1.6; }
.codeblock + .caption, .codecap { font-size: var(--step--1); color: var(--graphite); margin-top: .4rem; }

.callout { border-left: 4px solid var(--highlight); background: color-mix(in srgb, var(--highlight) 18%, var(--sheet)); padding: .75rem 1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.callout h4 { margin: 0 0 .25rem; font-size: var(--step--1); }
.callout p:last-child { margin-bottom: 0; }

.activity { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--radius-m); padding: 1rem 1.15rem; position: relative; }
.activity-label { font-size: .8125rem; font-weight: 700; color: var(--graphite); margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.activity-label .tick { width: 18px; height: 18px; }
.activity .q { font-weight: 700; margin-bottom: .75rem; }
.options { display: grid; gap: .45rem; margin-bottom: .75rem; }
.option { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem .7rem; border: 1.5px solid var(--rule-strong); border-radius: var(--radius-s); cursor: pointer; font-weight: 400; font-size: var(--step-0); }
.option:hover { border-color: var(--ink); }
.option input { margin-top: .35em; }
.option.right { border-color: var(--success); background: var(--success-bg); }
.option.wrong { border-color: var(--danger); background: var(--danger-bg); }
.result { font-size: var(--step--1); margin-top: .5rem; }
.result.ok { color: var(--success); }
.result.no { color: var(--danger); }
.task-card { border-color: var(--biro); box-shadow: 6px 6px 0 color-mix(in srgb, var(--biro) 18%, transparent); }
.task-card h3 { margin-top: 0; }
.task-card .actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

/* Teacher-only notes inside a lesson */
.tnote { border: 1.5px dashed var(--margin); border-radius: var(--radius-s); padding: .75rem 1rem; background: color-mix(in srgb, var(--margin) 5%, var(--sheet)); font-size: var(--step--1); }
.tnote > h4 { color: var(--margin); margin: 0 0 .35rem; font-size: .8125rem; }
.tnote details { margin-top: .5rem; }
.tnote summary { cursor: pointer; font-weight: 700; }
.tnote ol, .tnote ul { padding-left: 1.2rem; margin: .4rem 0; }
.teacher-bar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--sheet); padding: .6rem 1rem; border-radius: var(--radius-s); margin-bottom: 1.25rem; font-size: var(--step--1); font-weight: 700; }
.teacher-bar a { color: var(--highlight); }

/* ---------- teacher: class grid ---------- */
.class-tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--rule-strong); margin-bottom: 1.25rem; }
.class-tabs a { padding: .55rem .9rem; font-weight: 700; color: var(--graphite); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.class-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--margin); }
.progress-grid td.cell { text-align: center; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--rule-strong); vertical-align: middle; }
.dot.done { background: var(--success); border-color: var(--success); }
.dot.part { background: linear-gradient(90deg, var(--biro) 50%, transparent 50%); border-color: var(--biro); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--graphite); margin: .75rem 0 0; }
.legend span { display: inline-flex; gap: .35rem; align-items: center; }
.live { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--success); font-weight: 700; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }

/* ---------- marking ---------- */
.mark-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .mark-layout { grid-template-columns: 1fr; } }
.rubric { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.rubric th, .rubric td { border: 1px solid var(--rule-strong); padding: .5rem; vertical-align: top; }
.rubric th { background: var(--paper); text-align: left; }
.rubric td.level { cursor: pointer; }
.rubric td.level:hover { background: var(--paper); }
.rubric td.level[aria-pressed="true"] { background: color-mix(in srgb, var(--biro) 14%, var(--sheet)); outline: 2px solid var(--biro); outline-offset: -2px; font-weight: 700; }
.files-peek { font: .8125rem var(--mono); }
.files-peek pre { background: var(--slate); color: var(--slate-text); padding: .75rem; border-radius: var(--radius-s); overflow: auto; max-height: 340px; margin: .5rem 0 0; }
.files-peek select { width: auto; }

/* ---------- landing ---------- */
.landing { background: var(--paper); }
.l-hero { background: radial-gradient(ellipse 70% 90% at 70% 40%, #1b4fa8 0%, rgba(27,79,168,0) 70%), linear-gradient(180deg, #0b1a33 0%, #0a1426 100%); color: #e8eef9; position: relative; overflow: hidden; }
.l-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--pixels); }
.l-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter); max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; }
.l-top .brand { color: #fff; }
.l-top nav { display: flex; gap: 1.25rem; align-items: center; font-weight: 700; font-size: var(--step--1); flex-wrap: wrap; }
.l-top nav a:not(.btn) { color: #c9d6ee; text-decoration: none; }
.l-top nav a:not(.btn):hover { color: #fff; }
.l-top .brand { white-space: nowrap; }
@media (max-width: 760px) { .l-top nav a:not(.btn) { display: none; } }
.hero { max-width: 1240px; margin: 0 auto; padding: 2.5rem var(--gutter) 4.5rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-family: var(--display); font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 1.25rem; color: #fff; }
.hero h1 .accent { color: var(--highlight); }
.hero p.lede { font-size: var(--step-1); color: #c9d6ee; max-width: 36ch; margin-bottom: 1.75rem; }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .cta .btn { font-size: var(--step-0); padding: .8em 1.4em; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.hero .btn-primary { background: var(--biro); border-color: var(--biro); }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 1rem; } }

/* The hero picture: a developer's screen with several windows open. */
.screen { position: relative; min-height: 470px; }
.win { position: absolute; background: #0d1830; border: 1px solid #2a3c62; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(61,139,255,.08); font-family: var(--mono); }
.win-bar { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; background: #13213f; color: #9fb2d6; font-size: .72rem; border-bottom: 1px solid #22345a; }
.win-bar .dots { display: flex; gap: 5px; margin-right: .25rem; }
.win-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c3f66; display: block; }
.win-bar b { color: #fff; font-weight: 600; }
.win-bar .tag { margin-left: auto; color: #3fd48a; border: 1px solid #1f6b47; border-radius: 999px; padding: 0 .55em; }
.win pre { margin: 0; padding: .7rem .85rem; font-size: .74rem; line-height: 1.6; color: #d6e0f0; white-space: pre; overflow: hidden; }
.chips { display: flex; gap: .35rem; padding: .55rem .7rem 0; flex-wrap: wrap; }
.chips span { font-size: .68rem; padding: .15rem .5rem; border-radius: 5px; background: #1a2a4b; color: #b9c8e6; }
.chips span.on { background: #1f6fe0; color: #fff; }
.win-editor { left: 0; top: 0; width: 64%; z-index: 2; }
.win-browser { right: 0; top: 34px; width: 46%; z-index: 3; background: #fff; border-color: #c6d2e3; }
.win-browser .win-bar { background: #e9eef6; color: #45536b; border-color: #d3dceb; }
.win-browser .win-bar b { color: #0b1a33; }
.win-browser .url { flex: 1; background: #fff; border: 1px solid #d3dceb; border-radius: 999px; padding: .05rem .6rem; color: #45536b; }
.page-pane { padding: .9rem 1rem 1rem; color: #0b1a33; font: .82rem/1.45 var(--font); }
.page-pane h4 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .5rem; }
.page-pane li { margin: .2rem 0; }
.page-pane .stars { color: #e0a400; letter-spacing: .05em; }
.page-pane .addrow { display: flex; gap: .35rem; margin-top: .6rem; }
.page-pane .addrow span { flex: 1; height: 22px; border: 1px solid #c6d2e3; border-radius: 4px; }
.page-pane .addrow em { font-style: normal; background: #1f6fe0; color: #fff; border-radius: 4px; padding: .1rem .55rem; font-size: .72rem; }
.win-db { left: 6%; bottom: 0; width: 52%; z-index: 4; }
.win-db table { border-collapse: collapse; width: 100%; font-size: .7rem; color: #d6e0f0; }
.win-db th, .win-db td { text-align: left; padding: .28rem .7rem; border-bottom: 1px solid #1e2c49; white-space: nowrap; }
.win-db th { color: #8394b3; font-weight: 600; }
.win-log { right: 2%; bottom: 22px; width: 40%; z-index: 5; }
.win-log pre { font-size: .68rem; }
.k-kw { color: #c792ea; } .k-str { color: #c3e88d; } .k-var { color: #82aaff; } .k-cm { color: #6f7f9e; } .k-fn { color: #ffcb6b; }
.s2 { color: #3fd48a; } .s3 { color: #82aaff; } .s4 { color: #f2b705; }
@media (max-width: 640px) {
  .screen { min-height: 0; display: grid; gap: .75rem; }
  .win { position: relative; inset: auto; width: 100% !important; }
  .win-db, .win-log { display: none; }
}

.band { border-top: 1px solid var(--rule); }
.band-inner { max-width: 1180px; margin: 0 auto; padding-block: 4rem; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); max-width: 24ch; line-height: 1.1; }
.band .intro { color: var(--graphite); max-width: 64ch; font-size: var(--step-1); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2rem; margin-top: 2.25rem; }
.three h3 { font-size: var(--step-1); }
.three p { color: var(--graphite); margin: 0; }
.point { padding-top: 1rem; border-top: 3px solid var(--biro); }
.point:nth-child(2) { border-color: var(--margin); }
.point:nth-child(3) { border-color: var(--highlight); }
.band-dark { background: var(--navy); color: #e8eef9; border: 0; }
.band-dark .intro, .band-dark p { color: #b9c8e6; }
.band-dark h2, .band-dark h3 { color: #fff; }
.split2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; align-items: start; }
.claim { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.claim .v9 { display: inline-block; background: var(--highlight); color: #0b1a33; border-radius: 6px; padding: 0 .3em; }

/* Year 7 to 12 pathway: colours follow the textbook covers. */
.pathway { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2.5rem; border-radius: var(--radius-m); overflow: hidden; }
.stage { padding: 1.5rem 1.4rem 1.6rem; color: #0b1a33; position: relative; }
.stage .years { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: .2rem; }
.stage h3 { font-size: var(--step-0); margin: 0 0 .6rem; }
.stage ul { margin: 0; padding-left: 1.1rem; font-size: var(--step--1); }
.stage li { margin: .3rem 0; }
.stage.y7 { background: #f2b705; }
.stage.y9 { background: #18a957; color: #fff; }
.stage.y11 { background: #1f6fe0; color: #fff; }
.stage:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 28px; height: 28px; background: inherit; transform: translateY(-50%) rotate(45deg); z-index: 1; }
@media (max-width: 800px) { .pathway { grid-template-columns: 1fr; } .stage:not(:last-child)::after { display: none; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; max-width: 70ch; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: var(--step-2); color: var(--biro); line-height: 1; }
.steps h3 { margin: 0 0 .25rem; font-size: var(--step-1); }
.steps p { margin: 0; color: var(--graphite); }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.pricing .panel-body h3 { margin-bottom: .25rem; }
.pricing .price { font-family: var(--display); font-size: var(--step-2); font-weight: 800; margin: .5rem 0; }
.l-foot { max-width: 1180px; margin: 0 auto; padding: 2rem var(--gutter); color: var(--graphite); font-size: var(--step--1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule-strong); }
