/* ─── Design tokens (matched to caselaw-vue) ─── */

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(240 10% 3.9%);
  --primary: hsl(240 5.9% 10%);
  --primary-foreground: hsl(0 0% 98%);
  --secondary: hsl(240 4.8% 95.9%);
  --secondary-foreground: hsl(240 5.9% 10%);
  --muted: hsl(240 4.8% 95.9%);
  --muted-foreground: hsl(240 3.8% 46.1%);
  --accent: hsl(240 4.8% 95.9%);
  --accent-foreground: hsl(240 5.9% 10%);
  --border: hsl(240 5.9% 90%);
  --input: hsl(240 5.9% 90%);
  --ring: hsl(240 5.9% 10%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(240 10% 3.9%);
  --destructive: hsl(0 72.2% 50.6%);
  --code-bg: hsl(240 4.8% 95.9%);
  --code-border: hsl(240 5.9% 90%);
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --background: hsl(240 10% 3.9%);
  --foreground: hsl(0 0% 98%);
  --primary: hsl(0 0% 98%);
  --primary-foreground: hsl(240 5.9% 10%);
  --secondary: hsl(240 3.7% 15.9%);
  --secondary-foreground: hsl(0 0% 98%);
  --muted: hsl(240 3.7% 15.9%);
  --muted-foreground: hsl(240 5% 64.9%);
  --accent: hsl(240 3.7% 15.9%);
  --accent-foreground: hsl(0 0% 98%);
  --border: hsl(240 3.7% 15.9%);
  --input: hsl(240 3.7% 15.9%);
  --ring: hsl(240 4.9% 83.9%);
  --card: hsl(240 10% 3.9%);
  --card-foreground: hsl(0 0% 98%);
  --destructive: hsl(0 62.8% 30.6%);
  --code-bg: hsl(240 5.9% 10%);
  --code-border: hsl(240 3.7% 15.9%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
}

/* ─── Reset ─── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code,
pre {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─── Header ─── */

.header {
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--background) 95%, transparent);
}

@supports (backdrop-filter: blur(8px)) {
  .header {
    background: color-mix(in srgb, var(--background) 60%, transparent);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0;
}

.header-left {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.header-left a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
}

.header-left a:hover {
  color: var(--foreground);
}

.header-left svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.header-left span {
  font-size: 0.875rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.header-nav a {
  transition: color 0.15s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--foreground);
}

.header-right {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.header-divider {
  width: 1px;
  height: 100%;
  background: var(--border);
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.header-icon-btn:hover {
  color: var(--foreground);
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.header-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Light mode: show moon (to switch to dark), hide sun */
[data-theme="light"] .icon-sun,
:root:not([data-theme]) .icon-sun {
  display: none;
}

/* Dark mode: show sun (to switch to light), hide moon */
[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .header-icon-btn {
  color: var(--foreground);
}

/* ─── Footer ─── */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  text-align: center;
}

@supports (backdrop-filter: blur(8px)) {
  .footer {
    background: color-mix(in srgb, var(--background) 70%, transparent);
  }
}

.footer p {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--muted-foreground) 50%, transparent);
}

.footer a {
  transition: color 0.15s;
}

.footer a:hover {
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
}

/* ─── Layout ─── */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 48px;
  padding-bottom: 3.5rem;
}

.page-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  position: relative;
}

/* ─── Dotted background (full page) ─── */

.page-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-dots-light {
  opacity: 0.6;
  background-image: radial-gradient(rgba(15, 23, 42, 0.2) 1.2px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 15%, black 50%, black 100%);
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 15%, black 50%, black 100%);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}

.page-dots-dark {
  display: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(248, 250, 252, 0.2) 1.2px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 15%, black 50%, black 100%);
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 15%, black 50%, black 100%);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}

[data-theme="dark"] .page-dots-light {
  display: none;
}

[data-theme="dark"] .page-dots-dark {
  display: block;
}

/* ─── Landing hero ─── */

.hero {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ─── Meta info grid ─── */

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.meta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.meta-card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.35rem;
}

.meta-card-value {
  font-size: 0.85rem;
  font-weight: 500;
}

.meta-card-value code {
  font-size: 0.8rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
}

/* ─── Section ─── */

.section {
  scroll-margin-top: 64px;
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  max-width: 640px;
}

/* ─── Feature cards (landing page) ─── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.835rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ─── Endpoint cards (landing page) ─── */

.endpoints-list {
  display: grid;
  gap: 0.5rem;
}

.endpoint-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background 0.15s, border-color 0.15s;
}

.endpoint-link:hover {
  background: var(--muted);
  color: var(--foreground);
}

.endpoint-link .method-badge {
  flex-shrink: 0;
}

.endpoint-link-path {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.endpoint-link-desc {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-left: auto;
}

/* ─── Badge ─── */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.15s;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

[data-theme="dark"] .badge {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: transparent;
}

.badge-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.badge-destructive {
  background: color-mix(in srgb, var(--destructive) 10%, transparent);
  color: var(--destructive);
}

/* ─── Method badge ─── */

.method-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.method-post {
  color: hsl(142 76% 36%);
  border-color: hsl(142 76% 36% / 0.3);
  background: hsl(142 76% 36% / 0.1);
}

.method-get {
  color: hsl(217 91% 60%);
  border-color: hsl(217 91% 60% / 0.3);
  background: hsl(217 91% 60% / 0.1);
}

/* ─── Button ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  opacity: 0.9;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--input);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  opacity: 1;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  opacity: 0.8;
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: none;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  opacity: 1;
}

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

/* ─── Code block ─── */

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: 0.8rem;
  color: var(--foreground);
  white-space: pre;
  line-height: 1.55;
}

.code-block code {
  display: block;
}

.response-block {
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 60vh;
}

/* ─── Console (test widget) ─── */

.console-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.console-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.console-toolbar-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.console-toolbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.console-toolbar-dots span:nth-child(1) {
  background: hsl(0 70% 60%);
}

.console-toolbar-dots span:nth-child(2) {
  background: hsl(45 70% 55%);
}

.console-toolbar-dots span:nth-child(3) {
  background: hsl(142 60% 50%);
}

.console-toolbar-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted-foreground);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  height: 1.75rem;
}

.console-toolbar-method {
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(142 76% 36%);
  flex-shrink: 0;
}

.console-toolbar-path {
  color: var(--foreground);
}

.console-grid {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.console-panel {
  padding: 1rem 1.25rem;
}

.console-panel-left {
  border-right: 1px solid var(--border);
}

.console-panel h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-label {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
  display: block;
}

.input,
.select {
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.8rem;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.select {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}

.textarea {
  width: 100%;
  min-height: 180px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  resize: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.response-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.response-meta {
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted-foreground);
}

.response-meta.error {
  color: var(--destructive);
}

.response-meta.success {
  color: hsl(142 76% 36%);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── Hint block ─── */

.hint-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.875rem;
  background: var(--muted);
  display: grid;
  gap: 0.25rem;
}

.hint-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.hint-body {
  font-size: 0.8rem;
  color: var(--foreground);
  display: grid;
  gap: 0.25rem;
}

.hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.hint-chip strong {
  color: var(--foreground);
}

/* ─── Table ─── */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.835rem;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.75rem;
}

.table tr:hover td {
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.table td code {
  font-size: 0.78rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 0.05rem 0.3rem;
  border-radius: var(--radius-sm);
}

/* ─── Docs page layout ─── */

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.docs-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding-right: 1rem;
}

.docs-sidebar-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.docs-sidebar-title:first-child {
  margin-top: 0;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-nav a {
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.835rem;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}

.docs-nav a:hover,
.docs-nav a.active {
  background: var(--muted);
  color: var(--foreground);
}

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

/* ─── Endpoint doc block ─── */

.endpoint-doc {
  padding: 2rem 0;
  scroll-margin-top: 64px;
}

.endpoint-doc + .endpoint-doc {
  border-top: 1px solid var(--border);
}

.endpoint-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.endpoint-doc-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.endpoint-doc-path {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.endpoint-doc-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.endpoint-doc-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.endpoint-doc-toggle:hover {
  color: var(--foreground);
  border-color: var(--muted-foreground);
}

.endpoint-doc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.endpoint-doc-col {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.endpoint-doc-col h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.endpoint-doc-collapsed .endpoint-doc-content {
  display: none;
}

.endpoint-examples {
  display: grid;
  gap: 0.75rem;
}

.example-label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

/* ─── Example cards (landing page) ─── */

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
}

.example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.example-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.example-card-title {
  font-size: 0.8rem;
  font-weight: 600;
}

.example-card-body {
  padding: 0;
}

.example-card-body .code-block {
  border: none;
  border-radius: 0;
  margin: 0;
}

/* ─── Separator ─── */

.separator {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ─── Utility ─── */

.hidden {
  display: none !important;
}

.text-muted {
  color: var(--muted-foreground);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .hero h1 {
    font-size: 1.8rem;
  }

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

  .console-panel-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    height: auto;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    padding-right: 0;
  }

  .endpoint-doc-body {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .endpoint-link-desc {
    display: none;
  }
}

@media (max-width: 640px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
