/* Academic learning workspace: persistent navigation and a complete light/dark palette. */
html[data-academic-theme] {
    --aw-page:#f4f5f8; --aw-surface:#fff; --aw-soft:#f7f8fc; --aw-ink:#151b28;
    --aw-muted:#505c70; --aw-accent:#5947bc; --aw-tint:#f0edfc; --aw-line:#e2e5ee;
    --aw-control:#d3d9e5; --aw-header-height:69px; color-scheme:light;
}
html[data-academic-theme="dark"] {
    --aw-page:#101624; --aw-surface:#1a2234; --aw-soft:#202a3f; --aw-ink:#edf0f8;
    --aw-muted:#abb6cc; --aw-accent:#b7a8ff; --aw-tint:#342d53; --aw-line:#334058; --aw-control:#495672;
    --ac-primary:#a5b4ff; --ac-primary-light:#293351; --ac-primary-border:#435582;
    --ac-text:var(--aw-ink); --ac-muted:var(--aw-muted); --ac-border:var(--aw-line); --ac-bg-soft:var(--aw-soft);
    --we-text:var(--aw-ink); --we-muted:var(--aw-muted); --we-bg:var(--aw-page); --we-surface:var(--aw-surface); --we-border:var(--aw-line);
    --public-ink:var(--aw-ink); --public-muted:var(--aw-muted); color-scheme:dark;
}
.ac-page-wrap.aw-shell {display:grid;grid-template-columns:252px minmax(0,1fr);background:var(--aw-page);color:var(--aw-ink);min-height:calc(100dvh - var(--aw-header-height))}
.aw-shell *, .aw-shell *::before, .aw-shell *::after {box-sizing:border-box;min-width:0}
.aw-shell [x-cloak] {display:none!important}
.aw-shell .ac-main-section {width:100%;padding:26px 30px 48px;max-width:1500px;margin:0 auto}
.aw-shell, .aw-shell button, .aw-shell input, .aw-shell select {font-family:Inter,'Hind Siliguri',sans-serif}
.aw-navigation {position:sticky;top:var(--aw-header-height);height:calc(100dvh - var(--aw-header-height));display:flex;flex-direction:column;align-self:start;background:var(--aw-surface);border-right:1px solid var(--aw-line)}
.aw-navigation-brand {display:flex;align-items:center;gap:10px;padding:25px 19px 22px;border-bottom:1px solid var(--aw-line)}
.aw-navigation-mark {width:36px;height:36px;display:grid;place-items:center;flex:none;background:var(--aw-tint);color:var(--aw-accent);border-radius:10px;font-size:19px}
.aw-navigation-brand strong {display:block;font-size:14px;font-weight:750}
.aw-navigation-brand small {display:block;font-size:10px;margin-top:3px;color:var(--aw-muted)}
.aw-navigation-scroll {overflow-y:auto;scrollbar-width:thin;flex:1;padding:22px 12px 16px}
.aw-curriculum-label, .aw-navigation-section h2 {margin:0;font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--aw-muted)}
.aw-curriculum-label {padding:0 7px 14px}
.aw-navigation-selects {display:grid;gap:14px;padding:0 7px 21px}
.aw-shell label>span {display:block;font-size:11px;font-weight:600;margin-bottom:6px;color:var(--aw-muted)}
.aw-shell select, .aw-shell input {font-size:13px;font-weight:500;line-height:1.5;color:var(--aw-ink)}
.aw-shell select {width:100%;min-height:42px;padding:9px 30px 9px 10px;border:1px solid var(--aw-control);border-radius:7px;background:var(--aw-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23828da3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;appearance:none}
.aw-shell select:disabled {opacity:.65;background-color:var(--aw-soft)}
.aw-navigation-section {display:flex;align-items:center;justify-content:space-between;padding:18px 7px 9px;border-top:1px solid var(--aw-line)}
.aw-navigation-section>span {font-size:10px;color:var(--aw-muted)}
.aw-subject-list {display:grid;gap:4px}
.aw-subject {width:100%;display:flex;align-items:center;gap:11px;text-align:left;background:transparent;border:0;border-radius:8px;color:var(--aw-muted);padding:12px 10px;min-height:61px}
.aw-subject>i:first-child {font-size:18px}.aw-subject>i:last-child {font-size:10px;margin-left:auto}
.aw-subject strong {display:block;font-size:12px;font-weight:650;line-height:1.4}
.aw-subject small {display:block;font-size:10px;margin-top:4px;color:var(--aw-muted)}
.aw-subject:hover {background:var(--aw-soft)}.aw-subject.is-active {background:var(--aw-tint);color:var(--aw-accent);box-shadow:inset 3px 0 var(--aw-accent)}
.aw-navigation-links {display:grid;gap:4px;border-top:1px solid var(--aw-line);margin:20px 7px 0;padding-top:13px}
.aw-navigation-links a {display:flex;gap:10px;align-items:center;font-size:11px;min-height:40px;color:var(--aw-muted);text-decoration:none}.aw-navigation-links a:hover {color:var(--aw-accent)}
.aw-navigation-bottom {display:flex;gap:9px;padding:18px 19px;border-top:1px solid var(--aw-line);color:var(--aw-muted);font-size:10px}
.aw-sidebar-backdrop {display:none}
.aw-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}
.aw-page-title {display:flex;align-items:center;gap:12px}.aw-heading h1 {font-size:27px;font-weight:750;line-height:1.3;margin:4px 0;letter-spacing:-.035em;color:var(--aw-ink)}
.aw-heading p {font-size:12px;color:var(--aw-muted);margin:0}.aw-eyebrow {font-size:9px;letter-spacing:.12em;font-weight:700;color:var(--aw-accent)}
.aw-icon-button, .aw-theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--aw-surface);color:var(--aw-ink);border:1px solid var(--aw-control);border-radius:8px;min-height:40px;font-size:11px;font-weight:600;padding:8px 12px}
.aw-icon-button {width:40px;padding:0;flex:none;font-size:18px}.aw-navigation-toggle, .aw-navigation-close {display:none}
.aw-theme-toggle i {font-size:15px;color:var(--aw-accent)}.aw-theme-toggle:hover {background:var(--aw-tint)}
.aw-layout {display:grid;grid-template-columns:minmax(0,1fr) 296px;gap:20px;align-items:start}
.aw-chapters, .aw-quiz, .aw-ranking {border:1px solid var(--aw-line);border-radius:12px;background:var(--aw-surface);box-shadow:0 2px 8px #10162403}
.aw-panel-head {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px;border-bottom:1px solid var(--aw-line)}
.aw-workspace h2 {font-size:15px;line-height:1.4;font-weight:700;margin:0;letter-spacing:-.015em;color:var(--aw-ink)}.aw-panel-head>span {font-size:10px;color:var(--aw-muted)}
.aw-chapters {padding:20px}.aw-chapter-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.aw-chapter-heading h2 {font-size:22px;margin:4px 0}
.aw-muted {font-size:11px;color:var(--aw-muted)}.aw-quiet-link {font-size:12px;font-weight:600;color:var(--aw-accent);text-decoration:none;display:inline-flex;align-items:center;gap:7px;min-height:40px}.aw-quiet-link:hover {color:var(--aw-accent);text-decoration:underline}
.aw-search {display:flex;align-items:center;gap:9px;background:var(--aw-soft);border:1px solid var(--aw-control);border-radius:7px;padding:0 11px;margin-bottom:16px;color:var(--aw-muted)}.aw-search input {width:100%;min-height:41px;border:0;background:transparent;outline:none;font-size:12px}.aw-search input::placeholder {color:var(--aw-muted);opacity:1}
.aw-search:focus-within {outline:2px solid var(--aw-accent);outline-offset:1px}
.aw-chapter-grid {max-height:488px;overflow-y:auto;scrollbar-width:thin;padding:2px 5px 2px 2px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.aw-chapter {display:flex;align-items:center;gap:10px;border:1px solid var(--aw-line);border-radius:9px;background:var(--aw-surface);padding-right:12px}.aw-chapter:hover {border-color:var(--aw-control);background:var(--aw-soft)}.aw-chapter.is-selected {border-color:var(--aw-accent);background:var(--aw-soft);box-shadow:inset 3px 0 var(--aw-accent)}
.aw-chapter-link {display:flex;flex:1;align-items:center;gap:13px;padding:12px 14px;text-decoration:none;color:var(--aw-ink);min-height:69px}.aw-chapter-link:hover {color:var(--aw-ink)}
.aw-chapter-number {background:var(--aw-soft);border:1px solid var(--aw-line);color:var(--aw-muted);min-width:32px;height:34px;display:grid;place-items:center;border-radius:7px;font-size:11px;font-weight:700}.aw-chapter.is-selected .aw-chapter-number {background:var(--aw-tint);color:var(--aw-accent);border-color:transparent}
.aw-chapter-link>span:nth-child(2) {flex:1}.aw-chapter-link strong {font-size:14px;line-height:1.45;font-weight:700;display:block;overflow-wrap:anywhere}.aw-chapter-link small {display:block;font-size:11px;color:var(--aw-muted);margin-top:3px}.aw-chapter-link>i {font-size:14px;color:var(--aw-muted);transition:transform .2s ease,color .2s ease}.aw-chapter-link:hover>i {color:var(--aw-accent);transform:translateX(3px)}
.aw-chapter-quiz {display:flex;flex:none;align-items:center;justify-content:center;gap:6px;width:auto;min-height:36px;padding:7px 11px;border:1px solid var(--aw-line);border-radius:7px;background:var(--aw-surface);color:var(--aw-accent);font-size:11px;font-weight:650}.aw-chapter-quiz:hover {background:var(--aw-tint);border-color:var(--aw-accent)}
.aw-resource-note {font-size:11px;color:var(--aw-muted);margin:16px 0 0;line-height:1.6}.aw-resource-note i {margin-right:5px}
.aw-side {display:grid;gap:18px}.aw-quiz {padding:18px;scroll-margin-top:calc(var(--aw-header-height) + 16px)}.aw-quiz-heading {display:flex;align-items:center;gap:10px;margin-bottom:16px}.aw-quiz-heading>span {width:36px;height:36px;display:grid;place-items:center;background:var(--aw-tint);border-radius:9px;color:var(--aw-accent);font-size:18px}.aw-quiz-heading p {font-size:11px;color:var(--aw-muted);margin:3px 0 0}
.aw-quiz>label {display:block;margin:12px 0}.aw-quiz-meta {display:flex;justify-content:space-between;font-size:11px;color:var(--aw-muted);margin:14px 0}.aw-quiz-empty {font-size:11px;color:var(--aw-muted);line-height:1.6;margin:12px 0}
.aw-quiz-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.aw-quiz-actions a {display:flex;gap:6px;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--aw-control);background:var(--aw-surface);color:var(--aw-accent);border-radius:7px;text-decoration:none;font-size:11px;font-weight:650}.aw-quiz-actions a.aw-primary {background:#6252c7;color:white;border-color:#6252c7}.aw-quiz-actions a:hover {filter:brightness(.95)}.aw-quiz-actions .is-disabled {opacity:.5;pointer-events:none}.aw-load-more {background:transparent;border:0;color:var(--aw-accent);text-decoration:underline;font-size:11px;padding:4px 0}
.aw-ranking-list {list-style:none;margin:0;padding:5px 14px;max-height:260px;overflow-y:auto;scrollbar-width:thin}.aw-ranking-list>li {display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid var(--aw-line)}.aw-ranking-list>li:last-child {border:0}
.aw-rank {display:grid;place-items:center;width:24px;height:24px;flex:none;font-size:10px;font-weight:700;color:var(--aw-muted);background:var(--aw-soft);border-radius:50%}.aw-rank[data-rank="1"] {background:#fff0c8;color:#865b00}.aw-rank[data-rank="2"] {background:#e9edf7;color:#55627e}.aw-rank[data-rank="3"] {background:#ffeddf;color:#8a4f20}
.aw-ranker {flex:1}.aw-ranker strong {font-size:11px;font-weight:650;display:block}.aw-ranker small {display:block;font-size:10px;color:var(--aw-muted);margin-top:3px}.aw-xp {font-size:11px;white-space:nowrap;color:var(--aw-accent)}.aw-xp small {font-size:8px;font-weight:500;color:var(--aw-muted)}
.aw-ranking-link {display:flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border-top:1px solid var(--aw-line);font-size:11px;font-weight:600;color:var(--aw-accent);text-decoration:none}
.aw-empty, .aw-loading {padding:20px 12px;margin:0;color:var(--aw-muted);font-size:12px;line-height:1.7}.aw-loading {display:flex;gap:9px;align-items:center}.aw-error {display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff3f1;padding:10px;border-radius:7px;font-size:12px;color:#a73f35;margin-bottom:14px}.aw-error button {border:0;background:transparent;color:inherit;text-decoration:underline;white-space:nowrap}.aw-fallback {background:var(--aw-surface);padding:20px}.aw-fallback form {display:flex;flex-wrap:wrap;gap:12px}.aw-fallback h2 {margin-top:20px}
.aw-shell :is(a,button,select):focus-visible, .aw-chapter-grid:focus-visible {outline:3px solid var(--aw-accent);outline-offset:3px}
/* The existing blog, practice and guide sections share the workspace palette. */
.aw-shell :is(.ac-blog-card,.ac-mcq-card,.ac-seo-section) {background:var(--aw-surface);border-color:var(--aw-line)}
.aw-shell .ac-seo-card {background:var(--aw-soft)}.aw-shell .ac-btn-practice {background:var(--aw-soft);color:var(--aw-accent);border-color:var(--aw-control)}.aw-shell .ac-btn-quiz {background:#3659e3;color:#fff}
.aw-shell .ac-blog-badge {background:#fff;color:#3659e3}
.aw-shell .ac-promo-slide-item .badge.text-primary {color:#2546b9!important}
.aw-shell .ac-promo-slide-item .text-white-50 {color:#fff!important}
html[data-academic-theme="dark"] :is(.ac-blog-title .text-dark,.ac-seo-section .text-dark) {color:var(--aw-ink)!important}
html[data-academic-theme="dark"] .ac-page-wrap .text-muted {color:var(--aw-muted)!important}
html[data-academic-theme="dark"] .ac-page-wrap .text-primary {color:#a5b4ff!important}
html[data-academic-theme="dark"] .ac-page-wrap .btn-outline-primary {color:#b5c3ff;border-color:#6b80c0}
html[data-academic-theme="dark"] body .ac-blog-link.ut-read-link {background:#293351!important;color:#b5c3ff!important;border-color:#435582!important}
html[data-academic-theme="dark"] body .ac-blog-link.ut-read-link:hover {background:#3b4970!important;color:#fff!important}
html[data-academic-theme="dark"] .aw-error {background:#402528;color:#ffb7ac}
html[data-academic-theme="dark"] .ut-site-header, html[data-academic-theme="dark"] .ut-site-footer, html[data-academic-theme="dark"] :is(.ut-drawer,.modal-content,.ut-mobile-dock) {background:var(--aw-surface);color:var(--aw-ink);border-color:var(--aw-line)}
html[data-academic-theme="dark"] :is(.ut-desktop-nav a,.ut-header-search,.ut-icon-button,.ut-drawer nav a,.ut-mobile-dock a,.ut-mobile-dock button,.ut-site-footer p,.ut-site-footer a,.ut-footer-bottom,.ut-drawer p) {color:var(--aw-muted)}
html[data-academic-theme="dark"] :is(.ut-desktop-nav a.is-active,.ut-desktop-nav a:hover,.ut-brand>span>span,.ut-mobile-dock .is-active) {color:#a5b4ff}
html[data-academic-theme="dark"] .ut-site-footer .ut-brand, html[data-academic-theme="dark"] .ut-brand, html[data-academic-theme="dark"] .ut-drawer h2 {color:var(--aw-ink)}
html[data-academic-theme="dark"] :is(.ut-footer-grid h2,.ut-drawer-section h3) {color:var(--aw-ink)}
html[data-academic-theme="dark"] :is(.ut-mobile-dock a.is-active,.ut-drawer nav a[aria-current="page"]) {background:var(--aw-tint);color:var(--aw-accent)}
html[data-academic-theme="dark"] .ut-site-footer .btn {color:#a5d8ff!important}
html[data-academic-theme="dark"] :is(.ut-icon-button,.ut-drawer-context,.ut-state-options a) {background:var(--aw-soft);border-color:var(--aw-line);color:var(--aw-ink)}
html[data-academic-theme="dark"] .ut-drawer nav a:hover {background:var(--aw-tint);color:var(--aw-accent)}
html[data-academic-theme="dark"] .btn-close {filter:invert(1) grayscale(100%) brightness(200%)}
@media(min-width:992px) and (max-width:1199px) {.ac-page-wrap.aw-shell {grid-template-columns:236px minmax(0,1fr)}.aw-shell .ac-main-section {padding:24px}.aw-layout {grid-template-columns:minmax(0,1fr)}.aw-side {grid-template-columns:1fr 1fr;align-items:start}}
@media(max-width:991px) {
    .ac-page-wrap.aw-shell {display:block}.aw-shell .ac-main-section {padding:22px 20px 38px}
    .aw-navigation {position:fixed;inset:0 auto 0 0;width:min(300px,calc(100vw - 40px));height:100dvh;z-index:1060;visibility:hidden;transform:translateX(-100%);transition:transform .18s ease,visibility .18s ease}
    .aw-navigation.is-open {visibility:visible;transform:none;box-shadow:8px 0 40px #0004}.aw-navigation-brand {padding:22px 17px}.aw-navigation-brand>div {flex:1}
    .aw-navigation-toggle,.aw-navigation-close {display:inline-flex}.aw-navigation-close {width:34px;min-height:36px;font-size:14px}
    .aw-sidebar-backdrop {display:block;position:fixed;inset:0;background:#080e1eb3;z-index:1055}
    html.aw-drawer-open,html.aw-drawer-open body {overflow:hidden}
    .aw-shell select {min-height:44px}.aw-layout {grid-template-columns:minmax(0,1fr) 272px;gap:14px}.aw-chapters {padding:16px}.aw-subject {min-height:64px}
}
@media(max-width:767px) {
    .aw-shell .ac-main-section {padding:18px 12px 30px}.aw-heading {gap:8px;margin-bottom:18px}.aw-heading h1 {font-size:23px}.aw-heading p {font-size:10px}.aw-heading .aw-eyebrow {font-size:8px}.aw-page-title {gap:9px}
    .aw-theme-toggle {width:44px;min-height:44px;padding:0;flex:none}.aw-theme-toggle>span {display:none}.aw-navigation-toggle {width:44px;min-height:44px}
    .aw-layout {grid-template-columns:minmax(0,1fr);gap:14px}.aw-chapters {padding:14px}.aw-chapter-heading {margin-bottom:13px}.aw-chapter-heading h2 {font-size:19px}
    .aw-chapter-grid {gap:7px;max-height:400px}.aw-chapter {gap:4px;padding-right:8px}.aw-chapter-link {padding:11px 8px;gap:9px;min-height:70px}.aw-chapter-link strong {font-size:13px}.aw-chapter-link>i {display:none}.aw-chapter-number {min-width:26px;width:26px;height:30px;font-size:10px}.aw-chapter-quiz {min-height:40px;padding:7px 8px;font-size:10px}.aw-chapter-quiz i {display:none}
    .aw-side {grid-template-columns:minmax(0,1fr)}.aw-ranking-list {max-height:290px}.aw-quiz-actions a,.aw-ranking-link {min-height:44px}.aw-resource-note {font-size:10px}.aw-quiz {padding:16px}
    .aw-shell .ac-section-heading {flex-wrap:wrap;gap:10px}.aw-shell .ac-section-heading h2 {font-size:19px}
}
@media(prefers-reduced-motion:reduce) {.aw-navigation {transition:none}}
