/* Shared academy finish. Keep printed study materials uncluttered. */
@media screen {
  :root { --ink:#152b4e; --muted:#435773; --line:#c7d6ed; }
  body { font-weight:550; background:#f8faff; }
  h1,h2,h3 { -webkit-text-stroke:.28px currentColor; }
  strong,b { font-weight:800; }
  .lead { font-weight:600; color:#405675; }
  .source,.academic-note,.practice-label,.breadcrumb { font-weight:550; }
  .layout { background:white; }
  header { background:linear-gradient(115deg,#14366f,#295fb6 72%,#214d92); box-shadow:0 5px 22px #102f6414; }
  .brand strong { text-shadow:0 2px 0 #102f64; }
  header nav a { padding:8px 0; border-bottom:2px solid transparent; }
  header nav a:hover { border-bottom-color:#ffdc35; }
  .bookmark-icon { box-shadow:inset 0 0 0 1px #ffffff40; }
  .disclaimer { background:#0c244e; font-weight:550; }
  aside { background:linear-gradient(180deg,#eaf1ff,#f6f9ff); }
  #chapters a { font-weight:700; transition:background .15s,color .15s; }
  #chapters a.active,#chapters a.active:hover { background:#173d7e; color:white; }
  input,select,textarea { font-weight:550; background:#fcfdff; }
  .kicker { display:flex;align-items:center;gap:10px;font-weight:850; }
  .kicker::before { content:'';display:block;width:26px;height:4px;background:#e3b51f;flex-shrink:0; }
  .hero-copy .kicker { justify-content:center; }
  button,.button { font-weight:850; border-radius:4px; background:linear-gradient(135deg,#ffe775,#ffcf28); box-shadow:3px 4px 0 #173d7e,0 8px 18px #173d7e12; }
  button.secondary,.button.secondary { background:linear-gradient(135deg,#fff,#edf3ff); }
  button:hover:not(:disabled),.button:hover { background:#173d7e;color:#fff; }
  .welcome-intro { position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#e5eeff,#f7faff 66%,#fff7d7);padding-top:68px;padding-bottom:45px; }
  .welcome-intro::after { content:'';position:absolute;z-index:-1;width:280px;height:280px;right:-80px;top:-90px;border:32px solid #26549f0a;outline:1px solid #26549f18;outline-offset:20px;transform:rotate(35deg);pointer-events:none; }
  .welcome-intro h1 { color:#143a79; text-shadow:0 2px 0 white; }
  .welcome-intro .lead { margin-bottom:0; }
  .founder-section { padding-top:64px;padding-bottom:22px; }
  .founder-crest { background:radial-gradient(circle at 50% 35%,#3977cf,#1d478e 75%);border:3px solid #173d7e;outline:1px solid #ffe574;outline-offset:-11px;box-shadow:8px 8px 0 #ffdc35,16px 20px 35px #173d7e16; }
  .school-card { --course-accent:#275fc0;--course-tint:#edf3ff;position:relative;overflow:hidden;border-color:#bacde9;border-top:7px solid var(--course-accent);border-radius:5px;background:linear-gradient(145deg,#fff 45%,var(--course-tint));box-shadow:0 5px 0 #dce6f5,0 13px 30px #173d7e0c;transition:transform .18s,box-shadow .18s,border-color .18s; }
  .school-card:nth-child(3n+2) { --course-accent:#147d7a;--course-tint:#edf9f7; }
  .school-card:nth-child(3n+3) { --course-accent:#c18b0d;--course-tint:#fff8e3; }
  .school-card::after { content:'';position:absolute;right:-25px;top:25px;width:90px;height:90px;border:16px solid var(--course-accent);opacity:.055;transform:rotate(35deg);pointer-events:none; }
  .school-card:hover { transform:translateY(-4px);border-color:var(--course-accent);box-shadow:0 7px 0 #dce6f5,0 18px 30px #173d7e18; }
  .course-number { display:inline-block;padding:6px 10px;border:1px solid #b8cbe0;background:#ffffffbd;border-radius:3px;font-weight:850;letter-spacing:1px; }
  .school-card p { color:#425674;font-weight:550; }
  .school-card .card-link { border-top:1px solid #bdcde2;margin-top:9px;padding-top:17px;color:#173d7e; }
  .founder-support,.orientation-strip { background:radial-gradient(ellipse at 100% 0,#2c64b8,#173d7e 65%);border-radius:5px;box-shadow:0 12px 30px #102f641b; }
  .founder-support .kicker { color:#ffe16b; }
  .founder-support p { color:#eef4ff; }
  .founder-support .source { color:#dbe8ff; }
  .donate-button { box-shadow:4px 5px 0 #0b2756,0 0 0 5px #ffffff0d; }
  .panel,.sample-paper,.workshop-list section { background:linear-gradient(135deg,#fff,#eff5ff);border-radius:4px;box-shadow:5px 5px 0 #dbe5f6,0 12px 25px #173d7e08; }
  .note { background:linear-gradient(105deg,#fff4c1,#fffbea);border-radius:0 5px 5px 0; }
  .note.warning { border-color:#a7552b; }
  .metrics { background:linear-gradient(115deg,#eaf1ff,#f8fbff);border-radius:4px;overflow:hidden; }
  .metric strong { color:#2055a6; }
  .quiz-head { background:linear-gradient(110deg,#153975,#285eb0);border-radius:4px 4px 0 0; }
  .passage { background:#f0f5ff;border-color:#b8cceb;border-top-color:#2b61b3;border-radius:3px; }
  .option { font-weight:550;border-radius:4px; }
  .option:hover { border-color:#5980bd;background:#f7faff; }
  .option:has(input:checked) { background:#e4edff;border-color:#173d7e; }
  .badge { font-weight:700;border-radius:3px; }
  .table-wrap { border-radius:4px; }
  th { background:#193f7e;font-weight:800; }
  .row-link:hover { background:#f5f8ff; }
  .entrance-hero { background:radial-gradient(ellipse at 50% 25%,#417ed1 0,#26549f 48%,#102f64 100%); }
  .entrance-hero::before { border-color:#ffdf6659; }
  .entrance-hero::after { border-color:#d4e5ff30; }
  .entrance-crest { filter:drop-shadow(0 9px 0 #102f6466) drop-shadow(0 0 28px #b2d4ff22); }
  .entrance-description { color:#f1f6ff;font-weight:600; }
  .entrance-stars { text-shadow:0 0 20px #ffdc3550; }
  #guide-panel { border-radius:5px;box-shadow:0 18px 60px #102f6433; }
  #guide-launcher { background:#ffdc35;border-radius:5px; }
  footer { background:linear-gradient(115deg,#0d2856,#19417f); }
  footer strong { text-shadow:0 2px 0 #071e43; }
  @media(max-width:760px) {
    .welcome-intro { padding:40px 6% 30px; }
    .founder-section { padding-top:40px;padding-bottom:12px; }
    .school-card:hover { transform:none; }
    .kicker { font-size:10px;letter-spacing:1.3px; }
    .kicker::before { width:20px; }
  }
  @media(prefers-reduced-motion:reduce) { .school-card,#chapters a { transition:none; } .school-card:hover { transform:none; } }
}

.expanded-resource .workbook-exercise{margin:22px 0;padding:22px;border:1px solid #bdcde2;border-left:5px solid #2870b8;background:#f4f8ff;border-radius:4px}.workbook-exercise h3{margin-top:0}.workbook-exercise details{padding-bottom:0;border:0}.workbook-exercise summary{font-size:14px}.expanded-resource>p{max-width:77ch}

/* Let the disclaimer take its natural height, then fill the remaining mobile viewport. */
@media screen and (max-width:760px){
  body.entrance{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;background:#102f64}
  .entrance>.disclaimer{flex:0 0 auto}
  .entrance .layout,.entrance main,.entrance #page{display:flex;flex-direction:column;flex:1 0 auto;width:100%;min-height:0;background:#102f64}
  .entrance .entrance-hero{flex:1 0 auto;width:100%;min-height:0;padding:clamp(28px,5svh,48px) 4% calc(32px + env(safe-area-inset-bottom,0px))}
  .entrance .entrance-crest{width:clamp(160px,23svh,215px)}
  .entrance .entrance-fine{max-width:90%;line-height:1.7}
}

.founder-signature-art{width:min(350px,80%)}

/* Welcome introduction: one-line desktop headline, readable mobile layout. */
@media screen {
  .welcome-intro { container-type:inline-size; }
  .welcome-intro h1 { max-width:none;font-size:clamp(24px,3.65cqw,52px);font-weight:900;letter-spacing:-.04em;line-height:1.18;white-space:nowrap;-webkit-text-stroke:.8px currentColor;margin-bottom:22px; }
  .welcome-intro .lead { color:#163c79;font-weight:800;font-size:clamp(17px,1.7vw,21px); }
  .welcome-mission { max-width:790px;font-size:17px;line-height:1.75;color:#405675;margin:18px 0 28px; }
  .welcome-paths { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:30px; }
  .welcome-paths a { display:flex;flex-direction:column;gap:10px;background:#ffffffde;border:1px solid #c8d7ee;border-top:4px solid #ffdc35;padding:23px 22px;text-decoration:none;border-radius:5px;color:#173d7e;box-shadow:0 6px 18px #173d7e08; }
  .welcome-paths a:hover { background:white;border-color:#285fae;border-top-color:#ffdc35; }
  .welcome-path-number { font-size:11px;letter-spacing:.12em;font-weight:900;color:#285fae; }
  .welcome-paths strong { font-size:18px;line-height:1.35;font-weight:850; }
  .welcome-paths a>span:last-child { font-size:14px;line-height:1.65;color:#405675; }
  @media(max-width:760px) {
    .welcome-intro h1 { white-space:normal;font-size:clamp(30px,7.2vw,46px);text-wrap:balance;overflow-wrap:normal;-webkit-text-stroke:.5px currentColor; }
    .welcome-paths { grid-template-columns:1fr;gap:12px; }
    .welcome-paths a { padding:19px 20px; }
    .welcome-mission { font-size:16px; }
  }
}
