html {
  background: var(--color-bg-page);
  scrollbar-gutter: stable;
}
@supports (scrollbar-gutter: stable) {
  html {
    overflow-y: auto;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.6;
}
a {
  color: inherit;
}
code {
  font-family: var(--mono);
  font-size: 0.875em;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}
.shell {
  width: min(960px, calc(100% - var(--space-8)));
  margin: 0 auto;
  padding: 0 0 var(--space-12);
}
.page-intro {
  padding: var(--space-6) 0 var(--space-4);
}
.page-intro:empty {
  display: none;
}
.shell > .page-body:first-child {
  padding-top: var(--space-6);
}
.page-intro h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-lede {
  margin: 0.375rem 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  max-width: 42rem;
  line-height: 1.5;
}
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
  overflow-x: visible;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar {
  display: none;
}
.tab-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-2) 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s;
}
.tab-link:hover {
  color: var(--color-text-primary);
}
.tab-link.is-current {
  color: var(--color-primary-700);
  border-bottom-color: var(--color-primary-600);
  font-weight: 600;
}
.page-body {
  display: grid;
  gap: var(--space-5);
}
.page-body > * {
  min-width: 0;
}
.content-section {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
}
.content-section h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.content-section p {
  line-height: 1.6;
}
.section-kicker,
.muted {
  color: var(--color-text-tertiary);
}
.section-kicker {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.shell-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3) var(--space-4);
  margin: 0;
}
.shell-meta dt {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-secondary);
}
.shell-meta dd {
  margin: 0.125rem 0 0;
  font-weight: 600;
  font-size: var(--text-sm);
  word-break: break-word;
}
dt,
dd {
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
