@layer reset, base, components, responsive;

@layer components {
  .catalog-preview { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 30px; margin-bottom: 32px; border: 1px solid #b9c8a6; background: #eaf0df; }
  .catalog-preview h3 { margin: 12px 0; font-size: clamp(23px, 2.7vw, 32px); }
  .catalog-preview p { color: var(--muted); font-size: 14px; max-width: 680px; }
  .catalog-preview nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
  .catalog-preview nav a { min-height: 36px; font-size: 13px; }
  .catalog-preview nav span { font: 11px var(--mono); padding: 3px 6px; border: 1px solid #b9c8a6; margin-left: 5px; }
  .catalog-preview > .button { flex-shrink: 0; }
}

@layer responsive {
  @media (max-width: 760px) { .catalog-preview { flex-direction: column; align-items: flex-start; padding: 22px; } }
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, dl, dd { margin: 0; }
  button, input, select { font: inherit; }
  button, summary, select { cursor: pointer; }
  [hidden] { display: none !important; }
  img, svg { max-width: 100%; display: block; }
}

@layer base {
  :root { --paper: #f5f4ee; --ink: #202720; --muted: #657067; --line: #d9ded4; --dark: #151a17; --lime: #d7f276; --soft: #e9ede3; --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body { background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { font-weight: 650; letter-spacing: -.045em; line-height: 1.13; }
  h2 { font-size: clamp(30px, 3.6vw, 48px); }
  h3 { font-size: 23px; letter-spacing: -.025em; }
  p + p { margin-top: 14px; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  a:hover { text-decoration-thickness: 2px; }
  button { color: inherit; }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #7f922b; outline-offset: 5px; }
  code, pre, .mono, .eyebrow { font-family: var(--mono); }
  code { font-size: .86em; overflow-wrap: anywhere; }
  p code, li code { background: #e7eadf; border-radius: 3px; padding: 2px 5px; }
  pre { margin: 0; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
  pre code { font-size: inherit; }
  ol, ul { margin: 18px 0 0; padding-left: 22px; }
  li + li { margin-top: 10px; }
  summary { position: relative; list-style: none; padding: 20px 38px 20px 0; font-weight: 600; line-height: 1.5; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; position: absolute; right: 3px; top: 17px; font: 25px/1.3 var(--mono); font-weight: 400; }
  details[open] > summary::after { content: "−"; }
  ::selection { color: var(--dark); background: var(--lime); }
  .container { max-width: 1296px; padding: 0 40px; margin: 0 auto; }
  .section { padding: 88px 0; }
  .eyebrow { font-size: 11px; letter-spacing: .09em; line-height: 1.5; font-weight: 600; }
  .eyebrow + h2 { margin-top: 15px; }
  .mono { font-size: 11px; letter-spacing: .025em; }
  .muted { color: var(--muted); }
  .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 38px; }
  .section-heading > div { flex: 1; }
  .section-heading > p { width: min(37%, 380px); color: var(--muted); font-size: 15px; }
  .visually-hidden { width: 1px; height: 1px; position: absolute; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .text-link { font-weight: 600; font-size: 14px; }
  .text-link span { padding-left: 8px; }
  .button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; padding: 14px 19px; min-height: 50px; text-decoration: none; font-size: 14px; font-weight: 650; border: 1px solid transparent; border-radius: 3px; transition: background .15s ease, transform .15s ease; }
  .button:hover { transform: translateY(-2px); text-decoration: none; }
  .button span { font-size: 18px; font-weight: 400; }
  .button-lime { background: var(--lime); color: var(--dark); }
  .button-lime:hover { background: #e6ff90; }
  .button-dark { background: var(--dark); color: var(--paper); }
  .button-dark:hover { background: #35442e; }
  .button-outline { border-color: #5a6559; color: var(--paper); background: transparent; }
  .button-outline:hover { background: #2c362c; }
  .disclosure-content { padding: 0 0 24px; color: var(--muted); font-size: 15px; }
  .disclosure-content strong { color: var(--ink); }
}

@layer components {
  .skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; background: var(--lime); color: var(--dark); padding: 12px 20px; }
  .skip-link:focus { top: 12px; }
  .site-header { background: var(--dark); color: #e3e9df; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #343c32; }
  .header-inner { max-width: 1296px; margin: auto; padding: 18px 40px; min-height: 78px; display: flex; align-items: center; gap: 26px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
  .brand-mark { width: 34px; height: 37px; display: grid; place-items: center; color: var(--lime); border: 1px solid #738244; border-radius: 3px; font-size: 26px; font-weight: 400; }
  .brand small { display: block; font: 8px/1.7 var(--mono); letter-spacing: .1em; color: #bbc6b5; }
  #site-nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
  #site-nav a { font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; min-height: 38px; }
  #site-nav a:hover { color: var(--lime); }
  .header-cta { border-bottom: 1px solid var(--lime); padding: 8px 0; color: var(--lime); font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
  .menu-toggle { background: transparent; border: 1px solid #596453; border-radius: 3px; padding: 8px 12px; font-size: 14px; min-height: 44px; }
  .menu-toggle span { margin-left: 10px; }
  .hero { color: #eff3e9; background: var(--dark); overflow: hidden; }
  .hero-grid { display: block; padding-top: 58px; padding-bottom: 48px; }
  .hero .eyebrow { color: var(--lime); }
  .hero-copy h1 { font-size: clamp(68px, 9vw, 122px); line-height: 1; letter-spacing: -.055em; margin: 18px 0 20px; font-weight: 600; color: var(--lime); }
  .hero-lead { font-size: clamp(28px, 3.8vw, 48px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }
  .hero-description { color: #b5bfb2; font-size: 17px; max-width: 630px; line-height: 1.65; margin-top: 20px; margin-inline: auto; }
  .hero-downloads { display: flex; flex-wrap: wrap; justify-content: center; max-width: 420px; gap: 10px; margin-top: 28px; margin-inline: auto; }
  .hero-downloads .button { min-width: 124px; }
  .hero-download-note { color: #aab5a6; font-size: 11px; margin-top: 12px; }
  .hero-next { display: inline-block; margin-top: 22px; font-size: 13px; color: #e1e9d8; }
  .live-dot { background: var(--lime); width: 6px; height: 6px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px #d7f27615; margin-right: 12px; vertical-align: middle; }
  .hero-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 30px; padding-top: 19px; padding-bottom: 19px; border-top: 1px solid #343f2e; color: #b0bdaa; text-align: center; font: 10px/1.6 var(--mono); }
  .hero-bottom span::before { content: "✓"; margin-right: 8px; color: var(--lime); }
  .hero-bottom a { margin-left: 0; text-decoration: none; color: var(--lime); }
  .hero-bottom a span::before { content: none; }
  .download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .download-card { padding: 24px; border: 1px solid #cdd4c3; border-radius: 5px; background: #fffef8; min-width: 0; }
  .card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 30px; }
  .tag { font: 9px/1.5 var(--mono); background: #e3ecd5; color: #40572a; padding: 4px 7px; border-radius: 2px; white-space: nowrap; letter-spacing: 0; }
  .tag-warn { color: #71481b; background: #f4e9d4; }
  .download-card h3 { font-size: 28px; }
  .download-card h3 > span { font: 12px var(--mono); color: var(--muted); letter-spacing: 0; }
  .platform-requirement { min-height: 58px; color: var(--muted); font-size: 13px; margin-top: 12px; line-height: 1.7; }
  .download-card .button { width: 100%; justify-content: space-between; margin-top: 20px; }
  .download-meta { display: flex; gap: 12px; justify-content: space-between; margin-top: 15px; font-size: 11px; color: var(--muted); }
  .download-meta a { color: var(--ink); }
  .filename { font: 10px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; padding-top: 15px; margin-top: 17px; border-top: 1px solid var(--line); }
  .hash-details { margin-top: 12px; }
  .hash-details summary { font-size: 11px; padding: 12px 25px 7px 0; }
  .hash-details summary::after { font-size: 18px; top: 8px; }
  .hash-content { margin-top: 10px; font-size: 11px; }
  .hash-content .code-header { padding: 0 0 10px; background: none; border: 0; font-size: 10px; }
  .hash { display: block; background: var(--soft); padding: 12px; font-size: 10px; line-height: 1.8; word-break: break-all; }
  .hash-content p { margin-top: 10px; }
  .download-footnote { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; color: var(--muted); font-size: 12px; margin-top: 23px; }
  .download-footnote p + p { margin: 0; }
  .verify-block { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; }
  .snapshot-notice { margin-bottom: 22px; padding: 15px 20px; font-size: 13px; background: #f4e8cd; border-left: 3px solid #ac761e; }
  .code-grid { display: grid; gap: 14px; margin: 24px 0; }
  .code-box { border: 1px solid #ccd3c3; border-radius: 4px; overflow: hidden; background: #eef1e7; }
  .code-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 10px 15px; border-bottom: 1px solid #d6ddcd; font: 11px/1.5 var(--mono); color: #53624b; background: #e6ebdd; }
  .code-box pre { padding: 16px; color: #2c3928; }
  .copy-button { background: #f9fbf2; border: 1px solid #b9c5a7; border-radius: 3px; padding: 7px 11px; font-size: 11px; min-width: 61px; min-height: 34px; }
  .copy-button:hover { background: #d9e5c6; }
  .overview-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #e9ede2; }
  .overview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .overview-copy { font-size: 15px; color: #53604f; }
  .overview-copy strong { color: var(--ink); }
  .overview-facts { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; border-top: 1px solid #ccd4c1; padding-top: 20px; margin-top: 24px; }
  .overview-facts strong { display: block; font-size: 14px; line-height: 1.4; }
  .overview-facts span { font-size: 11px; line-height: 1.6; display: block; margin-top: 5px; }
  .stage-guide { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 27px; }
  .stage-guide > div { padding: 22px; border-right: 1px solid var(--line); }
  .stage-guide > div:last-child { border: 0; }
  .stage-guide strong { font-size: 12px; }
  .stage-guide p { font-size: 12px; color: var(--muted); margin-top: 9px; line-height: 1.6; }
  .stage-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; }
  .dot-red { background: #a54737; }
  .dot-amber { background: #b78220; }
  .dot-blue { background: #467d92; }
  .dot-green { background: #528050; }
  .table-intro { font-size: 13px; color: var(--muted); max-width: 960px; margin-bottom: 30px; }
  .table-intro strong { color: var(--ink); }
  .compat-controls { display: grid; grid-template-columns: minmax(220px, 1fr) 160px 160px 65px; align-items: end; gap: 14px; padding: 20px; background: #e9ede2; border-radius: 4px; }
  .compat-controls label { display: block; font: 10px/1.5 var(--mono); color: #596750; margin-bottom: 8px; }
  .compat-controls input, .compat-controls select { width: 100%; min-height: 44px; border: 1px solid #bfcbb1; border-radius: 3px; background: #fffef8; color: var(--ink); padding: 10px 12px; font-size: 13px; }
  .reset-button { font-size: 12px; background: transparent; border: 0; padding: 12px 5px; min-height: 44px; text-decoration: underline; }
  .reset-button:disabled { color: #7c8872; cursor: default; text-decoration: none; }
  .table-meta { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 12px; font-size: 11px; color: var(--muted); }
  .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
  table { width: 100%; border-collapse: collapse; text-align: left; min-width: 920px; font-size: 12px; }
  thead { background: #e8ece1; color: #5a6653; }
  thead th { font: 10px/1.6 var(--mono); padding: 14px 18px; font-weight: 500; white-space: nowrap; }
  tbody th, tbody td { padding: 20px 18px; border-top: 1px solid var(--line); vertical-align: top; }
  tbody tr:hover { background: #f0f2e9; }
  tbody th { width: 20%; font-weight: 600; }
  tbody td:nth-child(2) { width: 8%; }
  tbody td:nth-child(3) { width: 13%; }
  tbody td:nth-child(4) { width: 12%; }
  .game-name { display: block; font-size: 13px; line-height: 1.5; }
  .title-id { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 5px; }
  .stage { display: inline-block; padding: 4px 8px; border-radius: 2px; font: 10px/1.4 var(--mono); white-space: nowrap; }
  .stage-in-game { color: #355b2f; background: #e0eacd; }
  .stage-doesnt-boot { color: #8a372c; background: #f2e2dc; }
  .stage-logo { color: #805412; background: #f1e8d2; }
  .stage-menu { color: #2c596a; background: #e0eaef; }
  .report-date { color: var(--muted); white-space: nowrap; }
  .report-note { min-width: 360px; }
  .report-note > p { color: #53604d; line-height: 1.65; }
  .report-note summary { padding: 10px 24px 0 0; color: #3d512e; font-size: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .report-note summary::after { top: 6px; font-size: 17px; right: 0; }
  .report-context { margin-top: 13px; color: var(--muted); padding: 14px; background: #e9ede3; border-radius: 3px; font-size: 11px; }
  .report-context dt { font: 9px var(--mono); text-transform: uppercase; margin-top: 12px; }
  .report-context dt:first-child { margin-top: 0; }
  .report-context dd { color: #3c4b35; margin-top: 5px; }
  .report-context p { margin: 14px 0; }
  .report-context .mono { font-size: 9px; }
  .empty-results { background: #e9ede2; padding: 30px; border: 1px solid var(--line); border-top: 0; font-size: 14px; }
  .empty-results p { margin: 10px 0 20px; color: var(--muted); }
  .callout { margin-top: 26px; display: flex; gap: 20px; align-items: flex-start; padding: 22px; border-left: 3px solid #97b655; background: #e9eede; }
  .callout-number { width: 25px; height: 25px; flex-shrink: 0; border: 1px solid #9db56c; color: #51712d; display: grid; place-items: center; border-radius: 50%; font-size: 12px; }
  .callout strong { font-size: 13px; }
  .callout p { font-size: 12px; line-height: 1.7; color: #5a6a50; margin-top: 5px; }
  .callout a { flex-shrink: 0; font-size: 11px; margin-left: auto; margin-top: 5px; }
  .requirements-section { background: #202a22; color: #e5eedf; }
  .requirements-section .eyebrow { color: var(--lime); }
  .requirements-section .section-heading > p { color: #b2bfa9; }
  .requirements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
  .requirements-grid article { border-top: 1px solid #546348; padding-top: 25px; }
  .requirements-grid .mono { color: var(--lime); font-size: 10px; }
  .requirements-grid h3 { margin-top: 15px; font-size: 25px; }
  .requirements-grid p { font-size: 13px; margin-top: 20px; color: #b4c2aa; }
  .platform-jumps { display: flex; gap: 10px; margin: -8px 0 32px; }
  .platform-jumps a { border: 1px solid #cbd4c0; background: #e9ede1; border-radius: 3px; text-decoration: none; padding: 10px 18px; font-size: 13px; min-height: 44px; }
  .platform-jumps a:hover { background: #dce5d0; }
  .platform-jumps span { margin-left: 15px; }
  .install-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .install-card { min-width: 0; padding-top: 22px; border-top: 1px solid #bfcbb2; font-size: 13px; color: #5b6853; }
  .install-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
  .install-heading h3 { color: var(--ink); font-size: 22px; }
  .install-heading .tag { display: block; width: fit-content; margin-top: 6px; }
  .install-number { font: 10px var(--mono); color: #4e6538; display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 33px; border: 1px solid #b4c698; border-radius: 50%; }
  .install-card .code-box { margin: 18px 0; }
  .install-card pre { font-size: 11px; }
  .expected { border-left: 2px solid #a5bc7c; padding-left: 16px; margin-top: 24px; }
  .expected strong { color: #3b542b; font-size: 12px; }
  .expected p { margin-top: 6px; font-size: 12px; }
  .install-failure { font-size: 12px; margin-top: 18px; }
  .library-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; margin-top: 50px; padding-top: 38px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  .library-guide h3 { font-size: 28px; color: var(--ink); margin-top: 12px; }
  .library-guide p { margin-top: 18px; }
  .directory-example { background: #e9eee0; border: 1px solid #c6d2b7; border-radius: 4px; margin-bottom: 18px; }
  .directory-example pre { padding: 20px; color: #405433; font-size: 11px; }
  .cli-guide { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 35px; }
  .troubleshoot-section { background: #ebece5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .troubleshoot-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; }
  .trouble-intro > p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin: 23px 0; }
  .trouble-list details { border-bottom: 1px solid #cdd5c4; }
  .trouble-list details:first-child { border-top: 1px solid #cdd5c4; }
  .trouble-list summary { font-size: 15px; }
  .trouble-list summary > h3 { font: inherit; letter-spacing: inherit; }
  .trouble-list .disclosure-content { font-size: 13px; }
  .trouble-list .disclosure-content ol { margin-top: 0; }
  .trouble-list .disclosure-content p { margin-top: 15px; }
  .maintenance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .maintenance-grid article { border-top: 1px solid #c8d2bc; padding-top: 23px; font-size: 13px; color: var(--muted); }
  .maintenance-grid .mono { font-size: 10px; color: #546d3c; }
  .maintenance-grid h3 { color: var(--ink); font-size: 24px; margin: 16px 0 22px; }
  .maintenance-grid p { margin-top: 17px; }
  .faq-section { border-top: 1px solid var(--line); }
  .faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
  .faq-grid > div:first-child > p:last-child { color: var(--muted); font-size: 15px; margin-top: 22px; max-width: 300px; }
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-item:first-child { border-top: 1px solid var(--line); }
  .faq-item summary { font-size: 15px; }
  .faq-item .disclosure-content { font-size: 13px; }
  .trust-section { background: var(--dark); color: #e9eee3; }
  .trust-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; }
  .trust-section .eyebrow { color: #b7cf83; }
  .trust-grid > div:last-child { color: #b8c5ae; font-size: 13px; }
  .source-disclosure { border-top: 1px solid #435038; margin-top: 24px; }
  .source-disclosure summary { font-size: 13px; color: #e2edda; }
  .source-disclosure .disclosure-content { color: #b8c5ae; font-size: 12px; }
  .source-links { padding-left: 18px; margin-bottom: 20px; }
  .source-links a { color: #d4e5b7; }
  .final-cta { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid #46513d; margin-top: 46px; padding-top: 32px; }
  .final-cta h3 { font-size: 32px; margin-top: 9px; }
  .site-footer { color: #e1ead7; background: var(--dark); border-top: 1px solid #36412e; padding: 25px 0; }
  .site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
  .site-footer p { font-size: 10px; color: #a4b599; }
  .site-footer > div > a:last-child { font-size: 11px; }
  .not-found { max-width: 700px; margin: 12vh auto; padding: 30px; }
  .not-found h1 { font-size: clamp(42px, 7vw, 70px); margin: 25px 0; }
  .not-found .button { margin-top: 30px; }
}

@layer responsive {
  @media (min-width: 901px) { .menu-toggle { display: none; } }
  @media (max-width: 1100px) {
    .header-inner, .container { padding-left: 28px; padding-right: 28px; }
    .hero-grid { gap: 35px; }
    #site-nav { gap: 18px; }
    .header-inner { gap: 20px; }
    .download-card { padding: 20px; }
    .card-top { flex-wrap: wrap; gap: 10px; }
    .overview-grid, .troubleshoot-grid, .faq-grid, .trust-grid { gap: 40px; }
    .requirements-grid, .maintenance-grid { gap: 26px; }
    .install-grid { grid-template-columns: 1fr; }
    .install-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 35px; }
    .install-heading { grid-column: 1 / -1; }
    .install-heading .tag { display: inline-block; margin: 0 0 0 8px; vertical-align: middle; }
    .install-card ol { margin-top: 0; }
    .install-card .expected { margin-top: 0; }
    .install-card .install-failure { grid-column: 2; }
    .install-card .code-box { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; }
    .install-card:nth-child(2) .expected { grid-column: 1 / -1; margin-top: 15px; }
  }
  @media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; position: relative; min-height: 72px; padding-top: 14px; padding-bottom: 14px; }
    .brand { font-size: 16px; }
    .menu-toggle { margin-left: auto; }
    .header-cta { display: none; }
    #site-nav { margin-left: 0; width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 16px 26px; padding: 14px 0 8px; }
    #site-nav a { min-height: 44px; }
    .is-enhanced #site-nav { display: none; }
    .is-enhanced #site-nav.is-open { display: flex; }
    .hero-grid { grid-template-columns: 1fr .75fr; gap: 25px; padding-top: 50px; padding-bottom: 45px; }
    .hero-copy h1 { font-size: 72px; }
    .hero-description { font-size: 14px; }
    .hero-lead { font-size: 23px; }
    .hero-downloads .button { min-width: 106px; padding: 12px 14px; gap: 10px; font-size: 13px; }
    .release-art { height: 185px; }
    .art-glyph { font-size: 120px; }
    .release-data { padding-left: 16px; padding-right: 16px; }
    .release-data dl > div { display: block; padding: 9px 0; }
    .release-data dd { text-align: left; margin-top: 3px; }
    .hero-bottom { gap: 18px; font-size: 9px; }
    .section { padding: 65px 0; }
    .download-grid { grid-template-columns: 1fr; }
    .download-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; padding: 24px; }
    .card-top { grid-column: 1 / -1; margin-bottom: 15px; }
    .download-card h3 { grid-column: 1; }
    .platform-requirement { grid-column: 1; min-height: unset; }
    .download-card .button { grid-column: 2; grid-row: 2 / span 2; margin: auto 0; }
    .download-meta { grid-column: 2; grid-row: 4; }
    .filename { grid-column: 1; grid-row: 4; border: 0; margin: 15px 0 0; padding: 0; }
    .hash-details { grid-column: 1 / -1; }
    .hash-details summary { width: 100%; }
    .download-footnote { gap: 25px; }
    .compat-controls { grid-template-columns: minmax(160px, 1fr) 135px 145px 50px; padding: 16px; gap: 10px; }
    .callout { flex-wrap: wrap; }
    .callout > div { flex: 1; }
    .callout a { margin-left: 45px; }
    .overview-grid, .troubleshoot-grid, .faq-grid, .trust-grid { grid-template-columns: 1fr; gap: 35px; }
    .faq-grid > div:first-child > p:last-child { max-width: unset; }
    .library-guide { gap: 25px; }
    .stage-guide > div { padding: 18px; }
    .stage-guide strong { font-size: 11px; }
    .stage-dot { margin-right: 5px; }
  }
  @media (max-width: 700px) {
    html { scroll-padding-top: 90px; }
    .container, .header-inner { padding-left: 22px; padding-right: 22px; }
    .hero-grid { grid-template-columns: 1fr; padding-top: 37px; padding-bottom: 38px; gap: 35px; }
    .hero-copy h1 { font-size: clamp(66px, 15vw, 88px); margin-top: 23px; margin-bottom: 22px; }
    .hero-copy > .eyebrow { font-size: 9px; letter-spacing: .04em; }
    .hero-lead { font-size: 23px; }
    .hero-description { max-width: 530px; }
    .hero-downloads { gap: 8px; }
    .hero-downloads .button { flex: 1; min-width: 90px; padding: 12px; }
    .hero-next { margin-top: 18px; }
    .release-panel { display: grid; grid-template-columns: .65fr 1fr; }
    .panel-top { grid-column: 1 / -1; padding: 11px 16px; }
    .release-art { height: auto; min-height: 225px; }
    .art-glyph { font-size: 95px; }
    .art-line { width: 105px; height: 100px; left: calc(50% - 55px); top: 65px; }
    .line-two { left: calc(50% - 47px); top: 73px; }
    .line-three { left: calc(50% - 39px); top: 81px; }
    .art-coordinate { font-size: 8px; right: 10px; }
    .release-data { border-top: 0; border-left: 1px solid #3c4832; padding: 18px 14px 10px; }
    .release-build { font-size: 10px; }
    .release-data .eyebrow { font-size: 8px; }
    .release-data dl { font-size: 10px; margin-top: 12px; }
    .release-data dl > div { padding: 7px 0; }
    .hero-bottom { gap: 12px 22px; padding-top: 16px; padding-bottom: 16px; }
    .hero-bottom a { margin-left: 0; }
    .section { padding: 50px 0; }
    .section-heading { display: block; margin-bottom: 28px; }
    .section-heading > p { width: 100%; max-width: 520px; margin-top: 20px; font-size: 14px; }
    h2 { font-size: 34px; }
    .eyebrow { font-size: 10px; }
    .download-card { display: block; padding: 22px; }
    .card-top { margin-bottom: 23px; }
    .download-card .button { margin-top: 23px; }
    .download-meta { margin-top: 15px; }
    .filename { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
    .download-footnote { grid-template-columns: 1fr; gap: 13px; font-size: 11px; }
    .overview-facts { grid-template-columns: 1fr 1fr; gap: 18px; }
    .overview-facts > div:last-child { grid-column: 1 / -1; }
    .stage-guide { grid-template-columns: 1fr 1fr; }
    .stage-guide > div { border-bottom: 1px solid var(--line); padding: 16px; }
    .stage-guide > div:nth-child(2) { border-right: 0; }
    .stage-guide > div:nth-child(3) { border-bottom: 0; }
    .stage-guide p { font-size: 11px; }
    .stage-guide strong { font-size: 11px; }
    .compat-controls { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
    .search-field { grid-column: 1 / -1; }
    .compat-controls input, .compat-controls select { font-size: 16px; }
    .hash-details summary { min-height: 44px; }
    .reset-button { grid-column: 1 / -1; padding: 5px; min-height: 34px; }
    .table-meta { display: block; font-size: 10px; }
    .table-meta > span:last-child { display: block; margin-top: 5px; }
    .callout { gap: 13px; padding: 18px; }
    .callout a { margin-left: 38px; }
    .requirements-grid, .maintenance-grid { grid-template-columns: 1fr; gap: 28px; }
    .requirements-grid p { font-size: 13px; }
    .install-card { display: block; padding-top: 20px; }
    .install-card .expected, .install-card:nth-child(2) .expected { margin-top: 22px; }
    .install-heading .tag { display: inline-block; margin-left: 8px; }
    .install-card .code-box { margin: 20px 0; }
    .library-guide { grid-template-columns: 1fr; margin-top: 35px; padding-top: 28px; gap: 22px; }
    .directory-example pre { padding: 15px 12px; font-size: 10px; }
    .platform-jumps { gap: 8px; }
    .platform-jumps a { flex: 1; font-size: 12px; padding: 10px; text-align: center; }
    .platform-jumps span { margin-left: 8px; }
    .faq-item summary, .trouble-list summary { font-size: 14px; }
    .final-cta { display: block; margin-top: 28px; }
    .final-cta h3 { font-size: 28px; }
    .final-cta .button { margin-top: 24px; width: 100%; justify-content: space-between; }
    .site-footer .container { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
    .site-footer p { order: 3; width: 100%; }
    .site-footer > div > a:last-child { margin-top: 5px; }
  }
  @media (max-width: 360px) {
    .hero-grid { padding-top: 32px; }
    .hero-copy h1 { margin-top: 22px; }
    .hero-downloads { margin-top: 24px; }
    .hero-downloads .button { min-width: 0; gap: 8px; padding: 12px 8px; font-size: 12px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
    .button:hover { transform: none; }
  }
  @media print {
    .site-header, .hero-downloads, .copy-button, .compat-controls, .site-footer, .final-cta { display: none !important; }
    body, .hero, .requirements-section, .trust-section { background: #fff; color: #000; }
    .section { padding: 25px 0; }
    .table-scroll { overflow: visible; }
    table { min-width: 0; }
    .hero-grid { padding-top: 20px; grid-template-columns: 1fr; }
    .release-panel { display: none; }
    .hero-copy h1 { font-size: 50px; }
  }
}

@layer components {
  h4 { margin: 0 0 12px; font-size: 17px; line-height: 1.4; letter-spacing: -.015em; }
  kbd { font: .85em var(--mono); border: 1px solid #bbc7b0; border-bottom-width: 2px; padding: 2px 5px; border-radius: 4px; background: #f6f8f0; color: #30412b; white-space: nowrap; }
  .hero-copy { max-width: 900px; margin-inline: auto; text-align: center; }
  .hero-download-note { font-size: 12px; }
  .hero-download-note > span { color: #91a087; font-size: 11px; }
  .hero-bottom span::before { content: "·"; }
  .workflow { margin: 45px 0 0; border-top: 1px solid #bdcbb2; padding-top: 22px; }
  .workflow figcaption { font: 10px/1.7 var(--mono); letter-spacing: .04em; color: #47623b; display: flex; justify-content: space-between; gap: 15px; }
  .workflow figcaption span { color: #65745e; letter-spacing: 0; }
  .workflow ol { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; gap: 28px; margin: 24px 0 0; }
  .workflow li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
  .workflow-number { color: #53713e; font: 12px var(--mono); padding-top: 5px; }
  .workflow strong { font-size: 15px; display: block; line-height: 1.4; }
  .workflow li div > span, .workflow code { color: #617258; font-size: 11px; display: block; margin-top: 9px; line-height: 1.6; }
  .features-section { background: #f5f4ee; }
  .feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 45px 65px; }
  .feature-grid article { border-top: 1px solid #bbc7b2; padding-top: 20px; }
  .feature-index { font: 10px var(--mono); color: #5c734a; letter-spacing: .04em; }
  .feature-grid h3 { font-size: 28px; margin: 20px 0 16px; max-width: 400px; }
  .feature-grid p { color: #596451; font-size: 16px; max-width: 480px; }
  .feature-grid .text-link { display: inline-block; margin-top: 22px; font-size: 13px; }
  .scenarios-section { border-top: 1px solid var(--line); background: #e9ede2; }
  .scenario-list article { display: grid; grid-template-columns: .45fr 1.4fr .6fr; gap: 30px; border-top: 1px solid #c2ccb9; padding: 26px 0; align-items: start; }
  .scenario-list article > .mono { font-size: 10px; color: #597249; padding-top: 5px; }
  .scenario-list h3 { font-size: 23px; margin-bottom: 14px; }
  .scenario-list p { font-size: 15px; color: #5a6752; }
  .scenario-list article > a { font-size: 13px; margin-top: 4px; }
  .release-snapshot { margin-bottom: 25px; font-size: 13px; color: #5b6f49; }
  .asset-version { font-size: 12px; color: #607254; margin-top: 18px; line-height: 1.6; }
  .requirements-panel { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
  .requirements-panel > h3 { font-size: 25px; margin-bottom: 25px; }
  .requirements-panel .requirements-grid { margin-bottom: 22px; }
  .requirements-panel .requirements-grid article { border: 0; padding-top: 0; color: #5c6954; font-size: 14px; }
  .requirements-panel h4 { color: var(--ink); }
  .platform-note { font-size: 13px; color: #617256; border-top: 1px solid var(--line); padding-top: 18px; }
  .help-section { background: #222d23; color: #eaf0e2; padding: 55px 0; }
  .help-section .eyebrow { color: var(--lime); }
  .help-section .section-heading > p { color: #bdc9b0; }
  .help-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; }
  .help-shortcuts a { border: 1px solid #566747; border-radius: 4px; padding: 9px 14px; font-size: 13px; text-decoration: none; }
  .help-shortcuts a:hover { border-color: var(--lime); }
  .content-search { margin-top: 32px; border-top: 1px solid #536347; padding-top: 25px; }
  .content-search label { font-size: 12px; color: #d9e5cc; display: block; margin-bottom: 10px; }
  .content-search-row { display: flex; gap: 10px; max-width: 760px; }
  .content-search input { background: #f5f7ef; color: var(--ink); border: 1px solid #82966b; border-radius: 4px; min-width: 0; flex: 1; padding: 12px 14px; }
  .content-search .reset-button { background: #d7f276; color: #223019; border: 0; padding: 9px 15px; }
  .content-search .reset-button:disabled { opacity: .5; }
  #content-search-status { font-size: 12px; color: #c5d5b5; margin-top: 12px; }
  .no-script-help { margin-top: 25px; color: #c5d5b5; font-size: 14px; }
  #content-results { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 35px; margin: 25px 0 0; }
  #content-results li { border-top: 1px solid #536347; padding-top: 17px; min-width: 0; }
  #content-results a { display: block; min-height: 44px; color: #d7f276; font-size: 15px; font-weight: 600; }
  #content-results p { color: #bdc9b0; font-size: 13px; margin-top: 9px; overflow-wrap: anywhere; }
  .install-card, .library-guide { font-size: 15px; }
  .install-card .expected p, .install-card .expected strong { font-size: 13px; }
  .configuration-section { border-top: 1px solid var(--line); background: #eef0e7; }
  .config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
  .config-grid article { min-width: 0; border-top: 1px solid #bdcbb2; padding-top: 25px; color: #5b6853; font-size: 15px; }
  .config-grid h3 { color: var(--ink); font-size: 27px; margin-bottom: 22px; }
  .config-grid p { margin-top: 18px; }
  .key-map { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
  .key-map > span { display: flex; align-items: center; gap: 8px; font-size: 12px; }
  .setting-note { border-top: 1px solid #bdcbb2; padding-top: 25px; margin-top: 25px; }
  .setting-note dt { color: #30412b; font-weight: 600; font-size: 14px; }
  .setting-note dd { font-size: 14px; margin: 5px 0 15px; }
  .symptom-links { display: grid; gap: 12px; font-size: 13px; }
  .report-help { display: inline-block; font-size: 12px; color: #476536; margin-top: 10px; }
  .trouble-list .disclosure-content { font-size: 15px; }
  .trouble-list h4 { color: #30412b; margin-top: 24px; }
  .trouble-list h4:first-child { margin-top: 0; }
  .trouble-list pre { font-size: 12px; }
  .trouble-list .code-box { margin: 20px 0; }
  .trouble-list .code-grid { grid-template-columns: 1fr; }
  .maintenance-grid article { font-size: 15px; }
  .faq-item .disclosure-content { font-size: 15px; }
  .trust-grid > div:last-child, .source-disclosure .disclosure-content { font-size: 14px; }
}

@layer responsive {
  @media (max-width: 900px) {
    .hero-grid { padding-top: 42px; padding-bottom: 40px; }
    .hero-copy { max-width: 680px; }
    .workflow ol { gap: 18px; }
    .scenario-list article { grid-template-columns: 110px 1fr; }
    .scenario-list article > a { grid-column: 2; }
    .config-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid { gap: 35px; }
  }
  @media (max-width: 650px) {
    .hero-grid { padding-top: 30px; padding-bottom: 30px; }
    .hero-copy h1 { font-size: 64px; margin: 16px 0 18px; }
    .hero-copy .hero-lead { font-size: 29px; }
    .hero-description { font-size: 15px; margin-top: 17px; }
    .hero-downloads { margin-top: 22px; gap: 8px; }
    .hero-downloads .button { min-width: 0; flex: 1; padding: 12px 8px; font-size: 12px; }
    .hero-download-note { font-size: 10px; }
    .hero-download-note > span { font-size: 10px; }
    .hero-next { margin-top: 18px; }
    .hero-bottom { padding-top: 15px; padding-bottom: 15px; gap: 12px 18px; }
    .hero-bottom a { width: 100%; margin: 0; }
    .workflow figcaption { display: block; }
    .workflow figcaption span { display: block; margin-top: 7px; }
    .workflow ol, .feature-grid, #content-results { grid-template-columns: 1fr; }
    .workflow ol { gap: 22px; }
    .feature-grid h3 { font-size: 26px; }
    .scenario-list article { grid-template-columns: 1fr; gap: 16px; }
    .scenario-list article > a { grid-column: auto; }
    .help-section { padding: 45px 0; }
    .help-shortcuts { gap: 8px; }
    .help-shortcuts a { padding: 8px 10px; font-size: 12px; }
    .requirements-panel .requirements-grid { grid-template-columns: 1fr; }
    .install-card { font-size: 15px; }
    .library-guide, .maintenance-grid article, .trouble-list .disclosure-content { font-size: 15px; }
    .content-search input { font-size: 16px; width: 100%; }
    .help-shortcuts a { min-height: 44px; display: inline-flex; align-items: center; }
    .symptom-links a { min-height: 44px; display: flex; align-items: center; }
    .copy-button { min-height: 44px; padding: 8px 12px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  html:not(.is-enhanced) .site-header { position: static; }
  html:not(.is-enhanced) { scroll-padding-top: 24px; }
}
