:root {
  color-scheme: light;
  --bg: #f8fafc;
  --ink: #334155;
  --ink-strong: #0f172a;
  --muted: #64748b;
  --muted-strong: #475569;
  --line: #e2e8f0;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-ink: #ffffff;
  --primary-soft: #ecfdf5;
  --cream: #dcc88b;
  --navy: #1e293b;
  --navy-deep: #0f172a;
  --navy-line: rgba(255,255,255,.12);
  --blue: #334155;
  --shadow-soft: 0 18px 58px rgba(15, 23, 42, .08);
  --shadow-brand: 0 24px 64px rgba(15, 23, 42, .14);
  --nav-bg: rgba(248,250,252,.94);
  --select-bg: #ffffff;
  --hero-bg: radial-gradient(circle at 50% 28%, rgba(15, 118, 110, .06), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-raised: rgba(255,255,255,.96);
  --secondary-button-bg: #e2e8f0;
  --secondary-button-hover: #cbd5e1;
  --footer-bg: #0f172a;
  --footer-border: #1e293b;
  --footer-heading: #f8fafc;
  --footer-link: #cbd5e1;
  --footer-muted: #94a3b8;
  --command-bg: #0f172a;
  --command-border: #263244;
  --command-label: #aeb6c2;
  --pill-border: #c7e8e5;
  --note-bg: #f3fbfa;
  --note-border: #c7e8e5;
  --note-ink: #1f625f;
  --toggle-bg: #e2e8f0;
  --toggle-border: #cbd5e1;
  --toggle-icon: #64748b;
  --toggle-knob: #ffffff;
  --radius: 8px;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101214;
  --ink: #d7dde2;
  --ink-strong: #f4f7f8;
  --muted: #8f9aa3;
  --muted-strong: #aeb8c2;
  --line: #2a3035;
  --panel: #171a1d;
  --panel-soft: #1d2226;
  --primary: #2aa198;
  --primary-hover: #37b8ad;
  --primary-ink: #ffffff;
  --primary-soft: rgba(42, 161, 152, .14);
  --cream: #ead89f;
  --navy: #171a1d;
  --navy-deep: #0b0d0f;
  --navy-line: rgba(255,255,255,.12);
  --blue: #a8b3bd;
  --shadow-soft: 0 18px 58px rgba(0, 0, 0, .28);
  --shadow-brand: 0 24px 64px rgba(0, 0, 0, .36);
  --nav-bg: rgba(16, 18, 20, .88);
  --select-bg: #171a1d;
  --hero-bg: radial-gradient(circle at 50% 30%, rgba(42, 161, 152, .045), transparent 38%), linear-gradient(180deg, #131619 0%, #101214 100%);
  --surface: #171a1d;
  --surface-soft: #1d2226;
  --surface-raised: rgba(23, 26, 29, .96);
  --secondary-button-bg: #22272c;
  --secondary-button-hover: #2b3238;
  --footer-bg: #0b0d0f;
  --footer-border: #20252a;
  --footer-heading: #f4f7f8;
  --footer-link: #c8d0d6;
  --footer-muted: #88939d;
  --command-bg: #111417;
  --command-border: #252b30;
  --command-label: #9aa5ae;
  --pill-border: rgba(42, 161, 152, .28);
  --note-bg: rgba(42, 161, 152, .10);
  --note-border: rgba(42, 161, 152, .22);
  --note-ink: #9be3dc;
  --toggle-bg: #20252a;
  --toggle-border: #30373d;
  --toggle-icon: #98a3ad;
  --toggle-knob: #f4f7f8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--footer-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--footer-bg);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
}

.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 760;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  outline: 0;
}

.nav-links a[aria-current="page"] {
  color: var(--primary);
  font-weight: 760;
}

.language-select select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 28px 0 10px;
  background: var(--select-bg);
  color: var(--ink-strong);
  font: inherit;
  font-size: 14px;
}

.language-select select:focus-visible {
  outline: 2px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

.theme-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  background: var(--select-bg);
  color: var(--ink-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

.theme-toggle-track {
  position: relative;
  width: 58px;
  height: 34px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
}

.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--toggle-knob);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .16);
  transition: transform 180ms ease;
}

[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(24px);
}

.theme-icon {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  display: block;
  color: var(--toggle-icon);
}

.theme-sun {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-moon {
  border-radius: 50%;
  box-shadow: inset -4px 0 0 currentColor;
}

.theme-toggle-text {
  min-width: 34px;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero {
  min-height: calc(100vh - 60px - 206px);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--hero-bg);
  padding: 156px 24px 118px;
  text-align: center;
}

.hero-inner {
  width: min(780px, 100%);
  min-width: 0;
}

.hero-logo-frame {
  position: relative;
  width: min(262px, 76vw);
  aspect-ratio: 502 / 574;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}

.hero-logo {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, .12));
  transition: opacity 150ms ease, filter 150ms ease;
}

.hero-logo-dark {
  opacity: 0;
}

[data-theme="dark"] .hero-logo {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .26));
}

[data-theme="dark"] .hero-logo-light {
  opacity: 0;
}

[data-theme="dark"] .hero-logo-dark {
  opacity: 1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 5.5vw, 52px);
  line-height: 1.04;
  font-weight: 760;
}

.tagline {
  width: min(690px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.demo-panel {
  width: min(768px, 100%);
  max-width: 100%;
  min-width: 0;
  min-height: 148px;
  display: grid;
  align-content: center;
  gap: 7px;
  margin: 42px auto 0;
  border-radius: var(--radius);
  padding: 26px 36px;
  border: 1px solid var(--command-border);
  background: var(--command-bg);
  box-shadow: var(--shadow-brand);
  color: #f8fafc;
  text-align: left;
}

.demo-line {
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14px;
}

.demo-line.muted {
  color: #cbd5e1;
}

.prompt {
  color: var(--cream);
}

.hero-actions,
.doc-actions {
  width: min(100%, 690px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  margin-right: auto;
  margin-left: auto;
}

.button {
  min-width: 130px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 760;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.button.primary:hover {
  background: var(--primary-hover);
}

.button.secondary {
  background: var(--secondary-button-bg);
  color: var(--ink-strong);
}

.button.secondary:hover {
  background: var(--secondary-button-hover);
}

.footer {
  position: relative;
  flex: 0 0 auto;
  min-height: 206px;
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  color: #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 72px;
  padding: 36px 0 22px;
}

.footer-col h2 {
  margin: 0 0 16px;
  color: var(--footer-heading);
  font-size: 16px;
  font-weight: 720;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  min-width: 44px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--footer-link);
  font-size: 16px;
}

.footer-col a:hover {
  color: #ffffff;
}

.copyright {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--footer-muted);
  text-align: center;
  font-size: 15px;
}

.doc-hero {
  padding: 82px 0 44px;
}

.doc-hero-inner {
  width: min(830px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doc-hero h1 {
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.05;
}

.doc-lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.doc-shell {
  width: min(1120px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 0 auto;
  padding: 0 0 72px;
}

.toc-card {
  position: sticky;
  top: 84px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 2px 0 2px 18px;
  background: transparent;
}

.toc-card h2 {
  margin-bottom: 12px;
  color: var(--ink-strong);
  font-size: 14px;
}

.toc-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-card a {
  min-width: 44px;
  min-height: 32px;
  display: flex;
  align-items: center;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.4;
}

.toc-card a:hover {
  color: var(--primary);
}

.content-stack {
  display: grid;
  gap: 0;
  min-width: 0;
}

.content-panel {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  background: transparent;
  box-shadow: none;
}

.content-panel:first-child {
  padding-top: 0;
}

.content-panel:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.content-panel h2 {
  margin-bottom: 14px;
  color: var(--ink-strong);
  font-size: 28px;
  line-height: 1.18;
}

.content-panel h3 {
  margin: 22px 0 8px;
  color: var(--ink-strong);
  font-size: 18px;
}

.content-panel p,
.info-card p,
.command-card p {
  color: var(--muted-strong);
}

.content-panel p {
  max-width: 760px;
}

.command {
  min-width: 0;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--command-border);
  border-radius: var(--radius);
  background: var(--command-bg);
  color: #f8fafc;
}

.command-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 10px 14px;
  color: var(--command-label);
  font-size: 13px;
}

.command pre {
  margin: 0;
  overflow-x: auto;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 780;
}

.step h3,
.step p {
  margin: 0;
}

.step p {
  font-size: 14px;
}

.card-grid,
.command-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

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

.command-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.command-card {
  min-height: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.info-card:last-child,
.command-card:last-child {
  border-bottom: 0;
}

.command-card h3,
.info-card h3 {
  margin-bottom: 10px;
  color: var(--ink-strong);
  font-size: 17px;
  line-height: 1.2;
}

.pill {
  display: none;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  margin-bottom: 12px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 740;
}

.table-wrap {
  margin: 18px 0 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--surface);
}

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

th {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 760;
}

td {
  color: var(--muted-strong);
  font-size: 14px;
}

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

.note {
  margin-top: 18px;
  border: 1px solid var(--note-border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--note-bg);
  color: var(--note-ink);
}

.note p {
  margin: 0;
  color: var(--note-ink);
}

.doc-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hub-hero {
  border-bottom: 1px solid var(--line);
  padding: 86px 0 54px;
  background: var(--bg);
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 54px;
  align-items: center;
}

.hub-hero-copy h1 {
  max-width: 760px;
  color: var(--ink-strong);
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.05;
}

.hub-hero-copy .doc-actions {
  justify-content: flex-start;
  margin-left: 0;
}

.hub-command {
  margin: 0;
  box-shadow: var(--shadow-brand);
}

.hub-search-band {
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  background: var(--surface-soft);
}

.hub-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.hub-search-head h2,
.hub-list-head h2,
.hub-filters h2,
.hub-detail h2 {
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 28px;
  line-height: 1.18;
}

.hub-search-head p,
.hub-list-head p,
.hub-filters p,
.hub-detail p {
  margin: 0;
  color: var(--muted-strong);
}

.hub-api-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.hub-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
}

.hub-search input,
.hub-search select {
  min-height: 48px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  background: var(--select-bg);
  color: var(--ink-strong);
  font: inherit;
}

.hub-search input:focus-visible,
.hub-search select:focus-visible {
  outline: 2px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

.hub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hub-stats div {
  min-width: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.hub-stats div:last-child {
  border-right: 0;
}

.hub-stats dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.hub-stats dd {
  margin: 0;
  color: var(--ink-strong);
  font-size: 24px;
  font-weight: 760;
}

.hub-shell {
  width: min(1120px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 0 auto;
  padding: 42px 0 72px;
}

.hub-filters {
  position: sticky;
  top: 84px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 2px 0 2px 18px;
}

.hub-filter-group {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.hub-filter-group h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
}

.hub-tag {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 640;
  text-align: left;
  cursor: pointer;
}

.hub-tag:hover,
.hub-tag.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

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

.hub-list-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.hub-result-count {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.dock-list {
  display: grid;
  gap: 0;
}

.dock-row {
  border-bottom: 1px solid var(--line);
}

.dock-row button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(164px, max-content);
  gap: 12px 18px;
  border: 0;
  border-left: 3px solid transparent;
  padding: 18px 0 18px 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dock-row button:hover,
.dock-row.is-selected button {
  border-left-color: var(--primary);
  background: var(--primary-soft);
}

.dock-row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dock-row-main strong {
  color: var(--ink-strong);
  font-size: 18px;
}

.dock-row-main span {
  color: var(--muted-strong);
  font-size: 14px;
}

.dock-row-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.dock-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dock-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 720;
}

.hub-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
}

.hub-detail {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.hub-version-table {
  margin-top: 0;
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 32px, 1280px);
  }

  .nav-inner {
    height: auto;
    min-height: 60px;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding: 92px 16px 100px;
  }

  .doc-shell,
  .hub-hero-grid,
  .hub-shell,
  .footer-grid,
  .card-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .toc-card,
  .hub-filters {
    position: static;
  }

  .toc-card a,
  .footer-col a {
    min-height: 44px;
  }

  .footer-grid {
    gap: 28px;
  }

  .hub-search-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .language-select select {
    min-height: 44px;
    max-width: 104px;
    padding-right: 22px;
    font-size: 13px;
  }

  .theme-toggle {
    min-width: 54px;
    min-height: 44px;
    padding: 4px;
  }

  .theme-toggle-text {
    display: none;
  }

  .theme-toggle-track {
    width: 48px;
    height: 30px;
  }

  .theme-toggle-knob {
    width: 22px;
    height: 22px;
  }

  [data-theme="dark"] .theme-toggle-knob {
    transform: translateX(18px);
  }

  .hero-logo-frame {
    width: min(238px, 78vw);
  }

  .hero-logo {
    width: 100%;
    height: auto;
  }

  .tagline,
  .doc-lede {
    font-size: 18px;
  }

  .demo-panel {
    min-height: 142px;
    padding: 22px;
  }

  .button {
    width: 100%;
  }

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

  .doc-hero-inner,
  .doc-shell,
  .hub-shell {
    width: calc(100% - 32px);
  }

  .content-panel {
    padding: 20px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .hub-hero {
    padding: 56px 0 42px;
  }

  .hub-hero-copy .doc-actions,
  .hub-list-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hub-stats {
    grid-template-columns: 1fr;
  }

  .hub-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hub-stats div:last-child {
    border-bottom: 0;
  }

  .dock-row button {
    grid-template-columns: 1fr;
  }

  .dock-row-meta {
    white-space: normal;
  }
}
