:root {
  color-scheme: light dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Light defaults */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #eef2f6;
  --surface-hover: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #cbd5e1;
  --border-subtle: #e2e8f0;

  --accent: #0f4c81;
  --accent-hover: #0a3861;
  --accent-contrast: #ffffff;
  --accent-soft: #e0eef9;
  --focus-ring: #0284c7;

  --pass-text: #166534;
  --pass-bg: #dcfce7;
  --pass-border: #86efac;
  --warn-text: #92400e;
  --warn-bg: #fef3c7;
  --warn-border: #fcd34d;
  --fail-text: #991b1b;
  --fail-bg: #fee2e2;
  --fail-border: #fca5a5;

  --gauge-red: #ee5340;
  --gauge-amber: #f5ae3b;
  --gauge-green: #84cc16;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container-max: 72rem;
  --header-height: 4rem;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

@supports not (color: light-dark(white, black)) {
  @media (prefers-color-scheme: dark) {
    :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
      --bg: #0b1120;
      --surface: #111c33;
      --surface-subtle: #182542;
      --surface-hover: #223257;
      --text: #f1f5f9;
      --text-muted: #94a3b8;
      --border: #334155;
      --border-subtle: #1e293b;
      --accent: #60a5fa;
      --accent-hover: #93c5fd;
      --accent-contrast: #081224;
      --accent-soft: #172a4a;
      --focus-ring: #38bdf8;
      --pass-text: #86efac;
      --pass-bg: #052e16;
      --pass-border: #166534;
      --warn-text: #fcd34d;
      --warn-bg: #451a03;
      --warn-border: #b45309;
      --fail-text: #fca5a5;
      --fail-bg: #450a0a;
      --fail-border: #b91c1c;
    }
  }
}

@supports (color: light-dark(white, black)) {
  :root {
    --bg: light-dark(#f8fafc, #0b1120);
    --surface: light-dark(#ffffff, #111c33);
    --surface-subtle: light-dark(#eef2f6, #182542);
    --surface-hover: light-dark(#e2e8f0, #223257);
    --text: light-dark(#0f172a, #f1f5f9);
    --text-muted: light-dark(#475569, #94a3b8);
    --border: light-dark(#cbd5e1, #334155);
    --border-subtle: light-dark(#e2e8f0, #1e293b);

    --accent: light-dark(#0f4c81, #60a5fa);
    --accent-hover: light-dark(#0a3861, #93c5fd);
    --accent-contrast: light-dark(#ffffff, #081224);
    --accent-soft: light-dark(#e0eef9, #172a4a);
    --focus-ring: light-dark(#0284c7, #38bdf8);

    --pass-text: light-dark(#166534, #86efac);
    --pass-bg: light-dark(#dcfce7, #052e16);
    --pass-border: light-dark(#86efac, #166534);
    --warn-text: light-dark(#92400e, #fcd34d);
    --warn-bg: light-dark(#fef3c7, #451a03);
    --warn-border: light-dark(#fcd34d, #b45309);
    --fail-text: light-dark(#991b1b, #fca5a5);
    --fail-bg: light-dark(#fee2e2, #450a0a);
    --fail-border: light-dark(#fca5a5, #b91c1c);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  accent-color: var(--accent);
}

img {
  display: block;
  max-inline-size: 100%;
  height: auto;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:not(pre) > code {
  font-size: 0.875em;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

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

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

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 0.75rem;
}

.container {
  inline-size: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* Header & Responsive Navigation */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background-color: var(--surface);
  border-block-end: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: var(--header-height);
  inline-size: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--text);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
}

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-button:hover {
  background-color: var(--surface-subtle);
}

.site-menu {
  position: fixed;
  inset: auto;
  inset-block-start: 4.5rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(82dvw, 18rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 5.5rem);
  margin: 0.5rem 0 0;
  padding: 0.5rem;
  list-style: none;
  overflow: auto;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgb(2 6 23 / 0.18);
}

@supports not selector(:popover-open) {
  .site-menu[popover]:not(.\:popover-open) {
    display: none;
  }
}

.site-menu[popover]:is(:popover-open, .\:popover-open) {
  display: grid;
  gap: 0.25rem;
}

.site-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-menu a:hover {
  background-color: var(--surface-subtle);
  color: var(--accent);
}

.site-header.is-measuring * {
  transition: none !important;
}

.site-header.is-wide .menu-button {
  display: none;
}

.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header.is-wide .site-menu::backdrop {
  display: none;
}

.site-header.is-wide .site-menu a {
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
}

/* Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover {
  background-color: var(--surface-subtle);
}

.theme-toggle .theme-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .theme-option-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-toggle .theme-option-dark {
    display: none;
  }

  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-toggle .theme-option-light {
    display: inline-flex;
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-toggle .theme-option-dark {
  display: none;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-toggle .theme-option-light {
  display: inline-flex;
}

/* Sections & Typography */
main {
  display: grid;
  gap: 4rem;
  padding-block: 2.5rem 4.5rem;
}

.section-header {
  display: grid;
  gap: 0.5rem;
  margin-block-end: 1.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.875rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0;
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-inline-size: 58ch;
}

/* Gauge Accent Rule */
.gauge-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  block-size: 4px;
  inline-size: 6rem;
  border-radius: 999px;
  overflow: hidden;
}

.gauge-bar > span:nth-child(1) {
  background-color: var(--gauge-red);
}

.gauge-bar > span:nth-child(2) {
  background-color: var(--gauge-amber);
}

.gauge-bar > span:nth-child(3) {
  background-color: var(--gauge-green);
}

/* Hero */
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--accent-contrast);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  color: var(--text);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Card Surface */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* PR Verdict Live Preview */
.preview-card {
  display: grid;
  gap: 1rem;
}

.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.preview-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.state-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.state-switch button {
  padding: 0.3rem 0.65rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.state-switch button[aria-pressed="true"] {
  background-color: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(2 6 23 / 0.12);
}

.verdict-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--border-subtle);
}

.verdict-title {
  font-weight: 700;
  font-size: 1.0625rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 700;
}

.status-pill[data-status="pass"] {
  color: var(--pass-text);
  background-color: var(--pass-bg);
  border-color: var(--pass-border);
}

.status-pill[data-status="warn"] {
  color: var(--warn-text);
  background-color: var(--warn-bg);
  border-color: var(--warn-border);
}

.status-pill[data-status="fail"] {
  color: var(--fail-text);
  background-color: var(--fail-bg);
  border-color: var(--fail-border);
}

.verdict-alert {
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  border-inline-start: 3px solid var(--warn-border);
  background-color: var(--warn-bg);
  color: var(--warn-text);
  font-size: 0.875rem;
}

.verdict-alert[data-severity="fail"] {
  border-inline-start-color: var(--fail-border);
  background-color: var(--fail-bg);
  color: var(--fail-text);
}

.verdict-alert ul {
  margin: 0.375rem 0 0;
  padding-inline-start: 1.25rem;
}

/* Format Grid */
.format-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.format-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.format-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.format-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.45rem;
  border-radius: 4px;
  background-color: var(--accent-soft);
  color: var(--accent);
}

.format-ecosystems {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.format-notes {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Tabs */
.tabs {
  display: grid;
  gap: 1rem;
}

.tablist {
  display: flex;
  overflow-x: auto;
  border-block-end: 1px solid var(--border-subtle);
  scrollbar-width: thin;
}

.tablist [role="tab"] {
  position: relative;
  flex: none;
  padding: 0.65rem 1rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tablist [role="tab"]:hover {
  color: var(--text);
}

.tablist [role="tab"][aria-selected="true"] {
  color: var(--accent);
}

.tablist [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid var(--accent);
}

.tabpanels {
  display: grid;
}

.tabpanels > [role="tabpanel"] {
  grid-area: 1 / 1;
  min-inline-size: 0;
}

.tab-panel-body {
  display: grid;
  gap: 1rem;
}

/* Component-specific Dark Code Surface */
.code-card {
  color-scheme: dark;
  background-color: #0b1120;
  color: #e2e8f0;
  accent-color: #38bdf8;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: #111c33;
  border-block-end: 1px solid #1e293b;
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  background-color: #1e293b;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: #334155;
}

.code-block {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #e2e8f0;
  background-color: #0b1120;
}

/* Interactive Configurator */
.configurator-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .configurator-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.config-form {
  display: grid;
  gap: 1.25rem;
}

.config-group {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.config-group legend {
  padding: 0;
  margin-block-end: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.field-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select {
  inline-size: 100%;
  min-block-size: 2.35rem;
  padding: 0.4rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.field input.mono {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.toggle-grid {
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  inline-size: 1.05rem;
  block-size: 1.05rem;
  margin: 0;
}

.config-output-sticky {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 60rem) {
  .config-output-sticky {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 1rem);
  }
}

.config-notes {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive Data Tables */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(32rem, 75dvh);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  container-type: inline-size;
}

.data-table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.data-table caption {
  padding: 0.75rem 1rem;
  text-align: start;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--surface);
  border-block-end: 1px solid var(--border-subtle);
}

.data-table th,
.data-table td {
  padding: 0.625rem 0.875rem;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--border-subtle);
}

.data-table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background-color: var(--surface-subtle);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.data-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background-color: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-block-end: 0;
}

.data-table .num {
  text-align: end;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@container (width < 600px) {
  .ref-table,
  .ref-table thead,
  .ref-table tbody,
  .ref-table tr,
  .ref-table th,
  .ref-table td {
    display: block;
  }

  .ref-table thead {
    display: none;
  }

  .ref-table tbody {
    padding: 0.75rem;
  }

  .ref-table tbody tr {
    margin-block-end: 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .ref-table tbody tr:last-child {
    margin-block-end: 0;
  }

  .ref-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background-color: var(--surface-subtle);
    border-block-end: 1px solid var(--border-subtle);
    white-space: normal;
  }

  .ref-table tbody td {
    border-block-end: 1px solid var(--border-subtle);
  }

  .ref-table-3col {
    --label-2: "Default";
    --label-3: "Description";
  }

  .ref-table-cli {
    --label-2: "Default";
    --label-3: "Description";
  }

  .ref-table-2col {
    --label-2: "Description";
  }

  .ref-table td:nth-child(2)::before {
    content: var(--label-2) ": ";
    font-weight: 700;
    color: var(--text-muted);
  }

  .ref-table td:nth-child(3)::before {
    content: var(--label-3) ": ";
    font-weight: 700;
    color: var(--text-muted);
  }
}

/* Accordion (Security & Gotchas) */
.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion details {
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.95rem 1.125rem;
  font-weight: 600;
  cursor: pointer;
}

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

.accordion summary:hover {
  background-color: var(--surface-subtle);
  border-radius: var(--radius-md);
}

.accordion details[open] > summary:hover {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

.accordion summary::before {
  content: "";
  inline-size: 1em;
  block-size: 1em;
  flex-shrink: 0;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.22 5.97a.75.75 0 0 1 1.06 0L8 9.69l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L3.22 7.03a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.accordion details[open] > summary::before {
  rotate: 0deg;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before {
    transition: rotate 0.2s ease;
  }
}

.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.accordion details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.28s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.accordion-body {
  display: grid;
  gap: 0.75rem;
  padding: 0 1.125rem 1.125rem;
  border-block-start: 1px solid var(--border-subtle);
  padding-block-start: 0.875rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.screenshot-frame {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background-color: #ffffff;
  max-inline-size: 38rem;
}

/* Footer */
.site-footer {
  border-block-start: 1px solid var(--border-subtle);
  padding-block: 2rem;
  background-color: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (forced-colors: active) {
  .tablist [role="tab"][aria-selected="true"]::after {
    border-block-end-color: Highlight;
  }

  .card,
  .accordion details,
  .table-wrapper {
    border: 1px solid CanvasText;
  }
}
