/* amrothabet.com v2, documentation. Generated by tools/make_docs_css.py: edit that file, not this one. */

/* the first version's custom properties, mapped onto the new palette */
body.docs {
  --nav-h: 64px; --header-h: var(--nav-h);
  --bg: var(--ink); --bg-elev: var(--ink-2); --surface: var(--ink-2); --surface-2: var(--ink-3); --surface-3: var(--ink-4);
  --line-strong: var(--line-2);
  --text: var(--bone); --text-2: #c9c6bf; --muted: var(--mute);
  --accent: var(--mint); --accent-soft: rgba(126, 224, 195, .12); --accent-line: rgba(126, 224, 195, .45);
  --btn-bg: var(--bone); --btn-ink: var(--ink);
  --code-bg: #0d0f12; --code-ink: #dedbd4; --tok-key: var(--pink); --tok-str: var(--mint); --tok-com: #74736e; --tok-num: #ffb27a;
  --ok: var(--mint); --warn: var(--sun); --danger: #ff7a70;
  --note-bg: rgba(140, 188, 255, .06); --tip-bg: rgba(126, 224, 195, .06); --warn-bg: rgba(255, 209, 102, .07); --danger-bg: rgba(255, 122, 112, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5); --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
  --font-sans: var(--f-text); --font-display: var(--f-display); --font-mono: var(--f-mono);
  --step--1: .875rem; --step-0: 1rem; --step-1: 1.125rem; --step-2: 1.5rem; --step-3: 1.875rem; --step-4: clamp(2.1rem, 3.6vw, 3.1rem); --step-5: 4rem;
  --radius: 12px; --radius-sm: 8px; --radius-lg: 18px;
  padding-top: var(--nav-h); font-size: 16px;
}

/* ---------- the documentation rules written for the first version, unchanged ---------- */
/* ---------- Docs layout ---------- */
.docs-shell { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr) 14.5rem; gap: 0; max-width: 90rem; margin: 0 auto; width: 100%; }
.docs-sidebar {
  position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 28px 20px 48px var(--gutter); border-right: 1px solid var(--line); font-size: .9rem; overscroll-behavior: contain;
}
.docs-sidebar .product-switch { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--text); text-decoration: none; font-weight: 650; }
.docs-sidebar .product-switch img { width: 28px; height: 28px; border-radius: 7px; }
.docs-sidebar .product-switch small { display: block; font-weight: 450; color: var(--muted); font-size: .78rem; }
.docs-nav-group { margin-bottom: 22px; }
.docs-nav-group h2 { font: 600 .72rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 10px; }
.docs-nav-group ul { list-style: none; display: grid; gap: 1px; }
.docs-nav-group a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.docs-nav-group a:hover { color: var(--text); background: var(--surface-2); }
.docs-nav-group a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.docs-main { min-width: 0; padding: 36px clamp(20px, 4vw, 64px) 80px; }
.docs-article { max-width: 76ch; margin: 0 auto; }
.docs-toc { position: sticky; top: var(--header-h); align-self: start; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 36px var(--gutter) 40px 8px; font-size: .84rem; }
.docs-toc h2 { font: 600 .72rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.docs-toc ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.docs-toc .toc-h3 a { padding-left: 24px; }
.docs-toggle { display: none; }
.docs-scrim { display: none; }

@media (max-width: 1240px) { .docs-shell { grid-template-columns: 15.75rem minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 900px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar {
    position: fixed; z-index: 35; inset: var(--header-h) auto 0 0; width: min(320px, 86vw); height: auto; background: var(--bg);
    border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .22s var(--ease); box-shadow: var(--shadow-lg);
    padding-left: 20px;
  }
  .docs-open .docs-sidebar { transform: none; }
  .docs-scrim { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 34; background: rgba(0,0,0,.35); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility 0s linear .2s; }
  .docs-open .docs-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
  .js .docs-toggle { display: inline-flex; }
  html:not(.js) .docs-sidebar { position: static; transform: none; width: auto; box-shadow: none; border-right: 0; border-bottom: 1px solid var(--line); height: auto; }
  .docs-main { padding-top: 20px; }
}
.docs-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 76ch; margin: 0 auto 26px; font-size: 1rem; }
.docs-toggle { align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 600 .875rem/1 var(--font-sans); cursor: pointer; }
.docs-toggle svg { width: 16px; height: 16px; }
.breadcrumbs { font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }

.search-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px 0 12px; min-width: 220px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer;
  font: 500 .875rem/1 var(--font-sans); transition: border-color .15s var(--ease), color .15s var(--ease);
}
.search-btn:hover { border-color: var(--text-2); color: var(--text); }
.search-btn svg { width: 16px; height: 16px; flex: none; }
.search-btn kbd { margin-left: auto; }
.search-btn { display: none; }
.js .search-btn { display: inline-flex; }
@media (max-width: 1100px) { .search-btn { min-width: 0; width: 38px; height: 38px; padding: 0; justify-content: center; } .search-btn .label, .search-btn kbd { display: none; } }

/* ---------- Prose (docs content) ---------- */
.prose { font-size: 1rem; line-height: 1.7; color: var(--text-2); }
.prose > * + * { margin-top: 1.05em; }
.prose h1 { font-size: var(--step-4); color: var(--text); letter-spacing: -.035em; line-height: 1.05; margin-bottom: .45em; }
.prose .lead { font-size: var(--step-1); line-height: 1.55; color: var(--text-2); }
.prose h2 { font-size: var(--step-2); color: var(--text); margin-top: 2.2em; padding-top: .3em; letter-spacing: -.02em; }
.prose h3 { font-size: 1.1875rem; color: var(--text); margin-top: 1.8em; letter-spacing: -.012em; }
.prose h4 { font-size: 1rem; color: var(--text); margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li > ul, .prose li > ol { margin-top: .4em; }
.prose :not(pre) > code { padding: .12em .38em; border-radius: 5px; background: var(--code-bg); border: 1px solid var(--line); color: var(--code-ink); font-size: .86em; overflow-wrap: anywhere; }
.prose a code { color: inherit; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-top: 1.6em; margin-bottom: 1.6em; }
.prose figure .frame { box-shadow: var(--shadow); }
.prose dl { display: grid; gap: 12px; }
.prose dt { color: var(--text); font-weight: 600; }
.prose dd { margin: 2px 0 0; }
.heading-anchor {
  margin-left: .35em; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; transition: opacity .15s var(--ease);
}
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }

kbd {
  display: inline-block; min-width: 1.6em; padding: .08em .45em; border-radius: 6px; text-align: center;
  font: 600 .78em/1.5 var(--font-mono); color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: inset 0 -1px 0 var(--line-strong); white-space: nowrap;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
.prose td.wrap-code code { white-space: normal; }
.prose th.num { white-space: normal; }
.prose .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .84rem; white-space: nowrap; }

.code-block { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); overflow: hidden; }
.code-block .code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); font: 500 .75rem/1.2 var(--font-mono); color: var(--muted); }
.code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: .84rem; line-height: 1.65; color: var(--code-ink); tab-size: 4; }
.code-block pre code { font-size: inherit; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text-2); font: 600 .75rem/1 var(--font-sans); cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--text-2); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn[data-copied="true"] { color: var(--ok); border-color: currentColor; }
.tok-k { color: var(--tok-key); }
.tok-s { color: var(--tok-str); }
.tok-c { color: var(--tok-com); font-style: italic; }
.tok-n { color: var(--tok-num); }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--note-bg); font-size: .9375rem; line-height: 1.6; }
.callout > * + * { margin-top: .5em; }
.callout-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; font-size: .875rem; }
.callout-title svg { width: 16px; height: 16px; flex: none; }
.callout.tip { border-left-color: var(--ok); background: var(--tip-bg); }
.callout.tip .callout-title svg { color: var(--ok); }
.callout.warning { border-left-color: var(--warn); background: var(--warn-bg); }
.callout.warning .callout-title svg { color: var(--warn); }
.callout.danger { border-left-color: var(--danger); background: var(--danger-bg); }
.callout.note .callout-title svg { color: var(--accent); }
.prose .callout ul { margin-top: .5em; }

.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8125rem; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.partial { color: var(--warn); }
.status.none { color: var(--muted); }

.card-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; list-style: none; padding: 0 !important; }
.card-links li { margin: 0 !important; }
.card-links a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.card-links a:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.card-links b { color: var(--text); font-weight: 600; }
.card-links span { color: var(--muted); font-size: .875rem; line-height: 1.5; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 600; transition: border-color .15s var(--ease); }
.pager a:hover { border-color: var(--accent-line); }
.pager small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 520px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }
.docs-meta { margin-top: 28px; font-size: .8125rem; color: var(--muted); }

/* ---------- Search dialog ---------- */
.search-dialog {
  width: min(680px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 48px)); padding: 0; margin: 8vh auto auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-dialog::backdrop { background: rgba(5, 7, 10, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.search-dialog form { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-dialog form svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-dialog input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 1.0625rem/1.4 var(--font-sans); padding: 6px 0; }
.search-dialog input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-results { list-style: none; overflow-y: auto; max-height: calc(min(640px, 100vh - 48px) - 110px); padding: 8px; }
.search-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--text); }
.search-results a .crumb { font-size: .75rem; color: var(--muted); font-family: var(--font-mono); }
.search-results a .title { font-weight: 600; }
.search-results a .snippet { font-size: .84rem; color: var(--text-2); line-height: 1.5; }
.search-results a mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 1px; }
.search-results li[aria-selected="true"] a, .search-results a:hover { background: var(--surface-2); }
.search-empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: .9rem; }
.search-foot { display: flex; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }

/* shared pieces the documentation content uses */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #15171b; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.frame picture, .frame img, .frame video { width: 100%; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.figure-pair .frame { box-shadow: var(--shadow); }
.figure-pair figcaption { margin-top: 10px; }
@media (max-width: 640px) { .figure-pair { grid-template-columns: 1fr; } }
.tag-before, .tag-after { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; font: 500 11px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bone); background: rgba(10, 11, 13, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tag-after { background: var(--mint); color: var(--ink); }
.contact-line { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.contact-line p { color: var(--text-2); max-width: 52ch; flex: 1 1 100%; }
.blueprint-embed { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #262626; box-shadow: var(--shadow); }
.blueprint-embed iframe { width: 100%; height: clamp(380px, 60vh, 600px); border: 0; display: block; background: #262626; }
.blueprint-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--surface); border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.blueprint-bar .actions { gap: 8px; }

/* ---------- the new frame ---------- */
.nav.nav-docs { mix-blend-mode: normal; color: var(--bone); background: rgba(10, 11, 13, .82); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid var(--line); pointer-events: auto; }
.nav-docs .wrap { max-width: none; }
.nav-docs .search-btn { min-height: 38px; background: rgba(242, 239, 233, .05); border-color: var(--line-2); color: var(--mute); font-family: var(--f-text); }
.nav-docs .search-btn:hover { color: var(--bone); border-color: rgba(242, 239, 233, .45); }
.nav-docs .search-btn kbd { font-size: 11px; background: transparent; box-shadow: none; border-color: var(--line-2); color: var(--mute); }
@media (max-width: 860px) { .nav-docs .search-btn { order: -1; } }
body.docs .cursor { display: none; }
body.docs .foot-word { display: none; }
body.docs .foot { padding-bottom: 28px; }
html { scroll-padding-top: calc(var(--nav-h, 64px) + 20px); }

.docs-shell { max-width: 96rem; grid-template-columns: 17.5rem minmax(0, 1fr) 15rem; }
.docs-sidebar { padding-top: 30px; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.docs-toc { scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.docs-sidebar .product-switch { padding: 10px; margin: 0 0 22px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--ink-2); }
.docs-sidebar .product-switch img { width: 32px; height: 32px; border-radius: 8px; }
.docs-sidebar .product-switch small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.docs-nav-group h2, .docs-toc h2 { font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .08em; }
.docs-nav-group a { font-size: 14.5px; transition: background .15s, color .15s; }
.docs-nav-group a[aria-current="page"] { background: rgba(126, 224, 195, .1); box-shadow: inset 2px 0 0 var(--mint); border-radius: 0 7px 7px 0; }
.docs-main { padding-top: 34px; }
.docs-article { max-width: 46rem; }
.docs-toolbar { max-width: 46rem; }
.breadcrumbs { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 1240px) { .docs-shell { grid-template-columns: 16.5rem minmax(0, 1fr); } }
@media (max-width: 900px) { .docs-shell { grid-template-columns: minmax(0, 1fr); } }

/* ---------- content ---------- */
.prose { font-size: 16.5px; line-height: 1.72; }
.prose h1 { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; line-height: 1; text-wrap: balance; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.15; padding-top: 1.1em; margin-top: 2.2em; border-top: 1px solid var(--line); }
.prose h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; }
.prose .lead { color: var(--bone-2); text-wrap: pretty; }
.prose ul:not(.card-links) { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--mute); }
.prose a:not(.btn):not(.heading-anchor) { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(126, 224, 195, .65); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.prose a:not(.btn):not(.heading-anchor):hover { color: var(--mint); text-decoration-color: currentColor; }
.prose code, .prose pre, kbd { font-family: var(--f-mono); }
.prose code, .prose pre { font-size: .9em; }
.prose h3 { line-height: 1.2; }
.prose h4 { font-weight: 650; line-height: 1.3; }
.prose p, .prose li { text-wrap: pretty; }
.prose img, .prose video { height: auto; }
.prose iframe { display: block; max-width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.prose figcaption { font-size: 13.5px; color: var(--mute); margin-top: 10px; }
.prose th { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); background: var(--ink-2); }
.prose .btn { height: 44px; padding: 0 20px; font-size: 14.5px; }
.prose .btn-primary { background: var(--bone); color: var(--ink); }
.blueprint-bar .btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
.card-links a { background: var(--ink-2); text-decoration: none !important; }
.card-links a:hover { background: var(--ink-3); }
.card-links b { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; }
.callout { border-left-color: var(--sky); border-radius: 10px; }
.callout.note .callout-title svg { color: var(--sky); }
.pager a { background: var(--ink-2); text-decoration: none !important; font-family: var(--f-display); font-stretch: 108%; }
.pager a:hover { background: var(--ink-3); }
.pager small { font: 500 11px/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }
.search-dialog { background: var(--ink-2); }
.search-dialog input { font-family: var(--f-text); }
.search-dialog input::placeholder { color: var(--dim); }
.search-results a .title { font-family: var(--f-display); font-stretch: 108%; }
.copy-btn { font-family: var(--f-text); }
