/* Original EduResource palette: crimson A+, navy foundations, soft neutral surfaces. */
:root{
  --edu-red:#d6073b;--edu-red-dark:#ae0932;--edu-red-soft:#fff1f3;
  --edu-navy:#0f172a;--edu-blue:#d6073b;
  --edu-bg:#f8f9fc;--edu-card:#fff;--edu-ink:#172033;
  --edu-muted:#64748b;--edu-line:#e5e8ef;
  --edu-text:#172033;--edu-heading:#0f172a;
  --edu-primary:#d6073b;--edu-primary-hover:#ae0932;
  --edu-surface:#ffffff;--edu-surface-muted:#f8fafc;
  --edu-border:#e2e8f0;--edu-border-hover:#cbd5e1;
  --edu-code-bg:#f1f5f9;
}
html.dark, .dark{
  --edu-bg:#0b1220;--edu-card:#111c2e;--edu-ink:#f1f5f9;
  --edu-muted:#9aabc1;--edu-line:#1e293b;--edu-red-soft:#2a1520;
  --edu-text:#e2e8f0;--edu-heading:#f8fafc;
  --edu-primary:#f43f5e;--edu-primary-hover:#fb7185;
  --edu-surface:#111c2e;--edu-surface-muted:#0b1220;
  --edu-border:#1e293b;--edu-border-hover:#334155;
  --edu-code-bg:#1e293b;
}
.edu-rail{background:var(--edu-card)!important;backdrop-filter:none!important;border-radius:0!important;border-bottom:0!important;width:280px!important;padding:24px 16px;font-family:'Plus Jakarta Sans',system-ui,sans-serif}
.edu-with-rail{padding-left:280px!important}body.edu-nav-collapsed.edu-with-rail,body.edu-rail-collapsed.edu-with-rail,body.edu-nav-collapsed,body.edu-rail-collapsed{padding-left:0!important}.edu-logo{display:inline-flex!important;gap:10px;align-items:center;line-height:1.2;margin:0 4px 24px!important;font-size:17px!important;letter-spacing:-.6px!important}.edu-logo img{width:35px;height:48px;object-fit:contain;flex-shrink:0}.edu-logo span{display:inline-block!important;font-family:'Plus Jakarta Sans',system-ui,sans-serif!important;font-size:17px!important;font-weight:800!important;letter-spacing:-.6px!important;line-height:1.2!important;vertical-align:middle!important}.edu-logo b{display:inline!important;font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;letter-spacing:inherit!important;line-height:inherit!important;vertical-align:baseline!important;color:var(--edu-red)!important;margin:0!important;padding:0!important}.edu-logo small{display:none!important;visibility:hidden!important}.edu-rail a:not(.edu-logo){padding:10px 12px;font-size:12px}.edu-rail a:hover,.edu-rail a[aria-current=page]{background:var(--edu-red-soft)!important;color:var(--edu-red-dark)!important}.edu-rail a[aria-current=page]{box-shadow:inset 3px 0 var(--edu-red);font-weight:800}.edu-rail-label{margin-top:18px}.edu-rail .edu-upgrade{margin-top:22px;padding:16px;background:linear-gradient(130deg,#fff1f3,#fff8f3)!important;border:1px solid #f8dce2}.edu-upgrade strong{font-size:12px;color:#881337}.edu-upgrade p{font-size:11px;line-height:1.6}.edu-rail .edu-upgrade a{font-size:11px;background:var(--edu-red)!important;color:#fff!important;padding:10px 7px}.edu-rail .edu-upgrade a:hover{background:var(--edu-red-dark)!important}.edu-with-rail>header:not(.study-top){box-shadow:0 1px 0 var(--edu-line)!important}.edu-with-rail main{min-width:0;width:100%}
.edu-with-rail .resource-card,.edu-with-rail .subject-card,.edu-with-rail .paper-card{border-radius:16px;box-shadow:0 2px 12px #0f172a06;transition:box-shadow .2s,border-color .2s}.edu-with-rail .resource-card:hover,.edu-with-rail .subject-card:hover,.edu-with-rail .paper-card:hover{box-shadow:0 6px 22px #0f172a0c}.edu-with-rail .card-image-container{overflow:hidden;border-radius:14px 14px 0 0}.edu-with-rail input:focus-visible,.edu-with-rail select:focus-visible,.edu-with-rail textarea:focus-visible{outline:3px solid #d6073b55;outline-offset:3px}.edu-with-rail ::selection{background:#ffe1e8;color:#881337}
.study-top{background:var(--edu-card)!important}.study-top .avatar{background:#fff1f3;color:#ae0932}.study-top a{color:var(--edu-muted)}.study-top a:hover{color:var(--edu-red)}.study-top .top-home{font-size:11px;letter-spacing:0;margin-right:8px}.study-merged a:not(.button):not(.quick-card):not(.collection):not(.edu-logo){color:var(--edu-red-dark)}.study-merged .primary{background:var(--edu-red)!important;border-color:var(--edu-red)!important;color:#fff!important}.study-merged .primary:hover{background:var(--edu-red-dark)!important}.study-merged button:hover,.study-merged .button:hover{background:var(--edu-red-soft);border-color:#f2a8ba;color:#ae0932}.study-merged .eyebrow{color:var(--edu-red)}.study-merged .quick-card:hover{border-color:#f0adbd;box-shadow:0 6px 20px #d6073b08}.study-merged .quick-card:first-child .tool-icon{background:#fff1f3;color:#d6073b}.study-merged .hero{background:linear-gradient(115deg,#0f172a 0%,#17243c 66%,#303049 100%);border:0;color:#fff;padding:34px 32px;min-height:272px}.study-merged .hero .eyebrow{color:#fda4af}.study-merged .hero h2{font-size:31px;color:#fff}.study-merged .hero p{color:#c0c9d8;font-size:13px}.study-merged .hero .button:not(.primary){background:#ffffff0c;border-color:#ffffff35;color:#fff}.study-merged .hero .button:not(.primary):hover{background:#ffffff19}.buddy-hero{position:relative;isolation:isolate;display:grid;place-items:center;min-height:210px}.buddy-hero:before{content:'';position:absolute;width:220px;height:220px;border-radius:50%;background:#ffffff08;border:1px solid #ffffff09;z-index:-1}.buddy-hero>img{width:235px;height:235px;object-fit:contain;filter:drop-shadow(0 12px 20px #0002)}.buddy-caption{position:absolute;right:-4px;bottom:0;padding:7px 12px;border:1px solid #ffffff22;background:#fff;color:#881337;border-radius:9px;box-shadow:0 6px 18px #0002;font-size:11px;transform:rotate(-4deg);font-weight:700}.study-merged .collection .initial{background:#fff6f7;color:#ae0932;border-color:#f8e2e7}.collection .collection-logo{width:46px;height:46px;object-fit:contain;background:#fff;border:1px solid #edf0f5;border-radius:9px;padding:5px;flex-shrink:0}.study-merged .progress-fill{background:var(--edu-red)}.study-merged .plan.recommended{border-color:var(--edu-red);box-shadow:0 8px 30px #d6073b0c}.study-merged .plan .ribbon{background:var(--edu-red)}.study-merged .plan li:before{color:var(--edu-red)}.study-merged .resource .eyebrow{color:#ae0932}.study-merged .pill{background:#eef5f2;color:#366351}.study-merged .resource{box-shadow:0 2px 8px #0f172a03}.original-library{margin-top:10px}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.library-tile{overflow:hidden;border:1px solid var(--edu-line);border-radius:12px;background:var(--edu-card);color:var(--edu-ink)!important;display:block}.library-tile img{width:100%;height:110px;object-fit:cover;background:#fff}.library-tile strong{display:block;padding:12px 14px;font-size:12px}.library-tile:hover{border-color:#f0adbd}.buddy-mini{float:right;width:72px;height:72px;object-fit:contain;margin:-8px -4px 0 8px}.study-merged .empty{border-color:#e3d6da;background:linear-gradient(120deg,#fffafb,#f8fafc)}
#study-upgrade-intro{background:linear-gradient(110deg,#fff1f3,#fff)!important;border-color:#f6d5de!important}#study-upgrade-intro p:first-child{color:#ae0932!important}#study-upgrade-intro>a{background:#d6073b!important}#study-upgrade-intro h2{color:#0f172a}
/* A calm, dismissible study companion. Native popover semantics supplied by the script. */
.edu-buddy{position:fixed;right:22px;bottom:82px;z-index:60;font:13px/1.6 'Plus Jakarta Sans',system-ui,sans-serif;color:#172033}.edu-buddy-launch{position:relative;display:flex;align-items:center;gap:7px;padding:5px 11px 5px 5px!important;background:#fff!important;border:1px solid #f0d5dd!important;border-radius:50px!important;box-shadow:0 6px 22px #0f172a14!important;color:#9f1239!important;font-size:11px!important;font-weight:800;cursor:pointer;transform:none!important}.edu-buddy-launch img{width:52px;height:52px;object-fit:contain;animation:buddy-hello 2s ease-in-out 2}.edu-buddy-launch:hover{box-shadow:0 8px 26px #d6073b24!important}.edu-buddy-panel{width:300px;max-width:calc(100vw - 32px);margin-bottom:12px;padding:22px;background:#fff;border:1px solid #ecdde1;border-radius:18px;box-shadow:0 16px 50px #0f172a22}.edu-buddy-panel[hidden]{display:none!important}.edu-buddy-panel h2{font-size:18px!important;font-weight:800;margin:6px 0!important;letter-spacing:-.5px}.edu-buddy-panel p{font-size:12px!important;color:#64748b;margin:0 0 15px;line-height:1.6}.edu-buddy-panel a,.edu-buddy-panel .buddy-save{display:block;width:100%;text-align:left;padding:10px 12px;margin-top:7px;border:1px solid #e8eaf0;border-radius:9px;color:#172033;background:#f8fafc;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer}.edu-buddy-panel a:hover,.edu-buddy-panel .buddy-save:hover{background:#fff1f3;border-color:#f3c4cf;color:#9f1239}.edu-buddy-panel .buddy-tutor{background:#d6073b;color:#fff;border-color:#d6073b}.edu-buddy-panel .buddy-tutor:hover{background:#ae0932;color:#fff}.buddy-controls{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:16px}.buddy-controls button{padding:0!important;border:0!important;background:none!important;font-size:11px;color:#64748b;box-shadow:none!important;transform:none!important;cursor:pointer}.buddy-controls button:hover{color:#9f1239}.buddy-kicker{font-size:9px;letter-spacing:1.3px;color:#be123c;font-weight:800}.buddy-status{font-size:11px;color:#9f1239;display:block;margin-top:8px}.edu-buddy-launch:focus-visible,.edu-buddy-panel a:focus-visible,.edu-buddy-panel button:focus-visible{outline:3px solid #eab308;outline-offset:3px}.edu-buddy.is-quiet .edu-buddy-launch img{display:none}.edu-buddy.is-quiet .edu-buddy-launch{padding:10px 14px!important;box-shadow:0 2px 8px #0f172a0a!important}.edu-buddy.is-quiet{bottom:24px}.dark{--edu-bg:#0b1220;--edu-card:#111c2e;--edu-ink:#e2e8f0;--edu-muted:#9aabc1;--edu-line:#273449;--edu-red-soft:#341c2a}.dark .edu-rail a:hover,.dark .edu-rail a[aria-current=page]{color:#fda4af!important}.dark .edu-rail .edu-upgrade{background:#291c2a!important;border-color:#4b2436}.dark .edu-upgrade strong{color:#fda4af}.dark .study-merged a:not(.button):not(.quick-card):not(.collection){color:#fda4af}.dark .study-merged .empty{background:#111c2e;border-color:#384055}.dark .study-merged .collection .initial{background:#291c2a;color:#fda4af;border-color:#4b2436}.dark .study-merged .resource .eyebrow{color:#fda4af}.dark #study-upgrade-intro{background:linear-gradient(110deg,#291c2a,#111c2e)!important;border-color:#4b2436!important}.dark #study-upgrade-intro h2{color:#f8fafc}.dark #study-upgrade-intro p:first-child{color:#fda4af!important}.dark .edu-buddy-panel,.dark .edu-buddy-launch{background:#111c2e!important;border-color:#4b2436!important;color:#fda4af!important}.dark .edu-buddy-panel h2{color:#f8fafc}.dark .edu-buddy-panel a:not(.buddy-tutor),.dark .edu-buddy-panel .buddy-save{background:#1b2538;color:#e2e8f0;border-color:#334155}.dark .edu-buddy-panel p{color:#9aabc1}.dark .study-top .avatar{background:#341c2a;color:#fda4af}
@keyframes buddy-hello{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3px) rotate(-4deg)}}
@media(max-width:1100px){.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.buddy-hero>img{width:195px;height:195px}.buddy-hero:before{width:185px;height:185px}.buddy-caption{right:-8px;font-size:10px}.study-merged .hero{padding:28px}.study-merged .hero h2{font-size:28px}}
@media(max-width:1000px){.edu-with-rail{padding-left:0!important}.edu-rail{width:250px}.edu-mobile-menu{color:#172033!important;border-bottom:1px solid #e5e8ef!important}.study-top .top-home{display:none}}
@media(max-width:700px){.buddy-hero{display:none}.study-merged .hero{min-height:0;padding:24px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-tile img{height:95px}.edu-buddy{right:12px;bottom:72px}.edu-buddy-launch{gap:0;padding:3px!important}.edu-buddy-launch img{width:48px;height:48px}.edu-buddy-launch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.edu-buddy.is-quiet .edu-buddy-launch>span{position:static;width:auto;height:auto;clip-path:none}.study-top>span{max-width:55%;line-height:1.5}.buddy-mini{width:60px;height:60px}}
@media(prefers-reduced-motion:reduce){.edu-buddy-launch img{animation:none}}
@media print{.edu-buddy,.edu-rail,.edu-mobile-menu{display:none!important}.edu-with-rail{padding-left:0!important}}
.edu-page-trail{font:11px/1.6 'Plus Jakarta Sans',system-ui,sans-serif;color:#64748b;margin:0 0 22px;display:flex;gap:9px;align-items:baseline;flex-wrap:wrap}.edu-page-trail a{color:#9f1239}.dark .edu-page-trail a{color:#fda4af}
.edu-rail [data-icon]{display:flex;width:19px;flex-shrink:0}.edu-rail [data-icon] svg{width:19px;height:19px}
/* Header links retain their markup; the left navigation now exposes their destinations. */
.edu-with-rail #desktop-nav-container>a,.edu-with-rail #desktop-nav-container>.relative.group{display:none!important}
.edu-with-rail #desktop-nav-container{margin-left:auto;gap:10px}.edu-with-rail #desktop-nav-container>div:last-child{border-left:0!important;padding-left:0!important}
.edu-with-rail #mobile-menu-button,.edu-with-rail #mobile-menu{display:none!important}
.edu-signin{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:10px 20px!important;background:linear-gradient(135deg,#d6073b 0%,#e11d48 50%,#f43f5e 100%)!important;color:#fff!important;border:1px solid rgba(255,255,255,0.25)!important;border-radius:24px!important;font:700 13px/1.3 'Plus Jakarta Sans',system-ui,sans-serif!important;letter-spacing:-.01em!important;white-space:nowrap!important;text-decoration:none!important;box-shadow:0 4px 14px rgba(225,29,72,.35)!important;transition:all .2s cubic-bezier(0.16,1,0.3,1)!important;flex-shrink:0;cursor:pointer}
.edu-signin:hover{transform:translateY(-1.5px) scale(1.02)!important;box-shadow:0 6px 20px rgba(225,29,72,.45)!important;filter:brightness(1.06)!important}
.edu-signin:active{transform:translateY(0) scale(0.98)!important}
html.dark .edu-signin,.dark .edu-signin{background:linear-gradient(135deg,#e11d48 0%,#be123c 100%)!important;box-shadow:0 4px 16px rgba(225,29,72,.4)!important}.edu-with-rail>header>nav{gap:12px}.edu-original-menu,.edu-board-menu{margin:2px 0;color:var(--edu-muted);font-size:12px}.edu-original-menu summary,.edu-board-menu summary{cursor:pointer;padding:10px 12px;font-weight:600;border-radius:9px;list-style-position:inside}.edu-original-menu summary:hover,.edu-board-menu summary:hover{background:var(--edu-red-soft);color:var(--edu-red-dark)}.edu-rail .edu-board-menu a,.edu-rail .edu-original-menu a{padding:7px 12px 7px 29px;font-size:11px}.edu-original-menu[open],.edu-board-menu[open]{background:#f8f9fc;border-radius:10px}.dark .edu-original-menu[open],.dark .edu-board-menu[open]{background:#172236}.edu-account-dialog{padding:30px;border:1px solid #f2dbe2;border-radius:20px;width:420px;max-width:calc(100vw - 32px);background:#fff;color:#172033;box-shadow:0 20px 80px #0f172a30;font:14px/1.6 'Plus Jakarta Sans',system-ui,sans-serif}.edu-account-dialog::backdrop{background:#0f172a88;backdrop-filter:blur(3px)}.edu-account-dialog>img{object-fit:contain;display:block;margin-bottom:20px}.edu-account-dialog h2{font-size:23px;line-height:1.3;margin:8px 0 14px;font-weight:800}.edu-account-dialog p{font-size:12px;color:#64748b}.edu-account-dialog .buddy-kicker{color:#ae0932;font-size:9px}.edu-account-close{position:absolute;right:18px;top:12px;border:0;background:none;font-size:26px;color:#64748b;cursor:pointer}.edu-google-signin,.edu-account-signout{width:100%;padding:12px;border-radius:10px;border:1px solid #d6073b;background:#d6073b;color:#fff;font-weight:700;cursor:pointer;margin:8px 0}.edu-account-dashboard{display:block;text-align:center;padding:10px;color:#ae0932;text-decoration:none}.edu-account-small{font-size:10px!important;border-top:1px solid #e5e8ef;padding-top:16px}.edu-account-browse{display:block;margin:15px auto 0;background:none;color:#64748b;border:0;font-size:12px;cursor:pointer}.edu-account-status{color:#9f1239!important}.edu-account-dialog button:disabled{opacity:.6;cursor:wait}.edu-account-dialog [hidden]{display:none!important}
@media(max-width:700px){.edu-with-rail>header>nav>a:first-child{font-size:17px!important;min-width:0!important}.edu-with-rail>header>nav>a:first-child img{height:32px!important;width:24px!important}.edu-with-rail>header>nav .space-x-4>:not(:first-child){margin-left:10px!important}.edu-signin{padding:9px 12px!important;margin-left:0;font-size:11px}.edu-with-rail>header>nav{gap:8px;padding-left:14px!important;padding-right:14px!important}}
.edu-legacy-controls{display:none!important}.edu-rail-account{display:flex;align-items:center;gap:8px;margin:15px 0 8px;padding-top:14px;border-top:1px solid var(--edu-line)}.edu-rail-account .edu-signin{flex:1;margin:0}.edu-rail-account [data-edu-theme]{padding:9px 12px;border:1px solid var(--edu-line);border-radius:9px;background:var(--edu-card);color:var(--edu-ink);cursor:pointer}.edu-mobile-signin{display:none!important}.edu-menu-scrim[hidden]{display:none!important}.edu-menu-scrim{display:none}.edu-logo,.edu-logo[aria-current]{background:transparent!important;box-shadow:none!important}.edu-logo img,.dark .edu-logo img{filter:none!important;mix-blend-mode:normal!important}.edu-with-rail{background:var(--edu-bg)!important;color:var(--edu-ink);overflow-x:hidden!important;max-width:100vw!important}.edu-with-rail main{padding-top:28px;max-width:1440px}.edu-with-rail main h1{letter-spacing:-.04em;line-height:1.15}.edu-with-rail main>section.text-center{padding:30px 24px;text-align:left!important;background:var(--edu-card);border:1px solid var(--edu-line);border-radius:20px;margin-bottom:28px!important}.edu-with-rail main>section.text-center>div.flex.justify-center{justify-content:flex-start}.edu-with-rail main>section.text-center>p{margin-left:0!important}.edu-with-rail main>section.text-center h1{font-size:clamp(28px,3vw,44px)}.edu-with-rail main .subject-card,.edu-with-rail main .resource-card{border-radius:16px!important;border:1px solid var(--edu-line);box-shadow:0 3px 14px #0f172a06!important}.edu-with-rail main input[type=search],.edu-with-rail main input[type=text]{border-radius:12px;min-height:44px}.edu-with-rail main a:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}.edu-original-hero{border-radius:24px!important;background:linear-gradient(120deg,#111a2f,#19243a 65%,#331b32)!important;margin-bottom:38px!important}.edu-original-hero-copy{padding:36px!important;align-items:flex-start!important;text-align:left!important}.edu-original-hero h1{font-size:clamp(28px,3.4vw,49px)!important;max-width:calc(100% - 250px)!important;margin-bottom:18px!important}.edu-original-hero h1 span{background-image:linear-gradient(90deg,#fda4af,#fb7185)!important}.edu-original-hero-copy>p{font-size:14px!important;max-width:calc(100% - 255px)!important;margin-bottom:24px!important}.edu-original-hero-copy>div.inline-flex{margin-bottom:24px!important}.edu-original-hero-copy>div.flex{margin-bottom:26px!important;gap:10px!important}.edu-original-hero-copy>div.flex>a,.edu-original-hero-copy>div.flex>button{font-size:13px!important;min-width:0!important;padding:12px 18px!important;border-radius:10px!important}.edu-original-hero-copy>div.flex>a{background:#d6073b!important;color:white!important}.edu-home-mascot{position:absolute;right:22px;top:60px;width:240px;height:240px;object-fit:contain;filter:drop-shadow(0 16px 28px #0003)}.edu-hero-preview{max-width:none!important;box-shadow:none!important;margin-top:4px}.edu-hero-preview>.h-10{height:20px!important}.edu-hero-preview>.grid{padding:12px!important;gap:12px!important;grid-template-columns:repeat(3,1fr)!important}.edu-hero-preview .h-32{height:60px!important}.edu-hero-preview .h-32 i{font-size:18px!important;margin-bottom:0!important}.edu-hero-preview .h-32>.w-16{display:none}.edu-hero-preview>.absolute{display:none}.edu-original-hero>.absolute{opacity:.4}#study-upgrade-intro{padding:15px 20px!important;margin-bottom:20px!important;border-radius:12px!important;gap:12px!important}#study-upgrade-intro h2{font-size:17px!important;margin-bottom:3px!important}#study-upgrade-intro p:last-child{font-size:11px!important}#study-upgrade-intro>div>p:first-child{font-size:8px!important;margin-bottom:4px!important}#study-upgrade-intro>a{font-size:11px;padding:10px 14px!important}
@media(max-width:1000px){.edu-mobile-signin{display:inline-flex!important;position:fixed;top:8px;right:12px;z-index:52;padding:9px 14px!important}.edu-mobile-menu{right:100px;width:calc(100% - 100px)!important}.edu-rail{z-index:55;bottom:0;height:calc(100dvh - 52px);overscroll-behavior:contain}.edu-menu-scrim{display:block;position:fixed;inset:52px 0 0;z-index:54;background:#0f172a80;backdrop-filter:blur(3px)}.edu-menu-open{overflow:hidden!important}.edu-rail.inert{visibility:hidden}.edu-original-hero h1{font-size:34px!important}.edu-home-mascot{width:190px;height:190px;right:15px;top:90px}.edu-original-hero h1,.edu-original-hero-copy>p{max-width:calc(100% - 195px)!important}.edu-original-hero-copy{padding:26px!important}}
@media(max-width:640px){.edu-original-hero h1,.edu-original-hero-copy>p{max-width:100%!important}.edu-home-mascot{position:static;align-self:flex-end;width:90px;height:90px;margin-bottom:-75px;opacity:.9}.edu-original-hero-copy>div.inline-flex{font-size:9px;max-width:calc(100% - 82px);padding:6px 8px!important;margin-bottom:32px!important}.edu-original-hero-copy>div.inline-flex span{font-size:8px!important}.edu-original-hero h1{font-size:32px!important}.edu-original-hero-copy>div.flex{flex-direction:row!important;flex-wrap:wrap}.edu-original-hero-copy>div.flex>a,.edu-original-hero-copy>div.flex>button{font-size:11px!important}.edu-with-rail main{padding-top:18px}.edu-with-rail main>section.text-center{padding:22px 18px}.edu-rail{padding-bottom:24px}.edu-buddy-panel{width:280px}.edu-hero-preview .h-32{height:48px!important}}
.reader-launch{display:inline-flex;align-items:center;font:600 10px/1.4 system-ui,sans-serif!important;color:#9f1239!important;border:1px solid #fecdd3!important;border-radius:6px;padding:4px 7px!important;background:#fff1f2!important;margin:4px 8px;white-space:nowrap;text-decoration:none!important}.study-merged .resource .actions{flex-wrap:wrap}.edu-simple-header{display:flex;justify-content:space-between;padding:16px 28px;background:var(--edu-card)}

/* ==========================================================================
   Comprehensive Dark Mode Visibility & Contrast Guard
   ========================================================================== */
html.dark {
  color-scheme: dark;
  background-color: var(--edu-bg) !important;
  color: var(--edu-text) !important;
}
html.dark body {
  background-color: var(--edu-bg) !important;
  color: var(--edu-text) !important;
}
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 {
  color: var(--edu-heading) !important;
}
html.dark .text-slate-900, html.dark .text-gray-900, html.dark .text-black,
html.dark .text-slate-950, html.dark .text-gray-950, html.dark .text-neutral-900,
html.dark .text-zinc-900 {
  color: #f8fafc !important;
}
html.dark .text-slate-800, html.dark .text-gray-800, html.dark .text-neutral-800, html.dark .text-zinc-800 {
  color: #f1f5f9 !important;
}
html.dark .text-slate-700, html.dark .text-gray-700, html.dark .text-neutral-700, html.dark .text-zinc-700 {
  color: #e2e8f0 !important;
}
html.dark .text-slate-600, html.dark .text-gray-600, html.dark .text-neutral-600, html.dark .text-zinc-600 {
  color: #94a3b8 !important;
}
html.dark .text-slate-500, html.dark .text-gray-500, html.dark .text-neutral-500 {
  color: #94a3b8 !important;
}
html.dark .bg-white {
  background-color: var(--edu-card) !important;
  color: var(--edu-text) !important;
  border-color: var(--edu-line) !important;
}
html.dark .bg-slate-50, html.dark .bg-gray-50, html.dark .bg-neutral-50,
html.dark .bg-slate-100, html.dark .bg-gray-100, html.dark .bg-neutral-100 {
  background-color: var(--edu-bg) !important;
  border-color: var(--edu-line) !important;
}
html.dark .bg-slate-200, html.dark .bg-gray-200, html.dark .bg-neutral-200 {
  background-color: #1e293b !important;
}
html.dark .border-slate-200, html.dark .border-gray-200, html.dark .border-gray-300,
html.dark .border-slate-100, html.dark .border-gray-100, html.dark .border-neutral-200 {
  border-color: var(--edu-line) !important;
}
html.dark .hover\:bg-blue-100:hover { background-color: #1e3a8a !important; }
html.dark .hover\:bg-gray-50:hover, html.dark .hover\:bg-slate-50:hover, html.dark .hover\:bg-gray-100:hover { background-color: var(--edu-line) !important; }
html.dark input:not([type="checkbox"]):not([type="radio"]),
html.dark select,
html.dark textarea {
  background-color: #111c2e !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}
html.dark .katex {
  color: #f1f5f9 !important;
}
html.dark .katex .mord, html.dark .katex .mbin, html.dark .katex .mrel,
html.dark .katex .mop, html.dark .katex .mpunct, html.dark .katex .minner {
  color: #f1f5f9 !important;
}
html.dark .guide-section, html.dark .guide-hero {
  background: var(--edu-card) !important;
  border-color: var(--edu-line) !important;
  color: var(--edu-text) !important;
}
html.dark .formula-box {
  background: rgba(244, 63, 94, 0.08) !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
  color: #fda4af !important;
}
html.dark .worked-problem {
  background: #151f32 !important;
  border-color: #24334c !important;
  color: #e2e8f0 !important;
}
html.dark .worked-problem-title { color: #fb7185 !important; }
html.dark .pitfall-box {
  background: rgba(245, 158, 11, 0.12) !important;
  border-left-color: #f59e0b !important;
  color: #fef3c7 !important;
}
html.dark .pitfall-box strong { color: #fbbf24 !important; }
html.dark .diagram-container {
  background: #0b1220 !important;
  border-color: var(--edu-line) !important;
}
html.dark .bilingual-tag { color: #94a3b8 !important; }
html.dark .page {
  background: #111c2e !important;
  color: #e2e8f0 !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}
html.dark .page h1 { color: #f43f5e !important; }
html.dark .page h2 {
  color: #f1f5f9 !important;
  border-bottom-color: #334155 !important;
}
html.dark .page h3, html.dark .page h4, html.dark .page h5, html.dark .page h6 {
  color: #e2e8f0 !important;
}
html.dark .page p, html.dark .page li { color: #cbd5e1 !important; }
html.dark .page-header { border-bottom-color: #334155 !important; }
html.dark .page-header .left { color: #f1f5f9 !important; }
html.dark .page-header .right { color: #94a3b8 !important; }
html.dark .page .formula-box {
  background: #172236 !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}
html.dark .page .info-box {
  background: #2a1520 !important;
  border-left-color: #f43f5e !important;
  color: #fecdd3 !important;
}
html.dark .page .example-box {
  background: #151f30 !important;
  border-color: #24334a !important;
  color: #e2e8f0 !important;
}
html.dark .page .example-box h4 { color: #60a5fa !important; }
html.dark .page::after { color: #475569 !important; }
html.dark svg text { fill: #f1f5f9 !important; }
html.dark svg [stroke="#000"], html.dark svg [stroke="#000000"],
html.dark svg [stroke="#1a2744"], html.dark svg [stroke="#0f172a"],
html.dark svg [stroke="#333"], html.dark svg [stroke="#333333"],
html.dark svg [stroke="#222"] { stroke: #cbd5e1 !important; }
html.dark svg [fill="#000"], html.dark svg [fill="#000000"],
html.dark svg [fill="#1a2744"], html.dark svg [fill="#0f172a"],
html.dark svg [fill="#333"], html.dark svg [fill="#333333"] { fill: #cbd5e1 !important; }
html.dark svg rect[fill="#fff"], html.dark svg rect[fill="#ffffff"],
html.dark svg rect[fill="white"] { fill: #111c2e !important; stroke: #334155 !important; }
html.dark table th {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
html.dark table td {
  border-color: #24334a !important;
  color: #cbd5e1 !important;
}
html.dark table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}
@media print {
  html.dark, html.dark body, html.dark .page {
    background: white !important;
    color: black !important;
  }
  html.dark .page h1 { color: #c0392b !important; }
  html.dark .page h2, html.dark .page h3 { color: #1a2744 !important; }
  html.dark .page p, html.dark .page li { color: black !important; }
  html.dark svg text { fill: black !important; }
}
/* Responsive and keyboard refinements; original content and ad code stay intact. */
.edu-menu-scrim[hidden],.edu-legacy-controls[hidden]{display:none!important}
.edu-with-rail,.edu-with-rail main,.edu-rail,.edu-buddy-panel{box-sizing:border-box}
.edu-rail{max-width:calc(100vw - 36px)}
.edu-rail a,.edu-rail summary,.edu-rail button{min-height:44px;box-sizing:border-box}
.edu-global-search input{box-sizing:border-box}
.edu-menu-open .edu-buddy,.edu-auth-open .edu-buddy{visibility:hidden}
.edu-auth-open{overflow:hidden!important}
.edu-buddy-panel{max-height:calc(100dvh - 160px);overflow-y:auto;overscroll-behavior:contain}
.edu-account-dialog,.edu-auth-box{box-sizing:border-box;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);overflow-y:auto}
.edu-account-dialog [hidden]{display:none!important}
.edu-with-rail [data-resource-unavailable]{cursor:default;opacity:.8}
.edu-unavailable-label{display:block;font:600 11px/1.5 system-ui,sans-serif;color:#64748b;margin-top:6px}
.dark .edu-unavailable-label{color:#a9b8ca}
.reader-heading>div,.study-merged .page-heading>div,.study-merged .collection>div{min-width:0}
.reader-heading h1,.study-merged .collection strong{overflow-wrap:anywhere}
@media(max-width:1000px){.edu-rail{height:calc(100vh - 52px);height:calc(100dvh - 52px)}.edu-mobile-menu{font-size:13px;padding-left:12px}.edu-mobile-signin{min-height:36px}#edu-signin-banner{top:52px!important}}
@media(max-width:700px){.reader-picker input,.reader-picker select,.reader-ai textarea,.study-merged input,.study-merged select,.study-merged textarea,.edu-global-search input{font-size:16px!important}.reader-tabs [role=tab]{min-height:44px}.reader-tabs{position:sticky;top:52px;z-index:10;background:var(--edu-bg);padding:6px 0}.study-merged .filters>*{min-width:0;flex-basis:140px}.edu-buddy{right:12px;bottom:24px}.edu-buddy-panel{max-width:calc(100vw - 24px)}}
@media print{.edu-buddy,.edu-mobile-signin,.edu-menu-scrim,.edu-account-dialog,.reader-launch,#edu-auth-modal,#edu-signin-banner{display:none!important}}
/* A+ learning workspace: quieter surfaces, clearer hierarchy, useful space. */
.edu-with-rail{background:var(--edu-bg);text-rendering:optimizeLegibility}
.edu-with-rail main{scroll-margin-top:72px}
.edu-rail{box-shadow:1px 0 0 #17203305}
.edu-rail .edu-logo{padding-bottom:18px;border-bottom:1px solid var(--edu-line)}
.edu-rail a[aria-current=page]{background:linear-gradient(90deg,var(--edu-red-soft),transparent)!important}
.edu-with-rail .subject-card,.edu-with-rail .resource-card{border:1px solid var(--edu-line);box-shadow:0 3px 14px #17203304}
.edu-with-rail .subject-card:hover,.edu-with-rail .resource-card:hover{border-color:#eda8b9;box-shadow:0 10px 25px #17203309}
.study-merged .panel{box-shadow:0 4px 18px #17203303}
.study-merged .page-heading h2{font-size:32px;letter-spacing:-1.2px;line-height:1.15;margin-bottom:10px}
.study-merged .resource .actions{margin-top:auto;padding-top:18px}
.tutor-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}
.tutor-chat{min-width:0;background:var(--edu-card);border:1px solid var(--edu-line);border-radius:22px;overflow:hidden;box-shadow:0 8px 30px #0f172a04}
.chat-welcome{text-align:center;padding:36px 28px 24px;background:radial-gradient(ellipse at top,#fff0f4,transparent 75%)}
.chat-welcome img{object-fit:contain}.chat-welcome h2{font-size:25px;letter-spacing:-.8px;margin:12px 0}.chat-welcome p{font-size:13px;max-width:460px;margin:0 auto;color:var(--edu-muted)}
.chat-welcome[hidden]{display:none!important}.chat-starters{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:22px}.chat-starters button{font-size:11px;background:var(--edu-card)}
.chat-messages{padding:0 24px;display:flex;flex-direction:column;gap:18px}.chat-messages:not(:empty){padding-top:24px;padding-bottom:24px}
.chat-message{max-width:94%;padding:18px 20px;border:1px solid var(--edu-line);border-radius:16px;overflow-wrap:anywhere;font-size:13px}
.chat-message>strong{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px;margin-bottom:10px;color:var(--edu-muted)}
.chat-message.user{align-self:flex-end;background:var(--edu-red-soft);border-color:transparent}.chat-message.assistant{align-self:flex-start;width:100%;background:var(--edu-card)}
.chat-text{white-space:pre-wrap;line-height:1.85}.chat-message small{display:block;margin-top:12px;color:var(--edu-muted)}.chat-message button{margin-top:16px;font-size:11px}
.chat-composer{padding:22px;border-top:1px solid var(--edu-line);background:var(--edu-card)}.chat-options{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}.chat-options label{font-size:10px;margin:0;flex:1;min-width:150px}.chat-options select{display:block;width:100%;font-size:12px;margin-top:5px}.chat-composer textarea{min-height:125px;background:var(--edu-bg);border-radius:12px;font-size:14px;line-height:1.7}.chat-composer-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px}.chat-attach{margin:0;cursor:pointer;font-size:12px!important}.chat-files{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.chat-files button{font-size:11px;max-width:100%;overflow-wrap:anywhere}.chat-privacy{font-size:10px;line-height:1.7;color:var(--edu-muted);margin:12px 0 0}#chat-status{font-size:12px;line-height:1.6;color:var(--edu-red-dark);margin-bottom:0}
.tutor-guide{padding:8px 0}.tutor-guide h2{font-size:22px;letter-spacing:-.6px;margin:12px 0 22px}.tutor-guide ol{padding-left:21px;font-size:12px}.tutor-guide li{padding:0 0 18px 5px}.tutor-guide li::marker{font-weight:800;color:var(--edu-red)}.tutor-guide li p{margin:5px 0 0;color:var(--edu-muted);line-height:1.7}.tutor-guide>.button{width:100%;font-size:11px}.tutor-plan{padding:20px;margin-top:24px;border-radius:16px;background:var(--edu-red-soft);border:1px solid #f2c9d3}.tutor-plan p{font-size:12px;color:var(--edu-muted);line-height:1.7}.tutor-plan .button{font-size:11px;width:100%}.tutor-guide>button{font-size:11px;margin-top:14px}.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}.dark .chat-welcome{background:radial-gradient(ellipse at top,#341c2a,transparent 75%)}.dark #chat-status{color:#fda4af}
@media(min-width:1450px){.tutor-layout{grid-template-columns:minmax(0,1fr) 300px;gap:32px}}
@media(max-width:1100px){.tutor-layout{grid-template-columns:minmax(0,1fr)}.tutor-guide{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tutor-guide>.eyebrow,.tutor-guide>h2{grid-column:1/-1}.tutor-guide h2{margin:0}.tutor-plan{margin-top:0}}
@media(max-width:640px){.tutor-guide{display:block}.tutor-guide h2{margin:12px 0}.tutor-plan{margin-top:18px}.chat-welcome{padding:26px 16px}.chat-welcome h2{font-size:22px}.chat-messages{padding-left:12px;padding-right:12px}.chat-message{max-width:100%;padding:15px}.chat-composer{padding:16px}.chat-composer textarea,.chat-options select{font-size:16px}.chat-composer-actions>*{min-height:44px}.tutor-chat{border-radius:16px}.page-heading{gap:14px;flex-wrap:wrap}}


/* -- Board dropdown groups in nav */
.edu-board-menu{margin:0;padding:0;border:0}
.edu-board-menu>summary{
  display:flex;align-items:center;gap:11px;
  border-radius:9px;padding:9px 11px;
  color:var(--edu-muted);font-weight:600;font-size:12px;
  cursor:pointer;list-style:none;transition:background .12s,color .12s;
}

/* -- Menu scrim */
.edu-menu-scrim{
  display:none;position:fixed;inset:0;z-index:44;
  background:#0f172a44;
}
.edu-menu-scrim.active{display:block}

/* Shared placement and colour-theme corrections. */
html{background:var(--edu-bg);color-scheme:light}
html.dark{color-scheme:dark}
html.dark body,html.dark main,html.dark section,html.dark article,html.dark aside{border-color:var(--edu-line)}
html.dark input,html.dark textarea,html.dark select,html.dark option,html.dark dialog{
  background-color:var(--edu-card)!important;color:var(--edu-ink)!important;border-color:var(--edu-line)!important;
}
html.dark input::placeholder,html.dark textarea::placeholder{color:var(--edu-muted)!important;opacity:1}
.edu-rail .edu-logo,
.edu-rail .edu-logo:hover,
.edu-rail .edu-logo:active,
.edu-rail .edu-logo[aria-current],
.edu-rail .edu-logo[aria-current=page]{
  background:transparent!important;box-shadow:none!important;color:var(--edu-ink)!important;
}
.edu-rail .edu-logo:focus-visible{background:transparent!important;box-shadow:none!important}
.edu-rail-account .edu-signin,.edu-mobile-signin{
  background:var(--edu-red)!important;color:#fff!important;border-color:var(--edu-red)!important;
  text-decoration:none!important;
}
.edu-rail-account .edu-signin:hover,.edu-mobile-signin:hover{
  background:var(--edu-red-dark)!important;color:#fff!important;text-decoration:none!important;
}
[data-edu-theme]{display:inline-grid!important;place-items:center!important;width:38px;height:38px;padding:8px!important;border:1px solid var(--edu-line)!important;border-radius:9px!important;background:var(--edu-card)!important}
[data-edu-theme] [aria-hidden],[data-edu-theme] svg{display:block;width:18px;height:18px}
.edu-board-menu>summary::after{content:''!important;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:auto}
.edu-board-menu[open]>summary::after{transform:rotate(225deg)}
.edu-with-rail .social-float{
  left:auto!important;right:0!important;border-radius:12px 0 0 12px!important;
  border-left:1px solid var(--edu-line)!important;border-right:0!important;
  box-shadow:-4px 0 15px #0f172a14!important;
}
.chat-welcome,.dark .chat-welcome{background:var(--edu-card)!important}
.dark .chat-starters button{background:var(--edu-bg);color:var(--edu-ink);border-color:var(--edu-line)}
@media(max-width:1050px){.edu-with-rail .social-float{left:auto!important;right:0!important}}

/* ==========================================================================
   VIBRANT TOP BANNER (Replaces old red banner)
   ========================================================================== */
/* ==========================================================================
   VIBRANT TOP BANNER (Redesigned with Mascot, Badge, and Dual Reader CTA)
   ========================================================================== */
.edu-vibrant-top-banner {
  position: relative;
  z-index: 35;
  background: linear-gradient(135deg, #0b1329 0%, #151c36 50%, #2a1122 100%);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
  color: #ffffff;
  padding: 14px 20px;
  margin: 12px 0 24px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  animation: slideBannerDown 0.3s ease-out;
}

.dark .edu-vibrant-top-banner {
  background: linear-gradient(135deg, #090d19 0%, #12182d 50%, #200d1b 100%);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

@keyframes slideBannerDown {
  from { transform: translateY(-16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.edu-banner-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.edu-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.edu-banner-mascot-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.edu-banner-mascot {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.edu-banner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.edu-banner-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.edu-banner-sparkle {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fda4af;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.edu-banner-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.edu-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.edu-banner-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.edu-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.edu-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #d6073b 0%, #e11d48 50%, #f43f5e 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(214, 7, 59, 0.4);
  transition: all 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.edu-banner-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 22px rgba(214, 7, 59, 0.55);
}

.edu-banner-dismiss {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}

.edu-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

@media (max-width: 640px) {
  .edu-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .edu-banner-right {
    width: 100%;
    justify-content: space-between;
  }
  .edu-banner-cta {
    flex: 1;
  }
}

/* ==========================================================================
   IN-PAGE FAST FILTER TOOLBAR
   ========================================================================== */
.edu-filter-toolbar {
  background: var(--edu-card);
  border: 1px solid var(--edu-line);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.edu-filter-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.edu-filter-search-icon {
  position: absolute;
  left: 14px;
  color: var(--edu-muted);
  pointer-events: none;
}

.edu-filter-input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 42px !important;
  background: var(--edu-bg) !important;
  border: 1.5px solid var(--edu-line) !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  color: var(--edu-ink) !important;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.edu-filter-input:focus {
  border-color: var(--edu-red) !important;
  box-shadow: 0 0 0 3px rgba(214, 7, 59, 0.1) !important;
}

.edu-filter-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--edu-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.edu-filter-clear-btn:hover {
  color: var(--edu-ink);
}

.edu-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--edu-line);
  background: var(--edu-bg);
  color: var(--edu-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.edu-filter-chip:hover {
  background: var(--edu-card);
  color: var(--edu-ink);
  border-color: #cbd5e1;
}

.edu-filter-chip.is-active {
  background: var(--edu-red) !important;
  border-color: var(--edu-red) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(214, 7, 59, 0.25);
}

.edu-filter-count {
  font-size: 12px;
  color: var(--edu-muted);
  font-weight: 500;
}

/* ==========================================================================
   VIBRANT SIMPLESTUDY-GRADE RESOURCE CARDS
   ========================================================================== */
.edu-vibrant-card {
  display: flex;
  flex-direction: column;
  background: var(--edu-card);
  border: 1px solid var(--edu-line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  gap: 12px;
  position: relative;
}

.edu-vibrant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

html.dark .edu-vibrant-card:hover,
.dark .edu-vibrant-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.edu-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px 0 !important;
  box-sizing: border-box !important;
}

.edu-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.edu-card-badge.is-memo {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

html.dark .edu-card-badge.is-memo,
.dark .edu-card-badge.is-memo {
  background: rgba(5, 150, 105, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.edu-card-badge.is-qp {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

html.dark .edu-card-badge.is-qp,
.dark .edu-card-badge.is-qp {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.edu-card-badge.is-ab {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

html.dark .edu-card-badge.is-ab,
.dark .edu-card-badge.is-ab {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}

.edu-card-badge.is-guide {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.edu-card-pills {
  display: flex;
  align-items: center;
  gap: 5px;
}

.edu-card-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--edu-bg);
  color: var(--edu-muted);
  border: 1px solid var(--edu-line);
}

.edu-card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px !important;
  box-sizing: border-box !important;
}

.edu-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-card-icon.is-memo {
  background: #ecfdf5;
  color: #059669;
}

html.dark .edu-card-icon.is-memo,
.dark .edu-card-icon.is-memo {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
}

.edu-card-icon.is-qp {
  background: #eff6ff;
  color: #2563eb;
}

html.dark .edu-card-icon.is-qp,
.dark .edu-card-icon.is-qp {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

.edu-card-icon.is-ab,
.edu-card-icon.is-guide {
  background: #faf5ff;
  color: #7c3aed;
}

.edu-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--edu-ink);
  line-height: 1.45;
  flex: 1;
}

.edu-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 18px !important;
  border-top: 1px solid var(--edu-line);
  box-sizing: border-box !important;
}

.edu-btn-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.edu-btn-preview {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.edu-btn-preview:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.dark .edu-btn-preview,
.dark .edu-btn-preview {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

html.dark .edu-btn-preview:hover,
.dark .edu-btn-preview:hover {
  background: rgba(255, 255, 255, 0.14);
}

.edu-btn-split {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.edu-btn-split:hover {
  background: #dbeafe;
  color: #1e40af;
}

html.dark .edu-btn-split,
.dark .edu-btn-split {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

.edu-btn-download {
  background: var(--edu-bg);
  color: var(--edu-muted);
  border-color: var(--edu-line);
}

.edu-btn-download:hover {
  background: var(--edu-card);
  color: var(--edu-ink);
  border-color: #cbd5e1;
}

.edu-btn-ai {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
  margin-left: auto;
}

.edu-btn-ai:hover {
  background: #ffe4e6;
  color: #9f1239;
}

html.dark .edu-btn-ai,
.dark .edu-btn-ai {
  background: rgba(214, 7, 59, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

/* ==========================================================================
   IN-PAGE MODAL PDF PREVIEWER
   ========================================================================== */
.edu-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.edu-preview-modal[hidden] {
  display: none !important;
}

.edu-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.edu-preview-container {
  position: relative;
  background: var(--edu-card);
  border: 1px solid var(--edu-line);
  border-radius: 20px;
  width: 100%;
  max-width: 1060px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.edu-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--edu-line);
  gap: 12px;
  background: var(--edu-card);
}

.edu-preview-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.edu-preview-type-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.edu-preview-type-badge.is-memo {
  background: #ecfdf5;
  color: #059669;
}

.edu-preview-type-badge.is-qp {
  background: #eff6ff;
  color: #2563eb;
}

.edu-preview-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--edu-ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edu-preview-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.edu-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s;
}

.edu-preview-btn-reader {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.edu-preview-btn-reader:hover {
  background: #dbeafe;
}

html.dark .edu-preview-btn-reader,
.dark .edu-preview-btn-reader {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.3);
}

.edu-preview-btn-download {
  background: var(--edu-bg);
  color: var(--edu-ink);
  border: 1px solid var(--edu-line);
}

.edu-preview-btn-download:hover {
  background: #e2e8f0;
}

.edu-preview-close {
  background: transparent;
  border: none;
  color: var(--edu-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.edu-preview-close:hover {
  color: var(--edu-ink);
  background: var(--edu-bg);
}

.edu-preview-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #525659;
}

.edu-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--edu-card);
  color: var(--edu-muted);
  gap: 12px;
  font-size: 14px;
  z-index: 10;
}

.edu-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(214, 7, 59, 0.2);
  border-top-color: #d6073b;
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.edu-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
}

body.edu-modal-open {
  overflow: hidden !important;
}

/* ==========================================================================
   VIBRANT SAAS TOP BANNER (FOR RESOURCE / PAST PAPER PAGES)
   ========================================================================== */
.edu-vibrant-top-banner {
  position: relative;
  margin: 0 0 24px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0b1329 0%, #151c36 50%, #2a1122 100%);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  animation: bannerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dark .edu-vibrant-top-banner {
  background: linear-gradient(135deg, #090d19 0%, #12182d 50%, #200d1b 100%);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

@keyframes bannerSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.edu-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.edu-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.edu-banner-mascot-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.edu-banner-mascot {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  animation: buddy-float 3s ease-in-out infinite;
}

.edu-banner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.edu-banner-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.edu-banner-sparkle {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fda4af;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.edu-banner-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.edu-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.edu-banner-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.edu-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.edu-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  background: #d6073b;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(214, 7, 59, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.edu-banner-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 22px rgba(214, 7, 59, 0.55);
  background: #ae0932;
  color: #ffffff;
}

.edu-banner-dismiss {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.edu-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (max-width: 768px) {
  .edu-vibrant-top-banner {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
  }
  .edu-banner-inner {
    gap: 12px;
  }
  .edu-banner-text {
    display: none;
  }
  .edu-banner-mascot-box {
    width: 44px;
    height: 44px;
  }
  .edu-banner-mascot {
    width: 38px;
    height: 38px;
  }
  .edu-banner-title {
    font-size: 13px;
  }
  .edu-banner-right {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ── Premium Footer Layout ────────────────────────────────────────────────── */
.edu-premium-footer,
.edu-with-rail .edu-premium-footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 24px)) !important;
}

.footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}
.footer-logo img {
  width: 36px !important;
  height: 48px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}
.footer-logo span {
  display: inline-block !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  vertical-align: middle !important;
}
.footer-logo b {
  display: inline !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  color: var(--edu-red, #d6073b) !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1024px) {
  .edu-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }
  .edu-footer-brand {
    grid-column: span 3 !important;
  }
}

@media (max-width: 640px) {
  .edu-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .edu-footer-brand {
    grid-column: span 1 !important;
  }
}

/* ── Dark Mode Footer ─────────────────────────────────────────────────────── */
.dark .edu-premium-footer {
  background: #05090f;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── newfiles section ─────────────────────────────────────────────────────── */
.edu-newfiles-section {
  margin: 32px 0;
  padding: 24px;
  background: var(--edu-card);
  border: 1px solid var(--edu-line);
  border-radius: 16px;
}

.edu-newfiles-grade {
  font-size: 14px;
  font-weight: 700;
  color: var(--edu-ink);
  margin: 18px 0 10px;
}

.edu-newfiles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
}

.edu-newfiles-list li {
  overflow: hidden;
}

.edu-newfiles-list a {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--edu-muted);
  border: 1px solid var(--edu-line);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .15s;
}

.edu-newfiles-list a:hover {
  border-color: var(--edu-red);
  color: var(--edu-red);
  background: var(--edu-red-soft);
}

/* ── Study Timer & Ask Tutor mobile position separation ─────────────────── */
@media (max-width: 1024px) {
  .edu-timer-widget {
    top: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    left: 16px !important;
    right: auto !important;
    z-index: 200 !important;
  }
  .edu-timer-panel {
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    left: 0 !important;
    right: auto !important;
  }
  .edu-buddy {
    top: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    right: 16px !important;
    left: auto !important;
    z-index: 200 !important;
  }
  .edu-buddy-panel {
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
  }
}

body.reader-page .edu-timer-widget,
body.reader-page .edu-buddy,
body.reader-page .edu-buddy-launch,
body.reader-page .edu-buddy-panel {
  display: none !important;
}

/* ── Premium modal body lock ─────────────────────────────────────────────── */
body.edu-modal-open {
  overflow: hidden !important;
}
