/* RLMBA Academy — navy & gold academic identity, warm kid-friendly lesson frame */
.code, .mono, .lf-head, .cert-d, .dp-date, .kc-id, .tr-meta b { font-variant-numeric: lining-nums; }
:root {
  --navy: #0b1f3a; --navy2: #14305a; --navy3: #23467a;
  --gold: #c9a227; --gold2: #e9cf7a; --gold-d: #8a6a12;
  --ivory: #faf7f0; --paper: #fffdf8; --line: #e6dfcf; --ink: #1d2433; --muted: #5d6677;
  --cream: #fff6e3; --good: #2f7d4f; --bad: #b4412f;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif2: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px; --shadow: 0 10px 30px rgba(11, 31, 58, .08), 0 2px 6px rgba(11, 31, 58, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.55; font-size: 17px; }
a { color: var(--navy3); }
img { max-width: 100%; }
h1, h2, h3, .serif { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); } h2 { font-size: clamp(1.45rem, 3vw, 2rem); } h3 { font-size: 1.25rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 20px; } .wrap.section { padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; } .muted { color: var(--muted); } .small { font-size: .88rem; }
.eyebrow { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--gold2); }
.eyebrow.dark { color: var(--gold-d); }
.empty { padding: 24px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }

/* top bar + masthead */
.topbar { background: #071528; color: #c9d3e3; font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding: 6px 20px; align-items: center; }
.kid-chip { color: var(--gold2); text-decoration: none; font-weight: 700; }
.kid-chip .sw { color: #9fb0c9; font-weight: 400; text-decoration: underline; margin-left: 4px; }
.masthead { background: var(--navy); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.mast-in { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-crest { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); color: #fff; font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; }
.brand-motto { font-family: var(--serif2); color: var(--gold2); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { color: #e6ecf5; text-decoration: none; font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a.active { color: var(--gold2); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--gold2); font-size: 1.3rem; border-radius: 8px; padding: 4px 10px; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 800 .95rem var(--sans); letter-spacing: .02em; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.gold { background: linear-gradient(180deg, #e2c35a, var(--gold)); color: var(--navy); border-color: #b48f1e; box-shadow: 0 3px 0 #8a6a12; }
.btn.gold:hover { background: linear-gradient(180deg, #ecd06e, #d4ad35); }
.btn.navy { background: var(--navy); color: #fff; } .btn.navy:hover { background: var(--navy2); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); } .btn.ghost:hover { border-color: var(--navy3); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(233,207,122,.6); } .btn.ghost-light:hover { background: rgba(255,255,255,.08); }
.btn.danger { background: #fff; color: var(--bad); border-color: #e9c1b9; }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn.big { padding: 16px 28px; font-size: 1.1rem; }
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.btn[disabled] { opacity: .5; cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; } .cta-row.center { justify-content: center; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #23467a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0e2748 60%, #0a1c35 100%); color: #e9eef6; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(233,207,122,.05) 0 1px, transparent 1px 80px); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding: 70px 20px 80px; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 10px 0 18px; }
.hero h1 em { color: var(--gold2); font-style: italic; }
.lede { font-size: 1.15rem; max-width: 620px; color: #d3dceb; }
.hero-crest { text-align: center; } .hero-crest .crest { width: min(360px, 100%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.hero-facts { display: flex; gap: 34px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(233,207,122,.25); flex-wrap: wrap; }
.hero-facts b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold2); }
.hero-facts span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #aebbd0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.school-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.school-card { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: var(--r); padding: 22px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.school-card:hover { transform: translateY(-4px); }
.school-card p { font-size: .92rem; color: var(--muted); }
.sc-icon { font-size: 2rem; } .sc-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-top: 6px; }
.sc-track { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c); font-weight: 800; }
.sc-codes { font-family: var(--serif2); font-weight: 700; color: var(--gold-d); }
.band { background: var(--navy); color: #dfe6f1; padding: 56px 0; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.band h3 { color: #fff; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps3 .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.6fr 1fr; }
.ticks { list-style: none; padding: 0; } .ticks li { padding: 6px 0 6px 30px; position: relative; } .ticks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
.quote-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; text-align: center; box-shadow: var(--shadow); outline: 1px solid var(--gold2); outline-offset: -10px; }
.quote-card .q { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); font-style: italic; } .quote-card .qt { font-family: var(--serif2); color: var(--gold-d); letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }

/* page head */
.page-head { background: linear-gradient(160deg, var(--navy), var(--navy2)); color: #dfe6f1; padding: 44px 0 40px; border-bottom: 3px solid var(--gold); }
.page-head h1 { color: #fff; } .page-head p { max-width: 760px; }
.school-head { background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 70%, var(--c) 160%); }

/* cards & forms */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card.info ol { padding-left: 20px; } .card.banner { background: #fff9e6; border-color: var(--gold2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form label, .pj-form label { display: block; font-weight: 700; margin: 14px 0; color: var(--navy); }
input[hidden] { display: none !important; }
input, textarea { display: block; width: 100%; margin-top: 6px; font: 1rem var(--sans); padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.2); }
fieldset { border: 0; padding: 0; margin: 14px 0; } legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.av-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.av-opt input, .chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.av-opt span { display: flex; align-items: center; justify-content: center; font-size: 1.8rem; padding: 8px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.av-opt input:checked + span { border-color: var(--gold); background: #fff6da; box-shadow: 0 0 0 3px rgba(201,162,39,.25); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; } .chip span { display: inline-block; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; font-weight: 700; }
.chip input:checked + span { border-color: var(--gold); background: #fff6da; }
.kid-list { display: grid; gap: 12px; margin-bottom: 24px; }
.kid-card { display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.kid-card.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,162,39,.35), var(--shadow); }
.kc-av { font-size: 2.4rem; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: #f1ead8; border-radius: 50%; border: 2px solid var(--gold2); }
.kc-body { flex: 1; } .kc-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--navy); } .kc-meta { color: var(--muted); font-size: .92rem; } .kc-id { font-family: var(--serif2); color: var(--gold-d); font-weight: 700; }
.kc-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .03em; background: #eef1f6; color: var(--navy2); white-space: nowrap; }
.pill.gold { background: #fff3cf; color: var(--gold-d); }
.pill.st-mastered, .lg.st-mastered { background: #e2f2e7; color: #1f6a3d; }
.pill.st-placed, .lg.st-placed { background: #e5edf9; color: #234a85; }
.pill.st-open, .pill.st-progress, .lg.st-open { background: #fff3cf; color: #7a5b0b; }
.pill.st-locked, .lg.st-locked { background: #eceae4; color: #6d6a62; }
.pill.st-soon, .pill.st-soon-next, .lg.st-soon { background: #f3eef9; color: #6b3fa0; }

/* catalog */
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; } .lg { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.prog-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.prog-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; border-top: 6px solid var(--c); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pc-head { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--navy); font-family: var(--serif); }
.pc-head small { display: block; font-family: var(--sans); color: var(--c); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.prog-col ol { list-style: none; padding: 0; margin: 14px 0; flex: 1; }
.prog-col li { font-size: .86rem; padding: 7px 0 7px 22px; border-bottom: 1px dotted var(--line); position: relative; }
.prog-col li::before { position: absolute; left: 0; top: 7px; font-size: .8rem; }
.prog-col li.st-mastered::before { content: "✅"; } .prog-col li.st-placed::before { content: "🎖️"; } .prog-col li.st-open::before, .prog-col li.st-progress::before { content: "🔓"; } .prog-col li.st-locked::before { content: "🔒"; } .prog-col li.st-soon::before, .prog-col li.st-soon-next::before { content: "⏳"; }
.prog-col li.st-soon, .prog-col li.st-soon-next { color: var(--muted); }
.code { font-family: var(--serif2); font-weight: 700; color: var(--gold-d); white-space: nowrap; }

/* ladder */
.ladder { list-style: none; padding: 0; margin: 0; position: relative; }
.ladder::before { content: ""; position: absolute; left: 44px; top: 10px; bottom: 10px; width: 4px; background: linear-gradient(var(--c), var(--gold)); border-radius: 2px; opacity: .35; }
.rung > a, .rung > div { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); position: relative; box-shadow: var(--shadow); }
.rung > a:hover { border-color: var(--c); transform: translateX(3px); transition: transform .1s; }
.rung-code { width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold2); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--serif2); font-weight: 700; font-size: .82rem; line-height: 1; border: 3px solid var(--gold); padding: 4px; }
.rung-code { flex-direction: column; font-variant-numeric: lining-nums; } .rung-code span { font-size: .7rem; letter-spacing: .1em; } .rung-code b { font-family: var(--serif); font-size: 1.05rem; color: #fff; }
.rung.st-locked .rung-code, .rung.st-soon .rung-code { background: #8b93a3; border-color: #c9c3b4; color: #fff; }
.rung.st-mastered .rung-code { background: var(--good); }
.rung-body { flex: 1; } .rung-title { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--navy); } .rung-stage { font-size: .82rem; color: var(--muted); }
.rung.st-soon > div, .rung.st-locked > div { opacity: .75; }
.project-card { border-top: 6px solid var(--c); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; } .tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: #f5f0e4; }
.tbl.small td { padding: 5px 6px; } .tbl-wrap { overflow-x: auto; }
.mono { font-variant-numeric: tabular-nums; font-family: var(--serif2); font-weight: 700; }
.dotc { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 8px; }

/* LESSON FRAME — warm & readable for young learners */
.lesson-wrap { padding: 26px 0 60px; background: linear-gradient(180deg, #f2ecdf 0, var(--ivory) 260px); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; } .crumbs a { color: var(--navy3); }
.lesson-frame { --c: inherit; background: var(--cream); border: 1px solid #ecdcb8; border-radius: 22px; padding: 0 28px 28px; box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; position: relative; overflow: hidden; font-size: 1.12rem; }
.lf-head { display: flex; justify-content: space-between; margin: 0 -28px 20px; padding: 10px 28px; background: var(--navy); color: var(--gold2); font-family: var(--serif2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; border-bottom: 3px solid var(--c, var(--gold)); }
.lesson-title { font-size: clamp(1.7rem, 4vw, 2.4rem); display: flex; align-items: center; gap: 12px; }
.lesson-title .le { font-size: 2.6rem; }
.lede-dark { color: var(--muted); }
.ltabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 20px; }
.ltab { font: 800 .9rem var(--sans); padding: 9px 14px; border-radius: 999px; border: 2px solid #e5d3aa; background: #fffaf0; color: var(--navy); cursor: pointer; }
.ltab.on { background: var(--c, var(--navy)); color: #fff; border-color: var(--c, var(--navy)); }
.goal { background: #fff; border-left: 6px solid var(--gold); padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.learn p { background: #fff; padding: 14px 18px; border-radius: 14px; margin: 0 0 12px; box-shadow: 0 1px 0 #ecdcb8; }
.words { background: #fff; border-radius: 14px; padding: 14px 18px; border: 2px dashed #e5d3aa; } .words h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--sans); color: var(--c, var(--navy)); }
.words dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; } .words dt { font-weight: 800; color: var(--navy); } .words dd { margin: 0; }
.example { background: #fff; border-radius: 16px; padding: 20px; border: 2px solid #e5d3aa; } .ex-title { font-weight: 800; font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.example ol li { margin: 8px 0; } .ex-answer { margin-top: 12px; background: #e6f4ea; color: #1f5a35; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.lf-next { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; align-items: center; }
.dots { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.dots .d { width: 14px; height: 14px; border-radius: 50%; background: #eadfc6; } .dots .d.done { background: var(--good); } .dots .d.cur { background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.3); }
.dlabel { margin-left: 8px; font-size: .85rem; color: var(--muted); font-weight: 700; }
.question { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 2px 0 #ecdcb8; }
.q-text { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { font: 700 1.08rem var(--sans); text-align: left; padding: 16px 18px; border-radius: 14px; border: 3px solid #eadfc6; background: #fffdf7; color: var(--ink); cursor: pointer; transition: transform .08s, border-color .1s; }
.choice:hover:not([disabled]) { border-color: var(--gold); transform: translateY(-2px); }
.choice.wrong { border-color: #e6b3a8; background: #fbeeea; color: #8f3a2a; text-decoration: line-through; }
.choice.right { border-color: var(--good); background: #e6f4ea; color: #1f5a35; }
.choice[disabled] { cursor: default; }
.num-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.num-form input { width: 160px; display: inline-block; margin: 0; font-size: 1.4rem; font-weight: 800; text-align: center; }
.unit { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-weight: 600; animation: pop .2s ease-out; }
.feedback.good { background: #e6f4ea; color: #1f5a35; border: 2px solid #b8dcc4; } .feedback.bad { background: #fdf1e2; color: #7a4a0b; border: 2px solid #f0d3a4; }
.hint { margin-top: 12px; background: #fff7dc; border-radius: 10px; padding: 10px 14px; color: #6f5308; font-size: 1rem; }
@keyframes pop { from { transform: scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }
.celebrate { text-align: center; font-size: 3rem; background: #fff; border-radius: 18px; padding: 30px; } .celebrate h2 { font-size: 1.8rem; margin-top: 8px; } .celebrate p { font-size: 1.1rem; }
.celebrate.retry { font-size: 2.6rem; } .review { text-align: left; font-size: 1.05rem; padding-left: 20px; } .review li { margin: 10px 0; }
.exam-intro { text-align: center; } .exam-intro .crest { width: 120px; } .exam-intro .big { font-size: 1.3rem; } .exam-intro.small { background: #fff; padding: 24px; border-radius: 18px; }
.place-prog { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; } .pdot { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ece6d8; font-size: 1.3rem; opacity: .55; }
.pdot.cur { background: #fff; border: 3px solid var(--c); opacity: 1; } .pdot.done { background: var(--c); opacity: 1; }
.place-msg { text-align: center; font-weight: 800; color: var(--navy); margin-bottom: 12px; }

/* certificate */
.certificate { background: #fffdf5; padding: 14px; border-radius: 6px; border: 2px solid var(--gold); box-shadow: var(--shadow); }
.cert-inner { border: 1px solid var(--gold2); outline: 6px double var(--gold); outline-offset: -14px; padding: 36px 24px; text-align: center; background: radial-gradient(circle at center, #fffef9, #fbf3df); }
.cert-inner .crest { width: 90px; } .cert-k { font-family: var(--serif2); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-d); font-weight: 700; }
.cert-t { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--navy); font-weight: 800; margin: 6px 0 12px; }
.cert-n { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--navy3); border-bottom: 1px solid var(--gold2); display: inline-block; padding: 0 30px 4px; margin-bottom: 12px; }
.cert-c { font-size: 1.05rem; } .cert-d { margin-top: 14px; font-family: var(--serif2); color: var(--muted); font-weight: 700; }
.letter { text-align: center; } .letter .crest { width: 100px; } .letter .tbl { text-align: left; margin-top: 16px; }

/* portal */
.portal-head { background: linear-gradient(160deg, var(--navy), var(--navy2)); color: #dfe6f1; padding: 34px 0; border-bottom: 3px solid var(--gold); }
.ph-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } .ph-in h1 { color: #fff; margin: 4px 0; }
.ph-av { font-size: 3.4rem; width: 92px; height: 92px; border-radius: 50%; background: #fff6da; border: 4px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.ph-rank { font-family: var(--serif2); color: var(--gold2); font-size: 1.15rem; font-weight: 700; }
.ph-stats { margin-left: auto; display: flex; gap: 12px; } .ph-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(233,207,122,.35); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 90px; }
.ph-stats b { display: block; font-family: var(--serif); font-size: 1.6rem; color: #fff; } .ph-stats span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #aebbd0; }
.cont-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 30px; }
.cont-card { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.cc-head { display: flex; gap: 8px; align-items: center; font-family: var(--serif); color: var(--navy); } .cc-head .sc-icon { font-size: 1.5rem; }
.bar { height: 8px; background: #eee6d3; border-radius: 999px; overflow: hidden; margin: 10px 0 4px; } .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c), var(--gold)); }
.cc-meta { font-size: .8rem; color: var(--muted); }
.mission-card { background: linear-gradient(160deg, #fffaf0, #fff3d6); border: 2px solid var(--gold2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); position: relative; margin-bottom: 20px; }
.mission-card .mc-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .mission-card .eyebrow { color: var(--gold-d); } .mc-school { font-size: .8rem; font-weight: 800; color: var(--c); }
.mission-card h3 { font-size: 1.5rem; margin-top: 8px; } .tip { font-size: .92rem; color: #6f5308; }
.diplomas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.diploma { background: #f4f1ea; border: 1px dashed #cfc6b2; border-radius: 6px; padding: 16px 12px; text-align: center; color: #8a8577; }
.diploma.got { background: radial-gradient(circle, #fffef9, #fbf1d6); border: 2px solid var(--gold); outline: 1px solid var(--gold2); outline-offset: -7px; color: var(--ink); box-shadow: var(--shadow); }
.dp-icon { font-size: 2rem; } .dp-title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: .98rem; margin: 6px 0 4px; } .diploma:not(.got) .dp-title { color: #8a8577; }
.dp-desc { font-size: .78rem; } .dp-date { font-family: var(--serif2); font-weight: 700; color: var(--gold-d); margin-top: 6px; font-size: .85rem; }
.diplomas.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .diplomas.compact .diploma:not(.got) { display: none; } .diplomas.compact .dp-desc { display: none; }

/* parent transcript */
.ptabs { display: flex; gap: 8px; margin: 26px 0 12px; flex-wrap: wrap; } .ptab { padding: 10px 18px; border-radius: 10px 10px 0 0; background: #ece6d8; text-decoration: none; color: var(--navy); font-weight: 800; }
.ptab.on { background: var(--navy); color: var(--gold2); }
.transcript { border-top: 6px solid var(--navy); background: #fffefb; }
.tr-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-bottom: 3px double var(--gold); padding-bottom: 16px; margin-bottom: 16px; }
.tr-head .crest { width: 52px; } .tr-school { font-family: var(--serif); font-size: 1.6rem; font-weight: 800; color: var(--navy); } .tr-doc { font-family: var(--serif2); letter-spacing: .25em; text-transform: uppercase; color: var(--gold-d); font-weight: 700; }
.tr-meta { margin-left: auto; display: grid; grid-template-columns: repeat(4, auto); gap: 4px 22px; } .tr-meta span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); } .tr-meta b { font-family: var(--serif2); font-size: 1.05rem; }
.tr-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; } .tr-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; background: #fff; }
.tr-stats b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); } .tr-stats span { font-size: .72rem; color: var(--muted); }
.tr-week { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; } .wk-row { display: flex; gap: 6px; }
.wk { width: 26px; height: 46px; background: #f1ece0; border-radius: 6px; position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.wk span { position: absolute; bottom: 0; left: 0; right: 0; background: var(--gold); } .wk.on { outline: 2px solid var(--gold); } .wk small { position: relative; font-size: .65rem; font-weight: 800; color: var(--navy); }
.transcript-tbl td { font-size: .88rem; } .school-row td { background: #f5f0e4; font-family: var(--serif); font-weight: 700; color: var(--navy); border-left: 5px solid var(--c); }
.school-row .muted { font-family: var(--sans); font-weight: 400; font-size: .8rem; }
.transcript-tbl tr.st-soon td, .transcript-tbl tr.st-locked td { color: #9a958a; } .grade { font-size: 1.1rem; color: var(--navy); }
.skills { padding-left: 18px; font-size: .92rem; } .admin { margin-top: 30px; }
.calc { border-collapse: collapse; width: 100%; background: #fff; border-radius: 10px; overflow: hidden; } .calc td { padding: 10px 14px; border-bottom: 1px solid #f0e4c8; } .calc td:last-child { text-align: right; font-weight: 800; }
.report { background: #fff; border-radius: 16px; padding: 18px; }
.sign-preview { margin: 14px auto; max-width: 360px; background: #ffe066; border: 6px solid #f08c00; border-radius: 10px; padding: 18px; text-align: center; transform: rotate(-1.5deg); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.sp-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 800; color: #7a2e00; } .sp-head { font-size: 1.6rem; font-weight: 900; color: #c92a2a; } .sp-pic { font-size: .9rem; color: #5c3d00; }

/* footer & toast */
.footer { background: #071528; color: #aab6c8; padding: 30px 0; margin-top: 40px; border-top: 4px solid var(--gold); }
.foot-in { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; } .foot-in > div:first-child { display: flex; gap: 12px; align-items: center; } .foot-in b { color: #fff; font-family: var(--serif); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; } .foot-links a { color: var(--gold2); text-decoration: none; }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.toast-item { background: var(--navy); color: #fff; border-left: 5px solid var(--gold); padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: pop .2s; transition: opacity .5s, transform .5s; max-width: 320px; }
#toast .toast-item:nth-last-child(n+4) { display: none; }
.toast-item.out { opacity: 0; transform: translateX(20px); }

/* responsive */
@media (max-width: 1000px) { .school-grid, .prog-grid { grid-template-columns: repeat(2, 1fr); } .tr-stats { grid-template-columns: repeat(3, 1fr); } .tr-meta { grid-template-columns: repeat(2, auto); margin-left: 0; } }
@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 8px 20px 16px; border-bottom: 4px solid var(--gold); }
  .mainnav.open { display: flex; } .mast-in { position: relative; }
  .brand-motto { font-size: .7rem; } .topbar-in > span:first-child { display: none; }
  .hero-in, .two-col, .two-col.wide-left, .steps3 { grid-template-columns: 1fr; }
  .hero-in { padding: 40px 20px 50px; } .hero-crest { order: -1; } .hero-crest .crest { width: 150px; }
  .school-grid, .prog-grid { grid-template-columns: 1fr; }
  .av-grid { grid-template-columns: repeat(4, 1fr); }
  .kid-card { flex-wrap: wrap; } .kc-act { width: 100%; justify-content: flex-start; }
  .lesson-frame { padding: 0 16px 20px; border-radius: 16px; } .lf-head { margin: 0 -16px 16px; padding: 10px 16px; }
  .ph-stats { margin-left: 0; } .tr-stats { grid-template-columns: repeat(2, 1fr); }
}
@media print {
  .topbar, .masthead, .footer, .page-head, .ptabs, .admin, #toast, h2.serif, .tbl-wrap:first-of-type { display: none !important; }
  body { background: #fff; } .card { box-shadow: none; } .transcript { border: 0; }
}
