/* Teacher-facing library, learning and preparation pages.
   Scoped to the normal site shell: the timed test and admin interfaces are unchanged. */
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare,.page-library) {
    --core-ink:#0d2042;
    --core-muted:#617997;
    --core-blue:#096bea;
    --core-line:#e0ebf5;
    --core-pale:#edf7ff;
}

/* The section trail stays swipeable on small screens. */
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .teacher-section-nav {
    gap:7px;
    padding:0 0 5px;
    margin-bottom:24px;
    border:0;
    scrollbar-width:none;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .teacher-section-nav::-webkit-scrollbar {display:none}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .teacher-section-nav a {
    display:inline-flex;
    align-items:center;
    flex:none;
    min-height:39px;
    padding:9px 14px;
    border:1px solid #dfeaf4;
    border-radius:10px;
    background:#fff;
    color:#526b88;
    text-decoration:none;
    font-size:13px;
    font-weight:650;
    white-space:nowrap;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .teacher-section-nav a:hover {border-color:#a8d1fb;color:#0864d1;background:#f1f8ff}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .teacher-section-nav a.is-current {border-color:#bfdefe;color:#075fcf;background:#e4f2ff}

/* Headings echo the airy blue introduction of the materials workspace. */
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-page-head,.teacher-context-title),
body.site-body.wisdom-shell.page-library .catalog-heading {
    position:relative;
    overflow:hidden;
    padding:28px 30px;
    margin:0 0 24px;
    border:1px solid #dceefb;
    border-radius:18px;
    background:linear-gradient(115deg,#f1faff 0%,#e1f3ff 58%,#cfe8ff 100%);
    box-shadow:none;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-page-head,.teacher-context-title)::after,
body.site-body.wisdom-shell.page-library .catalog-heading::after {
    content:"";
    position:absolute;
    right:-36px;
    bottom:-75px;
    width:195px;
    height:195px;
    border:1px solid rgba(57,145,226,.16);
    border-radius:50%;
    box-shadow:0 0 0 32px rgba(255,255,255,.16),0 0 0 65px rgba(67,159,240,.04);
    pointer-events:none;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-page-head,.teacher-context-title)>*,
body.site-body.wisdom-shell.page-library .catalog-heading>* {position:relative;z-index:1}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-page-head,.teacher-context-title) h1,
body.site-body.wisdom-shell.page-library .catalog-heading h1 {
    margin:7px 0 9px;
    color:#0c1d3f;
    font-size:clamp(1.85rem,3.3vw,2.7rem);
    line-height:1.12;
    letter-spacing:-.04em;
    font-weight:800;
    overflow-wrap:anywhere;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-page-head,.teacher-context-title) p,
body.site-body.wisdom-shell.page-library .catalog-heading p:not(.catalog-overline) {
    max-width:720px;
    color:#526d8d!important;
    font-size:15px;
    line-height:1.55;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-back,.lr-eyebrow,.teacher-context-title .eyebrow),
body.site-body.wisdom-shell.page-library .catalog-overline {color:#3974ad;font-weight:700}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .lr-back {margin-bottom:17px}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-head-icon,.lr-bank-icon,.lr-create-icon) {
    background:#e1f1ff;
    color:#096ce0;
    border-radius:14px;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .lr-head-icon {border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.7);box-shadow:0 8px 20px rgba(33,112,190,.09)}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion) .teacher-context-title>.d-flex {flex-wrap:wrap}

/* White surfaces and restrained, readable form controls. */
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-filter,.lr-create-card,.lr-bank-card,.teacher-empty,.lr-form),
body.site-body.wisdom-shell.page-library :is(.library-search-panel,.library-result) {
    border:1px solid var(--core-line)!important;
    border-radius:15px!important;
    background:#fff;
    box-shadow:0 7px 25px rgba(32,90,151,.045)!important;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-create-card,.lr-bank-card),
body.site-body.wisdom-shell.page-library .library-result {transition:border-color .18s ease,box-shadow .18s ease}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-create-card,.lr-bank-card):hover,
body.site-body.wisdom-shell.page-library .library-result:hover {border-color:#c2def7!important;box-shadow:0 10px 28px rgba(25,92,155,.09)!important}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.teacher-filters,.lr-filter,.lr-form) .form-label,
body.site-body.wisdom-shell.page-library .library-search-panel .form-label {color:#304b6a;font-size:12px;font-weight:700}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.teacher-filters,.lr-filter,.lr-form) :is(.form-control,.form-select),
body.site-body.wisdom-shell.page-library .library-search-panel :is(.form-control,.form-select) {
    min-height:44px;
    border:1px solid #d8e6f2;
    border-radius:10px;
    background-color:#fff;
    color:#29435f;
    font-size:14px;
}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.teacher-filters,.lr-filter,.lr-form) :is(.form-control,.form-select):focus,
body.site-body.wisdom-shell.page-library .library-search-panel :is(.form-control,.form-select):focus {border-color:#66aaf3;box-shadow:0 0 0 3px rgba(9,107,234,.13)}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.teacher-filters,.lr-filter,.lr-form) :is(.form-control,.form-select):disabled,
body.site-body.wisdom-shell.page-library .library-search-panel :is(.form-control,.form-select):disabled {background:#f2f5f8;color:#77899d}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.teacher-filters,.lr-filter,.lr-form) :is(.form-control,.form-select).is-invalid,
body.site-body.wisdom-shell.page-library .library-search-panel :is(.form-control,.form-select).is-invalid {border-color:#c53b49}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.teacher-filters,.lr-filter,.lr-form) :is(.form-control,.form-select).is-valid,
body.site-body.wisdom-shell.page-library .library-search-panel :is(.form-control,.form-select).is-valid {border-color:#25845b}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .lr-filter {padding:16px 18px}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .lr-filter-label {color:#2e4b6d}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .teacher-empty {padding:26px;color:#536d88}
body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .teacher-empty h2 {color:#142c4d}

/* Preparation and creation cards keep their actions in their original order. */
body.site-body.wisdom-shell.page-prepare .lr-path {gap:9px;padding:0;border:0}
body.site-body.wisdom-shell.page-prepare .lr-path span {
    min-height:49px;
    padding:11px 13px;
    border:1px solid #e0edf8;
    border-radius:11px;
    background:#fff;
    color:#466381;
    font-size:13px;
}
body.site-body.wisdom-shell.page-prepare .lr-path span+span {border-left:1px solid #e0edf8}
body.site-body.wisdom-shell.page-prepare .lr-path b {color:#086be1}
body.site-body.wisdom-shell.page-prepare .lr-section-heading h2 {color:#112749;font-size:21px;font-weight:800}
body.site-body.wisdom-shell.page-prepare .lr-bank-card .card-body {padding:22px!important}
body.site-body.wisdom-shell.page-prepare .lr-bank-card h3,
body.site-body.wisdom-shell.page-learning .lr-create-card h2 {color:#152d4d;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
body.site-body.wisdom-shell.page-prepare .lr-bank-card p,
body.site-body.wisdom-shell.page-learning .lr-create-card p {color:#617995;line-height:1.6}
body.site-body.wisdom-shell.page-prepare .lr-guided {border:1px solid #dfedfb;border-radius:12px;background:#f6fbff}
body.site-body.wisdom-shell.page-prepare .lr-guided strong {color:#274a70}
body.site-body.wisdom-shell.page-prepare .lr-bank-card details summary,
body.site-body.wisdom-shell.page-library .library-search-panel details>summary {color:#0968d7;font-weight:700}
body.site-body.wisdom-shell.page-learning .lr-create-grid {gap:16px}
body.site-body.wisdom-shell.page-learning .lr-create-card {padding:24px;gap:17px}
body.site-body.wisdom-shell.page-learning .lr-create-next {border-color:#e6eef6}
body.site-body.wisdom-shell.page-learning .lr-create-icon {width:48px;height:48px}

/* Results remain text-first; no fictitious previews or metrics are added. */
body.site-body.wisdom-shell.page-library .library-shell {--catalog-ink:#102644;--catalog-muted:#657c97;--catalog-line:#e1ebf5;--catalog-accent:#096bea}
body.site-body.wisdom-shell.page-library .library-search-panel .card-body {padding:22px!important}
body.site-body.wisdom-shell.page-library .catalog-results-head h2 {color:#13294b;font-size:21px;font-weight:800}
body.site-body.wisdom-shell.page-library .catalog-results-head h2 span {background:#e8f3ff;color:#086ade}
body.site-body.wisdom-shell.page-library .library-result {overflow:hidden}
body.site-body.wisdom-shell.page-library .library-result::before {content:"";display:block;flex:none;height:5px;background:linear-gradient(90deg,#79bdfc,#c5e7ff)}
body.site-body.wisdom-shell.page-library .library-results>div:nth-child(3n+2) .library-result::before {background:linear-gradient(90deg,#9bdcc9,#dcf7ef)}
body.site-body.wisdom-shell.page-library .library-results>div:nth-child(3n) .library-result::before {background:linear-gradient(90deg,#bfa8f0,#eee7ff)}
body.site-body.wisdom-shell.page-library .library-result .card-body {padding:20px!important}
body.site-body.wisdom-shell.page-library .library-result-tags .badge {border-radius:7px;background:#edf5ff!important;color:#3974ac!important}
body.site-body.wisdom-shell.page-library .library-result-tags .badge:first-child {background:#e5f2ff!important;color:#0869dc!important}
body.site-body.wisdom-shell.page-library .library-result-title {color:#173052;font-size:16px;line-height:1.4;font-weight:750}
body.site-body.wisdom-shell.page-library .library-result :is(.library-result-meta,.library-result-summary) {color:#687f99;line-height:1.55}
body.site-body.wisdom-shell.page-library .library-result-actions {border-color:#edf3f8}
body.site-body.wisdom-shell.page-library .library-shortcuts a {border-color:#dfebf6;background:#fff;color:#477299}
body.site-body.wisdom-shell.page-library .library-shortcuts a:hover {border-color:#bddbfa;color:#0968d7}

/* History tables remain horizontally scrollable on smaller viewports. */
body.site-body.wisdom-shell.page-prepare .table-responsive {max-width:100%;border:1px solid #e8eff6;border-radius:11px}
body.site-body.wisdom-shell.page-prepare .table {margin-bottom:0;color:#334c68}
body.site-body.wisdom-shell.page-prepare .table th {background:#f5faff;color:#526c88;font-size:12px;white-space:nowrap}
body.site-body.wisdom-shell.page-prepare .table :is(th,td) {padding:12px 14px;border-color:#edf2f7;vertical-align:middle}

@media(max-width:767.98px) {
    body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) .teacher-section-nav {margin-bottom:17px}
    body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-page-head,.teacher-context-title),
    body.site-body.wisdom-shell.page-library .catalog-heading {padding:21px 18px;margin-bottom:18px;border-radius:15px}
    body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-page-head,.teacher-context-title) h1,
    body.site-body.wisdom-shell.page-library .catalog-heading h1 {font-size:1.7rem}
    body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-page-head,.teacher-context-title) p,
    body.site-body.wisdom-shell.page-library .catalog-heading p:not(.catalog-overline) {font-size:14px}
    body.site-body.wisdom-shell:is(.page-learning,.page-inclusion) .teacher-context-title>.d-flex {display:grid!important;grid-template-columns:1fr;gap:8px!important}
    body.site-body.wisdom-shell.page-prepare .lr-path {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    body.site-body.wisdom-shell.page-prepare .lr-path span {padding:9px 10px;font-size:12px}
    body.site-body.wisdom-shell.page-prepare .lr-filter-label {width:100%}
    body.site-body.wisdom-shell.page-library .library-search-panel .card-body,
    body.site-body.wisdom-shell.page-library .library-result .card-body {padding:17px!important}
    body.site-body.wisdom-shell.page-learning .lr-create-card {padding:21px}
}
@media(prefers-reduced-motion:reduce) {
    body.site-body.wisdom-shell:is(.page-learning,.page-inclusion,.page-prepare) :is(.lr-create-card,.lr-bank-card),
    body.site-body.wisdom-shell.page-library .library-result {transition:none}
}
