/* ===========================================================================
   Fabric Knowledgebase — docs shell styling.
   Sibling of the Fabric website: same ember accent, same font family, same
   surface language. All colours are CSS custom properties, themed per
   [data-theme]. Self-contained: no CDN fonts or scripts.
   =========================================================================== */

:root {
  --ember: #ff1774;
  --ember-soft: #ff5c97;
  --ok: #4ade80;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --topbar-h: 60px;
  --sidebar-w: 274px;
}

/* ---------- dark theme (default) ---------- */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1118;
  --surface: #121a24;
  --surface-2: #0f1620;
  --surface-3: #17212e;
  --code-bg: #0a0f16;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f1e8;
  --heading: #ffffff;
  --muted: #8b98a9;
  --link: var(--ember-soft);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #eef1f5;
  --code-bg: #f4f1ee;
  --line: rgba(10, 20, 35, 0.10);
  --line-strong: rgba(10, 20, 35, 0.18);
  --text: #1f2733;
  --heading: #0d1420;
  --muted: #5c6875;
  --link: #d11466;
  --shadow: 0 20px 48px rgba(15, 22, 32, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--mono); }

/* ---------- initial loading splash (index.html) ---------- */

.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100vh;
  color: var(--muted);
  font-family: var(--sans);
}

.app-loading-flame,
.flame {
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 2px;
  background: linear-gradient(160deg, var(--ember-soft), var(--ember));
  box-shadow: 0 0 14px rgba(255, 23, 116, 0.7);
  transform: rotate(-45deg);
  flex: none;
}

/* ---------- shell layout ---------- */

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-right { flex: 1; justify-content: flex-end; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
  white-space: nowrap;
}

.wordmark:hover { text-decoration: none; }
.wordmark strong { font-weight: 800; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.app-body {
  flex: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: start;
}

/* ---------- sidebar ---------- */

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  align-self: start;
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 20px 14px 40px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.sidebar-backdrop { display: none; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-loading { color: var(--muted); font-size: 0.88rem; padding: 6px 10px; }

.nav-section { margin-bottom: 16px; }

.nav-section-title {
  display: block;
  padding: 6px 10px;
  color: var(--heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
}

.nav-section-title:hover { text-decoration: none; color: var(--ember-soft); }
.nav-section-title.active { color: var(--ember-soft); }

.nav-children { display: flex; flex-direction: column; gap: 1px; }

.nav-group .nav-children { margin-left: 10px; border-left: 1px solid var(--line); padding-left: 6px; }

.nav-link {
  display: block;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 6px;
}

.nav-link:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
.nav-link.active { color: var(--ember-soft); background: color-mix(in srgb, var(--ember) 12%, transparent); font-weight: 600; }

.nav-group-head { display: flex; align-items: center; gap: 2px; }
.nav-group-head .nav-link { flex: 1; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  flex: none;
}

.chevron {
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 120ms ease;
}

.chevron.open { transform: rotate(90deg); }

/* ---------- search ---------- */

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(420px, 46vw);
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.82rem;
  opacity: 0.6;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.search-input::placeholder { color: var(--muted); }
.search-input:focus { outline: none; border-color: var(--ember-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 22%, transparent); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 60;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.search-result.active { background: color-mix(in srgb, var(--ember) 14%, transparent); }
.search-result-title { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.search-result-crumb { font-size: 0.76rem; color: var(--muted); }
.search-empty { padding: 10px; color: var(--muted); font-size: 0.88rem; }

/* ---------- theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  flex: none;
}

.theme-toggle:hover { border-color: var(--ember-soft); }

/* ---------- content column ---------- */

.content {
  min-width: 0;
  padding: 34px clamp(20px, 4vw, 60px) 80px;
}

.doc-loading, .nav-loading { color: var(--muted); }

.doc { max-width: 820px; margin: 0 auto; }

.doc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ember-soft); }
.crumb-sep { opacity: 0.5; }

.edit-link {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
}

.edit-link:hover { color: var(--ember-soft); border-color: var(--ember-soft); text-decoration: none; }

.doc-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- rendered markdown typography ---------- */

.doc-body { font-size: 1rem; line-height: 1.72; color: var(--text); }

.doc-body h1, .doc-body h2, .doc-body h3, .doc-body h4 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 800;
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}

.doc-body h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 0 0 20px; }
.doc-body h2 { font-size: 1.5rem; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc-body h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.doc-body h4 { font-size: 1.02rem; margin: 24px 0 8px; }

.doc-body p { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 24px; }
.doc-body li { margin: 4px 0; }
.doc-body li > ul, .doc-body li > ol { margin: 4px 0; }

.doc-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.doc-body a:hover { color: var(--ember); }

.doc-body strong { color: var(--heading); font-weight: 700; }

.doc-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* inline code */
.doc-body :not(pre) > code {
  font-size: 0.86em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  color: var(--ember-soft);
}

/* code blocks — distinct background; token colouring is a later slice */
.doc-body pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
}

.doc-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: inherit;
  white-space: pre;
}

/* blockquotes */
.doc-body blockquote {
  margin: 0 0 20px;
  padding: 4px 18px;
  border-left: 3px solid var(--ember);
  background: color-mix(in srgb, var(--ember) 7%, transparent);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

.doc-body blockquote p:last-child { margin-bottom: 0; }

/* tables */
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

.doc-body thead th {
  text-align: left;
  background: var(--surface-2);
  color: var(--heading);
  font-weight: 700;
}

.doc-body th, .doc-body td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  vertical-align: top;
}

.doc-body tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }

.doc-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* ===========================================================================
   Rich-content components (:::note / :::steps / :::tabs) + copy-code buttons.
   Emitted by tools/fabric-docs-gen; styled here to match the ember palette.
   =========================================================================== */

/* ---------- callouts ---------- */

.doc-body .kb-callout {
  --kb-accent: var(--ember);
  --kb-glyph: "\2731"; /* ✱ fallback */
  margin: 0 0 20px;
  padding: 14px 18px 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--kb-accent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--kb-accent) 8%, var(--surface));
}

.doc-body .kb-callout-note    { --kb-accent: #4aa3ff; --kb-glyph: "\2139"; }  /* ℹ */
.doc-body .kb-callout-tip     { --kb-accent: var(--ok); --kb-glyph: "\2726"; } /* ✦ */
.doc-body .kb-callout-warning { --kb-accent: #f5a524; --kb-glyph: "\26A0"; }  /* ⚠ */
.doc-body .kb-callout-danger  { --kb-accent: #ff4d5e; --kb-glyph: "\2715"; }  /* ✕ */

.doc-body .kb-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--kb-accent);
  margin-bottom: 4px;
}

.doc-body .kb-callout-title::before {
  content: var(--kb-glyph);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1;
}

.doc-body .kb-callout-body > :first-child { margin-top: 0; }
.doc-body .kb-callout-body > :last-child { margin-bottom: 0; }
.doc-body .kb-callout-body { color: var(--text); }

/* ---------- steps ---------- */

.doc-body .kb-steps {
  margin: 0 0 24px;
  padding: 0;
  counter-reset: kb-step;
}

.doc-body .kb-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
}

/* connecting line runs down the marker column between steps */
.doc-body .kb-step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: -4px;
  width: 2px;
  background: var(--line-strong);
}

.doc-body .kb-step:last-child { padding-bottom: 0; }
.doc-body .kb-step:last-child::before { display: none; }

.doc-body .kb-step-marker {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ember-soft), var(--ember));
  color: #2b0316;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 3px 14px rgba(255, 23, 116, 0.32);
}

.doc-body .kb-step-body { min-width: 0; padding-top: 2px; }
.doc-body .kb-step-body > :first-child { margin-top: 0; }
.doc-body .kb-step-body > :last-child { margin-bottom: 0; }

/* step headings sit as titles — drop the section-rule the doc h2/h3 carry */
.doc-body .kb-step-body h2,
.doc-body .kb-step-body h3 {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  font-size: 1.15rem;
}

/* ---------- tabs ---------- */

.doc-body .kb-tabs { margin: 0 0 22px; }

.doc-body .kb-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.doc-body .kb-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 9px 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}

.doc-body .kb-tab:hover { color: var(--text); }

.doc-body .kb-tab.active {
  color: var(--ember-soft);
  border-bottom-color: var(--ember);
}

.doc-body .kb-tab:focus-visible {
  outline: none;
  color: var(--text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ember) 40%, transparent);
  border-radius: 6px 6px 0 0;
}

.doc-body .kb-tab-panel { display: none; padding-top: 16px; }
.doc-body .kb-tab-panel.active { display: block; }
.doc-body .kb-tab-panel > :first-child { margin-top: 0; }
.doc-body .kb-tab-panel > :last-child { margin-bottom: 0; }

/* ---------- copy-to-clipboard button on code blocks ---------- */

.doc-body pre { position: relative; }

.doc-body .kb-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, color 120ms ease, border-color 120ms ease;
}

.doc-body pre:hover .kb-copy-btn,
.doc-body .kb-copy-btn:focus-visible { opacity: 1; }

.doc-body .kb-copy-btn:hover { color: var(--text); border-color: var(--ember-soft); }
.doc-body .kb-copy-btn.copied { color: var(--ok); border-color: var(--ok); opacity: 1; }

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

.home { max-width: 960px; margin: 0 auto; padding-top: 10px; }

.home-hero { text-align: center; padding: 40px 0 36px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--ember-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--heading); }

.home-lede {
  max-width: 42rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.home-search { margin: 28px auto 0; max-width: 560px; }
.home-search .search { width: 100%; }

.home-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.section-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  transition: border-color 150ms ease, transform 150ms ease;
}

.section-card:hover { border-color: var(--ember-soft); transform: translateY(-2px); text-decoration: none; }
.section-card h2 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--heading); border: none; padding: 0; }
.section-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.94rem; line-height: 1.6; flex: 1; }
.section-card-go { color: var(--ember-soft); font-size: 0.88rem; font-weight: 600; }

/* ---------- buttons & not-found ---------- */

.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--ember-soft), var(--ember));
  color: #2b0316;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(255, 23, 116, 0.32);
}

.button:hover { text-decoration: none; transform: translateY(-1px); }

.not-found { max-width: 620px; margin: 8vh auto; text-align: center; }
.not-found h1 { color: var(--heading); font-size: 2rem; margin: 6px 0 12px; }
.not-found p { color: var(--muted); margin: 0 0 18px; }

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

.app-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  background: var(--surface-2);
}

.footer-spacer { flex: 1; }
.build-stamp code { background: var(--surface-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.footer-brand { font-weight: 700; color: var(--text); }

/* ---------- blazor error ui ---------- */

#blazor-error-ui {
  background: lightyellow;
  color: #111;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hamburger { display: inline-flex; }

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

  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: min(300px, 82vw);
    height: calc(100vh - var(--topbar-h));
    transform: translateX(-100%);
    transition: transform 180ms ease;
    z-index: 50;
  }

  .app-shell.sidebar-open .sidebar { transform: translateX(0); }

  .app-shell.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 45;
  }

  .search { width: min(320px, 52vw); }
}

@media (max-width: 560px) {
  .topbar { gap: 8px; padding-inline: 10px; }
  .topbar-left, .topbar-right { gap: 8px; min-width: 0; }
  .wordmark span:not(.flame) { font-size: 0; }
  .wordmark span:not(.flame) strong { font-size: 0.95rem; }
  .search { width: auto; min-width: 0; flex: 1 1 auto; }
  .search-input { min-width: 0; font-size: 0.85rem; }
  .content { padding: 24px 18px 60px; }
}

/* ===== Getting Started track (Razor-native novice pages) ===== */

.gs-doc .doc-topbar { align-items: center; }
.gs-progress {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ember-soft);
  white-space: nowrap;
}

/* Lede paragraph directly under the H1 */
.doc-body .gs-lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
  margin: -6px 0 26px;
}

/* Prev / next pager */
.gs-pager {
  display: flex;
  gap: 14px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.gs-pager-spacer { flex: 1; }
.gs-pager-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gs-pager-link:hover { border-color: var(--ember-soft); transform: translateY(-2px); text-decoration: none; }
.gs-pager-next { text-align: right; }
.gs-pager-dir { font-size: 0.78rem; font-weight: 600; color: var(--ember-soft); }
.gs-pager-title { font-size: 0.98rem; font-weight: 700; color: var(--heading); }

/* ---- Mental-model diagram (What is Fabric?) ---- */
.gs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0 8px;
}
.gs-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 20px;
  background: var(--surface);
}
.gs-panel-control { border-color: color-mix(in srgb, var(--ember) 40%, var(--line)); }
.gs-panel-title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--heading);
}
.gs-panel-sub { margin: 0 0 14px; font-size: 0.86rem; color: var(--muted); }

/* Nested containment: Organization > Project > App > Workload */
.gs-nest {
  border: 1.5px solid color-mix(in srgb, var(--ember) 55%, transparent);
  border-radius: 12px;
  padding: 12px 12px 14px;
  background: color-mix(in srgb, var(--ember) 6%, transparent);
}
.gs-nest + .gs-nest { margin-top: 0; }
.gs-nest-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 8px;
}
.gs-nest .gs-nest {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.gs-nest .gs-nest .gs-nest-label { color: var(--muted); }
.gs-node-note { margin: 8px 0 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

.gs-metal {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.gs-metal-chip {
  flex: 1 1 120px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  font-size: 0.82rem;
  color: var(--text);
}
.gs-metal-chip strong { display: block; color: var(--heading); font-size: 0.9rem; }

@media (max-width: 720px) {
  .gs-split { grid-template-columns: 1fr; }
  .gs-pager { flex-direction: column; }
}

/* ---- Interactive path chooser (Pair a Metal Node) ---- */
.gs-chooser {
  display: flex;
  gap: 12px;
  margin: 22px 0 26px;
  flex-wrap: wrap;
}
.gs-chooser-btn {
  flex: 1 1 220px;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.gs-chooser-btn:hover { border-color: var(--ember-soft); transform: translateY(-2px); }
.gs-chooser-btn.active {
  border-color: var(--ember);
  background: color-mix(in srgb, var(--ember) 12%, transparent);
}
.gs-chooser-btn .gs-chooser-eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 4px;
}
.gs-chooser-btn .gs-chooser-label { display: block; font-size: 1rem; font-weight: 700; color: var(--heading); }
.gs-chooser-btn .gs-chooser-hint { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 3px; }
.gs-branch.gs-hidden { display: none; }

.home-cta { margin: 28px 0 4px; display: flex; justify-content: center; }
