:root {
  color-scheme: light;
  --sc-bg: #f7f6f0;
  --sc-ink: #161916;
  --sc-muted: #4a564f;
  --sc-line: rgba(22, 25, 22, 0.14);
  --sc-line-strong: rgba(22, 25, 22, 0.24);
  --sc-panel: #fffdf8;
  --sc-charcoal: #18221e;
  --sc-cream: #fff8eb;
  --sc-teal: #1f7a63;
  --sc-teal-dark: #155843;
  --sc-red: #b42318;
  --sc-shadow: 0 14px 32px rgba(22, 25, 22, 0.08);
  --sc-radius: 8px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--sc-bg);
  color: var(--sc-ink);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--sc-teal); }

.sc-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}
.sc-topbar,
.sc-panel-head,
.sc-provider-title,
.sc-service-head,
.sc-subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sc-topbar {
  align-items: center;
  padding: 10px 0 24px;
}
.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sc-ink);
  text-decoration: none;
}
.sc-brand-face {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--sc-charcoal);
  object-fit: contain;
}
.sc-brand-copy { display: grid; gap: 1px; }
.sc-brand-title {
  font-size: 21px;
  font-weight: 800;
}
.sc-brand-role {
  color: var(--sc-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.sc-meta,
.sc-help {
  color: var(--sc-muted);
  font-size: 13px;
}
.sc-hero { margin-bottom: 18px; }
.sc-eyebrow,
.sc-kicker {
  margin: 0 0 6px;
  color: var(--sc-teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 820;
}
h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
h3, h4 { margin: 0; }
.sc-lede {
  max-width: 790px;
  margin: 12px 0 0;
  color: var(--sc-muted);
  font-size: 17px;
}
.sc-console-menu {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  background: rgba(247, 246, 240, 0.92);
  backdrop-filter: blur(6px);
}
.sc-menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: var(--sc-radius);
  color: var(--sc-ink);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}
.sc-menu-link:hover,
.sc-menu-link[aria-current="page"] {
  border-color: var(--sc-line-strong);
  background: var(--sc-panel);
}
.sc-panel {
  display: none;
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 20px;
}
.sc-panel.is-active { display: block; }
.sc-panel[id] { scroll-margin-top: 76px; }
.sc-stack { display: grid; gap: 14px; margin-top: 16px; }
.sc-preview-grid,
.sc-review-grid,
.sc-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.sc-card,
.sc-review-card,
.sc-decision-card,
.sc-catalog-detail,
.sc-callout {
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  background: #fffaf0;
  padding: 14px;
}
.sc-card p,
.sc-review-card p,
.sc-callout {
  margin: 8px 0 0;
  color: var(--sc-muted);
}
.sc-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid #b8d9d4;
  border-radius: 999px;
  background: #e7f4f1;
  color: var(--sc-teal-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sc-muted-pill {
  border-color: var(--sc-line);
  background: #f1f0e8;
  color: var(--sc-muted);
}
.sc-catalog-layout,
.sc-mission-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}
.sc-catalog-sidebar {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  background: #f7f6f0;
}
.sc-provider-family { display: grid; gap: 6px; }
.sc-provider-family h3,
.sc-provider-bounds h4 {
  font-size: 13px;
}
.sc-provider-link {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--sc-ink);
  text-decoration: none;
  cursor: pointer;
}
.sc-provider-link span { font-weight: 760; }
.sc-provider-link small {
  color: var(--sc-muted);
  font: 12px/1.35 SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.sc-provider-link:hover,
.sc-provider-link[aria-current="true"] {
  border-color: rgba(31, 122, 99, 0.35);
  background: #edf8f4;
}
.sc-catalog-detail {
  display: grid;
  gap: 16px;
}
.sc-provider-title h3 { font-size: 23px; }
.sc-provider-summary {
  margin: 0;
  color: var(--sc-muted);
}
.sc-detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}
.sc-detail-list dt {
  color: var(--sc-muted);
  font-weight: 720;
}
.sc-detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sc-provider-bounds {
  padding-top: 12px;
  border-top: 1px solid var(--sc-line);
}
.sc-provider-bounds ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--sc-muted);
}
.sc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sc-field {
  display: grid;
  gap: 6px;
}
.sc-field-label {
  color: var(--sc-ink);
  font-size: 13px;
  font-weight: 720;
}
.sc-span-2 { grid-column: 1 / -1; }
.sc-input,
.sc-select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--sc-line);
  border-radius: 6px;
  background: #fff;
  color: var(--sc-ink);
  font: inherit;
}
textarea.sc-input {
  min-height: 82px;
  resize: vertical;
}
.sc-code {
  display: inline-flex;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid var(--sc-line);
  border-radius: 6px;
  background: #f1f0e8;
  color: var(--sc-ink);
  font: 13px/1.3 SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}
.sc-json-preview {
  padding: 12px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  background: #f1f0e8;
}
.sc-json-preview summary {
  cursor: pointer;
  font-weight: 760;
}
.sc-json-preview pre {
  max-height: 360px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 6px;
  background: var(--sc-charcoal);
  color: var(--sc-cream);
  font: 13px/1.45 SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.sc-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  background: transparent;
  color: var(--sc-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.sc-button-primary {
  border-color: var(--sc-charcoal);
  background: var(--sc-charcoal);
  color: var(--sc-cream);
}
.sc-button-danger {
  border-color: #f1b8b2;
  color: var(--sc-red);
}
.sc-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
}
.sc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.sc-table th,
.sc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sc-line);
  text-align: left;
  vertical-align: top;
}
.sc-table th {
  background: #f1f0e8;
  color: var(--sc-muted);
  font-size: 12px;
  text-transform: uppercase;
}
.sc-table tr:last-child td { border-bottom: 0; }
.sc-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--sc-line-strong);
  border-radius: var(--sc-radius);
  color: var(--sc-muted);
}
.sc-footer {
  margin-top: 24px;
  color: var(--sc-muted);
  font-size: 13px;
}
.sc-footer pre {
  display: inline-block;
  margin: 0 0 6px;
  color: var(--sc-ink);
  font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  font-variant-ligatures: none;
  font-synthesis: none;
  white-space: pre;
}
.sc-footer p {
  max-width: 780px;
  margin: 0;
}

@media (max-width: 760px) {
  .sc-page { width: min(100% - 20px, 1120px); }
  .sc-topbar,
  .sc-panel-head,
  .sc-provider-title {
    display: grid;
  }
  .sc-catalog-layout,
  .sc-mission-layout,
  .sc-form-grid,
  .sc-preview-grid,
  .sc-review-grid,
  .sc-decision-grid {
    grid-template-columns: 1fr;
  }
  .sc-catalog-sidebar {
    position: static;
    max-height: none;
  }
}
