
/* /src/components/documentation/documentation.css */
body.soft-theme {
  color-scheme: light;
  --bg: #fcfcfe;
  --panel: #ffffff;
  --panel-2: #cac8f9;
  --line: #c3c1c1;
  --text: #111827;
  --muted: #475569;
  --faint: #e7e9ef;
  --accent: #b2aef2;
  --lime: #928ddd;
  --code: #cac8f9;
  --shadow: 0 18px 48px rgba(178, 174, 242, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  color: #234000;
  background: #edf7cf;
  border: 1px solid #d6eaa1;
  border-radius: 6px;
  padding: 0.08rem 0.34rem;
}

.site-shell {
  max-width: 1740px;
  margin: 0 auto;
  padding: 0 5vw 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px) auto auto;
  align-items: center;
  gap: 10px;
  padding: 28px 0 20px;
  background: linear-gradient(180deg, var(--bg) 74%, rgba(246, 248, 251, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #273238;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 24px;
  display: inline-block;
}

.brand-mark span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #8aae16;
  border-radius: 2px;
}

.brand-mark span:nth-child(1) { left: 0; top: 0; }
.brand-mark span:nth-child(2) { left: 16px; top: 6px; }
.brand-mark span:nth-child(3) { right: 0; bottom: 0; border-radius: 50%; }

.search-button,
.assistant-button,
.theme-button,
.copy-button,
.primary-link,
.secondary-link {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 16px;
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
}

.search-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.search-icon {
  color: var(--text);
  font-size: 24px;
}

kbd {
  color: var(--faint);
  font: 600 13px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.assistant-button,
.theme-button,
.copy-button {
  cursor: pointer;
}

.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  min-height: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  overflow: visible;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs a {
  position: relative;
  white-space: nowrap;
  padding: 20px 0;
}

.tabs a.active,
.tabs a:hover {
  color: var(--text);
}

.tabs a.active::after,
.tabs a:hover::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  padding-top: 48px;
}

.docs-layout {
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 154px;
  align-self: start;
  max-height: calc(100vh - 170px);
  padding-right: 16px;
  overflow: auto;
  color: var(--muted);
}

.side-title {
  color: var(--text);
  font-weight: 700;
  margin: 30px 0 10px;
}

.side-group {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.side-group a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 20px;
}

.side-group a::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #9ca3af;
}

.side-group a.selected,
.side-group a:hover {
  color: var(--accent);
  background: rgba(67, 199, 213, 0.1);
}

.side-group a.side-parent {
  justify-content: space-between;
  padding-right: 16px;
}

.side-group a.side-parent span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.side-group a.side-parent span:first-child::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #9ca3af;
}

.side-group a.side-parent::before {
  display: none;
}

.side-chevron {
  color: var(--muted);
  font-size: 16px;
  transition: transform 160ms ease;
}

.side-parent[aria-expanded="true"] .side-chevron {
  transform: rotate(90deg);
}

.side-children {
  display: grid;
  gap: 6px;
  margin: -4px 0 8px;
}

.side-children[hidden] {
  display: none !important;
}

.side-group a.side-child {
  min-height: 34px;
  border-radius: 10px;
  margin-left: 38px;
  padding: 0 12px 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.side-group a.side-child::before {
  width: 5px;
  height: 5px;
  background: #b7bfca;
}

.side-group a.side-child.selected,
.side-group a.side-child:hover {
  color: var(--accent);
}

.content {
  padding-bottom: 80px;
  max-width: 1120px;
}

.doc-section {
  scroll-margin-top: 160px;
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--line);
}

.doc-section[hidden] {
  display: none !important;
}

.doc-section.current-section {
  min-height: calc(100vh - 230px);
  border-bottom: 0;
}

.hero-section {
  padding-top: 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 16px;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: 48px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
}

.lead {
  font-size: 22px;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.primary-link {
  color: #ffffff;
  background: var(--lime);
  border-color: transparent;
  font-weight: 800;
}

.metrics-grid,
.reference-grid,
.target-list,
.pipeline,
.two-column {
  display: grid;
  gap: 14px;
}

.metrics-grid {
  grid-template-columns: repeat(3, 1fr);
}

.metrics-grid article,
.reference-grid article,
.target-list article,
.pipeline article,
.two-column article,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow);
}

.metrics-grid strong {
  display: block;
  color: var(--lime);
  font-size: 34px;
  line-height: 1;
}

.metrics-grid span,
.reference-grid p,
.target-list p,
.pipeline p,
.two-column p,
.result-panel li {
  color: var(--muted);
  font-size: 16px;
}

.learning-list {
  margin: 0;
  padding-left: 28px;
  color: var(--muted);
  font-size: 19px;
}

.learning-list li {
  margin-bottom: 12px;
}

.code-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--code);
  box-shadow: var(--shadow);
  margin: 20px 0 28px;
}

.code-title {
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  color: var(--muted);
  font-size: 14px;
  background: #e4edf2;
}

pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #172027;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.note {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.info-box {
  border: 1px solid #b9d2ff;
  border-radius: 14px;
  background: #eaf2ff;
  padding: 16px 18px;
  margin: 18px 0 26px;
}

.info-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.info-box p {
  margin: 0;
  font-size: 16px;
}

.tutorial-figure,
.figure-grid figure {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 20px 0 28px;
}

.tutorial-figure img,
.figure-grid img {
  display: block;
  width: 100%;
  height: auto;
  background: #f8fafc;
}

.tutorial-figure figcaption,
.figure-grid figcaption {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}

.figure-grid figure {
  margin: 0;
}

.result-workbook {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.result-topic-page > .section-lead,
.result-topic-page > .parameter-table {
  display: none;
}

.result-sheet {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-sheet summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  padding: 16px 18px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 800;
}

.result-sheet summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.grouped-results {
  margin-top: 28px;
}

.result-root > summary {
  font-size: 18px;
}

.result-nested {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.result-nested.inner {
  padding: 0;
}

.result-category,
.result-subcategory {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.result-category > summary,
.result-subcategory > summary {
  cursor: pointer;
  padding: 13px 16px;
  background: #eef5ff;
  color: #244fdb;
  font-weight: 800;
  letter-spacing: 0;
}

.result-subcategory > summary {
  background: #f6f8fb;
  color: var(--text);
}

.category-note {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.result-table-wrap {
  overflow-x: auto;
  max-height: 680px;
  border-top: 1px solid var(--line);
}

.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

.data-table th,
.data-table td {
  max-width: 380px;
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-2) !important;
  color: var(--text) !important;
  font-weight: 800;
}

.data-table .category-row td,
.data-table .category-row th {
  background: #eaf2ff !important;
  color: var(--accent) !important;
  font-weight: 800;
}

.parameter-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.parameter-table article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow);
}

.parameter-table strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.parameter-table span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.pipeline {
  grid-template-columns: repeat(3, 1fr);
}

.pipeline span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--lime);
  font-weight: 800;
}

.two-column,
.target-list {
  grid-template-columns: repeat(2, 1fr);
}

.reference-grid {
  grid-template-columns: repeat(2, 1fr);
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

th {
  color: var(--text);
  background: var(--panel-2);
}

tr:last-child td {
  border-bottom: 0;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: start center;
  padding-top: 10vh;
  background: rgba(38, 52, 63, 0.28);
}

.search-modal[hidden] {
  display: none !important;
}

.search-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: min(760px, 82vh);
  pointer-events: auto;
}

.search-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.search-dialog input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 20px;
  font: inherit;
  font-size: 20px;
}

.search-close {
  margin-right: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  pointer-events: auto;
}

.search-close:hover {
  color: var(--text);
  border-color: rgba(67, 199, 213, 0.45);
}

.search-results {
  display: grid;
  gap: 10px;
  min-height: 260px;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  background: #f8fafc;
}

.search-result {
  display: grid;
  gap: 5px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 14px 16px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  pointer-events: auto;
}

.search-result strong {
  display: block;
  color: var(--text);
  font-size: 17px;
}

.search-result span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.search-result:hover {
  background: rgba(67, 199, 213, 0.1);
  border-color: rgba(67, 199, 213, 0.35);
}

.search-hint {
  padding: 4px 4px 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-empty {
  display: grid;
  gap: 8px;
  place-content: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.search-empty strong {
  color: var(--text);
  font-size: 18px;
}

.search-empty span {
  max-width: 460px;
  font-size: 15px;
}

.assistant-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(38, 52, 63, 0.3);
}

.assistant-modal[hidden] {
  display: none !important;
}

.assistant-panel {
  width: min(900px, calc(100vw - 32px));
  max-height: min(760px, 86vh);
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.assistant-kicker {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.assistant-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.assistant-close {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  font: inherit;
}

.assistant-close:hover {
  color: var(--text);
  border-color: rgba(67, 199, 213, 0.45);
}

.assistant-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
  background: #f8fafc;
}

.assistant-message {
  width: fit-content;
  max-width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.55;
}

.assistant-message p {
  margin: 7px 0 0;
  font-size: 15px;
}

.assistant-message strong {
  color: var(--text);
}

.assistant-message-user {
  justify-self: end;
  background: rgba(67, 199, 213, 0.12);
  color: var(--text);
}

.assistant-message-bot {
  justify-self: start;
  background: #ffffff;
}

.assistant-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.assistant-source {
  border: 1px solid rgba(67, 199, 213, 0.3);
  border-radius: 999px;
  background: rgba(67, 199, 213, 0.08);
  color: var(--accent);
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.assistant-suggestion {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 9px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.assistant-suggestion:hover,
.assistant-source:hover {
  color: var(--text);
  border-color: rgba(67, 199, 213, 0.5);
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 18px 18px;
}

.assistant-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  outline: 0;
  padding: 14px 16px;
  font: inherit;
}

.assistant-form input:focus {
  border-color: rgba(67, 199, 213, 0.55);
}

.assistant-form button {
  border: 1px solid rgba(67, 199, 213, 0.38);
  border-radius: 14px;
  background: rgba(67, 199, 213, 0.12);
  color: var(--text);
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 980px) {
  .site-shell {
    padding: 0 18px 60px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .search-button {
    grid-column: 1 / -1;
  }

  .assistant-button {
    display: none;
  }

  .brand {
    font-size: 34px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .side-group {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  p,
  .lead {
    font-size: 17px;
  }

  .metrics-grid,
  .pipeline,
  .two-column,
  .reference-grid,
  .target-list,
  .parameter-table,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .assistant-modal {
    padding: 12px;
    place-items: end center;
  }

  .assistant-panel {
    width: 100%;
    max-height: 88vh;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }
}

/* Light documentation theme override */
:root {
  color-scheme: light;
  --bg: #fcfcfe;
  --panel: #ffffff;
  --panel-2: #e7e9ef;
  --line: #cac8f9;
  --text: #111827;
  --muted: #475569;
  --faint: #c3c1c1;
  --accent: #928ddd;
  --lime: #b2aef2;
  --code: #e7e9ef;
  --shadow: 0 16px 44px rgba(146, 141, 221, 0.12);
}

html,
body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

.site-shell,
.layout,
.content,
.sidebar {
  background: transparent !important;
  color: var(--text) !important;
}

.topbar {
  background: linear-gradient(180deg, var(--bg) 78%, rgba(247, 249, 252, 0)) !important;
}

.brand {
  color: #1f2937 !important;
}

.brand-mark span {
  background: var(--lime) !important;
}

.tabs {
  border-top-color: var(--line) !important;
  border-bottom-color: var(--line) !important;
  color: var(--muted) !important;
}

.tabs a.active,
.tabs a:hover,
.side-title,
h1,
h2,
h3,
th {
  color: var(--text) !important;
}

p,
td,
.lead,
.learning-list,
.side-group a,
.metrics-grid span,
.reference-grid p,
.target-list p,
.pipeline p,
.two-column p,
.result-panel li {
  color: var(--muted) !important;
}

.search-button,
.assistant-button,
.theme-button,
.copy-button,
.secondary-link,
.metrics-grid article,
.reference-grid article,
.target-list article,
.pipeline article,
.two-column article,
.result-panel,
.search-dialog,
.assistant-panel,
.search-result,
.assistant-message-bot,
.assistant-suggestion,
.assistant-form input {
  background: var(--panel) !important;
  color: var(--muted) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow);
}

.search-button:hover,
.assistant-button:hover,
.theme-button:hover,
.copy-button:hover,
.secondary-link:hover,
.side-group a.selected,
.side-group a:hover {
  background: #eaf2ff !important;
  color: var(--accent) !important;
  border-color: #b9d2ff !important;
}

/* Tight documentation layout: remove large outer gutters and use the viewport cleanly. */
html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

.site-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px 32px;
}

.topbar {
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 530px) auto auto;
  gap: 12px;
  padding: 8px 0 10px;
}

.brand {
  font-size: clamp(34px, 3vw, 48px);
}

.tabs {
  gap: 24px;
  min-height: 54px;
  padding: 0;
}

.tabs a {
  padding: 14px 0;
}

.layout {
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 28px;
  padding-top: 22px;
}

.sidebar {
  top: 132px;
  max-height: calc(100vh - 142px);
  padding-right: 10px;
}

.content {
  width: 100%;
  max-width: none;
  padding-bottom: 48px;
}

.doc-section {
  padding: 20px 0 38px;
}

.hero-section {
  padding-top: 0;
}

.section-heading,
.parameter-table,
.figure-grid,
.reference-grid,
.target-list,
.metrics-grid {
  max-width: none;
}

.result-table-wrap {
  max-width: 100%;
}

@media (max-width: 980px) {
  .site-shell {
    padding: 0 12px 32px;
  }

  .topbar {
    padding-top: 8px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 18px;
  }
}

.primary-link,
.pipeline span {
  background: var(--accent) !important;
  color: #ffffff !important;
}

.eyebrow,
.search-hint,
.assistant-kicker,
.assistant-source {
  color: var(--accent) !important;
}

/* Sidebar/content spacing fix: remove the blank band beside the sidebar scrollbar. */
.site-shell {
  padding-left: 12px;
  padding-right: 12px;
}

.layout {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 12px;
}

.sidebar {
  padding-right: 0;
  scrollbar-gutter: stable;
}

.side-group a {
  padding-left: 16px;
  padding-right: 14px;
}

.side-group a.side-parent {
  padding-right: 12px;
}

.side-group a.side-child {
  margin-left: 28px;
  padding-left: 14px;
}

.content,
.doc-section {
  margin-left: 0;
}

@media (min-width: 1500px) {
  .layout {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 14px;
  }
}

code {
  background: #eaf2ff !important;
  border-color: #c7d8ff !important;
  color: #173b8f !important;
}

.code-card,
pre {
  background: var(--code) !important;
  color: var(--text) !important;
}

.code-title,
th {
  background: var(--panel-2) !important;
}

pre code {
  background: transparent !important;
  border: 0 !important;
  color: #111827 !important;
}

.search-modal,
.assistant-modal {
  background: rgba(15, 23, 42, 0.24) !important;
}

.search-results,
.assistant-messages {
  background: #f8fafc !important;
}

/* CDAC superconducting materials page */
.material-family-grid {
  margin-top: 28px;
}

.materials-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.material-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.material-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 1.5vw, 2rem);
}

.material-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.material-detail {
  padding-top: 2px;
}

.material-detail strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.material-detail p {
  margin: 0;
}

.material-detail ul {
  margin: 0;
  padding-left: 22px;
}

.material-detail li + li {
  margin-top: 8px;
}

.material-summary-table {
  margin-top: 28px;
}

.material-topic-page .material-family-grid,
.material-topic-page > .info-box {
  display: none;
}

.material-topic-page .materials-grid {
  margin-top: 24px;
}

.material-doc-section .material-card-page {
  margin-top: 28px;
}

