:root {
  /* Public documentation theme tokens */
  --cat-bg: #161b22;
  --cat-canvas: #0d1117;
  --cat-bg-muted: #1c232d;
  --cat-bg-subtle: #212b36;
  --cat-bg-inset: #090c10;
  --cat-panel: #222c38;
  --cat-text: #e6edf3;
  --cat-muted: #9da7b3;
  --cat-subtle: #7d8590;
  --cat-brand: #2f81f7;
  --cat-accent: #2f81f7;
  --cat-border: #30363d;
  --cat-border-muted: #21262d;
  --cat-border-strong: #6e7681;
  --cat-focus: #2f81f7;
  --cat-confirmed: #3fb950;
  --cat-review: #a371f7;
  --cat-advisory: #d29922;
  --cat-limitation: #f85149;
  --cat-warning: #d29922;

  /* Docs aliases */
  --bg-default: var(--cat-bg);
  --bg-muted: var(--cat-bg-muted);
  --bg-subtle: var(--cat-bg-subtle);
  --bg-inset: var(--cat-bg-inset);
  --bg-elevated: var(--cat-panel);
  --fg-default: var(--cat-text);
  --fg-muted: var(--cat-muted);
  --fg-subtle: var(--cat-subtle);
  --fg-on-emphasis: #ffffff;
  --border-default: var(--cat-border);
  --border-muted: var(--cat-border-muted);
  --border-emphasis: var(--cat-border-strong);
  --accent-emphasis: var(--cat-brand);
  --accent-muted: rgba(47, 129, 247, 0.18);
  --success-emphasis: var(--cat-confirmed);
  --success-muted: rgba(63, 185, 80, 0.18);
  --attention-emphasis: var(--cat-advisory);
  --attention-muted: rgba(210, 153, 34, 0.2);
  --danger-emphasis: var(--cat-limitation);
  --danger-muted: rgba(248, 81, 73, 0.2);
  --done-emphasis: var(--cat-review);
  --done-muted: rgba(163, 113, 247, 0.2);
  --focus-ring: var(--cat-focus);
  --shadow-sm: 0 6px 18px rgba(1, 4, 9, 0.25);
  --shadow-md: 0 18px 40px rgba(1, 4, 9, 0.45);
  --shadow-lg: 0 26px 64px rgba(1, 4, 9, 0.62);
  --radius-xl: 1.5rem;
  --radius-lg: 1.125rem;
  --radius-md: 0.875rem;
  --content-width: 80rem;
  --sidebar-width: 18rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --type-xs: 0.78rem;
  --type-sm: 0.9rem;
  --type-md: 1rem;
  --type-lg: 1.14rem;
  --type-xl: 1.45rem;
  --type-2xl: 1.95rem;
  --type-3xl: clamp(2.35rem, 3.8vw, 4.25rem);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --brand-icon-filter: invert(1);
  --brand-icon-url: url("../img/icon-dark.png");
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark light;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-md);
  color: var(--fg-default);
  background: linear-gradient(180deg, var(--cat-canvas) 0%, #111821 100%);
  line-height: 1.65;
}

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

svg {
  display: block;
}

main,
section,
article,
aside,
nav,
header,
footer,
figure {
  min-width: 0;
}

a {
  color: var(--accent-emphasis);
  text-underline-offset: 0.16em;
}

a:hover {
  color: #58a6ff;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

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

pre {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #0d1117;
  color: #f0f6fc;
  border: 1px solid #30363d;
}

code {
  padding: 0.16rem 0.34rem;
  border-radius: 0.45rem;
  background: var(--accent-muted);
  color: #cfe6ff;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--accent-emphasis);
  color: var(--fg-on-emphasis);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid rgba(48, 54, 61, 0.9);
  box-shadow: 0 10px 24px rgba(1, 4, 9, 0.4);
  isolation: isolate;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(48, 54, 61, 0.95);
}

.site-header__inner,
.docs-layout,
.landing-shell,
.site-footer__inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--fg-default);
  text-decoration: none;
}

.brand img {
  display: block;
  background: none;
  background-color: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
}

.brand__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
  background-color: transparent;
  background-image: none;
  filter: var(--brand-icon-filter);
}

.brand__text {
  display: grid;
  gap: 0.1rem;
}

.brand__label {
  font-size: var(--type-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.brand__title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.header-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-width: 0;
}

.header-nav a {
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--fg-muted);
  padding: 0.45rem 0.56rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--fg-default);
  border-color: var(--border-default);
  background: rgba(33, 43, 54, 0.6);
}

.doc-version-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 129, 247, 0.42);
  background: rgba(47, 129, 247, 0.18);
  color: #cfe6ff;
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.landing-shell {
  padding-bottom: var(--space-6);
}

.hero {
  padding: var(--space-7) 0 var(--space-5);
}

.hero-grid,
.page-hero,
.intro-grid,
.split-layout,
.card-grid,
.docs-card-grid,
.screenshot-grid,
.detail-grid,
.feature-grid,
.proof-grid,
.badge-strip {
  display: grid;
  gap: var(--space-4);
}

.hero-grid {
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
}

.page-hero,
.intro-grid,
.split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  align-items: start;
}

.card-grid,
.docs-card-grid,
.detail-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screenshot-grid,
.proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.badge-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-panel,
.hero-visual,
.docs-main,
.docs-sidebar,
.card,
.media-card,
.feature-band,
.fact-panel,
.value-panel,
.section-panel,
.proof-section,
.proof-group {
  background: var(--bg-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-panel::after,
.docs-main::after,
.card::after,
.feature-grid article::after,
.proof-group::after {
  content: none;
}

.hero-panel,
.docs-main,
.docs-sidebar,
.card,
.feature-band,
.fact-panel,
.value-panel,
.section-panel,
.proof-section,
.proof-group {
  padding: 1.5rem;
}

.hero-panel {
  padding: 2.4rem;
  border-color: rgba(110, 118, 129, 0.42);
  background: var(--bg-default);
}

.not-found-panel {
  max-width: 56rem;
  margin: 0 auto;
}

.not-found-panel .button-row {
  margin-top: 1rem;
}

.hero-panel h1,
.docs-main h1,
.page-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-panel h1 {
  font-size: var(--type-3xl);
  text-wrap: balance;
}

.docs-main h1,
.page-title {
  font-size: clamp(2.15rem, 3vw, 3.2rem);
  text-wrap: balance;
}

.hero-panel p,
.lead,
.page-summary {
  font-size: var(--type-lg);
  color: var(--fg-muted);
}

.lead strong {
  color: var(--fg-default);
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-brand-lockup img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
  filter: var(--brand-icon-filter);
}

.eyebrow,
.kicker,
.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.84rem;
  border-radius: 999px;
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow,
.kicker {
  background: var(--accent-muted);
  color: var(--accent-emphasis);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 1.35rem;
}

.status-pill,
.badge {
  border: 1px solid transparent;
}

.status-pill--warning {
  background: var(--attention-muted);
  color: var(--attention-emphasis);
  border-color: rgba(154, 103, 0, 0.25);
}

.badge--local,
.status-pill--success {
  background: var(--success-muted);
  color: var(--success-emphasis);
  border-color: rgba(31, 136, 61, 0.22);
}

.badge--server {
  background: var(--accent-muted);
  color: var(--accent-emphasis);
  border-color: rgba(9, 105, 218, 0.2);
}

.badge--manual,
.status-pill--danger {
  background: var(--danger-muted);
  color: var(--danger-emphasis);
  border-color: rgba(207, 34, 46, 0.18);
}

.badge--confirmed {
  background: rgba(248, 81, 73, 0.2);
  color: #ffb4ad;
  border-color: rgba(248, 81, 73, 0.45);
}

.badge--critical {
  background: rgba(218, 54, 51, 0.26);
  color: #ffd7d4;
  border-color: rgba(255, 129, 130, 0.52);
}

.badge--serious {
  background: rgba(248, 81, 73, 0.22);
  color: #ffc2bb;
  border-color: rgba(248, 81, 73, 0.46);
}

.badge--moderate,
.badge--review {
  background: rgba(210, 153, 34, 0.2);
  color: #ffd485;
  border-color: rgba(210, 153, 34, 0.44);
}

.badge--minor,
.badge--diagnostic,
.badge--limitation {
  background: rgba(47, 129, 247, 0.18);
  color: #a9d1ff;
  border-color: rgba(47, 129, 247, 0.42);
}

.badge--visual {
  background: rgba(163, 113, 247, 0.2);
  color: #d8bdff;
  border-color: rgba(163, 113, 247, 0.46);
}

.badge--human {
  background: rgba(177, 123, 255, 0.22);
  color: #e2ccff;
  border-color: rgba(177, 123, 255, 0.48);
}

.badge--advisory {
  background: rgba(125, 133, 144, 0.25);
  color: #d0d7e0;
  border-color: rgba(125, 133, 144, 0.52);
}

.badge--safe {
  background: rgba(63, 185, 80, 0.2);
  color: #8be9a1;
  border-color: rgba(63, 185, 80, 0.46);
}

.badge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0 0.35rem;
}

.severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.severity--critical {
  background: rgba(218, 54, 51, 0.26);
  color: #ffd7d4;
  border-color: rgba(255, 129, 130, 0.52);
}

.severity--serious {
  background: rgba(248, 81, 73, 0.22);
  color: #ffc2bb;
  border-color: rgba(248, 81, 73, 0.46);
}

.severity--moderate {
  background: rgba(210, 153, 34, 0.2);
  color: #ffd485;
  border-color: rgba(210, 153, 34, 0.44);
}

.severity--minor {
  background: rgba(47, 129, 247, 0.18);
  color: #a9d1ff;
  border-color: rgba(47, 129, 247, 0.42);
}

.severity--review {
  background: rgba(163, 113, 247, 0.2);
  color: #d8bdff;
  border-color: rgba(163, 113, 247, 0.46);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button--primary {
  background: var(--accent-emphasis);
  color: #0b1320;
}

.button--primary:hover,
.button--primary:focus-visible {
  color: #0b1320;
  background: color-mix(in srgb, var(--accent-emphasis) 86%, var(--bg-inset) 14%);
}

.button--secondary {
  background: var(--bg-elevated);
  color: var(--fg-default);
  border-color: var(--border-default);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: color-mix(in srgb, var(--bg-elevated) 85%, #ffffff 15%);
}

.button--ghost {
  background: transparent;
  color: var(--accent-emphasis);
  border-color: var(--border-default);
}

.warning,
.callout {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.warning {
  background: color-mix(in srgb, var(--danger-muted) 52%, var(--bg-default) 48%);
  border-color: rgba(207, 34, 46, 0.2);
}

.callout {
  background: color-mix(in srgb, var(--accent-muted) 46%, var(--bg-default) 54%);
  border-color: rgba(9, 105, 218, 0.18);
}

.hero-visual,
.media-card {
  overflow: hidden;
}

.media-card {
  margin: 0;
  padding: 0;
  border: 1px solid #3f4f66;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #0f1621;
}

.media-card img {
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: contain;
  background: #0b121b;
  border-bottom: 1px solid var(--border-default);
}

.media-card figcaption {
  padding: 0.9rem 1rem 1rem;
  font-size: var(--type-sm);
  color: #d9e2ef;
  background: #121c2a;
}

.media-card--compact img {
  aspect-ratio: auto;
}

.section-block {
  margin-top: var(--space-5);
}

.section-heading {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.feature-grid article,
.card h3,
.docs-main h2,
.docs-main h3,
.proof-section h2,
.proof-group h3 {
  margin-top: 0;
}

.docs-main h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  padding-top: 0.35rem;
}

.docs-main h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.25;
}

.feature-grid article,
.card,
.fact-panel,
.value-panel {
  position: relative;
}

.feature-grid article::before,
.card::before,
.proof-group::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent-emphasis), var(--done-emphasis));
}

.feature-grid article,
.proof-group {
  padding: 1.2rem;
  background: var(--bg-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.feature-grid article:hover,
.feature-grid article:focus-within,
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(47, 129, 247, 0.45);
  box-shadow: var(--shadow-md);
}

.feature-grid p,
.card p,
.proof-group p,
.fact-panel p,
.value-panel p,
.feature-band p,
.docs-main p,
.docs-main li,
.docs-sidebar,
figcaption {
  color: var(--fg-muted);
}

.feature-list,
.doc-list,
.meta-list,
.sidebar-nav ul {
  margin: 0;
  padding-left: 1.2rem;
}

.doc-list li,
.feature-list li,
.meta-list li,
.docs-main li {
  margin: 0.35rem 0;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--sidebar-width)) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.6rem 0 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 5.6rem;
  align-self: start;
  background: var(--bg-default);
  border-color: rgba(110, 118, 129, 0.34);
  max-height: calc(100vh - 6.6rem);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.docs-sidebar--simple .sidebar-nav ul {
  display: grid;
  gap: 0.3rem;
}

.docs-sidebar--simple .sidebar-group + .sidebar-group {
  margin-top: 0;
}

.docs-sidebar--guide .sidebar-group--guide-anchors {
  margin-top: 0.65rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-muted);
}

.docs-sidebar--guide .sidebar-subgroup {
  margin-top: 0.25rem;
}

.docs-sidebar h2 {
  margin: 0 0 0.9rem;
  font-size: var(--type-md);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-sidebar h2::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: var(--brand-icon-url) center/contain no-repeat;
  flex: 0 0 auto;
}

.sidebar-nav ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-nav li + li {
  margin-top: 0.35rem;
}

.sidebar-group > a {
  font-weight: 700;
}

.sidebar-nav a {
  display: block;
  padding: 0.52rem 0.7rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: var(--fg-default);
  font-weight: 650;
  border: 1px solid transparent;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.sidebar-nav a[aria-current="page"] {
  background: var(--accent-muted);
  color: #cfe6ff;
  border-color: rgba(47, 129, 247, 0.4);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

.sidebar-details {
  margin-top: 0.25rem;
}

.sidebar-details summary {
  cursor: pointer;
  font-size: var(--type-xs);
  font-weight: 700;
  color: var(--fg-muted);
  padding: 0.32rem 0.58rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  list-style: none;
}

.sidebar-details summary::-webkit-details-marker {
  display: none;
}

.sidebar-details summary::before {
  content: "▸ ";
  color: var(--fg-subtle);
}

.sidebar-details[open] summary::before {
  content: "▾ ";
}

.sidebar-details summary:hover,
.sidebar-details summary:focus-visible {
  color: var(--fg-default);
  border-color: var(--border-default);
  background: var(--bg-subtle);
}

.sidebar-sublist {
  margin-top: 0.2rem;
  margin-left: 0.3rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--border-muted);
}

.sidebar-sublist li + li {
  margin-top: 0.15rem;
}

.sidebar-sublist a {
  font-weight: 560;
  font-size: var(--type-sm);
  color: var(--fg-muted);
  padding: 0.34rem 0.58rem;
}

.sidebar-sublist a:hover,
.sidebar-sublist a:focus-visible {
  color: var(--fg-default);
}

.docs-main :target {
  scroll-margin-top: 6.6rem;
}

.docs-main h2:target,
.docs-main h3:target {
  outline: 2px solid var(--focus-ring);
  border-radius: 0.45rem;
  background: var(--bg-subtle);
  padding: 0.22rem 0.4rem;
}

.docs-main {
  min-width: 0;
  border-color: rgba(110, 118, 129, 0.34);
}

.table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.8rem;
  padding: 0 0 0.1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-default);
  box-shadow: var(--shadow-sm);
  scrollbar-gutter: stable both-edges;
}

.table-wrap::before {
  content: "Scrollable table: swipe horizontally to view all columns.";
  display: block;
  padding: 0.62rem 0.82rem;
  border-bottom: 1px solid var(--border-default);
  font-size: var(--type-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
  background: var(--bg-subtle);
}

.table-wrap::after {
  content: "";
  position: absolute;
  top: 2.35rem;
  right: 0;
  bottom: 0.1rem;
  width: 1.8rem;
  pointer-events: none;
  background: linear-gradient(270deg, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0) 100%);
}

.table-wrap:focus-visible,
.table-wrap:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.docs-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--type-sm);
}

.docs-main th,
.docs-main td {
  padding: 0.82rem;
  border: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.docs-main th {
  background: var(--bg-subtle);
  font-size: var(--type-sm);
  letter-spacing: 0.01em;
}

.docs-main caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--fg-default);
  margin-bottom: 0.45rem;
}

.markdown-rendered > *:first-child {
  margin-top: 0;
}

.proof-section {
  margin-bottom: 1.5rem;
}

.proof-section__intro {
  margin-bottom: 1rem;
}

.proof-section__intro p {
  margin-bottom: 0;
}

.proof-group {
  padding-top: 1.35rem;
}

.proof-grid {
  margin-top: 1rem;
}

.proof-note {
  font-size: var(--type-sm);
  color: var(--fg-muted);
}

.site-footer {
  border-top: 1px solid var(--border-default);
  background: var(--cat-canvas);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 0 1.8rem;
  color: var(--fg-subtle);
}

.site-footer a {
  color: var(--fg-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--fg-default);
}

.matrix-intro,
.diagram-intro {
  margin: 0 0 0.85rem;
  color: var(--fg-muted);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-default);
  overflow: hidden;
  font-size: var(--type-sm);
}

.matrix-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--fg-default);
  margin: 0 0 0.5rem;
}

.matrix-table th,
.matrix-table td {
  padding: 0.9rem;
  border: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.matrix-table code,
.docs-main table code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.matrix-table thead th {
  background: #253243;
  color: var(--fg-default);
  font-weight: 800;
}

.matrix-table tbody tr:nth-child(even) td,
.matrix-table tbody tr:nth-child(even) th {
  background: #1b2733;
}

.matrix-table tr.row-group th {
  background: #1f2e3f;
  color: #cfe6ff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.table-wrap > .matrix-table {
  min-width: 48rem;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.diagram-card {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid #3f4f66;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #131a24 0%, #101722 100%);
  box-shadow: var(--shadow-sm);
}

.diagram-card figcaption {
  margin-top: 0.7rem;
}

.doc-diagram {
  width: 100%;
  height: auto;
  border: 1px solid #405069;
  border-radius: 0.75rem;
  background: #0c131d;
}

.doc-diagram .diagram-node {
  fill: #1a2635;
  stroke: #5d708c;
  stroke-width: 1.7;
}

.doc-diagram .diagram-node--process {
  fill: #1a2a43;
  stroke: #4f87d9;
}

.doc-diagram .diagram-node--engine {
  fill: #14273a;
  stroke: #57a6ff;
}

.doc-diagram .diagram-node--custom {
  fill: #1d2d3f;
  stroke: #7ea8d8;
}

.doc-diagram .diagram-node--confirmed {
  fill: #3a1f27;
  stroke: #f06565;
}

.doc-diagram .diagram-node--review {
  fill: #2d2342;
  stroke: #b189ff;
}

.doc-diagram .diagram-node--advisory {
  fill: #2d2a26;
  stroke: #e3ba56;
}

.doc-diagram .diagram-node--limitation {
  fill: #1f2d40;
  stroke: #69adff;
}

.doc-diagram .diagram-node--diagnostic {
  fill: #213247;
  stroke: #86bcff;
}

.doc-diagram .diagram-node--local {
  fill: #1f3125;
  stroke: #6bc98a;
}

.doc-diagram .diagram-node--action {
  fill: #25354d;
  stroke: #8cb9f2;
}

.doc-diagram .diagram-node--blocked {
  fill: #362930;
  stroke: #d88ea2;
}

.doc-diagram .diagram-edge {
  fill: none;
  stroke: #90a4c0;
  stroke-width: 2;
}

.doc-diagram .diagram-edge--confirmed {
  stroke: #ff8a8a;
}

.doc-diagram .diagram-edge--review {
  stroke: #c0a2ff;
}

.doc-diagram .diagram-edge--advisory {
  stroke: #e8c26a;
}

.doc-diagram .diagram-edge--limitation {
  stroke: #7fbcff;
}

.doc-diagram .diagram-edge--local {
  stroke: #74d596;
}

.doc-diagram text {
  fill: #f1f6ff;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 700;
}

.docs-pager {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-default);
}

@media (max-width: 1100px) {
  .hero-grid,
  .page-hero,
  .intro-grid,
  .split-layout,
  .docs-layout,
  .card-grid,
  .docs-card-grid,
  .screenshot-grid,
  .detail-grid,
  .feature-grid,
  .proof-grid,
  .badge-strip {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0.85rem;
  }

  .docs-sidebar h2 {
    margin-bottom: 0.55rem;
  }

  .docs-sidebar--guide .sidebar-group--guide-anchors > .sidebar-details > summary {
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    border-radius: 0.55rem;
    padding: 0.5rem 0.72rem;
  }

  .docs-sidebar--guide .sidebar-subgroup .sidebar-details > summary {
    padding: 0.36rem 0.55rem;
    font-size: var(--type-xs);
  }

  .hero {
    padding-top: 2.9rem;
  }

  .docs-pager {
    justify-content: flex-start;
  }
}

@media (max-width: 1360px) {
  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1rem;
  }

  .header-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 0.42rem;
  }

  .doc-version-chip {
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .doc-diagram text {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
  }

  .header-nav {
    gap: 0.45rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero {
    padding-top: 2.1rem;
  }

  .hero-panel,
  .docs-main,
  .docs-sidebar,
  .card,
  .feature-band,
  .fact-panel,
  .value-panel,
  .section-panel,
  .proof-section,
  .proof-group {
    padding: 1.1rem;
  }

  .hero-brand-lockup {
    align-items: flex-start;
  }

  .hero-brand-lockup img {
    width: 3.8rem;
    height: 3.8rem;
  }

  .button,
  .eyebrow,
  .kicker,
  .status-pill,
  .badge {
    width: 100%;
    justify-content: flex-start;
  }

  .button-row,
  .status-row {
    flex-direction: column;
  }

  .header-nav a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.55rem;
  }

  .docs-sidebar {
    margin-bottom: 0.45rem;
  }

  .docs-sidebar--simple .sidebar-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .docs-sidebar--simple .sidebar-nav a {
    font-size: 0.86rem;
    padding: 0.5rem 0.56rem;
  }

  .docs-sidebar--guide .sidebar-group--guide-anchors > .sidebar-details > summary {
    font-size: 0.82rem;
  }

  .docs-sidebar--guide .sidebar-subgroup .sidebar-details > summary {
    font-size: 0.78rem;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --cat-bg: #ffffff;
    --cat-canvas: #f5f8fc;
    --cat-bg-muted: #f7faff;
    --cat-bg-subtle: #eef3fa;
    --cat-bg-inset: #e9eff8;
    --cat-panel: #ffffff;
    --cat-text: #0f1b2d;
    --cat-muted: #334155;
    --cat-subtle: #5b6b80;
    --cat-border: #cfdae9;
    --cat-border-muted: #dce5f2;
    --cat-border-strong: #8da2bf;
    --cat-focus: #1d4ed8;
    --cat-brand: #1e5bb8;
    --cat-accent: #1e5bb8;
    --accent-muted: rgba(47, 129, 247, 0.12);
    --success-muted: rgba(63, 185, 80, 0.16);
    --attention-muted: rgba(210, 153, 34, 0.18);
    --danger-muted: rgba(248, 81, 73, 0.14);
    --done-muted: rgba(163, 113, 247, 0.16);
    --shadow-sm: 0 6px 16px rgba(11, 22, 41, 0.08);
    --shadow-md: 0 14px 30px rgba(11, 22, 41, 0.12);
    --shadow-lg: 0 24px 50px rgba(11, 22, 41, 0.16);
    --brand-icon-filter: none;
    --brand-icon-url: url("../img/icon-light.png");
  }

  body {
    background: linear-gradient(180deg, #f5f8fc 0%, #eef4fb 100%);
    color: var(--cat-text);
  }

  a {
    color: #1e5bb8;
  }

  a:hover {
    color: #174899;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #d5e0ee;
    box-shadow: 0 8px 24px rgba(11, 22, 41, 0.08);
  }

  .site-header::after {
    background: #d5e0ee;
  }

  .header-nav a:hover,
  .header-nav a:focus-visible {
    background: rgba(47, 129, 247, 0.1);
    border-color: #b9cbe3;
  }

  .doc-version-chip {
    color: #0b2e61;
    background: rgba(47, 129, 247, 0.12);
    border-color: rgba(47, 129, 247, 0.45);
  }

  .docs-main,
  .docs-sidebar,
  .hero-panel,
  .card,
  .feature-grid article,
  .section-panel,
  .proof-group,
  .feature-band,
  .fact-panel,
  .value-panel {
    background: #ffffff;
    border-color: #cfdae9;
  }

  .sidebar-nav a[aria-current="page"] {
    background: rgba(30, 91, 184, 0.14);
    color: #123f84;
    border-color: rgba(30, 91, 184, 0.32);
  }

  .sidebar-details summary {
    color: #42566f;
  }

  .media-card {
    background: #f1f5fb;
    border-color: #c9d6e8;
  }

  .media-card img {
    background: #ecf3fc;
    border-bottom-color: #d0ddef;
  }

  .media-card figcaption {
    color: #1f2f46;
    background: #f7faff;
  }

  .warning {
    background: #fff3f2;
    border-color: #f4c6c2;
    color: #4b1b18;
  }

  .callout {
    background: #eef5ff;
    border-color: #b9d3ff;
    color: #163761;
  }

  .badge {
    color: #163761;
  }

  .badge--confirmed {
    background: rgba(209, 36, 47, 0.16);
    color: #7f131d;
    border-color: rgba(209, 36, 47, 0.35);
  }

  .badge--critical {
    background: rgba(173, 26, 37, 0.2);
    color: #6e0f18;
    border-color: rgba(173, 26, 37, 0.38);
  }

  .badge--serious {
    background: rgba(209, 58, 49, 0.16);
    color: #7f1b16;
    border-color: rgba(209, 58, 49, 0.34);
  }

  .badge--moderate,
  .badge--review {
    background: rgba(177, 116, 0, 0.16);
    color: #6a4600;
    border-color: rgba(177, 116, 0, 0.32);
  }

  .badge--minor,
  .badge--diagnostic,
  .badge--limitation {
    background: rgba(30, 91, 184, 0.14);
    color: #163f83;
    border-color: rgba(30, 91, 184, 0.3);
  }

  .badge--visual,
  .badge--human {
    background: rgba(114, 66, 190, 0.14);
    color: #4b2a7f;
    border-color: rgba(114, 66, 190, 0.3);
  }

  .badge--advisory {
    background: rgba(64, 84, 112, 0.14);
    color: #2f3f54;
    border-color: rgba(64, 84, 112, 0.28);
  }

  .badge--safe,
  .badge--local {
    background: rgba(22, 124, 48, 0.15);
    color: #0f5e25;
    border-color: rgba(22, 124, 48, 0.3);
  }

  .severity--critical {
    background: rgba(173, 26, 37, 0.2);
    color: #6e0f18;
    border-color: rgba(173, 26, 37, 0.38);
  }

  .severity--serious {
    background: rgba(209, 58, 49, 0.16);
    color: #7f1b16;
    border-color: rgba(209, 58, 49, 0.34);
  }

  .severity--moderate {
    background: rgba(177, 116, 0, 0.16);
    color: #6a4600;
    border-color: rgba(177, 116, 0, 0.32);
  }

  .severity--minor {
    background: rgba(30, 91, 184, 0.14);
    color: #163f83;
    border-color: rgba(30, 91, 184, 0.3);
  }

  .severity--review {
    background: rgba(114, 66, 190, 0.14);
    color: #4b2a7f;
    border-color: rgba(114, 66, 190, 0.3);
  }

  .button--primary {
    color: #ffffff;
    background: #1e5bb8;
  }

  .button--primary:hover,
  .button--primary:focus-visible {
    color: #ffffff;
    background: #174899;
  }

  .button--secondary {
    background: #f4f8ff;
    border-color: #c5d4e8;
  }

  .button--ghost {
    border-color: #c5d4e8;
  }

  .table-wrap table thead {
    background: #e9f0fb;
    color: #172b47;
  }

  .table-wrap::after {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0) 100%);
  }

  .matrix-table {
    background: #ffffff;
    border-color: #c8d6e8;
  }

  .matrix-table th,
  .matrix-table td {
    border-color: #d3dfef;
  }

  .matrix-table thead th {
    background: #e7effa;
    color: #172b47;
  }

  .matrix-table tbody tr:nth-child(even) td,
  .matrix-table tbody tr:nth-child(even) th {
    background: #f7fbff;
  }

  .matrix-table tr.row-group th {
    background: #e2ecf9;
    color: #163761;
  }

  pre {
    background: #f3f7fd;
    color: #12253d;
    border-color: #c9d8eb;
  }

  code {
    background: #e7f1ff;
    color: #0b2e61;
  }

  .diagram-card {
    border-color: #cfdae9;
    background: linear-gradient(180deg, #f6faff 0%, #edf4fd 100%);
  }

  .doc-diagram {
    border-color: #c4d3e8;
    background: #ffffff;
  }

  .doc-diagram text {
    fill: #13253f;
  }

  .doc-diagram .diagram-node {
    fill: #f1f6fd;
    stroke: #6f89aa;
  }

  .doc-diagram .diagram-node--process {
    fill: #e7f0fb;
    stroke: #2f69b8;
  }

  .doc-diagram .diagram-node--engine {
    fill: #eaf4ff;
    stroke: #1e5bb8;
  }

  .doc-diagram .diagram-node--custom {
    fill: #edf3fb;
    stroke: #4f78a8;
  }

  .doc-diagram .diagram-node--confirmed {
    fill: #fdeeee;
    stroke: #b4232c;
  }

  .doc-diagram .diagram-node--review {
    fill: #f4ecff;
    stroke: #6f42c1;
  }

  .doc-diagram .diagram-node--advisory {
    fill: #fff8e9;
    stroke: #9f6b00;
  }

  .doc-diagram .diagram-node--limitation,
  .doc-diagram .diagram-node--diagnostic,
  .doc-diagram .diagram-node--action {
    fill: #edf4ff;
    stroke: #2c63b5;
  }

  .doc-diagram .diagram-node--local {
    fill: #eaf8ef;
    stroke: #227a3c;
  }

  .doc-diagram .diagram-node--blocked {
    fill: #fdf1f4;
    stroke: #a2496f;
  }

  .doc-diagram .diagram-edge {
    stroke: #6f86a8;
  }

  .site-footer {
    background: #edf3fb;
    border-top-color: #cfdae9;
  }
}


/* Sidebar disclosure behaviour */
.docs-sidebar .sidebar-details:not([open]) .sidebar-sublist { display: none; }
.docs-sidebar .sidebar-details[open] .sidebar-sublist { display: block; }

.docs-page--guide .guide-section {
  margin: 0 0 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-default) 88%, var(--bg-subtle) 12%);
}

.docs-page--guide .guide-section > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 800;
  color: var(--fg-default);
  border-bottom: 1px solid transparent;
}

.docs-page--guide .guide-section[open] > summary {
  border-bottom-color: var(--border-default);
}

.docs-page--guide .guide-section > summary::-webkit-details-marker {
  display: none;
}

.docs-page--guide .guide-section > summary::after {
  content: "Expand";
  float: right;
  font-size: var(--type-xs);
  color: var(--fg-subtle);
}

.docs-page--guide .guide-section[open] > summary::after {
  content: "Collapse";
}

.docs-page--guide .feature-accordion {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin: 0 0 0.9rem;
  background: var(--bg-default);
  overflow: hidden;
}

.docs-page--guide .feature-accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--fg-default);
  background: color-mix(in srgb, var(--bg-default) 82%, var(--bg-subtle) 18%);
}

.docs-page--guide .feature-accordion > summary::-webkit-details-marker {
  display: none;
}

.docs-page--guide .feature-accordion > summary::after {
  content: "Open";
  float: right;
  font-size: var(--type-xs);
  color: var(--fg-subtle);
}

.docs-page--guide .feature-accordion[open] > summary::after {
  content: "Close";
}

.docs-page--guide .feature-accordion__body {
  padding: 1rem;
}

.media-card video {
  width: 100%;
  min-height: 220px;
  background: #0b121b;
  display: block;
}

.feature-video-card {
  max-width: 72rem;
}

.feature-video-card video {
  aspect-ratio: 16 / 9;
  height: auto;
  border-bottom: 1px solid var(--border-default);
}

/* stronger mobile table handling */
@media (max-width: 720px) {
  .table-wrap,
  .matrix-table {
    overflow-x: auto;
    display: block;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap {
    margin: 1rem 0 2rem;
    border-radius: 0.75rem;
  }

  .table-wrap::before {
    padding: 0.56rem 0.72rem;
    font-size: 0.74rem;
  }

  .table-wrap::after {
    top: 2.1rem;
    width: 1.3rem;
  }

  .table-wrap > .matrix-table {
    min-width: 42rem;
  }

  .matrix-table {
    font-size: 0.83rem;
    margin: 0 0 2rem;
  }

  .matrix-table th,
  .matrix-table td {
    min-width: 9.4rem;
    padding: 0.72rem;
  }

  .matrix-table caption {
    margin-bottom: 0.7rem;
  }
}


/* Compatibility layer for the currently published static pages. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem max(1rem, calc((100% - var(--content-width)) / 2));
}

.site-header > .brand {
  flex: 0 0 auto;
  font-weight: 850;
}

.site-header > .brand img {
  width: 2.5rem;
  height: 2.5rem;
  filter: none;
}

.top-nav {
  min-width: 0;
}

.top-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: var(--type-sm);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  color: var(--fg-default);
  background: color-mix(in srgb, var(--bg-subtle) 72%, transparent 28%);
  border-color: var(--border-default);
}

.home-main,
.doc-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.home-main {
  padding-bottom: var(--space-6);
}

.hero-with-media {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(22rem, 1.12fr);
  gap: var(--space-5);
  align-items: center;
}

.technical-hero h1 {
  margin: 0.7rem 0 1rem;
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: var(--type-3xl);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: 0;
}

.technical-hero .lead {
  max-width: 44rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1rem;
}

.button.primary {
  background: var(--accent-emphasis);
  color: #ffffff;
}

.button.secondary {
  background: var(--bg-elevated);
  color: var(--fg-default);
  border-color: var(--border-default);
}

.status-note {
  color: var(--fg-subtle);
  font-size: var(--type-sm);
}

.hero-visual {
  margin: 0;
  background: #0b121b;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border-default);
}

.hero-visual figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--fg-muted);
  font-size: var(--type-sm);
  background: var(--bg-subtle);
}

.section-panel,
.callout.boundary,
.related-pages {
  margin-top: var(--space-5);
}

.info-card {
  padding: 1.1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-default) 84%, var(--bg-subtle) 16%);
}

.info-card h3,
.guide-entry-grid strong,
.related-pages h2 {
  color: var(--fg-default);
}

.guide-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.guide-entry-grid a {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-default) 88%, var(--bg-subtle) 12%);
  color: var(--fg-muted);
  text-decoration: none;
}

.guide-entry-grid a:hover,
.guide-entry-grid a:focus-visible {
  border-color: rgba(47, 129, 247, 0.55);
  background: color-mix(in srgb, var(--bg-default) 72%, var(--accent-muted) 28%);
}

.guide-entry-grid span {
  color: var(--fg-muted);
}

.doc-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.6rem 0 3rem;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 5.7rem;
  max-height: calc(100vh - 6.7rem);
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-default);
  box-shadow: var(--shadow-sm);
}

.side-nav-title,
.side-nav-group-title {
  margin: 0 0 0.55rem;
  color: var(--fg-default);
  font-weight: 850;
}

.side-nav-group + .side-nav-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-muted);
}

.side-nav ol {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav a {
  display: block;
  padding: 0.42rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  color: var(--fg-muted);
  font-size: var(--type-sm);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a[aria-current="page"] {
  color: var(--fg-default);
  background: var(--accent-muted);
  border-color: rgba(47, 129, 247, 0.42);
}

.doc-main,
.doc-article {
  min-width: 0;
}

.doc-article {
  padding: 1.5rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-default);
  box-shadow: var(--shadow-md);
}

.doc-article h1 {
  margin: 0.7rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.doc-article h2 {
  margin-top: 0;
  line-height: 1.2;
}

.table-scroll {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.6rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-default);
  box-shadow: var(--shadow-sm);
  scrollbar-gutter: stable both-edges;
}

.table-scroll table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  margin: 0;
}

.table-scroll th,
.table-scroll td {
  padding: 0.82rem;
  border: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.table-scroll th {
  background: var(--bg-subtle);
  color: var(--fg-default);
}

.table-scroll th[scope="row"] {
  min-width: 11rem;
  width: 28%;
  overflow-wrap: normal;
  word-break: normal;
}

.related-pages {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-default);
}

.related-pages ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-pages a {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}

.site-footer > p {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  color: var(--fg-subtle);
}

.site-footer > p:first-child {
  padding-top: 1.2rem;
}

.site-footer > p:last-child {
  padding-bottom: 1.8rem;
}

.site-footer .footer-credit {
  margin-top: 0.65rem;
  font-size: var(--type-sm);
  text-align: center;
}

.site-footer .footer-credit a {
  font-weight: 750;
}

.media-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: var(--space-4);
  align-items: start;
}

.compact-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gif-grid,
.feature-matrix,
.technical-list {
  display: grid;
  gap: var(--space-4);
}

.gif-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.gif-grid .media-card img {
  width: 100%;
  height: auto;
  background: var(--bg-inset);
}

.feature-matrix,
.technical-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-matrix article,
.technical-list article {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-default) 86%, var(--bg-subtle) 14%);
}

.feature-matrix h3,
.technical-list h3 {
  margin: 0;
  color: var(--fg-default);
  font-size: var(--type-lg);
  line-height: 1.2;
}

.feature-matrix p,
.technical-list p {
  margin: 0;
  color: var(--fg-muted);
}

.feature-matrix a {
  align-self: end;
  font-weight: 800;
}

.store-asset-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-asset-list li {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--bg-default) 86%, var(--bg-subtle) 14%);
}

@media (max-width: 1100px) {
  .site-header,
  .hero-with-media,
  .doc-shell,
  .guide-entry-grid,
  .media-feature-grid,
  .compact-entry-grid,
  .gif-grid,
  .feature-matrix,
  .technical-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .top-nav ul {
    justify-content: flex-start;
  }

  .side-nav {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.65rem 1rem;
  }

  .top-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .top-nav a,
  .hero-actions .button {
    width: 100%;
    white-space: normal;
  }

  .technical-hero h1 {
    max-width: none;
  }

  .home-main .table-scroll {
    overflow-x: visible;
  }

  .home-main .table-scroll table,
  .home-main .table-scroll tbody,
  .home-main .table-scroll tr,
  .home-main .table-scroll th,
  .home-main .table-scroll td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .home-main .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .home-main .table-scroll tbody {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .home-main .table-scroll tr {
    display: grid;
    gap: 0.72rem;
    padding: 0.85rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--bg-default) 84%, var(--bg-subtle) 16%);
  }

  .home-main .table-scroll th,
  .home-main .table-scroll td {
    border: 0;
    padding: 0;
  }

  .home-main .table-scroll th[scope="row"] {
    width: 100%;
    color: var(--fg-default);
    background: transparent;
    font-size: var(--type-md);
  }

  .home-main .table-scroll td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: var(--fg-subtle);
    font-size: var(--type-xs);
    font-weight: 800;
    text-transform: uppercase;
  }

  .doc-article {
    padding: 1rem;
  }
}


@media (prefers-color-scheme: light) {
  .site-header > .brand img {
    filter: invert(1);
  }
}

/* Keep the public extension site visually aligned with the dark extension UI,
   regardless of the visitor's operating-system colour-scheme preference. */
:root {
  --cat-bg: #161b22;
  --cat-canvas: #0d1117;
  --cat-bg-muted: #1c232d;
  --cat-bg-subtle: #212b36;
  --cat-bg-inset: #090c10;
  --cat-panel: #222c38;
  --cat-text: #e6edf3;
  --cat-muted: #9da7b3;
  --cat-subtle: #7d8590;
  --cat-brand: #2f81f7;
  --cat-accent: #2f81f7;
  --cat-border: #30363d;
  --cat-border-muted: #21262d;
  --cat-border-strong: #6e7681;
  --cat-focus: #2f81f7;
  --accent-muted: rgba(47, 129, 247, 0.18);
  --success-muted: rgba(63, 185, 80, 0.18);
  --attention-muted: rgba(210, 153, 34, 0.2);
  --danger-muted: rgba(248, 81, 73, 0.2);
  --done-muted: rgba(163, 113, 247, 0.2);
  --shadow-sm: 0 6px 18px rgba(1, 4, 9, 0.25);
  --shadow-md: 0 18px 40px rgba(1, 4, 9, 0.45);
  --shadow-lg: 0 26px 64px rgba(1, 4, 9, 0.62);
  --brand-icon-filter: invert(1);
  --brand-icon-url: url("../img/icon-dark.png");
}

html {
  color-scheme: dark;
}

body {
  color: var(--fg-default);
  background: linear-gradient(180deg, var(--cat-canvas) 0%, #111821 100%);
}

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

.site-header {
  background: rgba(13, 17, 23, 0.96);
  border-bottom-color: rgba(48, 54, 61, 0.9);
  box-shadow: 0 10px 24px rgba(1, 4, 9, 0.4);
}

.site-header::after {
  background: rgba(48, 54, 61, 0.95);
}

.site-header > .brand img {
  filter: none;
}

.docs-main,
.docs-sidebar,
.hero-panel,
.card,
.media-card,
.feature-grid article,
.section-panel,
.proof-group,
.proof-section,
.feature-band,
.fact-panel,
.value-panel,
.doc-article,
.side-nav,
.table-wrap,
.table-scroll,
.matrix-table,
.diagram-card,
.doc-diagram,
.callout,
.warning,
.related-pages,
.store-asset-list li,
.info-card,
.guide-entry-grid a,
.feature-matrix article,
.technical-list article {
  color: var(--fg-default);
  background: color-mix(in srgb, var(--bg-default) 90%, var(--bg-subtle) 10%);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.section-panel > h2,
.docs-main h1,
.docs-main h2,
.doc-article h1,
.doc-article h2,
.card h2,
.card h3,
.media-card h2,
.media-card h3,
.feature-matrix h3,
.technical-list h3,
.related-pages h2 {
  color: var(--fg-default);
}

.media-card img,
.hero-visual,
.gif-grid .media-card img {
  background: var(--bg-inset);
  border-color: var(--border-default);
}

.media-card figcaption,
.hero-visual figcaption,
.table-wrap table thead,
.table-scroll th,
.matrix-table thead th,
.matrix-table tr.row-group th {
  color: var(--fg-default);
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

.matrix-table tbody tr:nth-child(even) td,
.matrix-table tbody tr:nth-child(even) th {
  background: color-mix(in srgb, var(--bg-default) 82%, var(--bg-subtle) 18%);
}

.matrix-table th,
.matrix-table td,
.table-scroll th,
.table-scroll td {
  border-color: var(--border-default);
}

.button--secondary,
.button--ghost,
.button.secondary {
  color: var(--fg-default);
  background: var(--bg-elevated);
  border-color: var(--border-default);
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible,
.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--fg-default);
  background: var(--bg-subtle);
}

.site-footer {
  color: var(--fg-muted);
  background: var(--bg-muted);
  border-top-color: var(--border-default);
}
