body.pg {
  --home-top: 152px;
  --home-type-h3: 500 20px/28px var(--home-font);
  --home-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --home-gap-title: 40px;
  --home-gap-text: 16px;
  --home-gap-item: 8px;
  --home-gap-h2: 56px;
  --home-gap-h3: 32px;
  --home-gap-heading-text: 12px;
  --home-gap-media: 32px;
  --home-gap-page-end: 96px;
  --home-indent: 28px;
  --home-radius-file: 24px;
  --home-radius-code: 6px;
  --home-facts-key: 96px;
}
@media (max-width: 767px) {
  body.pg {
    --home-top: 40px;
    --home-type-h3: 500 18px/26px var(--home-font);
    --home-gap-title: 24px;
    --home-gap-h2: 44px;
    --home-gap-h3: 28px;
    --home-gap-media: 24px;
    --home-gap-page-end: 64px;
    --home-indent: 22px;
    --home-radius-file: 20px;
  }
}


body.pg .h-key--home { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.pg .h-key[aria-current] { background: var(--home-nav-key-tint); }

body.pg .h-main { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 768px) { body.pg .h-main { padding-bottom: 40px; } }
@media (min-width: 768px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.pg:not([data-bend="0"]) .h-main { padding-bottom: calc(10vh + 48px); }
}
body.pg .pg-col, body.pg .pg-end { width: min(var(--home-column), 100%); margin: 0 auto; }
body.pg .pg-title { margin-bottom: var(--home-gap-title); font: var(--home-type-h2); color: var(--home-text); text-wrap: balance; overflow-wrap: break-word; }
body.pg .pg-col > .h-contact { width: 100%; }
body.pg .pg-title:has(+ .pg-lede) { margin-bottom: 12px; }
body.pg .pg-lede { margin-bottom: var(--home-gap-title); font: 400 20px/28px var(--home-font); color: var(--home-text-secondary); text-wrap: pretty; }
@media (max-width: 767px) { body.pg .pg-lede { font: 400 18px/26px var(--home-font); } }
body.pg .pg-col > :is(.h-contact, .h-cards) + .pg-body { margin-top: var(--home-gap-media); }
body.pg .pg-end { margin-top: auto; padding-top: var(--home-gap-page-end); }
body.pg .pg-end .h-foot { width: 100%; }

body.pg .pg-body { font: var(--home-type-desc); color: var(--home-text-secondary); overflow-wrap: break-word; }
body.pg .pg-h2 { font: var(--home-type-title); color: var(--home-text); text-wrap: balance; }
body.pg .pg-h3 { font: var(--home-type-h3); color: var(--home-text); text-wrap: balance; }
body.pg .pg-p { text-wrap: pretty; }
body.pg strong { font-weight: var(--home-fw-bold); }
body.pg .pg-ln {
  color: var(--home-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: rgba(26, 26, 25, 0.35); transition: text-decoration-color var(--home-fast) ease-out;
}
body.pg .pg-ln:hover { text-decoration-color: currentColor; }
body.pg code {
  padding: 0.1em 0.35em; border-radius: var(--home-radius-code); background: var(--home-surface-subtle);
  font-family: var(--home-font-mono); font-size: 0.875em; color: var(--home-text);
}

body.pg .pg-flow > * + * { margin-top: var(--home-gap-text); }
body.pg .pg-flow > :is(.pg-figure, .pg-file, .pg-callout, .pg-hr),
body.pg .pg-flow > :is(.pg-figure, .pg-file, .pg-callout, .pg-hr) + * { margin-top: var(--home-gap-media); }
body.pg .pg-flow > .pg-file + .pg-file { margin-top: var(--home-gap-item); }
body.pg .pg-flow > .pg-h2 { margin-top: var(--home-gap-h2); }
body.pg .pg-flow > .pg-h3 { margin-top: var(--home-gap-h3); }
body.pg .pg-flow > :is(.pg-h2, .pg-h3) + :not(.pg-figure, .pg-file, .pg-callout, .pg-hr, .pg-h2, .pg-h3) { margin-top: var(--home-gap-heading-text); }
body.pg .pg-flow > .pg-h3 + .pg-meta { margin-top: var(--home-gap-card-text); color: var(--home-text-muted); }
body.pg .pg-kids { padding-left: var(--home-indent); margin-top: var(--home-gap-item); }

body.pg .pg-bullets, body.pg .pg-numbers { margin: 0; padding-left: var(--home-indent); }
body.pg .pg-bullets { list-style: disc; }
body.pg .pg-bullets .pg-bullets { list-style: circle; }
body.pg .pg-numbers { list-style: decimal; }
body.pg :is(.pg-bullets, .pg-numbers) > li { padding-left: 2px; }
body.pg :is(.pg-bullets, .pg-numbers) > li + li { margin-top: var(--home-gap-item); }
body.pg .pg-p + :is(.pg-bullets, .pg-numbers), body.pg :is(.pg-bullets, .pg-numbers) + .pg-p { margin-top: var(--home-gap-text); }
body.pg :is(.pg-bullets, .pg-numbers) > li::marker { color: var(--home-text-muted); font-variant-numeric: tabular-nums; }
body.pg li > .pg-kids { padding-left: 0; }

body.pg .pg-pages > li + li { margin-top: 0; }
body.pg .pg-page {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0;
  box-shadow: inset 0 -2px var(--home-divider); font: var(--home-type-h3); color: var(--home-text); transition: color 220ms ease-out;
}
body.pg .pg-page:hover, body.pg .pg-page:focus-visible { color: var(--home-text-hover); }
body.pg .pg-page svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; transition: transform var(--home-fast) ease-out; }
body.pg .pg-page:hover svg { transform: translateX(4px); }

body.pg .pg-figure { margin: 0; container-type: inline-size; --pg-radius: clamp(16px, 3.47cqi, 24px); }
body.pg .pg-media, body.pg .vbox { position: relative; border-radius: var(--pg-radius); }
body.pg .pg-figure img, body.pg .pg-figure video {
  display: block; width: 100%; height: auto; border-radius: var(--pg-radius); background: var(--home-cover-bg);
}
body.pg .pg-figure img[style] { object-fit: cover; }
body.pg .pg-cap { margin-top: 12px; padding: 0 var(--home-pad-card-text); font: var(--home-type-small); color: var(--home-text-muted); text-wrap: pretty; }
body.pg .pg-figure.b-video { width: var(--w, 100%); max-width: 100%; }
body.pg .vmark { display: none; }
body.pg .b-video.auto video { cursor: pointer; }
body.pg .b-video.auto video:focus-visible { outline: 2px solid var(--home-focus); outline-offset: 2px; }
body.pg .b-video.auto.stopped .vmark {
  display: block; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(25, 25, 25, 0.55); pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body.pg .b-video.auto.stopped .vmark::after {
  content: ""; position: absolute; left: 22px; top: 18px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff;
}

body.pg .pg-file {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px;
  border-radius: var(--home-radius-file); background: var(--home-surface); color: var(--home-text);
  transition: transform var(--home-fast) ease-out;
}
body.pg .pg-file::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; pointer-events: none;
  transition: opacity var(--home-fast) ease-out;
}

body.pg .pg-file:active { transform: scale(0.99); }
body.pg .pg-file-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--home-surface-subtle); }
body.pg .pg-file-ic svg { width: 22px; height: 22px; fill: currentColor; }
body.pg .pg-file-name { flex: 1; min-width: 0; font: var(--home-type-label); overflow-wrap: anywhere; }
body.pg .pg-file-size { flex: none; font: var(--home-type-small); color: var(--home-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

body.pg .pg-hr { height: 2px; margin: 0; border: 0; background: var(--home-divider); }

body.pg .pg-callout { padding: var(--home-pad-contact); border-radius: var(--home-radius-contact); background: var(--home-surface); }

body.pg .pg-toggle > summary { display: flex; gap: 6px; list-style: none; cursor: pointer; color: var(--home-text); border-radius: 6px; }
body.pg .pg-toggle > summary::-webkit-details-marker { display: none; }
body.pg .pg-toggle > summary:focus-visible { outline: 2px solid var(--home-focus); outline-offset: 2px; }
body.pg .pg-chev { flex: none; display: grid; place-items: center; width: 22px; height: 28px; }
body.pg .pg-chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; transition: transform var(--home-fast) ease-out; }
body.pg .pg-toggle[open] > summary .pg-chev svg { transform: rotate(90deg); }
body.pg .pg-toggle > .pg-kids { margin-top: var(--home-gap-item); }
body.pg .pg-flow > .pg-sections { margin-top: var(--home-gap-media); }
body.pg .pg-sections > summary { font: var(--home-type-label); align-items: center; min-height: 44px; }
body.pg .pg-sec { list-style: none; margin: 0; padding: 0 0 0 28px; }
body.pg .pg-sec > li + li { margin-top: 4px; }
body.pg .pg-sec-a { display: block; padding: 6px 0; color: var(--home-text-secondary); text-decoration: none; text-wrap: pretty; }
body.pg .pg-sec-a:hover { color: var(--home-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
body.pg .pg-sec-a:focus-visible { outline: 2px solid var(--home-focus); outline-offset: 2px; border-radius: 4px; }
@media (min-width: 1100px) { body.pg .pg-sections { display: none; } }

@media (prefers-reduced-motion: reduce) {
  body.pg .pg-page, body.pg .pg-page svg, body.pg .pg-ln, body.pg .pg-file, body.pg .pg-file::after, body.pg .pg-chev svg { transition: none; }
  body.pg .pg-page:hover svg, body.pg .pg-file:active { transform: none; }
}

@media (max-width: 767px) {
  body.pg .h-hl { white-space: normal; }
  body.pg .pg-file { gap: 12px; padding-right: 16px; }
  body.pg .pg-quote:not(.h-quote) { display: flex; flex-direction: column; gap: var(--home-gap-text); }
  body.pg .pg-quote:not(.h-quote) > * { margin-top: 0; }
  body.pg .pg-quote-by { order: -1; }
}

body.pg .pg-links { margin: 0; padding: 0; list-style: none; }
body.pg .pg-links > li { display: inline; }
body.pg .pg-links > li:not(:last-child)::after { content: "\00a0\00b7\0020"; }
body.pg .pg-flow > .pg-p + .pg-links { margin-top: 0; }
@media (max-width: 767px), (pointer: coarse) {
  body.pg .pg-links > li { display: block; }
  body.pg .pg-links > li:not(:last-child)::after { content: none; }
  body.pg .pg-links .pg-ln { display: inline-block; padding: 10px 0; }
}
body.pg .pg-head.pg-head--facts { margin-bottom: var(--home-gap-media); }
@media (max-width: 767px) {
  body.pg .pg-head--facts .pg-fact { grid-template-columns: var(--home-facts-key) minmax(0, 1fr); }
}
body.pg .pg-more .h-btn--secondary { background: var(--home-surface); }
body.pg .pg-col > .pg-body + .h-contact { margin-top: var(--home-gap-h2); }
body.pg .pg-col > .pg-next + .h-contact { margin-top: var(--home-gap-media); }

body.pg .pg-head { display: flex; flex-direction: column; gap: var(--home-gap-media); margin-bottom: var(--home-gap-h2); }
body.pg .pg-head > .pg-facts + .pg-note { margin-top: calc(var(--home-gap-text) - var(--home-gap-media)); }
body.pg .pg-cover { width: 100%; }
body.pg .pg-facts { display: flex; flex-direction: column; gap: var(--home-gap-item); margin: 0; font: var(--home-type-desc); }
body.pg .pg-fact { display: grid; grid-template-columns: var(--home-facts-key) minmax(0, 1fr); column-gap: 16px; align-items: baseline; }
body.pg .pg-fact dt { font: var(--home-type-small); color: var(--home-text-muted); }
body.pg .pg-fact dd { margin: 0; color: var(--home-text); overflow-wrap: break-word; text-wrap: pretty; }
body.pg .pg-note { font: var(--home-type-small); color: var(--home-text-muted); text-wrap: pretty; }

body.pg .pg-next {
  position: relative; display: flex; align-items: center; gap: 16px; margin-top: var(--home-gap-h2); padding: 20px 24px;
  border-radius: var(--home-radius-file); background: var(--home-surface); color: var(--home-text);
  transition: transform var(--home-fast) ease-out;
}
body.pg .pg-next::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; pointer-events: none;
  transition: opacity var(--home-fast) ease-out;
}

body.pg .pg-next:active { transform: scale(0.99); }
body.pg .pg-next:focus-visible { outline: 2px solid var(--home-focus); outline-offset: 2px; }
body.pg .pg-next-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.pg .pg-next-k { font: var(--home-type-small); color: var(--home-text-muted); }
body.pg .pg-next-t { font: var(--home-type-h3); text-wrap: balance; overflow-wrap: break-word; }
body.pg .pg-next svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; transition: transform var(--home-fast) ease-out; }
body.pg .pg-next:hover svg { transform: translateX(4px); }

body.pg .pg-flow > .pg-actions { display: flex; flex-wrap: wrap; gap: var(--home-gap-actions); margin-top: var(--home-gap-media); }

@media (prefers-reduced-motion: reduce) {
  body.pg .pg-next, body.pg .pg-next::after, body.pg .pg-next svg { transition: none; }
  body.pg .pg-next:active, body.pg .pg-next:hover svg { transform: none; }
}
@media (max-width: 767px) {
  body.pg .pg-facts { gap: 12px; }
  body.pg .pg-next { padding: 16px 20px; }
}

body.pg .pg-actions .h-btn--secondary { background: var(--home-surface); }

body.pg .pg-figure[data-zoom] :is(.pg-media, .vbox), body.pg .pg-figure[data-zoom].b-video.auto video { cursor: zoom-in; }
body.pg .pg-figure[data-zoom] :is(.pg-media, .vbox):focus-visible { outline: 2px solid var(--home-focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  body.pg .pg-figure[data-zoom] :is(.pg-media, .vbox)::after {
    content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    background: rgba(14, 14, 16, 0.04); opacity: 0; transition: opacity var(--home-fast) ease-out;
  }
  body.pg .pg-figure[data-zoom] :is(.pg-media, .vbox):hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { body.pg .pg-figure[data-zoom] :is(.pg-media, .vbox)::after { transition: none; } }
html.pv-lock { overflow: hidden; scrollbar-gutter: stable; }
.pv {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #fff; overflow: hidden; font: var(--home-type-small);
}
.pv::backdrop { background: transparent; }
.pv:focus { outline: none; }
.pv-bg { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .pv-bg { background: rgba(14, 14, 16, 0.96); } }
.pv-stage { position: absolute; inset: 0; cursor: zoom-out; touch-action: pinch-zoom; }
.pv-frame {
  position: absolute; transform-origin: 0 0; border-radius: 14px; overflow: hidden; background: var(--home-cover-bg);
  cursor: default; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.pv-frame > :is(img, video) { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.pv-vid > video { cursor: pointer; }
.pv-vid > video:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 14px; }
.pv-mark {
  display: none; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; place-items: center;
  border-radius: 50%; background: rgba(25, 25, 25, 0.55); color: #fff; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pv-mark svg { margin-left: 4px; }
.pv-frame.stopped .pv-mark { display: grid; }
.pv-cap { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; text-align: center; color: rgba(255, 255, 255, 0.78); text-wrap: pretty; transition: opacity 0.2s ease-out; }
.pv-cap[hidden] { display: none; }
.pv-frame.pv-zoomable > img { cursor: zoom-in; }
.pv-zoom {
  position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; cursor: zoom-out;
  touch-action: pan-x pan-y pinch-zoom; scrollbar-width: none; -webkit-user-select: none; user-select: none;
}
.pv-zoom::-webkit-scrollbar { display: none; }
.pv-zoom[hidden] { display: none; }
.pv-zoom.grabbing { cursor: grabbing; }
.pv-zoom-in { position: relative; }
.pv-zoom img {
  position: absolute; display: block; max-width: none; transform-origin: 0 0; border-radius: 14px; background: var(--home-cover-bg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); -webkit-user-drag: none;
}
.pv.zoomed .pv-cap { opacity: 0; pointer-events: none; }
.pv.zoomed .pv-btn { background: rgba(14, 14, 16, 0.64); }
.pv.zoomed .pv-count { padding: 4px 10px; border-radius: 999px; background: rgba(14, 14, 16, 0.64); color: #fff; }
@media (hover: hover) { .pv.zoomed .pv-btn:not(:disabled):hover { background: rgba(14, 14, 16, 0.8); } }
.pv-bar {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; pointer-events: none;
}
.pv-bar > * { pointer-events: auto; }
.pv-count { padding-left: 4px; color: rgba(255, 255, 255, 0.72); font-variant-numeric: tabular-nums; }
.pv-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; transition: background-color 0.15s ease, opacity 0.15s ease;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pv-btn[hidden] { display: none; }
.pv-btn:disabled { opacity: 0.3; cursor: default; }
.pv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .pv-btn:not(:disabled):hover { background: rgba(255, 255, 255, 0.24); } }
.pv-prev, .pv-next { position: absolute; top: 50%; margin-top: -22px; }
.pv-prev { left: 28px; }
.pv-next { right: 28px; }
@media (max-width: 767px) {
  .pv-bar { padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
  .pv-prev, .pv-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); margin-top: 0; }
  .pv-prev { left: calc(50% - 60px); }
  .pv-next { right: calc(50% - 60px); }
}

body.pg :is(.pg-file, .pg-next) { transition: transform var(--home-fast) ease-out, box-shadow var(--home-fast) ease-out; }
body.pg :is(.pg-file, .pg-next)::after { content: none; }
body.pg .pg-file-ic { transition: background-color var(--home-fast) ease-out; }
@media (hover: hover) and (pointer: fine) {
  body.pg :is(.pg-file, .pg-next):hover { box-shadow: 0 1px 2px rgba(26, 26, 25, 0.04), 0 6px 20px rgba(26, 26, 25, 0.08); }
  body.pg .pg-file:hover .pg-file-ic { background: #e4e7ee; }
}
body.pg :is(.pg-file, .pg-next):focus-visible { outline: 2px solid var(--home-focus); outline-offset: 2px; }

@media print {
  @page { margin: 16mm 16mm 18mm; }
  body.pg {
    --home-bg: #fff; --home-text: #000; --home-text-secondary: #000; --home-text-body: #000; --home-text-muted: #333;
    background: #fff;
  }
  body.pg :is(.h-nav, .h-toc, .h-skip, .pg-end, canvas, [data-lens], .vmark, .pv) { display: none !important; }
  body.pg .h-main { position: static !important; transform: none !important; min-height: 0; padding: 0; }
  body.pg .pg-col { width: 100%; }
  body.pg .pg-ln { color: #000; text-decoration-color: currentColor; }
  body.pg :is(.pg-title, .pg-h2, .pg-h3, .pg-meta) { break-after: avoid; page-break-after: avoid; }
  body.pg :is(.pg-bullets, .pg-numbers, li, .pg-figure, .pg-callout, .pg-file, .pg-fact, .pg-next, .h-case, .h-contact) { break-inside: avoid; page-break-inside: avoid; }
  body.pg .pg-file { display: block; padding: 0; border-radius: 0; background: none; transform: none; }
  body.pg .pg-file::after, body.pg .pg-file-ic { display: none; }
  body.pg .pg-file-name { font: var(--home-type-desc); text-decoration: underline; text-underline-offset: 0.2em; }
  body.pg .pg-file-size::before { content: " · "; }
  body.pg :is(.pg-callout, .h-contact, .pg-next) { box-shadow: inset 0 0 0 1px #bbb; }
  body.pg .h-chip.glassed { background: var(--home-chip-tint); }
  body.pg :is(.pg-body, .pg-next) + .h-contact { display: none; }
}
body.pg .h-quote figcaption .pg-ln { color: inherit; }
