@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("/fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
  --font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --font-xs: 12px;
  --font-sm: 13px;
  --font-base: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 22px;
  --font-2xl: 28px;
  --font-3xl: 34px;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.55;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --z-sticky: 40;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --content-default: 880px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

:root,
:root[data-theme="gruvbox-dark"] {
  --bg: #17171c;
  --bg-hero: #1c1c22;
  --index-hero-bg: #282828;
  --bg-elevated: #18181b;
  --bg-panel-soft: #1c1c21;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-subtle: #1d1d20;
  --border-strong: #3f3f46;
  --accent: #6366f1;
  --accent-color: #f6f6fe;
  --accent-hover: #818cf8;
  --accent-secondary: #818cf8;
  --accent-soft: rgb(99 102 241 / 0.16);
  --on-accent: #04052f;
  --success: #34d399;
  --success-soft: rgb(52 211 153 / 0.16);
  --warning: #fbbf24;
  --warning-soft: rgb(251 191 36 / 0.16);
  --danger: #f87171;
  --control-bg: #131315;
  --control-hover: #27272a;
  --control-active: #3f3f46;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
}

:root[data-theme="proof-light"] {
  --bg: #efeff0;
  --bg-hero: #fafafa;
  --index-hero-bg: #f3eae1;
  --bg-elevated: #ffffff;
  --bg-panel-soft: #f7f7f8;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --border-subtle: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #4f46e5;
  --accent-color: #f6f6fe;
  --accent-hover: #818cf8;
  --accent-secondary: #4f46e5;
  --accent-soft: rgb(79 70 229 / 0.1);
  --on-accent: #04052f;
  --success: #059669;
  --success-soft: rgb(5 150 105 / 0.12);
  --warning: #b45309;
  --warning-soft: rgb(180 83 9 / 0.12);
  --danger: #dc2626;
  --control-bg: #f4f4f5;
  --control-hover: #efeff0;
  --control-active: #d4d4d9;
  --shadow-sm: 0 1px 2px rgb(24 24 27 / 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  font-size: var(--font-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
}

h2 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  font-size: var(--font-md);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: var(--font-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

p { color: var(--text-secondary); }

::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--control-bg);
  color: var(--text-primary);
  cursor: pointer;
  font-size: var(--font-sm);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--control-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn:active { background: var(--control-active); }

.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-color);
  font-weight: var(--weight-semibold);
}

.btn-primary:hover {
  border-color: transparent;
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-ghost {
  border-color: transparent;
  background: var(--bg-hero);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--control-hover);
  border-color: transparent;
  color: var(--text-primary);
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.brand-logo-black { display: none; }
[data-theme="proof-light"] .brand-logo-white { display: none; }
[data-theme="proof-light"] .brand-logo-black { display: block; }

/* ---- landing chrome ---- */

.landing-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--index-hero-bg, var(--bg-hero));
}

.landing-shell .landing-footer { background-color: var(--bg); }

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-sticky);
  transform: translateY(calc(-100% - var(--space-3)));
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: transform var(--transition);
}

.skip-link:focus { transform: translateY(0); }

.landing-main {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow-x: clip;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  margin: 0;
  padding: var(--space-3) max(40px, calc((100% - 1200px) / 2));
  background: color-mix(in srgb, var(--bg) 23%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-header-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.landing-header-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 0;
}

.landing-header-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--space-10);
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--font-md);
  font-weight: 500;
}

.landing-header-links a:hover { color: var(--text-primary); }

.landing-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: var(--space-2);
}

.landing-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-panel-soft);
  color: var(--text-secondary);
}

.landing-theme-btn:hover { color: var(--text-primary); }
.landing-theme-btn svg { width: 18px; height: 18px; }

.landing-footer { padding: 0 var(--space-10) var(--space-10); }

.landing-footer-inner {
  display: grid;
  gap: var(--space-8);
  width: min(100%, 1200px);
  margin: 0 auto;
  padding-top: var(--space-10);
  border-top: 1px solid var(--border-subtle);
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
}

.landing-footer-col { display: grid; gap: var(--space-3); align-content: start; }

.landing-footer-tag {
  max-width: 260px;
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.landing-footer-heading {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-footer-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-sm);
}

.landing-footer-list a { color: var(--text-secondary); font-weight: 500; }
.landing-footer-name { color: var(--text-secondary); font-weight: 400; }
.landing-footer-list a:hover { color: var(--text-primary); }

.landing-footer-desc {
  display: block;
  color: var(--text-secondary);
  font-size: var(--font-xs);
}

.landing-footer-brand {
  display: inline-flex;
  align-items: center;
}

.landing-footer-brand .brand-logo { height: 56px; }

/* --text-muted fails AA at 13px against both theme backgrounds; --text-secondary
   is the dimmest token that holds 4.5:1 in dark and light. Same for the three
   fine-print notes below. Contrast is non-negotiable here (AGENTS.md). */
.landing-footer-copy {
  color: var(--text-secondary);
  font-size: var(--font-sm);
}
.landing-footer-copy a {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: .2em;
}



@media (max-width: 660px) {
  .landing-header {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'brand actions' 'nav nav';
    gap: var(--space-1) var(--space-3);
    padding-block: var(--space-2);
    padding-inline: var(--space-4);
  }

  .landing-header-brand { grid-area: brand; }

  .landing-header-links {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border-subtle);
  }

  .landing-header-links a { padding-inline: var(--space-1); }

  .landing-header-actions { grid-area: actions; }

}


@media (max-width: 760px) {
  .landing-footer { padding-inline: var(--space-4); }
  .landing-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .landing-footer-col--brand { grid-column: 1 / -1; }
}

.landing-header-links a:is([aria-current="page"], [aria-current="location"]) { color: var(--text-primary); text-decoration: underline; text-underline-offset: .3em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hub {
  --base: var(--bg);
  --band: var(--bg-panel-soft);
  --panel: var(--bg-panel-soft);
  --low: var(--bg-elevated);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --rule: var(--border-strong);
  --soft: var(--border-subtle);
  --link: var(--accent-secondary);
  --action: var(--accent);
  --action-hover: var(--accent-secondary);
  --amber: var(--accent-hover);
  --mark: var(--accent-soft);
  --mono: ui-monospace, Consolas, monospace;
  line-height: 1.65;
}
.hub :is(h1, h2, h3, p) { margin: 0; }
.hub a:not(.button) { text-underline-offset: .2em; }
.hub :is(article, .intro, .actions) a:not(.button) { color: var(--link); text-decoration: underline; }
.hub .wrap { width: min(calc(100% - var(--space-16)), 1184px); margin-inline: auto; }
.hub .hero h1 { font-size: clamp(2rem, 4vw, 3.375rem); line-height: 1.08; letter-spacing: -.047em; text-wrap: pretty; }
.hub pre {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--low);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: auto;
  font: .875rem/1.55 var(--mono);
}
.hub code { font-family: var(--mono); overflow-wrap: anywhere; }
.hub pre code { overflow-wrap: normal; }
.hub .table-scroll:focus-visible, .hub pre:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.hub .banner {
  background:var(--band);
  border-bottom:1px solid var(--soft);
}
.hub .crumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 10px;
  padding-block:24px 0;
  color:var(--muted);
  font-size:13px;
}
.hub .crumb a {
  color:var(--muted);
  text-decoration:none;
}
.hub .crumb a:hover {
  text-decoration:underline;
}
.hub .crumb [aria-current] {
  color:var(--text);
}
.hub .hero {
  display:grid;
  grid-template-columns:minmax(0,1.67fr) minmax(0,1fr);
  align-items:center;
  gap:64px;
  padding:40px 0 52px;
}
.hub .hero--article {
  grid-template-columns: minmax(0, 1fr);
}
.hub .hero--article > div {
  max-width: 760px;
}
.hub .intro {
  margin-top:20px;
  max-width:69ch;
  color:var(--muted);
  font-size:17px;
  line-height:1.62;
}
.hub .intro p+p {
  margin-top:10px;
}
.hub .actions {
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  margin-top:24px;
  font-size:14px;
  font-weight:600;
}
.hub .button {
  background:var(--action);
  color:var(--accent-color);
  text-decoration:none;
  padding:11px 16px;
  border-radius:8px;
}
[data-theme="gruvbox-dark"] .hub .button {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.hub .button:hover {
  background:var(--accent-hover);
  color:var(--on-accent);
}
.hub .button span {
  margin-left:7px;
}
.hub .quick {
  border:1px solid var(--rule);
  border-top:2px solid var(--link);
  border-radius:12px;
  background:var(--low);
  overflow:hidden;
}
.hub .support .quick {
  border-top-color:var(--amber);
}
.hub .quick h2 {
  padding:15px 20px 10px;
  font-size:14px;
  font-weight:650;
}
.hub .support .quick h2 {
  color:var(--amber);
}
.hub .quick a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 20px;
  text-decoration:none;
  border-top:1px solid var(--soft);
  color:var(--text);
}
.hub .quick a:hover, .hub .quick a:focus-visible {
  background:var(--mark);
}
.hub .quick a:focus-visible {
  outline-offset:-3px;
}
.hub .quick strong, .hub .quick small {
  display:block;
}
.hub .quick strong {
  font-size:15px;
  font-weight:600;
  line-height:1.35;
}
.hub .quick small {
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}
.hub .quick i {
  color:var(--link);
  font-size:16px;
  font-style:normal;
}
.hub .reading {
  display:grid;
  grid-template-columns:224px minmax(0,760px);
  gap:64px;
  padding-block:42px 80px;
}
.hub .contents {
  align-self:start;
  position:sticky;
  top:94px;
  max-height:calc(100dvh - 116px);
  overflow:auto;
  padding-right:10px;
}
.hub .contents-title {
  font-size:13px;
  font-weight:700;
  margin-bottom:12px;
}
.hub .contents ol, .hub .contents-mobile ol {
  list-style:none;
  padding:0;
  margin:0;
  border-left:1px solid var(--rule);
}
.hub .contents a, .hub .contents-mobile a {
  display:block;
  border-left:2px solid transparent;
  padding:8px 0 8px 12px;
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  line-height:1.38;
}
.hub .contents a:hover, .hub .contents-mobile a:hover, .hub .contents a[aria-current=location] {
  border-left-color:var(--link);
  color:var(--link);
}
.hub .contents-mobile {
  display:none;
}
.hub article {
  min-width:0;
  overflow-wrap:anywhere;
}
.hub article h2, .hub .notes h2 {
  font-size:clamp(23px,2.4vw,30px);
  line-height:1.22;
  letter-spacing:-.031em;
  font-weight:650;
  margin:42px 0 14px;
}
.hub article h2:first-child {
  margin-top:0;
}
.hub article h3 {
  font-size:19px;
  line-height:1.35;
  margin:25px 0 9px;
}
.hub article h4 {
  margin:20px 0 6px;
}
.hub article :is(h2,h3,h4) {
  scroll-margin-top:94px;
}
.hub article p+p {
  margin-top:12px;
}
.hub article ul, .hub article ol {
  padding-left:24px;
  margin:12px 0 18px;
}
.hub article li+li {
  margin-top:6px;
}
.hub article blockquote {
  margin:18px 0;
  padding:13px 18px;
  background:var(--panel);
  border-left:3px solid var(--amber);
}
.hub article hr {
  border:0;
  border-top:1px solid var(--soft);
  margin:28px 0;
}
.hub .table-scroll {
  overflow:auto;
  border:1px solid var(--rule);
  border-radius:8px;
  margin:17px 0 21px;
  background:var(--panel);
  max-width:100%;
}
.hub table {
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  min-width:470px;
}
.hub th, .hub td {
  text-align:left;
  vertical-align:top;
  padding:12px 15px;
  border-bottom:1px solid var(--soft);
}
.hub th {
  background:var(--low);
  font-weight:650;
}
.hub tbody tr:last-child td {
  border-bottom:0;
}
.hub td:first-child {
  font-weight:600;
}
.hub .faq {
  border-bottom:1px solid var(--soft);
  padding:8px 0 10px;
}
.hub .faq summary {
  font-weight:600;
  padding:4px 0;
  min-height:40px;
}
.hub .faq p {
  color:var(--muted);
  padding:0 18px 6px;
}
.hub .closing-cta, .hub .related {
  background:var(--panel);
  border:1px solid var(--rule);
  border-radius:12px;
  padding:25px;
  margin-top:36px;
}
.hub .closing-cta h2, .hub .related h2 {
  margin-top:0;
}
.hub .related ul {
  margin-bottom:0;
}
.hub .unavailable {
  color:inherit;
}

@media (max-width: 899px) {
  .hub .hero { gap: var(--space-6); }
  .hub .reading { display: block; max-width: 760px; padding-top: var(--space-6); }
  .hub .contents { display: none; }
  .hub .contents-mobile {
    display: block;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-4);
    background: var(--panel);
  }
  .hub .contents-mobile summary { padding-block: var(--space-2); font-weight: 600; cursor: pointer; }
}
@media (max-width: 660px) {
  .hub .wrap { width: calc(100% - var(--space-8)); }
  .hub .hero { display: block; padding-block: var(--space-6) var(--space-8); }
  .hub .quick { margin-top: var(--space-6); }
  .hub .reading { padding-bottom: var(--space-10); }
  .hub article :is(h2,h3,h4) { scroll-margin-top: calc(var(--space-20) + var(--space-8)); }
}


.index-inline-diagram {
  width: min(100%, 760px);
  margin: var(--space-6) auto 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-panel-soft);
}

.index-inline-diagram > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 68px;
  padding: var(--space-4) var(--space-5);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.index-inline-diagram > summary::-webkit-details-marker { display: none; }

.index-inline-diagram > summary:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: -3px;
}

.index-inline-diagram__summary-copy {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.index-inline-diagram__eyebrow {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.35;
}

.index-inline-diagram__title {
  color: var(--text-primary);
  font-size: var(--font-md);
  font-weight: 600;
  line-height: 1.4;
}

.index-inline-diagram__action {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.4;
  white-space: nowrap;
}

.index-inline-diagram__action svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease-out;
}

.index-inline-diagram[open] .index-inline-diagram__action svg { transform: rotate(180deg); }
.index-inline-diagram__close-label { display: none; }
.index-inline-diagram[open] .index-inline-diagram__open-label { display: none; }
.index-inline-diagram[open] .index-inline-diagram__close-label { display: inline; }

.index-svg-flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  list-style: none;
}

.index-svg-flow > li { --flow-step: 0; min-width: 0; }

.index-svg-flow-node {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.index-svg-flow-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: var(--font-sm);
  font-variant-numeric: tabular-nums;
}

.index-svg-flow-copy { display: grid; min-width: 0; gap: 2px; }
.index-svg-flow-copy strong { color: var(--text-primary); font-size: var(--font-sm); line-height: 1.4; }
.index-svg-flow-copy small { color: var(--text-secondary); font-size: var(--font-sm); line-height: 1.5; }

.index-svg-flow-connector {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  height: 34px;
  margin-left: var(--space-4);
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.3;
}

.index-svg-flow-connector svg { width: 24px; height: 34px; overflow: visible; }
.index-svg-flow-line,
.index-svg-flow-arrow { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.index-svg-flow-dot { fill: var(--accent-hover); opacity: 0; transform-box: fill-box; transform-origin: center; }

.index-inline-diagram[open] .index-svg-flow-node {
  animation: index-flow-highlight 360ms ease-out both;
  animation-delay: calc(var(--flow-step) * 240ms);
}

.index-inline-diagram[open] .index-svg-flow-line,
.index-inline-diagram[open] .index-svg-flow-arrow { stroke: var(--accent-secondary); }

.index-inline-diagram[open] .index-svg-flow-dot {
  animation: index-flow-packet 440ms cubic-bezier(.23, 1, .32, 1) both;
  animation-delay: calc(var(--flow-step) * 240ms + 110ms);
}

@keyframes index-flow-highlight {
  from { border-color: var(--border-subtle); background: var(--bg-elevated); }
  to { border-color: var(--accent-secondary); background: var(--accent-soft); }
}

@keyframes index-flow-packet {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(23px); }
}

@media (max-width: 540px) {
  .index-inline-diagram > summary { min-height: 62px; padding: var(--space-3) var(--space-4); }
  .index-inline-diagram__action { gap: var(--space-1); padding-inline: var(--space-2); }
  .index-inline-diagram__eyebrow { font-size: var(--font-sm); }
  .index-svg-flow { padding-inline: var(--space-4); }
  .index-svg-flow-node { padding-inline: var(--space-3); }
}


@media (prefers-reduced-motion: reduce) { .index-inline-diagram *, .index-inline-diagram *::before { animation: none !important; transition: none !important; } }
