/* Documentation uses the selected cream/ink/cobalt system at reading scale. */
.docs-page {
  font-family: Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
.docs-header {
  height: 72px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 220px minmax(200px, 480px) 1fr;
  gap: 32px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.docs-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
.docs-brand > a {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--ink);
  text-decoration: none;
}
.docs-brand > span {
  font-size: 14px;
  color: var(--body);
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.docs-header > nav {
  justify-self: end;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  white-space: nowrap;
}
.docs-header a {
  color: var(--body);
  text-decoration: none;
}
.docs-header .docs-status {
  font-size: 12px;
  background: #eeebe4;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 9px;
}
.docs-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fdfbf7;
  color: var(--body);
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.docs-search-trigger kbd {
  margin-left: auto;
  font-family: inherit;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  color: #5d6570;
}
.docs-layout {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 740px) 170px;
  gap: 48px;
  padding: 0 32px;
  justify-content: center;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100dvh - 72px);
  overflow-y: auto;
  padding: 28px 16px 36px 0;
  border-right: 1px solid var(--line);
}
.docs-nav-disclosure > summary {
  display: none;
}
.docs-nav-group {
  margin-bottom: 24px;
}
.docs-nav-group > p {
  font-weight: 650;
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--ink);
}
.docs-nav-group > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  line-height: 1.35;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 5px;
  margin-left: -10px;
  color: var(--body);
  text-decoration: none;
}
.docs-nav-group > a:hover {
  background: #eeebe4;
  color: var(--ink);
}
.docs-nav-group > a[aria-current="page"] {
  background: #e9edf8;
  color: #1c47b5;
  font-weight: 600;
}
.docs-nav-group > a > span {
  font-size: 10px;
  color: var(--body);
  background: #eeebe4;
  border-radius: 3px;
  padding: 3px 4px;
  white-space: nowrap;
}
.docs-content {
  padding: 34px 0 0;
  min-width: 0;
}
.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--body);
  margin-bottom: 25px;
}
.docs-breadcrumb a {
  color: var(--body);
  text-decoration: none;
}
.docs-title {
  margin-bottom: 30px;
}
.docs-kind {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 8px;
}
.docs-title h1 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1.3px;
  font-weight: 650;
  margin: 0 0 16px;
  max-width: 100%;
}
.docs-title > p:last-child {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  max-width: 660px;
  margin: 0;
}
.docs-article {
  font-size: 15px;
  line-height: 1.8;
}
.docs-article > section {
  padding: 0;
  margin: 0 0 34px;
  scroll-margin-top: 96px;
}
.docs-article h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.55px;
  line-height: 1.35;
  margin: 0 0 14px;
}
.docs-article h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  margin: 24px 0 9px;
}
.docs-article p {
  margin: 0 0 15px;
}
.docs-article li {
  padding-left: 2px;
  margin: 6px 0;
}
.docs-article ul {
  padding-left: 20px;
  margin: 14px 0;
}
.docs-article a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-heading-link {
  font-size: 17px;
  padding: 0 8px;
  text-decoration: none !important;
  opacity: 0;
}
.docs-article h2:hover .doc-heading-link,
.doc-heading-link:focus-visible {
  opacity: 1;
}
.docs-article code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.87em;
  background: #eeebe5;
  color: #34435b;
  padding: 2px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.docs-article pre {
  position: relative;
  max-width: 100%;
  padding: 20px 50px 20px 20px;
  background: #f0eee8;
  border: 1px solid #dedbd3;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.75;
  margin: 16px 0;
}
.docs-article pre code {
  font-size: 12.5px;
  padding: 0;
  background: none;
  white-space: pre;
  overflow-wrap: normal;
  color: #243450;
}
.doc-copy-button {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid #ccc8be;
  background: #f8f5ef;
  color: var(--body);
  border-radius: 4px;
  font: inherit;
  font-size: 11px;
  padding: 5px 8px;
  cursor: pointer;
  min-width: 45px;
}
.doc-copy-button:focus-visible,
.docs-page a:focus-visible,
.docs-page button:focus-visible,
.docs-page summary:focus-visible,
.docs-page input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.doc-callout {
  background: #eef1f8;
  border: 1px solid #d5dce9;
  border-left: 3px solid var(--blue);
  border-radius: 5px;
  padding: 17px 20px;
  margin: 24px 0;
}
.doc-callout strong {
  font-size: 14px;
}
.doc-callout p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.65;
}
.doc-callout a {
  font-size: 13px;
}
.doc-start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.docs-article a.doc-start {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.docs-article a.doc-start:hover {
  border-color: #9aabd0;
  background: #fffefb;
}
.doc-start strong {
  font-size: 16px;
  line-height: 1.4;
}
.doc-start > span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
}
.doc-start .doc-start-action {
  color: var(--blue);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}
.doc-link-list {
  list-style: none;
  padding: 0 !important;
  border-top: 1px solid var(--line);
}
.doc-link-list li {
  padding: 13px 0 !important;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.doc-link-list li > a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.doc-link-list li > span {
  display: block;
  color: var(--body);
  font-size: 13px;
  margin-top: 3px;
}
.doc-inline-cta {
  font-size: 14px;
  font-weight: 600;
}
.docs-article dl {
  margin: 0;
}
.docs-article dt {
  font-size: 15px;
  font-weight: 650;
  margin: 20px 0 7px;
}
.docs-article dd {
  margin: 0;
  color: var(--body);
}
.doc-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 18px 0;
}
.docs-article table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}
.docs-article th {
  background: #eeebe5;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  text-align: left;
}
.docs-article th,
.docs-article td {
  padding: 13px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}
.docs-article tr:last-child td {
  border-bottom: 0;
}
.docs-article blockquote {
  border-left: 3px solid #bac6df;
  margin: 18px 0;
  padding: 10px 20px;
  color: var(--body);
  font-size: 15px;
}
.docs-article details {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px 18px;
  margin: 16px 0;
  background: #fdfbf7;
}
.docs-article details summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.docs-article details p {
  font-size: 14px;
  margin: 14px 0;
}
.docs-article .recorded-links {
  display: grid;
  gap: 9px;
}
.docs-article .recorded-links a {
  font-size: 13px;
}
.docs-toc {
  position: sticky;
  top: 102px;
  padding-top: 36px;
}
.docs-toc nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.docs-toc p {
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 2px;
}
.docs-toc a {
  font-size: 12px;
  color: var(--body);
  text-decoration: none;
  line-height: 1.5;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.docs-toc a:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.docs-mobile-toc {
  display: none;
}
.docs-maintenance {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 11px;
  color: var(--body);
}
.docs-maintenance a {
  color: var(--body);
  text-underline-offset: 3px;
}
.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}
.docs-pager > a {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fdfbf7;
  text-decoration: none;
  padding: 14px 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.docs-pager > a:last-child {
  text-align: right;
}
.docs-pager a > span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--body);
  margin-bottom: 4px;
}
.docs-footer {
  font-size: 11px;
  color: var(--body);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
}
.docs-footer > a {
  color: var(--body);
}
.docs-search-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 75dvh;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  box-shadow: 0 20px 70px #19212f25;
}
.docs-search-dialog::backdrop {
  background: #19212f55;
}
.docs-search-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.docs-search-heading h2 {
  font:
    600 16px Inter,
    system-ui,
    sans-serif;
  letter-spacing: -0.2px;
  margin: 0;
}
.docs-search-heading button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--body);
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
}
.docs-search-dialog input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b7bdc7;
  background: #fffdf8;
  border-radius: 5px;
  font: inherit;
  color: var(--ink);
  font-size: 15px;
}
.docs-search-status {
  font-size: 12px;
  color: var(--body);
  margin: 12px 0;
}
.docs-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 40dvh;
  overflow-y: auto;
}
.docs-search-results a {
  display: block;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}
.docs-search-results a:hover,
.docs-search-results a:focus {
  background: #e9edf8;
}
.docs-search-results a > span {
  display: block;
  color: var(--body);
  font-size: 11px;
  margin-top: 4px;
}
.docs-search-help {
  font-size: 11px;
  color: var(--body);
  border-top: 1px solid var(--line);
  margin: 15px 0 0;
  padding-top: 12px;
}
@media (max-width: 1230px) {
  .docs-layout {
    grid-template-columns: 200px minmax(0, 760px);
    gap: 36px;
  }
  .docs-toc {
    display: none;
  }
  .docs-mobile-toc {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    margin-bottom: 26px;
    font-size: 12px;
    color: var(--body);
  }
  .docs-mobile-toc nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
  }
  .docs-mobile-toc a {
    color: var(--body);
  }
  .docs-header {
    grid-template-columns: 200px minmax(200px, 430px) 1fr;
    gap: 24px;
  }
}
@media (max-width: 400px) {
  .docs-brand > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .docs-header {
    height: 64px;
    padding: 0 20px;
    display: flex;
    gap: 16px;
  }
  .docs-brand {
    gap: 12px;
  }
  .docs-brand > a {
    font-size: 21px;
  }
  .docs-brand > span {
    font-size: 12px;
    padding-left: 12px;
  }
  .docs-header > nav {
    margin-left: auto;
    gap: 0;
  }
  .docs-header > nav > a:first-child {
    display: none;
  }
  .docs-header .docs-status {
    font-size: 10px;
    padding: 4px 6px;
  }
  .docs-search-trigger {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 12px;
    margin-left: auto;
  }
  .docs-search-trigger > span,
  .docs-search-trigger > kbd {
    display: none;
  }
  .docs-header > nav {
    margin-left: 0;
  }
  .docs-layout {
    display: block;
    padding: 0 20px;
  }
  .docs-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    padding: 14px 0 0;
    border-right: 0;
  }
  .docs-nav-disclosure {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
  .docs-nav-disclosure > summary {
    display: list-item;
    font-size: 13px;
    color: var(--body);
    cursor: pointer;
    min-height: 30px;
  }
  .docs-nav-disclosure nav {
    padding: 18px 8px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .docs-nav-group {
    margin-bottom: 15px;
  }
  .docs-nav-group > a {
    min-height: 40px;
    font-size: 12px;
  }
  .docs-content {
    padding-top: 22px;
  }
  .docs-breadcrumb {
    margin-bottom: 19px;
    font-size: 11px;
  }
  .docs-title {
    margin-bottom: 20px;
  }
  .docs-title h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .docs-title > p:last-child {
    font-size: 15px;
  }
  .docs-article {
    font-size: 14px;
  }
  .docs-article h2 {
    font-size: 21px;
  }
  .docs-article pre {
    padding: 18px 52px 18px 15px;
  }
  .doc-start-grid {
    grid-template-columns: 1fr;
  }
  .docs-article a.doc-start {
    padding: 18px;
  }
  .docs-page .doc-heading-link {
    opacity: 1;
  }
  .docs-pager {
    gap: 10px;
  }
  .docs-pager > a {
    padding: 12px;
    font-size: 12px;
  }
  .docs-footer {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .docs-search-dialog {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .docs-page *,
  .docs-page *::before,
  .docs-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.docs-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.docs-article td > code { white-space: nowrap; word-break: normal; }

/* Historical benchmark outcomes use the existing docs system. */
.benchmark-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0 16px}
.benchmark-summary>div{display:flex;flex-direction:column;gap:3px}
.benchmark-summary strong{font-size:32px;font-weight:600;line-height:1.15;letter-spacing:-1px}
.benchmark-summary span{font-size:13px;color:var(--body)}
.benchmark-outcome-bar{display:flex;height:8px;border-radius:3px;overflow:hidden;margin:0 0 24px}
.benchmark-outcome-bar span:first-child{background:#2855bf}
.benchmark-outcome-bar span:last-child{background:#b5ada2}
@media(max-width:480px){.benchmark-summary{gap:10px}.benchmark-summary strong{font-size:28px}.benchmark-summary span{font-size:12px}}
.docs-article .artifact-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin:18px 0 22px}
/* Workflow tutorials use document-like diagrams and compact step lists. */
.doc-flow{list-style:none;padding:16px 0!important;display:flex;flex-wrap:wrap;gap:10px 16px;border-block:1px solid var(--line);font-size:12px;color:var(--body)}
.doc-flow li{margin:0!important;padding:0!important}
.doc-flow li+li:before{content:'→';padding-right:16px;color:var(--blue)}
.doc-system-figure{margin:22px 0;border:1px solid var(--line);border-radius:5px;background:#fdfbf7;overflow:auto}
.doc-system-figure img{width:100%;height:auto;min-width:650px;display:block}
.doc-system-figure figcaption{padding:12px 16px;border-top:1px solid var(--line);font-size:12px}
