/* Documentation theme, the canvas DocsHome and DocsArticle frames. Light colours come from the Branding tokens, so the Branding page restyles the site. */

:root {
    --docs-sidebar-width: 17rem;
    --docs-rail-width: 14.5rem;
    /* Prose line length: grows a little on wide screens, but stays under about 90 characters. */
    --docs-measure: clamp(42.5rem, 38vw, 46rem);
    /* The article itself: code, tables and images may use this much of a wide screen. */
    --docs-wide: 96rem;
    --docs-gutter: 3rem;
    --docs-radius: 0.625rem;
    --docs-bar-height: 3rem;
    --docs-sans: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --docs-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Iowan Old Style", serif;
    --docs-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    /* Canvas roles, derived from the Branding tokens. */
    --docs-text: var(--site-heading-text-on-surface, #17212b);
    --docs-body: var(--site-body-text-on-surface, #36424f);
    --docs-muted: var(--site-muted-text-on-surface, #556170);
    --docs-accent: var(--site-primary, #0f5f58);
    --docs-accent-hover: var(--site-accent, #0a403b);
    --docs-on-accent: var(--site-inverse-text-on-primary, #ffffff);
    --docs-surface: #ffffff;
    --docs-ground: var(--site-surface-tint, #f4f6f8);
    --docs-subtle: color-mix(in srgb, var(--docs-muted) 9%, var(--docs-surface));
    --docs-code: color-mix(in srgb, var(--docs-muted) 5%, var(--docs-surface));
    --docs-border: color-mix(in srgb, var(--docs-muted) 26%, var(--docs-surface));
    --docs-line: color-mix(in srgb, var(--docs-muted) 14%, var(--docs-surface));
    --docs-field: color-mix(in srgb, var(--docs-muted) 75%, var(--docs-surface));
    --docs-soft: color-mix(in srgb, var(--docs-accent) 12%, var(--docs-surface));
    --docs-soft-text: var(--site-accent, #0a403b);
    --docs-note: color-mix(in srgb, var(--docs-accent) 7%, var(--docs-surface));
    --docs-note-border: color-mix(in srgb, var(--docs-accent) 30%, var(--docs-surface));

    /* Tokens for the shared landing skeleton in landing.css. */
    --sk-surface: var(--docs-surface);
    --sk-ground: var(--docs-ground);
    --sk-border: var(--docs-border);
    --sk-line: var(--docs-line);
    --sk-heading: var(--docs-text);
    --sk-body: var(--docs-body);
    --sk-muted: var(--docs-muted);
    --sk-accent: var(--docs-accent);
    --sk-bar-height: var(--docs-bar-height);
    --sk-gutter: var(--docs-gutter);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--docs-surface);
    color: var(--docs-body);
    font-family: var(--docs-sans);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--docs-text);
    font-family: var(--docs-serif);
    font-weight: 700;
    line-height: 1.25;
    margin: 2.5rem 0 0.625rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0.75rem 0 0.875rem;
}

h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; font-family: var(--docs-sans); }

a {
    color: var(--docs-accent);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--docs-accent-hover);
    text-decoration-thickness: 2px;
}

/* Focus is visible on every interactive element: a documentation site is read with a keyboard as often as a mouse. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--docs-accent);
    outline-offset: 2px;
}

[tabindex="-1"]:focus {
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0.375rem;
    z-index: 70;
    padding: 0.625rem 1rem;
    border: 2px solid var(--docs-accent);
    border-radius: 0.5rem;
    background: var(--docs-surface);
    color: var(--docs-text);
    font-weight: 600;
    transform: translateY(-300%);
}

.skip-link:focus {
    transform: none;
}

.docs-page-header {
    padding: 0 1.5rem;
}

/* Three columns: contents tree, article, "On this page". The tree column is painted full height; its content sticks. */
.docs-shell {
    display: grid;
    grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr) var(--docs-rail-width);
    min-height: calc(100vh - var(--docs-bar-height));
}

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

/* No sidebar, but the rail still sits right of the article where the full shell shows it. */
@media (min-width: 75.0625rem) {
    .docs-shell-rail {
        grid-template-columns: minmax(0, 1fr) var(--docs-rail-width);
    }
}

.docs-sidebar {
    background: var(--docs-ground);
    border-right: 1px solid var(--docs-border);
}

.docs-nav {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 0.875rem 1rem 1.5rem;
}

.docs-content {
    min-width: 0;
    padding: 1.625rem var(--docs-gutter) 2.5rem;
}

.docs-article {
    max-width: var(--docs-wide);
}

.docs-shell-bare .docs-content {
    width: 100%;
    max-width: calc(60rem + var(--docs-gutter) * 2);
    margin: 0 auto;
}

/* Contents tree. */
.docs-allproducts {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.25rem;
    color: var(--docs-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.docs-allproducts:hover {
    color: var(--docs-text);
    text-decoration: underline;
}

.docs-nav-heading {
    display: block;
    margin: 0.125rem 0 0.75rem;
    color: var(--docs-text);
    font-family: var(--docs-serif);
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

a.docs-nav-heading:hover {
    color: var(--docs-text);
    text-decoration: underline;
}

.docs-search {
    position: relative;
    margin: 0 0 0.625rem;
}

.docs-search svg {
    position: absolute;
    left: 0.75rem;
    top: 0.8125rem;
    color: var(--docs-muted);
    pointer-events: none;
}

.docs-search-input {
    width: 100%;
    height: 2.75rem;
    padding: 0 0.75rem 0 2.375rem;
    border: 1px solid var(--docs-field);
    border-radius: 0.5rem;
    background: var(--docs-surface);
    color: var(--docs-text);
    font: inherit;
    font-size: 1rem;
}

.docs-search-input::placeholder,
.docs-home-search-input::placeholder {
    color: inherit;
    opacity: 0.62;
}

.docs-search-label,
.docs-home-search-label.is-hidden,
.docs-cards-heading.is-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.docs-tree,
.docs-tree-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Every page with children is a <details> holding its own link; the chevron toggles, the title navigates. */
.docs-tree summary,
.docs-tree-leaf > a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    border-radius: 0.375rem;
    color: var(--docs-body);
    font-size: 0.9375rem;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.docs-tree summary::-webkit-details-marker {
    display: none;
}

.docs-tree summary a,
.docs-tree-leaf > a {
    color: inherit;
    text-decoration: none;
}

.docs-tree summary a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0.25rem 0.5rem 0.25rem 0;
    overflow-wrap: anywhere;
}

.docs-tree-leaf > a {
    padding: 0.25rem 0.5rem 0.25rem 2.125rem;
    overflow-wrap: anywhere;
}

.docs-tree summary:hover,
.docs-tree-leaf > a:hover {
    background: var(--docs-subtle);
    color: var(--docs-text);
}

.docs-tree summary:hover a,
.docs-tree-leaf > a:hover {
    text-decoration: underline;
}

/* Product header page count, outside the link so tree search reads titles only. */
.docs-tree-count {
    flex: none;
    padding: 0 0.5rem;
    color: var(--docs-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    white-space: nowrap;
}

.docs-tree-counted {
    display: flex;
    align-items: center;
}

.docs-tree-counted > a {
    flex: 1;
    min-width: 0;
}

.docs-tree-chevron {
    flex: none;
    box-sizing: content-box;
    padding: 0.75rem 0.5rem 0.75rem 0.625rem;
    color: var(--docs-muted);
    transition: transform 120ms ease-out;
}

details[open] > summary .docs-tree-chevron {
    transform: rotate(90deg);
}

/* Nested lists hang off a guide line; the first level reads as group titles. */
.docs-tree-items {
    margin: 0 0 0.25rem 1.1875rem;
    border-left: 1px solid var(--docs-border);
}

.docs-tree-items .docs-tree-leaf > a {
    padding-left: 0.875rem;
}

.docs-tree-items .docs-tree-node summary {
    padding-left: 0;
}

.docs-tree-items .docs-tree-chevron {
    padding-left: 0.3125rem;
}

.docs-tree > li > details > summary,
.docs-tree > .docs-tree-leaf > a {
    color: var(--docs-text);
    font-weight: 700;
}

.docs-tree > .docs-tree-leaf > a {
    padding-left: 2.125rem;
}

/* The branch that holds the current page reads darker; the page itself gets the tinted bar. */
.docs-tree-node:has(.docs-nav-current) > details > summary {
    color: var(--docs-text);
    font-weight: 600;
}

.docs-tree .docs-nav-current > a,
.docs-tree .docs-nav-current > details > summary {
    background: var(--docs-soft);
    color: var(--docs-soft-text);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--docs-accent);
}

.docs-tree .docs-nav-current > details > summary:hover,
.docs-tree .docs-nav-current > a:hover {
    background: var(--docs-soft);
    color: var(--docs-soft-text);
}

.docs-tree-empty {
    padding: 0.5rem 0.25rem;
    color: var(--docs-body);
}

.docs-tree-empty p {
    margin: 0;
}

[data-tree-hidden] {
    display: none !important;
}

.docs-text-btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.25rem;
    border: 0;
    background: transparent;
    color: var(--docs-accent);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration-line: underline;
    text-underline-offset: 3px;
}

.docs-btn-secondary {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--docs-field);
    border-radius: 0.5rem;
    background: var(--docs-surface);
    color: var(--docs-text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.docs-btn-secondary:hover {
    color: var(--docs-text);
    border-color: currentColor;
}

/* Article head: breadcrumbs, title, then the CI chip and the Markdown actions over a rule. */
.docs-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--docs-muted);
    font-size: 0.875rem;
}

.docs-crumbs li {
    display: inline-flex;
    gap: 0.375rem;
}

.docs-crumbs a {
    color: var(--docs-muted);
}

.docs-crumbs [aria-current="page"] {
    color: var(--docs-text);
    font-weight: 600;
}

.docs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.625rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--docs-line);
}

.docs-meta-spacer {
    flex: 1;
}

.docs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 2px 0.625rem;
    border-radius: 999px;
    background: var(--docs-soft);
    color: var(--docs-soft-text);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.docs-action {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.625rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--docs-accent);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration-line: underline;
    text-underline-offset: 3px;
}

.docs-action:hover {
    color: var(--docs-accent-hover);
}

.docs-action[aria-pressed="true"] {
    border-color: var(--docs-accent);
    background: var(--docs-soft);
    color: var(--docs-soft-text);
    text-decoration-line: none;
}

.docs-body {
    padding-top: 1.375rem;
    color: var(--docs-body);
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* With script the title moves above the meta row; the article body then starts flush. */
.docs-body > .docs-lede:first-child h1,
.docs-body > .docs-prose:first-child > h1:first-child {
    margin-top: 0;
}

/* The inline Markdown view (extras.js) replaces the formatted body. */
.docs-mdview {
    padding-top: 1.375rem;
}

.docs-mdview > p {
    margin: 0 0 0.75rem;
    color: var(--docs-body);
}

.docs-mdview pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Page opening block (hero widget): serif title and one sentence. */
.docs-lede h1 {
    margin-top: 0;
}

.docs-lede-text {
    margin: 0 0 1rem;
    max-width: var(--docs-measure);
    color: var(--docs-body);
    font-size: 1.1875rem;
    line-height: 1.55;
}

/* Lede options from the live editor: a button, a photo beside or under the text, a brand or photo background. */
.docs-lede-cta {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: 1rem;
    padding: 0 1.125rem;
    border-radius: 0.5rem;
    background: var(--docs-accent);
    color: var(--docs-on-accent);
    font-weight: 600;
    text-decoration: none;
}

a.docs-lede-cta:hover {
    background: var(--docs-accent-hover);
    color: var(--docs-on-accent);
}

.docs-lede-has-image {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.docs-lede-image {
    display: block;
    width: 100%;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
}

.docs-lede-image-left.docs-lede-has-image,
.docs-lede-image-right.docs-lede-has-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-lede-image-left .docs-lede-image {
    order: -1;
}

.docs-lede-centered {
    text-align: center;
}

.docs-lede-centered .docs-lede-text {
    margin-left: auto;
    margin-right: auto;
}

.docs-lede-brand,
.docs-lede-backdrop {
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: var(--docs-radius);
}

.docs-lede-brand {
    background: var(--docs-accent);
    color: var(--docs-on-accent);
}

.docs-lede-backdrop {
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

.docs-lede-brand :is(h1, h2, h3, p),
.docs-lede-backdrop :is(h1, h2, h3, p) {
    color: inherit;
}

.docs-lede-brand .docs-lede-cta,
.docs-lede-backdrop .docs-lede-cta {
    background: var(--docs-surface);
    color: var(--docs-text);
}

/* Long-form prose. */
.docs-prose {
    max-width: var(--docs-wide);
    color: var(--docs-body);
}

/* Text keeps a readable line; code, tables, images and diagrams use the article's full width. */
.docs-prose > :not(pre):not(table):not(img):not(figure):not(.mermaid):not(svg) {
    max-width: var(--docs-measure);
}

.docs-prose > :first-child {
    margin-top: 0;
}

.docs-prose > h1:first-child + p,
.docs-body > .docs-prose:first-child > p:first-child {
    color: var(--docs-text);
    font-size: 1.1875rem;
    line-height: 1.55;
}

.docs-prose p,
.docs-prose ul,
.docs-prose dl {
    margin: 0 0 1rem;
}

.docs-prose li {
    margin-bottom: 0.375rem;
}

.docs-prose h2,
.docs-prose h3 {
    scroll-margin-top: 1.25rem;
}

.docs-prose strong {
    color: var(--docs-text);
}

/* Numbered steps: every top-level ordered list gets the frame's round step numbers. */
.docs-prose > ol {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.docs-prose > ol > li {
    position: relative;
    min-height: 1.75rem;
    margin: 0 0 0.75rem;
    padding-left: 2.625rem;
    counter-increment: step;
}

.docs-prose > ol > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--docs-soft);
    color: var(--docs-soft-text);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.75rem;
    text-align: center;
}

.docs-prose code {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--docs-subtle);
    color: var(--docs-text);
    font-family: var(--docs-mono);
    font-size: 0.88em;
    overflow-wrap: anywhere;
}

.docs-prose pre {
    margin: 0 0 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    background: var(--docs-code);
    color: var(--docs-text);
    font-family: var(--docs-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
}

.docs-prose pre code {
    padding: 0;
    background: none;
    font-size: inherit;
    overflow-wrap: normal;
}

/* Markdown has one callout shape, the blockquote, so it takes the canvas note style. */
.docs-prose blockquote {
    margin: 0 0 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--docs-note-border);
    border-left: 4px solid var(--docs-accent);
    border-radius: var(--docs-radius);
    background: var(--docs-note);
    color: var(--docs-text);
}

.docs-prose blockquote > :last-child {
    margin-bottom: 0;
}

.docs-prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
}

.docs-prose th,
.docs-prose td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--docs-line);
    text-align: left;
    vertical-align: top;
}

.docs-prose th {
    border-bottom: 1px solid var(--docs-border);
    background: var(--docs-subtle);
    color: var(--docs-text);
    font-weight: 700;
}

.docs-prose hr {
    border: 0;
    border-top: 1px solid var(--docs-line);
    margin: 2rem 0;
}

.docs-prose img {
    border-radius: var(--docs-radius);
}

.docs-prose mark,
.search-result-snippet mark {
    padding: 0 1px;
    border-radius: 3px;
    background: var(--docs-soft);
    color: var(--docs-soft-text);
}

.docs-figure {
    margin: 0 0 1rem;
}

.docs-figure img {
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
}

.docs-figure figcaption {
    margin-top: 0.5rem;
    color: var(--docs-muted);
    font-size: 0.9375rem;
}

/* Previous and Next cards. */
.docs-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.docs-pager-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 4.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-surface);
    text-decoration: none;
}

.docs-pager-link:hover {
    border-color: currentColor;
}

.docs-pager-next {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
}

.docs-pager-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--docs-muted);
    font-size: 0.875rem;
}

.docs-pager-title {
    color: var(--docs-accent);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration-line: underline;
    text-underline-offset: 3px;
}

/* "On this page" rail. */
.docs-outline {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1.875rem 1.5rem 1.5rem 0.5rem;
}

.docs-outline[hidden] {
    display: none;
}

.docs-outline-heading {
    margin: 0 0 0.625rem;
    color: var(--docs-text);
    font-family: var(--docs-sans);
    font-size: 0.875rem;
    font-weight: 700;
}

.docs-outline-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--docs-border);
}

.docs-outline-list a {
    display: block;
    margin-left: -1px;
    padding: 0.375rem 0 0.375rem 0.875rem;
    border-left: 2px solid transparent;
    color: var(--docs-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    text-decoration: none;
}

.docs-outline-list a:hover {
    color: var(--docs-text);
    text-decoration: underline;
}

.docs-outline-list a[aria-current="true"] {
    border-left-color: var(--docs-accent);
    color: var(--docs-accent);
    font-weight: 600;
}

.docs-outline-list .is-sub a {
    padding-left: 1.625rem;
}

.docs-outline-top {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.docs-home-search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.docs-home-search-label {
    color: var(--docs-body);
    font-weight: 600;
}

.docs-home-search-box {
    position: relative;
}

.docs-home-search-box svg {
    position: absolute;
    left: 1rem;
    top: 1.0625rem;
    color: var(--docs-muted);
    pointer-events: none;
}

.docs-home-search-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem 0 3rem;
    border: 1px solid var(--docs-field);
    border-radius: 0.75rem;
    background: var(--docs-surface);
    color: var(--docs-text);
    font: inherit;
    font-size: 1.0625rem;
}

.docs-cards {
    margin-top: 1.5rem;
}

.docs-cards-heading {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.docs-cards-text {
    margin: 0 0 1rem;
    max-width: var(--docs-measure);
    color: var(--docs-body);
}

/* --docs-card-columns is the editor's column count; narrow screens below still step it down. */
.docs-card-list {
    display: grid;
    grid-template-columns: repeat(var(--docs-card-columns, 3), minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-card-list > li {
    display: flex;
    min-width: 0;
}

.docs-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 1rem 1.125rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-surface);
    color: var(--docs-text);
    text-decoration: none;
}

a.docs-card:hover {
    color: var(--docs-text);
    border-color: currentColor;
}

a.docs-card:hover .docs-card-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.docs-card-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.docs-card-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: none;
    border-radius: 0.5rem;
    background: var(--docs-soft);
    color: var(--docs-soft-text);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
}

.docs-card-title {
    min-width: 0;
    color: var(--docs-text);
    font-family: var(--docs-serif);
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
}

.docs-card-arrow {
    flex: none;
    margin-left: auto;
    color: var(--docs-accent);
}

.docs-card-text {
    color: var(--docs-body);
}

.docs-card-count {
    color: var(--docs-muted);
    font-size: 0.8125rem;
}

.docs-list-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-surface);
}

.docs-list-recent { flex: 7 1 0; }

.docs-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem 0.625rem;
}

.docs-list-heading {
    margin: 0;
    font-family: var(--docs-sans);
    font-size: 1.125rem;
    line-height: 1.3;
}

.docs-list-sub,
.docs-row-meta,
.docs-row-when {
    color: var(--docs-muted);
    font-size: 0.8125rem;
}

.docs-list-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-list-rows > li {
    border-top: 1px solid var(--docs-line);
}

.docs-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.875rem;
    padding: 0 1.25rem;
    color: var(--docs-text);
    text-decoration: none;
}

.docs-row:hover {
    color: var(--docs-text);
    background: var(--docs-subtle);
}

.docs-row:hover .docs-row-title {
    text-decoration: underline;
}

.docs-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
}

.docs-row-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-row-main .docs-row-title {
    flex: 0 1 auto;
}

.docs-row-meta {
    flex: none;
}

.docs-row-when {
    width: 5.25rem;
    flex: none;
    text-align: right;
}

.docs-counts {
    margin: 1.25rem 0 0;
    color: var(--docs-muted);
    font-size: 0.875rem;
}

/* Search results: the shared search_results.html body, dressed in the DocsHome results look. */
.docs-results {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.docs-results-head {
    display: flex;
    justify-content: flex-end;
}

.docs-results .search-results {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.docs-results .search-results-heading {
    margin: 0;
    font-family: var(--docs-sans);
    font-size: 1.375rem;
    line-height: 1.3;
}

.docs-results .search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}

.docs-results .search-label {
    display: flex;
    flex: 1 1 18rem;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--docs-body);
    font-weight: 600;
}

.docs-results .search-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    border: 1px solid var(--docs-field);
    border-radius: 0.75rem;
    background: var(--docs-surface);
    color: var(--docs-text);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 400;
}

.docs-results .search-submit {
    height: 3.5rem;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--docs-accent);
    color: var(--docs-on-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.docs-results .search-submit:hover {
    background: var(--docs-accent-hover);
}

.docs-results .search-results-count {
    margin: 0;
    color: var(--docs-muted);
    font-size: 0.9375rem;
}

.docs-results .search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-surface);
}

.docs-results .search-result {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
}

.docs-results .search-result + .search-result {
    border-top: 1px solid var(--docs-line);
}

.docs-results .search-result:hover {
    background: var(--docs-subtle);
}

.docs-results .search-result-title {
    color: var(--docs-accent);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
}

/* The whole row is the link, as in the frame. */
.docs-results .search-result-title::after {
    content: "";
    position: absolute;
    inset: 0;
}

.docs-results .search-result:hover .search-result-title {
    text-decoration: underline;
}

.docs-results .search-result-snippet {
    margin: 0;
    color: var(--docs-body);
    font-size: 0.9375rem;
}

.docs-results .search-results-empty {
    margin: 0;
    padding: 1.5rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-surface);
    color: var(--docs-body);
}

/* Feedback form. */
.docs-form {
    max-width: var(--docs-measure);
    margin: 2rem 0;
    padding: 1.125rem 1.25rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-ground);
}

.docs-form > h2 {
    margin: 0 0 0.375rem;
    font-family: var(--docs-sans);
    font-size: 1.0625rem;
}

.docs-form-lede {
    margin: 0 0 1rem;
    color: var(--docs-body);
}

.docs-field {
    display: block;
    margin-bottom: 1rem;
}

.docs-field > label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--docs-body);
    font-weight: 600;
}

.docs-field input:not([type="checkbox"]),
.docs-field select,
.docs-field textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--docs-field);
    border-radius: 0.5rem;
    background: var(--docs-surface);
    color: var(--docs-text);
    font: inherit;
}

.docs-field textarea {
    resize: vertical;
}

.docs-field input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--docs-accent);
}

.docs-field-helper {
    margin-left: 0.5rem;
    color: var(--docs-muted);
    font-size: 0.875rem;
}

.docs-submit {
    min-height: 2.75rem;
    padding: 0 1.125rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--docs-accent);
    color: var(--docs-on-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.docs-submit:hover {
    background: var(--docs-accent-hover);
}

.docs-form-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.375rem 1rem;
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--docs-border);
}

.docs-form-details dt {
    color: var(--docs-text);
    font-weight: 600;
}

.docs-form-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Knowledge-base extras: contents toggle on narrow screens, child list, inline outline, back to top, updated line. */
.docs-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 0;
    background: transparent;
    color: var(--docs-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.docs-sidebar-toggle svg {
    transition: transform 120ms ease-out;
}

.docs-sidebar-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.docs-updated {
    color: var(--docs-muted);
    font-size: 0.875rem;
}

.docs-children {
    margin: 2rem 0 0;
}

.docs-children[hidden] {
    display: none;
}

.docs-children-heading {
    margin: 0 0 0.75rem;
    font-family: var(--docs-sans);
    font-size: 1.125rem;
}

.docs-children-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-surface);
}

.docs-children-list > li + li {
    border-top: 1px solid var(--docs-line);
}

.docs-child {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.125rem;
    text-decoration: none;
}

.docs-child:hover {
    background: var(--docs-subtle);
}

.docs-child-title {
    color: var(--docs-accent);
    font-weight: 600;
}

.docs-child:hover .docs-child-title {
    text-decoration: underline;
}

.docs-child-text {
    color: var(--docs-body);
    font-size: 0.9375rem;
}

.docs-outline-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    margin: 1rem 0 0;
    padding: 0 1rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-ground);
    color: var(--docs-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.docs-outline-toggle[hidden] {
    display: none;
}

.docs-backtop-row {
    display: none;
    margin: 1.5rem 0 0;
}

.docs-backtop {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    font-weight: 600;
}

/* Below 75rem the sticky rail goes; a toggle slides the same aside in as a panel, alongside a Back to top link. */
@media (max-width: 75rem) {
    .docs-shell {
        grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr);
    }

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

    .docs-outline-toggle {
        display: flex;
    }

    .docs-outline:not([hidden]) {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        align-self: auto;
        width: min(20rem, 85vw);
        max-height: none;
        overflow-y: auto;
        padding: 1.5rem 1.25rem;
        border-left: 1px solid var(--docs-border);
        background: var(--docs-surface);
        box-shadow: -0.5rem 0 1.5rem rgb(0 0 0 / 15%);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 200ms ease, visibility 200ms ease;
    }

    .docs-outline.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    body.docs-outline-locked {
        overflow: hidden;
    }

    .docs-backtop-row {
        display: block;
    }
}

/* One column on a narrow screen: the tree sits above the article, groups closed except the current one. */
@media (max-width: 56rem) {
    .docs-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .docs-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--docs-border);
    }

    .docs-nav {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 0.75rem 1rem 1rem;
    }

    .docs-nav-heading {
        font-size: 1.25rem;
    }

    .docs-sidebar.is-collapsible:not(.is-open) .docs-nav {
        display: none;
    }

    .docs-sidebar-toggle {
        display: flex;
    }

    .docs-content {
        padding: 1.25rem 1rem 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.4375rem; }

    .docs-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-lede-image-left.docs-lede-has-image,
    .docs-lede-image-right.docs-lede-has-image {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 40rem) {
    .docs-card-list,
    .docs-pager {
        grid-template-columns: minmax(0, 1fr);
    }

    .docs-pager-next {
        grid-column: auto;
    }

    .docs-row-when {
        width: auto;
    }

    .docs-list-recent .docs-chip {
        display: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
        transition: none;
    }
}

/* Color mode switcher: .sf-color-mode is the pill around the controls; the fieldset radio group is the older release markup. */
.sf-color-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    margin: 0;
    padding: 0.125rem;
    border: 1px solid var(--docs-border);
    border-radius: 999px;
    background: var(--docs-surface);
}

.sf-color-mode-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.sf-color-mode-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    color: var(--docs-body);
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.sf-color-mode-option:hover {
    color: var(--docs-text);
}

/* The radio covers its label, so it stays clickable and keyboard-operable while unseen. */
.sf-color-mode-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.sf-color-mode-option:has(.sf-color-mode-input:checked) {
    background: var(--docs-soft);
    color: var(--docs-soft-text);
    font-weight: 600;
}

.sf-color-mode-option:has(.sf-color-mode-input:focus-visible) {
    outline: 3px solid var(--docs-accent);
    outline-offset: 2px;
}

.sf-color-mode-icon {
    flex: none;
}

.sf-color-mode-icons .sf-color-mode-option {
    padding: 0;
}

.sf-color-mode-icons .sf-color-mode-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Phones: icons only (each option keeps its title and hidden text), so the switcher fits the header row. */
@media (max-width: 40rem) {
    .sf-color-mode-option {
        padding: 0;
    }

    .sf-color-mode-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* Text size (A-/A+) beside the color controls, styled like their buttons. */
.docs-text-size {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.docs-text-size-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.375rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--docs-body);
    font-family: var(--docs-sans);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.docs-text-size-button-larger {
    font-size: 1.0625rem;
}

.docs-text-size-button:hover:not(:disabled) {
    background: var(--docs-subtle);
    color: var(--docs-text);
}

.docs-text-size-button:disabled {
    opacity: 0.4;
    cursor: default;
}

.docs-text-size-button:focus-visible {
    outline: 3px solid var(--docs-accent);
    outline-offset: 2px;
}

/* Phones have their own text size and pinch zoom; the header keeps one row there. */
@media (max-width: 40rem) {
    .docs-text-size {
        display: none;
    }
}

/* Color controls (div.sf-color-mode from public/_color_mode_switcher.html): the mode button, its menu of the
   other two modes, and the high contrast toggle. The segmented rules above stay for older releases. */
.sf-color-mode-button,
.sf-color-mode-item,
.sf-contrast-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--docs-body);
    cursor: pointer;
}

.sf-color-mode-button:hover,
.sf-color-mode-item:hover,
.sf-contrast-toggle:hover {
    background: var(--docs-subtle);
    color: var(--docs-text);
}

.sf-color-mode-button[aria-expanded="true"],
.sf-contrast-toggle[aria-pressed="true"] {
    background: var(--docs-soft);
    color: var(--docs-soft-text);
}

.sf-contrast-toggle[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px currentColor;
}

.sf-color-mode-button:focus-visible,
.sf-color-mode-item:focus-visible,
.sf-contrast-toggle:focus-visible {
    outline: 3px solid var(--docs-accent);
    outline-offset: 2px;
}

.sf-color-mode-menu {
    gap: 0.125rem;
    margin-top: 0.5rem;
    padding: 0.25rem;
    border: 1px solid var(--docs-border);
    border-radius: 1.25rem;
    background: var(--docs-surface);
    color: var(--docs-body);
    box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.18);
}

/* Color modes: a visitor's choice sets data-sf-color-mode on <html>; without one, the system setting decides.
   High contrast is separate: data-sf-contrast="more" on <html>, in light or dark. */

/* Dark: the frame's dark neutrals; the accent still follows the Branding primary, and text and surface the Branding dark tokens. */
:root[data-sf-color-mode="dark"] {
    color-scheme: dark;
    --docs-surface: var(--site-dark-surface, #151d22);
    --docs-ground: color-mix(in srgb, var(--docs-surface) 72%, #000000);
    --docs-text: var(--site-heading-text-on-dark-surface, #eef2f5);
    --docs-body: var(--site-body-text-on-dark-surface, #c8d1d9);
    --docs-muted: var(--site-muted-text-on-dark-surface, #a3afba);
    --docs-accent: #6ccfc2;
    --docs-accent: oklch(from var(--site-primary, #0f5f58) 0.8 calc(c * 1.4) h);
    --docs-accent-hover: color-mix(in srgb, var(--docs-accent) 60%, #ffffff);
    --docs-on-accent: #06110f;
    --docs-subtle: color-mix(in srgb, var(--docs-surface) 90%, #ffffff);
    --docs-code: color-mix(in srgb, var(--docs-surface) 80%, #000000);
    --docs-border: color-mix(in srgb, var(--docs-muted) 24%, var(--docs-surface));
    --docs-line: color-mix(in srgb, var(--docs-muted) 15%, var(--docs-surface));
    --docs-field: color-mix(in srgb, var(--docs-muted) 70%, var(--docs-surface));
    --docs-soft: color-mix(in srgb, var(--docs-accent) 20%, var(--docs-surface));
    --docs-soft-text: color-mix(in srgb, var(--docs-accent) 45%, #ffffff);
    --docs-note: color-mix(in srgb, var(--docs-accent) 9%, var(--docs-surface));
    --docs-note-border: color-mix(in srgb, var(--docs-accent) 35%, var(--docs-surface));
}

@media (prefers-color-scheme: dark) {
    :root:not([data-sf-color-mode]) {
        color-scheme: dark;
        --docs-surface: var(--site-dark-surface, #151d22);
        --docs-ground: color-mix(in srgb, var(--docs-surface) 72%, #000000);
        --docs-text: var(--site-heading-text-on-dark-surface, #eef2f5);
        --docs-body: var(--site-body-text-on-dark-surface, #c8d1d9);
        --docs-muted: var(--site-muted-text-on-dark-surface, #a3afba);
        --docs-accent: #6ccfc2;
        --docs-accent: oklch(from var(--site-primary, #0f5f58) 0.8 calc(c * 1.4) h);
        --docs-accent-hover: color-mix(in srgb, var(--docs-accent) 60%, #ffffff);
        --docs-on-accent: #06110f;
        --docs-subtle: color-mix(in srgb, var(--docs-surface) 90%, #ffffff);
        --docs-code: color-mix(in srgb, var(--docs-surface) 80%, #000000);
        --docs-border: color-mix(in srgb, var(--docs-muted) 24%, var(--docs-surface));
        --docs-line: color-mix(in srgb, var(--docs-muted) 15%, var(--docs-surface));
        --docs-field: color-mix(in srgb, var(--docs-muted) 70%, var(--docs-surface));
        --docs-soft: color-mix(in srgb, var(--docs-accent) 20%, var(--docs-surface));
        --docs-soft-text: color-mix(in srgb, var(--docs-accent) 45%, #ffffff);
        --docs-note: color-mix(in srgb, var(--docs-accent) 9%, var(--docs-surface));
        --docs-note-border: color-mix(in srgb, var(--docs-accent) 35%, var(--docs-surface));
    }

    /* System dark with high contrast; it outranks the light high contrast palette by specificity. */
    :root:not([data-sf-color-mode])[data-sf-contrast="more"] {
        color-scheme: dark;
        --docs-surface: #000000;
        --docs-ground: #000000;
        --docs-text: #ffffff;
        --docs-body: #f2f2f2;
        --docs-muted: #d6d6d6;
        --docs-accent: #8ee6da;
        --docs-accent: oklch(from var(--site-primary, #0f5f58) max(l, 0.86) c h);
        --docs-accent-hover: #ffffff;
        --docs-on-accent: #000000;
        --docs-subtle: #141414;
        --docs-code: #0d0d0d;
        --docs-border: #b3b3b3;
        --docs-line: #8c8c8c;
        --docs-field: #ffffff;
        --docs-soft: color-mix(in srgb, var(--docs-accent) 22%, #000000);
        --docs-soft-text: #ffffff;
        --docs-note: #0d0d0d;
        --docs-note-border: var(--docs-accent);
    }
}

/* High contrast, light: AAA (7:1) text on white, the Branding primary darkened until it meets 7:1, underlined links.
   data-sf-color-mode="contrast" is what releases before the contrast toggle set. */
:root[data-sf-contrast="more"],
:root[data-sf-color-mode="contrast"] {
    color-scheme: light;
    --docs-surface: #ffffff;
    --docs-ground: #f5f5f5;
    --docs-text: #000000;
    --docs-body: #111111;
    --docs-muted: #333333;
    --docs-accent: #0a403b;
    --docs-accent: oklch(from var(--site-primary, #0f5f58) min(l, 0.42) c h);
    --docs-accent-hover: #000000;
    --docs-on-accent: #ffffff;
    --docs-subtle: #f0f0f0;
    --docs-code: #f5f5f5;
    --docs-border: #4d4d4d;
    --docs-line: #767676;
    --docs-field: #000000;
    --docs-soft: #e6f0ef;
    --docs-soft-text: #000000;
    --docs-note: #f5f5f5;
    --docs-note-border: var(--docs-accent);
}

:root[data-sf-contrast="more"] a,
:root[data-sf-color-mode="contrast"] a {
    text-decoration-line: underline;
}

/* High contrast, dark: white text on black (well past 7:1), the Branding primary lightened until it meets 7:1. */
:root[data-sf-color-mode="dark"][data-sf-contrast="more"] {
    color-scheme: dark;
    --docs-surface: #000000;
    --docs-ground: #000000;
    --docs-text: #ffffff;
    --docs-body: #f2f2f2;
    --docs-muted: #d6d6d6;
    --docs-accent: #8ee6da;
    --docs-accent: oklch(from var(--site-primary, #0f5f58) max(l, 0.86) c h);
    --docs-accent-hover: #ffffff;
    --docs-on-accent: #000000;
    --docs-subtle: #141414;
    --docs-code: #0d0d0d;
    --docs-border: #b3b3b3;
    --docs-line: #8c8c8c;
    --docs-field: #ffffff;
    --docs-soft: color-mix(in srgb, var(--docs-accent) 22%, #000000);
    --docs-soft-text: #ffffff;
    --docs-note: #0d0d0d;
    --docs-note-border: var(--docs-accent);
}

/* High contrast in either mode: a 3px focus ring. */
:root[data-sf-contrast="more"] :focus-visible {
    outline: 3px solid var(--docs-accent);
    outline-offset: 2px;
}

/* Landing on "/": landing.css lays out the hero, main and aside; these rules style the docs content inside them. */
.docs-landing-main {
    padding: 0;
}

.landing-hero-text .docs-prose {
    margin-top: 1rem;
}

.landing-hero-text .docs-prose > :last-child {
    margin-bottom: 0;
}

.landing-hero-slot .docs-home-search-label {
    text-align: center;
}

.docs-landing-section:first-child {
    margin-top: 0;
}

/* The rail is a column flexbox, where the list card's row flex basis would collapse it. */
.landing-aside .docs-list-recent {
    flex: none;
}

.landing-aside .docs-list-recent .docs-chip {
    display: none;
}

.docs-landing-section {
    margin-top: 3rem;
}

.docs-landing-head h2,
.docs-overview-heading {
    margin: 0;
    font-size: 1.625rem;
}

.docs-landing-head p {
    margin: 0.25rem 0 0;
    color: var(--docs-muted);
}

.docs-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.docs-landing-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.docs-landing-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background: var(--docs-surface);
}

.docs-landing-card:hover {
    border-color: var(--docs-field);
}

.docs-landing-card-title {
    margin: 0;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

.docs-landing-card-title a {
    color: var(--docs-text);
    text-decoration: none;
}

.docs-landing-card-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.docs-landing-card-text {
    margin: 0;
    color: var(--docs-body);
    overflow-wrap: anywhere;
}

.docs-landing-card-count {
    margin: 0;
    color: var(--docs-muted);
    font-size: 0.875rem;
}

.docs-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: auto 0 0;
    padding-top: 0.5rem;
}

.docs-landing-button {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.5rem;
    color: var(--docs-text);
    font-weight: 600;
    text-decoration: none;
}

.docs-landing-button:hover {
    border-color: var(--docs-field);
    background: var(--docs-subtle);
    color: var(--docs-text);
}

.docs-landing-button-primary {
    border-color: var(--docs-accent);
    background: var(--docs-accent);
    color: var(--docs-on-accent);
}

.docs-landing-button-primary:hover {
    border-color: var(--docs-accent-hover);
    background: var(--docs-accent-hover);
    color: var(--docs-on-accent);
}

.docs-landing-main .docs-page-footer {
    margin-bottom: 2rem;
}

/* The docs root's product overview, inside the article column. */
.docs-overview {
    margin-top: 2.5rem;
}

.docs-article-overview {
    max-width: none;
}

.docs-overview-pages {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0.5rem 0 0;
    border-top: 1px solid var(--docs-line);
}

.docs-overview-pages li + li {
    margin-top: 0.25rem;
}

.docs-overview-card .docs-landing-card-count {
    margin-top: auto;
    padding-top: 0.25rem;
}

@media (max-width: 40rem) {
    .docs-landing-grid,
    .docs-landing-grid-compact {
        grid-template-columns: minmax(0, 1fr);
    }
}
