/* ==========================================================================
   Tokens
   ========================================================================== */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100%;
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --frame-top: #2441ed;
  --frame-mid: #1531c9;
  --frame-bottom: #07080e;
  --ink: #030303;
  --ink-2: #0b0c12;
  --cobalt: #2c4bf6;
  --cobalt-deep: #1c3ce4;
  --cobalt-bright: #3458fc;
  --cobalt-line: #6e8bff;
  --sky: #9ac0fc;
  --mist: #c6dcff;
  --paper: #ecedf6;
  --panel: #ffffff;
  --panel-2: #f6f7fc;
  --panel-tint: #f1f1fa;
  --text: #262e36;
  --muted: #5c5f69;
  --hero-grey: #a4a4a4;
  --on-dark: #c9cbd6;
  --rule: #e2e4ef;
  --rule-strong: #cfd3e6;
  --rule-dark: #23252e;
  --signal: #b0f786;
  --warn: #b4332e;
  --warn-tint: #fbeceb;
  --ok: #1f7a4d;
  --ok-tint: #e7f5ee;
  --key-tint: #e6ebff;

  --f-display: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 96px; --s8: 128px;
  --r-xs: 4px; --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(28, 60, 228, .05), 0 10px 28px -18px rgba(28, 60, 228, .22);
  --sh-2: 0 2px 6px rgba(28, 60, 228, .06), 0 28px 60px -28px rgba(20, 40, 170, .38);

  --container: 1120px;
  --prose: 720px;
  --gutter: 16px;
  --ease: cubic-bezier(.22, 1.2, .36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--frame-bottom); scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 17px/1.7 var(--f-body);
  color: var(--text);
  background-color: var(--frame-bottom);
  background-image: linear-gradient(180deg, var(--frame-top) 0, var(--frame-mid) 520px, #0c1450 1400px, var(--frame-bottom) 2600px);
  background-repeat: no-repeat;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--text); margin: 0; text-wrap: balance; }
h2 { font-weight: 400; font-size: clamp(1.9rem, 1.15rem + 2.5vw, 3.05rem); line-height: 1.06; letter-spacing: -.04em; margin-bottom: var(--s4); }
h3 { font-weight: 500; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; margin: var(--s5) 0 var(--s2); }
h4 { font-weight: 500; font-size: .8125rem; letter-spacing: 0; color: var(--muted); margin: 0 0 var(--s1); }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--text); }
code { font-size: .92em; }
a { color: var(--cobalt-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(28, 60, 228, .35); }
a:hover { color: var(--cobalt); text-decoration-color: currentColor; }
a:active { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--mist); color: var(--ink); }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: var(--sh-2);
}
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* two-tone headings (light surfaces) */
.tt-b {
  color: var(--cobalt);
  background: linear-gradient(90deg, #4f78ff 0%, var(--cobalt) 55%, var(--cobalt-deep) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tt-b a { -webkit-text-fill-color: var(--cobalt); }

/* ==========================================================================
   Page frame
   ========================================================================== */
.sheet { background: var(--paper); max-width: 1600px; margin: 0 auto; overflow-x: clip; }
@media (min-width: 1100px) {
  body { padding: 40px clamp(24px, 4.5vw, 96px) 56px; }
  .sheet { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 120px -40px rgba(0, 0, 0, .6); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--ink); color: #fff; border-bottom: 1px solid var(--rule-dark); position: relative; z-index: 40; }
.site-header__inner { display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; letter-spacing: -.02em; min-height: 44px; }
.brand:hover { color: #fff; }
.brand__mark { color: #fff; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-toggle__btn { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--rule-dark); color: #fff; cursor: pointer; }
.nav-toggle__btn:hover { background: #151515; }
.nav-toggle:focus-visible + .nav-toggle__btn { outline: 2px solid var(--mist); outline-offset: 2px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--rule-dark); padding: var(--s2) var(--gutter) var(--s4); }
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; }
.site-nav__item > a, .menu > summary {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 var(--s2);
  color: #9a9aa2; text-decoration: none; font-family: var(--f-display); font-size: .9375rem; cursor: pointer; list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.site-nav__item > a:hover, .menu > summary:hover, .site-nav a.active, .menu > summary.active { color: #fff; }
.site-nav :focus-visible { outline-color: var(--mist); }
.menu > summary .ic { transition: transform .25s var(--ease); }
.menu[open] > summary .ic { transform: rotate(180deg); }
.menu__list { list-style: none; margin: 0 0 var(--s2); padding: 0 0 0 var(--s3); display: grid; }
.menu__list a { display: block; padding: 10px var(--s2); color: #c9cbd6; text-decoration: none; font-size: .9375rem; border-radius: var(--r-sm); }
.menu__list a:hover, .menu__list a[aria-current] { color: #fff; background: #14151c; }

@media (min-width: 768px) {
  .site-header__inner { padding: 0 var(--s4); }
  .nav-toggle__btn { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; background: none; margin-left: auto; }
  .site-nav__list { display: flex; border: 1px solid var(--rule-dark); border-radius: var(--r-sm); }
  .site-nav__item + .site-nav__item { border-left: 1px solid var(--rule-dark); }
  .site-nav__item { position: relative; }
  .site-nav__item > a, .menu > summary { min-height: 44px; padding: 0 12px; white-space: nowrap; font-size: .875rem; }
  .brand { white-space: nowrap; }
  .menu__list {
    position: absolute; top: calc(100% + 8px); left: -1px; min-width: 300px; padding: var(--s2); margin: 0;
    background: var(--ink-2); border: 1px solid var(--rule-dark); border-radius: var(--r); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7);
  }
}
@media (min-width: 1100px) {
  .site-header { position: sticky; top: 0; }
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 var(--s3) 0 var(--s4); }
  .site-nav { margin: 0; }
  .site-nav__item > a, .menu > summary { padding: 0 var(--s3); font-size: inherit; }
}

/* ==========================================================================
   Buttons, badges, chips
   ========================================================================== */
.btn {
  display: inline-flex; align-items: stretch; min-height: 48px; border-radius: 7px; overflow: hidden;
  font-family: var(--f-display); font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; text-decoration: none;
  transition: transform .2s var(--ease);
}
.btn > span:first-child { display: inline-flex; align-items: center; padding: 0 20px; }
.btn--primary { color: #fff; background: linear-gradient(180deg, #4766ff 0%, var(--cobalt) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px -12px rgba(44, 75, 246, .8); }
.btn--primary:hover { color: #fff; background: linear-gradient(180deg, #5675ff 0%, var(--cobalt-bright) 100%); }
.btn__seg { display: grid; place-items: center; width: 48px; border-left: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 20, 120, .18); }
.btn__seg .ic { transition: transform .25s var(--ease); }
.btn:hover .btn__seg .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--dark { color: #fff; background: #1b1c22; border: 1px solid #2e3038; align-items: center; padding: 0 20px; }
.btn--dark:hover { color: #fff; background: #24252d; }
.btn:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--r-xs);
  background: #141419; border: 1px solid #2a2b33; color: #e6e7ee; font-family: var(--f-display); font-size: .8125rem; line-height: 1.3;
}
.badge__dot { width: 7px; height: 7px; border-radius: 1px; background: var(--signal); }
.badge--light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--panel-2); border: 1px solid var(--rule); color: var(--text); font-size: .8125rem; line-height: 1.45; white-space: nowrap;
}

/* ==========================================================================
   Byline + emblem
   ========================================================================== */
.byline { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .9375rem; color: var(--on-dark); }
.byline a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.byline a:hover { color: var(--mist); }
.emblem { flex: none; border-radius: 50%; }
.emblem__bg { fill: #0d1233; }
.emblem__ring { fill: none; stroke: var(--cobalt-line); stroke-opacity: .55; stroke-width: 1; }
.emblem__ticks { fill: none; stroke: var(--mist); stroke-opacity: .5; stroke-width: 1.4; stroke-dasharray: .14 .86; }
.emblem__shield { fill: rgba(52, 88, 252, .18); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.emblem__probe { fill: none; stroke: var(--cobalt-line); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.emblem__dot { fill: var(--signal); }
.emblem__sweep { opacity: 0; transform-origin: 32px 32px; }
.emblem--live .emblem__sweep { opacity: 1; animation: sweep 7s linear 3 both; }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==========================================================================
   Inner page head
   ========================================================================== */
.page-head {
  color: #fff;
  background:
    radial-gradient(110% 120% at 100% 115%, rgba(47, 80, 253, .95) 0%, rgba(44, 75, 246, .55) 28%, rgba(3, 3, 3, 0) 62%),
    var(--ink);
}
.page-head__inner { width: min(var(--container), 100% - 2 * var(--gutter)); margin: 0 auto; padding: var(--s5) 0 var(--s6); }
.crumbs ol { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--hero-grey); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #4b4d58; }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs :focus-visible, .page-head :focus-visible, .hero :focus-visible { outline-color: var(--mist); }
.page-head__title {
  color: #fff; font-weight: 400; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.045em; max-width: 19ch;
}
.page-head__title .tt-a { color: var(--hero-grey); }
.page-head__title .tt-b, .hero__title .tt-b { color: #fff; background: none; -webkit-text-fill-color: #fff; }
.page-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.page-head--author .page-head__inner { display: grid; gap: var(--s4); }
.page-head__emblem { order: -1; }
.page-head__emblem .emblem { width: 160px; height: 160px; }
@media (min-width: 768px) {
  .page-head__inner { padding: var(--s6) 0 var(--s7); }
  .page-head--author .page-head__inner { grid-template-columns: 1fr auto; grid-template-areas: "crumbs crumbs" "title emblem" "meta emblem"; align-items: end; }
  .page-head--author .crumbs { grid-area: crumbs; }
  .page-head--author .page-head__title { grid-area: title; }
  .page-head--author .page-head__meta { grid-area: meta; }
  .page-head__emblem { grid-area: emblem; order: 0; }
  .page-head__emblem .emblem { width: 240px; height: 240px; }
}

/* ==========================================================================
   Content components (shared)
   ========================================================================== */
.list { padding-left: 1.2em; margin: 0 0 1em; }
.list li { margin-bottom: .4em; }

.qa {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-2);
  padding: var(--s4); font-size: 1.0625rem;
}
.qa p:last-child { margin-bottom: 0; }
.qa strong:first-child { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; }
@media (min-width: 768px) { .qa { padding: var(--s5); } }

.callout {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--sh-1); margin: var(--s4) 0;
  font-size: 1rem;
}
.callout__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--key-tint); color: var(--cobalt-deep); }
.callout--check .callout__icon { background: var(--ok-tint); color: var(--ok); }
.callout--note .callout__icon { background: var(--panel-tint); color: var(--text); }
.callout--warning { border-color: #f0d3d1; }
.callout--warning .callout__icon { background: var(--warn-tint); color: var(--warn); }
.callout__body p:last-child, .callout__body ul:last-child { margin-bottom: 0; }
.callout__body strong:first-of-type { font-family: var(--f-display); font-weight: 600; }
.callout-grid { display: grid; gap: var(--s3); margin: var(--s4) 0; }
.callout-grid .callout { margin: 0; }
@media (min-width: 768px) { .callout-grid { grid-template-columns: 1fr 1fr; } }

.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.ticks .ic { color: var(--cobalt); margin-top: .3em; }

.checklist { list-style: none; margin: 0 0 1em; padding: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.checklist li { position: relative; border-top: 1px solid var(--rule); }
.checklist li:first-child { border-top: 0; }
.checklist input { position: absolute; left: 20px; top: 18px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.checklist label { display: block; padding: 14px 20px 14px 58px; min-height: 52px; cursor: pointer; }
.checklist label::before {
  content: ""; position: absolute; left: 20px; top: 17px; width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--rule-strong); background: var(--panel);
}
.checklist input:checked + label::before {
  border-color: var(--cobalt); background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist input:checked + label { color: var(--muted); }
.checklist input:focus-visible + label::before { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.checklist label:hover::before { border-color: var(--cobalt); }
.print-hint { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0 0 1em; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 var(--s4) 60px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-display); font-size: 1rem;
}
.steps li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 1px; background: var(--rule-strong); }
.steps li:last-child::after { display: none; }
.steps__t { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; margin-bottom: 2px; padding-top: 7px; }

.stats { margin: var(--s4) 0; padding: var(--s4); background: var(--ink); color: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2);
  background-image: radial-gradient(90% 140% at 100% 100%, rgba(47, 80, 253, .55), rgba(3, 3, 3, 0) 60%); }
.stats__list { margin: 0; display: grid; gap: var(--s4); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: var(--s3); }
.stat__value { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.4rem); letter-spacing: -.045em; line-height: 1; color: #fff; }
.stat__label { color: var(--on-dark); font-size: .9375rem; }
.stats figcaption { margin-top: var(--s4); font-size: .8125rem; color: var(--hero-grey); }
.stats figcaption a { color: var(--mist); }
@media (min-width: 768px) {
  .stats { padding: var(--s5); }
  .stats__list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s5); }
}

.table-wrap {
  position: relative;
  overflow-x: auto; margin: var(--s4) 0; border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  background:
    linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) 0 0,
    linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(28, 60, 228, .16), rgba(28, 60, 228, 0)) 0 0,
    radial-gradient(farthest-side at 100% 50%, rgba(28, 60, 228, .16), rgba(28, 60, 228, 0)) 100% 0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; line-height: 1.55; }
.table-wrap table { min-width: 560px; }
.table-wrap--wide table { min-width: 680px; }
.table-wrap th, .table-wrap td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap thead th {
  position: sticky; top: 0; z-index: 2; background: var(--panel-2); color: var(--muted);
  font-family: var(--f-display); font-weight: 500; font-size: .8125rem; white-space: nowrap;
}
.table-wrap tbody th { font-weight: 600; color: var(--text); min-width: 140px; }
.table-wrap--sticky { max-height: min(80vh, 760px); overflow: auto; }
.table-wrap--sticky tbody th, .table-wrap--sticky thead th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.table-wrap--sticky thead th:first-child { background: var(--panel-2); z-index: 3; }

.tcards { display: grid; gap: var(--s3); margin: var(--s4) 0; }
.tcard { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--sh-1); font-size: .9688rem; }
.tcard h3 { margin: 0 0 var(--s2); font-size: 1.0625rem; }
.tcard p:last-child { margin: 0; }
@media (min-width: 768px) { .tcards { grid-template-columns: 1fr 1fr; } }

.acc, .faq { margin: var(--s4) 0; border-top: 1px solid var(--rule-strong); }
.acc__item, .faq__item { border-bottom: 1px solid var(--rule-strong); }
.acc__item > summary, .faq__item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 18px 2px; cursor: pointer; list-style: none; min-height: 44px;
}
.acc__item > summary::-webkit-details-marker, .faq__item > summary::-webkit-details-marker { display: none; }
.acc__item h3, .faq__item h3 { margin: 0; font-size: 1.0938rem; font-weight: 500; }
.acc__item > summary:hover h3, .faq__item > summary:hover h3 { color: var(--cobalt-deep); }
.acc__chev, .faq__chev { color: var(--muted); transition: transform .3s var(--ease); }
details[open] > summary .acc__chev, details[open] > summary .faq__chev { transform: rotate(180deg); }
.faq__a, .acc__body { padding: 0 2px var(--s4); }
.faq__a p:last-child { margin-bottom: 0; }
.qlist { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }

.sources { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.sources li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.sources .ic { color: var(--muted); margin-top: .35em; }

.template {
  margin: var(--s3) 0; padding: var(--s4); background: var(--ink); color: #dfe2ee; border-radius: var(--r-lg);
  font: 400 .875rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto;
}

.page-end { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule-strong); display: grid; gap: var(--s4); }
.updated { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .875rem; color: var(--muted); }
.related__h { font-size: 1rem; font-weight: 500; letter-spacing: -.01em; margin: 0 0 var(--s2); }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--panel); border: 1px solid var(--rule); color: var(--text); text-decoration: none; font-size: .9375rem; box-shadow: var(--sh-1);
}
.related a .ic { color: var(--cobalt); transition: transform .25s var(--ease); }
.related a:hover { border-color: var(--rule-strong); color: var(--cobalt-deep); }
.related a:hover .ic { transform: translateX(3px); }
.related a:active { transform: translateY(1px); }

/* ==========================================================================
   Attack-path scene (hero + stage player)
   ========================================================================== */
.scene { width: 100%; height: auto; display: block; overflow: visible; }
.scene .fl { fill: rgba(52, 88, 252, .07); stroke: rgba(110, 139, 255, .32); stroke-width: 1; }
.scene .fl-g { stroke: rgba(110, 139, 255, .14); stroke-width: 1; }
.scene .drops path { stroke: rgba(198, 220, 255, .28); stroke-dasharray: 2 4; }
.scene .pl-t { fill: rgba(52, 88, 252, .26); stroke: var(--cobalt-line); stroke-width: 1.2; stroke-linejoin: round; }
.scene .pl-l { fill: rgba(28, 60, 228, .6); stroke: var(--cobalt-line); stroke-width: 1; stroke-linejoin: round; }
.scene .pl-r { fill: rgba(16, 32, 150, .8); stroke: var(--cobalt-line); stroke-width: 1; stroke-linejoin: round; }
.scene .track { fill: none; stroke: rgba(198, 220, 255, .35); stroke-width: 1.2; stroke-dasharray: 3 5; }
.scene .probe { fill: none; stroke: var(--mist); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.scene .core { fill: #fff; }
.scene .ring { fill: none; stroke: var(--sky); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.scene .lbl { fill: var(--on-dark); font: 500 13px var(--f-display); letter-spacing: -.01em; }
.scene .tag rect { fill: rgba(3, 3, 3, .86); stroke: #3a3f55; }
.scene .tag text { fill: #fff; font: 500 11.5px var(--f-display); }
.scene .tag-dot { fill: var(--signal); }
.scene .tag-ln { stroke: rgba(198, 220, 255, .5); stroke-dasharray: 2 3; }
.scene .node { transform-box: fill-box; transform-origin: center; }

/* ==========================================================================
   Stage player
   ========================================================================== */
.pt-player {
  display: grid; gap: var(--s4); margin: var(--s4) 0; padding: var(--s4); border-radius: 22px; color: #e8eaf4;
  background: radial-gradient(80% 90% at 0% 100%, rgba(47, 80, 253, .55), rgba(3, 3, 3, 0) 65%), var(--ink); box-shadow: var(--sh-2);
}
.pt-player__scene { align-self: center; }
.pt-player h3 { color: #fff; }
.pt-stage { padding: var(--s3) 0; border-top: 1px solid rgba(255, 255, 255, .12); scroll-margin-top: 96px; }
.pt-stage:first-child { border-top: 0; }
.pt-stage__h { margin: 0 0 var(--s2); font-size: 1.25rem; }
.pt-stage p { color: var(--on-dark); }
.pt-stage a { color: var(--mist); text-decoration-color: rgba(198, 220, 255, .4); }
.pt-stage__dl { margin: 0; display: grid; gap: 10px; }
.pt-stage__dl > div { padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pt-stage__dl dt { font-family: var(--f-display); font-size: .8125rem; color: var(--sky); }
.pt-stage__dl dd { margin: 2px 0 0; color: #fff; font-size: .9688rem; }
.pt-player__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--s3); }
.pt-player__controls[hidden] { display: none; }
.pt-btn, .pt-dot {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font: 500 .875rem var(--f-display);
  transition: transform .2s var(--ease);
}
.pt-btn--play { display: inline-flex; gap: 8px; padding: 0 18px 0 14px; background: var(--cobalt); border-color: var(--cobalt-bright); }
.pt-btn:hover, .pt-dot:hover { background: rgba(255, 255, 255, .14); }
.pt-btn--play:hover { background: var(--cobalt-bright); }
.pt-btn:active, .pt-dot:active { transform: scale(.96); }
.pt-dots { display: flex; gap: 6px; }
.pt-dot[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.pt-player :focus-visible { outline-color: var(--mist); }
.pt-player.is-enhanced .pt-player__panels { display: grid; }
.pt-player.is-enhanced .pt-stage { grid-area: 1 / 1; border-top: 0; padding: 0; }
.pt-player.is-enhanced .pt-stage:not(.is-active) { visibility: hidden; }
.pt-player.is-enhanced .scene .node { opacity: .32; transition: opacity .45s ease; }
.pt-player.is-enhanced .scene .lbl { opacity: .45; transition: opacity .45s ease; }
.pt-player.is-enhanced .scene .probe { transition: stroke-dashoffset .7s var(--ease); stroke-dashoffset: 1; }
.pt-player[data-active="2"] .scene .probe { stroke-dashoffset: .75; }
.pt-player[data-active="3"] .scene .probe { stroke-dashoffset: .5; }
.pt-player[data-active="4"] .scene .probe { stroke-dashoffset: .25; }
.pt-player[data-active="5"] .scene .probe { stroke-dashoffset: 0; }
.pt-player[data-active="1"] :is(.n1, .l1),
.pt-player[data-active="2"] :is(.n1, .n2, .l2),
.pt-player[data-active="3"] :is(.n1, .n2, .n3, .l3),
.pt-player[data-active="4"] :is(.n1, .n2, .n3, .n4, .l4),
.pt-player[data-active="5"] :is(.n1, .n2, .n3, .n4, .n5, .l5) { opacity: 1 !important; }
.pt-player[data-active="1"] .n1 .ring, .pt-player[data-active="2"] .n2 .ring, .pt-player[data-active="3"] .n3 .ring,
.pt-player[data-active="4"] .n4 .ring, .pt-player[data-active="5"] .n5 .ring { stroke: var(--signal); stroke-width: 2; }
@media (min-width: 900px) {
  .pt-player { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s5); padding: var(--s5); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-dark); padding: var(--s6) var(--gutter) var(--s4); font-size: .9375rem; }
.site-footer__inner { width: min(var(--container), 100%); margin: 0 auto; display: grid; gap: var(--s5); }
.site-footer__updated { margin: var(--s3) 0 0; font-size: .875rem; color: var(--hero-grey); }
.site-footer__h { font-size: .875rem; font-weight: 500; color: #fff; margin: 0 0 var(--s3); letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--mist); }
.brand--footer { padding: 0; }
.site-footer__legal { width: min(var(--container), 100%); margin: var(--s6) auto 0; padding-top: var(--s4); border-top: 1px solid var(--rule-dark); font-size: .8125rem; color: var(--hero-grey); display: grid; gap: 4px; }
.site-footer__legal p { margin: 0; }
@media (min-width: 768px) {
  .site-footer { padding: var(--s7) var(--s4) var(--s5); }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer__legal { display: flex; justify-content: space-between; gap: var(--s4); }
}

/* ==========================================================================
   Motion + print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; padding: 0; font-size: 11pt; }
  .sheet { box-shadow: none; }
  .site-header, .site-footer, .toc, .hero__art, .filter, .pt-player__controls, .related, .skip, .hero__ctas, .print-hint { display: none !important; }
  .page-head, .hero { background: none !important; color: #000; }
  .page-head__title, .hero__title, .page-head__title .tt-a { color: #000 !important; -webkit-text-fill-color: #000; }
  .checklist, .qa, .callout, .table-wrap, .tcard, .card { box-shadow: none; break-inside: avoid; }
  .checklist label::before { border-color: #000; }
  a { color: #000; }
  .stats, .pt-player { background: #fff; color: #000; }
}
