.lib-page {
    --plum: #422958;
    --ink: #2f2934;
    --muted: #59525e;
    --line: #ded8df;
    background: #fdfcf9;
    color: var(--ink);
    font: 1rem/1.55 "Trebuchet MS", Arial, sans-serif;
}
.lib-page :is(p, label, span, dt, dd, li) { font-family: inherit; }
.lib-page :is(h1, h2, h3, .lib-collections dt) { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.03em; }
.lib-page h2 { margin: 0 0 .8rem; color: var(--ink); font-size: clamp(1.9rem, 3vw, 2.7rem); }
.lib-page a { color: var(--plum); text-decoration: underline; text-underline-offset: .19em; }
.lib-page :is(a, button, input, select, th):focus-visible { outline: 3px solid #b58330; outline-offset: 3px; }
.lib-wrap { width: min(90%, 74rem); margin-inline: auto; }
.lib-hero { position: relative; isolation: isolate; overflow: hidden; background: #2f2039; color: white; }
.lib-hero-image { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 58%; height: 100%; object-fit: cover; }
.lib-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#2f2039 38%,#2f2039f5 45%,#2f203900 75%); }
.lib-hero-inner { padding-block: 1.35rem clamp(2.25rem, 4.2vw, 4rem); }
.lib-breadcrumb, .lib-hero-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; }
.lib-breadcrumb { font-size: .9rem; }
.lib-hero a { color: white; }
.lib-hero h1 { color: white; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; margin: clamp(1.6rem, 3vw, 2.65rem) 0 .8rem; }
.lib-hero p { max-width: 33rem; font-size: 1.15rem; }
.lib-hero form { width: min(100%, 31rem); margin-block: 1.5rem .85rem; }
.lib-hero label { display: block; margin-bottom: .3rem; font-weight: 700; }
.lib-search-box { display: flex; padding: .25rem; background: white; border-radius: .35rem; }
.lib-search-box input { flex: 1; min-width: 0; padding: .6rem; border: 0; border-radius: .2rem; font: inherit; }
.lib-search-box button { border: 0; border-radius: .2rem; background: #f0c885; color: #291f2d; padding: .55rem 1.2rem; font-weight: 700; }
.lib-search-box button:hover { background: #ffdaa0; }
.lib-hero-links { gap: .5rem 1.35rem; font-size: .95rem; }
.lib-nav { border-bottom: 1px solid var(--line); background: white; }
.lib-nav .lib-wrap { display: flex; flex-wrap: wrap; gap: 0 1.6rem; padding-block: .4rem; }
.lib-nav a { padding: .45rem 0; text-decoration: none; font-weight: 600; }
.lib-nav a:hover { text-decoration: underline; }
.lib-page section[id] { scroll-margin-top: 9rem; }
.lib-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.3rem; padding: 1.35rem 1.5rem; border-inline-start: 4px solid #af8547; background: #f3efe8; }
.lib-hours h2 { font-size: 1.65rem; margin: 0; }
.lib-hours dl { flex: 1; display: flex; justify-content: space-around; flex-wrap: wrap; gap: .85rem 1.5rem; margin: 0; }
.lib-hours dt { color: var(--muted); font-size: .93rem; }
.lib-hours dd { margin: .15rem 0 0; font-weight: 600; }
.lib-section { margin-block: clamp(2.2rem, 4vw, 3.8rem); }
.lib-tools { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-block: 1.1rem; }
.lib-tools[hidden] { display: none; }
.lib-tools label { display: grid; gap: .25rem; color: var(--muted); font-size: .93rem; font-weight: 600; }
.lib-tools label:first-child { flex: 1; max-width: 30rem; }
.lib-tools input, .lib-tools select { min-width: 0; margin: 0; border: 1px solid #bab1be; color: var(--ink); background-color: white; border-radius: .3rem; padding: .55rem .7rem; font: 1rem/1.4 "Trebuchet MS", Arial, sans-serif; }
.lib-resources { width: 100%; border-collapse: collapse; background: white; }
.lib-resources th, .lib-resources td { padding: .85rem 1rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.lib-resources th { background-color: #eeeaf1; }
.lib-resources td:first-child { width: 26%; overflow-wrap: anywhere; }
.lib-resources td:first-child a { font-weight: 650; }
.lib-resources td.lib-type { white-space: nowrap; font-size: .92rem; color: var(--muted); }
.lib-resources small { display: none; color: var(--muted); }
.lib-rich { overflow-wrap: anywhere; }
.lib-rich p:last-child { margin-bottom: 0; }
.lib-results { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; padding-top: .9rem; color: var(--muted); font-size: .9rem; }
.lib-results .dataTables_info { margin-right: auto; }
.lib-results .pagination { flex-wrap: wrap; }
.lib-results .active .page-link { background: var(--plum); border-color: var(--plum); color: white; }
.lib-collections { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.lib-collections > div { padding: 1.35rem; border-top: 3px solid #ad8957; background: #f5f1ec; }
.lib-collections dt { color: var(--plum); font-size: 1.5rem; }
.lib-collections dd { margin: .6rem 0 0; }
.lib-services, .lib-about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.lib-services { background: #35253e; color: white; }
.lib-services img { width: 100%; height: 100%; object-fit: cover; }
.lib-services > div { padding: clamp(1.3rem, 3vw, 2.7rem); }
.lib-services h2 { color: white; }
.lib-services ul { padding-left: 1.2rem; margin: 1rem 0 0; }
.lib-services li { padding: .17rem; }
.lib-services li::marker { color: #e4ba74; }
.lib-about { gap: 2rem; }
.lib-about h3 { margin-block: 1rem .5rem; font-size: 1.5rem; }
.lib-photos { display: grid; grid-template-columns: repeat(2,1fr); gap: .6rem; }
.lib-photos img { width: 100%; height: auto; }
.lib-photos img:first-child { grid-column: 1/-1; max-height: 13rem; object-fit: cover; }
@media (max-width: 50rem) {
    .lib-hero-image { width: 100%; }
    .lib-hero::after { background: linear-gradient(90deg,#2f2039f7,#2f2039db 65%,#2f2039ac); }
    .lib-hours dl { justify-content: flex-start; }
    .lib-services, .lib-about { grid-template-columns: 1fr; }
    .lib-services img { height: min(48vw, 17rem); }
    .lib-collections { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
    .lib-nav .lib-wrap { column-gap: 1.15rem; }
    .lib-hours { display: block; }
    .lib-hours dl { display: grid; margin-top: .9rem; gap: .5rem; }
    .lib-hours dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
    .lib-hours dd { text-align: right; }
    .lib-tools label { width: 100%; }
    .lib-tools label:first-child { flex: auto; max-width: none; }
    .lib-resources th, .lib-resources td { padding: .6rem .4rem; }
    .lib-resources .lib-type { display: none; }
    .lib-resources td:first-child { width: 36%; }
    .lib-resources small { display: block; font-size: .85rem; margin-top: .25rem; }
}
