/* ── reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #1e1e1e;
  --bg2:       #252526;
  --bg3:       #2d2d2d;
  --border:    #3c3c3c;
  --text:      #cccccc;
  --text-dim:  #888888;
  --gold:      #ffd700;
  --gold-h:    #ffe44d;
  --blue:      #4fc3f7;
  --green:     #2ea043;
  --green-h:   #3fb950;
  --danger:    #a1260d;
  --radius:    6px;
  --max:       1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-h); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

img { max-width: 100%; display: block; }

/* ── layout helpers ───────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--bg2); }

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; color: #e0e0e0; }
p  { margin-bottom: 1rem; color: var(--text); }

/* ── nav ──────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #141414ee;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #e0e0e0;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 4px; }
.nav-menu { margin-left: auto; }
.nav-menu > summary { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, .75vw, .75rem);
  list-style: none;
  white-space: nowrap;
}
.nav-links a { display: block; color: var(--text-dim); font-size: .78rem; transition: color .15s; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }

@media (max-width: 1100px) {
  .nav-menu > summary {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: .35rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    list-style: none;
    white-space: nowrap;
  }
  .nav-menu > summary::-webkit-details-marker { display: none; }
  .nav-menu > summary::after {
    width: .45rem;
    height: .45rem;
    margin-left: .6rem;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    content: "";
    transform: translateY(-.12rem) rotate(45deg);
  }
  .nav-menu[open] > summary::after { transform: translateY(.12rem) rotate(225deg); }
  .nav-menu[open] > .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: .2rem .75rem;
    padding: .65rem;
    border: 1px solid var(--border);
    border-top: 0;
    background: #141414;
    box-shadow: 0 10px 24px #0008;
  }
  .nav-links a { padding: .45rem .5rem; font-size: .88rem; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */
#hero {
  padding: 5rem 0 4rem;
  background: var(--bg);
  text-align: center;
}
.hero-banner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius);
}
#hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: .75rem;
}
#hero .tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.btn-primary   { background: var(--gold);  color: #111; }
.btn-primary:hover { background: var(--gold-h); color: #111; text-decoration: none; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: #e0e0e0; text-decoration: none; }

.version-badge {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: var(--text-dim);
}
.version-badge span { color: var(--gold); font-weight: 600; }

/* ── modes grid ───────────────────────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.mode-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
/* ── features list ────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.feature-item .dl-icon { margin-bottom: .5rem; }

/* ── get started ──────────────────────────────────────────────────────── */
.get-started-steps {
  list-style: none;
  counter-reset: get-started-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.get-started-steps > li {
  counter-increment: get-started-step;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.get-started-steps > li::before {
  content: counter(get-started-step, decimal-leading-zero);
  display: block;
  margin-bottom: .45rem;
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .12em;
}
.get-started-steps h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.get-started-steps p { margin: 0; color: var(--text-dim); font-size: .92rem; }
.get-started-steps strong { color: var(--text); }
.get-started-next {
  max-width: 860px;
  margin: 1.5rem 0 0;
  color: var(--text-dim);
}
kbd {
  padding: .08rem .35rem;
  border: 1px solid #555;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #171717;
  color: #eee;
  font: inherit;
  font-size: .85em;
}

/* ── install ──────────────────────────────────────────────────────────── */
.install-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  padding: .4rem 1rem;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab-btn.active, .tab-btn:hover { background: var(--gold); color: #111; border-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

pre {
  max-width: 100%;
  min-width: 0;
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
code { font-family: "Fira Code", "Cascadia Code", Consolas, monospace; color: #ce9178; }
pre code { color: #d4d4d4; }
pre .comment { color: #6a9955; }

/* ── api docs ─────────────────────────────────────────────────────────── */
.api-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.api-block .method {
  display: inline-block;
  background: var(--green);
  color: #111;
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 3px;
  margin-right: .5rem;
  font-family: monospace;
}
.api-block .endpoint {
  font-family: monospace;
  font-size: .95rem;
  color: var(--blue);
}
.api-block p { margin-top: .75rem; margin-bottom: .5rem; }

/* ── screenshots & diagrams ─────────────────────────────────────────── */
.mode-card-shot {
  display: block;
  width: 100%;
  margin: .75rem 0;
  border-radius: 4px;
  border: 1px solid var(--border);
  opacity: .85;
  transition: opacity .2s;
}
.mode-card:hover .mode-card-shot { opacity: 1; }

/* zoom cursor for clickable screenshots and diagrams */
.diagram-item img[data-gallery],
.mode-card img[data-gallery] {
  cursor: zoom-in;
}
.mode-card img[data-gallery]:focus-visible,
.diagram-item img[data-gallery]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── lightbox ─────────────────────────────────────────────────────────── */
#lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000c;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  touch-action: pan-y;
  overscroll-behavior: contain;
}
#lb.open { display: flex; }
#lb-inner {
  position: relative;
  width: 100%;
  max-width: min(92vw, 1200px);
  height: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 2.5rem 0 1rem;
  touch-action: pan-y;
}
#lb-img {
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  flex: 0 1 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 48px #000a;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}
#lb-caption {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.5;
  text-align: center;
  max-width: min(92vw, 1100px);
  max-height: 32vh;
  overflow-y: auto;
  touch-action: pan-y;
  margin: 0;
}
#lb-caption strong {
  display: block;
  color: #eee;
  font-size: .98rem;
  margin-bottom: .2rem;
}
#lb-close, #lb-prev, #lb-next {
  position: fixed;
  background: #1e1e1ecc;
  border: 1px solid var(--border);
  color: #e0e0e0;
  cursor: pointer;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
#lb-close:hover, #lb-prev:hover, #lb-next:hover {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}
#lb-close { top: 1rem; right: 1rem; font-size: 1.6rem; }
#lb-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
#lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }
#lb-prev[hidden], #lb-next[hidden] { display: none; }

/* ── venue and equipment reference section ───────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.venue-item {
  padding: 1.25rem 1.4rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
}
.venue-index {
  display: block;
  margin-bottom: .65rem;
  color: var(--gold);
  font: 600 .72rem/1.4 "Fira Code", Consolas, monospace;
  letter-spacing: .06em;
}
.venue-item h3 { margin-bottom: .6rem; }
.venue-item p { margin: 0; color: var(--text-dim); font-size: .92rem; }
.venue-profile-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .85fr);
  align-items: center;
  gap: 2rem;
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: #171717;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.venue-profile-band h3 { font-size: 1.25rem; }
.venue-profile-band p { margin: 0; }
.venue-limit {
  padding-left: 1.25rem;
  border-left: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .9rem;
}
.venue-limit strong { color: #e0e0e0; }

/* technical diagrams row */
.diagram-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.diagram-item { text-align: center; }
.diagram-item img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #111;
}
.diagram-item p {
  font-size: .78rem;
  color: var(--text-dim);
  margin-top: .35rem;
  margin-bottom: 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .diagram-row   { grid-template-columns: 1fr 1fr; }
  .venue-profile-band { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  .venue-limit { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 1rem; }
}

/* ── user guide ──────────────────────────────────────────────────────── */
#user-guide { scroll-margin-top: 70px; }
.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.guide-content { flex: 1; min-width: 0; }
.guide-card .guide-details { display: block; width: 100%; height: 4.5rem; border: 0; margin-bottom: .5rem; }
.guide-preview { display: block; flex: 0 0 165px; width: 165px; height: 235px; border: 0; }
@media (max-width: 560px) {
  .guide-card { flex-wrap: wrap; }
  .guide-content { flex-basis: 100%; }
}

/* ── downloads ───────────────────────────────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dl-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.dl-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
.dl-card h3 { margin-bottom: 0; }
.dl-card p { margin-bottom: 0; flex: 1; }
.dl-card .dl-meta { font-size: .8rem; color: var(--text-dim); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.log-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.25rem; }

/* ── legal ─────────────────────────────────────────────────────────── */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: .5rem;
}
.legal-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.legal-block-source { grid-column: 1 / -1; }
.legal-block h3 { color: var(--text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.legal-block p  { font-size: .88rem; color: var(--text-dim); margin-bottom: 0; line-height: 1.7; }
.legal-block strong { color: #e0e0e0; }

/* ── footer ───────────────────────────────────────────────────────────── */
footer {
  background: #141414;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: .88rem;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--gold); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.footer-logo { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.footer-logo img { width: 22px; height: 22px; border-radius: 3px; opacity: .7; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 2.5rem 0; }
  .container { width: 100%; min-width: 0; }
  .hero-banner { height: auto; }
  pre { overscroll-behavior-x: contain; }
}

/* ── release library ──────────────────────────────────────────────────── */
.release-library-intro {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--text-dim);
}
.release-kicker {
  margin-bottom: .35rem;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.release-meta { color: var(--text-dim); font-size: .88rem; margin-bottom: .8rem; }
.release-library-section, .release-detail-section { padding-top: 2.75rem; }
.release-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
.release-detail-head h1 { color: #eee; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
.release-detail-head p { color: var(--text-dim); }
.release-detail-hero {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111;
}
.release-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: .85rem;
  margin: 1.25rem 0 2rem;
}
.release-download {
  padding: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.release-download h3 { margin-bottom: .35rem; }
.release-download p { color: var(--text-dim); font-size: .85rem; margin-bottom: .8rem; }
.release-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}
.release-gallery figure {
  min-width: 0;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.release-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #111; }
.release-gallery figcaption { padding: .65rem .8rem; color: var(--text-dim); font-size: .85rem; }
.release-backlink { margin: 0 0 1.5rem; }
.release-disclaimer {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--bg2);
  color: var(--text-dim);
}
@media (max-width: 700px) {
  .release-detail-head { grid-template-columns: 1fr; }
  .release-detail-hero { max-height: 300px; }
}
.release-library-section h1 {
  color: #eee;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.release-current-badge {
  display: inline-block;
  padding: .2rem .48rem;
  border: 1px solid #8a7620;
  border-radius: 999px;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.release-detail-head .release-current-badge { margin: 0 0 .75rem; }
.release-feature-list { padding-left: 1.25rem; max-width: 850px; }
.release-feature-list li { padding: .3rem 0; }
.release-gallery-title { margin-top: 2.5rem; }
.release-library-links { margin-top: 1.5rem; }

/* ── release archive tables and notes ────────────────────────────────── */
.release-library-intro { max-width: 760px; margin-bottom: 1.5rem; color: var(--text-dim); }
.release-library-section, .release-detail-section { padding-top: 2.75rem; }
.release-library-section h1 {
  color: #eee;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.release-table-section { margin: 2.2rem 0 2.8rem; }
.release-table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}
.release-table-heading h2 { margin-bottom: .8rem; }
.release-table-heading > p { max-width: 430px; margin-bottom: .85rem; color: var(--text-dim); font-size: .9rem; }
.release-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--border) #171717;
  border: 1px solid var(--border);
  background: #181818;
}
.release-table-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.release-table { width: 100%; min-width: 800px; border-collapse: collapse; table-layout: auto; }
.release-table caption { padding: .5rem .85rem; text-align: left; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.release-table th, .release-table td {
  padding: .8rem .85rem;
  border-bottom: 1px solid #353535;
  text-align: left;
  vertical-align: top;
}
.release-table thead th {
  background: #292929;
  color: #eee;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.release-table tbody tr:last-child th, .release-table tbody tr:last-child td { border-bottom: 0; }
.release-table tbody tr:hover { background: #242424; }
.release-table th[scope="row"] { min-width: 150px; color: #eee; font-weight: 600; }
.release-build { display: block; margin-top: .2rem; color: var(--text-dim); font-size: .82rem; font-weight: 400; }
.release-current-badge {
  display: inline-block;
  margin-top: .4rem;
  padding: .12rem .45rem;
  border: 1px solid #8a7620;
  border-radius: 3px;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.release-unmaintained-badge { border-color: var(--border); color: var(--text-dim); }
.release-download-list { display: grid; gap: .5rem; min-width: 180px; }
.release-patch { display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: baseline; }
.release-file { display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: baseline; }
.release-file-size { color: var(--text-dim); font-size: .82rem; white-space: nowrap; }
.release-unavailable { color: var(--text-dim); font-size: .88rem; }
.release-detail-section .release-patch-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}
.release-detail-section .release-patch-list > li { overflow-wrap: anywhere; }
.release-detail-section .release-patch-list > li + li { margin-top: 1.5rem; }
.release-detail-section .release-patch-list > li > ul {
  margin-top: .45rem;
  padding-left: 1.25rem;
}
.release-detail-section .release-patch-list > li > ul > li + li { margin-top: .5rem; }
.release-detail-section .release-patch-list + h3 { margin-top: 1.875rem; }
.release-detail-section .release-original-files {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg2);
}
.release-original-files > summary { cursor: pointer; font-weight: 600; }
.release-original-files > p { margin-top: 1rem; }
.release-library-links { margin-top: 1.5rem; }
.release-disclaimer {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--bg2);
  color: var(--text-dim);
}
.release-meta { color: var(--text-dim); font-size: .9rem; margin-bottom: .8rem; }
.release-detail-head .release-current-badge { margin: 0 0 .75rem; }
.release-download p { color: var(--text-dim); font-size: .85rem; margin-bottom: .55rem; }
.release-how-to {
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--bg2);
}
.release-how-to h2 { margin-bottom: .9rem; }
.release-how-to ol { padding-left: 1.25rem; }
.release-how-to li { padding: .3rem 0 .3rem .2rem; }
.release-how-to code { white-space: normal; overflow-wrap: anywhere; }
.release-how-to kbd {
  padding: .08rem .35rem;
  border: 1px solid #555;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #171717;
  color: #eee;
  font: inherit;
  font-size: .85em;
}
.release-detail-section .release-notes-group,
.release-detail-section .web-history-entry {
  max-width: 900px;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg2);
}
.release-library-section .release-table-section { padding: 0; background: transparent; }
.release-library-section .release-latest {
  margin: 2rem 0 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  background: var(--bg2);
}
.release-latest > p:not(.release-kicker) { max-width: 850px; }
.release-latest .release-downloads { margin-bottom: 0; }
.release-download { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.release-download .btn { margin-top: auto; max-width: 100%; white-space: normal; }
.release-history-section h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.1; }
.version-history-entry {
  max-width: 950px;
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: var(--bg2);
  scroll-margin-top: 6rem;
  overflow-wrap: anywhere;
}
.version-history-entry:target { border-color: var(--gold); }
.version-history-entry > h2 { margin-bottom: .35rem; }
.version-history-entry > h3 { margin: 1.25rem 0 .75rem; }
.version-history-entry > ul { padding-left: 1.25rem; }
.version-history-entry > ul > li + li { margin-top: .65rem; }
.version-history-entry .release-notes-group,
.version-history-entry .web-history-entry { padding: 1rem 0 0; background: transparent; }
.version-history-entry .release-library-intro { margin-bottom: .75rem; }
.version-history-entry > p:last-child { margin-bottom: 0; }
.release-history-section a:focus-visible,
.release-library-section a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.release-detail-section .release-how-to { background: var(--bg2); }
.release-notes-group h3, .web-history-entry h3 { padding-bottom: .45rem; border-bottom: 1px solid var(--border); }
.release-notes-group ul, .web-history-entry ul { padding-left: 1.25rem; }
.release-notes-group li, .web-history-entry li { margin: .45rem 0; }
.web-history-entry h4 { margin: 1rem 0 .5rem; color: #e0e0e0; }
.web-history-entry code { overflow-wrap: anywhere; }
.release-detail-section .release-walkthrough {
  margin: 2rem 0 3rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  background: transparent;
}
.release-walkthrough > p:not(.release-kicker) { max-width: 800px; color: var(--text-dim); }
.walkthrough-steps { list-style: none; counter-reset: walkthrough; padding: 0; margin: 1.5rem 0 0; }
.walkthrough-steps > li {
  counter-increment: walkthrough;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.walkthrough-copy h3::before {
  content: counter(walkthrough, decimal-leading-zero);
  display: block;
  margin-bottom: .45rem;
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: .12em;
}
.walkthrough-copy p { margin: .65rem 0; }
.walkthrough-tip { color: var(--text-dim); }
.walkthrough-tip strong { color: var(--gold); }
.walkthrough-steps figure { margin: 0; min-width: 0; }
.walkthrough-steps img { display: block; width: 100%; height: auto; border: 1px solid var(--border); }
.walkthrough-steps figcaption { margin-top: .5rem; color: var(--text-dim); font-size: .85rem; }
.release-walkthrough kbd {
  padding: .08rem .35rem;
  border: 1px solid #555;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #171717;
  color: #eee;
  font: inherit;
  font-size: .85em;
}
@media (max-width: 700px) {
  .release-detail-head { grid-template-columns: 1fr; }
  .release-detail-hero { max-height: 300px; }
  .release-table-heading { display: block; }
  .release-table-heading > p { margin-bottom: .7rem; }
  .release-detail-section .release-patch-list,
  .release-detail-section .release-patch-list > li > ul { padding-left: 1rem; }
  .walkthrough-steps > li { grid-template-columns: minmax(0, 1fr); }
  .release-detail-section .release-notes-group,
  .release-detail-section .web-history-entry { padding: .9rem 1rem; }
  .release-library-section .release-latest { padding: 1.1rem; }
  .version-history-entry { padding: 1.1rem; margin: 1.5rem 0; }
  .release-table { min-width: 0; }
  .release-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .release-table, .release-table tbody, .release-table tr,
  .release-table th[scope="row"], .release-table td { display: block; width: 100%; }
  .release-table tbody tr + tr { border-top: 2px solid var(--border); }
  .release-table th[scope="row"] { padding: 1rem 1rem .5rem; border-bottom: 0; }
  .release-table td { padding: .5rem 1rem; border-bottom: 0; overflow-wrap: anywhere; }
  .release-table td:last-child { padding-bottom: 1rem; }
  .release-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .35rem;
    color: #eee;
    font-size: .78rem;
    font-weight: 600;
  }
  .release-download-list { min-width: 0; gap: .55rem; }
}
