*{box-sizing:border-box}html{color-scheme:light}body{margin:0;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;color:#153e50;background:#dfedf3;font:16px/1.55 system-ui,Arial,sans-serif}a{color:#1c5d79;text-underline-offset:.18em}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #bc6900;outline-offset:3px}.shell{width:min(1160px,100%);margin:auto;padding-inline:clamp(16px,4vw,48px)}header{border-bottom:4px solid #f90}header .shell,footer .shell,.tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}header .shell{min-height:84px}header img{width:141px;height:54px;display:block}header nav,footer nav{display:flex;gap:22px}header a,footer a{font-weight:650;text-decoration:none}.hero{background:#1c5d79;color:white;padding:clamp(28px,5vw,62px) 0}.hero p{font-size:clamp(1.05rem,2vw,1.45rem);margin:.65em 0 1em}.hero h1{max-width:16ch}.search{display:flex;max-width:660px}.search input{padding:13px 15px;border:1px solid #698998;min-width:0;flex:1;background:#fff;color:#123}.action,.search button{background:#f90;color:#18323a;font-weight:720;border:0;text-decoration:none;padding:12px 20px;display:inline-block}input,button,select{font:inherit}button,select{cursor:pointer}h1,h2,h3{line-height:1.08;letter-spacing:-.04em;text-wrap:balance}h1{font-size:clamp(2.4rem,5vw,4.7rem);margin:0 0 .25em}h2{font-size:clamp(1.4rem,2.7vw,2rem);margin:1em 0 .55em}p{max-width:70ch}main{flex:1 0 auto}header,footer{flex:none}.section{padding-block:30px 54px}.crumb,.pager{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.92rem}.crumb{margin:0 0 24px;padding:0;list-style:none}.crumb li+li:before{content:'›';margin-right:8px;color:#527587}.cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:26px}.cats a,.record{border-top:1px solid #90acb8;padding:15px 0}.cats a{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:1.08rem;font-weight:700;text-decoration:none}.cats a:hover,.record a:hover{text-decoration:underline}.cats small,.meta{font-weight:450;font-size:.9rem;color:#395e6f}.record h3{margin:0;font-size:1.22rem}.record p{margin:5px 0}.record a{text-decoration:none}.intro{font-size:1.16rem;max-width:63ch}.ver{font-size:clamp(1.2rem,2.5vw,1.8rem);margin:0}.split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:clamp(22px,6vw,80px)}.facts{margin:0}.facts div{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;padding:9px 0;border-top:1px solid #9bb6c3}.facts dd{margin:0}.tools{margin:20px 0}.tools nav,.pager{display:flex;flex-wrap:wrap;gap:8px}.tools a,.pager a,.pager strong{padding:5px 9px}.tools [aria-current],.pager strong{background:#1c5d79;color:white}.pager{margin-top:22px}.copy{white-space:pre-line;overflow-wrap:anywhere;max-width:68ch}.skip{position:absolute;left:-100vw}.skip:focus{left:5px;top:5px;background:white;padding:8px;z-index:2}footer{background:#326e87;color:white;border-top:3px solid #f90;padding:21px 0}footer a{color:#fff}figure{margin:12px 0}figure img{max-width:100%}summary{cursor:pointer}main,h1,h2,.record,.crumb{overflow-wrap:anywhere}.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}@media(max-width:720px){.cats{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}.section{padding-top:20px}.tools{align-items:flex-start}}@media(max-width:480px){.cats{grid-template-columns:1fr}header .shell{min-height:64px}header img{width:110px;height:auto}header nav{gap:12px;font-size:.9rem}.hero{padding-block:28px}.hero h1{font-size:2.85rem}.crumb{font-size:.84rem;margin-bottom:18px}.search button{padding-inline:13px}.facts div{grid-template-columns:1fr 1.15fr}}
html{--paper:#dfedf3;--ink:#153e50;--link:#1c5d79;--muted:#395e6f;--rule:#90acb8;--hero:#1c5d79;--foot:#326e87;--field:#fff;--field-ink:#123}
html[data-theme=dark]{color-scheme:dark;--paper:#112d3a;--ink:#ecf5f8;--link:#b9e7fa;--muted:#b0cad5;--rule:#527385;--hero:#174456;--foot:#153d4e;--field:#203e4d;--field-ink:#f2f8fb}
@media(prefers-color-scheme:dark){html:not([data-theme=light]){color-scheme:dark;--paper:#112d3a;--ink:#ecf5f8;--link:#b9e7fa;--muted:#b0cad5;--rule:#527385;--hero:#174456;--foot:#153d4e;--field:#203e4d;--field-ink:#f2f8fb}}
body{background:var(--paper);color:var(--ink)}a{color:var(--link)}.hero{background:var(--hero)}footer{background:var(--foot)}.cats small,.meta,.crumb li+li:before{color:var(--muted)}.cats a,.record,.facts div{border-color:var(--rule)}.search input,.theme select{background:var(--field);color:var(--field-ink);border:1px solid var(--rule)}.search input::placeholder{color:var(--muted)}.theme{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.87rem}.theme[hidden]{display:none}.theme select{padding:5px;border-radius:4px}header nav{align-items:center}.skip:focus{background:var(--paper)}:focus-visible{outline-offset:3px}button#more{margin-top:12px;padding:8px 14px}.action{color:#18323a}@media(max-width:540px){header .shell{gap:4px 10px;padding-block:8px}header nav{gap:10px;flex-wrap:wrap}.theme span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.theme select{max-width:84px;font-size:.83rem}}

html[data-theme="dark"] header img{content:url("logo-night.svg")}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) header img{content:url("logo-night.svg")}}

footer{padding-bottom:0}.legalbar{margin-top:16px;border-top:1px solid #80a4b4;padding:12px 0;font-size:.86rem}.legalbar nav{gap:16px}.legalbar a{text-decoration:underline;text-underline-offset:.2em}@media(max-width:540px){.legalbar .shell{align-items:flex-start;gap:6px;flex-direction:column}}

.directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px 30px}.directory section{border-top:1px solid var(--rule);padding-top:12px}.directory h3{margin:0}.directory small,.home-columns small{color:var(--muted)}.directory p{margin:.4em 0;font-size:.92rem}.home-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 46px;margin-top:24px}.archive-list,.ranking{padding-left:1.55em}.home-columns li{padding:7px 0;border-bottom:1px solid var(--rule)}.home-columns li small{display:inline-block;margin-left:.4em}@media(max-width:680px){.home-columns{grid-template-columns:1fr;gap:8px}}

.listing{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(18rem,1fr);align-items:start;gap:24px}
.listing h2{margin:0;font-size:1.22rem}
.listing dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;font-variant-numeric:tabular-nums}
.listing dt{font-size:.85rem;color:var(--muted)}
.listing dd{margin:0}
.ranking p{margin:4px 0}
@media(max-width:720px){.listing{grid-template-columns:1fr;gap:10px}}
.program-description p{margin:0 0 1em}.program-description ul,.program-description ol{padding-inline-start:1.6em}.program-description li{margin-block:.3em}

/* Shared controls and catalogue rows */
.icon {
    display: inline-block;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}
header nav > a, footer nav > a, .search button, .action, .directory h3, .cats small {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
header nav > a, .theme select, .sort-menu summary { min-height: 44px; }
.theme { position: relative; gap: .4rem; }
.theme select, .sort-menu summary {
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--field);
    color: var(--field-ink);
}
.theme select { appearance: none; max-width: none; padding: 0 1.75rem 0 .65rem; }
.theme > .icon:last-child { position: absolute; right: .5rem; pointer-events: none; width: 14px; }
.tools { margin: 1.25rem 0 1rem; gap: .75rem 1.5rem; }
.tools > span { color: var(--muted); font-size: .94rem; }
.sort-menu { position: relative; max-width: 100%; }
.sort-menu summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .75rem;
    list-style: none;
}
.sort-menu summary::-webkit-details-marker { display: none; }
.sort-menu summary strong { margin-inline-start: .25rem; }
.sort-menu summary > .icon:last-child { width: 14px; margin-inline-start: auto; }
.sort-menu[open] summary > .icon:last-child { transform: rotate(180deg); }
.sort-menu nav {
    position: absolute;
    z-index: 2;
    inset: calc(100% + 4px) 0 auto auto;
    display: grid;
    gap: 0;
    width: max(100%, 13rem);
    padding: .25rem;
    background: var(--field);
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: 0 6px 16px #082a3a26;
}
.sort-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: .45rem .7rem; border-radius: 3px; text-decoration: none; }
.sort-menu a:hover { text-decoration: underline; }
.directory h3 { margin-bottom: .35rem; }
.directory small { display: block; }
.directory h3 .icon { color: var(--muted); }
.cats small { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cats small .icon { width: 14px; }
.listing { padding: 1.2rem clamp(12px, 1.5vw, 20px); }
.listing dl > div { display: flex; flex-direction: column; gap: .2rem; }
.listing dt { flex: 1; line-height: 1.3; }
.listing dd { line-height: 1.35; }
.pager a, .pager strong { min-width: 40px; min-height: 40px; display: grid; place-items: center; }
footer a { color: white; }
@media (max-width: 540px) {
    .theme > .icon:first-child { display: none; }
    header nav > a .icon { width: 16px; }
    header nav { gap: .5rem; }
    .tools { align-items: stretch; flex-direction: column; }
    .sort-menu nav { inset-inline: 0; width: 100%; }
    .listing { gap: .8rem; }
    .listing dl { grid-template-columns: 1fr .85fr 1.15fr; }
}
@media (forced-colors: active) {
    .theme select { appearance: auto; }
    .theme > .icon:last-child { display: none; }
}

/* Surfaces and interaction states reuse the archive's blue and amber palette. */
html {
    --panel: color-mix(in srgb, var(--field) 62%, var(--paper));
    --line: color-mix(in srgb, var(--rule) 70%, var(--paper));
    --tint: color-mix(in srgb, var(--link) 9%, var(--paper));
}
.hero { background: radial-gradient(ellipse at 85% 0%, #ffffff12, transparent 56%), var(--hero); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero .spotlight { padding: clamp(18px, 3vw, 32px); border: 1px solid #ffffff50; border-top: 3px solid #ff9900; border-radius: 8px; background: #092d3e50; }
.spotlight h2 { margin: 0 0 12px; font-size: 1rem; letter-spacing: 0; color: #ffe0ad; }
.spotlight .record { padding: 0; border: 0; }
.spotlight .record a { color: white; }
.spotlight .record p { font-size: 1rem; margin-block: .6rem; }
.spotlight .meta { color: #d3e9f1; }
.search input { border-radius: 7px 0 0 7px; }
.search button { border-radius: 0 7px 7px 0; }
.action { border-radius: 7px; min-height: 46px; }
.directory { gap: 12px; }
.directory section, .program-lead, .spec-panel, .source-panel {
    border: 1px solid var(--line); background: var(--panel); border-radius: 9px;
}
.directory section { padding: 16px 18px; }
.directory section h3 { margin-bottom: .2rem; }
.directory h3 a { text-decoration: none; }
.directory p a { line-height: 1.8; }
.recent { margin-block: 36px; }
.archive-list { padding: 0; list-style: none; }
.archive-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.archive-list time, .recent small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cats { gap: 8px; }
.cats a { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.tools { border-block: 1px solid var(--line); padding-block: 12px; }
.tools + .record { border-top: 0; }
.release-version { color: var(--muted); font-size: .82em; font-weight: 500; letter-spacing: 0; }
.program-lead, .source-panel, .spec-panel { padding: clamp(18px,3vw,32px); }
.program-lead, .source-panel { border-inline-start: 4px solid #f90; }
.program-lead h1, .source-panel h1 { font-size: clamp(2rem,4vw,3.8rem); }
.program-lead .ver { font-size: 1rem; color: var(--muted); margin-top: .5rem; }
.split { margin-top: 28px; align-items: start; gap: clamp(20px,4vw,48px); }
.split h2 { margin-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 550; }
.header-search { justify-content: center; min-width: 40px; }
header nav > a { padding-inline: clamp(8px, 1vw, 14px); justify-content: center; }
header nav > a, .pager a { border-radius: 5px; }
.action:active, .search button:active { background: #e58b00; }
@media (hover: hover) {
    .action:hover, .search button:hover { background: #ffb539; color: #153341; box-shadow: 0 3px 8px #082a3a25; text-decoration: none; }
    .directory section:hover, .cats a:hover { border-color: var(--link); }
    .directory h3 a:hover, .spotlight .record a:hover { text-decoration: underline; }
    header nav > a:hover, .pager a:hover, .sort-menu a:not([aria-current]):hover { background: var(--tint); }
    .theme select:hover, .sort-menu summary:hover { border-color: var(--link); }
    .listing:has(h2 a:hover) { background: var(--tint); }
}
@media (prefers-reduced-motion: no-preference) {
    .action, .search button, .cats a, .directory section, .listing, header nav > a {
        transition: background-color .15s, border-color .15s, box-shadow .15s;
    }
}
@media (max-width: 740px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
    .header-search span { display: none; }
    .header-search { min-width: 36px; }
    .hero .spotlight { padding: 14px 16px; }
    .archive-list li { align-items: flex-start; }
}
@media (max-width: 360px) {
    header nav { gap: 4px; }
}

.action:focus-visible, .search button:focus-visible { background: #ffb539; }
.action:active, .search button:active { background: #e58b00; box-shadow: inset 0 2px 3px #59380035; }
@media (max-width: 360px) {
    header img { width: 90px; }
    header .shell { column-gap: 4px; }
    .header-search { min-width: 28px; }
}
