/* A restrained modern bridge between the editorial House and the learning app.
   Intentionally scoped to public entry and course discovery; readers stay intact. */
:root{--tst-electric:#32b4b5;--tst-cornflower:#89c8f1}
body.current-house{--current-night:#12243b;--current-ink:#13243b;--current-ivory:#f4f9fd;--current-gold:#78dbd9;--current-muted:#c6d6e6;--current-line:#466179;background:radial-gradient(ellipse 85% 54% at 80% 2%,#1d4d67,transparent 72%),#12243b;color:#f3f9fd}
.current-house .institution-hero{border-color:rgba(173,211,227,.25)}
.current-house .institution-hero h1,.current-house .current-foyer h1{letter-spacing:-.047em}
.current-house .current-action{background:#48c4c6!important;color:#102d43!important;border:1px solid #48c4c6!important;border-radius:11px;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;font-weight:750;font-size:1rem!important;box-shadow:0 10px 35px rgba(40,174,180,.16);transition:transform .16s,background-color .16s}
.current-house .current-action:hover{background:#72dadd!important;border-color:#72dadd!important;outline:2px solid #a3ecec;outline-offset:3px;transform:translateY(-2px)}
.current-house .home-course-entries>a{background:#19364a;border:1px solid #3a667a!important;border-radius:17px!important;padding:1.5rem!important;transition:background .15s,border-color .15s,transform .15s}
.current-house .home-course-entries>a:hover{background:#1e465b;border-color:#65c5c8!important;transform:translateY(-2px)}
.current-house .home-course-entries h3{letter-spacing:-.025em}
.current-house .institution-section>h2{letter-spacing:-.035em}
.current-house a:focus-visible{outline:3px solid #80e5e2;outline-offset:3px}
body:not(.current-house) .subject-directory,body:not(.current-house) .course-page{--gold:#0c8196}
.subject-directory .catalogue-course,.subject-directory .subject-choice{border-radius:12px}
.subject-directory a:focus-visible{outline:3px solid #18b5bf;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.current-house .current-action,.current-house .home-course-entries>a{transition:none;transform:none!important}}
/* Course discovery and course introductions share the Workspace's fresher
   canvas, while original text, curricula and reader pages are untouched. */
body.tst-refined-directory,body.tst-refined-course{background:#eef5f9;color:#182d40;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.tst-refined-directory .subject-directory,.tst-refined-course .lesson-shell{color:#182d40}
.tst-refined-directory .subject-directory h1,.tst-refined-directory .subject-directory h2,.tst-refined-directory .subject-directory h3,.tst-refined-course .course-overview h1,.tst-refined-course .course-overview h2,.tst-refined-course .course-overview h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.035em;color:#172b40}
.tst-refined-directory .directory-intro{border-bottom:1px solid #bfd7e5;padding-bottom:2.1rem}
.tst-refined-directory .subject-choice{border-color:#c9e0eb;background:#f9fcfe;border-radius:13px}
.tst-refined-directory .catalogue-course{background:white;border:1px solid #d1e2eb;border-radius:16px;padding:1.3rem 1.45rem;box-shadow:0 8px 28px rgba(19,62,94,.035)}
.tst-refined-directory .catalogue-course a,.tst-refined-course .course-overview a{color:#116c94}
.tst-refined-directory .catalogue-course a.text-button{font-weight:690;text-decoration:none}
.tst-refined-directory .catalogue-course a:hover,.tst-refined-course .course-overview a:hover{color:#07486f}
.tst-refined-course .lesson-shell{padding-top:clamp(1.3rem,3vw,2.6rem)}
.tst-refined-course .course-overview{background:white;border:1px solid #d6e5ed;border-radius:18px;box-shadow:0 13px 42px rgba(21,64,94,.05);padding:clamp(1.5rem,4vw,3rem)}
.tst-refined-course .course-overview .learn-button{background:#155fc6;border:1px solid #155fc6;color:white!important;border-radius:11px;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:680;box-shadow:0 6px 20px rgba(25,99,169,.12)}
.tst-refined-course .course-overview .learn-button:hover{background:#104fa9;border-color:#104fa9;color:white!important}
.tst-refined-course .course-overview .course-curriculum{border-color:#d4e6ed}
.tst-refined-course .course-overview summary{cursor:pointer}
.tst-refined-course a:focus-visible,.tst-refined-directory a:focus-visible{outline:3px solid #12a3b0;outline-offset:3px}
@media(max-width:650px){.tst-refined-directory .catalogue-course{padding:1rem}.tst-refined-course .course-overview{padding:1.25rem;border-radius:12px}}
