:root {
  color-scheme: dark;
  --bg: #0e1116;
  --panel: #151a22;
  --raised: #1b2330;
  --border: #29323f;
  --text: #edf1f8;
  --muted: #b7c3d4;
  --blue: #74a8ff;
  --blue-strong: #80b1ff;
  --warning: #f2c77e;
  --danger: #ffb0b8;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.65;
  --anchor-offset: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
main[id], main section[id], .guide-topic[id] { scroll-margin-top: var(--anchor-offset); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: #b5d0ff; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, pre:focus-visible {
  outline: 2px solid var(--blue-strong);
  outline-offset: 4px;
}
button, input, select { font: inherit; }
p, figure, dl { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
h1, h2 { letter-spacing: -.05em; }
h3 { font-size: 1.25rem; letter-spacing: -.022em; }
h4 { font-size: 1.08rem; }
p + p { margin-top: .8rem; }
code { font: .9em ui-monospace, Consolas, monospace; color: #c2d8ff; overflow-wrap: anywhere; }
.container { width: min(100% - 3rem, 85rem); margin-inline: auto; }

.skip-link { position: fixed; z-index: 10; left: 1rem; top: .75rem; transform: translateY(-200%); background: var(--panel); padding: .6rem 1rem; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 3; background: #10141a; border-bottom: 1px solid #242c38; }
.topbar { min-height: 4.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: .65rem; font-weight: 720; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 550; min-height: 2.65rem; display: flex; align-items: center; }
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--blue); }

.hero { display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: clamp(2rem, 6vw, 5.75rem); padding-block: clamp(3.4rem, 7vw, 6.1rem) 3rem; }
.release-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; color: #c6d9ff; background: #192437; border: 1px solid #304465; border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; font-weight: 650; margin-bottom: 1.1rem; }
.release-badge span + span { border-left: 1px solid #526889; padding-left: .65rem; }
h1 { font-size: clamp(2.95rem, 5.15vw, 5rem); font-weight: 760; line-height: .99; }
h1 span { color: var(--blue); }
.hero-description { color: var(--muted); max-width: 30rem; margin-block: 1.4rem 1.65rem; font-size: clamp(1.05rem, 1.75vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid #3a4860; border-radius: .6rem; background: var(--raised); color: var(--text); text-decoration: none; font-weight: 650; font-size: .92rem; cursor: pointer; }
.button:hover { background: #243149; color: var(--text); }
.button.primary { color: #071321; border-color: var(--blue-strong); background: var(--blue-strong); }
.button.primary:hover { background: #a3c7ff; }
.button.destructive { background: #f795a0; border-color: #f795a0; color: #211016; }
.button:disabled { cursor: not-allowed; color: #a8b2bf; background: #252d38; border-color: #353e4b; }
.hero-photo { border-radius: 1.05rem; }
.hero-photo img { display: block; inline-size: 100%; height: auto; }
.hero-photo img { border-radius: inherit; }
.hero-photo img, .product-image, .carousel-slide img {
  box-shadow: 0 16px 40px rgb(0 0 0 / .55), 0 0 24px rgb(100 145 210 / .12);
}

.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: .85rem; background: #121821; }
.spec-strip div { padding: 1.15rem 1.3rem; }
.spec-strip div + div { border-left: 1px solid var(--border); }
.spec-strip dt { color: #d8e7ff; font-size: 1.4rem; font-weight: 700; letter-spacing: -.035em; }
.spec-strip dd { margin: .03rem 0 0; font-size: .88rem; color: var(--muted); }
.site-section { margin-top: clamp(3.5rem, 7vw, 6rem); }
.section-head { margin-bottom: clamp(1.35rem, 3vw, 2rem); }
.section-head h2 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
.section-head h2 + p { margin-top: .65rem; max-width: 42rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.card { border: 1px solid var(--border); border-radius: .9rem; background: var(--panel); padding: clamp(1.2rem, 3vw, 2.25rem); min-width: 0; }
.card > p { color: var(--muted); }
.card > h3 + p, .card > h3 + ol { margin-top: .75rem; }
.edition-head, .installer-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; }
.edition-head + p, .installer-heading + p { margin-top: .85rem; max-width: 56ch; }
.chip { display: inline-block; color: #b8d2ff; background: #202f47; border: 1px solid #344c6d; border-radius: .42rem; padding: .16rem .48rem; font-size: .81rem; font-weight: 650; white-space: nowrap; }
.warning-chip { color: var(--warning); background: #34291d; border-color: #644927; }
.wiring { margin-top: 1rem; }
.wiring div { display: grid; grid-template-columns: minmax(6.5rem, .93fr) 1.2fr; gap: .7rem; border-top: 1px solid var(--border); padding: .55rem 0; }
.wiring dt { color: var(--muted); }
.wiring dd { margin: 0; color: var(--text); font-weight: 580; }
.edition-card { display: flex; flex-direction: column; gap: 1rem; }
.edition-card > p { margin: 0; }
.edition-card .edition-link { margin-top: auto; padding-top: .2rem; font-weight: 650; }
.guide-wiring .guide-topic + .guide-topic { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 2rem; }
.guide-topic h3 + p { margin-top: .65rem; }
.guide-topic p { color: var(--muted); }
.small-details { border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .9rem; }
.small-details summary { cursor: pointer; color: #c5d9fa; font-weight: 650; }
.small-details summary .chip { margin-left: .35rem; }
.small-details p { margin-top: .65rem; color: var(--muted); }
.product-image { display: block; width: 100%; height: auto; border-radius: .55rem; }
.carousel { margin: clamp(.75rem, 3vw, 2.4rem) 0; }
.carousel-stage { position: relative; height: clamp(17rem, 39vw, 33rem); touch-action: pan-y pinch-zoom; }
.carousel-slide { position: absolute; inset: 0 auto 0 50%; display: flex; align-items: center; justify-content: center; width: 43%; opacity: 0; transform: translateX(-50%) scale(.6); pointer-events: none; }
.carousel-slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: .6rem; }
.carousel-slide[data-position="center"] { z-index: 2; opacity: 1; transform: translateX(-50%) scale(1.15); }
.carousel-slide[data-position="previous"] { z-index: 1; opacity: .85; transform: translateX(-122%) scale(.72); }
.carousel-slide[data-position="next"] { z-index: 1; opacity: .85; transform: translateX(22%) scale(.72); }
.carousel-slide[data-position="before"] { transform: translateX(-125%) scale(.6); }
.carousel-slide[data-position="after"] { transform: translateX(25%) scale(.6); }
@media (prefers-reduced-motion: no-preference) {
  .carousel-slide { transition: transform .48s ease-in-out, opacity .48s ease-in-out; }
}
.carousel-arrow { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #94a9c1; }
.carousel-arrow:hover { background: transparent; color: #bdd9fa; }
.carousel-arrow:hover svg { filter: drop-shadow(0 0 5px #7cb7ff70); }
@media (prefers-reduced-motion: no-preference) {
  .carousel-arrow { transition: color 200ms ease; }
  .carousel-arrow svg { transition: filter 200ms ease; }
}
.carousel-arrow[data-previous] { left: 0; }
.carousel-arrow[data-next] { right: 0; }

.installer { border-color: #3c577c; }
.installer h3 { font-size: 1.45rem; }
.body-muted { color: var(--muted); }
fieldset { min-width: 0; border: 0; margin: 1.1rem 0 .8rem; padding: 0; }
legend { font-weight: 650; margin-bottom: .45rem; }
/* Reserve the three profile slots before metadata arrives so deep links stay in place. */
.profile-grid { min-height: 3.9rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.profile { display: flex; align-items: flex-start; gap: .6rem; border: 1px solid var(--border); background: #111720; border-radius: .6rem; padding: .65rem .85rem; cursor: pointer; min-height: 3.9rem; }
.profile:has(input:checked) { border-color: var(--blue); background: #18263b; }
.profile:has(input:disabled) { cursor: default; opacity: .78; }
input[type=radio], input[type=checkbox] { accent-color: var(--blue); width: 1.05rem; height: 1.05rem; margin: .23rem 0 0; flex: none; }
.profile strong, .profile small { display: block; }
.profile small { color: var(--muted); font-size: .81rem; }
.profile small.experimental { color: var(--warning); }
.profile-detail { border-top: 1px solid var(--border); padding-top: .75rem; margin-bottom: 1rem; }
.selected-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem .9rem; }
.selected-specs dt { color: var(--muted); font-size: .84rem; }
.selected-specs dd { margin: 0; font-weight: 650; }
.message { border: 1px solid; border-left-width: 3px; border-radius: .55rem; padding: .75rem .9rem; }
.message p { margin-top: .2rem; }
.message.warning { background: #281f17; border-color: #785632; color: #f9d69b; }
.message.warning a { color: inherit; }
.message.danger { background: #311f27; border-color: #8a5260; color: var(--danger); margin-top: .7rem; }
.install-actions { margin-top: .9rem; }
#availability { min-height: 1lh; margin-top: .65rem; font-size: .88rem; }
#availability:empty, #install-status:empty { display: none; }
.status-line { min-height: 1.55rem; margin-top: .55rem; }
.status-line[data-tone="error"] { color: var(--danger); }
.status-line[data-tone="success"] { color: #a6dfba; }
progress { accent-color: var(--blue); width: 100%; height: .7rem; margin-block: .35rem; }
.confirmation { border: 1px solid #82525d; border-radius: .6rem; margin-top: .8rem; padding: .9rem; background: #241a22; }
.confirmation p, .check { margin-top: .45rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; padding-bottom: .8rem; font-weight: 540; }
.update-card { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.update-card p { color: var(--muted); }
.first-connection ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.first-connection li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; align-items: start; gap: .15rem .75rem; }
.step-number { grid-row: span 2; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid #344c6d; border-radius: 50%; color: #b8d2ff; background: #202f47; font-size: 1.2rem; font-weight: 700; }
.first-connection li strong { padding-top: .13rem; }
.first-connection li p { color: var(--muted); }
.guide-list article + article { border-top: 1px solid var(--border); margin-top: 1.2rem; padding-top: 1.25rem; }
.guide-list article p { color: var(--muted); margin-block: .45rem; }
.guide-list article > .download-links { margin-top: .55rem; }
.console-card .actions { margin-top: .8rem; }
.console-card .console-bench-option { color: var(--muted); padding-bottom: 0; }
.command-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .7rem; }
.command-list code { border: 1px solid var(--border); border-radius: .35rem; padding: .16rem .4rem; }
.terminal { border: 1px solid var(--border); border-radius: .6rem; margin-top: .45rem; overflow: hidden; background: #0d121a; }
.terminal pre { scroll-behavior: auto; height: 12rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: .75rem; color: #d3e4ff; font: .86rem/1.45 ui-monospace, Consolas, monospace; }
.terminal form { display: flex; gap: .5rem; border-top: 1px solid var(--border); padding: .55rem; }
#console-close[hidden] { display: inline-flex !important; visibility: hidden; }
.terminal input:disabled { opacity: .65; }
.terminal input { flex: 1; min-width: 0; color: var(--text); min-height: 2.65rem; padding: .4rem .65rem; border: 1px solid var(--border); background: var(--panel); border-radius: .4rem; }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.downloads-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.downloads-grid h3 { margin: 0 0 .2rem; }
.downloads-grid .download-meta { margin-bottom: .7rem; font-size: .88rem; color: var(--muted); }
.downloads-grid .download-meta.experimental { color: var(--warning); }
.download-row { border-top: 1px solid var(--border); padding-block: .55rem; display: flex; justify-content: space-between; align-items: baseline; gap: .55rem; }
.download-row span { color: var(--muted); white-space: nowrap; font-size: .88rem; }
.downloads-grid pre { font-size: .76rem; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--muted); }
.download-links { display: flex; flex-wrap: wrap; gap: .45rem 1.35rem; margin-top: 1rem; }
.site-footer { margin-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--border); background: #10141a; }
.site-footer .container, .site-footer .container > div { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; }
.site-footer .container { padding-block: 1.25rem; color: var(--muted); }

@media (max-width: 61rem) {
  .hero { gap: 1.6rem; }
  nav { column-gap: .75rem; }
  .downloads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  :root { --anchor-offset: 8rem; }
  .container { width: calc(100% - 2rem); }
  .topbar { align-items: flex-start; flex-direction: column; gap: .15rem; padding-top: .65rem; }
  .brand img { width: 1.9rem; height: 1.9rem; }
  nav { column-gap: .85rem; row-gap: 0; }
  nav a { min-height: 2.05rem; font-size: .875rem; }
  .hero { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 2.3rem 1.05rem; }
  .hero-description { margin-block: .95rem 1.1rem; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip div { padding: .65rem .75rem; }
  .spec-strip div:nth-child(3) { border-left: 0; }
  .spec-strip div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .spec-strip dt { font-size: 1.17rem; }
  .edition-grid, .profile-grid, .downloads-grid, .first-connection ol { grid-template-columns: 1fr; }
  .profile-grid { min-height: 13.3rem; }
  .wiring div { grid-template-columns: 1fr; gap: .2rem; }
  #availability { min-height: 2lh; }
  .carousel-stage { height: clamp(15rem, 73vw, 25rem); }
  .carousel-slide { width: calc(100% - 7.5rem); }
  .carousel-slide[data-position="previous"], .carousel-slide[data-position="next"], .carousel-slide[data-position="before"], .carousel-slide[data-position="after"] { opacity: 0; transform: translateX(-50%) scale(.84); }
  #console-status { min-height: 2lh; }
  .selected-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 24rem) {
  .container { width: calc(100% - 1.5rem); }
  h1 { font-size: 2.48rem; }
}

.manual { max-width: 60rem; }
.manual-header { margin-top: 3.5rem; }
.manual-header h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.manual-header p { color: var(--muted); margin-top: .8rem; max-width: 42rem; }
.manual .site-section { margin-top: 2.5rem; }
.manual .section-head h2 { font-size: clamp(1.85rem, 4.5vw, 2.7rem); }
.manual .commands { padding: 1rem; background: #0d121a; border-radius: .5rem; overflow-x: auto; }
.manual .commands code { overflow-wrap: normal; }
.manual .message, .manual .small-details { margin-top: 1rem; }
