/* E-Library page and the homepage section. Scoped to .page-elibrary and .el-home so nothing else changes. */
.page-elibrary, .el-home { --el-ink:#062F4D; --el-blue:#094570; --el-tint:#E3F2FD; --el-line:#D5E0E8; --el-paper:#F1F4F7; --el-muted:#4B6577; }
.page-elibrary body { background: var(--el-paper); color: var(--el-ink); font-family: Inter, system-ui, sans-serif; }
.el-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.el-hero { padding: 92px 16px 8px; }
.el-hero-card { position: relative; overflow: hidden; height: auto; min-height: 0; max-width: 1240px; margin: 0 auto; border-radius: 28px; background: var(--el-ink); color: #fff; }
.el-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.el-hero-veil { position: absolute; inset: 0; background: var(--el-ink); opacity: .8; }
.el-hero .el-hero-in { position: relative; z-index: 1; display: block; height: auto; min-height: 0; text-align: center; padding: 64px 28px 60px; }
.el-hero-in p { margin-inline: auto; }
.el-chips { justify-content: center; max-width: 980px; margin: 30px auto 0; }
.el-white { display: inline-block; padding: 14px 30px; border-radius: 8px; background: #fff; color: var(--el-ink); font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.el-white:hover { background: var(--el-tint); }
.el-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.el-kick-d { color: var(--el-blue); }
.el-search-d { background: #fff; box-shadow: 0 0 0 1px var(--el-line); margin: 0 0 28px; }
.el-art { width: 100%; height: auto; }
.el-hero h1 { font: 600 clamp(40px, 7vw, 72px)/1 "Bricolage Grotesque", Inter, sans-serif; letter-spacing: -.03em; margin: 0 0 18px; }
.el-hero p { max-width: 620px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.8); margin: 0 0 28px; }
.el-kick { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9CC9E8; margin: 0 0 14px; }
.el-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.el-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; background: #0A3A5E; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .2s; }
.el-chips a:hover, .el-chips a:focus-visible, .el-chips a:active { background: #0E5A91; transform: translateY(-2px); }
.el-chips b { font-weight: 600; opacity: .7; }
.el-search { display: flex; max-width: 520px; background: #fff; border-radius: 999px; padding: 5px; }
.el-search input { flex: 1; border: 0; background: transparent; padding: 12px 18px; font: 500 15px Inter, sans-serif; color: var(--el-ink); min-width: 0; outline: none; }
.el-sec { padding: 72px 0; }
.el-sec h2 { font: 600 clamp(28px, 4vw, 42px)/1.1 "Bricolage Grotesque", Inter, sans-serif; letter-spacing: -.02em; margin: 0 0 12px; color: var(--el-ink); }
.el-lead { color: var(--el-muted); max-width: 640px; line-height: 1.65; margin: 0 0 32px; font-size: 16.5px; }
.el-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.el-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 0 0 1px var(--el-line), 0 24px 40px -30px rgba(6,47,77,.35); }
.el-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--el-ink); }
.el-card p { margin: 0; color: var(--el-muted); line-height: 1.6; font-size: 15px; }
.el-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--el-tint); color: var(--el-blue); display: grid; place-items: center; margin-bottom: 16px; font-weight: 700; }
.el-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.el-cat { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.el-cat h3 { font-size: 22px; }
.el-cat .el-n { font-size: 13px; color: var(--el-muted); margin: 14px 0 0; }
.el-go { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 14px; color: var(--el-blue); }
.el-card { transition: transform .2s, box-shadow .2s; }
.el-card:hover, .el-card:focus-within, .el-card:active { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--el-blue), 0 28px 44px -24px rgba(6,47,77,.5); }
.el-card:active { transform: translateY(-2px); }
.el-group { margin: 44px 0 0; scroll-margin-top: 90px; }
.el-group h3 { font: 600 26px "Bricolage Grotesque", Inter, sans-serif; margin: 0 0 6px; color: var(--el-ink); }
.el-group > p { margin: 0 0 16px; color: var(--el-muted); }
.el-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.el-src { display: flex; flex-direction: column; gap: 10px; }
.el-src h4 { margin: 0; font-size: 19px; color: var(--el-ink); }
.el-meta { font-size: 13px; color: var(--el-muted); line-height: 1.5; }
.el-meta b { color: var(--el-ink); font-weight: 600; }
.el-btn { align-self: flex-start; margin-top: auto; display: inline-flex; gap: 8px; align-items: center; padding: 11px 20px; border-radius: 999px; background: var(--el-ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.el-btn:hover { background: var(--el-blue); }
.el-btn-line { background: transparent; color: var(--el-ink); box-shadow: inset 0 0 0 1.5px var(--el-ink); }
.el-btn-line:hover { background: var(--el-ink); color: #fff; }
.el-empty { padding: 24px; text-align: center; color: var(--el-muted); }
.el-note { background: var(--el-tint); border-radius: 22px; padding: 28px; display: grid; gap: 10px; }
.el-note ul { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--el-ink); }
.el-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
@media (max-width: 860px) {
  .el-feats, .el-cats, .el-list { grid-template-columns: 1fr; }
  .el-hero { padding-top: 84px; }
  .el-intro { grid-template-columns: 1fr; gap: 28px; }
  .el-art { max-width: 380px; margin: 0 auto; }
  .el-hero .el-hero-in { padding: 44px 18px 40px; }
  .el-sec { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { .el-card, .el-chips a { transition: none; } .el-card:hover, .el-card:active, .el-chips a:hover { transform: none; } }
.el-hero .el-hero-in p { margin: 0 auto 28px; text-align: center; }
.page-elibrary .h-pill, .page-elibrary .h-nav.h-solid .h-pill { background: var(--el-ink); box-shadow: 0 0 0 1px rgba(255,255,255,.12); backdrop-filter: none; }
.el-fig { margin: 0; }
.el-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.el-fig.has-photo .el-art { display: none; }

/* homepage section: light, flat, photo and topic cards. Only used on the homepage. */
.el-home { padding: 96px 0; background: var(--el-paper); color: var(--el-ink); }
.el-home .el-h-top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.el-home .el-h-eye { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--el-muted); margin: 0 0 18px; }
.el-home .el-h-eye i { width: 8px; height: 8px; border-radius: 50%; background: var(--el-blue); }
.el-home h2 { font: 600 clamp(36px, 4.6vw, 56px)/1.04 Geist, Inter, sans-serif; letter-spacing: -.03em; margin: 0 0 18px; color: var(--el-ink); }
.el-home .el-h-lead { font-size: 17px; line-height: 1.65; color: var(--el-muted); margin: 0 0 28px; max-width: 480px; }
.el-home .el-h-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.el-home .el-h-b { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s; }
.el-home .el-h-b1 { background: var(--el-ink); color: #fff; }
.el-home .el-h-b2 { background: #fff; color: var(--el-ink); box-shadow: inset 0 0 0 1.5px var(--el-ink); }
.el-home .el-h-b:hover, .el-home .el-h-b:focus-visible, .el-home .el-h-b:active { transform: translateY(-2px); }
.el-home .el-h-ph { position: relative; }
.el-home .el-h-ph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; background: var(--el-line); }
.el-home .el-h-chip { position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; font-size: 13px; color: var(--el-muted); box-shadow: 0 0 0 1px var(--el-line), 0 18px 30px -18px rgba(6,47,77,.45); }
.el-home .el-h-chip b { display: block; font-size: 22px; color: var(--el-ink); letter-spacing: -.02em; }
.el-home .el-h-c1 { left: -22px; bottom: 34px; }
.el-home .el-h-c2 { right: -14px; top: 30px; }
.el-home .el-h-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; }
.el-home .el-h-t { display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 20px 18px 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--el-line); color: var(--el-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.el-home .el-h-t strong { font-size: 18px; letter-spacing: -.01em; }
.el-home .el-h-t small { font-size: 13px; color: var(--el-muted); }
.el-home .el-h-t em { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--el-blue); }
.el-home .el-h-t:hover, .el-home .el-h-t:focus-visible, .el-home .el-h-t:active { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--el-blue), 0 26px 40px -24px rgba(6,47,77,.5); }
.el-home .el-h-t:active { transform: translateY(-2px); }
@media (max-width: 860px) {
  .el-home { padding: 56px 0; }
  .el-home .el-h-top { grid-template-columns: 1fr; gap: 34px; }
  .el-home .el-h-tiles { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .el-home .el-h-c1 { left: 8px; } .el-home .el-h-c2 { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .el-home .el-h-b, .el-home .el-h-t { transition: none; } .el-home .el-h-b:hover, .el-home .el-h-t:hover, .el-home .el-h-t:active { transform: none; } }
