.library-page,
.library-shelf,
.library-creator {
    --library-accent: #c94718;
    --library-accent-dark: #a93610;
    --library-forest: #184a3a;
    --library-ink: #182039;
    --library-muted: #666867;
    --library-paper: #f7f1e6;
    --library-paper-deep: #eee3d2;
    --library-line: #dcd2c2;
    --library-white: #fffefa;
    color: var(--library-ink);
}

/* Pages éditoriales matière × niveau */
.library-seo-hub,
.library-seo-formats,
.library-seo-related,
.library-seo-faq {
    padding-top: 76px;
}

.library-seo-links {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-seo-links > a {
    align-items: center;
    background: var(--library-white);
    border: 1px solid #ded6c9;
    border-radius: 4px 18px 18px 18px;
    color: var(--library-ink);
    display: grid;
    gap: 2px 12px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 86px;
    padding: 16px 18px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.library-seo-links > a:hover,
.library-seo-links > a:focus-visible {
    border-color: #c8bba9;
    box-shadow: 0 14px 30px rgba(31, 31, 43, .08);
    outline: none;
    transform: translateY(-2px);
}

.library-seo-links > a > span {
    font-size: 25px;
    grid-row: 1 / span 2;
}

.library-seo-links strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 500;
}

.library-seo-links small {
    color: var(--library-muted);
    font-size: 11px;
}

.library-seo-links i {
    color: var(--library-accent);
    grid-column: 3;
    grid-row: 1 / span 2;
}

.library-seo-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(238, 207, 104, .18), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 42px 42px,
        var(--library-ink);
    color: #fff;
    padding: 130px 0 76px;
}

.library-breadcrumbs {
    align-items: center;
    color: #aeb4c8;
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 10px;
    margin-bottom: 54px;
}

.library-breadcrumbs a {
    color: #d9dce6;
}

.library-breadcrumbs a:hover,
.library-breadcrumbs a:focus-visible {
    color: #fff;
    outline: none;
}

.library-breadcrumbs i {
    font-size: 8px;
}

.library-seo-hero__grid {
    align-items: end;
    display: grid;
    gap: 70px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.library-seo-hero .library-eyebrow {
    color: #f4c796;
}

.library-seo-hero h1 {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(49px, 6.5vw, 82px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .95;
    margin: 21px 0 25px;
}

.library-seo-hero h1 em {
    color: #f3d67d;
    font-weight: 400;
}

.library-seo-hero__grid > div:first-child > p {
    color: #c8ccda;
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
    max-width: 760px;
}

.library-seo-hero .library-search {
    margin-top: 30px;
}

.library-seo-hero__stats {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 5px 24px 24px 24px;
    overflow: hidden;
}

.library-seo-hero__stats > div {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    gap: 18px;
    padding: 20px 24px;
}

.library-seo-hero__stats > div:last-child {
    border-bottom: 0;
}

.library-seo-hero__stats strong {
    color: #f3d67d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 400;
    min-width: 48px;
}

.library-seo-hero__stats span {
    color: #d7dae3;
    font-size: 12px;
    line-height: 1.4;
}

.library-seo-quality-note {
    align-items: center;
    background: #fff8df;
    border: 1px solid #e6d38d;
    border-radius: 5px 18px 18px 18px;
    color: #5c4b16;
    display: flex;
    gap: 17px;
    margin-top: 38px;
    padding: 18px 22px;
}

.library-seo-quality-note > i {
    font-size: 24px;
}

.library-seo-quality-note strong {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.library-seo-quality-note p {
    font-size: 12px;
    margin: 0;
}

.library-format-counts {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.library-format-counts > a {
    background: var(--library-paper);
    border: 1px solid var(--library-line);
    border-radius: 4px 18px 18px 18px;
    color: var(--library-ink);
    display: flex;
    flex-direction: column;
    min-height: 112px;
    padding: 21px;
}

.library-format-counts > a:hover,
.library-format-counts > a:focus-visible {
    border-color: var(--library-accent);
    color: var(--library-ink);
    outline: none;
}

.library-format-counts > a.is-empty {
    background: #f3eee5;
    border-style: dashed;
}

.library-format-counts > a.is-empty strong,
.library-format-counts > a.is-empty span {
    color: #555b68;
}

.library-format-counts strong {
    color: var(--library-accent-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
}

.library-format-counts span {
    font-size: 11px;
    font-weight: 800;
    margin-top: auto;
    text-transform: uppercase;
}

.library-catalog--seo {
    padding-bottom: 60px;
}

.library-seo-related {
    border-top: 1px solid #e4ddd2;
}

.library-seo-related__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.library-seo-related__grid > div {
    background: var(--library-paper);
    border: 1px solid var(--library-line);
    border-radius: 5px 22px 22px 22px;
    padding: 25px;
}

.library-seo-related h3 {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 14px;
}

.library-seo-related__grid a {
    align-items: center;
    border-top: 1px solid #dcd1c1;
    color: var(--library-ink);
    display: flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: space-between;
    padding: 12px 2px;
}

.library-seo-related__grid a:hover,
.library-seo-related__grid a:focus-visible {
    color: var(--library-accent-dark);
    outline: none;
}

.library-seo-related__grid small {
    color: var(--library-muted);
    font-size: 10px;
    font-weight: 500;
}

.library-seo-faq {
    padding-bottom: 100px;
}

.library-seo-faq__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-seo-faq article {
    border-left: 3px solid var(--library-accent);
    padding: 6px 8px 6px 20px;
}

.library-seo-faq h3 {
    color: var(--library-ink);
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 10px;
}

.library-seo-faq p {
    color: var(--library-muted);
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 991px) {
    .library-seo-links,
    .library-seo-faq__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .library-seo-hero__grid {
        grid-template-columns: 1fr;
    }

    .library-seo-hero__stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .library-seo-hero__stats > div {
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, .12);
        display: block;
    }

    .library-format-counts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .library-seo-links,
    .library-seo-faq__grid,
    .library-seo-related__grid {
        grid-template-columns: 1fr;
    }

    .library-seo-hero {
        padding: 110px 0 55px;
    }

    .library-breadcrumbs {
        margin-bottom: 36px;
    }

    .library-seo-hero__stats {
        grid-template-columns: 1fr;
    }

    .library-seo-hero__stats > div {
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        border-right: 0;
        display: flex;
    }

    .library-format-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .library-format-counts {
        grid-template-columns: 1fr;
    }
}

.library-page *,
.library-shelf *,
.library-creator * {
    box-sizing: border-box;
}

.library-page a,
.library-shelf a,
.library-creator a {
    text-decoration: none;
}

/* Contrastes du chrome public lorsque la Library est affichée. */
.navbar .btn-custom,
#cookie-accept.btn-custom {
    background: #a93610 !important;
}

#cookie-deny.close-btn {
    color: #9f1717 !important;
}

.footer-bottom .copyright a,
.footer-bottom .language a.active {
    color: #a93610 !important;
}

.footer-bottom .copyright a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-section .footer-box .library-footer-heading {
    font-size: 1.25rem;
    margin: 0 0 .5rem;
    text-transform: capitalize;
}

#cookieAlert .cookie-img {
    height: 20px;
    width: 20px;
}

.library-shell {
    margin: 0 auto;
    max-width: 1240px;
    padding-left: 28px;
    padding-right: 28px;
    width: 100%;
}

.library-eyebrow {
    align-items: center;
    color: var(--library-accent);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.library-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 4px 16px 16px 16px;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    min-height: 48px;
    padding: 11px 19px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.library-button:hover,
.library-button:focus-visible {
    outline: none;
    transform: translateY(-2px);
}

.library-button--ink {
    background: var(--library-ink);
    color: #fff;
}

.library-button--ink:hover,
.library-button--ink:focus-visible {
    background: #273152;
    color: #fff;
}

.library-button--accent {
    background: var(--library-accent);
    color: #fff;
}

.library-button--accent:hover,
.library-button--accent:focus-visible {
    background: var(--library-accent-dark);
    color: #fff;
}

.library-button--ghost {
    background: transparent;
    border-color: #cfc7b9;
    color: var(--library-ink);
}

.library-button--ghost:hover,
.library-button--ghost:focus-visible {
    border-color: var(--library-ink);
    color: var(--library-ink);
}

.library-notice {
    align-items: center;
    background: #eef8f1;
    border: 1px solid #abd4b6;
    border-radius: 10px 18px 18px 18px;
    color: #185e31;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    margin: 20px 0;
    padding: 13px 16px;
}

.library-notice.is-error {
    background: #fff0ec;
    border-color: #efb6a5;
    color: #96330f;
}

.library-notice[hidden] {
    display: none;
}

.library-hero {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 42px 42px,
        var(--library-ink);
    color: #fff;
    min-height: 580px;
    overflow: hidden;
    padding-top: 118px;
    position: relative;
}

.library-hero::before {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: '';
    height: 620px;
    position: absolute;
    right: -240px;
    top: -300px;
    width: 620px;
}

.library-hero__grid {
    align-items: center;
    display: grid;
    gap: 80px;
    grid-template-columns: minmax(0, 1fr) 380px;
    min-height: 580px;
    padding-bottom: 70px;
    padding-top: 70px;
    position: relative;
}

.library-hero__copy {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.library-hero .library-eyebrow {
    color: #f9ae89;
}

.library-hero h1 {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 6.4vw, 86px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .95;
    margin: 22px 0 26px;
}

.library-hero h1 em {
    color: #f3d67d;
    font-weight: 400;
}

.library-hero__copy > p {
    color: #c9ccda;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
    max-width: 690px;
}

.library-search {
    align-items: center;
    background: #fff;
    border-radius: 6px 20px 20px 20px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 38px;
    max-width: 720px;
    padding: 8px 8px 8px 20px;
}

.library-search > i {
    color: #777b86;
}

.library-search input {
    background: transparent;
    border: 0;
    color: var(--library-ink);
    font-size: 14px;
    min-height: 48px;
    min-width: 0;
    outline: none;
    width: 100%;
}

.library-search button {
    background: var(--library-accent);
    border: 0;
    border-radius: 4px 14px 14px 14px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    min-height: 48px;
    padding: 0 23px;
}

.library-search button:focus-visible {
    outline: 3px solid #f7d273;
    outline-offset: 2px;
}

.library-hero__folio {
    height: 410px;
    position: relative;
}

.library-hero__stamp {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    height: 92px;
    justify-content: center;
    letter-spacing: .09em;
    line-height: 1.1;
    position: absolute;
    right: -5px;
    text-align: center;
    text-transform: uppercase;
    top: 0;
    transform: rotate(11deg);
    width: 92px;
    z-index: 4;
}

.library-hero__book {
    border-radius: 4px 18px 18px 4px;
    bottom: 5px;
    box-shadow: -14px 18px 34px rgba(4, 8, 20, .35);
    position: absolute;
}

.library-hero__book::before {
    background: rgba(255, 255, 255, .18);
    bottom: 0;
    content: '';
    left: 15px;
    position: absolute;
    top: 0;
    width: 1px;
}

.library-hero__book--back {
    background: #e5c96d;
    height: 330px;
    left: 40px;
    transform: rotate(-9deg);
    width: 250px;
}

.library-hero__book--front {
    background: var(--library-forest);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 360px;
    justify-content: space-between;
    left: 78px;
    padding: 42px 38px 30px;
    transform: rotate(3deg);
    width: 270px;
}

.library-hero__book--front > i {
    color: #efcf68;
    font-size: 34px;
}

.library-hero__book--front > span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    letter-spacing: -.03em;
    line-height: 1.03;
}

.library-hero__book--front > small {
    color: #a7c8bb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.library-subnav {
    background: #fff;
    border-bottom: 1px solid #e8e3da;
    position: sticky;
    top: 0;
    z-index: 20;
}

.library-subnav .library-shell {
    display: flex;
    gap: 30px;
    min-height: 61px;
}

.library-subnav a {
    align-items: center;
    border-bottom: 2px solid transparent;
    color: #75757d;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding-top: 2px;
}

.library-subnav a:hover,
.library-subnav a:focus-visible,
.library-subnav a.is-active {
    border-bottom-color: var(--library-accent);
    color: var(--library-ink);
    outline: none;
}

.library-selection,
.library-related {
    padding-top: 76px;
}

.library-section-heading {
    align-items: end;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.library-section-heading > div:first-child > span,
.library-results__heading > div > span,
.library-shelf__content > .library-section-heading > div > span {
    color: var(--library-accent);
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.library-section-heading h2,
.library-results__heading h2,
.library-detail__description h2 {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.05;
    margin: 0;
}

.library-section-heading > p,
.library-results__heading > p {
    color: var(--library-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 410px;
    text-align: right;
}

.library-section-heading > a {
    color: var(--library-accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.library-selection__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.library-recommendation {
    min-width: 0;
}

.library-recommendation > span {
    color: #77736b;
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 9px 4px;
    min-height: 14px;
    text-transform: uppercase;
}

.library-catalog {
    display: grid;
    gap: 42px;
    grid-template-columns: 245px minmax(0, 1fr);
    padding: 82px 0 100px;
}

.library-filters {
    align-self: start;
    background: var(--library-paper);
    border: 1px solid var(--library-line);
    border-radius: 5px 24px 24px 24px;
    padding: 22px;
    position: sticky;
    top: 84px;
}

.library-filters__heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.library-filters__heading > span {
    color: var(--library-ink);
    font-size: 12px;
    font-weight: 900;
}

.library-filters__heading > a {
    color: var(--library-accent-dark);
    font-size: 10px;
    font-weight: 800;
}

.library-filters form > label,
.library-filters legend,
.library-collection-form > label,
.library-review-form label {
    color: #565861;
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    margin: 17px 0 7px;
    text-transform: uppercase;
}

.library-filters select,
.library-results__heading select,
.library-collection-form select,
.library-review-form select,
.library-review-form textarea {
    background: #fff;
    border: 1px solid #d6cec1;
    border-radius: 5px 12px 12px 12px;
    color: var(--library-ink);
    font-size: 12px;
    min-height: 44px;
    outline: none;
    padding: 8px 12px;
    width: 100%;
}

.library-filters select:focus,
.library-results__heading select:focus,
.library-collection-form select:focus,
.library-review-form select:focus,
.library-review-form textarea:focus {
    border-color: var(--library-accent);
    box-shadow: 0 0 0 3px rgba(232, 93, 42, .12);
}

.library-filters fieldset {
    border: 0;
    margin: 18px 0 22px;
    padding: 0;
}

.library-filters legend {
    margin-bottom: 9px;
}

.library-radio {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 12px;
    gap: 8px;
    margin: 9px 0;
}

.library-radio input {
    accent-color: var(--library-accent);
}

.library-filters .library-button {
    width: 100%;
}

.library-results {
    min-width: 0;
}

.library-results__heading {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 25px;
}

.library-results__heading form {
    align-items: center;
    display: flex;
    gap: 9px;
}

.library-results__heading label {
    color: var(--library-muted);
    font-size: 11px;
    font-weight: 700;
}

.library-results__heading select {
    min-width: 165px;
    width: auto;
}

.library-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.library-card {
    background: var(--library-white);
    border: 1px solid #e2dbcf;
    border-radius: 5px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.library-card:hover,
.library-card:focus-within {
    border-color: #c9bdac;
    box-shadow: 0 18px 40px rgba(34, 33, 40, .09);
    transform: translateY(-4px);
}

.library-card.is-focused {
    border-color: var(--library-accent);
    box-shadow: 0 0 0 4px rgba(232, 93, 42, .14);
}

.library-card__cover {
    color: #fff;
    height: 155px;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.library-card__cover::after {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    content: '';
    height: 150px;
    position: absolute;
    right: -55px;
    top: -72px;
    width: 150px;
}

.library-card__cover.tone-forest,
.library-detail__cover.tone-forest {
    background: #1d5845;
}

.library-card__cover.tone-saffron,
.library-detail__cover.tone-saffron {
    background: #b26c16;
}

.library-card__cover.tone-ink,
.library-detail__cover.tone-ink {
    background: #28314d;
}

.library-card__cover.tone-coral,
.library-detail__cover.tone-coral {
    background: #c64f2b;
}

.library-card__cover.tone-sky,
.library-detail__cover.tone-sky {
    background: #36758a;
}

.library-card__type {
    align-items: center;
    display: inline-flex;
    font-size: 9px;
    font-weight: 900;
    gap: 7px;
    letter-spacing: .13em;
    position: relative;
    text-transform: uppercase;
    z-index: 2;
}

.library-card__monogram {
    bottom: -15px;
    color: rgba(255, 255, 255, .15);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 92px;
    font-weight: 700;
    letter-spacing: -.1em;
    line-height: 1;
    position: absolute;
    right: 19px;
}

.library-card__featured {
    background: #f4dc78;
    border-radius: 999px;
    bottom: 15px;
    color: #46390e;
    font-size: 8px;
    font-weight: 900;
    left: 16px;
    letter-spacing: .08em;
    padding: 5px 8px;
    position: absolute;
    text-transform: uppercase;
}

.library-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 19px 16px;
}

.library-card__meta {
    align-items: center;
    color: #8a877f;
    display: flex;
    font-size: 9px;
    font-weight: 800;
    gap: 5px;
    letter-spacing: .04em;
    min-height: 14px;
    text-transform: uppercase;
}

.library-card h3 {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.18;
    margin: 10px 0 10px;
}

.library-card h3 a {
    color: inherit;
}

.library-card h3 a:hover,
.library-card h3 a:focus-visible {
    color: var(--library-accent-dark);
    outline: none;
}

.library-card__body > p {
    color: var(--library-muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 0 0 15px;
}

.library-card__signals {
    align-items: center;
    color: #7a7b80;
    display: flex;
    flex-wrap: wrap;
    font-size: 9px;
    gap: 12px;
    margin-top: auto;
}

.library-card__signals span {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.library-card__signals .fa-star {
    color: #e5a726;
}

.library-card__footer {
    align-items: center;
    border-top: 1px solid #ece6dd;
    display: flex;
    justify-content: space-between;
    min-height: 57px;
    padding: 10px 14px 10px 19px;
}

.library-card__price {
    color: var(--library-accent-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.library-card__price.is-free {
    color: var(--library-forest);
}

.library-card__actions {
    align-items: center;
    display: flex;
    gap: 5px;
}

.library-icon-button,
.library-card__open {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
}

.library-icon-button {
    background: #f1ece4;
    border-radius: 50%;
    color: #555665;
    height: 34px;
    width: 34px;
}

.library-icon-button[aria-pressed="true"] {
    background: #fde3d8;
    color: var(--library-accent-dark);
}

.library-icon-button:focus-visible {
    outline: 3px solid rgba(232, 93, 42, .25);
}

.library-card__open {
    background: var(--library-ink);
    border-radius: 4px 12px 12px 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    gap: 6px;
    min-height: 34px;
    padding: 6px 11px;
}

.library-card__open:hover,
.library-card__open:focus-visible {
    background: var(--library-accent);
    color: #fff;
    outline: none;
}

.library-card__status {
    background: #eee9e1;
    border-radius: 999px;
    color: #68676a;
    font-size: 8px;
    font-weight: 900;
    padding: 6px 9px;
    text-transform: uppercase;
}

.library-card--compact .library-card__cover {
    height: 128px;
}

.library-card--compact .library-card__body {
    min-height: 132px;
}

.library-card--compact h3 {
    font-size: 17px;
}

.library-empty {
    align-items: center;
    background: var(--library-paper);
    border: 1px dashed #cbbfad;
    border-radius: 7px 26px 26px 26px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 330px;
    padding: 50px 28px;
    text-align: center;
}

.library-empty > span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--library-line);
    border-radius: 50%;
    color: var(--library-accent);
    display: flex;
    font-size: 25px;
    height: 68px;
    justify-content: center;
    width: 68px;
}

.library-empty h3 {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    margin: 20px 0 8px;
}

.library-empty p {
    color: var(--library-muted);
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 470px;
}

.library-empty--small {
    min-height: 210px;
}

.library-empty--small > span {
    display: none;
}

.library-pagination {
    margin-top: 38px;
}

.library-pagination nav > div:first-child {
    display: none;
}

.library-pagination nav > div:last-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.library-pagination .pagination {
    gap: 5px;
    margin: 0;
}

.library-pagination .page-link {
    align-items: center;
    border: 1px solid var(--library-line);
    border-radius: 9px !important;
    color: var(--library-ink);
    display: flex;
    height: 38px;
    justify-content: center;
    min-width: 38px;
}

.library-pagination .active > .page-link {
    background: var(--library-ink);
    border-color: var(--library-ink);
    color: #fff;
}

/* Document detail */
.library-detail {
    background: #fffefa;
    padding-bottom: 100px;
}

.library-breadcrumb {
    align-items: center;
    color: #85827b;
    display: flex;
    font-size: 11px;
    gap: 10px;
    padding: 34px 0 28px;
}

.library-breadcrumb a {
    color: var(--library-accent-dark);
    font-weight: 800;
}

.library-detail__hero {
    align-items: start;
    display: grid;
    gap: 44px;
    grid-template-columns: 265px minmax(0, 1fr) 295px;
    padding-bottom: 70px;
}

.library-detail__cover {
    border-radius: 4px 19px 19px 4px;
    box-shadow: -12px 17px 28px rgba(32, 29, 29, .18);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 375px;
    overflow: hidden;
    padding: 29px;
    position: relative;
}

.library-detail__cover::before {
    background: rgba(255, 255, 255, .22);
    bottom: 0;
    content: '';
    left: 16px;
    position: absolute;
    top: 0;
    width: 1px;
}

.library-detail__cover > span,
.library-detail__cover > small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.library-detail__cover > strong {
    color: rgba(255, 255, 255, .16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 125px;
    letter-spacing: -.12em;
    line-height: 1;
    margin: auto 0;
    transform: translateX(30px);
}

.library-detail__cover > i {
    bottom: 28px;
    font-size: 28px;
    position: absolute;
    right: 27px;
}

.library-detail__cover > small {
    color: rgba(255, 255, 255, .68);
}

.library-detail__copy {
    padding-top: 10px;
}

.library-detail__kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.library-detail__kicker span {
    background: #f1ece4;
    border-radius: 999px;
    color: #615f5a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    padding: 6px 9px;
    text-transform: uppercase;
}

.library-detail__copy h1 {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
    margin: 22px 0 20px;
}

.library-detail__copy > p {
    color: #686a70;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: 650px;
}

.library-detail__author {
    align-items: center;
    border-top: 1px solid #e7e1d8;
    display: grid;
    gap: 11px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    margin-top: 27px;
    padding-top: 19px;
}

.library-detail__author > span {
    align-items: center;
    background: var(--library-ink);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.library-detail__author div {
    display: flex;
    flex-direction: column;
}

.library-detail__author small,
.library-detail__author time {
    color: #8a8882;
    font-size: 9px;
}

.library-detail__author strong {
    color: var(--library-ink);
    font-size: 11px;
}

.library-detail__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 25px;
}

.library-detail__stats > div {
    border-left: 1px solid #ddd6cb;
    display: flex;
    flex-direction: column;
    min-width: 105px;
    padding: 3px 17px;
}

.library-detail__stats > div:first-child {
    border-left: 0;
    padding-left: 0;
}

.library-detail__stats strong {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
}

.library-detail__stats span {
    color: #8b8982;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.library-access-card {
    background: var(--library-paper);
    border: 1px solid var(--library-line);
    border-radius: 5px 24px 24px 24px;
    padding: 24px;
}

.library-access-card__price {
    border-bottom: 1px solid #d8cdbd;
    display: flex;
    flex-direction: column;
    margin-bottom: 19px;
    padding-bottom: 19px;
}

.library-access-card__price > span {
    color: #76736c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.library-access-card__price strong {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
    margin-top: 4px;
}

.library-access-card__price small {
    color: #77766f;
    font-size: 9px;
    margin-top: 4px;
}

.library-access-card > .library-button {
    margin-bottom: 9px;
    width: 100%;
}

.library-access-card__tools {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
    margin: 8px 0 17px;
}

.library-access-card__tools button {
    align-items: center;
    background: #fff;
    border: 1px solid #d5ccbd;
    border-radius: 4px 11px 11px 11px;
    color: var(--library-ink);
    cursor: pointer;
    display: flex;
    font-size: 9px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 39px;
}

.library-access-card__tools button[aria-pressed="true"] {
    border-color: #eaa88f;
    color: var(--library-accent-dark);
}

.library-collection-form {
    border-top: 1px solid #d8cdbd;
    margin-top: 15px;
    padding-top: 1px;
}

.library-collection-form > div {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 38px;
}

.library-collection-form select {
    min-height: 38px;
}

.library-collection-form button {
    background: var(--library-ink);
    border: 0;
    border-radius: 4px 10px 10px 10px;
    color: #fff;
    cursor: pointer;
}

.library-access-card__collection-link {
    color: var(--library-accent-dark);
    display: block;
    font-size: 10px;
    font-weight: 800;
    margin: 13px 0;
    text-align: center;
}

.library-access-card > ul {
    border-top: 1px solid #d8cdbd;
    list-style: none;
    margin: 18px 0 0;
    padding: 15px 0 0;
}

.library-access-card > ul li {
    align-items: center;
    color: #66655f;
    display: flex;
    font-size: 9px;
    gap: 8px;
    margin: 9px 0;
}

.library-access-card > ul i {
    color: var(--library-forest);
    width: 14px;
}

.library-detail__columns {
    border-bottom: 1px solid #e2dbd0;
    border-top: 1px solid #e2dbd0;
    display: grid;
    gap: 90px;
    grid-template-columns: minmax(0, 1fr) 310px;
    padding: 64px 0;
}

.library-detail__description > .library-eyebrow {
    margin-bottom: 13px;
}

.library-detail__description > p {
    color: #575a62;
    font-size: 14px;
    line-height: 1.9;
    margin: 26px 0 0;
    white-space: pre-line;
}

.library-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 26px;
}

.library-tags a {
    background: #f2ede5;
    border-radius: 999px;
    color: #65635e;
    font-size: 9px;
    font-weight: 800;
    padding: 7px 10px;
}

.library-detail__facts {
    background: #faf6ef;
    border-radius: 5px 20px 20px 20px;
    padding: 25px;
}

.library-detail__facts h2 {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 14px;
}

.library-detail__facts dl,
.library-detail__facts dd {
    margin: 0;
}

.library-detail__facts dl > div {
    align-items: center;
    border-bottom: 1px solid #e3dbcf;
    display: flex;
    font-size: 10px;
    gap: 20px;
    justify-content: space-between;
    padding: 12px 0;
}

.library-detail__facts dl > div:last-child {
    border-bottom: 0;
}

.library-detail__facts dt {
    color: #858179;
    font-weight: 600;
}

.library-detail__facts dd {
    color: var(--library-ink);
    font-weight: 800;
    text-align: right;
}

.library-reviews {
    padding: 72px 0;
}

.library-reviews__summary {
    align-items: baseline;
    display: flex;
    gap: 8px;
}

.library-reviews__summary strong {
    color: var(--library-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
}

.library-reviews__summary span {
    color: #817e77;
    font-size: 10px;
}

.library-review-form {
    align-items: end;
    background: var(--library-paper);
    border: 1px solid var(--library-line);
    border-radius: 5px 20px 20px 20px;
    display: grid;
    gap: 14px;
    grid-template-columns: 115px minmax(0, 1fr) auto;
    margin-bottom: 28px;
    padding: 18px;
}

.library-review-form label {
    margin-top: 0;
}

.library-review-form label small {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.library-review-form textarea {
    min-height: 72px;
    resize: vertical;
}

.library-review-list {
    display: grid;
    gap: 12px;
}

.library-review {
    border: 1px solid #e3ddd3;
    border-radius: 4px 17px 17px 17px;
    padding: 20px;
}

.library-review header {
    align-items: center;
    display: grid;
    gap: 11px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.library-review header > span {
    align-items: center;
    background: var(--library-forest);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.library-review header > div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.library-review header strong {
    color: var(--library-ink);
    font-size: 11px;
}

.library-review header small {
    color: #8a8780;
    font-size: 9px;
}

.library-stars {
    color: #e4a62b;
    font-size: 10px;
}

.library-review > p {
    color: #5f6167;
    font-size: 12px;
    line-height: 1.7;
    margin: 14px 0 0 49px;
}

.library-related {
    border-top: 1px solid #e2dbd0;
}

@media (max-width: 1199px) {
    .library-hero__grid {
        gap: 30px;
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .library-hero__folio {
        transform: scale(.85);
        transform-origin: center right;
    }

    .library-selection__grid,
    .library-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .library-detail__hero {
        gap: 28px;
        grid-template-columns: 220px minmax(0, 1fr) 270px;
    }

    .library-detail__cover {
        height: 325px;
    }
}

@media (max-width: 991px) {
    .library-hero__grid {
        grid-template-columns: 1fr;
    }

    .library-hero__folio {
        display: none;
    }

    .library-catalog {
        grid-template-columns: 1fr;
    }

    .library-filters {
        position: static;
    }

    .library-filters form {
        display: grid;
        gap: 9px 15px;
        grid-template-columns: repeat(3, 1fr);
    }

    .library-filters form > label {
        align-self: end;
        margin-bottom: -2px;
    }

    .library-filters fieldset,
    .library-filters .library-button {
        align-self: end;
        margin: 0;
    }

    .library-detail__hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .library-access-card {
        grid-column: 1 / -1;
    }

    .library-access-card__tools {
        max-width: 430px;
    }

    .library-detail__columns {
        gap: 45px;
        grid-template-columns: minmax(0, 1fr) 260px;
    }
}

@media (max-width: 767px) {
    .library-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .library-hero,
    .library-hero__grid {
        min-height: 530px;
    }

    .library-hero {
        padding-top: 88px;
    }

    .library-hero__grid {
        padding-bottom: 55px;
        padding-top: 55px;
    }

    .library-hero h1 {
        font-size: 49px;
    }

    .library-hero__copy > p {
        font-size: 14px;
    }

    .library-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .library-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .library-subnav .library-shell {
        gap: 20px;
        overflow-x: auto;
    }

    .library-subnav a {
        white-space: nowrap;
    }

    .library-section-heading,
    .library-results__heading {
        align-items: start;
        flex-direction: column;
    }

    .library-section-heading > p,
    .library-results__heading > p {
        text-align: left;
    }

    .library-selection__grid,
    .library-grid,
    .library-grid--four {
        grid-template-columns: 1fr;
    }

    .library-filters form {
        grid-template-columns: 1fr;
    }

    .library-detail__hero {
        grid-template-columns: 1fr;
    }

    .library-detail__cover {
        height: 275px;
        max-width: 205px;
    }

    .library-detail__cover > strong {
        font-size: 95px;
    }

    .library-detail__copy h1 {
        font-size: 41px;
    }

    .library-detail__author {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .library-detail__author time {
        grid-column: 2;
    }

    .library-detail__columns {
        grid-template-columns: 1fr;
    }

    .library-review-form {
        grid-template-columns: 1fr;
    }

    .library-review header {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .library-stars {
        grid-column: 2;
    }

    .library-review > p {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .library-page *,
    .library-shelf * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
