/* DC1: the documentation centre and the public legal pages (docs/slices/DOCS_DC1.md). Loaded by templates/docs/base.html
   alone; outside the application's D-A1 budget like site.css. Budget 24 KB (tests/test_dc1_docs.py). The brand of the
   repository: navy ink, one blue accent for selection, focus and actions, warm paper, white reading surface; Inter. */

@font-face { font-family: Inter; src: url("../fonts/inter/InterVariable.1506de3995b1.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #5b6577; --brand: #1d4ed8; --brand-dark: #1e3a8a; --brand-soft: #eef3ff;
  --paper: #f7f5f0; --card: #fff; --line: #e3e5ea; --band: #f3f4f6; --ok: #166534; --ok-soft: #ecfdf3;
  --warn: #92400e; --warn-soft: #fff7ed; --bad: #991b1b; --header: 64px; --nav: 284px; --toc: 228px; --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.docs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.docs-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.docs-skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 650; }
.docs-skip:focus { top: 10px; color: #fff; }

/* ---- header ---------------------------------------------------------------------------------------------------- */
.docs-header { position: sticky; top: 0; z-index: 30; height: var(--header); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.docs-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.docs-brand__mark { width: 30px; height: 22px; color: var(--brand); stroke: none; }
.docs-brand--small { font-size: 15px; }
.docs-header__label { color: var(--muted); font-weight: 600; text-decoration: none; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.docs-header__label[aria-current] , .docs-header__label:hover { color: var(--ink); }
.docs-header__search { position: relative; flex: 1 1 360px; max-width: 520px; margin: 0 auto; display: flex; align-items: center; }
.docs-header__search svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.docs-header__search input { width: 100%; height: 42px; padding: 0 76px 0 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--band); font-size: 15px; }
.docs-header__search input:focus { background: #fff; border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.docs-kbd, kbd { position: absolute; right: 10px; font: 600 12px/1 Inter, system-ui, sans-serif; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 4px 6px; background: #fff; }
kbd { position: static; }
.docs-header__end { display: flex; align-items: center; gap: 14px; }
.docs-header__link { color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.docs-header__menu, .docs-nav__close { display: none; border: 0; background: transparent; padding: 8px; border-radius: 8px; }
.docs-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.docs-lang button { border: 0; background: #fff; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.docs-lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.docs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; }
.docs-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.docs-btn--primary:hover { background: var(--brand-dark); color: #fff; }

/* ---- three columns --------------------------------------------------------------------------------------------- */
.docs-shell { display: grid; grid-template-columns: var(--nav) minmax(0, 1fr) var(--toc); max-width: 1600px; margin: 0 auto; align-items: start; }
.docs-shell--home, .docs-shell--wide { grid-template-columns: var(--nav) minmax(0, 1fr); }
.docs-nav, .docs-toc { position: sticky; top: var(--header); max-height: calc(100vh - var(--header)); overflow-y: auto; overscroll-behavior: contain; }
.docs-nav { padding: 18px 12px 40px 18px; border-right: 1px solid var(--line); font-size: 15px; min-height: calc(100vh - var(--header)); }
.docs-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.docs-nav__home { font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 7px; }
.docs-nav__home.is-current { background: var(--brand-soft); color: var(--brand-dark); }
.docs-nav__section { margin: 2px 0; }
.docs-nav__section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-radius: 7px; }
.docs-nav__section > summary::-webkit-details-marker { display: none; }
.docs-nav__section > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 3px; }
.docs-nav__section[open] > summary::before { transform: rotate(45deg); }
.docs-nav__section > summary:hover { color: var(--ink); background: var(--band); }
.docs-nav ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 12px; }
.docs-nav li { display: flex; align-items: baseline; gap: 6px; }
.docs-nav li a { display: block; flex: 1; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.docs-nav li a:hover { color: var(--ink); border-left-color: #94a3b8; }
.docs-nav li a.is-current { color: var(--brand-dark); font-weight: 650; border-left-color: var(--brand); background: var(--brand-soft); border-radius: 0 7px 7px 0; }
.docs-tag { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.docs-scrim { position: fixed; inset: var(--header) 0 0 0; background: rgba(15, 23, 42, .35); z-index: 24; }
.docs-main { min-width: 0; padding: 30px 48px 64px; outline: none; }
.docs-toc { padding: 30px 18px 40px 6px; font-size: 14px; }
.docs-toc__title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.docs-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-toc li a { display: block; padding: 4px 10px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.docs-toc li a:hover { color: var(--ink); }
.docs-toc li a.is-active { color: var(--brand-dark); border-left-color: var(--brand); font-weight: 600; }
.docs-toc__l3 a { padding-left: 22px !important; font-size: 13px; }
.docs-toc__top { margin: 14px 0 0 10px; font-size: 13px; }
.docs-toc__top a { color: var(--muted); }
.docs-toc-inline { display: none; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px 16px; font-size: 16px; }
.docs-toc-inline summary { font-weight: 650; cursor: pointer; }
.docs-toc-inline ol { list-style: none; padding: 0; margin: 8px 0 0; }
.docs-toc-inline li { padding: 3px 0; }

/* ---- the article ----------------------------------------------------------------------------------------------- */
.docs-article { max-width: 840px; font-size: 18px; line-height: 1.65; }
.docs-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.docs-crumbs a { color: var(--muted); }
.docs-article h1 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 10px; }
.docs-lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; }
.docs-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.docs-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--band); color: var(--ink-2); white-space: nowrap; }
.docs-chip--ok { background: var(--ok-soft); color: var(--ok); }
.docs-chip--warn { background: var(--warn-soft); color: var(--warn); }
.docs-body h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.015em; margin: 44px 0 12px; padding-top: 6px; }
.docs-body h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; }
.docs-body h2, .docs-body h3 { position: relative; scroll-margin-top: calc(var(--header) + 20px); }
.docs-anchor { margin-left: 8px; opacity: 0; color: var(--muted); border: 0; background: none; padding: 2px 4px; vertical-align: middle; border-radius: 6px; }
.docs-anchor svg { width: 18px; height: 18px; }
h2:hover > .docs-anchor, h3:hover > .docs-anchor, .docs-anchor:focus-visible { opacity: 1; }
.docs-anchor.is-copied::after { content: attr(data-copied); font-size: 13px; font-weight: 600; margin-left: 4px; color: var(--ok); }
.docs-body p, .docs-body ul, .docs-body ol { margin: 0 0 16px; }
.docs-body li { margin: 4px 0; }
.docs-body ol > li::marker { font-weight: 700; color: var(--ink-2); }
.docs-body code { font: 15px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--band); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.docs-body strong { font-weight: 650; }
.help-table, .docs-table { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.docs-body table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
.docs-body th, .docs-body td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.docs-body thead th { background: var(--band); font-weight: 650; white-space: nowrap; }
.docs-body tbody tr:last-child td { border-bottom: 0; }
.help-callout, .docs-callout { margin: 0 0 20px; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 17px; }
.help-callout p:last-child, .docs-callout p:last-child { margin-bottom: 0; }
.docs-callout--warn { border-left-color: #d97706; background: var(--warn-soft); }
.docs-callout--legal { border-left-color: var(--ink-2); background: var(--band); }
.help-shot { margin: 8px 0 24px; }
.help-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.help-shot figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.docs-related { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.docs-related h2 { font-size: 20px; margin: 0 0 10px; }
.docs-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs-related li { display: grid; gap: 2px; }
.docs-related li span { font-size: 15px; color: var(--muted); line-height: 1.45; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.docs-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; font-weight: 650; font-size: 16px; color: var(--ink); line-height: 1.35; }
.docs-pager a:hover { border-color: var(--brand); }
.docs-pager span { font-size: 13px; font-weight: 600; color: var(--muted); }
.docs-pager__next { text-align: right; grid-column: 2; }
.docs-help-foot { margin-top: 28px; font-size: 15px; color: var(--muted); }
.docs-muted { color: var(--muted); font-size: 15px; }
.docs-print-only { display: none; }

/* ---- the home page --------------------------------------------------------------------------------------------- */
.docs-home { max-width: 1120px; }
.docs-hero { padding: 18px 0 26px; }
.docs-eyebrow { font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.docs-hero h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.docs-hero .docs-lead { max-width: 720px; }
.docs-hero__search { position: relative; display: flex; gap: 10px; max-width: 720px; margin-top: 18px; }
.docs-hero__search svg { position: absolute; left: 14px; top: 15px; color: var(--muted); }
.docs-hero__search input { flex: 1; min-width: 0; height: 52px; padding: 0 14px 0 44px; border: 1px solid #cdd3dc; border-radius: 11px; font-size: 17px; background: #fff; }
.docs-hero__search .docs-btn { min-height: 52px; padding: 0 20px; }
#docs-search-page .docs-hero__search input { padding-left: 14px; }
.docs-home h2 { font-size: 22px; margin: 30px 0 14px; letter-spacing: -.01em; }
.docs-popular ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.docs-popular a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.docs-popular a:hover { border-color: var(--brand); color: var(--brand-dark); }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.docs-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.docs-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 10px; }
.docs-card h3 svg { color: var(--brand); width: 22px; height: 22px; }
.docs-card h3 a { color: var(--ink); text-decoration: none; }
.docs-card ul { list-style: none; margin: 0; padding: 0; font-size: 15px; display: grid; gap: 6px; }
.docs-card li a { color: var(--ink-2); text-decoration: none; }
.docs-card li a:hover { color: var(--brand); text-decoration: underline; }
.docs-card__more { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.docs-home__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.docs-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px 14px; font-size: 16px; }
.docs-panel h2 { margin: 16px 0 6px; font-size: 19px; }
.docs-panel ul { padding-left: 20px; }

/* ---- search ---------------------------------------------------------------------------------------------------- */
.docs-search { width: min(720px, calc(100vw - 24px)); max-height: min(78vh, 760px); margin: 8vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 70px rgba(15, 23, 42, .25); background: #fff; color: var(--ink); overflow: hidden; }
.docs-search[open] { display: flex; flex-direction: column; }
.docs-search::backdrop { background: rgba(15, 23, 42, .45); }
.docs-search__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.docs-search__bar svg { color: var(--muted); }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.docs-search__bar input { flex: 1; min-width: 0; border: 0; font-size: 19px; height: 40px; outline: none; background: transparent; }
.docs-search__close { border: 0; background: none; padding: 4px; }
.docs-search__status { margin: 0; padding: 8px 18px 0; font-size: 13px; color: var(--muted); min-height: 28px; }
.docs-search__results, .docs-results { list-style: none; margin: 0; padding: 4px 8px 10px; overflow-y: auto; }
.docs-results { padding: 0; }
.docs-result a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.docs-result a:hover, .docs-result[aria-selected="true"] a { background: var(--brand-soft); }
.docs-result[aria-selected="true"] a { outline: 2px solid var(--brand); outline-offset: -2px; }
.docs-result__title { font-weight: 650; font-size: 16px; }
.docs-result__meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.docs-result__meta .docs-chip { font-size: 12px; padding: 0 7px; }
.docs-result__snippet { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.docs-result mark { background: #fde68a; color: inherit; border-radius: 2px; }
.docs-search__empty { padding: 4px 22px 8px; font-size: 15px; }
.docs-search__hint { margin: 0; padding: 9px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--band); }
.docs-search__group { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---- legal pages in the shell ---------------------------------------------------------------------------------- */
.legal-doc { font-size: 17px; }
.legal-doc h1 { display: none; }
.legal-doc table { font-size: 14px; display: block; max-width: 100%; overflow-x: auto; }
.legal-doc .help-table th, .legal-doc .help-table td { min-width: 140px; }
.legal-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; font-size: 16px; }
.legal-status strong { font-size: 18px; }
.legal-meta { margin: 0 0 20px; }
.legal-meta summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; }
.legal-meta dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; margin: 10px 0 0; }
.legal-meta dt { color: var(--muted); }
.legal-meta dd { margin: 0; overflow-wrap: anywhere; }
.legal-meta code { font-size: 12px; }
.legal-versions table, .legal-index-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal-versions th, .legal-versions td, .legal-index-table th, .legal-index-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-versions thead th, .legal-index-table thead th { background: var(--band); }
.legal-versions tr.is-shown td { background: var(--brand-soft); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }

/* ---- footer ---------------------------------------------------------------------------------------------------- */
.docs-footer { border-top: 1px solid var(--line); background: #fff; padding: 20px 24px 26px; font-size: 14px; color: var(--muted); }
.docs-footer__row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; max-width: 1600px; margin: 0 auto; }
.docs-footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.docs-footer__links a { color: var(--ink-2); }
.docs-footer__operator { max-width: 1600px; margin: 10px auto 0; }

/* ---- narrower screens ------------------------------------------------------------------------------------------- */
@media (max-width: 1239.98px) {
  .docs-shell { grid-template-columns: var(--nav) minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-toc-inline { display: block; }
  .docs-main { padding: 26px 32px 56px; }
}
@media (max-width: 959.98px) {
  .docs-shell, .docs-shell--home { grid-template-columns: minmax(0, 1fr); }
  .docs-header__menu { display: inline-flex; }
  .docs-header__label, .docs-header__link { display: none; }
  .docs-nav { position: fixed; z-index: 25; top: var(--header); left: 0; bottom: 0; width: min(340px, 88vw); max-height: none; min-height: 0; background: #fff; transform: translateX(-102%); visibility: hidden; transition: transform .2s ease, visibility .2s; box-shadow: 0 0 40px rgba(15, 23, 42, .18); }
  .docs-nav.is-open { transform: none; visibility: visible; }
  .docs-nav__close { display: inline-flex; }
  .docs-main { padding: 22px 20px 48px; }
}
@media (max-width: 639.98px) {
  .docs-header { gap: 8px; padding: 0 10px; }
  .docs-brand span { display: none; }
  .docs-header__search { flex: 1 1 40px; min-width: 0; }
  .docs-header__search input { padding-right: 12px; font-size: 16px; }
  .docs-kbd { display: none; }
  .docs-header__end { gap: 6px; }
  .docs-header__end .docs-btn { min-height: 36px; padding: 6px 10px; font-size: 13px; }
  .docs-main { padding: 18px 16px 40px; }
  .docs-article { font-size: 17px; }
  .docs-lead { font-size: 18px; }
  .docs-body h2 { font-size: 23px; }
  .docs-body h3 { font-size: 19px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager__next { grid-column: 1; }
  .docs-hero__search .docs-btn { display: none; }
  .docs-search { margin-top: 2vh; max-height: 92vh; }
  .legal-meta dl { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { #docs-open-app { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---- print: the text, its title, language, version and dates ---------------------------------------------------- */
@media print {
  .docs-header, .docs-nav, .docs-toc, .docs-toc-inline, .docs-pager, .docs-footer, .docs-search, .docs-skip, .docs-scrim, .docs-anchor, .docs-related, .docs-help-foot, .legal-actions, .legal-versions, .docs-crumbs { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .docs-shell { display: block; }
  .docs-main { padding: 0; }
  .docs-article { max-width: none; font-size: 11pt; }
  .docs-print-only { display: inline; }
  .legal-meta[open] summary, .legal-meta summary { display: none; }
  .legal-meta dl { display: grid !important; }
  .docs-body h2, .docs-body h3 { break-after: avoid; }
  .docs-body table, .help-shot { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
