﻿
/* =========================================
   GLOBAL SETTINGS
========================================= */

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
        line-height: 1.7;
    }
}

body {
    margin-bottom: 60px;
    background: var(--paper);
    color: var(--navy);
    font-family: "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================================
   PREMIUM DESIGN SYSTEM
========================================= */

:root {
    --navy: #142b3b;
    --navy-soft: #1d3a4b;
    --teal: #276b68;
    --ivory: #f5f2ea;
    --paper: #fffefa;
    --gold: #c49a58;
    --muted: #8c918e;
    --line: #e7e3da;
}

.library-page {
    width: 100%;
    overflow: hidden;
    background: var(--paper);
}

    .library-page * {
        box-sizing: border-box;
    }

/* =========================================
   HERO SECTION
========================================= */

.library-hero {
    min-height: 540px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    padding: 65px 7%;
    background: var(--ivory);
    position: relative;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.eyebrow {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.eyebrow-line {
    width: 35px;
    height: 1px;
    background: var(--gold);
}

.library-hero h1 {
    color: var(--navy);
    font-family: "Times New Roman", "Segoe UI", serif;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.5px;
    word-spacing: 0;
    font-kerning: normal;
    margin-bottom: 24px;
}

    .library-hero h1 span {
        color: var(--teal);
        font-style: italic;
        letter-spacing: 0;
    }

.hero-description {
    max-width: 470px;
    color: #6d7777;
    line-height: 1.8;
    font-size: 20px;
    margin-bottom: 30px;
}

.library-search {
    max-width: 550px;
    display: flex;
    align-items: center;
    background: white;
    padding: 7px;
    border: 1px solid #e9e4d9;
    box-shadow: 0 12px 35px rgba(20, 43, 59, .07);
}

.search-symbol {
    font-size: 29px;
    padding: 0 12px;
    color: var(--teal);
}

.library-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 5px;
    color: var(--navy);
    font-size: 17px;
}

.library-search button {
    background: var(--navy);
    color: white;
    border: 0;
    padding: 14px 18px;
    font-size: 16px;
    transition: .25s;
}

    .library-search button:hover {
        background: var(--teal);
    }

    .library-search button span {
        margin-left: 8px;
    }

.hero-note {
    margin-top: 23px;
    color: #858c88;
    font-size: 15px;
    letter-spacing: .4px;
}

.note-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--teal);
    border-radius: 50%;
    margin-right: 8px;
}

/* =========================================
   HERO BOOK ART
========================================= */

.hero-art {
    height: 410px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-glow {
    width: 300px;
    height: 300px;
    position: absolute;
    background: #e5dfce;
    border-radius: 50%;
}

.art-circle {
    position: absolute;
    border: 1px solid rgba(39, 107, 104, .25);
    border-radius: 50%;
}

.circle-one {
    width: 350px;
    height: 350px;
}

.circle-two {
    width: 410px;
    height: 410px;
}

.art-book {
    position: absolute;
    width: 205px;
    height: 285px;
    box-shadow: 15px 20px 35px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.book-back {
    background: #276b68;
    transform: rotate(-12deg) translate(-35px, 8px);
    color: white;
    justify-content: center;
    border-left: 9px solid #174a48;
}

    .book-back span {
        font-family: Georgia, serif;
        font-size: 23px;
        line-height: 1.5;
    }

    .book-back small {
        margin-top: 25px;
        font-size: 10px;
        letter-spacing: 2px;
    }

.book-spine {
    position: absolute;
    top: 0;
    left: 9px;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, .3);
}

.book-front {
    background: #183548;
    color: white;
    transform: rotate(7deg) translate(35px, 0);
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, .3);
}

.book-front-top,
.book-front-bottom {
    font-size: 10px;
    letter-spacing: 2px;
    color: #d5b477;
}

.book-front-title {
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1.2;
}

    .book-front-title i {
        color: #d5b477;
    }

.art-caption {
    position: absolute;
    bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #89908b;
    font-size: 12px;
    letter-spacing: 2px;
}

/* =========================================
   INTRO STRIP
========================================= */

.intro-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
    padding: 30px 8%;
    border-bottom: 1px solid var(--line);
}

    .intro-strip > div {
        display: flex;
        gap: 18px;
        align-items: center;
        padding: 5px 22px;
        border-right: 1px solid var(--line);
    }

        .intro-strip > div:last-child {
            border: 0;
        }

.strip-number {
    font-family: Georgia, serif;
    font-size: 29px;
    color: var(--gold);
}

.intro-strip strong,
.intro-strip small {
    display: block;
}

.intro-strip strong {
    font-size: 18px;
    margin-bottom: 6px;
}

.intro-strip small {
    color: var(--muted);
    font-size: 16px;
}

/* =========================================
   CONTENT SECTION
========================================= */

.content-section {
    padding: 85px 8%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 35px;
}

.dark-eyebrow {
    color: var(--teal);
}

.section-heading h2,
.service-copy h2 {
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 45px);
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

    .section-heading h2 em {
        color: var(--teal);
    }

.section-heading p {
    color: #828a87;
    font-size: 17px;
    margin: 0;
}

.text-link {
    color: var(--teal);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    padding-bottom: 5px;
}

    .text-link span {
        margin-left: 8px;
    }

    .text-link:hover {
        color: var(--gold);
    }

/* =========================================
   CATEGORY
========================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.category-tile {
    min-height: 230px;
    position: relative;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}

    .category-tile:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(20, 43, 59, .12);
    }

.category-large {
    background: var(--navy);
    color: white;
}

.category-green {
    background: var(--teal);
    color: white;
}

.category-light {
    background: #ebe8df;
    color: var(--navy);
}

.category-gold {
    background: #e9ddc8;
    color: var(--navy);
}

.category-index {
    font-size: 13px;
    letter-spacing: 2px;
    opacity: .7;
}

.category-icon {
    font-family: Georgia, serif;
    font-size: 36px;
    opacity: .85;
}

.category-tile strong {
    font-family: Georgia, serif;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 400;
}

.category-arrow {
    position: absolute;
    right: 23px;
    bottom: 24px;
    font-size: 22px;
}

/* =========================================
   FEATURED BOOKS
========================================= */

.featured-section {
    background: var(--navy);
    color: white;
    padding: 80px 8%;
}

    .featured-section .section-heading h2 {
        color: white;
    }

    .featured-section .section-heading p {
        color: #b7c2c3;
    }

.light-link {
    color: #d5b477;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.featured-book {
    min-width: 0;
}

.cover {
    height: 300px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .2);
    transition: transform .3s;
}

.featured-book:hover .cover {
    transform: translateY(-7px) rotate(-1deg);
}

.cover-one {
    background: linear-gradient(145deg, #bd9b66, #80633e);
    color: #fff8e9;
}

.cover-two {
    background: linear-gradient(145deg, #557b75, #1d4845);
    color: #f4f0e4;
}

.cover-three {
    background: linear-gradient(145deg, #8a6a74, #483744);
    color: #fff0e8;
}

.cover > span {
    font-size: 12px;
    letter-spacing: 2px;
}

.cover strong {
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 400;
}

.cover small {
    font-size: 11px;
    letter-spacing: 2px;
}

.book-meta {
    padding-top: 20px;
}

.book-type {
    color: #d5b477;
    font-size: 14px;
    letter-spacing: 2px;
}

.book-meta h3 {
    color: white;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    margin: 9px 0;
}

.book-meta p {
    color: #aebbbc;
    font-size: 17px;
}

/* =========================================
   SERVICES
========================================= */

.service-section {
    padding: 90px 8%;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 9%;
    align-items: center;
}

.service-copy h2 {
    line-height: 1.25;
    max-width: 430px;
}

.service-copy p {
    color: #818985;
    line-height: 1.9;
    font-size: 18px;
    max-width: 420px;
}

.service-item {
    display: grid;
    grid-template-columns: 45px 1fr 20px;
    gap: 15px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

    .service-item > span {
        color: var(--gold);
        font-family: Georgia, serif;
        font-size: 21px;
    }

    .service-item strong {
        font-family: Georgia, serif;
        font-size: 22px;
        font-weight: 400;
    }

    .service-item p {
        color: #89908b;
        font-size: 16px;
        margin: 7px 0 0;
    }

    .service-item b {
        color: var(--teal);
    }

/* =========================================
   CLOSING BANNER
========================================= */

.closing-banner {
    margin: 0 8% 70px;
    padding: 45px 55px;
    background: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .closing-banner > div:first-child > span {
        color: var(--gold);
        font-size: 13px;
        letter-spacing: 3px;
    }

    .closing-banner h2 {
        color: var(--navy);
        font-family: Georgia, serif;
        font-size: 36px;
        line-height: 1.2;
        font-weight: 400;
        margin: 13px 0 0;
    }

.closing-mark {
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 85px;
}

    .closing-mark span {
        color: var(--gold);
    }

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .library-hero {
        grid-template-columns: 1fr;
        padding: 55px 7%;
    }

    .hero-art {
        height: 380px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .library-hero {
        padding: 45px 6%;
    }

        .library-hero h1 {
            font-size: 42px;
        }

    .hero-description {
        font-size: 17px;
    }

    .library-search {
        flex-wrap: wrap;
    }

        .library-search button {
            width: 100%;
        }

    .hero-art {
        transform: scale(.8);
        margin: -20px 0;
    }

    .intro-strip {
        grid-template-columns: 1fr;
        gap: 15px;
    }

        .intro-strip > div {
            border-right: 0;
            border-bottom: 1px solid var(--line);
            padding: 12px 0;
        }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .category-grid,
    .book-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-tile {
        min-height: 190px;
        padding: 18px;
    }

        .category-tile strong {
            font-size: 21px;
        }

    .cover {
        height: 220px;
        padding: 15px;
    }

        .cover strong {
            font-size: 24px;
        }

    .closing-banner {
        margin: 0 5% 40px;
        padding: 30px 22px;
    }

        .closing-banner h2 {
            font-size: 27px;
        }

    .closing-mark {
        font-size: 48px;
    }

    /* =========================================
   E-LIBRARY PREMIUM LAYOUT
========================================= */

    .elibrary-body {
        margin: 0;
        padding: 0;
        background: #fffefa;
        color: #142b3b;
    }

    /* HEADER */

    .elibrary-header {
        width: 100%;
        background: #fffefa;
        border-bottom: 1px solid #e7e3da;
        position: relative;
        z-index: 100;
    }

    .elibrary-navbar {
        width: 100%;
        max-width: 1600px;
        min-height: 92px;
        margin: 0 auto;
        padding: 15px 5%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }

    /* BRAND */

    .elibrary-brand {
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        color: #142b3b;
        flex-shrink: 0;
    }

    .brand-symbol {
        font-family: Georgia, serif;
        font-size: 42px;
        font-weight: 600;
        line-height: 1;
    }

        .brand-symbol span {
            color: #c49a58;
        }

    .brand-information {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .brand-information strong {
            font-size: 17px;
            letter-spacing: 2px;
            color: #142b3b;
        }

        .brand-information small {
            font-size: 11px;
            letter-spacing: 1px;
            color: #8c918e;
        }

    /* NAVIGATION */

    .elibrary-navigation {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        gap: 35px;
    }

    .elibrary-links {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        gap: 30px;
    }

        .elibrary-links a {
            color: #354c55;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: color .25s;
            white-space: nowrap;
        }

            .elibrary-links a:hover {
                color: #276b68;
            }

    /* ACCOUNT BUTTONS */

    .elibrary-actions {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .nav-login {
        color: #142b3b;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
    }

        .nav-login:hover {
            color: #276b68;
        }

    .nav-register {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: #142b3b;
        color: white;
        padding: 13px 22px;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        white-space: nowrap;
        transition: background .25s;
    }

        .nav-register:hover {
            background: #276b68;
            color: white;
        }

    /* MOBILE BUTTON */

    .elibrary-menu-toggle {
        display: none;
        border: 1px solid #e7e3da;
        background: transparent;
        color: #142b3b;
        padding: 8px 14px;
        font-size: 23px;
        cursor: pointer;
    }

    /* MAIN - FULL WIDTH */

    .elibrary-main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

        .elibrary-main > .library-page {
            width: 100%;
            max-width: none;
            margin: 0;
        }

    /* FOOTER */

    .elibrary-footer {
        background: #142b3b;
        color: #e8ecea;
        padding: 75px 7% 25px;
    }

    .footer-inner {
        max-width: 1450px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
        gap: 60px;
        padding-bottom: 65px;
    }

    .footer-logo {
        font-family: Georgia, serif;
        font-size: 55px;
        line-height: 1;
        color: white;
    }

        .footer-logo span {
            color: #c49a58;
        }

    .footer-brand h3 {
        margin-top: 20px;
        font-size: 20px;
        letter-spacing: 3px;
        color: white;
    }

    .footer-brand p {
        max-width: 330px;
        margin-top: 20px;
        color: #aebbbc;
        font-size: 15px;
        line-height: 1.9;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

        .footer-column h4 {
            color: #d5b477;
            font-size: 17px;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .footer-column a {
            color: #c4cdcb;
            font-size: 15px;
            text-decoration: none;
            transition: color .25s;
        }

            .footer-column a:hover {
                color: #d5b477;
            }

        .footer-column p {
            color: #aebbbc;
            font-size: 15px;
            line-height: 1.7;
            margin: 0;
        }

    .footer-bottom {
        max-width: 1450px;
        margin: 0 auto;
        border-top: 1px solid rgba(255,255,255,.15);
        padding-top: 25px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        color: #aebbbc;
        font-size: 13px;
    }

    /* RESPONSIVE */

    @media (max-width: 1100px) {
        .elibrary-navbar {
            flex-wrap: wrap;
        }

        .elibrary-menu-toggle {
            display: block;
            margin-left: auto;
        }

        .elibrary-navigation {
            display: none;
            flex-basis: 100%;
            flex-direction: column;
            align-items: stretch;
            gap: 25px;
            padding: 25px 0;
        }

            .elibrary-navigation.show {
                display: flex;
            }

        .elibrary-links {
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
        }

        .elibrary-actions {
            flex-wrap: wrap;
        }

        .footer-inner {
            grid-template-columns: repeat(2, 1fr);
            gap: 45px;
        }
    }

    @media (max-width: 600px) {
        .elibrary-navbar {
            min-height: 75px;
            padding: 12px 5%;
        }

        .brand-symbol {
            font-size: 35px;
        }

        .brand-information strong {
            font-size: 14px;
        }

        .brand-information small {
            font-size: 9px;
        }

        .footer-inner {
            grid-template-columns: 1fr;
            gap: 35px;
        }

        .elibrary-footer {
            padding: 55px 6% 25px;
        }

        .footer-bottom {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    /* =========================================
   HOMEPAGE WIDE SCREEN IMPROVEMENTS
========================================= */

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 30px;
    }

    .library-page {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .library-hero {
        width: 100%;
        min-height: 620px;
        padding: 85px max(6%, calc((100% - 1500px) / 2));
        grid-template-columns: 1.08fr .92fr;
        gap: 50px;
    }

    .hero-copy {
        max-width: 700px;
    }

    .hero-description {
        max-width: 570px;
    }

    .library-search {
        max-width: 610px;
    }

    .hero-art {
        min-width: 0;
    }

    .intro-strip {
        width: 100%;
        padding: 35px 7%;
    }

    .content-section {
        width: 100%;
        padding: 90px 7%;
    }

    .featured-section {
        width: 100%;
        padding: 90px 7%;
    }

    .category-grid {
        gap: 22px;
    }

    .category-tile {
        min-height: 270px;
        padding: 30px;
    }

    .book-grid {
        gap: 32px;
    }

    .cover {
        height: 360px;
        padding: 30px;
    }

    .service-section {
        width: 100%;
        padding: 100px 7%;
        gap: 8%;
    }

    .closing-banner {
        margin: 0 7% 90px;
        padding: 60px 65px;
    }

    /* ACCESSIBILITY AND INTERACTIONS */

    .library-page a:focus-visible,
    .library-page button:focus-visible,
    .library-page input:focus-visible {
        outline: 3px solid #c49a58;
        outline-offset: 3px;
    }

    .category-tile,
    .featured-book {
        transition: transform .25s ease;
    }

        .category-tile:hover {
            transform: translateY(-5px);
        }

        .featured-book:hover {
            transform: translateY(-3px);
        }

    /* TABLET */

    @media (max-width: 1100px) {
        .library-hero {
            padding: 65px 6%;
            gap: 25px;
        }

        .content-section,
        .featured-section {
            padding: 75px 6%;
        }

        .category-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .service-section {
            padding: 80px 6%;
            gap: 40px;
        }
    }

    /* MOBILE */

    @media (max-width: 700px) {
        .library-hero {
            grid-template-columns: 1fr;
            padding: 55px 6%;
            gap: 15px;
        }

        .hero-copy {
            max-width: 100%;
        }

        .hero-description {
            font-size: 17px;
        }

        .hero-art {
            height: 350px;
        }

        .intro-strip {
            grid-template-columns: 1fr;
            padding: 25px 6%;
        }

        .content-section,
        .featured-section {
            padding: 65px 6%;
        }

        .category-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .category-tile {
            min-height: 210px;
            padding: 18px;
        }

            .category-tile strong {
                font-size: 21px;
            }

        .book-grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .cover {
            height: 350px;
            padding: 28px;
        }

        .service-section {
            grid-template-columns: 1fr;
            padding: 70px 6%;
        }

        .closing-banner {
            margin: 0 6% 60px;
            padding: 35px 25px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        .category-tile,
        .featured-book {
            transition: none;
        }
    }


}

/* ===========================================================================
   GD18.2 Premium UI polish v1 | 2026-11-12
   Presentational refinements only. Preserve forms, links, data, and scripts.
   Review at 100% browser zoom before comparing screenshots.
   =========================================================================== */

/* Home: preserve the editorial full-width design; improve on-screen legibility. */
@media (min-width: 1101px) {
  .elib-main .library-page .library-hero {
    min-height: 600px;
    gap: clamp(36px, 4vw, 66px);
  }
  .elib-main .library-page .hero-copy { max-width: 740px; }
  .elib-main .library-page .hero-description { max-width: 610px; font-size: clamp(16px, 1.1vw, 18px); }
  .elib-main .library-page .library-search { max-width: 630px; }
}
.elib-main .library-page .featured-section .section-heading p,
.elib-main .library-page .section-heading p { line-height: 1.7; }
.elib-main .library-page .featured-book { min-width: 0; }
.elib-main .library-page .featured-book .book-info,
.elib-main .library-page .featured-book .featured-book-info { line-height: 1.6; }

/* BookService catalogue: roomier without weakening original responsive grid. */
.elib-main .catalog-page { padding: 34px clamp(16px, 3vw, 44px) 82px; }
.elib-main .catalog-page .catalog-container { max-width: 1380px; }
.elib-main .catalog-page .catalog-hero { padding: clamp(32px, 3.6vw, 56px); margin-bottom: 24px; }
.elib-main .catalog-page .catalog-hero h1 { font-size: clamp(32px, 2.8vw, 44px); line-height: 1.19; }
.elib-main .catalog-page .catalog-hero p { font-size: 16px; max-width: 780px; line-height: 1.75; }
.elib-main .catalog-page .catalog-search { padding: clamp(20px, 2vw, 29px); }
.elib-main .catalog-page .catalog-form label { font-size: 14px; }
.elib-main .catalog-page .catalog-input,
.elib-main .catalog-page .catalog-form select { font-size: 15px; min-height: 46px; }
.elib-main .catalog-page .catalog-grid { gap: clamp(16px, 1.7vw, 25px); }
.elib-main .catalog-page .catalog-card { padding: clamp(13px, 1.4vw, 19px); }
.elib-main .catalog-page .catalog-cover { height: clamp(225px, 19vw, 290px); }
.elib-main .catalog-page .catalog-info h3 { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.36; }
.elib-main .catalog-page .catalog-info p { font-size: 14px; line-height: 1.7; }
.elib-main .catalog-page .catalog-borrow-button,
.elib-main .catalog-page .catalog-detail-link { min-height: 45px; font-size: 14px; }
.elib-main .catalog-page .catalog-page-link { min-width: 39px; min-height: 41px; font-size: 13px; }

/* TDMU: strong hierarchy while retaining transparent external-source notices. */
.elib-main .tdmu-academic { padding: 30px clamp(16px, 3vw, 42px) 88px; }
.elib-main .tdmu-academic .frame { max-width: 1380px; }
.elib-main .tdmu-academic .hero { padding: clamp(32px, 3vw, 47px); }
.elib-main .tdmu-academic h1 { font-size: clamp(30px, 3vw, 43px); }
.elib-main .tdmu-academic .hero p { font-size: 16px; max-width: 840px; }
.elib-main .tdmu-academic h2 { font-size: clamp(23px, 2vw, 28px); }
.elib-main .tdmu-academic .stat { padding: clamp(18px, 1.6vw, 24px); }
.elib-main .tdmu-academic .stat b { font-size: 29px; }
.elib-main .tdmu-academic .stat span { font-size: 13px; line-height: 1.55; }
.elib-main .tdmu-academic .filter { padding: clamp(20px, 2.25vw, 31px); }
.elib-main .tdmu-academic .field label { font-size: 14px; }
.elib-main .tdmu-academic .field select { min-height: 47px; font-size: 15px; }
.elib-main .tdmu-academic .results-heading p,
.elib-main .tdmu-academic .reference-note { font-size: 14px; line-height: 1.75; }
.elib-main .tdmu-academic .books { gap: clamp(15px, 1.65vw, 23px); }
.elib-main .tdmu-academic .reference-card { padding: clamp(13px, 1.2vw, 18px); }
.elib-main .tdmu-academic .reference-cover { min-height: 208px; height: 208px; }
.elib-main .tdmu-academic .reference-cover strong { font-size: clamp(19px, 1.55vw, 23px); }
.elib-main .tdmu-academic .reference-card h3 { font-size: 18px; line-height: 1.43; }
.elib-main .tdmu-academic .reference-card .meta,
.elib-main .tdmu-academic .ref-source { font-size: 14px; }
.elib-main .tdmu-academic .reference-status { font-size: 13px; line-height: 1.6; }
.elib-main .tdmu-academic .ref-button { min-height: 45px; font-size: 14px; }
.elib-main .tdmu-academic .pages a,
.elib-main .tdmu-academic .pages span { min-width: 42px; min-height: 42px; }

/* Identity: enlarge the existing premium panels, not the authentication logic. */
.elib-main .pl-page { padding: clamp(24px, 3vw, 46px) clamp(14px, 2.4vw, 38px) 72px; }
.elib-main .pl-page .pl-shell { max-width: 1360px; }
.elib-main .pl-page .pl-form-wrap { max-width: 480px; }
.elib-main .pl-page .pl-intro { font-size: 15px; line-height: 1.75; }
.elib-main .pl-page .pl-field label { font-size: 14px; }
.elib-main .pl-page .pl-input { font-size: 15px; }
.elib-main .pl-page .pl-register { font-size: 14px; }

/* Consistent keyboard focus, without altering click/submit behavior. */
.elib-main .catalog-page a:focus-visible,
.elib-main .catalog-page button:focus-visible,
.elib-main .tdmu-academic a:focus-visible,
.elib-main .tdmu-academic button:focus-visible,
.elib-main .tdmu-academic select:focus-visible,
.elib-main .pl-page a:focus-visible,
.elib-main .pl-page button:focus-visible { outline: 3px solid #c19a5d; outline-offset: 3px; }

/* Tablet and mobile: never turn the 3-column catalog into overflowing cards. */
@media (max-width: 950px) {
  .elib-main .catalog-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elib-main .catalog-page .catalog-cover { height: 235px; }
  .elib-main .tdmu-academic .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elib-main .tdmu-academic .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
  .elib-main .catalog-page { padding: 18px 12px 64px; }
  .elib-main .catalog-page .catalog-grid,
  .elib-main .catalog-page .catalog-form { grid-template-columns: 1fr; }
  .elib-main .catalog-page .catalog-hero { padding: 29px 23px; }
  .elib-main .catalog-page .catalog-cover { height: 240px; }
  .elib-main .tdmu-academic { padding: 16px 12px 58px; }
  .elib-main .tdmu-academic .hero { padding: 28px 22px; }
  .elib-main .tdmu-academic .filter { padding: 19px 16px; }
  .elib-main .tdmu-academic .filter-grid,
  .elib-main .tdmu-academic .books { grid-template-columns: 1fr; }
  .elib-main .tdmu-academic .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elib-main .tdmu-academic .reference-cover { min-height: 184px; height: 184px; }
  .elib-main .pl-page { padding: 16px 12px 44px; }
  .elib-main .pl-page .pl-shell { max-width: 100%; }
  .elib-main .pl-page .pl-form-wrap { max-width: 100%; }
}
