/* AHappy Prep — Aurora Learning Universe P0
   Home-only layer. Does not override shared navigation, authentication, exams or history.
   No animation dependency, remote fonts, libraries or fabricated learning metrics. */
main {
  --aurora-deep: #0B347C;
  --aurora-royal: #1456C3;
  --aurora-ink: #12233F;
  --aurora-muted: #405674;
  --aurora-border: #D7E4F6;
  --aurora-sky: #DCEAFF;
  --aurora-lavender: #EEE9FF;
  --aurora-mint: #DEF9ED;
  --aurora-amber: #FFE69B;
  background:
    radial-gradient(ellipse 52% 430px at 92% 3%, rgba(202,196,255,.47), transparent 75%),
    radial-gradient(ellipse 50% 450px at 3% 10%, rgba(162,218,255,.36), transparent 78%),
    linear-gradient(180deg, #F7FAFF 0%, #FBFCFF 52%, #F7FAFE 100%);
  color: var(--aurora-ink);
}
main .container { max-width: 1240px; }
main .hero { padding: 50px 0 30px; }
main .hero-shell { grid-template-columns: minmax(0,1.36fr) minmax(310px,.78fr); gap:22px; }
main .hero .hero-main {
  min-height: 405px;
  padding: clamp(28px,3.3vw,50px);
  border:1px solid rgba(137,184,250,.52);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 9%, rgba(186,168,255,.37), transparent 39%),
    radial-gradient(circle at 6% 97%, rgba(27,194,230,.18), transparent 38%),
    linear-gradient(125deg,#0B347C 0%,#124CB2 65%,#1456C3 100%);
  box-shadow: 0 22px 54px rgba(18,63,139,.15);
  isolation:isolate;
  overflow:hidden;
}
main .hero .hero-main::after {
  width:315px; height:315px; right:-105px; bottom:-165px;
  background:rgba(255,255,255,.055); filter:none;
}
main .hero .hero-main h1 {
  position:relative; z-index:1; max-width:690px;
  font-size:clamp(2.15rem,4.6vw,3.8rem);
  line-height:1.13; letter-spacing:-.045em; color:#fff;
}
main .hero .hero-main h1 span { color:var(--aurora-amber); }
main .hero .hero-main .hero-sub { position:relative; z-index:1; max-width:55ch; color:#E5EEFF; line-height:1.7; }
main .hero .hero-main .eyebrow { position:relative; z-index:1; color:#DCEAFF; background:rgba(255,255,255,.11); border:1px solid rgba(255,255,255,.17); }
main .hero .hero-main .hero-actions { position:relative; z-index:2; flex-wrap:wrap; }
main .hero .hero-actions .btn-primary { background:#FFE69B; color:#12233F; border-color:#FFE69B; }
main .hero .hero-actions .btn-primary:hover { background:#FFF1C2; border-color:#FFF1C2; }
main .hero .hero-actions .btn-secondary { background:rgba(255,255,255,.13); color:#fff; border-color:rgba(255,255,255,.46); }
main .hero .hero-actions .btn-secondary:hover { background:rgba(255,255,255,.23); }
main .hero .hero-actions .aurora-history-link { color:#E3EFFF; font-size:.85rem; font-weight:700; text-underline-offset:4px; align-self:center; }
main .aurora-orbits { position:absolute; right:0; top:0; width:46%; height:100%; opacity:.78; z-index:0; pointer-events:none; }
main .aurora-orbits svg { width:100%; height:100%; display:block; }
main .aurora-hero-copy { position:relative; z-index:1; }
main .aurora-kicker { display:inline-flex; gap:8px; align-items:center; font-size:.73rem; letter-spacing:.11em; font-weight:800; text-transform:uppercase; color:#DCEAFF; margin-bottom:18px; }
main .aurora-kicker::before { content:""; display:inline-block; width:9px;height:9px;border-radius:50%;background:#FFE69B;box-shadow:0 0 0 4px rgba(255,230,155,.17); }
main .aurora-journey { position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px;margin-top:24px; }
main .aurora-journey span { display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(214,234,255,.34);border-radius:999px;padding:7px 11px;background:rgba(255,255,255,.075);color:#F0F6FF;font-size:.74rem;font-weight:650; }
main .aurora-journey b { display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#DCEAFF;color:#0B347C;font-size:.7rem; }
main .hero-side { background:rgba(255,255,255,.91); border:1px solid #D5E4F8; border-radius:26px; padding:20px; box-shadow:0 12px 34px rgba(20,70,140,.07); }
main .hero-side .panel { background:linear-gradient(155deg,#F5F9FF,#F1F1FF); border:1px solid #D6E5F8;border-radius:19px;padding:23px; }
main .hero-side .panel-top h3 { font-size:1.12rem; }
main .hero-side .mini-stat { border-radius:13px; background:#fff; border:1px solid #DAE6F7; padding:12px 8px; }
main .hero-side .mini-stat strong { color:#0B347C; font-size:1.2rem; }
main .hero-side .mini-stat span { color:#405674; }
main .aurora-pathways { padding:8px 0 40px; }
main .aurora-pathways h2 { font-size:clamp(1.35rem,2.5vw,1.8rem); margin:0 0 7px; color:#0B347C; }
main .aurora-pathways .aurora-path-intro { color:#405674; margin:0 0 17px; max-width:66ch;font-size:.9rem; }
main .aurora-path-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px; }
main .aurora-path-card {
  display:flex;flex-direction:column;gap:8px;text-decoration:none;
  padding:22px;min-height:178px;border:1px solid #D7E4F6;border-radius:20px;
  background:linear-gradient(145deg,#fff,#EDF5FF);color:#0B347C;
  box-shadow:0 7px 20px rgba(20,64,138,.045);
  transition:border-color .18s,box-shadow .18s,transform .18s;
}
main .aurora-path-card:nth-child(2) { background:linear-gradient(145deg,#fff,#F1EDFF);border-color:#DDD6F5; }
main .aurora-path-card:nth-child(3) { background:linear-gradient(145deg,#fff,#E9F8F0);border-color:#CFECDC; }
main .aurora-path-card:hover { border-color:#1456C3;box-shadow:0 12px 26px rgba(20,70,140,.085);transform:translateY(-2px); }
main .aurora-path-card:focus-visible { outline:3px solid #1456C3;outline-offset:3px; }
main .aurora-path-mark { display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#DCEAFF;font-size:1.1rem; }
main .aurora-path-card:nth-child(2) .aurora-path-mark { background:#E7DEFF; }
main .aurora-path-card:nth-child(3) .aurora-path-mark { background:#D4F5E5; }
main .aurora-path-card strong { font-size:1.05rem;line-height:1.4; }
main .aurora-path-card small { color:#405674;line-height:1.55;font-size:.8rem; }
main .aurora-path-go { font-weight:750;font-size:.82rem;margin-top:auto; }
main .program-nav { background:transparent; border-top:1px solid #DEE9F9; border-bottom:none;padding:43px 0 42px; }
main .program-heading .program-kicker { color:#87541B; }
main .program-tab { border-radius:19px;box-shadow:0 5px 14px rgba(20,70,140,.03); }
main .program-tab[data-track="grade_10"] { background:#E7F0FC; }
main .program-tab[data-track="grade_11"] { background:#F0EAF9; }
main .program-tab[data-track="grade_12"] { background:#E8F4ED; }
main .program-tab[data-track="qg"] { background:#FAECDC; }
main .program-tab[aria-selected="true"] {border-color:#1456C3;box-shadow:0 0 0 2px rgba(20,86,195,.13);}
main .next-step {background:linear-gradient(100deg,#EAF4FF,#F3F0FF);border-color:#CFDDF4;border-left:4px solid #1456C3;border-radius:16px;}
main #paperPanel {background:linear-gradient(180deg,#F4F8FF,#F9FBFF);padding:48px 0 72px;border-top:1px solid #E2EBFA;}
main .paper-card {border-radius:20px;border-color:#D8E4F5;box-shadow:0 5px 17px rgba(18,68,137,.035);}
main .paper-card:hover {box-shadow:0 13px 28px rgba(20,70,140,.08);border-color:#9CBDE9;}
main .paper-card .btn-primary {background:#0B347C;color:#fff;}
main .paper-card .btn-primary:hover {background:#1456C3;}
main .paper-discovery-controls {align-items:end;gap:12px;margin:22px 0 10px;}
main .paper-discovery-field {flex:2 1 210px;}
main .paper-discovery-field--sort, main .paper-discovery-field--duration {flex:1 1 175px;}
main .paper-discovery-field input,main .paper-discovery-field select {border:1px solid #C9D8ED;border-radius:12px;min-height:48px;background:#fff;color:#12233F;}
main .aurora-discovery-headline {font-size:.84rem;color:#405674;margin:0 0 12px;}
main .aurora-discovery-tools {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 14px;}
main .aurora-clear-filters {cursor:pointer;border:1px solid #C9D8ED;border-radius:11px;padding:9px 14px;min-height:44px;background:#fff;color:#0B347C;font:inherit;font-size:.82rem;font-weight:700;}
main .aurora-clear-filters:hover {background:#EAF3FF;border-color:#1456C3;}
main .aurora-clear-filters:focus-visible {outline:3px solid #1456C3;outline-offset:3px;}
main .aurora-ecosystem {padding:34px 0 56px;background:linear-gradient(160deg,#EEF4FF,#F9F7FF);border-top:1px solid #DBE6F9;}
main .aurora-ecosystem h2 {font-size:clamp(1.35rem,2.5vw,1.8rem);color:#0B347C;margin:0 0 8px;}
main .aurora-ecosystem p {max-width:64ch;color:#405674;margin:0 0 18px;}
main .aurora-ecosystem-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
main .aurora-ecosystem-grid a {display:flex;flex-direction:column;gap:7px;text-decoration:none;padding:20px;background:rgba(255,255,255,.92);border:1px solid #D3E0F4;border-radius:17px;color:#0B347C;}
main .aurora-ecosystem-grid a:focus-visible, main .aurora-ecosystem-grid a:hover {outline:2px solid #1456C3;outline-offset:2px;}
main .aurora-ecosystem-grid span {font-size:.8rem;color:#405674;}
main .aurora-my-shortcuts {display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin-top:18px;color:#405674;font-size:.85rem;}
main .aurora-my-shortcuts a {display:inline-flex;align-items:center;min-height:44px;color:#0B347C;font-weight:700;text-underline-offset:4px;}
main .aurora-my-shortcuts a:hover {color:#1456C3;}
main .aurora-my-shortcuts a:focus-visible {outline:3px solid #1456C3;outline-offset:3px;border-radius:5px;}

@media(max-width:1024px) {
  main .hero-shell { grid-template-columns:1fr; }
  main .hero .hero-main {min-height:350px;}
  main .aurora-orbits {width:38%;}
}
@media(max-width:760px) {
  main .hero {padding:24px 0 20px;}
  main .hero .hero-main,main .hero-side {border-radius:20px;padding:24px;}
  main .hero .hero-main h1 {font-size:clamp(2rem,9vw,2.7rem);}
  main .aurora-orbits {display:none;}
  main .aurora-path-grid,main .aurora-ecosystem-grid {grid-template-columns:1fr;}
  main .aurora-path-card {min-height:0;}
  main .aurora-pathways {padding:8px 0 28px;}
  main .program-nav {padding:28px 0;}
  main #paperPanel {padding:30px 0 48px;}
  main .paper-discovery-field {flex-basis:100%;}
}
@media(prefers-reduced-motion:reduce) {
  main .aurora-path-card {transition:none;}
  main .aurora-path-card:hover {transform:none;}
}

main .hero-exam-search {
  position: relative;
  z-index: 2;
  width: min(100%, 36rem);
  margin: 1.25rem 0 .75rem;
}
main .hero-exam-search label { display: block; margin-bottom: .35rem; color: #fff; font-weight: 700; }
main .hero-exam-search input, main #paperShareUrl {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid #a6c7f7;
  border-radius: .75rem;
  padding: .6rem .85rem;
  background: #fff;
  color: #0b347c;
  font: inherit;
}
main .hero-exam-search input::placeholder { color: #526581; }
main .hero-exam-search input:focus-visible { outline: 3px solid #ffe69b; outline-offset: 3px; }
main #paperShareFallback:not([hidden]) { display: grid; gap: .35rem; margin-bottom: .75rem; }
