:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --panel-muted: #f3f4f6;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --accent: #ea580c;
  --accent-strong: #c2410c;
  --accent-soft: #fff7ed;
  --note-soft: #eff6ff;
  --tip-soft: #ecfdf5;
  --warning-soft: #fff7ed;
  --important-soft: #fef2f2;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 40px rgba(15, 23, 42, 0.05);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

body.sidebar-open,
body.search-open {
  overflow: hidden;
}

body.search-open {
  padding-right: var(--scrollbar-width, 0);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.28);
  outline-offset: 3px;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.6rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-faint);
  font-size: 0.72rem;
  white-space: nowrap;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header-inner,
.docs-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 18px;
}

.site-header-start,
.site-header-actions,
.site-brand {
  display: flex;
  align-items: center;
}

.site-header-start,
.site-header-actions {
  gap: 14px;
}

.site-brand {
  gap: 12px;
  color: var(--ink);
}

.site-brand:hover {
  color: var(--ink);
}

.site-brand-logo {
  width: 116px;
  height: auto;
}

.site-brand-copy {
  display: grid;
  gap: 2px;
}

.site-brand-copy strong {
  font-size: 1rem;
  line-height: 1;
}

.site-brand-copy span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-toggle,
.search-trigger,
.header-link,
.sidebar-utility,
.doc-badge,
.search-close,
.code-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
}

.menu-toggle,
.search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle-bar {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.search-trigger,
.header-link,
.sidebar-utility,
.doc-badge,
.code-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.search-trigger,
.header-link {
  text-decoration: none;
}

.search-trigger {
  cursor: pointer;
}

.search-trigger:hover,
.header-link:hover,
.sidebar-utility:hover,
.doc-badge-link:hover,
.search-close:hover,
.code-copy:hover {
  border-color: rgba(234, 88, 12, 0.3);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.docs-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 248px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.sidebar-inner {
  height: 100%;
  overflow-y: auto;
  padding: 24px 16px 32px;
}

.sidebar-overview {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.sidebar-kicker,
.doc-kicker,
.page-rail-title,
.search-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-copy,
.doc-lead,
.doc-footer p,
.search-foot,
.search-result-summary,
.search-result-meta,
.page-rail-empty,
.prose p,
.prose li,
.prose td,
.prose th,
.prose blockquote {
  color: var(--ink-soft);
}

.sidebar-copy {
  margin: 0 0 16px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.sidebar-utility {
  width: 100%;
  justify-content: center;
  font-weight: 600;
}

.docs-version {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.sidebar-section + .sidebar-section {
  margin-top: 6px;
}

.sidebar-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 10px 10px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.sidebar-section-toggle:hover {
  background: var(--panel-muted);
}

.sidebar-section-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.sidebar-section-chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.sidebar-section-toggle[aria-expanded="true"] .sidebar-section-chevron {
  transform: rotate(45deg);
}

.sidebar-section-panel {
  padding: 0 0 10px 14px;
}

.nav-list,
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li + li,
.toc-list li + li {
  margin-top: 4px;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-link:hover,
.sidebar-link.current {
  color: var(--accent-strong);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.docs-main {
  min-width: 0;
  padding: 40px 56px 64px;
}

.doc-header {
  margin-bottom: 34px;
}

.doc-header h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.doc-lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

.doc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.doc-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
}

.doc-action:hover {
  border-color: rgba(234, 88, 12, 0.35);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.doc-action-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.doc-action-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.doc-badge {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.doc-badge:first-child {
  border-color: rgba(234, 88, 12, 0.22);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.doc-content {
  min-width: 0;
}

.doc-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.doc-footer p {
  margin: 0;
  line-height: 1.7;
}

.page-rail {
  position: sticky;
  top: 81px;
  max-height: calc(100vh - 100px);
  padding: 40px 0 48px 28px;
}

.page-rail-inner {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.page-rail-title {
  margin-bottom: 16px;
}

.page-rail-empty {
  margin: 0;
  line-height: 1.5;
  font-size: 0.92rem;
}

.toc-link {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  color: var(--ink-faint);
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color 160ms ease, border-color 160ms ease;
}

.toc-link:hover,
.toc-link.is-active {
  color: var(--accent-strong);
  border-left-color: var(--accent);
}

.toc-link-sub {
  padding-left: 22px;
}

.prose {
  color: var(--ink);
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose pre,
.prose blockquote,
.prose .callout {
  margin: 0 0 22px;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin: 40px 0 14px;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  scroll-margin-top: 92px;
}

.prose h2 {
  font-size: 1.9rem;
}

.prose h3 {
  font-size: 1.35rem;
}

.prose h4 {
  font-size: 1.1rem;
}

.prose p,
.prose li,
.prose td,
.prose th,
.prose blockquote {
  line-height: 1.75;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  text-underline-offset: 0.15em;
}

.prose img {
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}

.prose thead {
  background: var(--panel-muted);
}

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

.prose tr:last-child td {
  border-bottom: 0;
}

.prose pre {
  position: relative;
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #111827;
  color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.prose pre code {
  color: inherit;
  font-size: 0.92rem;
}

.prose :not(pre) > code {
  padding: 0.18em 0.42em;
  border-radius: 6px;
  background: #eef2f7;
  color: #1f2937;
}

.code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.prose blockquote {
  margin-left: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--line-strong);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--panel);
}

.callout {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.callout-title {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-note {
  border-color: #bfdbfe;
  background: var(--note-soft);
}

.callout-note .callout-title {
  color: #1d4ed8;
}

.callout-tip {
  border-color: #86efac;
  background: var(--tip-soft);
}

.callout-tip .callout-title {
  color: #15803d;
}

.callout-warning {
  border-color: #fdba74;
  background: var(--warning-soft);
}

.callout-warning .callout-title {
  color: var(--accent-strong);
}

.callout-important {
  border-color: #fca5a5;
  background: var(--important-soft);
}

.callout-important .callout-title {
  color: #b91c1c;
}

.sidebar-backdrop,
.search-modal[hidden] {
  display: none;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.search-scrim {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.52);
  cursor: default;
}

.search-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.18);
}

.search-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.search-head h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.1;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-muted);
}

.search-input-icon {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.search-icon-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-results {
  display: grid;
  gap: 10px;
  min-height: 120px;
  max-height: 420px;
  overflow-y: auto;
}

.search-empty {
  padding: 18px 4px;
  color: var(--ink-soft);
}

.search-result {
  display: block;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--panel);
}

.search-result:hover,
.search-result.is-active,
.search-result:focus-visible {
  border-color: rgba(234, 88, 12, 0.3);
  background: var(--accent-soft);
}

.search-result-title {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.search-result-summary,
.search-result-meta {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.search-result-meta {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

/* Q-edition onboarding */
.page-q-edition .doc-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 -28px 38px;
  padding: 48px 42px 52px;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(115deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(234, 88, 12, 0.08) 44px 45px);
}

.page-q-edition .doc-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -72px;
  bottom: -116px;
  width: 320px;
  height: 320px;
  border: 44px solid rgba(234, 88, 12, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(234, 88, 12, 0.04);
}

.page-q-edition .doc-header h1 {
  max-width: 18ch;
  animation: q-edition-rise 420ms ease-out both;
}

.page-q-edition .doc-lead {
  max-width: 67ch;
  animation: q-edition-rise 420ms 80ms ease-out both;
}

.page-q-edition .prose > table:first-of-type {
  table-layout: fixed;
  margin: 10px 0 28px;
}

.page-q-edition .prose > table:first-of-type th,
.page-q-edition .prose > table:first-of-type td {
  padding: 16px 18px;
  line-height: 1.5;
}

.page-q-edition .prose > table:first-of-type th {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.page-q-edition .prose > table:first-of-type th:nth-child(1) {
  width: 27%;
}

.page-q-edition .prose > table:first-of-type th:nth-child(2) {
  width: 18%;
}

.page-q-edition .prose > table:first-of-type th:nth-child(3) {
  width: 55%;
}

.page-q-edition .prose > table:first-of-type td:first-child {
  color: var(--ink);
  font-weight: 650;
}

.page-q-edition .prose > table:first-of-type td:nth-child(2),
.page-q-edition .prose > table:first-of-type code {
  white-space: nowrap;
}

@media (min-width: 1241px) {
  .page-q-edition .docs-shell {
    grid-template-columns: 272px minmax(0, 1fr);
  }

  .page-q-edition .page-rail {
    display: none;
  }
}

@media (min-width: 1600px) {
  .page-q-edition .docs-shell {
    width: min(1680px, calc(100% - 32px));
    grid-template-columns: 272px minmax(0, 1fr) 220px;
  }

  .page-q-edition .page-rail {
    display: block;
    padding-left: 18px;
  }

  .page-q-edition .toc-link {
    font-size: 0.84rem;
  }
}

.page-q-edition .prose > ol:first-of-type {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  list-style: none;
  counter-reset: q-step;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.page-q-edition .prose > ol:first-of-type li {
  position: relative;
  min-height: 112px;
  padding: 24px 20px 22px 58px;
  counter-increment: q-step;
  transition: background 160ms ease, transform 160ms ease;
  animation: q-edition-rise 360ms ease-out both;
}

.page-q-edition .prose > ol:first-of-type li::before {
  content: counter(q-step, decimal-leading-zero);
  position: absolute;
  top: 24px;
  left: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
}

.page-q-edition .prose > ol:first-of-type li:nth-child(2),
.page-q-edition .prose > ol:first-of-type li:nth-child(5) {
  animation-delay: 45ms;
}

.page-q-edition .prose > ol:first-of-type li:nth-child(3),
.page-q-edition .prose > ol:first-of-type li:nth-child(6) {
  animation-delay: 90ms;
}

.page-q-edition .prose > ol:first-of-type li:hover {
  z-index: 1;
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.page-q-edition .prose > ol:first-of-type li + li {
  margin-top: 0;
  border-left: 1px solid var(--line);
}

.page-q-edition .prose > ol:first-of-type li:nth-child(4) {
  border-left: 0;
}

.page-q-edition .prose > ol:first-of-type li:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.page-q-edition .prose > ol:first-of-type p {
  margin: 0;
  font-weight: 650;
  line-height: 1.45;
}

.page-q-edition .prose a[href="install/index.html#wifi-provision-panel"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 2px 0 24px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.16);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-q-edition .prose a[href="install/index.html#wifi-provision-panel"]:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 12px 26px rgba(194, 65, 12, 0.2);
  transform: translateY(-1px);
}

.page-q-edition .prose img[src$="hcq-aansluitingen-referentie.png"] {
  display: block;
  width: 100%;
  margin: 18px 0 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.page-q-edition .prose a[href="assets/hcq-aansluitingen-referentie.png"]:has(> img) {
  display: block;
}

.page-q-edition .wifi-route-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0 34px;
}

.page-q-edition .wifi-route {
  min-width: 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.page-q-edition .wifi-route.is-recommended {
  border-color: rgba(234, 88, 12, 0.38);
  background: linear-gradient(135deg, #fff7ed, #fff 72%);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.08);
}

.page-q-edition .wifi-route-recommendation {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-q-edition .wifi-route.is-recommended .wifi-route-recommendation {
  color: var(--accent-strong);
}

.page-q-edition .wifi-route h3 {
  margin-top: 0;
}

.page-q-edition .wifi-route ol,
.page-q-edition .wifi-route ul {
  padding-left: 22px;
}

.page-q-edition .wifi-route > :last-child {
  margin-bottom: 0;
}

.page-q-edition .prose img:is([src$="q-edition-overzetten.svg"], [src$="q-edition-kabels-stappen.svg"]) {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.09);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.page-q-edition .prose img:is([src$="q-edition-overzetten.svg"], [src$="q-edition-kabels-stappen.svg"]):hover {
  box-shadow: 0 26px 68px rgba(17, 24, 39, 0.13);
  transform: translateY(-2px);
}

.page-q-edition .cable-stepper {
  margin: 28px 0 18px;
  padding: 26px 28px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.055);
}

.page-q-edition .cable-stepper-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.page-q-edition .cable-stepper-kicker {
  margin: 0 0 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-q-edition .cable-stepper-header h4 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.025em;
}

.page-q-edition .cable-stepper-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-q-edition .cable-stepper-status {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.page-q-edition .cable-stepper-zoom {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.page-q-edition .cable-stepper-zoom svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-q-edition .cable-stepper-zoom:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.page-q-edition .cable-stepper-progress {
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

.page-q-edition .cable-stepper-progress span {
  display: block;
  width: 14.2857%;
  height: 100%;
  background: var(--accent);
  transition: width 220ms ease;
}

.page-q-edition .cable-stepper-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-q-edition .cable-stepper-tab {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 13px 8px 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.page-q-edition .cable-stepper-tab span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.page-q-edition .cable-stepper-tab strong {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-q-edition .cable-stepper-tab:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.page-q-edition .cable-stepper-tab[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

.page-q-edition .cable-stepper-tab:focus-visible,
.page-q-edition .cable-stepper-button:focus-visible,
.page-q-edition .cable-stepper-route-option:focus-visible,
.page-q-edition .cable-stepper-zoom:focus-visible,
.page-q-edition .cable-stepper-dialog-close:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.24);
  outline-offset: 2px;
}

.page-q-edition .cable-stepper-canvas {
  display: flex;
  min-height: 0;
  align-items: center;
  overflow: visible;
}

.page-q-edition .cable-stepper-viewport {
  width: 100%;
  overflow: visible;
  background: transparent;
}

.page-q-edition .cable-stepper-route-choice {
  display: grid;
  min-height: 390px;
  align-content: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: #fffaf7;
}

.page-q-edition .cable-stepper-route-choice[hidden],
.page-q-edition .cable-stepper-image[hidden] {
  display: none !important;
}

.page-q-edition .cable-stepper-route-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-q-edition .cable-stepper-route-choice h5 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.page-q-edition .cable-stepper-route-copy {
  max-width: 680px;
  margin: 8px 0 24px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.page-q-edition .cable-stepper-route-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-q-edition .cable-stepper-route-option {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  min-height: 174px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-q-edition .cable-stepper-route-option[data-cable-route="on-off"] {
  border-top-color: #2563eb;
}

.page-q-edition .cable-stepper-route-option:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.page-q-edition .cable-stepper-route-option[data-cable-route="on-off"]:hover {
  border-color: #2563eb;
}

.page-q-edition .cable-stepper-route-option > img {
  display: block;
  width: 100%;
  height: auto;
}

.page-q-edition .cable-stepper-route-option-copy {
  display: grid;
  align-content: start;
  min-width: 0;
}

.page-q-edition .cable-stepper-route-option-copy > span {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-q-edition .cable-stepper-route-option-copy > strong {
  margin-top: 5px;
  font-size: 1.2rem;
}

.page-q-edition .cable-stepper-route-option-copy > small {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

.page-q-edition .cable-stepper-route-option-copy > em {
  align-self: end;
  margin-top: 16px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
}

.page-q-edition .cable-stepper-route-option[data-cable-route="on-off"] .cable-stepper-route-option-copy > em {
  color: #1d4ed8;
}

.page-q-edition .cable-stepper-route-warning {
  margin: 18px 0 0;
  color: #9a3412;
  font-size: 0.86rem;
  font-weight: 700;
}

.page-q-edition .cable-stepper .cable-stepper-image,
.page-q-edition .cable-stepper .cable-stepper-image:hover {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.page-q-edition .cable-stepper-viewport.is-entering {
  animation: q-cable-step-enter 220ms ease-out both;
}

.page-q-edition .cable-stepper-actions {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-q-edition .cable-stepper-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.page-q-edition .cable-stepper-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.page-q-edition .cable-stepper-button-secondary {
  background: var(--panel);
  color: var(--ink-soft);
}

.page-q-edition .cable-stepper-button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.page-q-edition .cable-stepper-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.page-q-edition .cable-stepper-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.page-q-edition .cable-stepper-dialog::backdrop {
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(4px);
}

.page-q-edition .cable-stepper-dialog-shell {
  position: relative;
  max-height: calc(100vh - 48px);
  padding: 34px 42px 28px;
  overflow: auto;
}

.page-q-edition .cable-stepper-dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.page-q-edition .cable-stepper-dialog .cable-stepper {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-q-edition .cable-stepper-dialog .cable-stepper-header {
  padding-right: 50px;
}

.page-q-edition .cable-stepper-dialog .cable-stepper-zoom {
  display: none;
}

.page-q-edition .cable-stepper-dialog .cable-stepper-canvas {
  min-height: 0;
}

.page-q-edition .prose a:is([href="assets/q-edition-overzetten.svg"], [href="assets/q-edition-kabels-stappen.svg"]) {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: -4px 0 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  transition: border-color 160ms ease, color 160ms ease;
}

.page-q-edition .prose a:is([href="assets/q-edition-overzetten.svg"], [href="assets/q-edition-kabels-stappen.svg"]):hover {
  border-color: rgba(234, 88, 12, 0.35);
  color: var(--accent-strong);
}

@keyframes q-cable-step-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes q-edition-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .docs-shell {
    grid-template-columns: 272px minmax(0, 1fr);
  }

  .page-rail {
    display: none;
  }
}

@media (max-width: 960px) {
  .site-header-inner,
  .docs-shell {
    width: min(100% - 24px, 1440px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(320px, 84vw);
    height: auto;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
  }

  body.sidebar-open .docs-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 65px 0 0;
    z-index: 55;
    background: rgba(17, 24, 39, 0.45);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .docs-main {
    padding: 32px 24px 56px;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    gap: 10px;
  }

  .site-brand-copy span,
  .search-trigger-label,
  .search-trigger kbd {
    display: none;
  }

  .site-brand-logo {
    width: 102px;
  }

  .site-header-actions {
    gap: 10px;
  }

  .search-trigger,
  .header-link {
    min-width: 40px;
    padding: 0 12px;
  }

  .docs-main {
    padding: 26px 8px 44px;
  }

  .doc-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-index .prose > table:first-of-type {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .page-index .prose > table:first-of-type thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .page-index .prose > table:first-of-type tbody {
    display: grid;
    gap: 12px;
  }

  .page-index .prose > table:first-of-type tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
  }

  .page-index .prose > table:first-of-type td {
    display: block;
    width: auto;
    padding: 11px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    line-height: 1.55;
  }

  .page-index .prose > table:first-of-type td:first-child {
    border-top: 0;
    font-weight: 700;
  }

  .page-index .prose > table:first-of-type td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .page-index .prose > table:first-of-type td:nth-child(1)::before {
    content: "Jouw situatie";
  }

  .page-index .prose > table:first-of-type td:nth-child(2)::before {
    content: "Begin hier";
  }

  .page-index .prose > table:first-of-type td:nth-child(3)::before {
    content: "Wat je gaat doen";
  }

  .page-web-app .prose > table:nth-of-type(2) {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .page-web-app .prose > table:nth-of-type(2) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .page-web-app .prose > table:nth-of-type(2) tbody {
    display: grid;
    gap: 12px;
  }

  .page-web-app .prose > table:nth-of-type(2) tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
  }

  .page-web-app .prose > table:nth-of-type(2) td {
    display: block;
    width: auto;
    padding: 11px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    line-height: 1.55;
  }

  .page-web-app .prose > table:nth-of-type(2) td:first-child {
    border-top: 0;
    font-weight: 700;
  }

  .page-web-app .prose > table:nth-of-type(2) td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .page-web-app .prose > table:nth-of-type(2) td:nth-child(1)::before {
    content: "Stap";
  }

  .page-web-app .prose > table:nth-of-type(2) td:nth-child(2)::before {
    content: "Wat kies je?";
  }

  .page-web-app .prose > table:nth-of-type(2) td:nth-child(3)::before {
    content: "Waarom?";
  }

  .prose :not(pre) > code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .page-q-edition .doc-header {
    margin: -26px -8px 32px;
    padding: 36px 24px 40px;
    border-radius: 0 0 20px 20px;
  }

  .page-q-edition .prose > ol:first-of-type {
    grid-template-columns: 1fr;
  }

  .page-q-edition .prose > ol:first-of-type li {
    min-height: auto;
    padding: 18px 16px 18px 54px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .page-q-edition .prose > ol:first-of-type li:first-child {
    border-top: 0;
  }

  .page-q-edition .prose > ol:first-of-type li::before {
    top: 20px;
    left: 16px;
  }

  .page-q-edition .prose > table:first-of-type {
    display: block;
    margin-top: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .page-q-edition .prose > table:first-of-type thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .page-q-edition .prose > table:first-of-type tbody {
    display: grid;
    gap: 12px;
  }

  .page-q-edition .prose > table:first-of-type tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .page-q-edition .prose > table:first-of-type td {
    display: block;
    width: auto;
    padding: 11px 14px;
    border-bottom: 0;
    border-top: 1px solid var(--line);
    line-height: 1.55;
  }

  .page-q-edition .prose > table:first-of-type td:first-child {
    border-top: 0;
  }

  .page-q-edition .prose > table:first-of-type td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .page-q-edition .prose > table:first-of-type td:nth-child(1)::before {
    content: "Van de CiC";
  }

  .page-q-edition .prose > table:first-of-type td:nth-child(2)::before {
    content: "Naar de HCQ";
  }

  .page-q-edition .prose > table:first-of-type td:nth-child(3)::before {
    content: "Zo sluit je aan";
  }

  .page-q-edition .prose > table:first-of-type td:nth-child(2) {
    white-space: normal;
  }

  .page-q-edition .prose > table:first-of-type code {
    white-space: nowrap;
  }

  .page-q-edition .prose p:has(> img:is([src$="q-edition-overzetten.svg"], [src$="q-edition-kabels-stappen.svg"])) {
    overflow-x: auto;
    margin-right: -8px;
    margin-left: -8px;
    padding: 0 8px 10px;
  }

  .page-q-edition .prose img[src$="q-edition-overzetten.svg"] {
    width: 820px;
    max-width: none;
  }

  .page-q-edition .prose img[src$="q-edition-kabels-stappen.svg"] {
    width: 100%;
    max-width: 100%;
  }

  .page-q-edition .prose img[src$="hcq-aansluitingen-referentie.png"] {
    border-radius: 14px;
    box-shadow: none;
  }

  .page-q-edition .wifi-route-options {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-q-edition .wifi-route {
    padding: 18px 16px 20px;
    border-radius: 14px;
  }

  .page-q-edition .cable-stepper {
    margin: 22px 0 16px;
    padding: 18px 12px;
    border-radius: 16px;
    box-shadow: none;
  }

  .page-q-edition .cable-stepper-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-q-edition .cable-stepper-header-tools {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .page-q-edition .cable-stepper-status {
    max-width: none;
    text-align: left;
  }

  .page-q-edition .cable-stepper-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .page-q-edition .cable-stepper-tab:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .page-q-edition .cable-stepper-canvas {
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .page-q-edition .cable-stepper-viewport {
    flex: 1 1 auto;
    width: 100%;
  }

  .page-q-edition .cable-stepper-route-choice {
    min-height: 0;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .page-q-edition .cable-stepper-route-options {
    grid-template-columns: 1fr;
  }

  .page-q-edition .cable-stepper-route-option {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 18px;
  }

  .page-q-edition .cable-stepper-actions {
    grid-template-columns: 1fr 1fr;
  }

  .page-q-edition .cable-stepper-button {
    width: 100%;
  }

  .page-q-edition .cable-stepper-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .page-q-edition .cable-stepper-dialog-shell {
    height: 100%;
    max-height: none;
    padding: 58px 12px 22px;
  }

  .page-q-edition .cable-stepper-dialog-close {
    top: 10px;
    right: 12px;
  }

  .page-q-edition .cable-stepper-dialog .cable-stepper-header {
    padding-right: 0;
  }

  .page-q-edition .cable-stepper-dialog .cable-stepper-canvas {
    margin: 0;
    padding: 0 0 10px;
    overflow: visible;
  }

  .page-q-edition .cable-stepper-dialog .cable-stepper-viewport {
    flex: 1 1 auto;
    width: 100%;
  }

  .doc-header h1 {
    font-size: clamp(2rem, 12vw, 2.6rem);
  }

  .search-panel {
    padding: 18px;
  }

  .search-foot {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-q-edition .doc-header h1,
  .page-q-edition .doc-lead,
  .page-q-edition .prose > ol:first-of-type li {
    animation: none;
  }

  .page-q-edition .prose > ol:first-of-type li,
  .page-q-edition .prose a[href="install/index.html#wifi-provision-panel"],
  .page-q-edition .prose img:is([src$="q-edition-overzetten.svg"], [src$="q-edition-kabels-stappen.svg"]) {
    transition: none;
  }

  .page-q-edition .cable-stepper-progress span,
  .page-q-edition .cable-stepper-tab,
  .page-q-edition .cable-stepper-button,
  .page-q-edition .cable-stepper-route-option {
    transition: none;
  }

  .page-q-edition .cable-stepper-viewport.is-entering {
    animation: none;
  }
}
