:root{color-scheme:dark;--bg:#0b1020;--panel:#131b31;--text:#f5f7ff;--muted:#aeb9d4;--edge:#35415f;--accent:#b8b1ff;--mint:#82e5ca;--ring:#ddd9ff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse 90% 40% at 50% -5%,#292756 0%,transparent 72%),var(--bg);font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text)}button,input,select,a{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--ring);outline-offset:3px}.skip{position:absolute;left:-9999px;top:0}.skip:focus{left:10px;top:10px;z-index:100;background:#fff;color:#000;padding:10px}.sitebar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--edge);padding:16px max(16px,calc((100vw - 1200px)/2));background:#10152ae8}.brand{display:flex;align-items:center;gap:12px;line-height:1.1;letter-spacing:.15em}.brand small{display:block;margin-top:6px;font-size:11px;color:var(--muted);letter-spacing:.14em}.mark{font-size:22px;font-weight:900;background:#c4baff;color:#181331;border-radius:11px;padding:9px 14px}.back{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid #6c63ba;border-radius:11px;background:#24204a;color:#f5f4ff;font-size:14px;font-weight:750;text-decoration:none;transition:transform .16s ease,background .16s ease,border-color .16s ease}.back svg{width:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.back:hover{background:#393166;border-color:#a39bff;transform:translateY(-1px)}.layout{max-width:1200px;margin:auto;padding:0 clamp(16px,3vw,32px) 72px}.hero{padding:42px 0 26px;animation:enter .42s ease both}.hero-copy{display:flex;justify-content:space-between;gap:30px;align-items:center}.eyebrow{color:#beb7ff;font-size:12px;font-weight:800;letter-spacing:.15em}.hero h1{font-size:clamp(38px,5.6vw,68px);line-height:1.04;letter-spacing:-.06em;margin:13px 0 14px}.hero h1 em{font-style:normal;background:linear-gradient(115deg,#d0c8ff,#84e0de);background-clip:text;color:transparent}.hero p{max-width:680px;font-size:17px;color:#cbd3e8;margin:0}.hero-seal{width:104px;height:104px;flex:0 0 104px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(145deg,#302b68,#172847);border:1px solid #615ba2}.hero-seal svg{width:57px;fill:none;stroke:#cfcaff;stroke-width:2.7;stroke-linecap:round}.stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}.stats span{font-size:14px;background:#1a2039;padding:9px 13px;border:1px solid var(--edge);border-radius:24px;color:var(--muted)}.stats b{color:#fff;font-size:17px}.library-controls{position:sticky;top:0;z-index:5;padding:12px 0 6px;background:linear-gradient(var(--bg) 78%,transparent)}.tabs{display:flex;gap:8px;overflow:auto;padding-bottom:5px}.tab,.small,select{border-radius:10px;border:1px solid var(--edge);background:var(--panel);color:#e8ebff;padding:10px 14px;min-height:44px;font-size:14px;font-weight:700;white-space:nowrap}.tab.active{border-color:#9189e9;background:#393165;color:#fff}.toolbar{display:flex;gap:10px;align-items:center;margin:10px 0}.inputwrap{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid #596783;border-radius:13px;width:100%;padding:0 16px;min-height:48px}.inputwrap span{font-size:25px;color:var(--accent)}input{color:#fff;min-width:0;width:100%;padding:12px 0;border:0;outline:0;background:transparent;font-size:16px}.filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.filters label{display:grid;gap:4px;color:var(--muted);font-size:12px;font-weight:700}.filters output{font-size:14px;color:var(--mint);padding:10px 0}.section-title{display:flex;justify-content:space-between;gap:24px;align-items:end;margin:20px 0 16px}.section-title h2{margin:4px 0 0;font-size:28px;letter-spacing:-.035em}.section-title p{font-size:14px;color:var(--muted);max-width:370px;margin:0}.subjects{display:grid;gap:20px}.subject{border:1px solid var(--edge);background:linear-gradient(145deg,#1a2540,#11192d);border-radius:20px;padding:22px;min-width:0;box-shadow:0 12px 28px #0002;animation:enter .35s ease both}.subject h3{font-size:22px;letter-spacing:-.025em;margin:4px 0}.code{font-size:12px;color:var(--muted);letter-spacing:.05em}.subject-header{display:flex;justify-content:space-between;gap:10px;align-items:start}.count{font-size:12px;color:var(--mint);background:#153d37;padding:6px 10px;border-radius:15px;white-space:nowrap}.units{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.unit{border:1px solid #354561;background:#10192d;border-radius:14px;padding:20px;min-width:0;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.unit:hover{transform:translateY(-2px);border-color:#7770c7;box-shadow:0 10px 25px #0003}.unit-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.unit-number{font-size:12px;font-weight:800;letter-spacing:.08em;color:#bdb6ff;margin:0 0 4px}.unit-title{font-weight:750;font-size:17px;line-height:1.28;margin:0}.status{font-size:12px;color:var(--mint);white-space:nowrap}.unit-summary{font-size:14px;line-height:1.5;color:#d8deef;margin:13px 0 0}.topics{display:flex;flex-wrap:wrap;gap:6px;padding-top:12px}.topic{font-size:12px;border:1px solid #3b4d69;color:#cbd6ed;padding:5px 8px;border-radius:8px}.actions{display:flex;gap:9px;padding-top:16px}.action{flex:1;min-height:44px;display:grid;place-items:center;border:1px solid #766cd0;border-radius:10px;padding:9px 11px;text-decoration:none;font-size:14px;font-weight:750;color:#fff;transition:filter .16s ease,transform .16s ease}.action:hover{filter:brightness(1.15);transform:translateY(-1px)}.read{background:#4b4192}.download{background:#18273e;border-color:#4a5d7a}.notice{font-size:12px;color:var(--muted);margin:10px 0 0}.policy{border:1px solid var(--edge);background:#161d31;border-radius:18px;margin-top:36px;padding:24px}.policy h2{font-size:20px;margin:0}.policy p{color:var(--muted);margin-bottom:0;font-size:14px}#results{border-radius:16px;border:1px solid var(--edge);background:#141e31;padding:18px 20px;margin:10px 0 22px;animation:enter .2s ease both}#results h2{margin:0 0 10px;font-size:20px}.search-list{padding-left:22px;margin:0}.search-list li{margin:12px 0;color:var(--muted)}.search-result-link{color:#d3ceff;font-weight:750}.snippet{margin:4px 0 0;font-size:14px}mark{background:#7d73d744;color:#f5f3ff;border-radius:3px;padding:0 2px}footer{padding:26px max(16px,calc((100vw - 1200px)/2));border-top:1px solid var(--edge);color:var(--muted);font-size:13px;display:flex;justify-content:space-between;gap:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1023px){.units{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.hero{padding-top:30px}.hero-copy{align-items:start}.hero-seal{display:none}.sitebar{padding:12px 16px;flex-wrap:wrap}.back{width:100%}.layout{padding:0 16px 50px}.subject{padding:18px}.units{grid-template-columns:1fr}.unit{padding:18px}.section-title{align-items:start;flex-direction:column;gap:6px}.section-title p{max-width:initial}.actions{flex-direction:column}.action{width:100%}footer{padding:20px 16px;flex-direction:column}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero,.subject,#results{animation:none}.back,.unit,.action{transition:none}.back:hover,.unit:hover,.action:hover{transform:none}}

/* Study-guide landing page */
.layout > .hero {
  margin-top: clamp(14px, 3vw, 32px);
  padding: clamp(22px, 5vw, 54px);
  background: linear-gradient(125deg, #252450, #101e35 72%);
  border: 1px solid #46547a;
  border-radius: 26px;
}
.layout > .hero h1 {
  font-size: clamp(30px, 5vw, 62px);
  overflow-wrap: anywhere;
}
.subject-guides {
  background: #121d32;
  border-color: #46547a;
}
.subject-guides a {
  min-height: 44px;
  overflow-wrap: anywhere;
}
.policy a {
  color: #d3ceff;
}
