/* gptzzz.ai 夜轨 Night Orbit — content pages: /blog (index, categories, articles), /docs, /status, /support, 404.
   Restyles the EXISTING static markup (it replaces blog/assets/styles-8c4c781b3af6.css).
   Needs gz-tokens.css + gz-components.css loaded first. Colours only through var(--gz-*).
   Night chrome: patch_content.py marks .site-header and .site-footer data-theme="dark", so the
   tokens inside them resolve to the night values in both themes. gz-site.js adds html.gz-js,
   the theme toggle, the mobile menu, the TOC current marker and the code-block wells. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: 88px;
  background: var(--gz-read);
}
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--gz-read); color: var(--gz-text-2);
  font: 400 14px/1.6 var(--font-sans);
  font-variant-numeric: tabular-nums;
}
html.dark body { -webkit-font-smoothing: antialiased; }
main { display: block; flex: 1 0 auto; padding-bottom: 32px; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
b, strong { font-weight: 600; }
/* No italics for Chinese; emphasis is carried by weight + text-1 instead (brand rule). */
em, i { font-style: normal; font-weight: 500; }
.prose :is(em, i) { color: var(--gz-text-1); }
.prose a :is(em, i) { color: inherit; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gz-focus); outline-offset: 2px; border-radius: var(--radius-xs);
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 99; padding: 8px 12px;
  border: 1px solid var(--gz-line-control); border-radius: var(--radius-md);
  background: var(--gz-raised); color: var(--gz-text-1); font-size: 14px;
}
.skip-link:focus { left: 8px; }

/* Shared page container: 1180 incl. 24px gutters (content 1132). */
:is(.hero, .route-map-section, .topic-strip, .content-section, .glossary-section, .home-faq,
    .category-hero, .category-reading, .route-mini, .category-keyword-notes, .category-faq, .about-grid) {
  width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px;
}

/* ---------- Night nav band ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--gz-night); color: var(--gz-night-text);
  color-scheme: dark; -webkit-font-smoothing: antialiased;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gz-orbit-a) 20%, var(--gz-orbit-b) 80%, transparent);
  opacity: .45;
}
.header-inner {
  position: relative; display: flex; align-items: center; gap: 20px;
  max-width: 1440px; height: 64px; margin: 0 auto; padding: 0 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; border-radius: var(--radius-sm); color: var(--gz-text-1); }
.brand img { width: 28px; height: 28px; border-radius: 8px; background: var(--gz-night); }
.brand span { font: 700 18px/1 var(--font-mono); letter-spacing: 0; color: var(--gz-text-1); white-space: nowrap; }
.brand .gz-wordmark b { color: var(--gz-cyan); }
.header-inner nav { display: flex; align-items: center; align-self: stretch; gap: 2px; flex: 1; min-width: 0; }
.header-inner nav a {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  color: var(--gz-night-text);
  transition: color .12s, background-color .12s, border-color .12s, box-shadow .12s, filter .12s;
}
.header-inner nav a:hover, .header-inner nav a[aria-current="page"] { color: var(--gz-text-1); }
.header-inner nav a:focus-visible, .gz-theme-toggle:focus-visible, .gz-menu-btn:focus-visible { outline-offset: -2px; }
.header-inner nav a .gz-node { margin-left: 2px; }
/* 登录 = secondary on night; 开始使用 = the homepage gradient pill (the only gradient in the band). */
.header-inner nav a[href$="/login"] { margin-left: auto; padding: 0 14px; border-color: var(--gz-line-control); color: var(--gz-text-2); }
.header-inner nav a[href$="/login"]:hover { border-color: var(--gz-text-4); color: var(--gz-text-1); }
.header-inner nav .nav-cta {
  margin-left: 6px; padding: 0 14px; border-radius: 10px; font-weight: 600;
  color: var(--gz-on-accent);
  background: linear-gradient(120deg, var(--gz-grad-start), var(--gz-grad-mid) 45%, var(--gz-grad-end));
}
.header-inner nav .nav-cta:hover { color: var(--gz-on-accent); box-shadow: var(--gz-glow); filter: brightness(1.06); }
.gz-theme-toggle, .gz-menu-btn {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-md);
  background: transparent; color: var(--gz-text-3); cursor: pointer;
  transition: color .12s, background-color .12s, border-color .12s;
}
.gz-theme-toggle { margin-left: auto; }
.gz-theme-toggle + a { margin-left: 0 !important; }
.gz-theme-toggle:hover, .gz-menu-btn:hover { background: var(--gz-hover); color: var(--gz-text-1); }
.gz-theme-toggle svg, .gz-menu-btn svg { width: 18px; height: 18px; }
html.dark .gz-theme-toggle .gz-ic-sun, html:not(.dark) .gz-theme-toggle .gz-ic-moon { display: none; }
.gz-menu-btn { display: none; }
.site-header.is-open .gz-menu-btn .gz-ic-menu, .site-header:not(.is-open) .gz-menu-btn .gz-ic-close { display: none; }

/* ---------- Night footer strip ---------- */
.site-footer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start;
  padding: 48px max(24px, calc((100% - 1392px) / 2));
  background: var(--gz-night); color: var(--gz-night-text); color-scheme: dark;
  border-top: 1px solid var(--gz-line); font-size: 13px; -webkit-font-smoothing: antialiased;
}
.site-footer > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.site-footer strong { font: 700 17px/1.3 var(--font-mono); letter-spacing: 0; color: var(--gz-text-1); }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--gz-text-3); }
.footer-links { display: grid; grid-template-columns: repeat(4, max-content); gap: 10px 32px; padding-top: 2px; }
.footer-links a, .site-footer a { color: var(--gz-night-text); font-size: 13px; line-height: 1.5; border-radius: var(--radius-xs); }
.footer-links a:hover, .site-footer a:hover { color: var(--gz-violet-on-tint); }
.site-footer small {
  grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--gz-line-faint);
  font: 12px/1.6 var(--font-mono); color: var(--gz-text-3);
}
/* Live readout injected by gz-site.js (reads same-origin /health). */
.gz-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--gz-night-text); }
.gz-live time { font: 12px var(--font-mono); color: var(--gz-cyan); }
.gz-live.is-unknown { color: var(--gz-text-3); }

/* ---------- Type helpers shared by all page heads ---------- */
.eyebrow {
  display: block; margin: 0 0 8px;
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--gz-cyan);
}
.muted { color: var(--gz-text-4); }
.text-link {
  color: var(--gz-violet); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--gz-violet) 45%, transparent); text-underline-offset: 3px;
}
.text-link:hover { color: var(--gz-violet-hover); text-decoration-color: currentColor; }
.contact-email { font-family: var(--font-mono); font-size: .92em; color: var(--gz-text-1); }
address { font-style: normal; }

/* Path breadcrumb: mono 12px, ancestors text-4, '/' in line-strong, current segment sans text-2. */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 24px;
  font: 12px/1.5 var(--font-mono); color: var(--gz-text-4);
}
.breadcrumbs a { color: var(--gz-text-4); text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--gz-text-2); text-decoration: underline; }
.breadcrumbs > span { color: var(--gz-line-strong); }
.breadcrumbs > span:last-child { font-family: var(--font-sans); color: var(--gz-text-2); }

/* ---------- Buttons ---------- */
.primary-btn, .secondary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 20px; border: 1px solid transparent; border-radius: var(--radius-md);
  font: 500 14px/1.3 var(--font-sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .12s, border-color .12s, color .12s, box-shadow .12s, filter .12s;
}
a.primary-btn, .primary-btn { background: var(--gz-violet-fill); color: var(--gz-on-accent); text-decoration: none; }
a.primary-btn:hover, .primary-btn:hover { background: var(--gz-violet-hover); color: var(--gz-on-accent); }
:is(html.dark, [data-theme="dark"]) a.primary-btn, :is(html.dark, [data-theme="dark"]) .primary-btn {
  background: linear-gradient(135deg, var(--gz-grad-start), var(--gz-grad-mid) 55%, var(--gz-grad-end));
}
:is(html.dark, [data-theme="dark"]) .primary-btn:hover { box-shadow: var(--gz-glow); filter: brightness(1.06); }
:is(html.dark, [data-theme="dark"]) .primary-btn:active { transform: translateY(1px); }
a.secondary-btn, .secondary-btn { background: var(--gz-raised); border-color: var(--gz-line-strong); color: var(--gz-text-2); text-decoration: none; }
a.secondary-btn:hover, .secondary-btn:hover { background: var(--gz-hover); border-color: var(--gz-line-control); color: var(--gz-text-1); }
:is(html.dark, [data-theme="dark"]) .secondary-btn { border-color: var(--gz-line-control); }

/* ---------- Blog index: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 56px; }
.hero-copy { min-width: 0; }
.hero h1 { margin: 0 0 14px; font-size: 32px; line-height: 1.25; font-weight: 600; color: var(--gz-text-1); text-wrap: pretty; }
.hero p { margin: 0; max-width: 40em; font-size: 16px; line-height: 1.8; color: var(--gz-text-3); }
.hero p strong { color: var(--gz-text-1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Figures that sit beside a page head (blog hero, category heads). */
.hero-route-figure, .category-visual {
  margin: 0; overflow: hidden; border: 1px solid var(--gz-line); border-radius: var(--radius-lg);
  background: var(--gz-card); box-shadow: var(--gz-shadow-card);
}
.hero-route-figure img, .category-visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--gz-sunken); }
.hero-route-figure figcaption, .category-visual figcaption {
  padding: 10px 14px; border-top: 1px solid var(--gz-line-faint);
  font-size: 13px; line-height: 1.6; color: var(--gz-text-4);
}

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-head > div:first-child { min-width: 0; }
.section-head h2, .topic-strip-head h2, .home-faq h2, .category-faq h2 {
  margin: 0; font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--gz-text-1);
}
.section-head p, .topic-strip-head p { margin: 6px 0 0; max-width: 48em; font-size: 14px; line-height: 1.7; color: var(--gz-text-3); }

/* Request route: one sunken panel, each stop marked by a static Orbit Node. */
.route-map-section { padding-bottom: 56px; }
.request-route {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0; padding: 20px 8px 16px; list-style: none;
  background: var(--gz-sunken); border: 1px solid var(--gz-line); border-radius: var(--radius-lg);
}
.route-step { position: relative; min-width: 0; padding: 30px 12px 4px; }
.route-step::before {
  content: ""; position: absolute; top: 6px; left: 12px; z-index: 1; width: 18px; height: 9px;
  border: 1.25px solid var(--gz-cyan-mark); border-radius: 50%; transform: rotate(-24deg);
  background: radial-gradient(circle, var(--gz-violet) 0 2.75px, transparent 3.25px);
}
.route-step:not(:last-child)::after {
  content: ""; position: absolute; top: 10px; left: 38px; right: -6px; border-top: 1px dashed var(--gz-line-strong);
}
.route-step > span { font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--gz-text-4); }
.route-step h3 { margin: 2px 0 4px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.route-step h3 a:hover { color: var(--gz-violet); }
.route-step p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--gz-text-3); }

/* Topic strip: flat cards, no coloured top bars, no lift. */
.topic-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 56px; }
.topic-strip-head { grid-column: 1 / -1; margin-bottom: 4px; }
.topic-strip > a {
  display: block; min-width: 0; padding: 18px 20px;
  background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--radius-lg);
  box-shadow: var(--gz-shadow-card); transition: border-color .12s;
}
.topic-strip > a:hover { border-color: var(--gz-line-strong); }
.topic-strip > a b { display: block; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); overflow-wrap: anywhere; }
.topic-strip > a span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--gz-text-3); overflow-wrap: anywhere; }
.topic-strip > a:hover b { color: var(--gz-violet); }

/* ---------- Post list: a dated log, not a card wall ---------- */
.content-section { padding-bottom: 56px; }
.content-section > .section-head, .related > .section-head { max-width: 760px; }
.search-tools { display: grid; justify-items: end; gap: 6px; flex: none; }
.search-box {
  display: flex; align-items: center; gap: 8px; width: min(320px, 100%); height: 36px; padding: 0 12px;
  border: 1px solid var(--gz-line-control); border-radius: var(--radius-md); background: var(--gz-raised);
  color: var(--gz-text-3); font-size: 13px; cursor: text; transition: border-color .12s, box-shadow .12s;
}
.search-box:hover { border-color: var(--gz-text-4); }
.search-box:focus-within { border-color: var(--gz-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gz-focus) 22%, transparent); }
.search-box span { flex: none; font-weight: 500; color: var(--gz-text-3); }
.search-box input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--gz-text-1); font: 400 14px/1.4 var(--font-sans);
}
.search-box input:focus-visible { outline: 0; }
.search-box input::placeholder { color: var(--gz-text-4); }
.search-tools output { font-size: 12px; color: var(--gz-text-4); }

.post-grid { display: block; max-width: 760px; border-bottom: 1px solid var(--gz-line-faint); }
.post-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 24px; align-items: start;
  min-width: 0; padding: 18px 0; border-top: 1px solid var(--gz-line-faint);
}
.post-card .card-body { display: contents; }
.post-card .post-meta {
  grid-column: 1; grid-row: 1 / span 4; display: flex; flex-direction: column; gap: 2px; padding-top: 1px;
  font: 12px/1.5 var(--font-mono); color: var(--gz-text-4);
}
.post-card .card-cover {
  grid-column: 2; justify-self: start; max-width: 100%;
  font: 500 12px/1.5 var(--font-mono); letter-spacing: .04em; color: var(--gz-cyan);
}
.post-card .card-cover img { display: none; }
.post-card .card-cover:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-card h2, .post-card h3 {
  grid-column: 2; margin: 2px 0 4px; font-size: 18px; line-height: 1.45; font-weight: 600;
  color: var(--gz-text-1); overflow-wrap: anywhere;
}
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--gz-violet); }
.post-card p {
  grid-column: 2; margin: 0; font-size: 14px; line-height: 1.7; color: var(--gz-text-3); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; }
.tag { font-size: 12px; line-height: 1.5; color: var(--gz-text-4); overflow-wrap: anywhere; }
.tag::before { content: "#"; margin-right: 2px; font-family: var(--font-mono); color: var(--gz-text-4); }
.no-results { margin: 0; padding: 32px 0; font-size: 13px; color: var(--gz-text-4); text-align: left; }

/* Glossary grid on the blog index */
.glossary-section { padding-bottom: 56px; }
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; }
.glossary-grid > div { padding: 16px 18px; background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--radius-lg); box-shadow: var(--gz-shadow-card); }
.glossary-grid dt { font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.glossary-grid dt a:hover { color: var(--gz-violet); }
.glossary-grid dd { margin: 4px 0 0; font-size: 13px; line-height: 1.65; color: var(--gz-text-3); }

/* RSS strip */
.newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1132px; margin: 0 auto 32px; padding: 24px 28px;
  background: var(--gz-sunken); border: 1px solid var(--gz-line); border-radius: var(--radius-lg);
}
.newsletter h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--gz-text-1); }
.newsletter p { margin: 0; font-size: 14px; color: var(--gz-text-3); }

/* ---------- FAQ: hairline-separated <details> ---------- */
.home-faq, .category-faq { padding-bottom: 56px; }
:is(.home-faq, .category-faq) > * { max-width: 760px; }
:is(.home-faq, .category-faq) > h2 { margin-bottom: 16px; }
.faq-block details, .faq-list details, .prose details { border-top: 1px solid var(--gz-line); }
.faq-block details:last-of-type, .faq-list details:last-of-type, .prose details:last-of-type { border-bottom: 1px solid var(--gz-line); }
.faq-block details + details, .faq-list details + details, .prose details + details { border-top-color: var(--gz-line); }
.faq-block summary, .faq-list summary, .prose summary {
  position: relative; display: block; padding: 14px 32px 14px 0; list-style: none; cursor: pointer;
  font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--gz-text-1); overflow-wrap: anywhere;
}
summary::-webkit-details-marker { display: none; }
.faq-block summary::after, .faq-list summary::after, .prose summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--gz-text-4); border-bottom: 1.5px solid var(--gz-text-4);
  transform: translateY(-75%) rotate(45deg); transition: transform .15s;
}
:is(.faq-block, .faq-list, .prose) details[open] > summary::after { transform: translateY(-25%) rotate(225deg); }
:is(.faq-block, .faq-list, .prose) summary:hover { color: var(--gz-violet); }
:is(.faq-block, .faq-list, .prose) details > :not(summary) { margin: 0; padding: 0 0 16px; font-size: 15px; line-height: 1.8; color: var(--gz-text-read); }
:is(.faq-block, .faq-list) details a { color: var(--gz-violet); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gz-violet) 45%, transparent); text-underline-offset: 3px; }

/* ---------- Category / docs / status / support heads ---------- */
.category-hero { padding-top: 40px; padding-bottom: 40px; }
.category-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); align-items: center; gap: 48px; }
.category-hero-copy { min-width: 0; }
.category-hero h1 { margin: 0 0 12px; max-width: 22em; font-size: 32px; line-height: 1.25; font-weight: 600; color: var(--gz-text-1); text-wrap: pretty; }
.category-hero p:not(.eyebrow) { margin: 0 0 10px; max-width: 46em; font-size: 16px; line-height: 1.75; color: var(--gz-text-3); }
.category-hero p.muted, .category-hero small { font-size: 13px; color: var(--gz-text-4); }
.category-hero > :last-child, .category-hero-copy > :last-child { margin-bottom: 0; }

.category-reading { padding-bottom: 48px; }
.reading-sequence {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  margin: 0; padding: 0; list-style: none; counter-reset: reading-step;
}
.reading-sequence li {
  min-width: 0; padding: 16px 20px 18px; counter-increment: reading-step;
  background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--radius-lg); box-shadow: var(--gz-shadow-card);
}
.reading-sequence li::before {
  content: counter(reading-step, decimal-leading-zero); display: block; margin-bottom: 6px;
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--gz-text-4);
}
.reading-sequence h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.reading-sequence h3 a:hover { color: var(--gz-violet); }
.reading-sequence p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--gz-text-3); }

/* Reading route: segmented track; the current stop is violet tint + Orbit Node ("you are here"). */
.route-mini { padding-bottom: 48px; }
.route-mini-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--gz-text-4); }
.route-mini ol {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px;
  margin: 0; padding: 3px; list-style: none; background: var(--gz-sunken); border-radius: var(--radius-md);
}
.route-mini a {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; min-width: 0;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--gz-text-3); white-space: nowrap; transition: color .12s, background-color .12s;
}
.route-mini a:hover { color: var(--gz-text-1); background: var(--gz-hover); }
.route-mini a span { font: 500 11px var(--font-mono); color: var(--gz-text-4); }
.route-mini a[aria-current="step"] { background: var(--gz-violet-tint); border-color: var(--gz-violet-line); color: var(--gz-violet-on-tint); }
.route-mini a[aria-current="step"]::after {
  content: ""; flex: none; width: 18px; height: 9px; margin-left: auto;
  border: 1.25px solid var(--gz-cyan-mark); border-radius: 50%; transform: rotate(-24deg);
  background: radial-gradient(circle, var(--gz-violet) 0 2.75px, transparent 3.25px);
}

.category-keyword-notes { padding-bottom: 48px; }
.keyword-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.keyword-notes-grid article { min-width: 0; padding: 20px; background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--radius-lg); box-shadow: var(--gz-shadow-card); }
.keyword-notes-grid h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.keyword-notes-grid p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--gz-text-2); }
.keyword-notes-grid a { color: var(--gz-violet); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gz-violet) 45%, transparent); text-underline-offset: 3px; }
.keyword-notes-grid a:hover { color: var(--gz-violet-hover); text-decoration-color: currentColor; }

/* Prose + side card (about, editorial, corrections, docs, status, support). */
.about-grid { display: grid; grid-template-columns: minmax(0, 40rem) 280px; justify-content: start; gap: 56px; padding-top: 8px; padding-bottom: 48px; }
.about-grid > .prose { max-width: none; }
/* The side card is this screen's one Orbit Edge. */
.about-card {
  position: sticky; top: 88px; align-self: start; padding: 20px;
  border: 1px solid transparent; border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--gz-card), var(--gz-card)) padding-box,
    linear-gradient(135deg, var(--gz-orbit-a), var(--gz-orbit-b)) border-box;
}
.about-logo { display: block; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; background: var(--gz-night); }
.about-card h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.about-card p { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--gz-text-3); }
.about-card .primary-btn { width: 100%; }
.about-card .text-link { display: block; margin-top: 12px; font-size: 13px; text-align: center; }
.about-card address { font-size: 13px; line-height: 1.7; color: var(--gz-text-3); }
.about-card address strong { color: var(--gz-text-2); font-weight: 500; }

/* Loose prose blocks directly in <main> (docs index footnotes, glossary, error codes). */
main > .prose { max-width: 1180px; margin: 0 auto; padding: 0 24px 16px; }
main > .prose > * { max-width: 40rem; }
main > .prose > :is(.table-wrap, table) { max-width: 52rem; }
main > .prose > nav { margin-bottom: 1.5em; font-size: 14px; }

/* Status: one summary row. Orbit Node precesses while the health signal is OK. */
.status-panel {
  display: flex; align-items: center; gap: 14px; margin: 0 0 32px; padding: 16px 20px;
  background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--radius-lg); box-shadow: var(--gz-shadow-card);
}
.status-panel > div { min-width: 0; }
.status-panel strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.status-panel p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--gz-text-4); }
.status-panel time { font-family: var(--font-mono); font-size: 12px; color: var(--gz-cyan); overflow-wrap: anywhere; }
.status-dot {
  flex: none; width: 18px; height: 9px; border: 1.25px solid var(--gz-text-4); border-radius: 50%;
  transform: rotate(-24deg); background: radial-gradient(circle, var(--gz-violet) 0 2.75px, transparent 3.25px);
}
.status-panel[data-health-state="ok"] .status-dot { border-color: var(--gz-cyan-mark); animation: gz-precess 2.4s linear infinite; }
.status-panel[data-health-state="unknown"] { border-color: var(--gz-warning-mark); }
.status-panel[data-health-state="unknown"] .status-dot {
  width: 12px; height: 11px; border: 0; border-radius: 0; transform: none; animation: none;
  background: var(--gz-warning-mark); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.status-panel[data-health-state="unknown"] strong { color: var(--gz-warning); }

/* ---------- Article ---------- */
.article-wrap { width: 100%; max-width: calc(200px + 48px + 40rem + 48px); margin: 0 auto; padding: 28px 24px 32px; }
.article-wrap:not(:has(.article-layout)) { max-width: calc(40rem + 48px); }
.article { min-width: 0; }
.article-header { max-width: 40rem; margin: 0 0 28px; }
.category-pill { display: inline-block; margin-bottom: 10px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--gz-cyan); }
.article-header h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.35; font-weight: 600; color: var(--gz-text-1); text-wrap: pretty; overflow-wrap: anywhere; }
.lead { margin: 0; font-size: 17px; line-height: 1.75; color: var(--gz-text-3); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 2px 17px; margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--gz-text-4);
  clip-path: inset(-8px -8px -8px 0); /* hides the separator that would otherwise start a wrapped line */
}
.article-meta > * { position: relative; }
.article-meta > * + *::before { content: "·"; position: absolute; left: -11px; }
.article-cover { max-width: 40rem; margin: 0; }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--gz-line); border-radius: var(--radius-md); background: var(--gz-sunken); }
.article-cover figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--gz-text-4); text-align: center; }
.article-layout { display: grid; grid-template-columns: 200px minmax(0, 40rem); gap: 48px; margin-top: 40px; }

/* TOC: sticky, text-3; the current entry is text-1 + Orbit Node (set by gz-site.js). */
aside.toc {
  position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto;
  padding: 2px 4px 2px 0; font-size: 13px; line-height: 1.5; scrollbar-width: thin;
}
aside.toc > b { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; color: var(--gz-text-4); }
.toc ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc ul ul { margin-top: 6px; padding-left: 12px; }
.toc a { display: flex; align-items: center; gap: 8px; color: var(--gz-text-3); border-radius: var(--radius-xs); transition: color .12s; }
.toc a:hover { color: var(--gz-text-1); }
.toc a[aria-current="true"] { color: var(--gz-text-1); }
.toc a .gz-node { flex: none; }
.gz-toc-btn { display: none; }

/* Prose: 40em column, 16/1.85 text-read. */
.prose { min-width: 0; max-width: 40rem; font-size: 16px; line-height: 1.85; color: var(--gz-text-read); overflow-wrap: break-word; }
.prose h2 { margin: 2.2em 0 .6em; font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--gz-text-1); }
.gz-anchor { margin-left: 8px; font-family: var(--font-mono); font-weight: 500; color: var(--gz-violet); text-decoration: none !important; opacity: 0; transition: opacity .12s; }
.prose h2:hover .gz-anchor, .gz-anchor:focus-visible { opacity: 1; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.prose h4 { margin: 1.6em 0 .4em; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.prose p { margin: 0 0 1em; }
.prose > :first-child, .prose > section:first-child > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li > ul, .prose li > ol { margin: .3em 0 0; }
.prose li::marker { color: var(--gz-violet); }
.prose strong, .prose b { color: var(--gz-text-1); }
.prose a {
  color: var(--gz-violet); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--gz-violet) 45%, transparent); text-underline-offset: 3px;
}
.prose a:hover { color: var(--gz-violet-hover); text-decoration-color: currentColor; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--gz-line); }
.prose small { font-size: 13px; color: var(--gz-text-4); }
.prose img { border-radius: var(--radius-md); }
.prose blockquote { position: relative; margin: 1.4em 0; padding: 0 0 0 1.25em; color: var(--gz-text-3); }
.prose blockquote::before { content: "\201C"; position: absolute; left: -4px; top: -6px; font: 600 28px/1 var(--font-sans); color: var(--gz-violet); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote strong { color: var(--gz-text-2); }
.prose dl { margin: 0 0 1.5em; }
.prose dt { margin: 0; padding-top: 14px; border-top: 1px solid var(--gz-line-faint); font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--gz-text-1); }
.prose dl > dt:first-child { padding-top: 0; border-top: 0; }
.prose dd { margin: 4px 0 14px; }
.prose dt:target { color: var(--gz-violet-on-tint); }
.prose .resource-list { padding: 0; list-style: none; border-top: 1px solid var(--gz-line-faint); }
.prose .resource-list li { margin: 0; border-bottom: 1px solid var(--gz-line-faint); }
.prose .resource-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; font-weight: 500; text-decoration: none; }
.prose .resource-list a::after { content: "\2192"; flex: none; font-family: var(--font-mono); color: var(--gz-text-4); transition: color .12s; }
.prose .resource-list a:hover::after { color: var(--gz-violet); }
.prose .checklist { padding-left: 0; list-style: none; }
.prose .checklist > li { position: relative; padding-left: 1.6em; }
.prose .checklist > li::before {
  content: ""; position: absolute; left: 1px; top: .6em; width: 11px; height: 11px;
  border: 1.5px solid var(--gz-violet); border-radius: 3px;
}

/* Inline code */
:not(pre) > code {
  padding: 1px 5px; border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: .9em;
  background: var(--gz-inline-code-bg); color: var(--gz-violet-on-tint);
  overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Code blocks: always the night well. gz-site.js wraps each <pre> in
   .gz-code[data-theme=dark] with a header (language tag + 复制). */
pre {
  margin: 0 0 1.25em; padding: 14px 16px; overflow-x: auto;
  background: var(--gz-code); color: var(--gz-code-text);
  border: 1px solid var(--gz-code); border-radius: var(--radius-md);
  font: 13px/1.7 var(--font-mono); white-space: pre; tab-size: 2;
  -webkit-font-smoothing: antialiased; color-scheme: dark;
}
pre code { padding: 0; border-radius: 0; background: none; color: inherit; font: inherit; overflow-wrap: normal; }
.gz-codeblock { margin: 0 0 1.25em; min-width: 0; }
.gz-codeblock pre { margin: 0; border: 0; border-radius: 0; background: transparent; }
.gz-codeblock .gz-code__head { gap: 8px; }
.gz-codeblock .gz-code__head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-copy {
  height: 24px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); flex: none;
  background: transparent; color: var(--gz-text-2); font: 500 12px/24px var(--font-sans); cursor: pointer;
  transition: color .12s, background-color .12s;
}
.gz-copy:hover { background: var(--gz-hover); color: var(--gz-text-1); }
.gz-copy:focus-visible { outline: 2px solid var(--gz-focus); outline-offset: -2px; }
.gz-copy.is-done { color: var(--gz-success); }
.gz-copy-buffer { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Tables: data-table spec at 14px inside a scroll wrapper (gz-site.js wraps bare tables). */
.table-wrap {
  margin: 1.5em 0; max-width: 100%; overflow-x: auto;
  background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--radius-lg); box-shadow: var(--gz-shadow-card);
}
.prose table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; line-height: 1.6; color: var(--gz-text-2); font-variant-numeric: tabular-nums; }
.prose > table, .prose :not(.table-wrap) > table {
  display: block; max-width: 100%; margin: 1.5em 0; overflow-x: auto;
  border: 1px solid var(--gz-line); border-radius: var(--radius-lg); background: var(--gz-card);
}
.prose th, .prose td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gz-line-faint); }
.prose th {
  background: var(--gz-sunken); color: var(--gz-text-3); border-bottom-color: var(--gz-line-strong);
  font-size: 12.5px; font-weight: 500; line-height: 1.5; letter-spacing: .02em;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: var(--gz-hover); }
.prose td:first-child { color: var(--gz-text-1); }
.prose td code, .prose th code { font-size: 12.5px; overflow-wrap: break-word; }
.prose th.gz-num, .prose td.gz-num { text-align: right; white-space: nowrap; }
.prose td a { text-decoration-color: color-mix(in srgb, var(--gz-violet) 45%, transparent); }

/* Callouts: card fill, hairline, legend on the top border. No left bar, no emoji. */
.quick-answer { margin: 0 0 1.6em; padding: 2px 20px 4px; background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--radius-lg); box-shadow: var(--gz-shadow-card); }
.prose .quick-answer > h2:first-child { margin-top: 16px; font-size: 18px; }
.article-note, .relationship-disclosure {
  --gz-legend-outer: var(--gz-read);
  margin: 2em 0 1.6em; padding: 16px 18px 14px;
  background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--radius-md);
  font-size: 14.5px; line-height: 1.75; color: var(--gz-text-2);
}
.quick-answer :is(.article-note, .relationship-disclosure) { --gz-legend-outer: var(--gz-card); }
:is(.article-note, .relationship-disclosure) > b:first-child {
  display: table; max-width: 100%; margin: -25px 0 8px -6px; padding: 0 6px;
  background: linear-gradient(var(--gz-legend-outer) 0 9px, var(--gz-card) 9px);
  font: 500 12px/18px var(--font-mono); letter-spacing: .04em; color: var(--gz-cyan);
}
.article-note > b:first-child::before { content: "\25CC\00A0"; }
.relationship-disclosure > b:first-child { color: var(--gz-warning); }
.relationship-disclosure > b:first-child::before { content: "\25B2\00A0"; font-size: 10px; vertical-align: 1px; }
:is(.article-note, .relationship-disclosure) p { margin: 0 0 .6em; }
:is(.article-note, .relationship-disclosure) > :last-child { margin-bottom: 0; }
:is(.article-note, .relationship-disclosure) ul, :is(.article-note, .relationship-disclosure) ol { margin-bottom: .6em; }
:is(.article-note, .relationship-disclosure) .table-wrap { margin: .8em 0; box-shadow: none; }
:is(.article-note, .relationship-disclosure) table { font-size: 13.5px; }
/* One-paragraph note (<p class="article-note"><b>核验日期</b>：…, docs glossary / error codes): the label stays
   inline so the colon after it does not start the body line; the p also needs its own callout spacing. */
.prose p.article-note { margin: 1.6em 0; }
p.article-note > b:first-child {
  display: inline; margin: 0; padding: 0; background: none;
  font: inherit; font-weight: 600; letter-spacing: 0; color: var(--gz-cyan);
}

/* Diagrams: a specimen plate on a sunken well, so white SVGs never glare in dark. */
.article-diagram { margin: 1.8em 0; padding: 8px; background: var(--gz-sunken); border: 1px solid var(--gz-line); border-radius: var(--radius-md); }
.article-diagram img { display: block; width: 100%; height: auto; border-radius: var(--radius-xs); background: var(--gz-plate); }
.article-diagram figcaption { padding: 8px 6px 2px; font-size: 13px; line-height: 1.6; color: var(--gz-text-4); text-align: center; }

html.dark :is(.article-cover, .article-diagram, .hero-route-figure, .category-visual) img { filter: brightness(.94); }

/* FAQ inside an article (older articles put the h2 before the block instead of inside it) */
.prose .faq-block { margin-top: 2.4em; }
.prose h2 + .faq-block { margin-top: 0; }

/* Older articles keep 继续阅读 inside .prose: the rows keep the log look instead of prose link / heading styles. */
.prose .post-grid { margin: 0 0 1.5em; }
.prose .post-card a { color: inherit; text-decoration: none; }
.prose .post-card .card-cover { color: var(--gz-cyan); }
.prose .post-card .card-cover:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose .post-card :is(h2, h3) { margin: 2px 0 4px; font-size: 18px; line-height: 1.45; }
.prose .post-card :is(h2, h3) a:hover { color: var(--gz-violet); }
.prose .post-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--gz-text-3); }

/* Conversion panel at the end of an article: this screen's one Orbit Edge. */
.article-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 40rem; margin-top: 48px; padding: 20px;
  border: 1px solid transparent; border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--gz-card), var(--gz-card)) padding-box,
    linear-gradient(135deg, var(--gz-orbit-a), var(--gz-orbit-b)) border-box;
}
.article-footer p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--gz-text-3); }
.article-footer a:not(.primary-btn) { color: var(--gz-violet); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gz-violet) 45%, transparent); text-underline-offset: 3px; }
.article-footer a:not(.primary-btn):hover { color: var(--gz-violet-hover); text-decoration-color: currentColor; }
.article-footer .primary-btn { flex: none; }

.related { margin-top: 56px; max-width: 40rem; }

/* With a TOC the head, cover, CTA and related list line up with the prose column. */
@media (min-width: 1100px) {
  .article-wrap:has(.article-layout) > :is(.breadcrumbs, .related),
  .article:has(> .article-layout) > :is(.article-header, .article-cover, .article-footer) { margin-left: 248px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .article-wrap { max-width: calc(40rem + 48px); }
  .article-layout { display: block; margin-top: 32px; }
  aside.toc {
    position: static; max-height: none; overflow: visible; margin: 0 0 32px; padding: 12px 16px;
    background: var(--gz-sunken); border: 1px solid var(--gz-line); border-radius: var(--radius-md);
  }
  /* gz-site.js turns the box into a disclosure: 本页目录 + current entry, collapsed by default. */
  .gz-js aside.toc.gz-toc-collapsible { padding: 0; }
  .gz-js aside.toc.gz-toc-collapsible > .gz-toc-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 16px;
    border: 0; border-radius: var(--radius-md); background: transparent; cursor: pointer; text-align: left;
    font: 500 13px/1.4 var(--font-sans); color: var(--gz-text-2);
  }
  .gz-toc-btn .gz-toc-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--gz-text-4); }
  .gz-toc-btn::after {
    content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 3px 0;
    border-right: 1.5px solid var(--gz-text-4); border-bottom: 1.5px solid var(--gz-text-4);
    transform: rotate(45deg); transition: transform .15s;
  }
  .gz-toc-collapsible.is-open > .gz-toc-btn::after { transform: translateY(3px) rotate(225deg); }
  .gz-js aside.toc.gz-toc-collapsible:not(.is-open) > :not(.gz-toc-btn) { display: none; }
  .gz-js aside.toc.gz-toc-collapsible > b { display: none; }
  .gz-js aside.toc.gz-toc-collapsible > .toc { padding: 0 16px 14px; }
  .about-grid { grid-template-columns: minmax(0, 40rem); gap: 32px; }
  .about-card { position: static; max-width: 40rem; }
}
@media (max-width: 980px) {
  .hero, .category-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-route-figure, .category-visual { max-width: 720px; }
  .topic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyword-notes-grid { grid-template-columns: minmax(0, 1fr); }
  .request-route { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .route-step:nth-child(3n)::after { display: none; }
  .route-mini ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(3, max-content); }
}
@media (max-width: 900px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  /* With JS: wordmark · theme toggle · 40px menu button; the links open as a full-width night sheet. */
  .gz-js .gz-menu-btn { display: inline-grid; width: 40px; height: 40px; margin-left: auto; border-color: var(--gz-line-strong); color: var(--gz-night-text); }
  .gz-js .header-inner nav {
    position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px;
    align-self: auto; padding: 0 16px; background: transparent;
  }
  .gz-js .header-inner nav > a { display: none; }
  .gz-js .header-inner nav > .gz-theme-toggle { position: absolute; top: -50px; right: 64px; margin: 0; }
  .gz-js .site-header.is-open nav {
    padding: 8px 16px 16px; background: var(--gz-rail);
    border-top: 1px solid var(--gz-line-faint); border-bottom: 1px solid var(--gz-line); box-shadow: var(--gz-shadow-pop);
  }
  .gz-js .site-header.is-open nav > a { display: flex; grid-column: 1 / -1; height: 44px; padding: 0 12px; font-size: 15px; }
  .gz-js .site-header.is-open nav > a[aria-current="page"] { background: var(--gz-violet-tint); color: var(--gz-violet-on-tint); }
  .gz-js .site-header.is-open nav > a[aria-current="page"] .gz-node { margin-left: auto; }
  .gz-js .site-header.is-open nav > :is(a[href$="/login"], .nav-cta) { grid-column: auto; justify-content: center; height: 40px; margin: 12px 0 0; }
  /* Without JS the links stay reachable as a scrollable second row. */
  html:not(.gz-js) .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 8px; row-gap: 8px; }
  html:not(.gz-js) .header-inner nav { flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  :is(.hero, .route-map-section, .topic-strip, .content-section, .glossary-section, .home-faq,
      .category-hero, .category-reading, .route-mini, .category-keyword-notes, .category-faq, .about-grid) { padding-left: 16px; padding-right: 16px; }
  main > .prose { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 32px; padding-bottom: 40px; }
  .hero h1, .category-hero h1 { font-size: 26px; }
  .hero p, .category-hero p:not(.eyebrow) { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .category-hero { padding-top: 28px; padding-bottom: 28px; }
  .section-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .search-tools { justify-items: stretch; }
  .search-box { width: 100%; }
  .topic-strip { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .route-map-section, .content-section, .glossary-section, .home-faq, .category-faq { padding-bottom: 40px; }
  .request-route { grid-template-columns: minmax(0, 1fr); padding: 12px 8px; row-gap: 0; }
  .route-step { padding: 10px 12px 10px 44px; }
  .route-step::before { top: 17px; left: 14px; }
  .route-step:not(:last-child)::after, .route-step:nth-child(3n):not(:last-child)::after {
    display: block; top: 30px; bottom: -14px; left: 23px; right: auto; border-top: 0; border-left: 1px dashed var(--gz-line-strong);
  }
  .newsletter { flex-direction: column; align-items: flex-start; margin: 0 16px 24px; padding: 20px; }
  .reading-sequence { grid-template-columns: minmax(0, 1fr); }
  .route-mini ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 16px 0; }
  .post-card .post-meta { grid-column: 2; grid-row: 1; flex-direction: row; gap: 8px; padding-top: 0; }
  .post-card .card-cover { grid-column: 1; grid-row: 1; }
  .post-card :is(h2, h3, p, .tags) { grid-column: 1 / -1; }
  .post-card :is(h2, h3), .prose .post-card :is(h2, h3) { font-size: 17px; }
  .article-wrap { padding: 20px 16px 24px; }
  .article-header h1 { font-size: 24px; }
  .lead { font-size: 16px; }
  .prose h2 { font-size: 20px; }
  .article-footer { flex-direction: column; align-items: stretch; }
  .quick-answer { padding: 2px 14px 4px; }
  .article-note, .relationship-disclosure { padding: 16px 14px 12px; }
  .gz-codeblock pre, pre { padding: 12px 14px; }
  .about-grid { padding-top: 0; }
  .table-wrap table:has(tr > :nth-child(4)) { min-width: 600px; }
  .prose td code, .prose th code { overflow-wrap: anywhere; }
  .site-footer { padding: 40px 16px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 28px; }
}
@media (max-width: 420px) {
  .brand span { font-size: 17px; }
  .status-panel { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .status-panel .status-dot, .gz-node.is-live::before { animation: none !important; }
}

/* Print: gz-site.js drops html.dark before printing; chrome and controls are hidden. */
@media print {
  .site-header, .site-footer, aside.toc, .gz-copy, .gz-menu-btn, .skip-link, .search-tools { display: none !important; }
  .article-layout { display: block; }
  .article-wrap > *, .article > * { margin-left: 0 !important; }
  pre, .gz-codeblock { -webkit-print-color-adjust: exact; print-color-adjust: exact; white-space: pre-wrap; break-inside: avoid; }
  .about-card { position: static; }
}
