/*
Theme Name: VYBE DigiLib
Theme URI: https://vybetechno.com/
Author: VYBE Technologies (S. Veerakannan)
Author URI: https://vybetechno.com/
Description: The library portal theme for the VYBE DigiLib plugin — a catalogue-first home page with a subject shelf, new arrivals, services, the Digital Repository, e-resources, notices and visiting hours; book, repository item, notice and e-resource pages; and full support for Elementor and Elementor Pro Theme Builder (header, footer, single and archive templates). Tamil and English ready.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vybe-digilib
Tags: education, library, custom-logo, custom-menu, featured-images, full-width-template, translation-ready, accessibility-ready
*/

/* ===================================================================== tokens */
:root {
	--t-bg: #f5f7fb;
	--t-paper: #ffffff;
	--t-ink: #14213d;
	--t-ink-2: #2b3a55;
	--t-slate: #5b6b84;
	--t-line: #dce2ec;
	--t-navy: #0b1a3a;
	--t-orange: #f26b1d;
	--t-ok: #15803d;
	--t-warn: #b45309;
	--t-brand: #2563eb;
	--t-brand-ink: #ffffff;
	--t-brand-dark: #1b47aa;
	--t-brand-soft: rgba(37, 99, 235, .08);
	--t-brand-line: rgba(37, 99, 235, .22);
	--t-font: "Plus Jakarta Sans", "Noto Sans Tamil", "Noto Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--t-wrap: 1200px;
	--t-gutter: clamp(16px, 4vw, 32px);
	--t-r-sm: 6px;
	--t-r: 10px;
	--t-r-lg: 16px;
	--t-shadow: 0 1px 2px rgba(11, 26, 58, .06), 0 8px 24px -16px rgba(11, 26, 58, .28);
	/* DigiLib plugin pages follow the theme */
	--vdl-brand: var(--t-brand);
	--vdlr-accent: var(--t-brand);
	--vdlr-accent-dark: var(--t-brand-dark);
}

/* ===================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--t-bg); color: var(--t-ink); font-family: var(--t-font); font-size: 16.5px; line-height: 1.6; font-feature-settings: "ss01" 0; text-rendering: optimizeLegibility; overflow-x: hidden; }
:lang(ta) { line-height: 1.75; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--t-brand); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--t-brand-dark); }
:focus-visible { outline: 3px solid var(--t-orange); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--t-ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--t-line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.vdlt-skip { position: absolute; left: -999px; top: .5rem; z-index: 1000; background: var(--t-navy); color: #fff; padding: .6rem 1rem; border-radius: var(--t-r-sm); }
.vdlt-skip:focus { left: .5rem; }
.vdlt-wrap { width: 100%; max-width: calc(var(--t-wrap) + 2 * var(--t-gutter)); margin: 0 auto; padding: 0 var(--t-gutter); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* buttons */
.vdlt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.15rem; border-radius: var(--t-r-sm); border: 1px solid var(--t-brand); background: var(--t-brand); color: var(--t-brand-ink) !important; font-weight: 700; text-decoration: none; line-height: 1.2; cursor: pointer; }
.vdlt-btn:hover { background: var(--t-brand-dark); border-color: var(--t-brand-dark); }
.vdlt-btn--quiet { background: transparent; color: var(--t-brand) !important; border-color: var(--t-brand-line); }
.vdlt-btn--quiet:hover { background: var(--t-brand-soft); color: var(--t-brand-dark) !important; }
.vdlt-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.vdlt-more:hover { text-decoration: underline; }
.vdlt-empty { color: var(--t-slate); }

/* ===================================================================== header */
.vdlt-site-header { background: var(--t-paper); border-bottom: 1px solid var(--t-line); position: relative; z-index: 50; }
.vdlt-site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .vdlt-site-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .vdlt-site-header.is-sticky { top: 0; position: relative; } }
.vdlt-topbar { background: var(--t-navy); color: #c9d3e6; font-size: .84rem; }
.vdlt-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.vdlt-topbar a { color: #e6ecf7; text-decoration: none; }
.vdlt-topbar a:hover { color: #fff; text-decoration: underline; }
.vdlt-topbar__info { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; align-items: center; }
.vdlt-topbar__menu { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.vdlt-open { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.vdlt-open::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--t-warn); flex: none; }
.vdlt-open.is-open::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.vdlt-topbar .vdlt-open { color: #fff; }

.vdlt-mast__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.vdlt-brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--t-ink); min-width: 0; }
.vdlt-logo { display: block; max-height: 60px; width: auto; flex: none; }
.vdlt-logo--initials { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--t-navy); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.vdlt-brand__text { display: flex; flex-direction: column; min-width: 0; }
.vdlt-brand__lib { font-weight: 800; font-size: clamp(1.02rem, 2vw, 1.22rem); line-height: 1.2; letter-spacing: -.01em; }
.vdlt-brand__inst { font-size: .9rem; color: var(--t-ink-2); line-height: 1.3; }
.vdlt-brand__aff { font-size: .78rem; color: var(--t-slate); line-height: 1.3; }
.vdlt-mast__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.vdlt-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--t-r-sm); color: var(--t-ink); }
.vdlt-iconbtn:hover { background: var(--t-bg); color: var(--t-brand); }
.vdlt-navtoggle { display: none; width: 44px; height: 44px; border: 1px solid var(--t-line); border-radius: var(--t-r-sm); background: var(--t-paper); cursor: pointer; position: relative; }
.vdlt-navtoggle__bars, .vdlt-navtoggle__bars::before, .vdlt-navtoggle__bars::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--t-ink); border-radius: 2px; content: ""; }
.vdlt-navtoggle__bars { top: 21px; }
.vdlt-navtoggle__bars::before { top: -6px; left: 0; right: 0; }
.vdlt-navtoggle__bars::after { top: 6px; left: 0; right: 0; }
.vdlt-nav { border-top: 1px solid var(--t-line); }
.vdlt-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: 0; padding: 0; }
.vdlt-menu > li { position: relative; }
.vdlt-menu a { display: block; padding: .8rem 0; color: var(--t-ink-2); font-weight: 600; text-decoration: none; font-size: .96rem; border-bottom: 3px solid transparent; }
.vdlt-menu a:hover { color: var(--t-brand); }
.vdlt-menu .current-menu-item > a, .vdlt-menu .current_page_item > a, .vdlt-menu .current-menu-ancestor > a { color: var(--t-ink); border-bottom-color: var(--t-orange); }
.vdlt-menu .sub-menu { list-style: none; margin: 0; padding: .4rem 0; position: absolute; left: -1rem; top: 100%; min-width: 230px; background: var(--t-paper); border: 1px solid var(--t-line); border-radius: var(--t-r); box-shadow: var(--t-shadow); display: none; }
.vdlt-menu .sub-menu a { padding: .55rem 1rem; border: 0; font-weight: 500; }
.vdlt-menu li:hover > .sub-menu, .vdlt-menu li:focus-within > .sub-menu { display: block; }

@media (max-width: 900px) {
	.vdlt-topbar__links { display: none; }
	.vdlt-navtoggle { display: inline-block; }
	.vdlt-btn--account { display: none; }
	.vdlt-nav { display: none; }
	.vdlt-nav.is-open { display: block; }
	.vdlt-menu { flex-direction: column; padding: .4rem 0 1rem; }
	.vdlt-menu a { padding: .7rem 0; border-bottom: 1px solid var(--t-line); }
	.vdlt-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
	.vdlt-logo { max-height: 46px; }
	.vdlt-logo--initials { width: 44px; height: 44px; }
	.vdlt-brand__aff { display: none; }
}
@media (max-width: 520px) { .vdlt-topbar__info a[href^="mailto:"] { display: none; } }

/* ===================================================================== hero: catalogue card + shelf */
.vdlt-hero { position: relative; background-color: var(--t-paper); background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(37, 99, 235, .07) 31px 32px); border-bottom: 1px solid var(--t-line); overflow: hidden; }
.vdlt-hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(var(--t-gutter), calc((100vw - var(--t-wrap)) / 2 - 18px)); width: 1px; background: rgba(242, 107, 29, .35); }
.vdlt-hero.has-photo { background-image: linear-gradient(100deg, rgba(11, 26, 58, .92) 0%, rgba(11, 26, 58, .78) 55%, rgba(11, 26, 58, .55) 100%), var(--hero-photo); background-size: cover; background-position: center; color: #fff; }
.vdlt-hero.has-photo::before { display: none; }
.vdlt-hero.has-photo .vdlt-hero__title, .vdlt-hero.has-photo .vdlt-hero__lede, .vdlt-hero.has-photo .vdlt-hero__shelfnote, .vdlt-hero.has-photo .vdlt-finder__chips { color: #fff; }
.vdlt-hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; padding-top: clamp(2.2rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.vdlt-hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .9rem; max-width: 15ch; }
.vdlt-hero__lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--t-ink-2); max-width: 46ch; margin-bottom: 1.6rem; }

.vdlt-finder { max-width: 640px; }
.vdlt-finder__tabs { display: flex; gap: 1.4rem; margin-bottom: .55rem; }
.vdlt-finder__tabs button { border: 0; background: none; padding: .3rem 0; font-weight: 700; font-size: .95rem; color: var(--t-slate); cursor: pointer; border-bottom: 3px solid transparent; }
.vdlt-finder__tabs button[aria-selected="true"] { color: var(--t-ink); border-bottom-color: var(--t-orange); }
.vdlt-hero.has-photo .vdlt-finder__tabs button { color: rgba(255, 255, 255, .7); }
.vdlt-hero.has-photo .vdlt-finder__tabs button[aria-selected="true"] { color: #fff; }
.vdlt-finder__form { display: flex; align-items: stretch; gap: .4rem; padding: .4rem; background: var(--t-paper); border: 2px solid var(--t-ink); border-radius: 12px; box-shadow: 6px 6px 0 rgba(11, 26, 58, .12); }
.vdlt-finder__form:focus-within { border-color: var(--t-brand); box-shadow: 6px 6px 0 var(--t-brand-line); }
.vdlt-finder__form input[type=search] { flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; padding: .55rem .7rem !important; font-size: 1.08rem; min-height: 50px; color: var(--t-ink); width: auto !important; }
.vdlt-finder__form input[type=search]:focus { outline: none; }
.vdlt-finder__form .vdl-cam-btn { border-radius: 8px; }
.vdlt-finder__go { flex: none; border: 0; border-radius: 8px; padding: 0 1.4rem; background: var(--t-brand); color: var(--t-brand-ink); font-weight: 800; font-size: 1rem; cursor: pointer; min-height: 50px; }
.vdlt-finder__go:hover { background: var(--t-brand-dark); }
.vdlt-finder__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: .9rem 0 0; font-size: .9rem; color: var(--t-slate); }
.vdlt-finder__chips a { color: var(--t-ink-2); background: var(--t-bg); border: 1px solid var(--t-line); padding: .2rem .7rem; border-radius: 999px; text-decoration: none; }
.vdlt-finder__chips a:hover { border-color: var(--t-brand); color: var(--t-brand); }
.vdlt-hero.has-photo .vdlt-finder__chips a { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }

.vdlt-hero__shelf { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.vdlt-hero__shelfnote { font-size: .9rem; font-weight: 700; color: var(--t-slate); margin: 0 0 .6rem; }
.vdlt-shelf ul { list-style: none; margin: 0; padding: 0 4px; display: flex; align-items: flex-end; gap: 4px; height: 290px; border-bottom: 10px solid var(--t-navy); position: relative; }
.vdlt-shelf ul::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -14px; height: 4px; background: rgba(11, 26, 58, .18); border-radius: 0 0 3px 3px; }
.vdlt-shelf li { flex: 1 1 0; height: var(--h); min-width: 0; }
.vdlt-shelf a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; padding: .7rem 0 .55rem; border-radius: 3px 3px 0 0; color: #fff; text-decoration: none; background-color: var(--spine); background-image: linear-gradient(90deg, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, 0) 28%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .22) 100%); box-shadow: inset 0 6px 0 rgba(255, 255, 255, .08), inset 0 -26px 0 rgba(0, 0, 0, .06); transition: transform .18s ease; }
.vdlt-shelf a:hover, .vdlt-shelf a:focus-visible { transform: translateY(-8px); color: #fff; }
.vdlt-spine__short { display: none; }
.vdlt-spine__name { writing-mode: vertical-rl; font-size: .82rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: calc(100% - 3.6rem); line-height: 1.35; }
.vdlt-spine__label { display: flex; flex-direction: column; align-items: center; background: #fbfaf6; color: var(--t-ink); border-radius: 2px; padding: .18rem .1rem; width: calc(100% - 8px); max-width: 44px; line-height: 1.1; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.vdlt-spine__no { font-weight: 800; font-size: .78rem; font-variant-numeric: tabular-nums; }
.vdlt-spine__n { font-size: .6rem; color: var(--t-slate); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
	.vdlt-hero::before { display: none; }
	.vdlt-hero__in { grid-template-columns: 1fr; align-items: start; }
	.vdlt-hero__shelf { min-height: 0; }
	.vdlt-shelf ul { height: 210px; }
	.vdlt-spine__name { font-size: .74rem; }
}
@media (max-width: 600px) {
	.vdlt-spine__long { display: none; }
	.vdlt-spine__short { display: inline; }
}
@media (max-width: 480px) {
	.vdlt-shelf ul { gap: 3px; height: 170px; }
	.vdlt-spine__name { font-size: .7rem; }
	.vdlt-spine__n { display: none; }
	.vdlt-finder__form { flex-wrap: wrap; }
	.vdlt-finder__form input[type=search] { flex: 1 1 100%; }
	.vdlt-finder__go { flex: 1 1 auto; }
}

/* ===================================================================== sections */
.vdlt-section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.vdlt-section--tight { padding: 2rem 0 0; }
.vdlt-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.vdlt-section__head h2 { margin: 0; }

/* books */
.vdlt-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.6rem 1.2rem; }
.vdlt-books--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); overflow-x: auto; padding-bottom: .8rem; scroll-snap-type: x proximity; }
.vdlt-books--row > li { scroll-snap-align: start; }
@media (min-width: 1100px) { .vdlt-books--row { grid-auto-columns: calc((100% - 5 * 1.2rem) / 6); } }
.vdlt-book a { display: flex; flex-direction: column; gap: .25rem; color: var(--t-ink); text-decoration: none; }
.vdlt-book__cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 2px 6px 6px 2px; overflow: hidden; background: var(--spine, #1f3a5f); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), var(--t-shadow); margin-bottom: .55rem; transition: transform .18s ease; }
.vdlt-book a:hover .vdlt-book__cover, .vdlt-book a:focus-visible .vdlt-book__cover { transform: translateY(-4px); }
.vdlt-book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdlt-book__plain { display: flex; align-items: flex-start; height: 100%; padding: 1rem .9rem 2.4rem 1.1rem; color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.25; background-image: linear-gradient(90deg, rgba(0, 0, 0, .18) 0 6px, transparent 6px), linear-gradient(160deg, rgba(255, 255, 255, .1), transparent 60%); }
.vdlt-book__call { position: absolute; left: .55rem; bottom: .55rem; background: #fbfaf6; color: var(--t-ink); font-size: .68rem; font-weight: 800; padding: .1rem .35rem; border-radius: 2px; max-width: calc(100% - 1.1rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.vdlt-book__title { font-weight: 700; line-height: 1.3; }
.vdlt-book a:hover .vdlt-book__title { color: var(--t-brand); }
.vdlt-book__author { font-size: .88rem; color: var(--t-slate); line-height: 1.35; }
.vdlt-avail { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; margin-top: .15rem; }
.vdlt-avail::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: none; }
.vdlt-avail.is-yes { color: var(--t-ok); }
.vdlt-avail.is-no { color: var(--t-warn); }

/* services */
.vdlt-services { background: var(--t-paper); border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
.vdlt-svc { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--t-line); }
.vdlt-svc li { border-bottom: 1px solid var(--t-line); }
.vdlt-svc li:not(:nth-child(3n)) { border-right: 1px solid var(--t-line); }
.vdlt-svc a { display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem 1.2rem 1.15rem 0; height: 100%; color: var(--t-ink); text-decoration: none; }
.vdlt-svc li:not(:nth-child(3n + 1)) a { padding-left: 1.2rem; }
.vdlt-svc svg { flex: none; color: var(--t-brand); margin-top: .1rem; }
.vdlt-svc strong { display: block; font-size: 1.02rem; }
.vdlt-svc small { display: block; color: var(--t-slate); font-size: .9rem; line-height: 1.45; margin-top: .15rem; }
.vdlt-svc a:hover strong { color: var(--t-brand); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 900px) {
	.vdlt-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vdlt-svc li:not(:nth-child(3n)) { border-right: 0; }
	.vdlt-svc li:nth-child(odd) { border-right: 1px solid var(--t-line); }
	.vdlt-svc li a, .vdlt-svc li:not(:nth-child(3n + 1)) a { padding-left: 0; }
	.vdlt-svc li:nth-child(even) a { padding-left: 1rem; }
}
@media (max-width: 560px) {
	.vdlt-svc { grid-template-columns: 1fr; }
	.vdlt-svc li:nth-child(odd) { border-right: 0; }
	.vdlt-svc li:nth-child(even) a { padding-left: 0; }
}

/* repository band */
.vdlt-repo { background: var(--t-navy); color: #d6deec; }
.vdlt-repo h2, .vdlt-repo h3 { color: #fff; }
.vdlt-repo a { color: #fff; }
.vdlt-repo__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); }
.vdlt-repo__intro p { max-width: 46ch; }
.vdlt-figs { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .3rem; }
.vdlt-figs strong { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: .35rem; }
.vdlt-repo .vdlt-btn--quiet { color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.vdlt-repo .vdlt-btn--quiet:hover { background: rgba(255, 255, 255, .08); }
.vdlt-recent { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.vdlt-recent li { padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: .15rem; }
.vdlt-recent li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.vdlt-recent a { font-weight: 700; text-decoration: none; line-height: 1.35; }
.vdlt-recent a:hover { text-decoration: underline; }
.vdlt-recent span { font-size: .88rem; color: #9fb0cc; }
.vdlt-repo .vdlt-empty { color: #9fb0cc; }
@media (max-width: 860px) { .vdlt-repo__in { grid-template-columns: 1fr; } }

/* e-resources */
.vdlt-eres__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.vdlt-eres__list a { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; background: var(--t-paper); border: 1px solid var(--t-line); border-left: 4px solid var(--t-brand); border-radius: 0 var(--t-r-sm) var(--t-r-sm) 0; text-decoration: none; color: var(--t-ink); height: 100%; }
.vdlt-eres__list a:hover { border-color: var(--t-brand); }
.vdlt-eres__list strong { line-height: 1.3; }
.vdlt-eres__list span { font-size: .86rem; color: var(--t-slate); }

/* notices & visit */
.vdlt-visit { background: var(--t-paper); border-top: 1px solid var(--t-line); }
.vdlt-visit__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.vdlt-notices { list-style: none; margin: 0; padding: 0; }
.vdlt-notices li { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--t-line); }
.vdlt-notices li:last-child { border-bottom: 1px solid var(--t-line); }
.vdlt-notices li.is-pinned time { background: var(--t-orange); }
.vdlt-notices time { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; border-radius: var(--t-r-sm); background: var(--t-navy); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; }
.vdlt-notices time span { font-size: 1.25rem; font-weight: 800; margin-bottom: .15rem; }
.vdlt-notices a { font-weight: 700; color: var(--t-ink); text-decoration: none; line-height: 1.35; }
.vdlt-notices a:hover { color: var(--t-brand); text-decoration: underline; }
.vdlt-notices small { display: block; color: var(--t-slate); margin-top: .2rem; }
.vdlt-visit__card { background: var(--t-bg); border: 1px solid var(--t-line); border-radius: var(--t-r); padding: 1.3rem 1.4rem; }
.vdlt-visit__card h2 { font-size: 1.25rem; }
.vdlt-visit__card address { font-style: normal; margin-bottom: .6rem; color: var(--t-ink-2); }
.vdlt-visit__card .vdlt-open { margin-bottom: .8rem; }
@media (max-width: 860px) { .vdlt-visit__in { grid-template-columns: 1fr; } }

/* ===================================================================== inner pages */
.vdlt-band { background: var(--t-paper); border-bottom: 1px solid var(--t-line); padding: clamp(1.4rem, 4vw, 2.4rem) 0 clamp(1.2rem, 3vw, 1.8rem); }
.vdlt-band h1 { margin: 0; max-width: 32ch; }
.vdlt-band__lede { margin: .6rem 0 0; color: var(--t-ink-2); font-size: 1.05rem; max-width: 70ch; }
.vdlt-band__by { display: block; color: var(--t-slate); font-size: .98rem; margin-top: .2rem; }
.vdlt-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0 0 .7rem; padding: 0; font-size: .86rem; color: var(--t-slate); }
.vdlt-crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--t-line); }
.vdlt-crumbs a { color: var(--t-slate); text-decoration: none; }
.vdlt-crumbs a:hover { color: var(--t-brand); text-decoration: underline; }
.vdlt-crumbs [aria-current] { color: var(--t-ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vdlt-page { padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.vdlt-prose { max-width: 78ch; }
.vdlt-page .vdlt-prose { max-width: none; }
.vdlt-prose > p, .vdlt-prose > ul, .vdlt-prose > ol, .vdlt-prose > h2, .vdlt-prose > h3, .vdlt-prose > blockquote { max-width: 72ch; }
.vdlt-feature { margin: 0 0 1.5rem; }
.vdlt-feature img { border-radius: var(--t-r); display: block; }
.vdlt-elementor .vdlt-band + .elementor { margin-top: 0; }

/* lists of posts */
.vdlt-archive { padding-top: 1.8rem; padding-bottom: 3.5rem; }
.vdlt-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.vdlt-post { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--t-line); }
.vdlt-post:last-child { border-bottom: 1px solid var(--t-line); }
.vdlt-post__img { width: 180px; }
.vdlt-post__img img { border-radius: var(--t-r-sm); aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.vdlt-post__body { grid-column: 2; }
.vdlt-post:not(:has(.vdlt-post__img)) .vdlt-post__body { grid-column: 1 / -1; }
.vdlt-post__title { font-size: 1.15rem; margin: 0 0 .2rem; }
.vdlt-post__title a { color: var(--t-ink); text-decoration: none; }
.vdlt-post__title a:hover { color: var(--t-brand); text-decoration: underline; }
.vdlt-post__meta { color: var(--t-slate); font-size: .9rem; margin: 0 0 .3rem; }
.vdlt-post__excerpt { margin: 0; color: var(--t-ink-2); max-width: 72ch; }
@media (max-width: 600px) { .vdlt-post { grid-template-columns: 1fr; } .vdlt-post__img { width: 100%; } .vdlt-post__body { grid-column: 1; } }
.vdlt-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-top: 1.8rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .vdlt-layout.has-sidebar { grid-template-columns: 1fr; } }
.vdlt-layout:not(.has-sidebar) { padding-top: 1.8rem; padding-bottom: 3rem; }
.nav-links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2rem; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border: 1px solid var(--t-line); border-radius: var(--t-r-sm); background: var(--t-paper); text-decoration: none; color: var(--t-ink); font-weight: 600; }
.nav-links .page-numbers.current { background: var(--t-ink); color: #fff; border-color: var(--t-ink); }

/* book archive filters */
.vdlt-filters { display: grid; gap: .7rem; margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--t-line); }
.vdlt-filters__row { display: flex; gap: .6rem 1rem; align-items: baseline; flex-wrap: wrap; }
.vdlt-filters__label { font-weight: 700; font-size: .9rem; color: var(--t-slate); min-width: 7.5rem; }
.vdlt-filters ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.vdlt-filters a { display: inline-flex; gap: .4rem; padding: .25rem .75rem; border-radius: 999px; background: var(--t-paper); border: 1px solid var(--t-line); color: var(--t-ink-2); text-decoration: none; font-size: .9rem; }
.vdlt-filters a span { color: var(--t-slate); font-variant-numeric: tabular-nums; }
.vdlt-filters a:hover, .vdlt-filters a[aria-current] { border-color: var(--t-brand); color: var(--t-brand); }
.vdlt-filters__opac { margin: 0; font-size: .92rem; }
.vdlt-searchjump { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.vdlt-sub { font-size: 1.15rem; }

/* ===================================================================== DigiLib screens inside the theme */
.vdlt-page .vdl, .vdlt-page .vdlr { font-size: 1rem; }
.vdlt-page .vdl input[type=text], .vdlt-page .vdl input[type=search], .vdlt-page .vdl input[type=email], .vdlt-page .vdl input[type=date], .vdlt-page .vdl select, .vdlt-page .vdl textarea { background: var(--t-paper); border-color: #c9d2e0; }
.vdlt-page .vdl-btn, .vdlt-page .vdl button[type=submit] { border-radius: var(--t-r-sm); }
.vdlt-page .vdl-record--single .vdl-record-head { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 2.6rem); align-items: start; }
.vdlt-page .vdl-record--single .vdl-record-head:not(:has(.vdl-cover-lg)) { grid-template-columns: 1fr; }
.vdlt-page .vdl-record--single .vdl-cover-lg { width: 100%; height: auto; border-radius: 2px 8px 8px 2px; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), var(--t-shadow); }
.vdlt-page .vdl-record--single .vdl-record-head:has(.vdlt-plaincover) { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }
.vdlt-plaincover { position: relative; display: flex; align-items: flex-start; aspect-ratio: 2 / 3; padding: 1.2rem 1rem 2.8rem 1.4rem; border-radius: 2px 8px 8px 2px; background-color: var(--spine, #1f3a5f); background-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 0 7px, transparent 7px), linear-gradient(160deg, rgba(255, 255, 255, .12), transparent 60%); color: #fff; font-weight: 800; font-size: 1.1rem; line-height: 1.25; box-shadow: var(--t-shadow); }
.vdlt-plaincover .vdlt-book__call { font-size: .75rem; }
@media (max-width: 640px) { .vdlt-page .vdl-record--single .vdl-record-head:has(.vdlt-plaincover) { grid-template-columns: 1fr; } .vdlt-plaincover { max-width: 180px; } }
.vdlt-page .vdl-record--single .vdl-dl { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: .45rem 1.4rem; margin: 0 0 1.2rem; }
.vdlt-page .vdl-record--single .vdl-dl dt { color: var(--t-slate); font-weight: 600; }
.vdlt-page .vdl-record--single .vdl-dl dd { margin: 0; }
.vdlt-page .vdl-record--single h3 { margin-top: 2rem; }
.vdlt-page .vdl-copies { background: var(--t-paper); border: 1px solid var(--t-line); border-radius: var(--t-r); overflow: hidden; }
.vdlt-page .vdl-copies th { background: var(--t-bg); text-align: left; font-size: .85rem; color: var(--t-slate); }
.vdlt-page .vdl-copies th, .vdlt-page .vdl-copies td { padding: .65rem .9rem; border-bottom: 1px solid var(--t-line); }
.vdlt-page .vdl-copies tr:last-child td { border-bottom: 0; }
.vdlt-page .vdl-copies .st-available { color: var(--t-ok); font-weight: 600; }
.vdlt-page .vdl-copies .st-issued { color: var(--t-warn); font-weight: 600; }
@media (max-width: 640px) {
	.vdlt-page .vdl-record--single .vdl-record-head { grid-template-columns: 1fr; }
	.vdlt-page .vdl-record--single .vdl-cover-lg { max-width: 200px; }
	.vdlt-page .vdl-record--single .vdl-dl { grid-template-columns: 1fr; gap: .1rem; }
	.vdlt-page .vdl-record--single .vdl-dl dd { margin-bottom: .5rem; }
}

/* ===================================================================== footer */
.vdlt-site-footer { background: var(--t-navy); color: #c1cce0; font-size: .95rem; }
.vdlt-site-footer a { color: #fff; text-decoration: none; }
.vdlt-site-footer a:hover { text-decoration: underline; }
.vdlt-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2rem 3rem; padding-top: 3rem; padding-bottom: 2.4rem; }
.vdlt-foot:has(.vdlt-foot__extra) { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); }
.vdlt-foot__lib { color: #fff; font-weight: 800; font-size: 1.15rem; margin: 0; }
.vdlt-foot__inst { margin: 0 0 .8rem; }
.vdlt-site-footer address { font-style: normal; line-height: 1.55; }
.vdlt-foot__note { margin-top: 1rem; color: #9fb0cc; }
.vdlt-foot__h { color: #fff; font-size: 1rem; margin: 0 0 .7rem; letter-spacing: 0; }
.vdlt-foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.vdlt-foot__base { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.vdlt-foot__base-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.vdlt-foot__base p { margin: 0; }
.vdlt-site-footer .vdl-credit a { display: inline-flex; align-items: center; gap: .45rem; color: #c1cce0; }
.vdlt-site-footer .vdl-credit a:hover { color: #fff; }
.vdlt-site-footer .widget-title, .vdlt-site-footer h2, .vdlt-site-footer h3 { color: #fff; font-size: 1rem; }
.vdlt-site-footer .widget ul { padding-left: 1.1rem; }
@media (max-width: 860px) { .vdlt-foot, .vdlt-foot:has(.vdlt-foot__extra) { grid-template-columns: 1fr 1fr; } .vdlt-foot__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .vdlt-foot, .vdlt-foot:has(.vdlt-foot__extra) { grid-template-columns: 1fr; } }

/* comments & forms */
.vdlt-comments { margin-top: 3rem; }
.vdlt-searchform { display: flex; gap: .4rem; max-width: 520px; }
.vdlt-searchform input { flex: 1; min-height: 44px; padding: .5rem .8rem; border: 1px solid #c9d2e0; border-radius: var(--t-r-sm); background: var(--t-paper); }
.vdlt-searchform button { min-height: 44px; padding: 0 1rem; border: 0; border-radius: var(--t-r-sm); background: var(--t-brand); color: var(--t-brand-ink); font-weight: 700; cursor: pointer; }
.wp-block-image img, .wp-post-image { border-radius: var(--t-r-sm); }
.alignwide { max-width: var(--t-wrap); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
