/* ==========================================================================
   GENERATED FILE — do not edit.
   Built from shared/theme/tokens.css + shared/theme/components.css +
   sites/how/layout.css by sites/how/tools/render.mjs.
   ========================================================================== */

/* ==========================================================================
   Reply agent-site theme — TOKENS + BASE
   --------------------------------------------------------------------------
   Canonical design tokens for every site in this repo. Values are extracted
   verbatim from the deployed agents.reply.io build
   (public/_astro/about.D_5ipFkz.css) so sibling sites cannot drift apart.

   Do NOT edit a site's built public/_assets/site.css — edit this file and
   re-run the site's renderer:  node sites/<site>/tools/render.mjs
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-subtle: #f7f9fc;
  --bg-inset: #f0f3f9;
  --header-bg: rgba(255, 255, 255, 0.92);

  /* text */
  --text: #0a2540;
  --text-secondary: #45566e;
  --text-muted: #6b7c93;

  /* lines */
  --border: #e3e8f0;
  --border-strong: #cfd7e3;

  /* brand */
  --accent: #5a50e8;
  --accent-strong: #4338ca;
  --accent-bg: #eef0fe;

  /* status */
  --ok: #067a55;
  --ok-bg: #e6f6f0;
  --warn: #92600a;
  --warn-bg: #fdf3e0;
  --neutral: #5b6b81;
  --neutral-bg: #eef1f5;

  /* code */
  --code-bg: #0e1a2f;
  --code-text: #dbe7f6;
  --code-accent: #8fd0ff;

  /* shape */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(10, 37, 64, 0.06), 0 4px 16px rgba(10, 37, 64, 0.05);

  /* type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* measure */
  --max-width: 1080px;
  --max-prose: 46rem;
}

/* Light is the default. Dark applies only when the theme toggle sets the
   attribute — the OS preference never flips it on its own. */
:root[data-theme="dark"] {
  --bg: #0b1420;
  --bg-subtle: #101c2c;
  --bg-inset: #16253a;
  --header-bg: rgba(11, 20, 32, 0.92);

  --text: #e6eef9;
  --text-secondary: #a9bdd6;
  --text-muted: #7f93ad;

  --border: #1e2f45;
  --border-strong: #2b405c;

  --accent: #8b83ff;
  --accent-strong: #aaa3ff;
  --accent-bg: #1d1b42;

  --ok: #4ecfa0;
  --ok-bg: #0f3129;
  --warn: #e5b866;
  --warn-bg: #33280f;
  --neutral: #9fb0c6;
  --neutral-bg: #1b2739;

  --code-bg: #060e19;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 {
  font-size: 2.35rem;
  font-weight: 700;
}
h2 {
  font-size: 1.5rem;
  font-weight: 650;
  margin-top: 2.2em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-top: 1.6em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-inset);
  border-radius: 4px;
  padding: 0.12em 0.35em;
}

pre {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  max-width: 100%;
  font-size: 0.83rem;
  line-height: 1.55;
}
pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
:is(.prose, main) :not(pre) > code {
  overflow-wrap: anywhere;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  margin: 0 0 1.4em;
}
th,
td {
  text-align: left;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

img {
  max-width: 100%;
}

/* Wide content scrolls inside its own box — the page body never does. */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.prose {
  max-width: 100%;
}

/* ==========================================================================
   Reply agent-site theme — SHARED COMPONENTS
   --------------------------------------------------------------------------
   Chrome and content components used by more than one site. Site-specific
   page shells (headers, sidebars, navigation) live in sites/<site>/layout.css.

   Extracted from the deployed agents.reply.io build so components render
   identically across sites.
   ========================================================================== */

/* ---- machine-readable entry-point banner -------------------------------- */
.agent-banner {
  background: var(--text);
  color: #cfe0f5;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
:root[data-theme="dark"] .agent-banner {
  background: #060e19;
  color: #a9bdd6;
}
.agent-banner .container {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.agent-banner a {
  color: #9db9ff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ---- layout helper ------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ---- status badges ----------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.18em 0.65em;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
}
.badge:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.available {
  color: var(--ok);
  background: var(--ok-bg);
}
.badge.coming-soon {
  color: var(--warn);
  background: var(--warn-bg);
}
.badge.concept,
.badge.placeholder {
  color: var(--neutral);
  background: var(--neutral-bg);
}

/* ---- cards ------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 1.4rem 0 2rem;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
a.card:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
}
.card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.card .meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}
.card .ext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-strong);
  text-decoration: none;
}
.btn.secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg);
}
.btn.secondary:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* ---- section eyebrow / kicker ------------------------------------------ */
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}

/* ---- numbered steps ---------------------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.9rem;
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
}
.steps > li:before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-bg);
  border-radius: 50%;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- definition list --------------------------------------------------- */
.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.4rem 1.2rem;
  font-size: 0.92rem;
  margin: 1rem 0 1.6rem;
}
.kv dt {
  color: var(--text-muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---- callouts ---------------------------------------------------------- */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  margin: 1.2rem 0;
}
.callout.warn {
  border-left-color: var(--warn);
}
.callout.note {
  border-left-color: var(--neutral);
}
.callout p:last-child {
  margin-bottom: 0;
}

/* ---- footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.6rem;
}
.site-footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.4rem;
}
.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--accent-strong);
}
.footer-note {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  h1 {
    font-size: 1.9rem;
  }
  .kv {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .kv dt {
    margin-top: 0.6rem;
  }
}

/* ==========================================================================
   how.reply.io — DOCS SHELL LAYOUT (site-specific)
   --------------------------------------------------------------------------
   Left sidebar navigation, tab row, sticky header with search + theme toggle,
   right-hand "On this page" table of contents.

   Uses only tokens from shared/theme/tokens.css — no colour or type value is
   invented here, so this site stays visually identical to agents.reply.io.
   ========================================================================== */

:root {
  --header-h: 60px;
  --tabs-h: 46px;
  --sidebar-w: 252px;
  --toc-w: 232px;
  --shell-max: 1560px;
  --gutter: 1.6rem;
}

body {
  overflow-x: hidden;
}

/* ---- bars: header + tabs ------------------------------------------------ */
.docs-bar {
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  z-index: 30;
}
.docs-bar--head {
  top: 0;
}
.docs-bar--tabs {
  top: var(--header-h);
  z-index: 29;
}
.docs-bar__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* header row: brand | search (page-centered) | actions
   Equal 1fr side columns keep the search column on the page's center line. */
.docs-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  flex: none;
  display: block;
}

/* ---- search ------------------------------------------------------------- */
.docs-search {
  width: 100%;
}
.docs-search__trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  height: 38px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.docs-search__trigger:hover {
  border-color: var(--border-strong);
  background: var(--bg-inset);
}
.docs-search__trigger svg {
  flex: none;
  color: var(--text-muted);
}
.docs-search__label {
  flex: 1;
  text-align: left;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  background: var(--bg);
  white-space: nowrap;
}

.docs-head__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.docs-head__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35em 0.6em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.docs-head__link:hover {
  background: var(--bg-inset);
  color: var(--text);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--bg-inset);
  color: var(--text);
}
/* the toggle shows the icon for the theme you would switch *to* */
.icon-btn .icon-moon {
  display: none;
}
:root[data-theme="dark"] .icon-btn .icon-sun {
  display: none;
}
:root[data-theme="dark"] .icon-btn .icon-moon {
  display: block;
}

/* ---- tab row ------------------------------------------------------------ */
.docs-tabs {
  display: flex;
  gap: 0.3rem;
  height: var(--tabs-h);
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.docs-tabs::-webkit-scrollbar {
  display: none;
}
.docs-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.docs-tabs a:hover {
  color: var(--text);
  text-decoration: none;
}
.docs-tabs a[aria-current="page"] {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

/* ---- shell grid --------------------------------------------------------- */
.docs-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  align-items: start;
  gap: 0 2.4rem;
}

/* ---- left sidebar ------------------------------------------------------- */
.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--tabs-h));
  height: calc(100vh - var(--header-h) - var(--tabs-h));
  overflow-y: auto;
  padding: 1.9rem 0.9rem 3rem 0;
  font-size: 0.92rem;
}
.docs-sidebar__group + .docs-sidebar__group {
  margin-top: 1.7rem;
}
.docs-sidebar__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  padding-left: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.docs-sidebar__title svg {
  flex: none;
  color: var(--text-muted);
}
.docs-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-sidebar li {
  margin: 0.05rem 0;
}
.docs-sidebar li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 450;
}
.docs-sidebar li a:hover {
  background: var(--bg-inset);
  color: var(--text);
  text-decoration: none;
}
.docs-sidebar li a[aria-current="page"] {
  background: var(--accent-bg);
  color: var(--accent-strong);
  font-weight: 600;
}
/* mobile disclosure — hidden on desktop */
.docs-nav-toggle {
  display: none;
}

/* ---- main column -------------------------------------------------------- */
.docs-main {
  min-width: 0;
  padding: 1.9rem 0 4.5rem;
}
.docs-article {
  max-width: var(--max-prose);
}
.docs-eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0 0 0.5rem;
}
.docs-article h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}
.docs-lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
}
.docs-article h2 {
  scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 1.2rem);
  padding-top: 0.4rem;
}
.docs-article h3 {
  scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 1.2rem);
}
.docs-status {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge.type {
  color: var(--neutral);
  background: var(--neutral-bg);
}
.badge.type::before {
  background: var(--neutral);
}
.docs-verified {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* answer-first lead — the page's question plus the extractable 40–60 word
   answer, boxed as a Q&A panel. The renderer strips a leading "Yes./No."
   from the visible answer; machine files keep it. */
.docs-qa {
  background: var(--warn-bg);
  border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem 1.25rem;
  margin-bottom: 1.8rem;
  max-width: var(--max-prose);
}
.docs-qa__label {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warn);
  margin: 0 0 0.55rem;
}
.docs-qa__q {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 0.45rem;
}
.docs-qa__a {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* copy page — split button + dropdown, top-right of the title row */
.docs-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: nowrap; /* long titles wrap their text; the copy button stays top-right */
}
.docs-titlebar h1 {
  flex: 1 1 auto;
  min-width: 0;
}
.docs-copy {
  position: relative;
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.docs-copy__split {
  display: inline-flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.docs-copy__main,
.docs-copy__caret {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.42rem 0.75rem;
  line-height: 1.2;
}
.docs-copy__caret {
  padding: 0.42rem 0.45rem;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
}
.docs-copy__main:hover,
.docs-copy__caret:hover {
  background: var(--bg-subtle);
  color: var(--text);
}
.docs-copy__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 232px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.3rem;
  z-index: 30;
}
.docs-copy__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  line-height: 1.2;
}
.docs-copy__item:hover {
  background: var(--bg-subtle);
}
.docs-copy__main svg,
.docs-copy__caret svg,
.docs-copy__item svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* prev / next */
.docs-pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.docs-pager a {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  display: block;
  transition: border-color 0.12s ease;
}
.docs-pager a:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.docs-pager .dir {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.docs-pager .to {
  font-weight: 600;
  color: var(--text);
}
.docs-pager .next {
  text-align: right;
}

/* ---- right-hand TOC ----------------------------------------------------- */
.docs-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--tabs-h));
  max-height: calc(100vh - var(--header-h) - var(--tabs-h));
  overflow-y: auto;
  padding: 2.2rem 0 3rem;
  font-size: 0.88rem;
}
.docs-toc__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-toc a {
  display: block;
  padding: 0.24rem 0;
  color: var(--text-secondary);
  line-height: 1.45;
}
.docs-toc a:hover {
  color: var(--text);
  text-decoration: none;
}
.docs-toc a.is-active {
  color: var(--accent-strong);
  font-weight: 600;
}
.docs-toc li.lvl-3 a {
  padding-left: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.docs-toc li.lvl-3 a:hover,
.docs-toc li.lvl-3 a.is-active {
  color: var(--accent-strong);
}

/* ---- full-bleed chrome: banner + footer share the shell measure --------- */
.agent-banner .container,
.site-footer .container {
  max-width: var(--shell-max);
  padding: 0 var(--gutter);
}

/* ---- search dialog ------------------------------------------------------ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 12vh 1.2rem 1.2rem;
  background: rgba(10, 37, 64, 0.34);
}
:root[data-theme="dark"] .search-modal {
  background: rgba(0, 0, 0, 0.6);
}
.search-modal[open],
.search-modal.is-open {
  display: block;
}
.search-panel {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search-panel__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.search-panel input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 52vh;
  overflow-y: auto;
}
.search-results a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.search-results a:hover,
.search-results li.is-active a {
  background: var(--accent-bg);
  text-decoration: none;
}
.search-results .r-title {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
}
.search-results .r-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.search-empty {
  padding: 1.1rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.search-panel__foot {
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1220px) {
  .docs-shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    gap: 0 2rem;
  }
  .docs-toc {
    display: none;
  }
}

@media (max-width: 940px) {
  .docs-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .docs-head__link {
    display: none;
  }

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

  .docs-nav-toggle {
    display: block;
    width: 100%;
    margin-top: 1.2rem;
    padding: 0.55rem 0.9rem;
    text-align: left;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .docs-sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0.8rem 0 0;
    border-bottom: 1px solid var(--border);
  }
  .docs-sidebar[hidden] {
    display: none;
  }
  .docs-main {
    padding-top: 1.4rem;
  }
  .docs-article h1 {
    font-size: 2.05rem;
  }
}

@media (max-width: 620px) {
  .docs-search__label,
  .docs-search .kbd {
    display: none;
  }
  .docs-search {
    width: auto;
    justify-self: end;
  }
  .docs-search__trigger {
    justify-content: center;
    width: 38px;
    padding: 0;
  }
}
