/* Scholar visual foundations. Photos belong to editorial covers; workspaces use quiet surfaces. */
:root{--scholar-blue:#245aff;--scholar-ink:#0b172e;--scholar-border:#dce3ed;--scholar-muted:#65748b;--scholar-surface:#f8fafc}
body{font-family:Inter,ui-sans-serif,system-ui,sans-serif}
.scholar-logo{display:block;flex-shrink:0;width:auto;height:44px;max-width:172px;object-fit:contain;background:#fff;border-radius:5px;padding:3px 6px;filter:none!important}
.auth-brand .scholar-logo{width:180px;height:76px;max-width:180px;padding:7px 10px;border-radius:8px}
.auth-brand-description{margin-left:0!important;padding-left:24px!important}
.scholar-status-brand{display:flex;justify-content:center;margin:0 auto 28px;width:max-content;max-width:100%}
.scholar-status-brand .scholar-logo{height:60px;max-width:190px}
.scholar-reader-brand{flex-shrink:0}
.scholar-reader-brand .scholar-logo{height:34px;max-width:96px}
.scholar-cover{isolation:isolate;position:relative;overflow:hidden;background:#0b172e;color:#fff;padding:48px 24px}
.scholar-cover-photo,.scholar-cover-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 47%;z-index:-2;pointer-events:none}
.scholar-cover-shade{z-index:-1;background:rgba(7,19,39,.76)}
.scholar-cover>div{position:relative}
.scholar-cover>.max-w-7xl{padding-top:0;padding-bottom:0}
.scholar-cover h1{font-weight:700;letter-spacing:-.035em;line-height:1.2}
.scholar-cover input{border:1px solid #dce3ed;border-radius:8px;box-shadow:none}
.scholar-cover .text-primary-200,.scholar-cover .text-indigo-100,.scholar-cover .text-indigo-200{color:#d5e2f5}
.scholar-home-photo{display:block;width:100%;height:190px;object-fit:cover;object-position:center 45%;border-radius:12px;margin-bottom:24px}
.hero-bg{background:#f8fafc!important}
.scholar-workspace-panel{background:#fff;color:#253149;border:1px solid var(--scholar-border);border-left:3px solid var(--scholar-blue);box-shadow:none}
.scholar-workspace-panel .text-emerald-100,.scholar-workspace-panel .text-indigo-100,.scholar-workspace-panel .text-blue-100{color:var(--scholar-muted)}
.scholar-workspace-panel>.absolute{display:none}
.scholar-workspace-panel button{color:#65748b}
.scholar-workspace-panel a.bg-white{background:#eff4ff;color:#1747db;border:1px solid #dce6ff}
.scholar-workspace-panel .bg-white\/20{background:#eff4ff}
.dark .scholar-workspace-panel{background:#111d31;border-color:#334155;color:#e2e8f0}
.dark .scholar-workspace-panel .text-emerald-100,.dark .scholar-workspace-panel .text-indigo-100,.dark .scholar-workspace-panel .text-blue-100{color:#afbed3}
.dark .scholar-workspace-panel button{color:#afbed3}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--scholar-blue);outline-offset:3px}
@media(max-width:640px){.scholar-logo{height:38px;max-width:128px}.auth-brand .scholar-logo{width:140px;height:62px;max-width:140px;padding:6px}.auth-brand-description{padding-left:14px!important}.auth-brand-description strong{font-size:16px}.auth-brand-description span{font-size:12px}.scholar-cover{padding:36px 20px}.scholar-cover h1{font-size:30px}.scholar-home-photo{height:170px}.scholar-reader-brand .scholar-logo{height:28px;max-width:70px}}
@media(max-width:370px){.auth-brand-description{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
body.font-sans{font-family:Inter,ui-sans-serif,system-ui,sans-serif}
nav .scholar-logo,header .scholar-logo,#sidebar .scholar-logo{height:50px;max-width:174px}
footer .scholar-logo{margin-bottom:16px}
.auth-main{background:#f8fafc}
@media(max-width:640px){nav .scholar-logo,header .scholar-logo,#sidebar .scholar-logo{height:44px;max-width:145px}}
.scholar-workspace-panel h2,.scholar-workspace-panel h3{color:#253149}
.scholar-workspace-panel p[class*="text-white"],.scholar-workspace-panel p[class*="text-blue-"],.scholar-workspace-panel p[class*="text-primary-"],.scholar-workspace-panel p[class*="text-slate-"]{color:#65748b}
.dark .scholar-workspace-panel h2,.dark .scholar-workspace-panel h3{color:#e2e8f0}
.dark .scholar-workspace-panel p[class*="text-white"],.dark .scholar-workspace-panel p[class*="text-blue-"],.dark .scholar-workspace-panel p[class*="text-primary-"],.dark .scholar-workspace-panel p[class*="text-slate-"]{color:#afbed3}
.scholar-workspace-panel p.text-gray-300{color:#65748b}
.dark .scholar-workspace-panel p.text-gray-300{color:#afbed3}
/* Long legal copy retains a clear hierarchy in both colour schemes. */
.scholar-legal-page .prose{line-height:1.75;color:#334155}
.scholar-legal-page .prose h2{font-size:22px;font-weight:700;line-height:1.35;margin:32px 0 12px;color:#17243a}
.scholar-legal-page .prose h3{font-size:18px;font-weight:600;margin:24px 0 10px;color:#17243a}
.scholar-legal-page .prose p{margin:12px 0;line-height:1.75}
.scholar-legal-page .prose ul,.scholar-legal-page .prose ol{padding-left:24px;margin:14px 0}
.scholar-legal-page .prose ul{list-style:disc}.scholar-legal-page .prose ol{list-style:decimal}
.scholar-legal-page .prose li{margin:6px 0}
.dark .scholar-legal-page .prose{color:#cbd5e1}
.dark .scholar-legal-page .prose h2,.dark .scholar-legal-page .prose h3{color:#f1f5f9}
.dark .scholar-legal-page .prose>div[class*="bg-"]{background:#182b46;border-color:#334c6b;color:#d8e5f8}
.dark .scholar-legal-page .prose>div[class*="bg-"] p{color:inherit}
