.seo-copy-section {
  scroll-margin-top: 6rem;
}

.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.seo-feature-card,
.faq-list details,
.seo-page-card {
  border: 1px solid var(--border, #dbe3ef);
  border-radius: 0.9rem;
  background: var(--surface, #ffffff);
  padding: 1.1rem;
}

.seo-feature-card h3,
.seo-page-card h2,
.seo-page-card h3 {
  margin-top: 0;
}

.seo-feature-card p,
.seo-note,
.faq-list p,
.seo-page-card p,
.seo-page-card li {
  line-height: 1.75;
}

.seo-note {
  margin-top: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list details[open] summary {
  margin-bottom: 0.65rem;
}

.seo-page-shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 3rem;
}

.seo-page-hero {
  margin-bottom: 1.5rem;
}

.seo-page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: 1.05;
  margin: 0.75rem 0 1rem;
}

.seo-page-hero p {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.seo-page-grid {
  display: grid;
  gap: 1rem;
}

.seo-page-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-code {
  overflow-x: auto;
  white-space: pre;
}

.seo-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.seo-inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border, #dbe3ef);
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 700;
}

.seo-breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Accessibility: maintain WCAG AA contrast for small and secondary text. */
:root {
  --muted: #334155 !important;
}

.sidebar-label,
.sidebar-label-row p,
.sidebar-label-row span,
.sidebar-loading,
.section-breadcrumb,
.info-label,
.api-status,
.category-heading span,
.docs-footer,
.endpoint-meta span,
.parameter-label em {
  color: #475569 !important;
}

.token-comment {
  color: #cbd5e1 !important;
}

.method-put,
.method-patch {
  color: #713f12 !important;
}

.nav-item-count {
  color: #475569 !important;
}

.health-dot {
  background-color: #64748b;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

@media (prefers-contrast: more) {
  :root {
    --muted: #1e293b !important;
    --border: #94a3b8;
    --border-strong: #64748b;
  }
}

@media (max-width: 800px) {
  .seo-feature-grid,
  .seo-page-grid.two-column {
    grid-template-columns: 1fr;
  }

  .seo-page-shell {
    padding-top: 6rem;
  }
}

@media (max-width: 760px) {
  .sidebar-label,
  .sidebar-label-row p,
  .sidebar-label-row > span,
  .sidebar-loading {
    color: #cbd5e1 !important;
  }

  .nav-item-count {
    color: #dbeafe !important;
  }
}
