/*
 * VYBE DigiLib — Elementor widgets. Colours follow the DigiLib brand colour (--vdl-brand) unless a widget's
 * "DigiLib style" panel overrides them; cards use --vdl-card-bg and --vdl-radius.
 */
.vdl-el { --vdl-radius: 14px; --vdl-card-bg: #fff; --vdl-gap: 1rem; --vdl-cols: 4; }
.vdl-el-placeholder { padding: 1rem 1.2rem; border: 2px dashed rgba(37, 99, 235, .35); border-radius: 12px; color: #4a5568; background: rgba(37, 99, 235, .04); font-size: .92rem; }

/* Search box */
.vdl-el-search { margin: 0; }
.vdl-el-search__row { display: flex; align-items: stretch; gap: .4rem; padding: .35rem; background: #fff; border: 1px solid rgba(11, 26, 58, .14); border-radius: var(--vdl-radius); box-shadow: 0 10px 30px -12px rgba(11, 26, 58, .25); }
/* The library stylesheet makes every field full width; inside the search bar only the text box grows. */
.vdl-el-search .vdl-el-search__row > select { flex: 0 0 auto; width: auto; max-width: 13rem; min-width: 8.5rem; border: 0 !important; background: rgba(11, 26, 58, .05) !important; border-radius: calc(var(--vdl-radius) - 4px) !important; color: #0b1a3a; }
.vdl-el-search .vdl-el-search__row > .vdl-sg-wrap { flex: 1 1 14rem; min-width: 8rem; display: flex; }
.vdl-el-search .vdl-el-search__row input[type=search] { flex: 1 1 14rem; width: 100%; min-width: 8rem; border: 0 !important; background: transparent !important; color: #0b1a3a; font-size: 1.02rem; box-shadow: none !important; }
.vdl-el-search .vdl-el-search__row input[type=search]:focus { outline: none; }
.vdl-el-search__row:focus-within { border-color: var(--vdl-brand, #2563eb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vdl-brand, #2563eb) 22%, transparent), 0 10px 30px -12px rgba(11, 26, 58, .25); }
.vdl-el-search .vdl-el-search__row > button { flex: 0 0 auto; width: auto; white-space: nowrap; }
.vdl-el-search .vdl-el-search__row > button[type=submit] { border-radius: calc(var(--vdl-radius) - 4px) !important; padding: 0 1.4rem !important; }
.vdl-el-search--large .vdl-el-search__row { padding: .5rem; }
.vdl-el-search--large .vdl-el-search__row input[type=search] { font-size: 1.12rem; min-height: 52px; }
.vdl-el-search--large .vdl-el-search__row > button { min-height: 52px; font-size: 1.02rem; }
.vdl-el-search__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 0; }
.vdl-el-search__chips a { padding: .3rem .8rem; border-radius: 999px; background: rgba(127, 127, 127, .12); border: 1px solid rgba(127, 127, 127, .32); color: inherit !important; text-decoration: none; font-size: .88rem; }
.vdl-el-search__chips a:hover { background: rgba(127, 127, 127, .22); }
@media (max-width: 600px) {
	.vdl-el-search__row { flex-wrap: wrap; }
	.vdl-el-search .vdl-el-search__row > select { flex: 1 1 100%; max-width: none; }
	.vdl-el-search .vdl-el-search__row > .vdl-sg-wrap { flex-basis: 100%; }
	.vdl-el-search .vdl-el-search__row > button[type=submit] { flex: 1 1 auto; min-height: 46px; }
}

/* Books grid */
.vdl-el-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--vdl-cols), minmax(0, 1fr)); gap: var(--vdl-gap); }
.vdl-el-grid--shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
.vdl-el-grid--shelf > li { flex: 0 0 calc((100% - (var(--vdl-cols) - 1) * var(--vdl-gap)) / var(--vdl-cols)); scroll-snap-align: start; }
.vdl-el-card { margin: 0; }
.vdl-el-card > a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: .7rem; border-radius: var(--vdl-radius); background: var(--vdl-card-bg); border: 1px solid rgba(11, 26, 58, .08); color: inherit !important; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.vdl-el-card > a:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(11, 26, 58, .35); }
.vdl-el-card__cover { display: block; aspect-ratio: 2 / 3; border-radius: calc(var(--vdl-radius) - 6px); overflow: hidden; background: linear-gradient(150deg, var(--vdl-brand, #2563eb), #0b1a3a); margin-bottom: .35rem; }
.vdl-el-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdl-el-card__initial { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, .85); }
.vdl-el-card__title { font-weight: 700; line-height: 1.25; }
.vdl-el-card__meta { font-size: .85rem; opacity: .75; }
.vdl-el-avail { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; font-size: .8rem; font-weight: 600; }
.vdl-el-avail::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.vdl-el-avail.is-yes { color: #15803d; }
.vdl-el-avail.is-no { color: #b45309; }
@media (max-width: 767px) { .vdl-el-grid { grid-template-columns: repeat(min(var(--vdl-cols), 2), minmax(0, 1fr)); } }

/* Book parts */
.vdl-el-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.vdl-el-strip > span { flex: 1 1 8rem; padding: .6rem .8rem; border-radius: var(--vdl-radius); background: var(--vdl-card-bg); border: 1px solid rgba(11, 26, 58, .08); }
.vdl-el-strip small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }

/* Notices */
.vdl-el-notices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.vdl-el-notices li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; padding: .7rem .9rem; border-radius: var(--vdl-radius); background: var(--vdl-card-bg); border: 1px solid rgba(11, 26, 58, .08); }
.vdl-el-notices li.is-pinned { border-left: 4px solid #f26b1d; }
.vdl-el-notice__type { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--vdl-brand, #2563eb); }
.vdl-el-notice__title { font-weight: 600; color: inherit !important; text-decoration: none; flex: 1 1 14rem; }
.vdl-el-notice__title:hover { text-decoration: underline; }
.vdl-el-notice__date { opacity: .7; }
@media (max-width: 600px) {
	.vdl-el-notices--list li { flex-direction: column; align-items: flex-start; gap: .2rem; }
	.vdl-el-notice__title { flex: 0 0 auto; }
}
.vdl-el-notices--cards ul { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vdl-el-notices--cards li { flex-direction: column; align-items: flex-start; }
.vdl-el-notice__img { display: block; width: calc(100% + 1.8rem); margin: -.7rem -.9rem .4rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--vdl-radius) var(--vdl-radius) 0 0; }
.vdl-el-notice__img img { width: 100%; height: 100%; object-fit: cover; }
.vdl-el-notices--ticker { overflow: hidden; }
.vdl-el-notices--ticker ul { display: flex; gap: 2rem; width: max-content; animation: vdl-ticker 40s linear infinite; }
.vdl-el-notices--ticker li { flex: 0 0 auto; border: 0; background: transparent; padding: .3rem 0; }
.vdl-el-notices--ticker:hover ul { animation-play-state: paused; }
@keyframes vdl-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .vdl-el-notices--ticker ul { animation: none; flex-wrap: wrap; width: auto; } }
.vdl-el-more { margin: .8rem 0 0; }

/* Figures */
.vdl-el-stats { display: grid; grid-template-columns: repeat(var(--vdl-cols), minmax(0, 1fr)); gap: var(--vdl-gap); }
.vdl-el-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: 1rem .6rem; border-radius: var(--vdl-radius); background: var(--vdl-card-bg); border: 1px solid rgba(11, 26, 58, .06); }
.vdl-el-stat__i { font-size: 1.6rem; color: var(--vdl-brand, #2563eb); line-height: 1; }
.vdl-el-stat__i svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.vdl-el-stat__n { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; color: #0b1a3a; font-variant-numeric: tabular-nums; line-height: 1.1; }
.vdl-el-stat__l { font-size: .9rem; opacity: .8; }
@media (max-width: 767px) { .vdl-el-stats { grid-template-columns: repeat(min(var(--vdl-cols), 2), minmax(0, 1fr)); } }

/* Hours */
.vdl-el-hours dl { margin: 0; display: grid; gap: .55rem; }
.vdl-el-hours dl > div { display: grid; grid-template-columns: 6rem 1fr; gap: .6rem; }
.vdl-el-hours dt { font-weight: 600; opacity: .75; }
.vdl-el-hours dd { margin: 0; }
.vdl-el-hours__status, .vdl-el-hours__map { grid-template-columns: 1fr !important; }
.vdl-el-hours__map a { font-weight: 600; }
.vdl-el-hours__status dd { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.vdl-el-hours__status dd::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #b45309; box-shadow: 0 0 0 4px rgba(180, 83, 9, .15); }
.vdl-el-hours__status.is-open dd::before { background: #15803d; box-shadow: 0 0 0 4px rgba(21, 128, 61, .15); }

/* Subject shelf */
.vdl-el-shelf__cap { font-weight: 700; font-size: .9rem; opacity: .75; margin: 0 0 .6rem; }
.vdl-el-shelf ul { list-style: none; margin: 0; padding: 0 4px; display: flex; align-items: flex-end; gap: 4px; height: 290px; border-bottom: 10px solid #0b1a3a; }
.vdl-el-shelf li { flex: 1 1 0; min-width: 0; height: var(--h); }
.vdl-el-shelf a { 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 !important; 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%); transition: transform .18s ease; }
.vdl-el-shelf a:hover, .vdl-el-shelf a:focus-visible { transform: translateY(-8px); }
.vdl-el-spine__name { writing-mode: vertical-rl; font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: calc(100% - 3.6rem); line-height: 1.35; }
.vdl-el-spine__short { display: none; }
.vdl-el-spine__label { display: flex; flex-direction: column; align-items: center; background: #fbfaf6; color: #14213d; border-radius: 2px; padding: .18rem .1rem; width: calc(100% - 8px); max-width: 44px; line-height: 1.1; }
.vdl-el-spine__label b { font-size: .78rem; font-weight: 800; }
.vdl-el-spine__label small { font-size: .6rem; opacity: .7; }
@media (max-width: 600px) { .vdl-el-spine__long { display: none; } .vdl-el-spine__short { display: inline; } .vdl-el-shelf ul { gap: 3px; } .vdl-el-spine__label small { display: none; } }
@media (prefers-reduced-motion: reduce) { .vdl-el-shelf a { transition: none; } }
