:root {
    color-scheme: light;
    --ink: #182a3e;
    --muted: #4c6173;
    --green: #116752;
    --mint: #adf0d8;
    --line: #d7e4e8;
    font: 100%/1.6 system-ui, sans-serif;
    color: var(--ink);
    background: #f1f6f6;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, input:focus-visible { outline: 3px solid #3d9b80; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: .7rem 1rem; background: #fff; z-index: 2; }
.skip:focus { top: 1rem; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.hero { background: radial-gradient(ellipse at 85% 0%, #24514e, #101f32 70%); color: #fff; padding-bottom: 2.5rem; }
.top, footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.top { padding: 1rem 0; border-bottom: 1px solid #ffffff30; }
.top > div { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top a { color: #fff; font-weight: 650; text-decoration: none; }
.brand img { display: block; width: 100px; height: auto; }
.top .sign-in { border: 1px solid #ffffff70; border-radius: 8px; padding: .45rem .9rem; }
h1 { font-size: clamp(2.05rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.045em; margin: 1.65rem 0 .5rem; }
.hero p { margin: 0 0 1rem; color: #dce8ee; }
.search { max-width: 35rem; }
.search label { display: block; margin-bottom: .25rem; color: var(--mint); font-weight: 700; }
.search input { width: 100%; padding: .7rem .85rem; font: inherit; border: 1px solid #c2d7de; border-radius: 8px; color: var(--ink); background: #fff; }
#search-status { margin: .4rem 0 0; font-size: .9rem; }
#search-status:empty { display: none; }
.library { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 2rem; align-items: start; padding-block: 1.5rem 3rem; }
.contents { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; background: #e8f2ef; border-radius: 12px; padding: .8rem 1rem; }
.contents h2 { margin: 0 0 .35rem; font-size: 1rem; }
.contents a { display: block; padding: .27rem 0; font-size: .92rem; }
.access { margin: 0 0 .8rem; color: var(--muted); }
main section { margin-bottom: 1rem; scroll-margin-top: 1rem; padding: clamp(1rem, 3vw, 1.55rem); background: #fff; border: 1px solid var(--line); border-radius: 13px; }
main section:target { border-color: #6aa996; }
main h2 { margin: 0 0 .5rem; font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.2; }
ol { margin: 0; padding-inline-start: 1.4rem; }
li + li { margin-top: .45rem; }
footer { border-top: 1px solid var(--line); padding: 1rem 0; }
@media (max-width: 760px) {
    .library { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .contents { position: static; max-height: none; }
    .contents a { padding-block: .36rem; }
}
@media print {
    .top, .search, .contents, footer, .skip { display: none; }
    .hero, :root { background: white; color: black; }
    .hero p { color: black; }
    .library { display: block; }
    main section { break-inside: avoid; }
}
