:root {
  --tm-page-width: 1600px;
  --tm-header-height: 64px;
  --tm-nav-width: 232px;
  --tm-toc-width: 208px;
  --tm-text-size: 1.125rem;
  --tm-code-size: .9375rem;
  --tm-field-size: 1.0625rem;
  --tm-canvas: #faf9f6;
  --tm-surface: #f0efe9;
  --tm-ink: #242721;
  --tm-muted: #64685e;
  --tm-line: #dedfd6;
  --tm-accent: #984b35;
  --tm-green: #526b5c;
  --tm-serif: Georgia, "Times New Roman", serif;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-stack--monospace: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
body { --color-highlight-on-target: var(--tm-surface); background: var(--tm-canvas); color: var(--tm-ink); }
body[data-theme="dark"] { --tm-canvas: #20231f; --tm-surface: #292d27; --tm-ink: #f5f3eb; --tm-muted: #c1c5ba; --tm-line: #42483c; --tm-accent: #e8a38b; --tm-green: #aac8b4; }
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) { --tm-canvas: #20231f; --tm-surface: #292d27; --tm-ink: #f5f3eb; --tm-muted: #c1c5ba; --tm-line: #42483c; --tm-accent: #e8a38b; --tm-green: #aac8b4; }
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-padding-top: calc(var(--tm-header-height) + 20px); }
button, input { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 4px; }
.tm-header { container: site-header / inline-size; min-height: 64px; position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; gap: 24px; padding: 0 max(24px, calc((100% - var(--tm-page-width)) / 2 + 24px)); background: var(--tm-canvas); border-bottom: 1px solid var(--tm-line); }
.tm-wordmark { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: var(--tm-ink); font-size: 21px; font-weight: 600; letter-spacing: -.7px; text-decoration: none; }
.tm-wordmark svg { flex-shrink: 0; }
.tm-wordmark span { min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
.tm-wordmark:hover, .tm-wordmark:visited { color: var(--tm-ink); text-decoration: none; }
.tm-navigation { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 1rem; }
.tm-navigation a { color: var(--tm-muted); white-space: nowrap; text-decoration: none; padding: 8px 0; }
.tm-navigation a:hover, .tm-navigation a[aria-current] { color: var(--tm-ink); }
.tm-navigation a[aria-current] { text-decoration: underline; text-underline-offset: 9px; text-decoration-color: var(--tm-accent); }
.tm-github span { margin-left: 4px; }
.tm-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--tm-line); padding: 9px 12px; border-radius: 5px; width: 218px; color: var(--tm-muted); }
.tm-search input { width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; color: var(--tm-ink); font-size: 15px; }
.tm-search input::placeholder { color: var(--tm-muted); }
.tm-search input:focus-visible { outline: none; }
.tm-search:focus-within { outline: 2px solid var(--tm-accent); outline-offset: 3px; }
.tm-search svg { flex-shrink: 0; }
.tm-search kbd { font: 11px var(--font-stack); white-space: nowrap; background: none; border: 0; padding: 0; box-shadow: none; color: var(--tm-muted); }
.tm-menu-toggle { display: none; color: var(--tm-ink); background: transparent; border: 1px solid var(--tm-line); border-radius: 4px; padding: 7px 10px; }
.page { display: flex; flex-direction: row; width: 100%; max-width: var(--tm-page-width); margin: 0 auto; padding-top: var(--tm-header-height); }
.main { display: flex; flex: 1; min-width: 0; }
.sidebar-drawer { position: relative; top: auto; left: auto; flex: 0 0 var(--tm-nav-width); width: var(--tm-nav-width); min-width: 0; height: auto; border-right: 1px solid var(--tm-line); background: var(--tm-canvas); }
.sidebar-sticky { top: var(--tm-header-height); height: calc(100vh - var(--tm-header-height)); height: calc(100dvh - var(--tm-header-height)); padding: 0 12px; }
.sidebar-container { width: 100%; min-width: 0; }
.sidebar-scroll { min-height: 0; padding-bottom: 16px; }
.sidebar-tree { margin-top: 12px; }
.sidebar-tree .caption { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 4px; padding: 0 12px; }
.sidebar-tree .caption:first-child { margin-top: 0; }
.sidebar-tree .reference { font-size: 15px; line-height: 1.4; padding: 6px 12px; border-radius: 3px; }
.sidebar-tree label { height: 34px; }
.sidebar-tree .current-page > .reference { color: var(--tm-accent); font-weight: 600; }
.tm-docs-brand, .tm-docs-brand:visited { padding: 20px 12px 4px; font-size: 16px; font-weight: 600; color: var(--tm-ink); }
.tm-docs-version { margin: 0 12px 12px; font-size: 12px; color: var(--tm-muted); }
.tm-docs-version span { margin-left: 4px; }
.sidebar-search-container { display: none; margin: 0 0 4px; border: 1px solid var(--tm-line); border-radius: 4px; }
.sidebar-search { border: 0; font-size: 16px; padding-top: 8px; padding-bottom: 8px; }
.content { flex: 1; width: auto; min-width: 0; margin: 0; padding: 24px 32px 0; overflow: visible; justify-content: flex-start; }
.article-container { position: relative; min-width: 0; }
.content-icon-container { position: absolute; top: 0; right: 0; float: none; margin: 0; gap: 8px; height: 24px; }
.tm-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--tm-muted); margin: 0 0 20px; padding-right: 72px; overflow-wrap: anywhere; }
.tm-breadcrumb a { color: var(--tm-muted); }
article[role=main] { font-size: var(--tm-text-size); }
article h1 { font-family: var(--font-stack); font-size: 36px; letter-spacing: -.8px; line-height: 1.2; font-weight: 600; margin: 0 0 20px; padding: 0; overflow-wrap: anywhere; }
article h2 { font-size: 27px; font-weight: 600; letter-spacing: -.4px; line-height: 1.3; margin: 30px 0 14px; padding: 0; }
article h3 { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 24px 0 12px; padding: 0; }
article p, article li { line-height: 1.65; }
article p { margin: 0 0 14px; max-width: 84ch; }
article ul, article ol { margin: 8px 0 16px; }
article code { font-size: .9em; }
article div[class*="highlight-"] { margin: 12px 0 20px; }
article .highlight { border: 1px solid var(--tm-line); border-radius: 6px; position: relative; }
article .highlight pre { padding: 16px; font-size: var(--tm-code-size); line-height: 1.6; }
article .code-block-caption { padding: 8px 12px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
article .code-block-caption .caption-text { white-space: normal; }
article .tm-code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border-bottom: 1px solid var(--tm-line); background: var(--tm-surface); border-radius: 6px 6px 0 0; font-size: 13px; color: var(--tm-muted); }
article .highlight .tm-doc-copy { min-height: 32px; min-width: 64px; font-size: 13px; padding: 5px 10px; color: var(--tm-ink); background: var(--tm-canvas); border: 1px solid var(--tm-line); border-radius: 4px; cursor: pointer; }
article .tm-doc-copy:hover { border-color: var(--tm-accent); color: var(--tm-accent); }
article[role=main] .table-wrapper.container { max-width: 100%; overflow-x: auto; margin: 16px 0 24px; padding: 0; border: 1px solid var(--tm-line); border-radius: 4px; }
article table.docutils { display: table; width: 100%; min-width: 36rem; margin: 0; border-collapse: collapse; font-size: 16px; border: 0; box-shadow: none; }
article table.docutils .pre { white-space: nowrap; overflow-wrap: normal; }
article table.docutils td, article table.docutils th { padding: 8px 12px; border-bottom: 1px solid var(--tm-line); text-align: left; }
article table.docutils th { background: var(--tm-surface); }
article table.docutils tr:last-child td { border-bottom: 0; }
article table.docutils td p { margin: 0; }
article dl.py { margin: 16px 0 24px; }
article dl.py dt.sig { background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: 4px; padding: 12px 16px; font-size: var(--tm-code-size); font-weight: 400; line-height: 1.65; text-indent: 0; overflow-wrap: anywhere; }
article .sig .sig-param { font-weight: 400; }
article .sig .pre { white-space: normal; }
article .sig-name { font-weight: 600; }
article .sig-name, article .sig-prename { color: var(--tm-accent); }
article dl.py > dd { margin-left: 0 !important; }
article dl.field-list { display: block; margin: 16px 0; }
article dl.field-list > dt { font-size: var(--tm-field-size); font-weight: 600; text-transform: none !important; margin: 12px 0 6px; padding: 5px 10px; background: var(--tm-surface); border-radius: 3px; }
article dl.field-list > dd { margin: 0 !important; padding: 0 10px; font-size: var(--tm-field-size); overflow-wrap: anywhere; }
article dl.field-list > dd > ul { margin: 0 !important; padding-left: 20px; }
article dl.field-list p, article dl.field-list li { line-height: 1.55; max-width: none; }
article dl.field-list p { margin: 4px 0; }
article dl.field-list li { margin: 5px 0; }
article dl.field-list em { color: var(--tm-muted); font-style: normal; }
article dl.py p.rubric { margin: 18px 0 8px; padding: 5px 10px; background: var(--tm-surface); border-radius: 3px; font-size: var(--tm-field-size); font-weight: 600; }
article .admonition { margin: 16px 0; padding: 12px 16px; border: 1px solid var(--tm-line); border-left: 3px solid var(--tm-accent); border-radius: 4px; box-shadow: none; }
article .admonition > .admonition-title { margin: -12px -16px 10px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
article .admonition > :last-child { margin-bottom: 0; }
article .tm-example .highlight pre { max-height: 36rem; overflow: auto; }
.tm-dataset-statistics { display: block; max-width: 960px; margin: 16px 0; }
.tm-dataset-statistics img { display: block; width: 100%; height: auto; }
article .tm-defaults { border: 1px solid var(--tm-line); border-radius: 4px; margin: 24px 0; padding: 0 18px; }
article .tm-defaults summary { padding: 15px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
article .tm-defaults .highlight { max-height: 24rem; overflow: auto; margin-bottom: 18px; }
article .tm-api-redirect { display: none; }
article .tm-api-redirect:target { display: block; padding: 16px; border: 1px solid var(--tm-line); }

.toc-drawer { position: relative; top: auto; right: auto; flex: 0 0 var(--tm-toc-width); width: var(--tm-toc-width); height: auto; padding: 0 16px 0 0; border: 0; }
.toc-sticky { top: calc(var(--tm-header-height) + 24px); height: calc(100vh - var(--tm-header-height) - 24px); height: calc(100dvh - var(--tm-header-height) - 24px); }
.toc-title-container { padding: 0 0 8px; }
.toc-title { font-size: 12px; }
.toc-content-icon, .toc-header-icon, .nav-overlay-icon { display: none; }
.toc-overlay-icon.no-toc { display: none; }
.theme-toggle-content { display: flex; }
.theme-toggle { min-width: 32px; min-height: 32px; align-items: center; justify-content: center; }
.toc-tree { font-size: 14px; line-height: 1.5; }
.toc-tree a { padding-top: 4px; padding-bottom: 4px; }
.mobile-header { display: none; background: var(--tm-canvas); border-bottom: 1px solid var(--tm-line); }
.content > footer { margin-top: 32px; }
.related-pages { margin: 0 0 20px; }
.back-to-top { top: calc(var(--tm-header-height) + 8px); }
.sidebar-overlay, .toc-overlay { z-index: 105; }
.skip-to-content { z-index: 120; }
.tm-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .875rem; color: var(--tm-muted); border-top: 1px solid var(--tm-line); margin-top: 16px; padding: 20px 0; }
.tm-footer div { display: flex; gap: 22px; }
.tm-footer a { color: var(--tm-muted); }

/* The landing page shares the documentation shell without the reading sidebars. */
body:has(.tm-home) .sidebar-drawer, body:has(.tm-home) .toc-drawer, body:has(.tm-home) .mobile-header, body:has(.tm-home) .content-icon-container, body:has(.tm-home) .back-to-top { display: none; }
body:has(.tm-home) .page { display: block; }
body:has(.tm-home) .main { width: 100%; display: block; }
body:has(.tm-home) .content { max-width: var(--tm-page-width); width: 100%; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
body:has(.tm-home) .content > footer { margin-top: 0; }
.tm-home { --tm-home-body: clamp(1.125rem, 1.05rem + .25vw, 1.25rem); --tm-home-label: .875rem; }
.tm-home a { color: var(--tm-ink); text-decoration: none; }
.tm-home a:hover { color: var(--tm-accent); }
.tm-home h1, .tm-home h2, .tm-home h3, .tm-home p { margin: 0; }
.tm-home h2 { font-family: var(--tm-serif); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.3vw, 3rem); line-height: 1.18; letter-spacing: -.025em; padding: 0; overflow-wrap: anywhere; }
.tm-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding: 3rem 0 2.5rem; align-items: center; }
.tm-hero-copy { min-width: 0; }
.tm-home .tm-eyebrow { font-family: var(--font-stack--monospace); font-size: var(--tm-home-label); font-weight: 500; line-height: 1.5; letter-spacing: .025em; color: var(--tm-muted); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.tm-status-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--tm-green); }
.tm-home .tm-hero h1 { font-family: var(--tm-serif); font-size: clamp(2.75rem, 2rem + 2.75vw, 4.5rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 400; margin: 0 0 24px; }
.tm-home .tm-hero h1 em { font-style: normal; color: var(--tm-accent); }
.tm-home .tm-hero-description { color: var(--tm-muted); font-size: clamp(1.25rem, 1.1rem + .3vw, 1.375rem); line-height: 1.6; max-width: 31rem; }
.tm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tm-home a.tm-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 1rem; line-height: 1.4; min-height: 48px; padding: 12px 20px; border-radius: 5px; border: 1px solid var(--tm-ink); font-weight: 500; transition: background .15s, border-color .15s; }
.tm-home a.tm-primary, .tm-home a.tm-primary:visited { background: var(--tm-ink); color: var(--tm-canvas); }
.tm-home a.tm-primary:hover, .tm-home a.tm-primary:visited:hover { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-canvas); }
.tm-home a.tm-secondary, .tm-home a.tm-secondary:visited { color: var(--tm-ink); border-color: var(--tm-line); }
.tm-home a.tm-secondary:hover, .tm-home a.tm-secondary:visited:hover { background: var(--tm-surface); color: var(--tm-ink); border-color: var(--tm-muted); }
.tm-install { margin-top: 24px; display: flex; align-items: center; gap: 12px; max-width: 29rem; color: var(--tm-muted); font-size: 1rem; }
.tm-install code { min-width: 0; overflow-x: auto; padding: 8px 0; border: none; background: none; font-size: 1rem; color: var(--tm-ink); white-space: nowrap; }
.tm-copy { margin-left: auto; flex-shrink: 0; border: 1px solid var(--tm-line); border-radius: 4px; color: var(--tm-muted); background: transparent; font-size: .875rem; min-height: 40px; padding: 8px 12px; cursor: pointer; }
.tm-copy:hover { color: var(--tm-ink); border-color: var(--tm-muted); }
.tm-molecule-panel { --tm-line: #dedfd6; --tm-muted: #555b51; margin: 0; background: #f0efe9; color: #242721; padding: clamp(1rem, 2vw, 1.75rem); border: 1px solid #dedfd6; border-radius: 6px; }
.tm-panel-label { font-family: var(--font-stack--monospace); font-size: .9375rem; line-height: 1.5; color: var(--tm-muted); }
.tm-molecule-panel img { display: block; width: 100%; height: auto; max-height: 360px; }
.tm-molecule-panel figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-family: var(--font-stack--monospace); font-size: .9375rem; line-height: 1.5; border-top: 1px solid var(--tm-line); padding-top: 16px; color: var(--tm-muted); font-style: normal; }
.tm-facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--tm-line); border-top: 1px solid var(--tm-line); border-bottom: 1px solid var(--tm-line); }
.tm-facts > a { display: grid; flex: 1 1 12ch; min-width: min(100%, 12ch); align-content: start; gap: 8px; padding: 24px; background: var(--tm-canvas); }
.tm-facts strong { color: var(--tm-ink); font-family: var(--font-stack--monospace); font-size: clamp(2rem, 1.5rem + 1.7vw, 3rem); font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tm-facts span { color: var(--tm-muted); font-size: 1rem; line-height: 1.4; }
.tm-facts > a:hover { background: var(--tm-surface); }
.tm-facts > a:hover strong { color: var(--tm-accent); }
.tm-section { padding: clamp(2.5rem, 4vw, 4rem) 0; }
.tm-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.tm-section-heading > div { min-width: 0; }
.tm-section-heading .tm-eyebrow { margin-bottom: 12px; }
.tm-text-link { font-size: 1rem; line-height: 1.5; }
.tm-text-link span { margin-left: 10px; }
.tm-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tm-home a.tm-task-card { display: flex; flex-direction: column; background: var(--tm-surface); border: 1px solid var(--tm-line); color: var(--tm-ink); padding: clamp(1.5rem, 2vw, 2rem); border-radius: 5px; transition: border-color .15s; }
.tm-home a.tm-task-card:hover { border-color: var(--tm-accent); color: var(--tm-ink); }
.tm-card-number { font-family: var(--font-stack--monospace); font-size: var(--tm-home-label); line-height: 1.5; color: var(--tm-muted); }
.tm-task-art { height: 72px; width: 100%; margin: 24px 0; color: var(--tm-green); }
.tm-task-card:nth-child(2) .tm-task-art { color: var(--tm-accent); }
.tm-task-card:nth-child(3) .tm-task-art { color: var(--tm-ink); }
.tm-task-card h3 { font-family: var(--tm-serif); font-size: clamp(1.75rem, 1.5rem + .7vw, 2.125rem); font-weight: 400; margin-bottom: 12px; letter-spacing: -.02em; }
.tm-task-card p { color: var(--tm-muted); font-size: var(--tm-home-body); line-height: 1.6; }
.tm-card-models { font-family: var(--font-stack--monospace); font-size: .9375rem; line-height: 1.7; margin: 20px 0; color: var(--tm-muted); }
.tm-card-models span { padding: 0 4px; }
.tm-card-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--tm-line); display: flex; flex-wrap: wrap; justify-content: space-between; font-size: .875rem; line-height: 1.5; gap: 8px 12px; }
.tm-card-bottom > span { color: var(--tm-muted); }
.tm-code-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--tm-line); }
.tm-code-intro h2 { margin-bottom: 24px; }
.tm-code-intro > p:not(.tm-eyebrow) { font-size: var(--tm-home-body); color: var(--tm-muted); line-height: 1.65; margin-bottom: 16px; max-width: 32rem; }
.tm-code-intro > .tm-text-link { display: inline-block; margin-top: 8px; }
.tm-code-window { background: #252b25; color: #e7ebdd; border: 1px solid #394237; border-radius: 6px; overflow: hidden; min-width: 0; align-self: start; }
.tm-code-bar { border-bottom: 1px solid #434a3f; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 8px 20px; }
.tm-code-tabs { display: flex; flex-wrap: wrap; gap: 20px; }
.tm-code-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 10px 0; font-size: 1rem; min-height: 44px; cursor: pointer; background: transparent; color: #c2c9bd; }
.tm-code-tabs button[aria-selected="true"] { color: #f7f5ee; border-bottom-color: #dfac87; }
.tm-code-copy { color: #c2c9bd; border-color: #555e50; }
.tm-code-copy:hover { color: #fff; border-color: #c2c9bd; }
.tm-code-window pre { background: transparent; color: #e7ebdd; margin: 0; border: 0; padding: 24px; font-size: 1rem; line-height: 1.6; overflow-x: auto; }
.tm-code-window pre code { font-size: inherit; line-height: inherit; background: none; color: inherit; border: 0; padding: 0; white-space: pre; }
.tm-kw { color: #e9bca4; }
.tm-str { color: #c3d7a5; }
.tm-recent { border-top: 1px solid var(--tm-line); }
.tm-method-list { border-top: 1px solid var(--tm-line); }
.tm-method-list > a { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) max-content; gap: 24px; align-items: center; border-bottom: 1px solid var(--tm-line); padding: 24px 0; }
.tm-method-list > a:hover h3 { color: var(--tm-accent); }
.tm-method-tag { font-family: var(--font-stack--monospace); font-size: .875rem; line-height: 1.5; color: var(--tm-muted); }
.tm-method-list h3 { font-family: var(--tm-serif); font-size: 1.875rem; font-weight: 400; }
.tm-method-list p { font-size: var(--tm-home-body); line-height: 1.6; color: var(--tm-muted); }
.tm-resources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: clamp(1.5rem, 3vw, 3rem); border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-surface); margin: 0 0 48px; }
.tm-resource-links > a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--tm-line); gap: 16px; }
.tm-resource-links > a:first-child { padding-top: 0; }
.tm-resource-links > a:last-child { border-bottom: 0; padding-bottom: 0; }
.tm-resource-links strong { display: block; font-size: 1.125rem; font-weight: 500; }
.tm-resource-links small { display: block; font-size: 1rem; line-height: 1.5; color: var(--tm-muted); margin-top: 6px; opacity: 1; }
.tm-resource-links > a:hover strong { color: var(--tm-accent); }
.tm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 1199px) {
  .toc-drawer { position: fixed; top: var(--tm-header-height); right: -280px; width: 280px; height: calc(100vh - var(--tm-header-height)); height: calc(100dvh - var(--tm-header-height)); padding: 20px 16px; visibility: hidden; z-index: 110; background: var(--tm-canvas); border-left: 1px solid var(--tm-line); }
  .toc-sticky { position: relative; top: 0; height: 100%; }
  .toc-content-icon { display: flex; min-width: 28px; min-height: 28px; }
  #__toc:checked ~ .page .toc-drawer { top: var(--tm-header-height); right: 0; visibility: visible; }
}
@media (max-width: 1100px) {
  .tm-header { padding: 0 24px; gap: 22px; }
  .tm-navigation { gap: 18px; }
  .tm-search { width: 170px; }
  .tm-hero { gap: 30px; }
  .tm-task-card { padding: 20px; }
  .tm-code-section { gap: 32px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
@container site-header (width < 66em) {
  .tm-menu-toggle { display: flex; gap: 10px; margin-left: auto; font-size: .875rem; min-height: 40px; align-items: center; }
  .tm-search { display: none; }
  .tm-navigation { display: none; position: absolute; left: 0; right: 0; top: var(--tm-header-height); max-height: calc(100dvh - var(--tm-header-height)); overflow-y: auto; background: var(--tm-canvas); padding: 16px 24px 24px; flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--tm-line); }
  .tm-navigation[data-open="true"] { display: flex; }
  .tm-navigation a { font-size: 1rem; padding: 12px 0; white-space: normal; }
}
@media (max-width: 999px) {
  :root { --tm-header-height: 56px; }
  html { scroll-padding-top: 120px; }
  :target { scroll-margin-top: 0; }
  .tm-header { min-height: 56px; padding: 0 20px; gap: 12px; }
  .tm-menu-toggle { display: flex; gap: 10px; margin-left: auto; font-size: 14px; min-height: 40px; align-items: center; }
  .tm-search { display: none; }
  .sidebar-search-container { display: block; }
  .tm-navigation { display: none; position: absolute; left: 0; right: 0; top: var(--tm-header-height); background: var(--tm-canvas); padding: 16px 24px 24px; flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--tm-line); }
  .tm-navigation[data-open="true"] { display: flex; }
  .tm-navigation a { font-size: 1rem; padding: 12px 0; }
  .tm-navigation .tm-mobile-search-link { display: block; }
  .page { display: block; }
  .mobile-header { position: sticky; top: var(--tm-header-height); display: flex; align-items: center; justify-content: space-between; height: 44px; z-index: 90; }
  .mobile-header .header-center { display: none; }
  .mobile-header .header-left, .mobile-header .header-right { height: 44px; padding: 0 16px; align-items: center; gap: 12px; }
  .nav-overlay-icon, .toc-header-icon, .theme-toggle-header { display: flex; }
  .nav-overlay-icon, .toc-header-icon { gap: 6px; font-size: 13px; min-height: 44px; }
  .nav-overlay-icon::after { content: "Navigation"; }
  .toc-header-icon::after { content: "On this page"; }
  .toc-content-icon, .theme-toggle-content { display: none; }
  .sidebar-drawer { position: fixed; top: var(--tm-header-height); left: -280px; width: 280px; height: calc(100vh - var(--tm-header-height)); height: calc(100dvh - var(--tm-header-height)); visibility: hidden; z-index: 110; }
  #__navigation:checked ~ .page .sidebar-drawer { top: var(--tm-header-height); left: 0; visibility: visible; }
  .sidebar-tree .reference { min-height: 44px; display: flex; align-items: center; padding-top: 8px; padding-bottom: 8px; }
  .sidebar-tree label { height: 44px; }
  .sidebar-sticky { top: 0; height: 100%; }
  .content { width: 100%; padding: 20px 24px 0; }
  article h1 { font-size: 30px; }
  body:has(dl.py.class) article h1 { font-size: 27px; letter-spacing: -.6px; }
  article h2 { font-size: 25px; }
  .back-to-top { top: calc(var(--tm-header-height) + 52px); }
  article .highlight .tm-doc-copy { min-height: 40px; }
  .tm-hero { grid-template-columns: minmax(0, 1fr); padding-top: 2rem; gap: 28px; }
  .tm-home .tm-hero-description { max-width: 38rem; }
  .tm-molecule-panel { max-width: 42rem; width: 100%; }
  .tm-task-grid { grid-template-columns: 1fr; }
  .tm-task-card { padding: 24px; }
  .tm-task-art { height: 64px; margin: 20px 0; }
  .tm-code-section { grid-template-columns: minmax(0, 1fr); }
  .tm-code-window pre { padding: 20px 16px; }
  .tm-code-bar { padding: 8px 16px; }
  .tm-code-tabs { gap: 12px; }
  .tm-method-list > a { grid-template-columns: minmax(0, 1fr) max-content; gap: 8px 16px; }
  .tm-method-tag { grid-column: 1; }
  .tm-method-list h3 { grid-row: 2; }
  .tm-method-list p { grid-column: 1; grid-row: 3; }
  .tm-method-arrow { grid-column: 2; grid-row: 2; }
  .tm-resources { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 32px; }
  .tm-footer { gap: 16px; margin-top: 0; }
  .tm-footer div { gap: 18px; }
}
@media (max-width: 599px) {
  .tm-facts > a { flex-basis: calc(50% - 1px); padding: 20px 16px; }
  .tm-section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 479px) {
  .tm-header { padding: 0 16px; }
  .content { padding: 16px 16px 0; }
  .tm-breadcrumb { margin-bottom: 14px; }
  .tm-footer { gap: 12px; }
  .tm-footer div { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
