/* Home page: the library section. */
.lh .li { width: 20px; height: 20px; flex-shrink: 0; }
.lh .li-f { fill: currentColor; opacity: .18; }
.lh .li-s { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lh-panel { position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.4rem, 4vw, 3.2rem); border-radius: 36px; color: #fff; background: linear-gradient(165deg, #1C1030 0%, #2C1A4A 70%, #3A1C4E 100%); box-shadow: 0 40px 70px -40px rgba(44, 26, 74, .75); }
.lh-panel::before { content: ''; position: absolute; z-index: -1; width: 820px; height: 560px; top: -290px; right: -140px; background: radial-gradient(closest-side, rgba(255, 193, 94, .28), rgba(194, 29, 100, .18) 55%, transparent); }
.lh-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.2rem 2.4rem; align-items: center; }
.lh-copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.2; margin-bottom: .5rem; }
.lh-copy p { color: rgba(255, 255, 255, .76); max-width: 44ch; font-size: clamp(1rem, 1.4vw, 1.12rem); }
.lh-search { display: flex; align-items: center; gap: .7rem; padding: .45rem; padding-inline-start: 1.1rem; border-radius: 22px; background: #fff; color: #A3134F; box-shadow: 0 0 0 6px rgba(255, 255, 255, .09), 0 24px 50px -22px rgba(0, 0, 0, .65); }
.lh-search > .li { width: 25px; height: 25px; }
.lh-search input { flex: 1; min-width: 0; min-height: 50px; border: 0; outline: 0; background: none; font-size: 16px; color: #2A1B3D; }
.lh-search:focus-within { box-shadow: 0 0 0 6px rgba(255, 193, 94, .45), 0 24px 50px -22px rgba(0, 0, 0, .65); }
.lh-search button { min-height: 50px; padding: 0 1.5rem; border: 0; border-radius: 17px; background: #A3134F; color: #fff; font-weight: 700; cursor: pointer; }
.lh-search button:hover { background: #C21D64; }
.lh-types { grid-column: 2; display: flex; flex-wrap: wrap; gap: .45rem; }
.lh-types a { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .8rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); font-size: 13.5px; transition: background .15s; }
.lh-types a:hover { background: rgba(255, 255, 255, .17); }
.lh-types .li { width: 17px; height: 17px; }
.lh-types .lh-sch a { background: #FFC15E; border-color: #FFC15E; color: #2A1B3D; font-weight: 800; }
.lh-types .lh-sch a:hover { background: #FFD08A; }
.lh-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: clamp(1.8rem, 4vw, 3rem); }
.lh-shelf-head h3 { font-family: var(--f-disp); font-size: 1.3rem; }
.lh-shelf-head a { display: inline-flex; align-items: center; gap: .3rem; color: #FFC15E; font-weight: 700; font-size: 14px; }
.lh-shelf { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(3px, .5vw, 7px); height: 278px; padding: 24px clamp(4px, 1.5vw, 20px) 0; margin-bottom: 16px; }
.lh-shelf::after { content: ''; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; border-radius: 4px 4px 10px 10px; background: linear-gradient(180deg, #7B5A8F 0, #4C3266 22%, #331F4E 100%); box-shadow: 0 22px 30px -12px rgba(0, 0, 0, .6); }
.lh-spine { position: relative; flex: 1 1 0; min-width: 0; max-width: 62px; height: var(--h); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0 8px; border-radius: 9px 9px 3px 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 20%, rgba(255, 255, 255, .17) 46%, rgba(255, 255, 255, 0) 72%, rgba(0, 0, 0, .28)), var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), -3px 0 8px -4px rgba(0, 0, 0, .5); transition: translate .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.lh-spine::before, .lh-spine::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: rgba(255, 222, 160, .55); }
.lh-spine::before { top: 42px; } .lh-spine::after { bottom: 31px; }
.lh-spine-ic .li { width: 22px; height: 22px; }
.lh-spine-t { flex: 1; min-height: 0; margin: 6px 0 4px; writing-mode: vertical-rl; white-space: nowrap; overflow: hidden; text-align: center; font-weight: 700; font-size: clamp(11.5px, 1vw, 13.5px); }
.lh-spine > b { height: 16px; font-size: 11.5px; line-height: 16px; }
.lh-spine:hover, .lh-spine:focus-visible { translate: 0 -14px; box-shadow: 0 18px 28px -10px rgba(0, 0, 0, .65); }
.lh-latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: 2.2rem; }
.lh-latest a { display: flex; align-items: center; gap: .75rem; height: 100%; padding: .7rem; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); transition: background .15s; }
.lh-latest a:hover { background: rgba(255, 255, 255, .16); }
.lh-doc { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 56px; border-radius: 8px 8px 8px 8px; -webkit-clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); background: #fff; color: var(--c); border-top: 4px solid var(--c); }
.lh-doc-t { display: flex; flex-direction: column; min-width: 0; }
.lh-doc-t b { font-size: 13.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-doc-t small { color: rgba(255, 255, 255, .66); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.lh-foot p { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; color: rgba(255, 255, 255, .7); font-size: 14px; }
.lh-foot p span { display: inline-flex; align-items: center; gap: .45rem; }
.lh-foot p span::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: #FFC15E; }
.lh-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.lh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 54px; padding: 0 1.6rem; border-radius: 17px; background: #FFC15E; color: #2A1B3D; font-weight: 800; transition: translate .2s cubic-bezier(.2, .8, .2, 1), background .15s; }
.lh-btn:hover { background: #FFD08A; translate: 0 -2px; }
.lh-btn:hover .li:last-child { translate: -4px 0; } .lh-btn .li { transition: translate .2s; }
.lh-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); font-weight: 700; }
.lh-btn.ghost:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 1000px) {
	.lh-top { grid-template-columns: minmax(0, 1fr); }
	.lh-types { grid-column: 1; }
	.lh-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.lh-shelf { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; gap: 5px; height: 252px; margin-inline: -1.4rem; padding: 18px 1.4rem 0; scroll-padding-inline: 1.4rem; margin-bottom: 0; border-bottom: 12px solid #4C3266; }
	.lh-shelf::after { content: none; }
	.lh-spine { flex: 0 0 52px; scroll-snap-align: start; }
}
@media (max-width: 760px) {
	.lh .wrap { width: calc(100% - 20px); }
	.lh-panel { padding: 1.4rem; border-radius: 28px; }
	.lh-search { padding-inline-start: .9rem; border-radius: 19px; gap: .5rem; }
	.lh-search button { padding: 0 1rem; border-radius: 14px; }
	.lh-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1.4rem; padding-inline: 1.4rem; }
	.lh-types a { white-space: nowrap; }
	.lh-types .lh-sch { order: -1; }
	.lh-latest { grid-template-columns: minmax(0, 1fr); }
	.lh-cta { width: 100%; flex-direction: column-reverse; }
	.lh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lh * { transition: none !important; } }
