/*
 * Copyright 2026 Greg Whitaker
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* The guide shares its palette and brand with the Java API reference. */
:root {
  --sidebar: 248px;
  --header: 76px;
  --article-width: min(780px, calc(100vw - var(--sidebar) - 96px));
  --article-left: calc(var(--sidebar) + 48px);
  font: 15px/1.8 var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { flex-shrink: 0; }
::selection { background: var(--accent); color: var(--heading); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 30; background: var(--paper); color: var(--link); padding: 10px 18px; border: 1px solid var(--line); border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* Persistent navigation */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10; height: var(--header);
  display: flex; align-items: center; gap: 34px;
  padding: 0 32px 0 26px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.site-header .brand { width: calc(var(--sidebar) - 12px); flex-shrink: 0; }
.header-sections { display: flex; gap: 28px; align-self: stretch; }
.header-section { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; position: relative; }
.header-section:hover, .header-section.is-current { color: var(--heading); }
.header-section.is-current::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--link); }
.header-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 13px; }
.header-links > a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.header-links > a:hover { color: var(--heading); }
.search-toggle { display: flex; align-items: center; gap: 10px; width: 224px; height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); text-align: left; font-size: 12px; }
.search-toggle:hover { border-color: var(--muted); }
.search-toggle svg, .search-input-row svg { width: 17px; height: 17px; }
.search-toggle kbd { margin-left: auto; font-size: 10px; }
kbd { border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; font: 11px/1.6 var(--font-mono); color: var(--muted); }
.menu-toggle { color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background: var(--paper); padding: 5px 10px; font-size: 12px; }
.menu-toggle:hover { background: var(--hover); }
.site-nav { position: fixed; inset: var(--header) auto 0 0; width: var(--sidebar); overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); padding: 30px 22px 20px; background: var(--surface); font-size: 13px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.nav-group { margin-bottom: 24px; }
.nav-label { margin: 0 10px 9px; color: var(--heading); font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.nav-group a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 10px; margin: 2px 0; border-radius: 2px; text-decoration: none; color: var(--nav-ink); line-height: 1.65; border-left: 2px solid transparent; }
.nav-group a:hover { background: var(--hover); color: var(--heading); }
.nav-group a[aria-current] { background: var(--active); color: var(--active-ink); border-left-color: var(--link); font-weight: 600; }
.nav-group a span { color: var(--muted); }

/* Article typography and outline */
#header, #content, .site-footer { width: var(--article-width); margin-left: var(--article-left); }
#header { padding-top: calc(var(--header) + 48px); }
#header .details { display: none; }
#header::before { content: "User guide"; color: var(--link); font-size: 12px; }
.js #header::before { display: none; }
.page-context { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 10px/1.8 var(--font-mono); margin-bottom: 24px; letter-spacing: .04em; text-transform: uppercase; }
.page-context a { color: var(--muted); text-decoration: none; }
.page-context > span:last-child { color: var(--link); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; letter-spacing: -.035em; font-weight: 650; }
h1 { margin: 0 0 22px; font-size: clamp(34px, 3.2vw, 44px); text-wrap: balance; }
h2 { margin: 52px 0 20px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 27px; }
h3 { font-size: 20px; margin: 34px 0 15px; }
h4 { font-size: 17px; }
[id] { scroll-margin-top: calc(var(--header) + 24px); }
p { margin: 0 0 20px; }
#preamble > .sectionbody > .paragraph:first-child p { color: var(--muted); font-size: 17px; line-height: 1.8; }
#content { padding-bottom: 12px; overflow-wrap: break-word; }
#content:focus { outline: none; }
#content li { margin-bottom: 8px; }
#content li p { margin-bottom: 8px; }
#content ul, #content ol { padding-left: 24px; }
.paragraph .title, table caption { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
.sect1 > .sectionbody > :last-child { margin-bottom: 0; }
#toc { padding: 13px 18px; margin: 28px 0 32px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 12px; }
#toctitle { color: var(--heading); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
#toc[open] #toctitle, #toc > div#toctitle { margin-bottom: 16px; }
#content #toc ul { padding-left: 0; list-style: none; margin: 0; }
#content #toc ul ul { padding-left: 12px; }
#toc a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; }
#toc a:hover { color: var(--heading); }
#toc a[aria-current] { border-color: var(--link); color: var(--link); }
#content #toc li { line-height: 1.5; margin: 0; }
.anchor { display: inline-block; width: 0; text-decoration: none; }
.anchor::before { content: "#"; position: relative; left: -1em; color: var(--muted); opacity: 0; font-size: .7em; }
h2:hover .anchor::before, h3:hover .anchor::before, .anchor:focus-visible::before { opacity: 1; }

/* Code, data, and callouts */
code, pre { font-family: var(--font-mono); }
:not(pre) > code { font-size: .86em; background: var(--inline-code); border: 1px solid var(--line); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.listingblock, .literalblock { margin: 25px 0; border: 1px solid var(--code-border); border-radius: 8px; overflow: hidden; background: var(--code-background); }
.listingblock .title, .code-toolbar { min-height: 43px; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; color: var(--code-muted); background: var(--code-header); border-bottom: 1px solid var(--code-border); font: 11px/1.8 var(--font-mono); overflow-wrap: anywhere; }
.code-toolbar .title { min-height: 0; padding: 0; border: 0; background: none; }
pre { color: var(--code-ink); padding: 23px; font-size: 12.5px; line-height: 1.95; overflow-x: auto; margin: 0; tab-size: 4; }
pre code { font-size: inherit; }
.copy-button { flex-shrink: 0; padding: 3px 8px; border: 1px solid var(--code-border); border-radius: 4px; color: var(--code-muted); background: transparent; font: 10px/1.8 var(--font-sans); }
.copy-button:hover { color: var(--code-ink); border-color: var(--code-muted); }
.token-comment { color: var(--code-muted); }
.token-string { color: var(--code-string); }
.token-keyword { color: var(--code-keyword); }
.token-number { color: var(--code-number); }
.table-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 6px; }
table.tableblock { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tableblock th { text-align: left; background: var(--table-head); color: var(--heading); font-size: 12px; font-weight: 600; }
table.tableblock td, table.tableblock th { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
table.tableblock tr:last-child td { border-bottom: 0; }
table.tableblock p { margin: 0; }
table.tableblock td:first-child > p > code:only-child { white-space: nowrap; }
body:not(.js) table.tableblock { display: block; overflow-x: auto; }
.table-scroll table { margin: 0; min-width: 580px; }
.admonitionblock { margin: 28px 0; padding: 18px; border: 1px solid var(--note-border); border-left: 3px solid var(--note-border); border-radius: 4px; background: var(--note-background); font-size: 13px; }
.admonitionblock table { width: 100%; border: 0; }
.admonitionblock td { padding: 0; }
.admonitionblock .icon { width: 55px; padding-right: 16px; vertical-align: top; color: var(--link); }
.admonitionblock .icon .title { font: 650 10px/1.8 var(--font-sans); text-transform: uppercase; padding-top: 3px; }
.admonitionblock .content > :last-child { margin-bottom: 0; }
.admonitionblock.warning, .admonitionblock.caution { background: var(--warning-background); border-color: var(--warning-border); }
.admonitionblock.warning .icon, .admonitionblock.caution .icon { color: var(--ink); }
details { margin: 24px 0; border: 1px solid var(--line); border-radius: 5px; padding: 14px 18px; }
summary { cursor: pointer; font-size: 13px; font-weight: 600; }

/* Overview: a practical introduction, with the actual build front and center. */
.docs-home, .docs-catalog { --article-width: min(1120px, calc(100vw - var(--sidebar) - 96px)); --article-left: calc(var(--sidebar) + max(48px, (100vw - var(--sidebar) - 1120px) / 2)); }
.docs-home.js #content { padding-top: calc(var(--header) + 60px); }
.home-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; padding-bottom: 44px; }
.home-hero > * { min-width: 0; }
.home-hero #header { width: auto; margin: 0; padding: 0; }
.docs-home #preamble > .sectionbody > .paragraph:first-child p { font-size: 16px; line-height: 1.85; max-width: 460px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-actions a { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 11px 18px; border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 600; }
.button-primary { background: var(--button-background); color: var(--paper); border: 1px solid var(--button-background); }
.button-primary:hover { background: var(--button-hover); color: var(--paper); }
.button-secondary { color: var(--heading); border: 1px solid var(--line); }
.button-secondary:hover { background: var(--surface); color: var(--heading); }
.home-example { min-width: 0; }
.home-example .listingblock { margin: 0; border-radius: 9px; }
.home-example .code-toolbar { min-height: 48px; }
.home-example pre { font-size: 11.5px; padding: 24px 20px; line-height: 2; }
.docs-home h2 { border: 0; margin-top: 44px; padding-top: 0; font-size: 27px; }
.docs-home .sect1 { padding-bottom: 12px; }
.docs-home .sect1 + .sect1 { border-top: 1px solid var(--line); }
.docs-home .sect1 > .sectionbody > .paragraph { max-width: 800px; }
.quickstart-command .listingblock { margin: 0; }
.runtime-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 30px 0; }
.runtime-step { display: flex; gap: 13px; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--link); font: 10px var(--font-mono); }
.runtime-step strong { display: block; font-size: 13px; font-weight: 650; color: var(--heading); }
.runtime-step div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.lifecycle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 25px 0; }
.lifecycle-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; color: var(--ink); background: var(--surface); }
.lifecycle-card:hover { border-color: var(--muted); color: var(--ink); }
.card-eyebrow { color: var(--muted); font: 9px/1.7 var(--font-mono); letter-spacing: .06em; margin-bottom: 16px; }
.lifecycle-card > strong { color: var(--heading); font-size: 21px; font-weight: 600; letter-spacing: -.025em; width: 100%; }
.lifecycle-card > strong span { float: right; color: var(--muted); font-weight: 400; }
.lifecycle-card p { margin: 12px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.lifecycle-card code { margin-top: auto; font-size: 11px; }
.card-link { display: block; margin-top: 24px; color: var(--link); font-size: 12px; font-weight: 600; }
.card-link span { margin-left: 8px; }
.resource-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; margin: 24px 0 35px; }
.resource-links a { display: grid; grid-template-columns: 34px 1fr auto; gap: 3px 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 20px 0; text-decoration: none; }
.resource-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 38px; color: var(--link); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.resource-icon svg { width: 20px; height: 20px; }
.resource-links a:hover strong, .resource-links a:hover b { color: var(--link); }
.resource-links strong { color: var(--heading); font-size: 13px; font-weight: 600; }
.resource-links a > span:not(.resource-icon) { grid-column: 2; color: var(--muted); font-size: 11px; line-height: 1.6; }
.resource-links b { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: 16px; font-weight: 400; }
.guide-links { margin: 16px 0 25px; }
.guide-links a { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-links a > span:first-child { font: 11px var(--font-mono); color: var(--link); }
.guide-links a > span:last-child { margin-left: auto; }
.guide-links strong { color: var(--heading); font-weight: 600; font-size: 14px; }
.guide-links a:hover strong { color: var(--link); }
.guide-links p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }

/* Article navigation and search */
.page-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.page-pagination a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; color: var(--heading); text-decoration: none; font-size: 14px; font-weight: 500; }
.page-pagination a:hover { border-color: var(--muted); background: var(--surface); }
.page-pagination span { display: block; color: var(--muted); font: 10px/1.8 var(--font-mono); margin-bottom: 6px; }
.page-pagination .next { grid-column: 2; text-align: right; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 26px 0 36px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--link); }
.footer-divider { padding: 0 5px; }
a.github-stars { --thumb-size: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; width: calc(var(--thumb-size) * 2 + 8px); height: calc(var(--thumb-size) + 8px); padding: 0 4px; border: 1.5px solid currentColor; border-radius: 999px; background: var(--paper); color: var(--heading); box-shadow: 0 2px 4px #00000012, 0 5px 12px #00000008; font: 600 10px/1 var(--font-sans); text-decoration: none; white-space: nowrap; transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.github-stars svg { width: calc(var(--thumb-size) - 8px); height: calc(var(--thumb-size) - 8px); transition: transform 160ms ease; }
.github-stars-count { min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  a.github-stars:hover { color: var(--heading); background: var(--surface); box-shadow: 0 3px 6px #00000018, 0 7px 16px #0000000c; transform: translateY(-1px); }
  .github-stars:hover svg { transform: rotate(-8deg); }
}
a.github-stars:active { transform: translateY(0) scale(.97); box-shadow: 0 1px 2px #00000012; }
@media (prefers-reduced-motion: reduce) {
  a.github-stars, .github-stars svg { transition: none; }
  a.github-stars:hover, a.github-stars:active, .github-stars:hover svg { transform: none; }
}
.search-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(650px, calc(100dvh - 96px)); margin: 10vh auto auto; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 80px #0004; }
.search-dialog::backdrop { background: #00000080; backdrop-filter: blur(3px); }
.search-input-row { display: flex; align-items: center; gap: 13px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-input-row svg { color: var(--muted); }
.search-input-row input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; font-size: 15px; outline-offset: 2px; }
.search-input-row input::placeholder { color: var(--muted); }
.search-close { border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; color: var(--muted); background: var(--surface); font-size: 10px; }
.search-status { padding: 14px 20px 8px; margin: 0; color: var(--muted); font-size: 11px; }
.search-results { list-style: none; padding: 0 8px 10px; margin: 0; max-height: min(440px, calc(100dvh - 285px)); overflow-y: auto; overscroll-behavior: contain; }
.search-results li { margin: 0; }
.search-results a { display: block; padding: 12px; border-radius: 5px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: var(--active); outline: none; box-shadow: inset 2px 0 var(--link); }
.search-results strong { display: block; font-size: 14px; color: var(--heading); font-weight: 600; }
.search-results .search-page { display: block; color: var(--link); font-size: 10px; margin-bottom: 3px; }
.search-results p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 5px 0 0; }
.search-results mark { background: var(--accent); color: var(--heading); border-radius: 2px; }
.search-footer { display: flex; justify-content: space-between; gap: 16px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
body:has(.search-dialog[open]) { overflow: hidden; }

@media (min-width: 1280px) {
  :root { --article-width: min(780px, calc(100vw - var(--sidebar) - 336px)); --article-left: calc(var(--sidebar) + max(48px, (100vw - var(--sidebar) - 1120px) / 2)); }
  #toc { position: fixed; top: calc(var(--header) + 54px); left: calc(var(--article-left) + var(--article-width) + 48px); width: 190px; max-height: calc(100vh - var(--header) - 100px); overflow-y: auto; scrollbar-width: thin; border: 0; border-radius: 0; background: transparent; margin: 0; padding: 0 5px 0 0; }
  #toc #toctitle { list-style: none; pointer-events: none; }
  #toc #toctitle::-webkit-details-marker { display: none; }
  #toc > ul { display: block; }
}
@media (max-width: 1340px) {
  .header-sections { gap: 20px; }
  .header-sections > a:last-child { display: none; }
  .header-links { gap: 16px; }
  .search-toggle { width: 190px; }
}
@media (max-width: 1180px) {
  .header-links > a { display: none; }
  .home-hero { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .docs-home #preamble > .sectionbody > .paragraph:first-child p { max-width: 600px; }
  .home-example { max-width: 700px; }
  .home-example pre { font-size: 13px; }
  .resource-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  :root { --sidebar: 220px; --article-left: calc(var(--sidebar) + 32px); --article-width: calc(100vw - var(--sidebar) - 64px); }
  .docs-home, .docs-catalog { --article-width: calc(100vw - var(--sidebar) - 64px); --article-left: calc(var(--sidebar) + 32px); }
  .site-header { gap: 12px; padding-right: 22px; }
  .header-sections > a:not(.header-documentation):not(.header-resources):not(.header-integrations) { display: none; }
  .search-toggle { width: 34px; height: 36px; padding: 8px; border-color: transparent; background: transparent; }
  .search-toggle > span, .search-toggle kbd { display: none; }
  .site-nav { padding-left: 16px; padding-right: 16px; }
  .runtime-flow { grid-template-columns: 1fr; gap: 20px; }
  .lifecycle-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { .menu-toggle { display: none; } }
@media (max-width: 760px) {
  :root { --header: 108px; --article-width: auto; --article-left: 26px; }
  .site-header { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 68px 40px; padding: 0 22px; gap: 0 10px; }
  .site-header .brand { width: auto; }
  .header-links { grid-column: 2; grid-row: 1; gap: 12px; }
  .header-sections { grid-column: 1 / -1; grid-row: 2; gap: 24px; }
  .site-nav { position: relative; inset: auto; width: auto; margin-top: var(--header); border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 26px; }
  .js .site-nav { display: none; position: fixed; inset: var(--header) 0 0; margin: 0; width: 100%; z-index: 9; }
  .js .site-nav.is-open { display: block; }
  body:has(.site-nav.is-open) { overflow: hidden; }
  .nav-group a { padding: 9px 12px; }
  #header, #content, .site-footer { width: auto; margin-left: 26px; margin-right: 26px; }
  #header { padding-top: 32px; }
  .js #header { padding-top: calc(var(--header) + 32px); }
  .docs-home.js #content { padding-top: calc(var(--header) + 40px); }
  .home-hero #header { padding-top: 0; }
  .page-context { font-size: 10px; margin-bottom: 20px; }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; margin-top: 36px; padding-top: 28px; }
  #preamble > .sectionbody > .paragraph:first-child p { font-size: 16px; }
  .hero-actions { margin-top: 24px; }
  .home-hero { gap: 30px; padding-bottom: 30px; }
  .runtime-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .runtime-step { flex-direction: column; gap: 10px; }
  pre { padding: 18px; font-size: 12px; }
  .admonitionblock { padding: 14px; }
  .admonitionblock .icon { width: 44px; padding-right: 10px; }
}
@media (max-width: 540px) {
  .resource-links, .runtime-flow { grid-template-columns: 1fr; }
  .runtime-step { flex-direction: row; gap: 14px; }
  .home-example pre { font-size: 11px; padding: 19px 16px; }
  .lifecycle-card { padding: 22px; }
  .site-footer { flex-direction: column; gap: 5px; }
  .search-dialog { margin-top: 20px; max-height: calc(100dvh - 40px); }
  .search-input-row { padding: 15px; gap: 9px; }
  .search-input-row input { font-size: 13px; }
  .search-footer > span:last-child { display: none; }
  .page-pagination { gap: 12px; }
  .page-pagination a { font-size: 12px; padding: 14px; }
}
@media (max-width: 390px) {
  .site-header { padding: 0 16px; }
  .header-links { gap: 6px; }
  .site-header .brand { gap: 8px; font-size: 13px; }
  .site-header .brand-mark { width: 30px; height: 34px; }
  .brand-subtitle { font-size: 8px; }
  .theme-toggle, a.github-stars { --thumb-size: 20px; }
  a.github-stars { font-size: 9px; }
  #header, #content, .site-footer { margin-left: 20px; margin-right: 20px; }
  .hero-actions { gap: 10px; }
  .hero-actions a { gap: 16px; padding: 10px 14px; font-size: 12px; }
}
@media print {
  .site-header, .site-nav, #toc, .copy-button, .page-pagination, .search-dialog, .hero-actions { display: none; }
  #header, #content, .site-footer, .docs-home.js #content { width: auto; margin: 0; padding-top: 0; }
  .home-hero { display: block; }
  .listingblock, .literalblock, .code-toolbar, .listingblock .title { color: #111; background: #f3f3f3; border-color: #ddd; }
  pre, pre span { color: #111; white-space: pre-wrap; overflow-wrap: anywhere; }
  h2, h3 { break-after: avoid; }
  .runtime-flow, .lifecycle-grid { break-inside: avoid; }
}
