:root {
    color-scheme: light;
    --ink: #121821;
    --muted: #5f6f82;
    --paper: #eef4fb;
    --panel: #ffffff;
    --line: #cfdceb;
    --blue: #0b4fd8;
    --blue-dark: #07348f;
    --green: #14a83c;
    --green-dark: #08722a;
    --yellow: #ffd91a;
    --yellow-dark: #bd8500;
    --teal: #14a83c;
    --teal-dark: #07348f;
    --amber: #ffd91a;
    --red: #e3231f;
    --charcoal: #07111f;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #eef4fb 0%, #f8fbf4 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: linear-gradient(135deg, #07111f 0%, #08286d 62%, #063a1a 100%);
    color: #fff;
    border-bottom: 4px solid var(--yellow);
}

.header-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 22px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
}

.brand-mark img,
.brand-logo {
    display: block;
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.35rem;
}

.brand small {
    color: #d9e7ff;
    font-size: .9rem;
}

.header-search,
.hero-search,
.filter-bar {
    display: flex;
    gap: 10px;
}

.header-search input,
.hero-search input,
.filter-bar input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
}

.header-search button,
.hero-search button,
.filter-bar button {
    border: 0;
    border-radius: 8px;
    background: var(--yellow);
    color: #07111f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0 18px;
}

.platform-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 16px;
}

.platform-nav a {
    white-space: nowrap;
    border: 1px solid rgba(255, 217, 26, .24);
    border-radius: 8px;
    color: #e8f0ff;
    padding: 8px 12px;
    text-decoration: none;
}

.platform-nav a:hover {
    background: rgba(255, 217, 26, .14);
}

.site-main {
    flex: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

.hero-band {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, .96), rgba(8, 40, 109, .84) 44%, rgba(20, 168, 60, .18) 78%),
        url("/assets/img/archive-hero.png") center right / cover no-repeat;
    color: #fff;
    display: grid;
    align-items: end;
    gap: 24px;
    padding: 42px;
}

.hero-copy {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.eyebrow,
.vendor {
    margin: 0 0 8px;
    color: var(--yellow);
    font-size: .86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy h1,
.page-title h1,
.product-hero h1 {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1.1;
}

.hero-copy p {
    color: #e6efff;
    font-size: 1.08rem;
    max-width: 560px;
}

.hero-search {
    margin-top: 22px;
}

.hero-panel {
    width: min(100%, 360px);
    border: 1px solid rgba(255, 217, 26, .32);
    border-radius: 8px;
    background: rgba(7, 17, 31, .82);
    padding: 18px;
    position: relative;
    z-index: 1;
}

.panel-label {
    color: var(--yellow);
    display: block;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-panel strong {
    display: block;
    margin-top: 8px;
    font-size: 1.25rem;
}

.hero-panel p {
    color: #e6efff;
    margin-bottom: 0;
}

.content-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    margin-top: 24px;
}

.section-block {
    margin-top: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-heading h2,
.product-card h2,
.product-card h3,
.artifact-panel h3 {
    margin: 0;
}

.section-heading a {
    color: var(--green-dark);
    font-weight: 800;
}

.product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 8px;
    background: #fbfdff;
    padding: 18px;
}

.product-card h2 a,
.product-card h3 a,
.archive-table a,
.result-list a,
.status-panel a,
.product-hero .eyebrow a,
.artifact-panel a {
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.product-card h2 a:hover,
.product-card h3 a:hover,
.archive-table a:hover,
.result-list a:hover {
    text-decoration: underline;
}

.product-card p {
    color: var(--muted);
}

.card-meta,
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta span,
.badge-row span {
    border-radius: 999px;
    background: #e4f7ea;
    color: var(--green-dark);
    font-size: .82rem;
    font-weight: 800;
    padding: 5px 9px;
}

.category-list,
.result-list {
    display: grid;
    gap: 10px;
}

.category-list a,
.result-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
}

.category-list strong {
    color: var(--red);
}

.table-wrap {
    overflow-x: auto;
}

.archive-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: .95rem;
}

.archive-table th,
.archive-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.archive-table th {
    color: var(--blue-dark);
    font-size: .78rem;
    text-transform: uppercase;
}

.page-title,
.product-hero {
    display: grid;
    gap: 22px;
    margin-bottom: 22px;
}

.page-title p,
.product-hero p {
    color: var(--muted);
    max-width: 760px;
}

.filter-bar {
    margin-bottom: 22px;
}

.status-panel {
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 8px;
    background: #fbfdff;
    padding: 18px;
}

.status-panel h2 {
    margin: 0 0 12px;
}

.status-panel dl,
.artifact-panel dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.status-panel div,
.artifact-panel dl div {
    display: grid;
    gap: 4px;
}

.status-panel dt,
.artifact-panel dt {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-panel dd,
.artifact-panel dd {
    margin: 0;
}

.artifact-list {
    display: grid;
    gap: 16px;
}

.artifact-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.artifact-panel p,
.notes {
    color: var(--muted);
}

.hash {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
}

.empty-state {
    color: var(--muted);
    margin: 0;
}

.site-footer {
    display: grid;
    gap: 10px;
    background: linear-gradient(135deg, #07111f 0%, #08286d 100%);
    color: #e6efff;
    padding: 24px max(16px, calc((100vw - 1180px) / 2));
}

.site-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer p {
    margin: 0;
    color: #afc2dc;
    font-size: .9rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 760px) {
    .header-main {
        grid-template-columns: auto minmax(320px, 1fr);
        align-items: center;
    }

    .content-grid {
        grid-template-columns: 2fr 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .product-hero {
        grid-template-columns: minmax(0, 1fr) 330px;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .header-search,
    .hero-search,
    .filter-bar {
        flex-direction: column;
    }

    .header-search button,
    .hero-search button,
    .filter-bar button {
        min-height: 44px;
    }

    .hero-band {
        min-height: 520px;
        padding: 24px;
        background:
            linear-gradient(180deg, rgba(7, 17, 31, .96), rgba(8, 40, 109, .84) 62%, rgba(20, 168, 60, .28)),
            url("/assets/img/archive-hero.png") center right / cover no-repeat;
    }

    .hero-copy h1,
    .page-title h1,
    .product-hero h1 {
        font-size: 1.9rem;
    }
}
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--yellow);
    color: #07111f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0 18px;
    text-decoration: none;
    white-space: nowrap;
}

.download-button:hover {
    background: #ffe45c;
    text-decoration: none;
}

.artifact-download-panel {
    display: grid;
    gap: 18px;
}

.artifact-download-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.artifact-download-header h2 {
    margin: 0;
    overflow-wrap: anywhere;
}

.download-detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.download-detail-list div {
    display: grid;
    gap: 4px;
}

.download-detail-list dt {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.download-detail-list dd {
    margin: 0;
}
