/* Library: editorial catalogue, scoped to preserve the site's navigation. */
.library-page {
    --library-text: #edf4f3;
    --library-muted: #a9b8c4;
    --library-accent: #73dfca;
    --library-border: #ffffff1c;
    --library-surface: #182936;
    --library-soft: #203542;
    --library-hero: #183e3a;
    max-width: 1240px;
    padding-top: 30px;
    padding-bottom: 48px;
    color: var(--library-text);
}
:root[data-theme="light"] .library-page {
    --library-text: #1c3032;
    --library-muted: #617274;
    --library-accent: #087c71;
    --library-border: #dce5e3;
    --library-surface: #fff;
    --library-soft: #f2f6f4;
    --library-hero: #e8f2ed;
}
.library-page *, .library-page *::before, .library-page *::after { box-sizing: border-box; }
.library-page h1, .library-page h2, .library-page h3 { color: var(--library-text); overflow-wrap: anywhere; }
.library-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; color: var(--library-muted); font-size: 13px; }
.library-page .library-breadcrumbs a, .library-page .library-link { color: var(--library-accent); text-decoration: none; }
.library-page .library-link:hover, .library-breadcrumbs a:hover { text-decoration: underline; }
.library-eyebrow { color: var(--library-accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.library-hero { position: relative; display: grid; grid-template-columns: 1fr 290px; align-items: center; gap: 24px; overflow: hidden; padding: 38px 48px; background: var(--library-hero); border-radius: 24px; }
.library-page .library-hero h1 { margin: 14px 0 18px; font-size: clamp(32px, 3.4vw, 46px); font-weight: 650; letter-spacing: -.045em; line-height: 1.13; }
.library-hero h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--library-accent); }
.library-hero p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--library-muted); }
.library-page .library-hero__link { display: inline-flex; align-items: center; gap: 24px; margin-top: 23px; color: var(--library-text); font-size: 13px; font-weight: 650; text-decoration: none; }
.library-hero__link:hover { text-decoration: underline; }
.library-hero__link span { font-size: 20px; }
.library-hero__art { position: relative; height: 230px; width: 260px; justify-self: center; }
.library-art__orbit { position: absolute; width: 230px; height: 230px; top: 0; left: 10px; border-radius: 50%; border: 1px solid #7ba89c50; }
.library-art__book { position: absolute; display: flex; flex-direction: column; justify-content: space-between; width: 142px; height: 202px; border-radius: 3px 10px 10px 3px; box-shadow: -4px 9px 0 #fff8, 0 16px 24px #15342e26; }
.library-art__book--back { background: #ccaa76; transform: rotate(-18deg); top: 7px; left: 32px; }
.library-art__book--front { background: #195e52; color: #f2e6cc; padding: 18px; border-left: 6px solid #164b43; transform: rotate(12deg); top: 15px; left: 82px; }
.library-art__book--front > span:first-child { font-size: 10px; letter-spacing: .12em; }
.library-art__book--front > span:last-child { font-family: Georgia, serif; font-size: 23px; line-height: 1.1; }
.library-art__book svg { width: 55px; height: 55px; }
.library-art__spark { position: absolute; right: -5px; top: -10px; color: var(--library-accent); font-size: 48px; }
.library-categories { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 22px; }
.library-page .library-category { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 20px; border: 1px solid var(--library-border); border-radius: 99px; background: var(--library-surface); color: var(--library-text); text-decoration: none; font-size: 13px; transition: border-color .2s, background .2s; }
.library-category:hover { border-color: var(--library-accent); }
.library-page .library-category.is-active { background: var(--library-text); border-color: var(--library-text); color: var(--library-surface); }
.library-filters { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; align-items: end; gap: 16px; padding: 22px; background: var(--library-surface); border: 1px solid var(--library-border); border-radius: 18px; }
.library-filters > div { min-width: 0; }
.library-filters label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; color: var(--library-muted); }
.library-page .library-filters input:not([type="hidden"]), .library-page .library-filters select { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid var(--library-border); border-radius: 10px; background: var(--library-soft); color: var(--library-text); font-size: 14px; box-shadow: none; }
.library-page .library-filters input::placeholder { color: var(--library-muted); opacity: 1; }
.library-search-input { position: relative; }
.library-search-input svg { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--library-muted); pointer-events: none; }
.library-page .library-search-input input { padding-left: 43px !important; }
.library-page .library-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 99px; background: #77e2cd; color: #103b35; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background .2s; }
.library-page .library-button:hover { background: #a3eddf; color: #103b35; }
.library-page .library-button--secondary { border-color: var(--library-border); background: var(--library-surface); color: var(--library-text); }
.library-page .library-button--secondary:hover { background: var(--library-soft); color: var(--library-text); }
.library-page a:focus-visible, .library-page button:focus-visible, .library-page input:focus-visible, .library-page select:focus-visible { outline: 3px solid var(--library-accent); outline-offset: 4px; }
.library-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 34px 0 20px; }
.library-page .library-section-heading h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.035em; font-weight: 650; }
.library-results { flex-shrink: 0; margin: 0 0 3px; color: var(--library-muted); font-size: 13px; }
.library-results strong { color: var(--library-text); font-weight: 600; }
.library-active-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 20px; font-size: 13px; color: var(--library-muted); overflow-wrap: anywhere; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.library-card { min-width: 0; display: flex; flex-direction: column; }
.library-card__cover { position: relative; display: flex; align-items: center; justify-content: center; height: 318px; padding: 24px 34px; overflow: hidden; border-radius: 16px; background: var(--library-soft); border: 1px solid var(--library-border); text-decoration: none; }
.library-card__cover img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(3px 9px 7px #0003); transition: transform .25s; }
.library-card__cover:hover img { transform: translateY(-5px) rotate(-2deg); }
.library-cover__badge { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; background: var(--library-surface); border-radius: 5px; color: var(--library-muted); font-size: 10px; }
.library-card__content { display: flex; align-items: flex-start; flex-direction: column; flex: 1; gap: 8px; padding: 19px 1px 0; }
.library-card__content .library-eyebrow { font-size: 10px; }
.library-page .library-card h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; margin: 0; }
.library-page .library-card h2 a { color: var(--library-text); text-decoration: none; }
.library-page .library-card h2 a:hover { color: var(--library-accent); }
.library-card p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--library-muted); }
.library-card .library-card__author { color: var(--library-accent); font-size: 14px; }
.library-card .library-card__meta { font-size: 11px; }
.library-card__abstract { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.library-page .library-card__action { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 0 8px; margin-top: auto; border-bottom: 1px solid var(--library-border); color: var(--library-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.library-card__action span { font-size: 20px; color: var(--library-accent); }
.library-card__action:hover { color: var(--library-accent); }
.library-book-jacket { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; padding: 20px; background: #243b55; color: #f3e7cf; border-left: 5px solid #142b43; border-radius: 2px 6px 6px 2px; box-shadow: 3px 8px 12px #0003; overflow: hidden; }
.library-book-jacket--textbook { background: #23554d; border-color: #123e37; }
.library-book-jacket--study_guide { background: #64464d; border-color: #4b2f35; }
.library-book-jacket__label { text-transform: uppercase; font-size: 8px; letter-spacing: .12em; }
.library-book-jacket__title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font: 600 25px/1.1 Georgia, serif; overflow-wrap: anywhere; }
.library-book-jacket__motif { text-align: center; color: #d1ad79; font-size: 50px; line-height: 1; }
.library-book-jacket__author { font-size: 10px; line-height: 1.5; max-height: 3em; overflow: hidden; }
.library-book-jacket__brand { display: flex; justify-content: space-between; border-top: 1px solid #ffffff40; padding-top: 8px; font-size: 9px; }
.library-empty { grid-column: 1 / -1; padding: 36px 24px; text-align: center; border: 1px dashed var(--library-border); border-radius: 20px; background: var(--library-surface); }
.library-empty__icon { color: var(--library-accent); font-size: 48px; }
.library-page .library-empty h2 { margin: 8px 0 10px; font-size: 23px; }
.library-empty p { color: var(--library-muted); font-size: 14px; line-height: 1.8; }
.library-empty .library-link { display: block; margin-top: 16px; }
.library-pagination { margin-top: 32px; }
.library-note { display: flex; align-items: center; gap: 18px; margin-top: 40px; padding: 20px 24px; border-top: 1px solid var(--library-border); border-bottom: 1px solid var(--library-border); }
.library-note > span { font-size: 32px; color: var(--library-accent); }
.library-note p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--library-muted); }
.library-note strong { color: var(--library-text); font-weight: 600; }
.library-detail { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); align-items: start; gap: 48px; }
.library-detail__visual { padding: 32px; background: var(--library-soft); border: 1px solid var(--library-border); border-radius: 20px; }
.library-detail__cover { aspect-ratio: 7 / 10.8; width: 100%; }
.library-detail__cover img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(3px 12px 12px #0003); }
.library-detail__cover .library-book-jacket__title { font-size: 36px; }
.library-detail__caption { display: block; margin-top: 26px; color: var(--library-muted); font-size: 11px; text-align: center; }
.library-page .library-detail h1 { margin: 20px 0 10px; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.2; font-weight: 650; letter-spacing: -.04em; }
.library-detail__author { font-size: 19px; color: var(--library-accent); margin: 0 0 26px; }
.library-detail__access { background: var(--library-surface); border: 1px solid var(--library-border); border-radius: 18px; padding: 24px; margin: 24px 0 30px; }
.library-page .library-detail h2 { font-size: 19px; font-weight: 600; margin: 0 0 16px; }
.library-page .library-detail__access h2 { margin: 10px 0 18px; }
.library-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.library-access-note { color: var(--library-muted); font-size: 12px; margin: 16px 0 0; }
.library-description { margin: 30px 0; }
.library-description p { color: var(--library-muted); font-size: 15px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.library-details { margin: 0; }
.library-details > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--library-border); font-size: 14px; line-height: 1.7; }
.library-details dt { color: var(--library-muted); font-weight: 400; }
.library-details dd { margin: 0; overflow-wrap: anywhere; }
.library-license { padding: 16px 0; margin: 12px 0 0; font-size: 11px; line-height: 1.8; color: var(--library-muted); overflow-wrap: anywhere; }
.library-back { display: inline-block; padding: 16px 0; margin-top: 24px; font-size: 14px; }
@media (max-width: 1100px) { .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .library-hero { padding: 32px; } .library-detail { gap: 30px; grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 767.98px) {
    .library-page { padding-top: 22px; }
    .library-hero { grid-template-columns: 1fr 160px; padding: 28px; gap: 12px; }
    .library-hero__art { transform: scale(.65); transform-origin: center; width: 160px; height: 180px; }
    .library-art__book--back { left: 0; } .library-art__book--front { left: 45px; } .library-art__orbit { left: -30px; }
    .library-art__spark { right: -50px; }
    .library-desktop-break { display: none; }
    .library-filters { grid-template-columns: minmax(0, 1fr) auto; }
    .library-search-field { grid-column: 1 / -1; }
    .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
    .library-detail { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
    .library-detail__visual { padding: 20px; }
    .library-details > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 575.98px) {
    .library-page { width: 100%; padding-left: 18px; padding-right: 18px; }
    .library-breadcrumbs { font-size: 12px; margin-bottom: 18px; gap: 7px; }
    .library-hero { grid-template-columns: 1fr; padding: 26px 24px; border-radius: 18px; }
    .library-hero__art { display: none; }
    .library-hero p { font-size: 13px; }
    .library-categories { gap: 8px; margin: 20px 0 18px; }
    .library-page .library-category { padding: 8px 14px; font-size: 12px; }
    .library-filters { padding: 16px; gap: 14px 10px; }
    .library-page .library-button { padding: 12px 18px; font-size: 13px; gap: 12px; }
    .library-section-heading { align-items: start; gap: 10px; margin-top: 28px; }
    .library-section-heading .library-eyebrow { font-size: 9px; }
    .library-page .library-section-heading h2 { font-size: 22px; }
    .library-results { padding-top: 22px; font-size: 11px; }
    .library-card__cover { height: 240px; padding: 18px 20px; border-radius: 12px; }
    .library-card__content { padding-top: 14px; gap: 6px; }
    .library-page .library-card h2 { font-size: 16px; }
    .library-card .library-card__author { font-size: 12px; }
    .library-card .library-card__abstract { font-size: 12px; }
    .library-book-jacket { padding: 12px; }
    .library-book-jacket__title { font-size: 20px; }
    .library-book-jacket__motif { font-size: 38px; }
    .library-note { padding: 18px 0; gap: 12px; margin-top: 28px; }
    .library-note p { font-size: 12px; }
    .library-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .library-detail__visual { width: 100%; padding: 26px 48px; }
    .library-detail__cover { max-width: 240px; margin: 0 auto; }
    .library-detail__access { padding: 20px; }
    .library-details > div { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 359.98px) { .library-grid { grid-template-columns: minmax(0, 1fr); } .library-card__cover { height: 300px; padding: 24px 50px; } .library-filters { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .library-page * { transition: none !important; } }
/* Keep library fields distinct from global form and visual-effect overrides. */
.library-page .library-filters input:not([type="hidden"]),
.library-page .library-filters select { background: var(--library-soft) !important; color: var(--library-text) !important; }
.library-art__book--front > span:last-child { font-size: 18px; }
.library-book-jacket--normative_document { background: #35463d; border-color: #22352c; color: #f3e9d0; }
.library-book-jacket--normative_document .library-book-jacket__label { font-size: 7px; letter-spacing: .06em; }
.library-book-jacket--normative_document .library-book-jacket__title { font-size: 22px; }
.library-detail__cover .library-book-jacket--normative_document .library-book-jacket__title { font-size: 28px; }

/* Align the discipline catalogue with KipSlide's blue and turquoise theme. */
.disciplines-catalog {
    --library-text:#192f47;
    --library-muted:#63778d;
    --library-accent:#087f89;
    --library-border:rgba(38,105,143,.16);
    --library-surface:rgba(255,255,255,.86);
    --library-soft:#f0f7fb;
    --library-hero:#eaf4fa;
}
:root[data-theme="dark"] .disciplines-catalog {
    --library-text:#f4f9ff;
    --library-muted:#c2d8e8;
    --library-accent:#81f1ff;
    --library-border:rgba(0,217,245,.22);
    --library-surface:linear-gradient(145deg,rgba(11,53,81,.96),rgba(6,34,56,.98));
    --library-soft:#041a2b;
    --library-hero:#062b45;
}
:root:has(.disciplines-catalog) body {
    background:linear-gradient(180deg,#f8fbff 0%,#edf5fa 100%)!important;
}
:root[data-theme="dark"]:has(.disciplines-catalog) body {
    background:radial-gradient(ellipse at 50% 0%,rgba(0,217,245,.12),transparent 44%),linear-gradient(180deg,#021321 0%,#041a2b 48%,#06233a 100%)!important;
}
.disciplines-catalog .library-breadcrumbs,
.disciplines-catalog .library-results,
.disciplines-catalog .library-active-filters {
    color:var(--library-muted);
}
.disciplines-catalog .library-breadcrumbs a,
.disciplines-catalog .library-active-filters .library-link {
    color:var(--library-accent);
}
.disciplines-catalog .library-catalog-heading h1 {
    color:var(--library-text)!important;
    background:none!important;
    -webkit-text-fill-color:var(--library-text);
}
.disciplines-catalog .library-catalog-heading h1::after {
    background:linear-gradient(90deg,#00d9f5,#35d0b0)!important;
}
.disciplines-catalog .library-catalog-heading .library-results strong {
    color:var(--library-text);
}
.disciplines-catalog .discipline-search-form {
    border-color:var(--library-border)!important;
    border-radius:18px!important;
    background:var(--library-surface)!important;
    box-shadow:0 14px 34px rgba(20,54,78,.07),inset 0 1px 0 rgba(255,255,255,.5);
}
:root[data-theme="dark"] .disciplines-catalog .discipline-search-form {
    box-shadow:0 16px 36px rgba(0,8,18,.3),inset 0 1px 0 rgba(129,241,255,.07);
}
.disciplines-catalog .discipline-search-form label,
.disciplines-catalog .discipline-facets .library-eyebrow {
    color:var(--library-muted);
}
.disciplines-catalog .discipline-search-form .library-search-input input {
    border-color:var(--library-border)!important;
    border-radius:999px;
    background:var(--library-soft)!important;
    color:var(--library-text)!important;
}
.disciplines-catalog .discipline-search-form .library-search-input svg {
    color:var(--library-accent);
}
.disciplines-catalog .discipline-search-form .library-button,
.disciplines-catalog .discipline-card__open {
    border-color:#00b9d1;
    color:#032f4b;
    background:linear-gradient(135deg,#00d9f5,#35d0b0);
    box-shadow:0 6px 16px rgba(0,174,225,.15);
}
.disciplines-catalog .discipline-search-form .library-button:hover,
.disciplines-catalog .discipline-card__open:hover {
    color:#032f4b;
    background:linear-gradient(135deg,#35d0b0,#00d9f5);
}
.disciplines-catalog .discipline-facets {
    margin:0 0 1.25rem;
}
.disciplines-catalog .discipline-facets .library-eyebrow {
    margin-bottom:.65rem;
}
.disciplines-catalog .discipline-facets .library-categories {
    gap:8px;
}
.disciplines-catalog .discipline-facets .library-category {
    border-color:var(--library-border);
    border-radius:999px;
    color:var(--library-muted);
    background:var(--library-surface);
    transition:border-color .18s,color .18s,transform .18s,box-shadow .18s;
}
.disciplines-catalog .discipline-facets .library-category:hover {
    border-color:var(--library-accent);
    color:var(--library-text);
    transform:translateY(-1px);
}
.disciplines-catalog .discipline-facets .library-category.is-active {
    border-color:#00b9d1;
    color:#032f4b;
    background:linear-gradient(135deg,#00d9f5,#35d0b0);
    box-shadow:0 6px 16px rgba(0,174,225,.18);
}
.disciplines-catalog .discipline-card {
    border:1px solid var(--library-border)!important;
    border-radius:20px;
    background:var(--library-surface)!important;
    box-shadow:0 12px 30px rgba(20,54,78,.07),inset 0 1px 0 rgba(255,255,255,.5);
    transition:border-color .2s,transform .2s,box-shadow .2s;
}
:root[data-theme="dark"] .disciplines-catalog .discipline-card {
    box-shadow:0 12px 30px rgba(0,8,18,.3),inset 0 1px 0 rgba(129,241,255,.08);
}
.disciplines-catalog .discipline-card:hover {
    border-color:rgba(0,174,225,.55);
    background:var(--library-surface);
    box-shadow:0 18px 38px rgba(20,54,78,.12),inset 0 1px 0 rgba(255,255,255,.55);
    transform:translateY(-3px);
}
:root[data-theme="dark"] .disciplines-catalog .discipline-card:hover {
    box-shadow:0 18px 38px rgba(0,8,18,.4),inset 0 1px 0 rgba(129,241,255,.12);
}
.disciplines-catalog .discipline-card__cover {
    border-color:var(--library-border)!important;
    border-radius:16px;
    background:var(--library-soft);
}
.disciplines-catalog .discipline-card__cover--featured {
    display:block;
    padding:0;
}
.disciplines-catalog .discipline-card__cover--featured .discipline-card__cover-image {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:none;
}
.disciplines-catalog .library-book-jacket,
.disciplines-catalog .library-book-jacket--normative_document {
    border-color:rgba(0,217,245,.34);
    border-radius:12px;
    color:#f4f9ff;
    background:radial-gradient(ellipse at 100% 0%,rgba(0,217,245,.2),transparent 48%),linear-gradient(145deg,#0b3551,#062238);
    box-shadow:inset 0 1px 0 rgba(129,241,255,.16);
}
.disciplines-catalog .library-book-jacket__label,
.disciplines-catalog .library-book-jacket__author,
.disciplines-catalog .library-book-jacket__brand {
    color:#c2d8e8;
}
.disciplines-catalog .library-book-jacket__motif {
    color:#81f1ff;
}
.disciplines-catalog .library-cover__badge {
    border:1px solid var(--library-border)!important;
    border-radius:999px;
    color:var(--library-text)!important;
    background:var(--library-surface)!important;
}
.disciplines-catalog .discipline-card__content h2 a {
    color:var(--library-text)!important;
    -webkit-text-fill-color:var(--library-text)!important;
}
:root[data-theme="light"] .disciplines-catalog .discipline-card__content h2 a {
    color:#192f47!important;
    -webkit-text-fill-color:#192f47!important;
}
:root[data-theme="dark"] .disciplines-catalog .discipline-card__content h2 a {
    color:#f4f9ff!important;
    -webkit-text-fill-color:#f4f9ff!important;
}
.disciplines-catalog .discipline-card__content h2 a:hover,
.disciplines-catalog .discipline-card__resources a:hover {
    color:var(--library-accent);
}
.disciplines-catalog .library-card__type {
    border:1px solid var(--library-border)!important;
    border-radius:999px;
    padding:3px 9px;
    color:var(--library-accent)!important;
    background:rgba(0,174,225,.08)!important;
    font-size:10px;
}
.disciplines-catalog .discipline-card__section h3 {
    color:var(--library-text);
}
.disciplines-catalog .discipline-subunit {
    border-color:var(--library-border)!important;
    color:var(--library-text)!important;
    background:var(--library-soft)!important;
}
.disciplines-catalog .discipline-subunit:hover {
    border-color:var(--library-accent);
    color:var(--library-accent);
    background:var(--library-soft);
}
.disciplines-catalog .discipline-card__more summary {
    border-color:var(--library-accent);
    color:var(--library-accent);
}
.disciplines-catalog .discipline-card__module {
    border-color:var(--library-border)!important;
    color:var(--library-accent)!important;
    -webkit-text-fill-color:var(--library-accent)!important;
}
:root[data-theme="light"] .disciplines-catalog .discipline-card__module {
    color:#087f89!important;
    -webkit-text-fill-color:#087f89!important;
}
:root[data-theme="dark"] .disciplines-catalog .discipline-card__module {
    color:#81f1ff!important;
    -webkit-text-fill-color:#81f1ff!important;
}
.disciplines-catalog .discipline-card__module:hover {
    color:var(--library-text);
}
.disciplines-catalog .discipline-card__resources a,
.disciplines-catalog .discipline-card__resources a span {
    color:var(--library-muted)!important;
}
.disciplines-catalog .discipline-card__resources a span {
    border-radius:999px;
    background:rgba(0,174,225,.08);
    padding:2px 6px;
}
.disciplines-catalog .discipline-card__footer {
    border-color:var(--library-border);
}
.disciplines-catalog .discipline-card__counts,
.disciplines-catalog .discipline-card__counts strong {
    color:var(--library-muted)!important;
}
.disciplines-catalog .discipline-card__counts strong {
    color:var(--library-text)!important;
}
.disciplines-catalog .library-empty {
    border-color:var(--library-border);
    border-radius:20px;
    background:var(--library-surface);
}
.disciplines-catalog .library-empty h2 {
    color:var(--library-text);
}
.disciplines-catalog .library-empty p {
    color:var(--library-muted);
}
.disciplines-catalog .library-pagination .page-link {
    border-color:var(--library-border);
    border-radius:9px;
    color:var(--library-text);
    background:var(--library-surface);
}
.disciplines-catalog .library-pagination .page-item.active .page-link {
    border-color:#00b9d1;
    color:#032f4b;
    background:linear-gradient(135deg,#00d9f5,#35d0b0);
}
.disciplines-catalog :is(a,button,input,summary):focus-visible {
    outline-color:#00aeca;
    outline-offset:3px;
}
:root[data-theme="dark"] .disciplines-catalog :is(a,button,input,summary):focus-visible {
    outline-color:#81f1ff;
}
@media(max-width:575.98px) {
    .disciplines-catalog .discipline-card {
        border-radius:16px;
    }
    .disciplines-catalog .discipline-card__cover {
        border-radius:12px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .disciplines-catalog :is(.discipline-card,.library-category,.discipline-subunit,.library-book-jacket img) {
        transition:none;
    }
}

/* Compact catalogue proportions based on the reference category page. */
.library-catalog { max-width: 1140px; padding-top: 26px; padding-bottom: 56px; }
.library-catalog .library-breadcrumbs { margin-bottom: 30px; font-size: 14px; }
.library-catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.library-page .library-catalog-heading h1 { display: inline; margin: 0; padding-bottom: 5px; font-size: 24px; font-weight: 500; line-height: 30px; letter-spacing: -.02em; background: linear-gradient(#77e2cd80, #77e2cd80) 0 100% / 100% 7px no-repeat; }
.library-catalog .library-results { margin: 0; font-size: 12px; }
.library-catalog .library-categories { margin: 0 0 18px; gap: 8px; }
.library-catalog .library-category { min-height: 36px; padding: 7px 16px; font-size: 12px; }
.library-catalog .library-filters { padding: 16px; gap: 14px; margin-bottom: 28px; border-radius: 14px; grid-template-columns: minmax(0, 1fr) auto; }
.library-catalog .library-filters label { font-size: 11px; margin-bottom: 7px; }
.library-catalog .library-filters input:not([type="hidden"]), .library-catalog .library-filters select { min-height: 42px; height: 42px; padding-top: 9px; padding-bottom: 9px; font-size: 13px; }
.library-catalog .library-search-input svg { top: 11px; }
.library-catalog .library-button { min-height: 42px; padding-top: 9px; padding-bottom: 9px; }
.library-catalog .library-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 27.5px; align-items: stretch; }
.library-catalog .library-card { overflow: hidden; border: 0; border-radius: 16px; background: var(--library-surface); box-shadow: none; }
.library-catalog .library-card__cover { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 16px; background: var(--library-soft); }
.library-catalog .library-card__cover img { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; }
.library-catalog .library-card__cover:hover img { transform: scale(1.025); }
.library-catalog .library-cover__badge { top: 10px; right: 10px; bottom: auto; padding: 5px 7px; background: #77e2cd; color: #123b34; font-weight: 600; font-size: 9px; border-radius: 20px; }
.library-catalog .library-card__content { padding: 16px 16px 12px; gap: 8px; }
.library-catalog .library-card h2 { width: 100%; height: 60px; margin: 0; font-size: 16px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
.library-catalog .library-card h2 a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.library-catalog .library-card .library-card__author { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--library-muted); }
.library-catalog .library-card__type { display: block; max-width: 100%; margin-top: auto; padding: 3px 8px; border-radius: 20px; background: #8a62bb; color: #fff; font-size: 10px; font-weight: 500; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-catalog .library-card__action { margin: 0; padding: 6px 0 0; border: 0; font-size: 11px; font-weight: 500; }
.library-catalog .library-card__action span { font-size: 16px; }
.library-catalog .library-book-jacket { border-radius: 16px; padding: 18px; box-shadow: none; }
.library-catalog .library-book-jacket__title { font-size: 25px; }
.library-catalog .library-book-jacket--normative_document .library-book-jacket__title { font-size: 22px; }
.library-catalog .library-book-jacket__label { padding-right: 30px; font-size: 7px; }
.library-catalog .library-active-filters { margin-top: -10px; }
@media (max-width: 1199.98px) {
    .library-catalog { max-width: 960px; }
    .library-catalog .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 991.98px) {
    .library-catalog { max-width: 740px; }
    .library-catalog .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
    .library-catalog .library-filters { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
}
@media (max-width: 767.98px) {
    .library-catalog { max-width: 560px; }
    .library-catalog .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
    .library-catalog .library-filters { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 575.98px) {
    .library-catalog { padding: 20px 18px 40px; }
    .library-catalog .library-breadcrumbs { margin-bottom: 24px; font-size: 12px; }
    .library-catalog-heading { gap: 12px; align-items: baseline; }
    .library-page .library-catalog-heading h1 { font-size: 23px; }
    .library-catalog .library-results { flex-shrink: 1; font-size: 10px; text-align: right; }
    .library-catalog .library-category { padding: 7px 12px; font-size: 11px; }
    .library-catalog .library-filters { padding: 14px; margin-bottom: 24px; }
    .library-catalog .library-grid { gap: 24px 16px; }
    .library-catalog .library-card { border-radius: 12px; }
    .library-catalog .library-card__cover { border-radius: 12px; }
    .library-catalog .library-card__content { padding: 12px 10px; gap: 7px; }
    .library-catalog .library-card h2 { height: 60px; font-size: 14px; line-height: 20px; }
    .library-catalog .library-card .library-card__author { font-size: 12px; }
    .library-catalog .library-book-jacket { padding: 12px; border-radius: 12px; }
    .library-catalog .library-book-jacket__title { font-size: 22px; }
    .library-catalog .library-book-jacket--normative_document .library-book-jacket__title { font-size: 19px; }
    .library-catalog .library-book-jacket__motif { font-size: 38px; }
    .library-catalog .library-book-jacket__author { font-size: 9px; }
    .library-catalog .library-cover__badge { top: 8px; right: 8px; font-size: 8px; }
}
@media (max-width: 359.98px) {
    .library-catalog .library-filters { grid-template-columns: minmax(0, 1fr); }
    .library-catalog .library-grid { gap: 20px 12px; }
    .library-catalog .library-book-jacket__title, .library-catalog .library-book-jacket--normative_document .library-book-jacket__title { font-size: 17px; }
}
/* The shared layout sets container widths with !important. Match that rule locally. */
.library-page.library-catalog.container { max-width: 1142px !important; }
@media (max-width: 1199.98px) { .library-page.library-catalog.container { max-width: 960px !important; } }
@media (max-width: 991.98px) { .library-page.library-catalog.container { max-width: 740px !important; } }
@media (max-width: 767.98px) { .library-page.library-catalog.container { max-width: 560px !important; } }
@media (max-width: 575.98px) { .library-page.library-catalog.container { max-width: 100% !important; } }

/* Library catalogue search and filter controls. */
.library-catalog .library-search-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    padding: 22px;
    margin-bottom: 20px;
    border-color: color-mix(in srgb, var(--library-accent) 24%, var(--library-border));
    background: linear-gradient(120deg, var(--library-surface), color-mix(in srgb, var(--library-hero) 32%, var(--library-surface)));
}
.library-catalog .library-search-field label,
.library-catalog .library-sort-field label { color: var(--library-text); font-size: 13px; font-weight: 650; }
.library-catalog .library-search-input svg { width: 21px; height: 21px; }
.library-catalog .library-search-input input { min-height: 50px !important; height: 50px !important; padding-left: 46px !important; font-size: 14px !important; }
.library-catalog .library-search-hint { display: block; margin-top: 8px; color: var(--library-muted); font-size: 11px; }
.library-catalog .library-search-tools { display: flex; align-items: end; gap: 10px; }
.library-catalog .library-sort-field { min-width: 170px; }
.library-catalog .library-search-tools select { min-width: 170px; }
.library-catalog .library-search-tools .library-button { min-width: 142px; gap: 8px; white-space: nowrap; }
.library-catalog .library-search-tools .library-button svg { width: 18px; height: 18px; }
.library-catalog .library-categories { align-items: center; gap: 9px; margin: 0 0 22px; }
.library-catalog .library-categories__label { margin-right: 3px; color: var(--library-muted); font-size: 12px; font-weight: 600; }
.library-page .library-catalog .library-category { min-height: 38px; padding: 8px 15px; border-color: var(--library-border); }
.library-page .library-catalog .library-category.is-active { background: color-mix(in srgb, var(--library-accent) 16%, var(--library-surface)); border-color: var(--library-accent); color: var(--library-text); }
.library-catalog .library-active-filters { align-items: center; gap: 8px; margin: -4px 0 22px; }
.library-catalog .library-active-filters__label { font-size: 12px; font-weight: 600; }
.library-catalog .library-filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 10px; border: 1px solid var(--library-border); border-radius: 99px; background: var(--library-surface); color: var(--library-text); font-size: 11px; text-decoration: none; }
.library-catalog .library-filter-chip:hover { border-color: var(--library-accent); }
.library-catalog .library-filter-chip span { color: var(--library-accent); font-size: 16px; line-height: 1; }
.library-catalog .library-active-filters__reset { margin-left: 5px; font-size: 11px; }
@media (max-width: 767.98px) {
    .library-catalog .library-search-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
    .library-catalog .library-search-tools { display: grid; grid-template-columns: minmax(0, 1fr); }
    .library-catalog .library-sort-field, .library-catalog .library-search-tools select { min-width: 0; width: 100%; }
    .library-catalog .library-search-tools .library-button { width: 100%; }
    .library-catalog .library-categories__label { flex-basis: 100%; }
}
@media (max-width: 359.98px) {
    .library-catalog .library-search-tools { grid-template-columns: minmax(0, 1fr); }
    .library-catalog .library-search-tools .library-button { width: 100%; }
}

/* Manrope is distributed under the SIL Open Font License (../fonts/manrope/OFL.txt). */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope/manrope-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
.library-page.library-book-page.container { max-width: 1142px !important; padding-top: 24px; padding-bottom: 48px; }
.library-book-page { --library-accent: #80b2ff; font-family: 'Manrope', Arial, sans-serif; font-size: 16px; line-height: 1.5; }
:root[data-theme="light"] .library-book-page { --library-text: #151619; --library-muted: #777e89; --library-accent: #3478db; --library-border: #e0e1e5; --library-surface: #fff; --library-soft: #f8f9fc; }
.library-book-page h1, .library-book-page h2, .library-book-page p, .library-book-page a, .library-book-page span, .library-book-page dt, .library-book-page dd { font-family: 'Manrope', Arial, sans-serif !important; text-shadow: none !important; }
.library-book-page .library-breadcrumbs { align-items: baseline; gap: 14px; margin-bottom: 40px; font-size: 14px; line-height: 22px; }
.library-book-page .library-breadcrumbs a { color: var(--library-muted); }
.library-book-page .library-breadcrumbs [aria-current] { color: var(--library-text); }
.library-book-page .library-detail { grid-template-columns: 360px minmax(0, 1fr); gap: 24px; }
.library-book-page .library-detail__visual { padding: 0; border: 0; background: transparent; border-radius: 16px; overflow: hidden; }
.library-book-page .library-detail__cover { width: 100%; aspect-ratio: 2 / 3; }
.library-book-page .library-detail__cover img { border-radius: 16px; filter: none; }
.library-book-page .library-detail__cover .library-book-jacket { padding: 32px; border-radius: 16px; box-shadow: none; }
.library-book-page .library-book-jacket__title { font-size: 36px !important; font-weight: 700; line-height: 1.2; }
.library-book-page .library-book-jacket__label { font-size: 11px; }
.library-book-page .library-book-jacket__author { font-size: 15px; }
.library-book-page .library-book-jacket__brand { font-size: 12px; }
.library-book-page .library-book-jacket__motif { font-size: 90px; }
.library-book-page .library-detail__caption { margin-top: 14px; font-size: 12px; }
.library-book-page .library-detail__content { min-width: 0; }
.library-page.library-book-page .library-detail h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 30px; letter-spacing: 0; overflow-wrap: break-word; }
.library-book-page .library-detail__author { margin: 0 0 20px; color: var(--library-accent); font-size: 20px; font-weight: 600; line-height: 28px; }
.library-book-page .library-detail__access { margin: 0 0 20px; padding: 16px; border: 0; border-radius: 16px; background: var(--library-surface); }
.library-book-page .library-access-label { margin: 0 0 12px; color: var(--library-muted); font-size: 14px; line-height: 22px; }
.library-book-page .library-button { min-height: 48px; padding: 12px 20px; background: #ffca2c; color: #151619; border-radius: 99px; font-size: 16px; font-weight: 600; line-height: 24px; }
.library-book-page .library-button:hover { background: #ffda67; color: #151619; }
.library-book-page .library-button--secondary { background: transparent; color: var(--library-accent); border: 1px solid var(--library-border); }
.library-book-page .library-button--secondary:hover { background: var(--library-soft); color: var(--library-accent); }
.library-book-page .library-access-note { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--library-border); color: var(--library-muted); font-size: 13px; line-height: 22px; }
.library-book-page .library-book-categories { padding: 16px; margin: 0 0 20px; background: var(--library-surface); border-radius: 16px; }
.library-page.library-book-page .library-book-categories h2 { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--library-muted); }
.library-book-page .library-category { min-height: 40px; padding: 10px 16px; background: transparent; font-size: 14px; line-height: 20px; }
.library-book-page .library-description, .library-book-page .library-info { padding: 20px; margin: 0 0 20px; background: var(--library-surface); border-radius: 16px; }
.library-page.library-book-page .library-detail h2 { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 28px; }
.library-book-page .library-description p { margin: 0; color: var(--library-text); font-size: 16px; font-weight: 400; line-height: 26px; }
.library-book-page .library-details > div { grid-template-columns: 155px minmax(0, 1fr); padding: 10px 0; gap: 20px; font-size: 14px; line-height: 22px; }
.library-book-page .library-details > div:last-child { border: 0; }
.library-book-page .library-license { margin: 0; padding: 0 4px; font-size: 12px; line-height: 20px; }
.library-book-page .library-back { font-size: 14px; }

.disciplines-catalog, .disciplines-detail { font-family: 'Manrope', Arial, sans-serif; }
.disciplines-catalog .library-filters { grid-template-columns: minmax(0, 1fr) auto; }
.disciplines-catalog .library-card__cover { aspect-ratio: 2 / 3; }
.disciplines-catalog .library-cover__badge { max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discipline-cover { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; min-height: 100%; overflow: hidden; padding: 22px; border-left: 5px solid var(--library-accent); border-radius: 2px 8px 8px 2px; background: var(--library-hero); color: var(--library-text); }
.discipline-cover__direction { color: var(--library-accent); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.discipline-cover strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; color: var(--library-text); font-size: 22px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.discipline-cover__brand { border-top: 1px solid var(--library-border); padding-top: 8px; color: var(--library-muted); font-size: 9px; }
.library-book-page .discipline-cover { padding: 32px; border-radius: 2px 12px 12px 2px; }
.library-book-page .discipline-cover strong { font-size: 36px; }
.disciplines-detail .library-details a { color: var(--library-accent); text-decoration: none; }
.disciplines-detail .library-details a:hover { text-decoration: underline; }
.library-page.procurement-references {
    --discipline-card: #fffdf4;
    --discipline-card-ink: #172438;
    --discipline-card-muted: #536176;
    --discipline-card-accent: #0b5fd1;
    --discipline-icon-base: #e3e7ee;
    --discipline-paper: #ecdca9;
    --discipline-shadow: 5px 7px 13px rgb(70 87 121 / .30);
    --discipline-icon-shadow: inset 5px 5px 10px #aeb9cc, inset -5px -5px 10px #f8faff;
}
:root[data-theme="dark"] .library-page.procurement-references {
    --discipline-card: #102d39;
    --discipline-card-ink: #e6f4f5;
    --discipline-card-muted: #a1bac2;
    --discipline-card-accent: #67ddf1;
    --discipline-icon-base: #123b49;
    --discipline-paper: #342d20;
    --discipline-shadow: 5px 7px 13px rgb(0 0 0 / .32);
    --discipline-icon-shadow: inset 3px 3px 8px #0a2029, inset -3px -3px 8px #1c4e5e;
}
.discipline-compact__resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.discipline-compact__tile {
    display: flex;
    align-items: center;
    min-height: 68px;
    min-width: 0;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: var(--discipline-card);
    box-shadow: var(--discipline-shadow);
    color: var(--discipline-card-ink);
    text-decoration: none;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.discipline-compact__tile:hover { border-color: var(--discipline-card-accent); color: var(--discipline-card-accent); }
.discipline-compact__tile:focus-visible { outline: 2px solid var(--library-accent); outline-offset: 2px; }
.discipline-compact__tile i {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--discipline-icon-base);
    box-shadow: var(--discipline-icon-shadow);
    color: var(--discipline-card-accent);
    font-size: 19px;
}
.discipline-compact__tile-copy { display: grid; gap: 3px; min-width: 0; }
.discipline-compact__tile strong { font-size: 13px; }
.discipline-compact__tile small { color: var(--discipline-card-muted); font-size: 11px; }
@media (max-width: 720px) {
    .discipline-compact__resources { gap: 8px; }
    .discipline-compact__tile { flex-direction: column; justify-content: center; min-height: 100px; gap: 6px; padding: 8px; text-align: center; }
    .discipline-compact__tile i { width: 36px; height: 36px; font-size: 17px; }
}
@media (max-width: 991.98px) {
    .disciplines-catalog .library-filters { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 575.98px) {
    .disciplines-catalog .library-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .disciplines-catalog .library-filters .library-button { grid-column: 1 / -1; }
    .discipline-cover { padding: 12px; }
    .discipline-cover strong { font-size: 16px; }
    .library-book-page .discipline-cover { padding: 18px; }
    .library-book-page .discipline-cover strong { font-size: 28px; }
}

.disciplines-catalog .library-grid { gap: 20px; align-items: stretch; }
.disciplines-catalog .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.disciplines-catalog .discipline-card__cover--wide-art { aspect-ratio: 32 / 35; }
.discipline-facets > .library-eyebrow { margin: 0 0 8px; }
.disciplines-catalog .discipline-facets .library-categories { gap: 7px; margin: 0 0 12px; }
.disciplines-catalog .discipline-facets .library-category { min-height: 34px; padding: 6px 12px; font-size: 11px; }
.discipline-card { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; border: 1px solid var(--library-border); border-radius: 14px; background: var(--library-surface); color: var(--library-text); box-shadow: none; transition: border-color .18s ease, background .18s ease; }
.discipline-card:hover { border-color: var(--library-accent); background: var(--library-surface); }
.discipline-card__header { display: flex; min-height: 178px; flex-direction: column; align-items: center; justify-content: flex-start; padding: 18px 18px 14px; border-bottom: 1px solid var(--library-border); background: var(--library-soft); text-align: center; }
.discipline-card__icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; overflow: hidden; border: 1px solid var(--library-border); border-radius: 10px; background: var(--library-surface); color: var(--library-accent); font-size: 20px; }
.discipline-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.discipline-card__direction { max-width: 100%; margin: 8px 0 3px; color: var(--library-accent); font-size: 10px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.discipline-card__header h2 { display: -webkit-box; width: 100%; min-height: 3.6em; margin: 5px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--library-text); font-size: 17px; font-weight: 650; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; }
.discipline-card__summary { display: -webkit-box; max-width: 620px; margin: 5px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; color: var(--library-muted); font-size: 11px; line-height: 1.4; }
.discipline-card__body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 12px; padding: 14px 16px; }
.discipline-card__section { min-width: 0; }
.discipline-card__section h3 { margin: 0 0 7px; color: var(--library-text); font-size: 12px; font-weight: 700; line-height: 1.35; }
.discipline-card__topics, .discipline-subunit-list { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; }
.discipline-card__topics span { max-width: 100%; padding: 5px 8px; border: 1px solid var(--library-border); border-radius: 8px; background: var(--library-soft); color: var(--library-muted); font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.discipline-subunit { display: inline-flex; min-width: 0; max-width: 100%; min-height: 31px; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--library-border); border-radius: 99px; background: var(--library-surface); color: var(--library-text); font-size: 11px; line-height: 1.3; text-decoration: none; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.discipline-subunit:hover { border-color: var(--library-accent); background: var(--library-surface); color: var(--library-accent); }
.discipline-subunit__title { min-width: 0; overflow-wrap: anywhere; }
.discipline-subunit__count { flex: 0 0 auto; color: var(--library-muted); font-size: 10px; }
.discipline-subunit > i { flex: 0 0 auto; color: var(--library-accent); }
.discipline-card__more { margin-top: 7px; }
.discipline-card__more summary { display: inline-flex; min-height: 30px; align-items: center; padding: 5px 10px; border: 1px dashed var(--library-accent); border-radius: 99px; color: var(--library-accent); font-size: 11px; font-weight: 650; cursor: pointer; list-style: none; }
.discipline-card__more summary::-webkit-details-marker { display: none; }
.discipline-card__more[open] .discipline-subunit-list { margin-top: 10px; }
.discipline-card__module { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--library-border); color: var(--library-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.discipline-card__module:hover { color: var(--library-text); }
.discipline-card__resources ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.discipline-card__resources a { display: flex; min-width: 0; align-items: baseline; gap: 8px; color: var(--library-text); font-size: 12px; line-height: 1.5; text-decoration: none; }
.discipline-card__resources a:hover { color: var(--library-accent); }
.discipline-card__resources a span { flex: 0 0 auto; color: var(--library-muted); font-size: 10px; }
.discipline-card__resources a:not(span) { overflow-wrap: anywhere; }
.discipline-card__footer { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--library-border); }
.discipline-card__counts { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px 10px; color: var(--library-muted); font-size: 10px; line-height: 1.35; }
.discipline-card__counts strong { color: var(--library-text); font-weight: 700; }
.discipline-card__open { display: inline-flex; min-height: 36px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; padding: 7px 13px; border-radius: 99px; background: #77e2cd; color: #103b35; font-size: 11px; font-weight: 650; text-decoration: none; }
.discipline-card__open:hover { background: #a3eddf; color: #103b35; }
.discipline-card a:focus-visible, .discipline-card summary:focus-visible { outline: 3px solid var(--library-accent); outline-offset: 3px; }
@media (max-width: 767.98px) {
    .discipline-card__header { min-height: 160px; padding: 16px 14px 12px; }
    .discipline-card__body { gap: 10px; padding: 12px; }
    .discipline-card__footer { align-items: flex-start; flex-direction: column; padding: 11px 12px 12px; }
}
@media (max-width: 575.98px) {
    .discipline-card__header { min-height: 158px; }
    .discipline-card__footer { align-items: center; flex-direction: row; }
}
@media (max-width: 1199.98px) {
    .disciplines-catalog .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .disciplines-catalog .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .disciplines-catalog .library-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .discipline-card, .discipline-subunit { transition: none; } }
@media (max-width: 991.98px) {
    .library-book-page .library-detail { grid-template-columns: 280px minmax(0, 1fr); }
    .library-book-page .library-details > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 767.98px) {
    .library-book-page .library-detail { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
    .library-book-page .library-book-jacket__title { font-size: 26px !important; }
    .library-book-page .library-detail__cover .library-book-jacket { padding: 20px; }
    .library-page.library-book-page .library-detail h1 { font-size: 22px; line-height: 29px; }
    .library-book-page .library-detail__author { font-size: 17px; line-height: 25px; }
}
@media (max-width: 575.98px) {
    .library-book-page .library-breadcrumbs { margin-bottom: 24px; gap: 8px; font-size: 12px; line-height: 20px; }
    .library-book-page .library-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .library-book-page .library-detail__visual { max-width: 300px; margin: 0 auto; width: 100%; }
    .library-book-page .library-detail__cover { max-width: none; }
    .library-book-page .library-description, .library-book-page .library-info { padding: 16px; }
    .library-book-page .library-description p { font-size: 15px; line-height: 25px; }
    .library-book-page .library-button { font-size: 14px; }
    .library-book-page .library-details > div { grid-template-columns: minmax(0, 1fr); }
}

/* Use the same Manrope typography and reference accents throughout the catalogue. */
.library-catalog { --library-accent: #80b2ff; font-family: 'Manrope', Arial, sans-serif; font-size: 16px; line-height: 1.5; }
:root[data-theme="light"] .library-catalog { --library-text: #151619; --library-muted: #777e89; --library-accent: #3478db; --library-border: #e0e1e5; --library-surface: #fff; --library-soft: #f8f9fc; }
.library-catalog h1, .library-catalog h2, .library-catalog p, .library-catalog a, .library-catalog span, .library-catalog label, .library-catalog input, .library-catalog select, .library-catalog button, .library-catalog strong { font-family: 'Manrope', Arial, sans-serif !important; text-shadow: none !important; }
.library-page .library-catalog-heading h1 { font-weight: 600; background-image: linear-gradient(#ffca2c80, #ffca2c80); }
.library-catalog .library-breadcrumbs a { color: var(--library-muted); }
.library-catalog .library-breadcrumbs [aria-current] { color: var(--library-text); }
.library-catalog .library-category { font-weight: 400; }
.library-catalog .library-category.is-active { background: #ffca2c; border-color: #ffca2c; color: #151619; font-weight: 600; }
.library-catalog .library-category:hover { border-color: #ffca2c; }
.library-catalog .library-filters label { font-weight: 400; font-size: 12px; }
.library-catalog .library-button { background: #ffca2c; color: #151619; font-weight: 600; }
.library-catalog .library-button:hover { background: #ffda67; color: #151619; }
.library-catalog .library-cover__badge { background: #ffca2c; color: #151619; }
.library-catalog .library-card h2 { font-weight: 600; }
.library-catalog .library-card__action { color: var(--library-accent); font-weight: 600; }
.library-catalog .library-card__type { background: #a85bd7; }
.library-catalog .library-book-jacket__title { font-weight: 600; line-height: 1.2; }
.library-catalog .library-book-jacket__motif { line-height: 1; }
.library-catalog a:focus-visible, .library-catalog button:focus-visible, .library-catalog input:focus-visible, .library-catalog select:focus-visible { outline-color: var(--library-accent); }
/* Preserve catalogue contrast against shared link color overrides in both themes. */
.library-catalog .library-card h2 a { color: var(--library-text) !important; }
.library-catalog .library-card h2 a:hover, .library-catalog .library-card__action { color: var(--library-accent) !important; }
.library-catalog .library-card .library-card__author { color: var(--library-muted) !important; }

.library-catalog .library-search-field { grid-column: auto; }

/* Keep the search-first layout and category chips compact like a search portal. */
.library-catalog .library-search-box {
    margin-bottom: 24px;
    padding: 22px 24px 20px;
    border: 1px solid var(--library-border);
    border-radius: 16px;
    background: var(--library-surface);
    box-shadow: 0 8px 22px #172b3b0d;
}
.library-catalog .library-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.library-catalog .library-search-field { min-width: 0; }
.library-catalog .library-search-input input {
    min-height: 54px !important;
    height: 54px !important;
    padding: 12px 58px 12px 18px !important;
    border-color: color-mix(in srgb, var(--library-accent) 30%, var(--library-border)) !important;
    background: var(--library-surface) !important;
    font-size: 15px !important;
}
.library-catalog .library-search-input input:focus { border-color: var(--library-accent) !important; }
.library-catalog .library-search-input input::-webkit-search-cancel-button { cursor: pointer; }
.library-catalog .library-search-submit {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--library-muted);
    cursor: pointer;
}
.library-catalog .library-search-submit:hover { background: var(--library-soft); color: var(--library-accent); }
.library-catalog .library-search-submit svg { position: static; width: 22px; height: 22px; color: inherit; }
body.catalog-unified .library-catalog .library-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0;
    max-width: 100%;
    overflow: visible;
}
body.catalog-unified .library-catalog .library-categories > * { flex: 0 1 auto; }
.library-page .library-catalog .library-category {
    min-height: 40px;
    padding: 8px 16px;
    border-color: color-mix(in srgb, var(--library-accent) 24%, var(--library-border));
    box-shadow: 0 3px 8px #172b3b12;
    white-space: nowrap;
}
.library-catalog .library-search-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}
.library-catalog .library-search-tools label { margin: 0; color: var(--library-muted); }
.library-catalog .library-search-tools select {
    width: auto;
    min-width: 170px;
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 30px 6px 10px !important;
    font-size: 12px !important;
}
@media (max-width: 575.98px) {
    .library-catalog .library-search-box { padding: 16px; }
    .library-catalog .library-search-panel { gap: 14px; }
    .library-catalog .library-categories { gap: 8px; }
    .library-page .library-catalog .library-category { min-height: 36px; padding: 6px 12px; font-size: 11px; }
    .library-catalog .library-search-tools { justify-content: space-between; }
}
@keyframes library-normative-cover-float {
    0%, 100% { opacity: .46; transform: rotate(0) scale(.96); }
    50% { opacity: .9; transform: rotate(8deg) scale(1.04); }
}
@keyframes library-normative-cover-shine {
    0%, 100% { opacity: .45; background-position: 0 0; }
    50% { opacity: .9; background-position: 100% 100%; }
}
@keyframes library-normative-cover-motif {
    0%, 100% { transform: rotate(0) scale(1); text-shadow: 0 0 8px #00d9f544; }
    50% { transform: rotate(12deg) scale(1.1); text-shadow: 0 0 22px #00d9f5cc; }
}
@keyframes library-kipslide-logo-pulse {
    0%, 100% { transform: scale(.97); filter: drop-shadow(0 0 4px #00d9f566); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 9px #00d9f599); }
}
.library-catalog .library-book-jacket__motif:has(> img),
.library-book-page .library-book-jacket__motif:has(> img) {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 68px;
    animation: none !important;
}
.library-catalog .library-book-jacket__motif:has(> img)::before,
.library-book-page .library-book-jacket__motif:has(> img)::before { content: none; }
.library-catalog .library-book-jacket__motif > img,
.library-book-page .library-book-jacket__motif > img {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    animation: library-kipslide-logo-pulse 4s ease-in-out infinite;
}
.library-book-page .library-book-jacket__motif:has(> img) { min-height: 92px; }
.library-book-page .library-book-jacket__motif > img { width: 88px; height: 88px; flex-basis: 88px; }
.library-catalog .library-card__cover .library-book-jacket--normative_document {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(0,217,245,.34);
    border-radius: 12px;
    color: #f4f9ff;
    background: radial-gradient(ellipse at 100% 0%,rgba(0,217,245,.2),transparent 48%),linear-gradient(145deg,#0b3551,#062238);
    box-shadow: inset 0 1px 0 rgba(129,241,255,.16);
}
.library-catalog .library-card__cover .library-book-jacket--normative_document::before {
    position: absolute;
    z-index: 0;
    inset: 12% 8%;
    border: 1px solid rgba(129,241,255,.18);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,transparent 0 35%,rgba(129,241,255,.22) 35.5% 36%,transparent 36.5% 58%,rgba(129,241,255,.14) 58.5% 59%,transparent 59.5%);
    content: "";
    pointer-events: none;
    animation: library-normative-cover-float 8s ease-in-out infinite;
}
.library-catalog .library-card__cover .library-book-jacket--normative_document::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(135deg,transparent 35%,rgba(0,217,245,.13) 50%,transparent 65%);
    background-size: 220% 220%;
    content: "";
    pointer-events: none;
    animation: library-normative-cover-shine 7s ease-in-out infinite;
}
.library-catalog .library-card__cover .library-book-jacket--normative_document > * {
    position: relative;
    z-index: 1;
}
.library-catalog .library-card__cover .library-book-jacket--normative_document .library-book-jacket__label,
.library-catalog .library-card__cover .library-book-jacket--normative_document .library-book-jacket__author,
.library-catalog .library-card__cover .library-book-jacket--normative_document .library-book-jacket__brand {
    color: #c2d8e8;
}
.library-catalog .library-card__cover .library-book-jacket--normative_document .library-book-jacket__title {
    color: #f4f9ff;
    text-shadow: 0 2px 12px #00152180;
}
.library-catalog .library-card__cover .library-book-jacket--normative_document .library-book-jacket__motif {
    color: #81f1ff;
    animation: library-normative-cover-motif 4s ease-in-out infinite;
}
.library-book-page .library-detail__cover .library-book-jacket--normative_document {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(0,217,245,.34);
    border-radius: 16px;
    color: #f4f9ff;
    background: radial-gradient(ellipse at 100% 0%,rgba(0,217,245,.2),transparent 48%),linear-gradient(145deg,#0b3551,#062238);
    box-shadow: inset 0 1px 0 rgba(129,241,255,.16);
}
.library-book-page .library-detail__cover .library-book-jacket--normative_document::before {
    position: absolute;
    z-index: 0;
    inset: 12% 8%;
    border: 1px solid rgba(129,241,255,.18);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,transparent 0 35%,rgba(129,241,255,.22) 35.5% 36%,transparent 36.5% 58%,rgba(129,241,255,.14) 58.5% 59%,transparent 59.5%);
    content: "";
    pointer-events: none;
    animation: library-normative-cover-float 8s ease-in-out infinite;
}
.library-book-page .library-detail__cover .library-book-jacket--normative_document::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(135deg,transparent 35%,rgba(0,217,245,.13) 50%,transparent 65%);
    background-size: 220% 220%;
    content: "";
    pointer-events: none;
    animation: library-normative-cover-shine 7s ease-in-out infinite;
}
.library-book-page .library-detail__cover .library-book-jacket--normative_document > * {
    position: relative;
    z-index: 1;
}
.library-book-page .library-detail__cover .library-book-jacket--normative_document .library-book-jacket__label,
.library-book-page .library-detail__cover .library-book-jacket--normative_document .library-book-jacket__author,
.library-book-page .library-detail__cover .library-book-jacket--normative_document .library-book-jacket__brand { color: #c2d8e8; }
.library-book-page .library-detail__cover .library-book-jacket--normative_document .library-book-jacket__title {
    color: #f4f9ff;
    text-shadow: 0 2px 12px #00152180 !important;
}
.library-book-page .library-detail__cover .library-book-jacket--normative_document .library-book-jacket__motif {
    color: #81f1ff;
    animation: library-normative-cover-motif 4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .library-catalog .library-card__cover .library-book-jacket--normative_document,
    .library-catalog .library-card__cover .library-book-jacket--normative_document::after,
    .library-catalog .library-card__cover .library-book-jacket--normative_document .library-book-jacket__motif,
    .library-book-page .library-detail__cover .library-book-jacket--normative_document::before,
    .library-book-page .library-detail__cover .library-book-jacket--normative_document::after,
    .library-book-page .library-detail__cover .library-book-jacket--normative_document .library-book-jacket__motif,
    .library-book-jacket__motif > img {
        animation: none;
    }
}
.library-compare { max-width: 1142px !important; }
.library-catalog .library-compare-entry { margin: -8px 0 16px; font-size: 13px; }
.library-compare__heading { margin-bottom: 20px; }
.library-page.library-compare .library-compare__heading h1 { margin: 8px 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.library-compare__heading p { margin: 0; color: var(--library-muted); }
.library-compare__notice { padding: 16px 18px; margin-bottom: 20px; border: 1px solid color-mix(in srgb, var(--library-accent) 32%, var(--library-border)); border-left: 4px solid var(--library-accent); border-radius: 12px; background: var(--library-surface); color: var(--library-text); font-size: 13px; line-height: 1.7; }
.library-compare__form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 14px; padding: 20px; margin-bottom: 24px; border: 1px solid var(--library-border); border-radius: 16px; background: var(--library-surface); }
.library-compare__form label { display: block; margin-bottom: 7px; color: var(--library-muted); font-size: 12px; }
.library-compare__search { grid-column: 1 / -1; }
.library-compare__form select, .library-compare__form input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--library-border); border-radius: 10px; background: var(--library-soft); color: var(--library-text); font: inherit; }
.library-compare__form select:focus-visible, .library-compare__form input:focus-visible { outline: 3px solid var(--ks-focus-ring, rgba(8,124,113,.2)); outline-offset: 2px; border-color: var(--ks-accent, var(--library-accent)); }
.library-compare__versus { padding-bottom: 13px; color: var(--library-accent); font-size: 11px; font-weight: 700; }
.library-compare__error { display: block; margin-top: 6px; color: #b42318; font-size: 12px; }
.library-compare__form .library-button { min-height: 44px; }
.library-compare__results { padding: 22px; border: 1px solid var(--library-border); border-radius: 16px; background: var(--library-surface); }
.library-page.library-compare .library-compare__results h2 { margin: 0 0 16px; font-size: 21px; }
.library-compare__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.library-compare__results table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
.library-compare__results th, .library-compare__results td { min-width: 170px; padding: 12px; border-bottom: 1px solid var(--library-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.library-compare__results thead th { background: var(--library-soft); color: var(--library-text); }
.library-compare__results tbody th { width: 175px; min-width: 145px; color: var(--library-muted); font-weight: 600; }
.library-compare__results a { color: var(--library-accent); text-decoration: underline; text-underline-offset: 3px; }
.library-compare__disclaimer { margin: 16px 0 0; color: var(--library-muted); font-size: 12px; line-height: 1.7; }
.library-related-acts { margin: 0; padding-left: 20px; }
.library-related-acts li + li { margin-top: 10px; }
@media (max-width: 767.98px) {
    .library-compare__form { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
    .library-compare__search { grid-column: auto; }
    .library-compare__versus { display: none; }
    .library-compare__form .library-button { width: 100%; }
    .library-compare__results { padding: 14px; }
}
