:root {
  color-scheme: light;
  --ink: #102b46;
  --muted: #506376;
  --quiet: #68798a;
  --line: #dce4eb;
  --paper: #f6f8fa;
  --surface: #ffffff;
  --surface-muted: #edf3f8;
  --selected: #e5f1fc;
  --blue: #0867c8;
  --blue-strong: #0757a8;
  --button-text: #ffffff;
  --focus: #0867c8;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
  scroll-behavior: smooth;
}

body.developer-docs {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.developer-docs a {
  color: var(--blue);
  text-underline-offset: 0.16em;
}

.developer-docs a:hover {
  color: var(--blue-strong);
}

.developer-docs :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.docs-skip-link {
  position: fixed;
  z-index: 20;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transform: translateY(-160%);
}

.docs-skip-link:focus {
  transform: none;
}

.beluga-header--reference {
  --ink: #102b46;
  --muted: #506376;
  --line: #dce4eb;
  --surface: #ffffff;
  --surface-muted: #edf3f8;
  --blue: #0867c8;
  --blue-strong: #0757a8;
  --button-text: #ffffff;
  --focus: #0867c8;
}

.developer-docs .beluga-header__action {
  color: var(--button-text);
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 780px);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  width: min(calc(100% - 56px), 1120px);
  margin: 40px auto 80px;
}

.docs-sidebar {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.docs-navigation {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.docs-navigation > summary {
  display: none;
}

.docs-navigation__body {
  padding: 18px 14px 16px;
}

.docs-search-label,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docs-search-label {
  display: block;
  margin: 0 4px 7px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.docs-search {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #9baebf;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.search-status {
  min-height: 18px;
  margin: 4px 4px 8px;
  color: var(--muted);
  font-size: 12px;
}

.docs-nav {
  display: grid;
  gap: 3px;
}

.docs-nav a {
  display: block;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.docs-nav a:hover,
.docs-nav a[aria-current="location"] {
  background: var(--selected);
  color: var(--ink);
}

.sidebar-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 4px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.docs-main {
  min-width: 0;
}

.docs-hero {
  padding: 6px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
}

.docs-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-intro {
  max-width: 680px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.path-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink) !important;
  text-decoration: none;
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}

.path-card:hover {
  border-color: #9baebf;
  background: #fbfdff;
}

.path-card__number {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.path-card strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.path-card > span:not(.path-card__number):not(.path-card__link) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.path-card__link {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.notice {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--blue);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

.notice--warning {
  border-inline-start-color: #b46406;
  background: #fffaf1;
}

.guide-section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.guide-section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.guide-section h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.guide-section p {
  max-width: 72ch;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

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

.steps,
.plain-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding-inline-start: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.steps li,
.plain-list li {
  padding-inline-start: 4px;
}

.steps strong,
.plain-list strong {
  color: var(--ink);
}

.steps--compact {
  gap: 8px;
}

.muted {
  color: var(--muted) !important;
  font-size: 14px;
}

.developer-docs code,
.developer-docs pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.developer-docs p code,
.developer-docs li code,
.notice code,
.connection-details code,
.tool-list code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-muted);
  color: #173e64;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.code-card {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid #263c50;
  border-radius: 8px;
  background: #101b27;
}

.code-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid #34495d;
  color: #d6e3ef;
  font-size: 13px;
  font-weight: 600;
}

.copy-button {
  min-width: 72px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #536c82;
  border-radius: 6px;
  background: #172635;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.copy-button:hover {
  background: #203b53;
}

.code-card pre {
  max-width: 100%;
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  color: #e4edf6;
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
}

.connection-details {
  display: grid;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.connection-details > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.connection-details > div:last-child {
  border-bottom: 0;
}

.connection-details > div > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.connection-details code {
  align-self: center;
  overflow-wrap: anywhere;
}

.tool-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.tool-list > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.tool-list dt {
  margin-bottom: 5px;
  font-weight: 700;
}

.tool-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-table {
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.status-table th,
.status-table td {
  min-width: 105px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.status-table th {
  background: var(--surface-muted);
  color: var(--ink);
  font-weight: 700;
}

.status-table td {
  color: var(--muted);
}

.status-table tr:last-child > * {
  border-bottom: 0;
}

.troubleshooting-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.troubleshooting-list details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.troubleshooting-list summary {
  min-height: 48px;
  padding: 13px 16px;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.troubleshooting-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.troubleshooting-list p {
  padding: 12px 16px 16px;
  margin: 0;
  font-size: 14px;
}

.docs-contact {
  margin-top: 22px !important;
  padding: 16px;
  border-radius: 6px;
  background: var(--selected);
}

.docs-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.docs-footer a {
  font-weight: 700;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .docs-shell {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    gap: 28px;
    width: min(calc(100% - 40px), 800px);
  }

  .path-cards {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 150px;
  }
}

@media (max-width: 680px) {
  .developer-docs .beluga-header__actions .beluga-header__link {
    display: none;
  }

  .docs-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: calc(100% - 32px);
    margin: 24px auto 56px;
  }

  .docs-sidebar,
  .docs-main {
    width: 100%;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-navigation > summary {
    display: list-item;
    min-height: 46px;
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 650;
    cursor: pointer;
  }

  .docs-navigation__body {
    padding-top: 4px;
  }

  .docs-hero {
    padding-top: 4px;
  }

  .hero-intro {
    font-size: 16px;
  }

  .guide-section {
    padding: 28px 0;
  }

  .connection-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .status-table table {
    min-width: 600px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
