.library-home { background: #f8faf7; color: #17372d; }
.library-home .home-intro {
 background: radial-gradient(ellipse at 82% 10%,#216451 0,transparent 55%),#11382d;
 color: #fff; padding-block: clamp(2.5rem,6vw,6rem); overflow: clip;
}
.library-home .home-intro-grid { grid-template-columns: minmax(0,1.19fr) minmax(0,.81fr); gap: clamp(1.5rem,5vw,5rem); }
.library-home .home-intro h1 { max-width: 13ch; color: #fff; font-size: clamp(3rem,7vw,6.4rem); line-height: .97; letter-spacing: -.055em; }
.library-home .home-intro h1 em { color: #f8cc63; }
.library-home .home-label { color: #ffda83; letter-spacing: .11em; }
.library-home .home-lead,.library-home .home-access { color: #e4efe9; }
.library-home .home-search { max-width: 39rem; background: #fff; color: #17372d; }
.library-home .home-search input { color: #17372d; }
.library-home .home-actions .button { min-height: 48px; }
.library-home .home-actions .button:not(.outline) { background: #ffd365; color: #17372d; border-color: #ffd365; }
.library-home .home-actions .outline { background: transparent; color: #fff; border-color: #a1bfb0; }
.library-home .home-portrait { width: 100%; max-width: 34rem; justify-self: end; margin: 0; border: 1px solid #ffffff30; box-shadow: 0 1.1rem 2.5rem #06271d75; border-radius: 1.35rem; }
.library-home .home-portrait img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 24%; display: block; }
.library-home .home-portrait-caption { background: #0d3127; color: #fff; }
.library-home .home-section { padding-block: clamp(1.6rem,4vw,3rem); }
.library-home .home-section-head h2 { font-size: clamp(1.65rem,3.4vw,2.65rem); line-height: 1.1; letter-spacing: -.035em; }
.library-home .home-stats > div { background: #eaf2ea; border: 1px solid #d1e1d5; }
.library-home .home-resource-card,.library-home .home-insights article { background: #fff; border: 1px solid #dce8df; border-radius: 1rem; }
.library-home .home-resource-card:hover { border-color: #527f6c; box-shadow: 0 .5rem 1.4rem #163f2b12; }
.library-home .home-grade-links a,.library-home .home-subjects a { min-height: 44px; display: inline-flex; align-items: center; }
.home-path-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.home-path-grid article { padding: clamp(1.25rem,3vw,2rem); background: #e8f2ed; border-radius: 1rem; }
.home-path-grid article + article { background: #fff0cd; }
.home-path-grid h3 { font-size: 1.45rem; margin: 0; }
.home-path-grid a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }
.home-path-grid a svg { width: 1rem; height: 1rem; }
.library-home .home-email { margin-block: 1.5rem; }
.library-home .footer-invite { padding-block: 2rem; }
.library-home :where(a,button,input,summary):focus-visible { outline: 3px solid #288265; outline-offset: 3px; }
.library-home .home-intro :where(a,button,input):focus-visible { outline-color: #ffd365; }
@media(max-width:800px){
 .library-home .home-intro-grid { grid-template-columns: minmax(0,1fr); }
 .library-home .home-portrait { justify-self: start; max-width: 32rem; }
 .library-home .home-portrait img { aspect-ratio: 4 / 3; }
}
@media(max-width:540px){
 .library-home .home-intro h1 {font-size:clamp(2.35rem,11vw,3.65rem)}
 .home-path-grid {grid-template-columns:minmax(0,1fr)}
}

.library-home section[aria-labelledby="home-stats-title"] {
 background: radial-gradient(ellipse at top,#215346,#102e26 75%);
 border-radius: 1.4rem; color: #fff; margin-block: clamp(1.5rem,4vw,3rem);
 padding-inline: clamp(1rem,4vw,3rem);
}
.library-home #home-stats-title { color: #fff; text-align: center; width: 100%; }
.library-home .home-stats { gap: .8rem; }
.library-home .home-stats > div {
 align-items: center; justify-content: center; text-align: center; gap: .45rem;
 color: #fff; background: #ffffff0b; border: 1px solid #ffffff24;
 min-height: 8rem; padding: .9rem .6rem;
}
.library-home .home-stats dd { color: #ffda83; font-size: clamp(1.85rem,5vw,3.8rem); letter-spacing: -.04em; }
.library-home .home-stats dt { color: #f1f8f3; }
.library-home .home-stats-note { color: #d7eae0; text-align: center; margin: 1.1rem auto 0; }
@media(max-width:580px) {
 .library-home .home-stats > div { min-height: 5.8rem; }
}

.library-home .home-resource-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: .75rem; padding: clamp(1rem,2vw,1.4rem); transition: border-color .2s, box-shadow .2s; }
.library-home .home-resource-card h3,.library-home .home-resource-card p { margin: 0; }
.resource-art { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 1.15rem; background: #e6f5f6; }
.resource-art img { display: block; width: 3.5rem; height: 3.5rem; object-fit: contain; }
.resource-art--scheme { background: #e7f2e9; }
.resource-art--exam { background: #fcebe4; }
.resource-art--notes { background: #fff1d3; }
.resource-clipboard { position: relative; display: block; width: 2.65rem; height: 3.1rem; border-radius: .42rem; background: #f8faf3; border: .25rem solid #368271; box-shadow: .25rem .26rem 0 #b7dccc; }
.resource-clipboard::before { content: ""; position: absolute; width: 1.25rem; height: .55rem; border-radius: .22rem; top: -.38rem; left: 50%; transform: translateX(-50%); background: #e5ad3f; }
.resource-clipboard::after { content: ""; position: absolute; left: .35rem; right: .35rem; top: .65rem; height: .16rem; border-radius: 1rem; background: #558d80; box-shadow: 0 .46rem #558d80,0 .92rem #558d80; }
.resource-card-arrow { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-top: auto; border-radius: 50%; background: #edf4ed; }
.resource-card-arrow svg { width: 1rem; height: 1rem; position: static; margin: 0; }
.resource-art-credit { margin: .7rem 0 0; }
@media(prefers-reduced-motion:reduce) { .library-home .home-resource-card { transition: none; } }
