:root {
    --paper: #f6f3ec;
    --paper-deep: #ebe7dc;
    --surface: #fffdf8;
    --ink: #17221d;
    --ink-soft: #53625a;
    --forest: #16483b;
    --forest-dark: #0c3027;
    --forest-pale: #e5eee8;
    --line: #d7d8cc;
    --accent: #ba5b35;
    --accent-pale: #f7e8df;
    --success: #1d6b4e;
    --danger: #a63f2e;
    --shadow: 0 14px 35px rgba(23, 34, 29, .07);
    --radius: 16px;
    --shell: 1000px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    min-width: 0;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.58;
}

a { color: #076b78; text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { color: var(--forest-dark); }

button, input, select { font: inherit; }
button, select, input[type="search"], input[type="file"] { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.page-shell { min-height: 70vh; padding-block: 30px 68px; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 30;
    padding: 8px 13px;
    border-radius: 8px;
    color: #fff;
    background: var(--forest-dark);
}
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 243, 236, .94);
    backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.06rem; font-weight: 750; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: var(--paper); background: var(--forest); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.primary-nav { display: flex; align-items: center; gap: 3px; }
.primary-nav a, .mobile-nav summary, .mobile-nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); font-size: .88rem; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav a.active, .mobile-nav a:hover { color: var(--forest-dark); background: var(--forest-pale); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; list-style: none; border: 1px solid var(--line); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary, .mobile-nav a { display: flex; align-items: center; min-height: 44px; }
.mobile-nav nav { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; display: grid; min-width: 190px; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 54px);
    padding: clamp(30px, 5vw, 56px) 0 clamp(36px, 5vw, 64px);
}
.hero-copy { align-self: center; max-width: 700px; }
.home-hero .hero-copy { align-self: start; }
.hero > .hero-copy:only-child { grid-column: 1 / -1; }
.hero h1, .page-intro h1 { max-width: 18ch; margin: 8px 0 16px; color: var(--forest-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4.8vw, 3.9rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.04; text-wrap: balance; }
.hero-lede { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: clamp(1.1rem, 2.1vw, 1.33rem); line-height: 1.55; }
.hero-aside { display: grid; align-content: center; gap: 15px; }
.hero-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--accent-pale); }
.hero-note p { margin: 0; font-size: .92rem; }
.note-icon { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 700; }
.platform-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 26px; font-size: .9rem; }
.platform-links a { font-weight: 700; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 14px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 14px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--forest); border-radius: 9px; color: #fff; background: var(--forest); font-size: .92rem; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { border-color: var(--forest-dark); color: #fff; background: var(--forest-dark); transform: translateY(-1px); }
.button-secondary { border-color: var(--forest); color: var(--forest-dark); background: var(--forest-pale); }
.button-secondary:hover { border-color: var(--forest); color: var(--forest-dark); background: var(--forest-pale); }
.button-small { min-height: 38px; padding: 8px 13px; font-size: .84rem; }
.button-disabled, .button:disabled { border-color: var(--line); color: var(--ink-soft); background: var(--paper-deep); cursor: not-allowed; transform: none; }

.eyebrow, .card-kicker { display: block; color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .13em; line-height: 1.25; text-transform: uppercase; }
.section { padding-block: clamp(36px, 5vw, 64px); }
.section + .section { border-top: 1px solid rgba(215, 216, 204, .72); }
.section-tinted { padding-inline: clamp(18px, 3vw, 30px); border-radius: var(--radius); background: var(--paper-deep); }
.section-heading { max-width: 820px; margin-bottom: 27px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; }
.section-heading-row > div { max-width: 820px; }
h2, h3 { color: var(--forest-dark); line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
h2 { margin: 6px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 500; }
h3 { margin: 7px 0 7px; font-size: clamp(1.08rem, 1.8vw, 1.35rem); }
p { margin: 0 0 13px; }
.section-intro { max-width: 700px; margin: 0; color: var(--ink-soft); }
.lede { max-width: 700px; color: var(--ink-soft); font-size: 1.08rem; }
.page-intro { padding: 30px 0 20px; }
.page-intro h1 { max-width: 20ch; margin-top: 8px; font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
.page-intro > p { max-width: 770px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.page-hero-copy > p { max-width: 770px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 20px rgba(23, 34, 29, .035); overflow-wrap: anywhere; }
.compact-card { padding: 18px; }
.compact-card p:last-child, .card p:last-child { margin-bottom: 0; }
.card-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.card-body { display: grid; gap: 10px; }
.card-summary-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--ink-soft); font-size: .84rem; }
.card-header h3 { margin-top: 0; }
.card-link, .action-card { display: flex; flex-direction: column; gap: 6px; }
.card-link { margin-top: 17px; font-weight: 750; text-decoration: none; }
.action-card { min-height: 142px; color: var(--ink); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.action-card:hover { border-color: var(--forest); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.action-card strong { color: var(--forest-dark); font-size: 1.03rem; }
.action-card { border-color: #8aa99f; }
.muted { color: var(--ink-soft); }
.small { font-size: .84rem; }
.fine-print { color: var(--ink-soft); font-size: .78rem; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 999px; color: var(--forest-dark); background: var(--forest-pale); font-size: .73rem; font-weight: 800; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }
.badge-muted { color: var(--ink-soft); background: var(--paper-deep); }
.badge-warning { color: #7a3a26; background: var(--accent-pale); }
.split-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: 40px; align-items: start; }
.callout, .inline-note, .compare-callout { padding: 18px 20px; border-left: 3px solid var(--forest); background: var(--forest-pale); }
.callout p:last-child, .inline-note:last-child { margin-bottom: 0; }
.compact-list { margin: 12px 0 0; padding-left: 19px; }
.compact-list li + li { margin-top: 7px; }
.compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.report-detail .compact-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-block: 14px; }
.report-detail .compact-grid > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-content: start; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.report-detail .compact-grid > div > .muted { font-size: .82rem; }
.report-detail .compact-grid strong { min-width: 0; font-size: .92rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nested-section { padding: 18px 0; border-top: 1px solid var(--line); }
.report-detail { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.platform { color: var(--forest); font-size: .84rem; font-weight: 750; }
.setup-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.setup-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.setup-issue { display: flex; flex-direction: column; padding: 20px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.issue-meta { display: grid; gap: 4px; font-size: .84rem; }
.issue-actions { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.issue-common-actions { margin-block: 16px 20px; }
.grid > a.card { border-color: #8aa99f; text-decoration: none; }
.grid > a.card h3 { color: #076b78; text-decoration: underline; }
.grid > a.card:hover { border-color: var(--forest); background: var(--forest-pale); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.requirement-package { display: flex; flex-direction: column; border-left: 3px solid var(--forest); }
.requirement-package h3 { font-size: 1rem; line-height: 1.4; text-wrap: wrap; }
.requirement-package .facts { grid-template-columns: minmax(0, 1fr); gap: 0; margin-block: 16px; }
.requirement-package .facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.requirement-package dt { color: var(--ink-soft); font-size: .82rem; }
.requirement-package dd { min-width: 0; margin: 0; color: var(--forest-dark); font-size: .92rem; font-weight: 650; }
.requirement-package > .inline-links { margin-top: auto; padding-top: 14px; align-items: center; }

.inline-links > a:not(.source-action), .history-actions > a:not(.source-action) { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #8aa99f; border-radius: 8px; background: var(--forest-pale); color: var(--forest-dark); font-size: .84rem; font-weight: 650; text-decoration: none; }
.inline-links > a:not(.source-action):hover, .history-actions > a:not(.source-action):hover { border-color: var(--forest); background: #d5e5dc; }
.inline-links { align-items: center; }
.source-action { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #6d9696; border-radius: 8px; background: #e6f1f1; color: #076b78; text-decoration: none; vertical-align: middle; }
.source-action::before { content: "↗"; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.source-action:hover { border-color: #076b78; background: #cfe5e6; color: #034f59; }
.data-table .action-cell { width: 72px; min-width: 72px; text-align: center; }

@media (max-width: 480px) {
    .toolbar:not(.setup-tabs) { grid-template-columns: minmax(0, 1fr); }
}

.build-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; }
.build-status-main, .build-status-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; }
.build-status-main strong { color: var(--forest-dark); font-size: 1.15rem; }
.build-status-actions { justify-content: flex-end; }
.text-link { font-weight: 750; }
.build-status .text-link { font-size: .87rem; }

.hero-game-search { padding: 19px; }
.hero-game-search h3 { margin-top: 5px; font-size: 1.55rem; }
.search-field { display: grid; gap: 6px; margin: 13px 0 14px; }
.search-field > span { color: var(--ink-soft); font-size: .83rem; font-weight: 700; }
.search-field input, .toolbar select, .hash-tool select, .file-drop input[type="file"] { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-field input:focus, .toolbar select:focus, .hash-tool select:focus { border-color: var(--forest); outline: 3px solid rgba(22, 72, 59, .15); }
.quick-game-results { display: grid; max-height: 270px; overflow: auto; border-top: 1px solid var(--line); }
.quick-game-result { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
.quick-game-result:hover { color: var(--forest); }
.quick-game-copy { display: grid; gap: 3px; min-width: 0; }
.game-grid { align-items: start; }
.game-card { display: flex; flex-direction: column; align-self: start; }
.game-card .card-link { flex-direction: row; align-items: center; text-decoration: underline; }
.game-card .card-link > span { flex-shrink: 0; }
.report-row { padding: 13px 0; border-top: 1px solid var(--line); }
.report-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.report-row p { margin: 4px 0; }
.card-subsection { margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.card-subsection p:last-child { margin-bottom: 0; }
.empty-search { margin: 14px 0 0; padding: 13px 15px; border: 1px dashed var(--line); color: var(--ink-soft); }
.recent-query-panel { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 20px; align-items: start; margin-top: 18px; background: rgba(255, 253, 248, .62); }
.recent-query-panel h3 { margin-top: 7px; }
.recent-query-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recent-query-item { display: grid; gap: 2px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); text-decoration: none; }
.recent-query-item:hover { border-color: var(--forest); color: var(--forest-dark); }

.release-summary { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 25px; align-items: start; }
.release-summary > * { min-width: 0; overflow-wrap: anywhere; }
.release-summary-heading h3 { margin-top: 11px; }
.change-list { display: grid; gap: 0; margin-top: 25px; }
.change-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 0 0 22px; overflow-wrap: anywhere; }
.change-marker { position: relative; display: block; width: 12px; height: 12px; margin: 6px 0 0 4px; border: 3px solid var(--accent); border-radius: 50%; background: var(--paper); }
.change-item:not(:last-child) .change-marker::after { content: ""; position: absolute; top: 9px; left: 2px; width: 2px; height: calc(100% + 25px); background: var(--line); }
.change-item h3 { margin-top: 0; }
.change-item p:last-child { margin-bottom: 0; }
.inline-note { margin-top: 22px; }

.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toolbar label { display: grid; flex: 1 1 150px; gap: 5px; min-width: 135px; }
.toolbar label > span, .hash-tool label > span { color: var(--ink-soft); font-size: .79rem; font-weight: 750; }
.toolbar .button { flex: 0 0 auto; }
.table-wrap { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; min-width: 840px; border-collapse: collapse; font-size: .86rem; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { color: var(--ink-soft); background: var(--paper-deep); font-size: .73rem; letter-spacing: .07em; text-transform: uppercase; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { color: var(--forest-dark); font-weight: 700; }
.hash-cell { min-width: 190px; max-width: 245px; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .73rem; overflow-wrap: anywhere; }
code { padding: 2px 4px; border-radius: 4px; color: var(--forest-dark); background: var(--forest-pale); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84em; }
.recommendation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 18px; border-color: rgba(22, 72, 59, .28); background: var(--forest-pale); }
.recommendation > [data-recommendation-details] { min-width: 0; }
.recommendation-context { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid #bfd0c9; }
.recommendation h3 { margin-top: 8px; }
.recommendation .button { flex: 0 0 auto; }
.recommendation [data-recommendation-details].is-empty { opacity: .8; }
.history-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.history-item { display: flex; align-items: start; justify-content: space-between; gap: 24px; min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history-item > div { min-width: 0; }
.history-item h3 { margin-top: 0; }
.history-item p:last-child { margin-bottom: 0; }
.history-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px 15px; white-space: nowrap; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.hash-tool { border-color: rgba(22, 72, 59, .28); }
.hash-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 17px; }
.hash-tool label { display: grid; align-content: start; gap: 7px; }
.file-drop { padding: 12px; border: 1px dashed var(--forest); border-radius: 10px; background: rgba(255, 255, 255, .56); }
.file-drop.is-dragging { background: var(--forest-pale); }
.file-drop input[type="file"] { padding: 7px; border-style: solid; background: #fff; }
.file-drop-hint { color: var(--ink-soft); font-size: .8rem; }
.hash-status { min-height: 25px; margin: 18px 0 0; color: var(--ink-soft); font-size: .89rem; }
.hash-status.is-busy { color: var(--forest); }
.hash-status.is-success { color: var(--success); font-weight: 750; }
.hash-status.is-error { color: var(--danger); font-weight: 700; }

.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.comparison-card { min-height: 215px; }
.comparison-card h3 { margin-top: 13px; }
.comparison-card h4 { margin: 18px 0 8px; font-size: .95rem; }
.comparison-card ul { margin: 8px 0 16px; padding-left: 20px; }
.comparison-card li + li { margin-top: 8px; }
.comparison-card > .button-row { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.compare-callout { margin-top: 18px; }
.compare-callout p:last-child { margin-bottom: 0; }
[aria-labelledby="release-heading"] > .grid > .card { display: flex; flex-direction: column; }
[aria-labelledby="release-heading"] > .grid > .card > .inline-links { margin-top: auto; padding-top: 16px; }
.steps-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-list li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; counter-increment: step; }
.steps-list li::before { content: counter(step); display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font-weight: 800; }
.steps-list li span { display: block; color: var(--ink-soft); }
.steps-list li > span { grid-column: 2; }

.repository-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 30px; align-items: center; }
.repository-hero h3 { margin-top: 11px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.repository-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.repository-stats div { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.repository-stats strong { color: var(--forest-dark); overflow-wrap: anywhere; }
.github-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.github-columns h3 { margin-top: 0; }
.mini-list { border-top: 1px solid var(--line); }
.mini-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mini-list-item div { display: grid; gap: 2px; min-width: 0; }
.mini-list-item > a { flex-shrink: 0; white-space: nowrap; }
.compact-empty { padding: 14px; }

.faq-list { display: grid; gap: 9px; max-width: 900px; }
.faq-list details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.faq-list summary { padding: 15px 17px; color: var(--forest-dark); font-weight: 750; cursor: pointer; list-style-position: inside; }
.faq-list details p { padding: 0 18px 16px 38px; color: var(--ink-soft); }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.empty { padding: 19px 21px; border: 1px dashed #b8bcb0; border-radius: var(--radius); background: rgba(255, 253, 248, .52); }
.empty p:last-child { margin-bottom: 0; }

.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-title { margin-bottom: 10px; color: var(--forest-dark); font-weight: 800; }
.footer-grid a { display: block; width: fit-content; margin: 5px 0; font-size: .9rem; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 38px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .76rem; }

.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; }
[hidden] { display: none !important; }

/* Shared editorial hero, tool, and image treatment. */
.hero-art {
    min-width: 0;
    margin: 0;
}
.hero-art picture,
.hero-art img {
    display: block;
    width: 100%;
}
.hero-art img {
    aspect-ratio: 3 / 2;
    height: auto;
    border: 1px solid rgba(22, 72, 59, .18);
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(23, 34, 29, .08);
}
.hero-art figcaption {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: .76rem;
    letter-spacing: .02em;
}
.home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    grid-template-areas: "copy tools" "art tools";
    align-items: start;
}
.home-hero > .hero-copy { grid-area: copy; }
.home-hero > .hero-aside { grid-area: tools; }
.home-hero > .hero-art {
    grid-area: art;
    align-self: end;
}
.home-hero .hero-aside {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    gap: 14px;
}
.home-hero .hero-aside .build-status { width: 100%; }
.home-hero .build-status { flex-direction: column; align-items: stretch; }
.home-hero .build-status-actions { justify-content: flex-start; }
.home-hero .hero-art img {
    height: clamp(240px, 22vw, 330px);
    aspect-ratio: auto;
    object-position: center 50%;
}
.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr);
    grid-template-areas: "copy art";
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    padding-block: clamp(26px, 4vw, 46px) clamp(32px, 4vw, 54px);
}
.page-intro.page-hero {
    padding-block: clamp(26px, 4vw, 46px) clamp(32px, 4vw, 54px);
}
.page-hero > .hero-copy,
.page-hero > .page-hero-copy { grid-area: copy; }
.page-hero > .hero-art { grid-area: art; }
.page-hero-copy,
.page-hero > .hero-copy { max-width: 720px; }
.page-hero .hero-art img { max-height: 300px; }
.hero-tool-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 16px;
    margin-top: 18px;
}
.hero-tool-links .text-link { font-size: .88rem; font-weight: 750; }
.section-tool {
    margin-block: 10px;
    padding-inline: clamp(17px, 3vw, 30px);
    border: 1px solid rgba(22, 72, 59, .2);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(229, 238, 232, .72), rgba(255, 253, 248, .82));
    box-shadow: 0 7px 22px rgba(23, 34, 29, .04);
}
.section-tool .toolbar {
    border-color: rgba(22, 72, 59, .22);
    background: rgba(255, 253, 248, .82);
}
.section-tool .section-heading { margin-bottom: 20px; }
.tool-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: clamp(20px, 3vw, 34px);
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 253, 248, .72);
}
.tool-nav-link {
    display: block;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--ink-soft);
    text-decoration: none;
}
.tool-nav-link:hover,
.tool-nav-link:focus-visible {
    color: var(--forest-dark);
    background: var(--forest-pale);
}
.tool-nav-link.active {
    border-color: rgba(22, 72, 59, .18);
    color: var(--forest-dark);
    background: var(--forest-pale);
}
.tool-nav-name,
.tool-nav-note { display: block; overflow-wrap: anywhere; }
.tool-nav-link { border-color: #bfd0c9; background: var(--surface); }
.tool-nav-name { font-size: .84rem; font-weight: 800; line-height: 1.25; }
.tool-nav-note { margin-top: 2px; color: var(--ink-soft); font-size: .72rem; line-height: 1.3; }
.toolbar,
.data-table,
.table-wrap { overflow-wrap: anywhere; }
.data-table th,
.data-table td { overflow-wrap: anywhere; }
.data-table code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 1080px) {
    .primary-nav { display: none; }
    .mobile-nav { display: block; }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .hero-aside .build-status { grid-column: span 2; }
    .hero-aside .hero-note { align-self: stretch; }
    .home-hero {
        grid-template-columns: 1fr;
        grid-template-areas: "copy" "tools" "art";
    }
    .page-hero {
        grid-template-columns: 1fr;
        grid-template-areas: "copy" "art";
    }
    .page-hero .hero-art img { max-height: none; }
    .home-hero .hero-art img { height: auto; aspect-ratio: 3 / 2; }
    .grid-3, .link-grid, .compact-grid, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .repository-hero { grid-template-columns: 1fr; }
    .repository-stats { max-width: 600px; }
    .tool-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .page-shell { padding-top: 30px; }
    .hero { padding-top: 32px; }
    .hero h1, .page-intro h1 { font-size: clamp(2.25rem, 11vw, 3.75rem); }
    .hero-aside { grid-template-columns: 1fr; }
    .hero-aside .build-status { grid-column: auto; }
    .build-status, .recommendation, .history-item { align-items: stretch; flex-direction: column; }
    .recommendation { grid-template-columns: minmax(0, 1fr); }
    .build-status-actions, .history-actions { justify-content: start; }
    .section-heading-row { display: block; }
    .section-heading-row > .text-link { display: inline-block; margin-top: 12px; }
    .split-copy, .grid-2, .grid-3, .link-grid, .compact-grid, .facts, .release-summary, .comparison-grid, .hash-tool-grid, .github-columns, .recent-query-panel, .recent-query-list { grid-template-columns: 1fr; }
    .section-tinted { padding-inline: 14px; }
    .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
    .toolbar label { min-width: 0; }
    .toolbar .button { width: 100%; }
    .inline-links > a:not(.source-action), .history-actions > a:not(.source-action), .button-small { min-height: 44px; }
    .data-table { min-width: 730px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-grid > :first-child { grid-column: span 2; }
    .tool-nav { display: flex; overflow-x: auto; }
    .tool-nav-link { flex: 0 0 148px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
