/* Sanctum Eros v44 learning surface: visual bridge for legacy educational tools while preserving all JS contracts. */
:root{color-scheme:dark}html{scroll-behavior:smooth}body{--se44-ink:#09070a;--se44-surface:#1d111b;--se44-rose:#df8ca8;--se44-text:#f4e6e8;background-color:#0d080e!important;color:#f4e6e8!important;overflow-x:clip;-webkit-font-smoothing:antialiased}
*,*::before,*::after{box-sizing:border-box}img,svg,video,canvas{max-width:100%}main,section,article,.card,.panel,.tool-card,.concept-card{min-width:0}h1,h2,h3,h4{overflow-wrap:break-word}p,li{overflow-wrap:break-word}button,input,select,textarea{font:inherit}a,button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ffd0de!important;outline-offset:3px}
.se44-learning-bar{display:flex;gap:18px;align-items:center;justify-content:space-between;background:#0b080c;border-bottom:1px solid #493042;padding:13px clamp(18px,4vw,55px);position:relative;z-index:40;color:#f4e6e8;font-family:system-ui,-apple-system,sans-serif}
.se44-learning-mark{display:inline-flex;align-items:center;gap:11px;text-decoration:none!important;color:#f4e6e8!important;font-size:14px;font-weight:800;letter-spacing:.12em;white-space:nowrap}
.se44-learning-mark::before{content:'SE';display:grid;place-items:center;width:37px;height:37px;border:1px solid #b46b85;border-radius:50%;font:italic 17px Georgia,serif;color:#f5b8c7}
.se44-learning-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.se44-learning-links a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;border:1px solid #684357;background:#20121b;color:#f8dee6!important;border-radius:8px;min-height:43px;padding:9px 14px;font:700 13px system-ui,-apple-system,sans-serif;white-space:nowrap}
.se44-learning-links a:hover{background:#4b1d35;border-color:#c17c94;color:#fff!important}
.se44-learning-links a:last-child{background:#77304b;border-color:#be7291;color:white!important}
body:has(.se44-learning-bar) h1{letter-spacing:-.025em}body:has(.se44-learning-bar) a:not(.se44-learning-mark):not(.se44-learning-links a){text-underline-offset:4px}
body:has(.se44-learning-bar) .hero,body:has(.se44-learning-bar) .tool-hero,body:has(.se44-learning-bar) .se-resource-intro{background-image:radial-gradient(ellipse at 90% 0%,rgba(118,35,69,.25),transparent 70%)}
body:has(.se44-learning-bar) main{max-width:100%;overflow-wrap:break-word}
body:has(.se44-learning-bar) button,body:has(.se44-learning-bar) [role="button"]{min-height:41px}
body:has(.se44-learning-bar) input,body:has(.se44-learning-bar) select,body:has(.se44-learning-bar) textarea{max-width:100%;accent-color:#b4496d}
/* Library chapters are longform editorial articles rather than small UI cards. */
body:has(.se44-learning-bar) .prose{max-width:min(79ch,100%)}body:has(.se44-learning-bar) .prose p{line-height:1.85}body:has(.se44-learning-bar) .prose h2{font-family:Georgia,serif;letter-spacing:-.025em;line-height:1.22}body:has(.se44-learning-bar) .chapter-nav a{min-width:0}
@media(max-width:620px){.se44-learning-bar{padding:12px 18px;display:grid;gap:11px}.se44-learning-mark{font-size:12px}.se44-learning-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.se44-learning-links a{font-size:11px;text-align:center;white-space:normal;min-height:43px;padding:7px 5px}.se44-learning-mark::before{height:30px;width:30px;font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Keep the richer education navigation where it already exists; visually align it with v44. */
.se-suite,.se-topbar{background:#0b080d!important;border-bottom:1px solid #5a3448!important;color:#f4e6e8!important}
.se-suite a,.se-topbar a{color:#efd5df!important;text-decoration:none!important}
.se-suite a:hover,.se-topbar a:hover{color:#fff!important}
.se-suite .se-wordmark,.se-topbar .se-wordmark{font-weight:800!important;letter-spacing:.15em!important}
body.se-education .se-resource-intro,body.se-education .tool-hero{background-color:#160d16!important;background-image:radial-gradient(ellipse at 80% 0%,rgba(120,37,66,.28),transparent 75%)!important}
body.se-education button,body.se-education [role=button],body.se-education a.button{min-height:42px}
