:root {
  --paper: #fafafa; --card: #ffffff; --brand: #234c3c; --ink: #111111; --text: #1a1a1a; --muted: #666666; --line: #e2e2e2;
  --orange: #bc633c; --ok-tint: #eef6f0; --warn-tint: #fbf1eb; --fail-tint: #fbefee; --brand-tint: #eef3f0; --accent: #1d3f7a; --accent-tint: #f3f6fa; --tint: #f0f0f0; --ok: #2f6b45; --fail: #a23b2a;
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  color: var(--text); background: var(--paper); font-family: var(--sans); font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; font-size: 16px; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--orange); }
code, pre { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--tint); padding: .08em .3em; border-radius: 3px; }
pre { overflow-x: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 6px 10px; z-index: 10; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.shell { max-width: 1160px; margin: 0 auto; padding: 0 28px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 56px; }

/* Header */
.header { height: 66px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 36px; }
.wordmark { display: flex; align-items: center; gap: 7px; font-size: 32px; letter-spacing: -1.5px; font-weight: 600; text-decoration: none; color: var(--brand); }
.wordmark img { width: 30px; height: 35px; }
.wordmark-period { color: var(--orange); }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.corner-link { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; }
.corner-link:hover { color: var(--ink); }

.demo-banner { margin: 0; padding: 10px 0; font-size: 13px; color: var(--muted); }

/* Type */
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; letter-spacing: -.5px; margin: 0 0 14px; text-wrap: balance; }
h2 { font-size: 21px; margin: 34px 0 10px; }
h3 { font-size: 16px; margin: 22px 0 8px; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 28px 0 24px; }
.connect-card, .use-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.card-title { margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab-list button { font: inherit; font-size: 14px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 10px; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tab-list button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.copy-block { position: relative; }
.copy-block pre { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 11px 70px 11px 12px; white-space: pre-wrap; word-break: break-word; }
.copy-button { position: absolute; top: 7px; right: 7px; font: inherit; font-size: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); cursor: pointer; }
.copy-button:hover { border-color: var(--ink); }

.category { margin-top: 18px; }
.category-blurb { color: var(--muted); margin: 0 0 12px; }
.not-covered { margin-top: 10px; font-size: 14px; color: var(--muted); }
.not-covered summary { cursor: pointer; }
.not-covered ul { margin: 6px 0 0; padding-left: 20px; }
.not-covered li { margin-bottom: 4px; }
.not-covered .instead { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.methods-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.methods-table th, .methods-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.methods-table tbody tr:last-child > * { border-bottom: 0; }
.methods-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--tint); white-space: nowrap; }
.methods-table tbody th { font-weight: 400; min-width: 290px; }
.methods-table td { white-space: nowrap; color: var(--text); }
.method-link { text-decoration: none; display: block; }
.method-title { display: block; color: var(--ink); font-weight: 600; }
.method-link:hover .method-title { text-decoration: underline; }
.method-name { display: block; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); margin-right: 6px; white-space: nowrap; }
.badge-full { border-color: var(--ink); color: var(--ink); }
.badge-demo { border-color: var(--orange); color: var(--orange); }

.fhat-note { margin-top: 36px; color: var(--muted); font-size: 14px; }
.fhat-symbol { position: relative; display: inline-block; font-family: var(--serif); font-style: italic; color: var(--brand); padding: 0 .06em; }
/* The hat is drawn, not a combining accent: fonts place U+0302 badly over an italic f. */
.fhat-symbol::after { content: ""; position: absolute; left: .36em; top: .02em; width: .22em; height: .22em; border-left: .075em solid currentColor; border-top: .075em solid currentColor; transform: rotate(45deg); }

/* Method page */
.breadcrumb { margin-top: 26px; font-size: 13px; color: var(--muted); }
.method-header { padding: 10px 0 8px; }
.method-header h1 { font-size: 38px; }
.method-subtitle { margin: -6px 0 10px; font-size: 17px; color: var(--ink); }
.aliases { color: var(--muted); font-size: 14px; }
.badges { margin: 0 0 12px; }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 44px; margin-top: 18px; }
.use-card h2 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.links { margin: 10px 0 0; font-size: 14px; }
.skill { margin-top: 8px; }
.skill h2 { border-top: 1px solid var(--line); padding-top: 22px; }
.skill table, .prose table { border-collapse: collapse; font-size: 14px; margin: 10px 0; width: 100%; }
.skill th, .skill td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.skill th { background: var(--tint); }
.skill pre { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; }
.skill blockquote { margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--orange); background: var(--tint); color: var(--muted); }
.skill blockquote p { margin: 0; }
.math-block { overflow-x: auto; margin: 12px 0; }
math { font-size: 1.08em; }
.evidence { border: 1px solid var(--line); border-radius: 6px; background: var(--card); margin: 8px 0; }
.evidence summary { padding: 9px 12px; cursor: pointer; font-size: 14px; }
.evidence pre { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; font-size: 12px; }
.ok { color: var(--ok); font-weight: 600; }
.fail { color: var(--fail); font-weight: 600; }
.method-aside section { border-top: 1px solid var(--line); padding: 4px 0 12px; }
.method-aside section:first-child { border-top: 0; }
.method-aside h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; }
.props { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.props div { display: contents; }
.props dt { color: var(--muted); }
.props dd { margin: 0; text-align: right; color: var(--ink); }
.sources, .files, .related { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.sources li { margin-bottom: 10px; }
.files li, .related li { margin-bottom: 3px; word-break: break-all; }

/* Connect, About */
.page-header { padding: 24px 0 6px; }
.prose { max-width: 760px; }
.prose .copy-block { margin: 8px 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 12px; color: var(--muted); }
.footer-brand { font-size: 18px; font-weight: 600; letter-spacing: -.8px; text-decoration: none; color: var(--brand); }
.footer a:not(.footer-brand) { color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  h1 { font-size: 34px; }
  .method-header h1 { font-size: 30px; }
  .method-grid { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .header { gap: 16px; height: auto; padding: 10px 0; flex-wrap: wrap; }
  .nav { gap: 16px; order: 3; width: 100%; }
  .corner-link { margin-left: auto; }
  .wordmark { font-size: 27px; }
  .methods-table thead { display: none; }
  .methods-table, .methods-table tbody, .methods-table tr, .methods-table th, .methods-table td { display: block; width: 100%; }
  .methods-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .methods-table tbody tr:last-child { border-bottom: 0; }
  .methods-table th, .methods-table td { border: 0; padding: 3px 12px; }
  .methods-table tbody th { min-width: 0; }
  .methods-table td[data-label] { display: inline-block; width: auto; font-size: 13px; color: var(--muted); }
  .methods-table td[data-label]::before { content: attr(data-label) ": "; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* Overview */
.hero-links { margin: 22px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-block; padding: 9px 16px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; }
.button:hover { background: var(--accent); color: #fff; }
.button-quiet { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.button-quiet:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.featured { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; }
.section-blurb { color: var(--muted); margin: 6px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--ink); color: var(--text); }
.card-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.card-desc { color: var(--text); }
.card .facts { margin: 4px 0 0; }

/* Key facts line */
.facts { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* Methods index */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 4px; flex-wrap: wrap; }
.filter { flex: 1; min-width: 240px; max-width: 420px; font: inherit; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text); }
.filter:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.no-match { color: var(--muted); }
.count { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.method-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.method-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.method-row:last-child { border-bottom: 0; }
.row-name { font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.row-name:hover { text-decoration: underline; color: var(--ink); }
.row-aliases { margin-left: 8px; font-size: 13px; color: var(--muted); }
.row-desc { margin: 2px 0 0; color: var(--text); }

/* Method page header */
.method-header h1 { margin-bottom: 6px; }
.method-desc { font-size: 19px; color: var(--text); margin: 0; }
.method-header .facts { font-size: 14px; margin-top: 8px; }
.method-header .aliases { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.method-header .badges { margin-top: 12px; }

@media (max-width: 640px) {
  .method-row { flex-direction: column; gap: 6px; }
  .row-aliases { display: block; margin: 2px 0 0; }
}

/* How it works: four illustrated steps */
.flow { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.flow-step { position: relative; display: flex; flex-direction: column; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -27px; top: 78px; font-size: 20px; color: var(--muted); }
.flow-card { height: 200px; flex: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; display: flex; flex-direction: column; justify-content: center; }
.flow-step h3 { margin: 14px 0 2px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.flow-step > p { margin: 0; color: var(--muted); font-size: 14.5px; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.flow-ask { margin: 0; padding: 10px 12px; background: var(--tint); border-radius: 10px 10px 10px 2px; font-size: 14px; line-height: 1.45; }
.form-cat { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.form-rows { margin: 0; display: grid; gap: 3px; }
.form-rows div { display: flex; justify-content: space-between; gap: 8px; }
.form-rows dt { color: var(--text); }
.form-rows dd { margin: 0; }
.form-rows .known { color: var(--ok); }
.form-rows .asked { color: var(--orange); font-weight: 600; }
.form-question { margin: 8px 0 0; padding: 6px 9px; background: var(--tint); border-radius: 8px; font-size: 12.5px; line-height: 1.4; }
.form-question b { color: var(--ok); }
.flow-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flow-pick li { display: flex; flex-direction: column; }
.pick-yes { color: var(--ok); font-weight: 600; }
.pick-no { color: var(--muted); }
.pick-head { display: flex; gap: 6px; }
.pick-why { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 18px; }
.flow-port { gap: 10px; justify-content: flex-start; }
.port-code { display: block; font-family: var(--mono); font-size: 12px; line-height: 1.65; background: #1f2421; color: #e8ebe6; border-radius: 6px; padding: 8px 10px; }
.c-k { color: #f0a77f; }
.port-checks { display: grid; gap: 3px; font-family: var(--mono); font-size: 12px; }
.chk { color: var(--ok); }
.chk b { color: var(--text); font-weight: 600; }

@media (max-width: 1100px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 44px; }
  .flow-step:nth-child(2)::after { content: none; }
}
@media (max-width: 640px) {
  .flow-steps { grid-template-columns: 1fr; gap: 40px; }
  .flow-card { height: auto; min-height: 150px; }
  .flow-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -34px; }
  .flow-step:nth-child(2)::after { content: "↓"; }
}

/* Category pages */
.cat-link { color: inherit; text-decoration: none; }
.cat-link:hover { text-decoration: underline; color: inherit; }
.questions { margin: 0; padding-left: 18px; font-size: 14px; }
.questions li { margin-bottom: 10px; }
.questions .answers { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* More coming, upcoming categories */
.more-coming { margin: 10px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }
.upcoming-box { margin: 36px 0 0; padding: 22px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; color: var(--muted); }


/* Layout B: error, cost and properties; one cool accent (the brand green stays in the logo) */
.spec { margin: 7px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.spec-field { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); }
.spec-field i { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #8a8a8a; }
.spec .math { font: italic 15px Georgia, 'Times New Roman', serif; color: var(--ink); }
.spec .math sup { font-size: .7em; }
.row-name { color: var(--accent); }
.row-name:hover { color: var(--accent); }
.method-row:hover { background: #fcfcfc; }
.badge-full { background: var(--accent); border-color: var(--accent); color: #fff; }
.card-name { color: var(--accent); }
.card .spec { margin-top: 6px; }

/* Method pages */
.method-header .spec { margin-top: 10px; font-size: 14px; }
.method-header .spec .math { font-size: 17px; }
.skill a, .method-aside a { color: var(--accent); }
.skill a:hover, .method-aside a:hover { color: var(--orange); }
.skill-sec { margin-top: 8px; }
.skill-sec > h2 { border-top: 1px solid var(--line); padding-top: 22px; }
.sec-when-to-use, .sec-when-not-to-use-and-what-to-use-instead, .sec-failure-signatures {
  margin: 22px 0; padding: 4px 18px 10px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--accent-tint);
}
.sec-when-to-use > h2, .sec-when-not-to-use-and-what-to-use-instead > h2, .sec-failure-signatures > h2 { border-top: 0; padding-top: 12px; margin-top: 4px; }
.sec-when-not-to-use-and-what-to-use-instead { border-left-color: #c58a5f; background: #fbf7f3; }
.sec-failure-signatures { border-left-color: #b86a5c; background: #fbf5f4; }
.skill-sec table { background: var(--card); }
.skill tbody tr:nth-child(even) td { background: #fafafa; }
.method-aside { align-self: start; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 18px 10px; }
.props dd { font-weight: 600; }

/* Methods page: category navigation and collapsible categories */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.cat-nav a { font-size: 14px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); text-decoration: none; }
.cat-nav a:hover { border-color: var(--accent); color: var(--accent); }
.cat-nav a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-off { display: none; }
details.category { margin-top: 26px; scroll-margin-top: 16px; }
details.category > summary { list-style: none; display: flex; align-items: baseline; gap: 14px; cursor: pointer; }
details.category > summary::-webkit-details-marker { display: none; }
details.category > summary h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; }
details.category > summary h2::before { content: "▾"; font-size: 18px; width: 16px; color: var(--muted); display: inline-block; }
details.category:not([open]) > summary h2::before { transform: rotate(-90deg); }
.cat-guide { font-size: 13px; color: var(--accent); text-decoration: none; }
.cat-guide:hover { text-decoration: underline; color: var(--accent); }
details.category > .category-blurb { margin-top: 8px; }

/* Overview step 4: a change in the user's own project */
.flow-port { gap: 8px; justify-content: flex-start; padding: 10px 12px; }
.diff { border: 1px solid #d8dde3; border-radius: 6px; overflow: hidden; background: #fff; }
.diff-file { font: 11px ui-monospace, Menlo, monospace; color: #555; background: #f3f4f6; border-bottom: 1px solid #d8dde3; padding: 4px 8px; }
.diff-body { display: block; font: 11.5px/1.55 ui-monospace, Menlo, monospace; padding: 3px 0; background: none; }
.diff-body > span { display: block; padding: 0 8px; white-space: pre; }
.diff-body .del { background: #fdecea; color: #8a2f25; }
.diff-body .add { background: #e8f3ec; color: #1f5133; }
.diff-body .c-c { color: #5b6b8a; }
.port-result { margin: 0; font: 11.5px ui-monospace, Menlo, monospace; color: var(--ok); }

/* Connect page */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 8px; }
.way { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.way:hover { border-color: var(--accent); color: var(--text); }
.way .way-num { grid-row: span 2; }
.way-title { font-weight: 600; color: var(--ink); }
.way-title em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: var(--accent-tint); border-radius: 10px; padding: 1px 7px; margin-left: 6px; }
.way-text { font-size: 14px; color: var(--muted); }
.way-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.connect-block { margin-top: 22px; padding: 6px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 16px; }
.connect-block h2 { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.connect-block h3 { margin-top: 24px; }
.connect-block .copy-block pre { background: #1f2430; color: #e8eaf0; border-color: #1f2430; }
.connect-block .copy-button { background: #2c3240; color: #e8eaf0; border-color: #3a4152; }
.connect-block .copy-button:hover { border-color: #8fa3c7; }
.connect-block .copy-block + .copy-block, .connect-block .hint + .copy-block { margin-top: 8px; }
.endpoint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 4px 0 14px; }
.endpoint code { font-size: 14px; background: var(--accent-tint) !important; color: var(--accent); padding: 3px 8px !important; }
.endpoint span { font-size: 13px; color: var(--muted); }
.tool-flow { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: tool; }
.tool-flow li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfbfc; }
.tool-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 12px; color: var(--muted); }
.tool-flow code, .tool-inline code { background: none !important; padding: 0 !important; color: var(--accent); font-weight: 600; }
.tool-flow span { font-size: 13px; color: var(--muted); }
.tool-aside { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.tool-inline { display: inline-flex; gap: 8px; align-items: baseline; }
.folders { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0; }
.folders div { display: contents; }
.folders dt { color: var(--muted); }
.folders dd { margin: 0; }
@media (max-width: 900px) {
  .ways, .tool-flow { grid-template-columns: 1fr; }
  .tool-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 16px; top: auto; bottom: -22px; }
}

/* Overview: the four steps play as a loop (site.js adds .anim; static without it or with reduced motion) */
.typing { display: none; }
.flow.anim .flow-describe { position: relative; }
.flow.anim .typing { display: inline-flex; gap: 4px; position: absolute; left: 14px; top: 50%; margin: -14px 0 0; padding: 10px 12px; background: var(--tint); border-radius: 10px 10px 10px 2px; }
.flow.anim .flow-describe:has(.flow-ask.on) .typing { opacity: 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing-dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.flow.anim [data-t] { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.flow.anim [data-t].on { opacity: 1; transform: none; }
.flow.anim .form-question b[data-t] { display: inline-block; }

.flow-card, .flow-num, .flow-step::after { transition: border-color .45s, box-shadow .45s, transform .45s, background-color .45s, color .45s; }
.flow.anim .flow-step.active .flow-card { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 63, 122, .12), 0 12px 28px -14px rgba(29, 63, 122, .45); transform: translateY(-3px); }
.flow.anim .flow-step.active .flow-num { background: var(--accent); }
.flow.anim .flow-step.sent::after { color: var(--accent); animation: flow-hand .7s ease; }
@keyframes flow-hand { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.flow.anim .form-rows > div.on .known span { display: inline-block; animation: flow-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.flow.anim .form-rows > div.on .asked { border-radius: 4px; animation: flow-ask-pulse 1.1s ease-out 2; }
@keyframes flow-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes flow-ask-pulse { 0% { box-shadow: 0 0 0 0 rgba(188, 99, 60, .45); } 100% { box-shadow: 0 0 0 7px rgba(188, 99, 60, 0); } }

.flow.anim .pick-yes { border-radius: 6px; padding: 3px 6px; margin: -3px -6px; transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1), background-color .6s ease .35s; }
.flow.anim .pick-yes.on { background-color: color-mix(in srgb, var(--ok) 11%, transparent); }
.flow.anim .pick-no .pick-head { position: relative; align-self: flex-start; }
.flow.anim .pick-no .pick-head::after { content: ""; position: absolute; left: 18px; right: 0; top: 52%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s ease .45s; }
.flow.anim .pick-no.on .pick-head::after { transform: scaleX(1); }

.flow.anim .diff-body .add.on { animation: flow-flash 1.1s ease; }
@keyframes flow-flash { 0% { background: #bfe3cb; } 100% { background: #e8f3ec; } }
.flow.anim .port-result.on span { display: inline-block; animation: flow-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.flow-replay { display: flex; align-items: center; gap: 6px; margin: 22px 0 0 auto; padding: 5px 12px; font: 13px var(--sans); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; animation: flow-in .4s ease; }
.flow-replay:hover { color: var(--accent); border-color: var(--accent); }
.flow-replay:hover span { transform: rotate(-90deg); }
.flow-replay span { display: inline-block; transition: transform .3s ease; }
@keyframes flow-in { from { opacity: 0; transform: translateY(4px); } }
