/* Schema Catalog — visual language shared with fluxoperator.dev.
   Slate palette, Inter for UI, monospace for the catalog's own vernacular
   (kinds, GVKs, field paths, commands). One gradient with one meaning:
   blue (Kubernetes/CI) -> violet (AI), on the hero keyword and the
   search focus ring. */

@font-face {
  font-family: "Inter";
  src: url("/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-inset: #f1f5f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: #e2e8f0;
  --accent: #3b82f6;
  --accent-ink: #2563eb;
  --accent-soft: #dbeafe;
  --ai: #8b5cf6;
  --ai-ink: #7c3aed;
  --ai-soft: #ede9fe;
  --required: #b91c1c;
  --warn: #b45309;
  --grad: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --halo: 0 8px 32px rgb(59 130 246 / 0.14), 0 2px 12px rgb(139 92 246 / 0.12);
  --header-bg: rgb(255 255 255 / 0.85);
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1117;
    --bg-alt: #161b22;
    --bg-inset: #21262d;
    --surface: #161b22;
    --ink: #e6edf3;
    --muted: #8b949e;
    --faint: #6e7681;
    --line: #30363d;
    --accent: #4493e6;
    --accent-ink: #58a6ff;
    --accent-soft: rgb(56 139 253 / 0.15);
    --ai: #a78bfa;
    --ai-ink: #c4b5fd;
    --ai-soft: rgb(167 139 250 / 0.14);
    --required: #f87171;
    --warn: #fbbf24;
    --grad: linear-gradient(135deg, #58a6ff, #a78bfa);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    --halo: 0 8px 32px rgb(88 166 255 / 0.2), 0 2px 12px rgb(167 139 250 / 0.18);
    --header-bg: rgb(13 17 23 / 0.85);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-inset: #f1f5f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: #e2e8f0;
  --accent: #3b82f6;
  --accent-ink: #2563eb;
  --accent-soft: #dbeafe;
  --ai: #8b5cf6;
  --ai-ink: #7c3aed;
  --ai-soft: #ede9fe;
  --required: #b91c1c;
  --warn: #b45309;
  --grad: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --halo: 0 8px 32px rgb(59 130 246 / 0.14), 0 2px 12px rgb(139 92 246 / 0.12);
  --header-bg: rgb(255 255 255 / 0.85);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-inset: #21262d;
  --surface: #161b22;
  --ink: #e6edf3;
  --muted: #8b949e;
  --faint: #6e7681;
  --line: #30363d;
  --accent: #4493e6;
  --accent-ink: #58a6ff;
  --accent-soft: rgb(56 139 253 / 0.15);
  --ai: #a78bfa;
  --ai-ink: #c4b5fd;
  --ai-soft: rgb(167 139 250 / 0.14);
  --required: #f87171;
  --warn: #fbbf24;
  --grad: linear-gradient(135deg, #58a6ff, #a78bfa);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  --halo: 0 8px 32px rgb(88 166 255 / 0.2), 0 2px 12px rgb(167 139 250 / 0.18);
  --header-bg: rgb(13 17 23 / 0.85);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.93em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-soft);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

/* ---------- site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-brand:hover {
  text-decoration: none;
  color: var(--accent-ink);
}

.site-brand img {
  width: 24px;
  height: 24px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-link:hover {
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-inset);
}

.nav-link.active {
  color: var(--ink);
}

.nav-link-ai.active,
.nav-link-ai:hover {
  color: var(--ai-ink);
  background: var(--ai-soft);
}

.nav-link .external-mark {
  font-size: 0.75em;
  color: var(--faint);
  margin-left: 3px;
}

.header-spacer {
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;
}

.icon-button:hover {
  color: var(--ink);
  border-color: var(--faint);
  text-decoration: none;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- page shells ---------- */

.page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 96px;
  flex: 1;
}

.page-wide {
  max-width: 1200px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 0.86rem;
  color: var(--faint);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb-separator {
  color: var(--line);
}

/* ---------- home hero ---------- */

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(56px, 10vh, 110px) 24px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
  margin-bottom: 24px;
}

.hero-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.home-title {
  margin: 0;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-title .gradient-text {
  white-space: nowrap;
}

.home-tagline {
  margin: 18px 0 36px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  max-width: 62ch;
}

.home-search {
  position: relative;
  width: min(680px, 100%);
}

.search-input {
  width: 100%;
  height: 60px;
  padding: 0 92px 0 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.search-input::placeholder {
  color: var(--faint);
}

.search-input:focus {
  outline: none;
  /* the one gradient, with its one meaning: Kubernetes blue -> AI violet */
  box-shadow: var(--halo);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}

.search-glyph {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 1rem;
  pointer-events: none;
}

.search-kbd {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 6px;
  background: var(--bg-alt);
}

.search-results {
  width: min(680px, 100%);
  margin: 10px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.result-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.result-row:first-child {
  border-top: none;
}

.result-row:hover {
  text-decoration: none;
  background: var(--accent-soft);
}

.result-row.selected {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.result-kind {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.result-group {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-project {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--faint);
  white-space: nowrap;
}

.results-footer {
  padding: 8px 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.results-empty {
  padding: 22px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 40px);
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--faint);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

/* ---------- home lanes: AI first, CI second ---------- */

.home-lanes {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(48px, 8vh, 80px);
}

.lanes-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 20px;
}

.lane {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.lane-ai {
  border-color: color-mix(in srgb, var(--ai) 35%, var(--line));
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--ai) 55%, var(--line)), var(--line) 55%) border-box;
  border: 1px solid transparent;
}

.lane-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.lane-ai .lane-eyebrow {
  color: var(--ai-ink);
}

.lane h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.lane p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lane .code-block {
  margin-top: 6px;
}

.lane-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.lane-ai .lane-link {
  color: var(--ai-ink);
}

/* ---------- home browse ---------- */

.home-browse {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 64px) 24px 72px;
}

.browse-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.browse-rule::before,
.browse-rule::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.category-section {
  margin-top: 34px;
}

.category-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.project-flow {
  display: flex;
  flex-wrap: wrap;
  column-gap: 26px;
  row-gap: 8px;
}

.project-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
}

.project-item:hover {
  text-decoration: none;
  color: var(--accent-ink);
}

.project-version {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}

/* ---------- site footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-logo:hover {
  text-decoration: none;
  color: var(--ink);
}

.footer-logo img {
  width: 22px;
  height: 22px;
}

.footer-tagline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-attribution {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.82rem;
}

.footer-column h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-column a:hover {
  color: var(--accent-ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- hero (project / kind / agents pages) ---------- */

.hero {
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.kind-page .hero h1 {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.gvk-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.86rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.76rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge:hover {
  text-decoration: none;
}

.version-badge {
  font-family: var(--font-mono);
  font-weight: 400;
}

.category-badge {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.required-badge {
  background: transparent;
  color: var(--required);
  padding: 0;
  font-size: 0.74rem;
}

.stats-line {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 12px 0 0;
}

.external-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.version-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mcp-copy svg {
  width: 15px;
  height: 15px;
  color: var(--ai-ink);
}

.mcp-copy:hover {
  border-color: var(--ai);
  color: var(--ai-ink);
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
}

.chip:hover {
  text-decoration: none;
  color: var(--accent-ink);
  border-color: var(--accent);
}

.chip.active {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chip.schema-only {
  border-style: dashed;
  color: var(--faint);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.83rem;
  padding: 6px 13px;
}

.button-link:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent-ink);
}

.button-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-link.primary:hover {
  background: var(--accent-ink);
  color: #fff;
}

/* ---------- project page ---------- */

.group-section {
  margin-top: 36px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
}

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

.kind-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 6px 16px 6px 0;
  border-bottom: 1px solid var(--line);
}

.kind-table td {
  padding: 8px 16px 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.kind-link {
  font-weight: 500;
}

.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px 28px;
}

.kind-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 0;
}

.kind-cell .kind-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kind-cell .version-list {
  flex: none;
}

/* ---------- kind page: fields ---------- */

.fields-panel {
  margin-top: 26px;
}

.fields-toolbar {
  position: sticky;
  top: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.filter-input {
  flex: 1;
  max-width: 280px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.fields-count {
  color: var(--faint);
  font-size: 0.8rem;
  white-space: nowrap;
}

.fields-results {
  margin-top: 6px;
}

.field-tree,
.field-list {
  font-size: 0.88rem;
}

.field-children {
  margin-left: 18px;
  border-left: 1px solid var(--line);
  padding-left: 4px;
}

.field-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  min-width: 0;
}

.field-summary::-webkit-details-marker {
  display: none;
}

.field-summary:hover {
  background: var(--accent-soft);
}

.details-marker {
  color: var(--faint);
  font-size: 0.8rem;
  width: 12px;
  flex: none;
  transition: transform 0.12s ease;
}

details[open] > .field-summary .details-marker {
  transform: rotate(90deg);
}

.field-node.leaf > .field-summary {
  cursor: default;
}

.field-node.leaf > .field-summary .details-marker {
  visibility: hidden;
}

.field-segment {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.field-path {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.field-type {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-ink);
  white-space: nowrap;
}

.field-description {
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.field-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 6px;
  border-radius: 6px;
  min-width: 0;
}

.field-row:hover {
  background: var(--accent-soft);
}

.field-list-note {
  padding: 8px 6px;
  color: var(--faint);
  font-size: 0.8rem;
}

/* fields-index grammar tokens */

.field-path-parent {
  color: var(--faint);
  font-weight: 400;
}

.field-path-leaf {
  color: var(--ink);
}

.constraint-marker {
  flex: none;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 5px;
  padding: 0 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.constraint-required {
  color: var(--required);
  border-color: color-mix(in srgb, var(--required) 40%, transparent);
}

.constraint-deprecated {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 45%, transparent);
}

.constraint-pair {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
}

.constraint-key {
  color: var(--faint);
}

.constraint-value {
  color: var(--ai-ink);
}

/* ---------- agents (MCP) page ---------- */

.mcp-hero {
  margin-top: 18px;
}

.mcp-tagline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 68ch;
}

.mcp-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ai) 35%, var(--line));
  border-radius: 8px;
  padding: 8px 8px 8px 12px;
}

.mcp-endpoint code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}

.mcp-meta {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 0.82rem;
}

.mcp-section {
  margin-top: 44px;
}

.mcp-section > h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mcp-section h3 {
  margin: 24px 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.mcp-lead {
  margin: 0;
  color: var(--muted);
}

.mcp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mcp-feature {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--surface);
}

.mcp-feature h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.mcp-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- shared code blocks ---------- */

.code-block {
  position: relative;
  margin-top: 12px;
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 72px 14px 16px;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  white-space: pre;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--surface);
}

.copy-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.copy-button svg {
  width: 14px;
  height: 14px;
  display: block;
}

.copy-button:hover {
  color: var(--ink);
  border-color: var(--faint);
}

.copy-button.copied {
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* light syntax tokens */

.code-block .tok-cmd {
  color: var(--accent-ink);
  font-weight: 600;
}

.code-block .tok-key {
  color: var(--accent-ink);
}

.code-block .tok-str,
.code-block .tok-num {
  color: var(--ai-ink);
}

.code-block .tok-flag {
  color: var(--muted);
}

.code-block .tok-comment,
.code-block .tok-prompt {
  color: var(--faint);
}

.code-block .tok-comment {
  font-style: italic;
}

.code-block .tok-err {
  color: var(--required);
  font-weight: 600;
}

/* ---------- states ---------- */

.empty-state {
  margin-top: 40px;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
}

.error-state {
  border-color: var(--required);
}

.error-text {
  color: var(--required);
}

/* ---------- responsive & a11y ---------- */

@media (max-width: 720px) {
  .site-header-inner {
    gap: 12px;
    padding: 0 16px;
  }

  .site-brand span {
    display: none;
  }

  .home-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lanes-inner,
  .home-browse,
  .site-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-input {
    padding-right: 18px;
  }

  .search-kbd {
    display: none;
  }

  .constraint-pair {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
