/* Biuret Academy: a calm workspace with one clear visual hierarchy. */
:root {
  --bg:#090c10; --panel:#12171d; --line:#2a333d; --text:#f3f6f8; --muted:#abb7c3;
  --ui-surface:#11161c; --ui-raised:#171e26; --ui-border:#2b3540;
  --ui-copy:#b6c2ce; --ui-quiet:#94a4b3; --ui-ease:cubic-bezier(.22,.75,.3,1);
}
body { background:var(--bg); -webkit-font-smoothing:antialiased; }
html[lang=ar] :is(h1,h2,h3) { letter-spacing:0!important; }
main :is(h1,h2,h3) { text-wrap:balance; }
main p { text-wrap:pretty; }
:is(a,button,input,textarea,select):focus-visible { outline:2px solid var(--lime); outline-offset:4px; }
button:disabled { cursor:not-allowed; }
button:disabled:hover { transform:none; box-shadow:none; }
.section-frame { max-width:1320px; }
.academy-sidebar,html[dir=rtl] .academy-sidebar {
  background:linear-gradient(180deg,#11181d,#0d1218 70%); border-color:var(--ui-border);
  box-shadow:none; animation:none;
}
.sidebar-top { min-height:86px; border-color:var(--ui-border); }
.sidebar-brand-mark { box-shadow:none; background:#c9ff3908; border-color:#627b36; }
.sidebar-brand-name { font-size:18px; letter-spacing:-.04em; }
.sidebar-scroll { padding:16px 14px; }
.sidebar-group { margin-block-start:18px; }
.navigation-disclosure { color:var(--ui-quiet); font-size:12px; min-height:36px; }
.sidebar-nav a { min-height:46px; padding:8px 13px; font-size:14px; border-radius:12px; color:#bfccd6; }
.sidebar-nav a:hover,html[dir=rtl] .sidebar-nav a:hover { background:#1b242c; border-color:#35434e; color:#fff; }
.sidebar-nav a[aria-current=page],html[dir=rtl] .sidebar-nav a[aria-current=page] {
  background:#c9ff390c; border-color:#51673b; color:var(--lime); box-shadow:none;
}
.sidebar-link-index { width:30px; height:30px; border:0; background:transparent; color:#98aebd; }
.sidebar-nav a:hover .sidebar-link-index,.sidebar-nav a[aria-current=page] .sidebar-link-index { background:transparent; }
.sidebar-link-index svg { width:20px; height:20px; }
.sidebar-bottom { border-color:var(--ui-border); font-size:11px; color:var(--ui-quiet); }
.sidebar-status-dot { box-shadow:none; width:5px; height:5px; }
.site-shell .topbar { background:#0e141beF; border-color:var(--ui-border); padding-inline:clamp(20px,3vw,40px); }
.page-header-context span { font-size:10px; color:#9cabb6; letter-spacing:.12em; }
.page-header-context strong { font-size:14px; color:#e5edf4; }
.nav-actions :is(.portfolio-return,.language-toggle,.reward-chip,.account-button) {
  height:44px; min-height:44px; border-radius:12px; border-color:#2e3a45; background:#141b22; color:#d0dbe5;
  transition:background 160ms,border-color 160ms,transform 160ms var(--ui-ease);
}
.nav-actions :is(.portfolio-return,.language-toggle,.reward-chip,.account-button):hover { background:#202a33; border-color:#536474; box-shadow:none; transform:translateY(-1px); }
.nav-actions .account-button { color:#e2f6c3; background:#c9ff3908; border-color:#526a39; }
.nav-actions .account-avatar { width:28px; height:28px; }
html[dir] .nav-actions .account-button > span { padding:0; }
.nav-actions .account-avatar { box-sizing:border-box; aspect-ratio:1; }
.nav-actions .account-avatar img { width:100%; height:100%; min-width:0; object-fit:cover; }
.button { min-height:46px; border-radius:12px; padding:11px 18px; font-size:14px; font-weight:600; transition:background 160ms,border-color 160ms,transform 160ms var(--ui-ease),box-shadow 160ms; }
.button-primary { box-shadow:0 4px 16px #c9ff3912; }
.button-primary:hover { background:#d7ff70; box-shadow:0 6px 20px #c9ff391a; }
.button-outline { border-color:#3c4c57; background:#141d24; color:#d6e2eb; }
.button-outline:hover { border-color:#738951; background:#1d282b; color:var(--lime); }
.button:active,.nav-actions button:active { transform:translateY(1px); }
.workspace-controls { background:#0f161d; padding:12px clamp(20px,3vw,40px) 0; border-color:var(--ui-border); }
.workspace-trail { font-size:13px; gap:10px; margin-bottom:10px; }
.workspace-trail button { min-height:36px; padding:6px 13px; background:#18212b; border-color:#33414e; border-radius:10px; color:#cad6e1; }
.workspace-trail button:hover { background:#23303d; border-color:#5f7486; }
.workspace-trail a { border-color:#354450; color:#d7e6c3; }
.workspace-tabs { gap:4px; padding-bottom:10px; scrollbar-width:none; scroll-padding-inline:20px; }
.workspace-tabs a { position:relative; min-height:42px; padding:8px 14px; font-size:13px; font-weight:500; color:#b4c1cc; border-radius:11px; transition:background 160ms,color 160ms,border-color 160ms; }
.workspace-tabs a:hover { background:#1d2732; border-color:transparent; }
.workspace-tabs a[aria-current] { color:var(--lime); background:#c9ff390b; border-color:#516739; }
.workspace-tabs a[aria-current]::after { content:''; position:absolute; inset-inline:16px; bottom:-11px; height:2px; background:var(--lime); }
.workspace-tabs .workspace-all { border-color:#34414c; font-size:12px; }
.workspace-surface,#workspace-content { background:var(--bg); }
.workspace-loading { background:#0b1017; gap:14px; color:#d3dee7; font-size:15px; }
.workspace-loading::before { content:''; width:34px; height:34px; border:2px solid #2c3a46; border-top-color:var(--lime); border-radius:50%; animation:ui-spin 800ms linear infinite; }
.workspace-loading::after { content:''; display:block; width:min(340px,70%); height:84px; border-radius:12px; background:linear-gradient(100deg,#141d26 20%,#24323d 45%,#141d26 70%); background-size:300% 100%; animation:ui-load 1.4s linear infinite; opacity:.65; }
#workspace-main[data-state=error] .workspace-loading::before,#workspace-main[data-state=error] .workspace-loading::after { display:none; }
#workspace-main[data-state=ready] #workspace-content { animation:ui-content-in 220ms var(--ui-ease); }
.workspace-embedded { scrollbar-color:#40505f #090c10; }
.workspace-embedded #paths-main { padding:24px clamp(20px,3vw,40px) 44px; }
.workspace-embedded :is(.section-frame,.catalog-finder,.reading-controls) { padding-inline:clamp(20px,3vw,40px); }
.workspace-embedded .catalog-finder { margin-inline:0; }
.ctf-hero h1,.ctf-mission h1 { font-size:clamp(26px,2.7vw,34px); }
.ctf-card { padding:20px; }.ctf-card h2 { font-size:20px; }
.catalog-hero { background:linear-gradient(110deg,#121a23,#0b1016); border-color:var(--ui-border); }
.workspace-embedded .catalog-hero { padding-block:22px 18px; }
.catalog-hero .section-kicker { margin-block-start:0; }
.catalog-body { padding-block:20px 50px; }
.catalog-callout { background:#141f21; border-color:#405249; }
.site-shell[data-page=lesson] .learning-hero h1,.catalog-hero h1,.learning-hero h1,.path-catalog-hero h1 { font-size:clamp(26px,2.7vw,34px); line-height:1.3; }
.catalog-count { margin-block-start:16px; padding:6px 11px; }
.catalog-hero p,.path-catalog-hero p,.path-detail-hero p { font-size:15px; color:var(--ui-copy); line-height:1.85; }
.section-kicker { color:#b6d77e; font-size:11px; letter-spacing:.1em; }
.catalog-finder { padding-block:18px 0; gap:8px 12px; }
.catalog-finder input,.path-search input { background:#111923; border-color:#344350; border-radius:12px; font-size:14px; min-height:48px; }
.catalog-find-status,#path-result-count { color:#a5b6c4; font-size:12px; }
:is(.catalog-card,.library-card,.path-card,.overview-card) { background:linear-gradient(145deg,#171f29,#10161e); border-color:var(--ui-border); border-radius:18px; box-shadow:none; }
:is(.catalog-card,.library-card,.path-card,.overview-card):hover { transform:translateY(-3px); border-color:#6b8651; box-shadow:0 10px 28px #0003; }
.catalog-card { min-height:240px; padding:18px; }
.catalog-card h2 { font-size:20px; margin-block:18px 10px; }
.catalog-card>p,.library-card p,.overview-card p { font-size:14px; line-height:1.85; color:var(--ui-copy); }
.catalog-facts span,.library-summary span { color:#becbd7; background:#18232d; border-color:#344350; font-size:12px; }
.library-card>span { color:#aed783; font-size:11px; }
.library-card small { color:#a9bac8; font-size:12px; }
.library-card h3 { font-size:20px; }
.library-row,.path-resource-row { background:#121a23; border-color:#2f3b47; border-radius:13px; min-height:70px; }
.library-row:hover,.path-resource-row[href]:hover { background:#1a2631; border-color:#6f8854; }
.path-resource-row { padding:14px; gap:12px; }
.path-resource-row strong { font-size:15px; line-height:1.65; }
.path-resource-row small { font-size:13px; color:#a7bac8; line-height:1.8; }
.path-item-number { display:grid; place-items:center; width:34px; height:34px; flex:none; border:1px solid #334450; border-radius:10px; color:#bcd0dc; background:#1b2832; }
.path-item-state { font-size:16px; }
.path-resource-row.is-locked { background:#10171e; opacity:.8; }
.path-resource-row.is-locked .path-item-state { font-size:12px; color:#a4b4c1; }
.path-catalog-hero { padding:22px 30px; max-width:none; border:1px solid #344332; border-radius:22px; background:radial-gradient(ellipse at 95% 0%,#c9ff3910,transparent 60%),#111921; }
.path-catalog-hero p { margin-block:10px; max-width:none; }
.path-catalog-hero h1 { margin-block:12px; }
.path-catalog-hero h1 br { display:none; }
.path-catalog-hero .button { margin-block:4px 8px; }
.path-route { border-color:#33424a; padding-block:12px 0; gap:12px 28px; }
.path-route b { display:grid; place-items:center; width:26px; height:26px; border:1px solid #455636; border-radius:50%; font-size:11px; }
.path-route li { font-size:13px; color:#c6d3df; }
.path-directory-heading { margin-block:24px 16px; }
.path-directory-heading h2 { font-size:27px; }
.path-directory-heading p { font-size:13px; color:#a5b5c3; }
.path-card-grid { gap:16px; }
.path-card { position:relative; padding:18px; }
.path-card h2 { font-size:20px; margin-block:16px 10px; }
.path-card h2 a::after { content:''; position:absolute; inset:0; border-radius:18px; }
.path-card h2 a:focus-visible { outline:none; }
.path-card:has(h2 a:focus-visible) { outline:2px solid var(--lime); outline-offset:4px; }
.path-card-bottom a { position:relative; z-index:1; min-height:44px; align-items:center; }
.path-card>p { font-size:14px; color:var(--ui-copy); }
.path-symbol { background:#c9ff3908; border-color:#496037; width:46px; height:46px; }
.path-symbol svg { width:28px; height:28px; }
.path-badge { border-color:#3a4a55; color:#cad5df; font-size:11px; }
.path-facts { gap:8px 14px; font-size:12px; color:#adbecb; }
.path-card-bottom { border-color:#2c3a46; padding-top:12px; }
.path-card-bottom>span { font-size:12px; color:#a7b8c5; }
.path-card-link { font-size:14px; }
.path-detail-hero { gap:24px; padding-bottom:20px; }
.path-detail-hero h1 { font-size:clamp(26px,2.7vw,34px); margin-block:16px 12px; }
.path-access-card { background:linear-gradient(145deg,#1e2a20,#131c21); border-color:#556d3d; border-radius:20px; }
.path-access-card p { font-size:14px; }
.path-access-card small { font-size:12px; color:#b6c5b6; }
.path-resource-section { margin-bottom:24px; scroll-margin-top:24px; }
.path-resource-section h2 { font-size:20px; }
.path-section-heading p { font-size:14px; color:#a8bac7; }
.path-section-heading>span { padding:6px 10px; border:1px solid #33434e; border-radius:8px; font-size:12px; color:#b3c3cf; }
.path-detail-layout { grid-template-columns:minmax(0,1fr) 220px; gap:24px; }
.path-study-guide { grid-row:auto; position:sticky; top:24px; background:#131c25; border-color:#33424f; padding:20px; }
.path-study-guide h2 { font-size:18px; }
.path-study-guide label,.path-study-guide p { font-size:13px; color:#adbfcc; }
.path-study-guide progress { display:block; border:0; border-radius:99px; height:6px; overflow:hidden; background:#2b3945; }
progress::-webkit-progress-bar { background:#2b3945; border-radius:99px; }
progress::-webkit-progress-value { background:var(--lime); border-radius:99px; }
progress::-moz-progress-bar { background:var(--lime); border-radius:99px; }
.path-outcomes { grid-template-columns:1fr; padding:0; list-style:none; gap:10px; font-size:15px; }
.path-outcomes li { display:flex; align-items:start; gap:12px; padding:12px 16px; background:#121b24; border:1px solid #2f3d48; border-radius:11px; }
.path-outcomes li::before { content:'✓'; color:var(--lime); font-family:var(--font-en); }
.path-assessment-grid article { background:#131c25; border-color:#334550; padding:20px; }
.path-assessment-grid h3 { font-size:20px; }.path-assessment-grid p { font-size:14px; color:#b7c5d1; }
.path-assessment-grid small { color:#a5b8c7; font-size:13px; }.path-assessment-grid a { display:inline-flex; min-height:44px; align-items:center; font-size:14px; }
.profile-identity,.profile-metrics article,.profile-panel { background:var(--ui-surface); border-color:#33424d; }
.profile-identity { background:linear-gradient(120deg,#182521,#141c25); }
.profile-identity { padding:22px; margin-block:22px; gap:20px; }
.profile-metrics article { padding:17px; }
.profile-metrics strong { color:#d0efb6; }
.profile-tags span { border-color:#425447; color:#bfd1c1; }
.profile-panel dt { color:#a6b7c4; font-size:13px; }
.profile-panel dd { color:#e5edf4; font-size:14px; }
.library-reading,.lesson-article { color:#d6e0e9; }
.library-reading { background:#111922; border-color:#33414d; font-size:15px; line-height:1.85; padding:clamp(18px,2.3vw,30px); }
.library-reading h3 { font-size:18px; margin-block:20px 10px; }
.library-reading h2,.lesson-copy h2 { font-size:23px; line-height:1.5; }
.lesson-copy p,.library-reading p { font-size:15px; color:#c3d0dc; line-height:1.85; }
.library-lesson-tools { background:#151f29; border-color:#384956; }
.library-lesson-tools small { color:#acbcc9; font-size:12px; }
.lesson-checkpoint,.lesson-check,.foundation-response { border-color:#4f6540; background:#15201c; }
.practice-form fieldset,.assessment-question { border-color:#334550; background:#121a23; }
.practice-form label,.assessment-question label,.option-label { background:#19232d; border-color:#354655; border-radius:11px; }
.practice-form label:hover,.option-label:hover { border-color:#738653; }
.tool-guide,.library-empty,.library-hint,.panel { background:#131b24; border-color:#33434f; }
.tool-guide summary { min-height:64px; }.tool-guide summary strong { font-size:18px; }
.library-empty { border-style:solid; padding:30px; font-size:15px; color:#bdccd8; }
.site-shell[data-page=home] .hero { padding-block:30px 24px; }
.site-shell[data-page=home] .hero h1 { font-size:clamp(32px,3.3vw,44px); line-height:1.24; }
.home-next-step { border:1px solid #41583c; border-inline-start:3px solid var(--lime); background:#14201c; border-radius:12px; padding:15px 18px; }
.home-next-step:empty { display:none; }
.home-next-step small { color:#b7cbb1; font-size:12px; }.home-next-step strong { font-size:18px; }
.home-overview { padding-block:30px 44px; }.home-overview .section-header { margin-bottom:24px; }
.home-overview .section-header h2 { font-size:27px; line-height:1.4; margin-block:10px; }
.overview-card { min-height:185px; padding:20px; }.overview-card h3 { font-size:20px; }
.auth-dialog { width:min(450px,calc(100% - 28px)); padding:26px; max-height:calc(100dvh - 32px); }
.auth-dialog .dialog-close,.challenge-dialog .dialog-close { left:auto; right:auto; inset-inline-end:14px; top:14px; width:40px; height:40px; }
.challenge-dialog .dialog-heading { padding-left:0; padding-inline-end:44px; }
.auth-heading :is(.section-kicker,h2) { padding-inline-end:44px; }
.auth-heading h2 { font-size:26px; letter-spacing:0; line-height:1.3; }
.auth-heading p { margin-block-end:18px; }
.auth-dialog .signed-in-name { font-size:18px; }
.auth-dialog .full-name-form { margin-block-start:18px; }
.auth-dialog .full-name-form small { line-height:1.7; }
.auth-dialog .signed-in-actions { margin-block-start:18px; }
.auth-dialog #signed-in-box > div:nth-child(2) { overflow-wrap:anywhere; }
.footer { border-color:var(--ui-border); padding-block:24px; }
.ui-enter { animation:ui-content-in 320ms var(--ui-ease) both; }
@keyframes ui-content-in { from { opacity:.4; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes ui-content-out { to { opacity:.5; } }

/* Assessment pages use the same readable scale as courses, including small screens. */
.assessment-hero.section-frame { padding-block:24px 16px; }
.assessment-hero h1 { font-size:clamp(28px,3vw,36px); line-height:1.35; margin-block:12px; }
.assessment-hero p { font-size:14px; line-height:1.8; margin-block:10px; }
.workspace-tabs { scroll-snap-type:x proximity; }
.workspace-tabs a { scroll-snap-align:start; }
@media(max-width:600px) { .assessment-hero.section-frame { padding-block:18px 12px; }.assessment-hero h1 { font-size:28px; }.assessment-body { padding-block-start:12px; } }
@keyframes ui-spin { to { transform:rotate(360deg); } }
@keyframes ui-load { from { background-position:100% 0; } to { background-position:0 0; } }
::view-transition-old(root) { animation:100ms ease-out both ui-content-out; }
::view-transition-new(root) { animation:180ms var(--ui-ease) ui-content-in; }
@media(min-width:1600px) { .path-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:860px) {
  .path-detail-layout { grid-template-columns:1fr; }.path-study-guide { grid-row:auto; position:static; }
  .path-detail-hero { grid-template-columns:1fr; }.path-access-card { max-width:none; }
  .path-catalog-hero { padding:22px; }.path-catalog-hero h1 { font-size:28px; }
}
@media(max-width:760px) {
  .site-shell .topbar { padding:10px 16px; }.page-header-context strong { font-size:13px; }
  .workspace-controls { padding:10px 16px 0; }.workspace-trail { font-size:12px; margin-bottom:6px; }
  .workspace-tabs a { font-size:13px; padding-inline:12px; }.workspace-tabs .workspace-all { margin-inline-start:8px; }
  .workspace-embedded #paths-main,.workspace-embedded :is(.section-frame,.reading-controls) { padding-inline:20px; }
  .workspace-embedded .catalog-finder { padding-inline:0; margin-inline:20px; }
  .path-directory-heading { margin-block:25px 16px; }.path-directory-heading h2 { font-size:24px; }
  .path-catalog-hero { padding:22px; }.path-catalog-hero h1 { font-size:27px; }
  .path-route { gap:12px; }.path-route li { flex-basis:100%; }
  .path-filter-buttons { min-width:0; }.path-filter-buttons button { font-size:12px; padding-inline:12px; }
  .path-filters { gap:12px; }.path-search { min-width:0; flex-basis:100%; }
  .path-resource-row { padding:14px; gap:12px; }.path-resource-row strong { font-size:15px; }
  .path-resource-row small { font-size:13px; }.path-item-number { width:28px; height:28px; font-size:11px; }
  .path-section-heading { flex-wrap:wrap; }.path-section-heading>span { font-size:11px; }
  .path-detail-hero h1 { font-size:27px; }.path-resource-section h2 { font-size:20px; }
  .site-shell[data-page=home] .hero h1 { font-size:32px; }.overview-card { min-height:170px; }
  .auth-dialog { padding:24px 20px; }.auth-heading h2 { font-size:24px; }
  .sidebar-top { min-height:78px; }.nav-actions .account-avatar { width:24px; height:24px; }
}
@media(prefers-reduced-motion:reduce) {
  .ui-enter,#workspace-main[data-state=ready] #workspace-content,.workspace-loading::before,.workspace-loading::after { animation:none; }
  .workspace-loading::before { border-color:var(--lime); }
  :is(.button,.nav-actions button,.path-card,.catalog-card,.library-card,.overview-card):hover { transform:none; }
  ::view-transition-old(root),::view-transition-new(root) { animation:none!important; }
}
