:root { --max: 1240px; }
html { scroll-padding-top: 84px; } /* below the sticky site header (68px + 16), as the site-header stylesheet sets */
body { background: #0b0b0e; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #ffb340; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 2100; padding: 12px 20px; background: #fff; color: #111; } /* above the site header (2000) */
.skip-link:focus { top: 8px; }
.archive-head { padding: 42px 0 28px; }
.head-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.head-top .eyebrow { margin: 0; font-size: .68rem; }
.head-top a { font-size: .78rem; color: #b7afb8; text-decoration: none; }
.archive-head h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; max-width: none; margin-bottom: 12px; }
.archive-lede { color: #c1bbc6; font-size: 1.02rem; margin: 0 0 14px; }
.non-affiliation { color: #9f98a4; font-size: .78rem; margin: 0; }
.non-affiliation strong { color: #c7bec9; font-weight: 550; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #302c34; padding-top: 24px; gap: 16px; }
.catalog-heading h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; letter-spacing: -.015em; }
.catalog-heading > span { font-size: .76rem; color: #a8a0ad; }
.catalog-controls { display: flex; align-items: end; gap: 12px; margin: 18px 0 14px; }
.catalog-controls label { display: grid; gap: 7px; color: #bab2c0; font-size: .72rem; }
.search-field { flex: 1; }
.catalog-controls input, .catalog-controls select { width: 100%; min-height: 43px; border: 1px solid #47404d; border-radius: 7px; color: #ede8f0; background: #17151b; padding: 10px 12px; font: inherit; font-size: .82rem; }
.catalog-controls input::placeholder { color: #a19aa8; }
.reset-filters { min-height: 43px; padding: 10px 16px; border: 1px solid #47404d; border-radius: 7px; color: #d4cbdc; background: #17151b; font: inherit; font-size: .8rem; cursor: pointer; }
.list-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #a8a0ad; font-size: .7rem; margin-bottom: 10px; }
.list-meta p { margin: 0; }
.evidence-note { color: #c3ad95; background: #221c16; border: 1px solid #493728; border-radius: 7px; padding: 10px 13px; font-size: .72rem; margin: 0 0 14px; }
.model-list { border: 1px solid #38313e; border-radius: 12px; overflow: hidden; }
.model-row { display: grid; grid-template-columns: minmax(215px, 2.2fr) .65fr .85fr .9fr 1.25fr auto; align-items: center; gap: 16px; padding: 18px 22px 12px; background: #121115; }
.model-row:nth-child(even) { background: #151318; }
.model-row + .model-row { border-top: 1px solid #332d3a; }
.model-name { min-width: 0; }
.model-name h3 { font-size: .92rem; line-height: 1.35; letter-spacing: -.012em; margin: 0 0 4px; overflow-wrap: anywhere; }
.model-name p { font-size: .7rem; color: #aba1b2; margin: 0; }
.metric { display: grid; gap: 4px; font-size: .76rem; color: #ddd4e3; }
.metric-label { color: #9e93a7; font-size: .63rem; }
.metric a { color: #ddd4e3; text-decoration-color: #716477; text-underline-offset: 3px; }
.seed-count { color: #9fcd99; }
.mirror-status { font-size: .71rem; color: #cebdad; }
.mirror-status small { display: block; font-size: .63rem; color: #a99cae; line-height: 1.5; margin-top: 3px; }
.magnet-action { display: inline-flex; justify-content: center; gap: 8px; align-items: center; min-height: 37px; color: #fff; background: #a63a03; border: 1px solid #d2591c; border-radius: 7px; text-decoration: none; padding: 8px 13px; font-size: .77rem; font-weight: 650; }
.magnet-action:hover { background: #c44709; }
.model-details { grid-column: 1 / -1; margin-top: -6px; }
.model-details summary { display: inline list-item; color: #a99faf; font-size: .7rem; cursor: pointer; width: fit-content; min-height: 24px; padding: 4px 0; }
.model-details[open] summary { color: #ffae75; }
.details-body { margin-top: 10px; border-top: 1px solid #38313e; padding-top: 14px; }
.full-status { font-size: .79rem; color: #e0be9c; }
.details-body dl { margin: 0; }
.details-body dl > div { display: grid; grid-template-columns: 165px minmax(0,1fr); gap: 20px; padding: 8px 0; font-size: .77rem; }
.details-body dt { color: #bbb0c4; }
.details-body dd { margin: 0; color: #a99faf; }
.details-body code { overflow-wrap: anywhere; color: #d8c9e2; }
.details-body a, .about-body a { color: #f0b27f; text-underline-offset: 3px; }
.empty-state { text-align: center; padding: 48px 20px; background: #151318; }
.empty-state p { color: #aea2b8; }
.about-archive { margin-top: 24px; margin-bottom: 30px; }
.about-archive > details { border: 1px solid #352d3b; border-radius: 10px; padding: 16px 20px; }
.about-archive summary { cursor: pointer; color: #b9afc3; font-size: .79rem; }
.about-body { padding-top: 22px; max-width: 970px; }
.about-body h2 { font-size: 1.35rem; line-height: 1.2; }
.about-body h3 { font-size: 1rem; margin-top: 24px; }
.about-body p { font-size: .85rem; color: #aca0b6; }
.site-footer { padding: 24px 0 32px; font-size: .74rem; color: #a699b0; }
@media (max-width: 1000px) {
 .model-row { grid-template-columns: minmax(170px,2fr) .65fr .8fr .8fr auto; gap: 12px; padding: 16px 18px 10px; }
 .mirror-status { grid-column: 1 / 4; grid-row: 2; }
 .mirror-status small { display: inline; margin-left: 8px; }
 .mirror-status br { display: none; }
 .model-details { grid-column: 4 / -1; margin-top: 0; }
 .model-details[open] { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
 .archive-head { padding-top: 28px; }
 .head-top { align-items: start; }
 .head-top a { font-size: .68rem; }
 .archive-head h1 { font-size: 2.25rem; }
 .archive-lede { font-size: .89rem; }
 .non-affiliation { font-size: .73rem; }
 .catalog-controls { flex-wrap: wrap; }
 .catalog-controls label { flex: 1 1 130px; }
 .catalog-controls .search-field { flex-basis: 100%; }
 .catalog-controls .reset-filters { width: 100%; }
 .model-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 12px; padding: 18px 16px 10px; }
 .model-name { grid-column: 1 / -1; }
 .model-name h3 { font-size: .99rem; }
 .metric { grid-row: 2; font-size: .74rem; }
 .metric-label { font-size: .62rem; }
 .mirror-status { grid-column: 1 / 3; grid-row: 3; }
 .mirror-status small { display: block; margin-left: 0; }
 .mirror-status br { display: initial; }
 .magnet-action { grid-column: 3; grid-row: 3; }
 .model-details, .model-details[open] { grid-column: 1 / -1; }
 .details-body dl > div { grid-template-columns: 1fr; gap: 5px; padding: 10px 0; }
 .site-footer { flex-direction: column; align-items: start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
