.fee-article h2 { font-size: 19px; }
.fee-article .hero { max-width: 740px; padding-top: 52px; padding-bottom: 34px; }
.fee-article .dek { max-width: 56ch; }
.reading-path { display: flex; flex-wrap: wrap; gap: 12px 38px; border-block: 1px solid var(--rule-strong); }
.reading-path a { display: inline-flex; align-items: center; min-height: 58px; color: var(--ink-mid); font-size: 12px; text-decoration: none; }
.reading-path a:hover { color: var(--ink); text-decoration: underline; }
.offer-chapter { padding: 36px 0 44px; scroll-margin-top: 24px; }
.offer-introduction { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 60px; margin-bottom: 24px; }
.offer-introduction p { max-width: 65ch; }
.offer-introduction p:last-child { margin-bottom: 0; }
.job-exhibit { padding: 24px 30px 16px; background: var(--paper-raised); border: 1px solid var(--rule); }
.processing-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: 8px; }
.section-intro { max-width: 68ch; margin-bottom: 30px; }
.section-intro > p:last-child { margin-bottom: 0; }
.cash-rule { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 0 0 28px; }
.cash-rule > div > p { font-size: 13.5px; margin: 4px 0 10px; }
.rule-context { font-size: 12px; }
.rule-context summary { min-height: 40px; cursor: pointer; padding: 6px 0; color: var(--ink-mid); }
.rule-context p { color: var(--ink-muted); max-width: 65ch; }
.chapter { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; border-top: 1px solid var(--rule-strong); padding: 38px 0 42px; }
.chapter-label { font-size: 12px; color: var(--ink-muted); margin-bottom: 12px; }
.chapter-copy p:not(.chapter-label) { font-size: 13.5px; line-height: 1.65; }
.chapter-copy p:last-child { margin-bottom: 0; }
.processing-diagram, .price-comparison { margin: 0; }
.processing-diagram h3, .price-comparison h3 { margin-bottom: 24px; }
.processing-labels { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--ink-muted); }
.processing-art { height: 110px; position: relative; margin: 5px 0 12px; }
.processing-art svg { width: 100%; height: 100%; position: absolute; }
.process-rail, .process-trace { stroke-width: 1; vector-effect: non-scaling-stroke; }
.process-rail { stroke: var(--rule-strong); }
.process-trace { stroke: var(--ink-mid); stroke-dasharray: 1; }
.frame-stack { width: 50px; height: 34px; position: absolute; top: calc(50% - 17px); left: 0; }
.frame-stack i { width: 36px; height: 26px; border: 1px solid var(--rule-strong); background: var(--paper); position: absolute; }
.frame-stack i:nth-child(2) { left: 5px; top: 5px; }
.frame-stack i:nth-child(3) { left: 10px; top: 10px; border-color: var(--ink-mid); }
.finished-frame { width: 47px; height: 32px; position: absolute; right: 0; top: calc(50% - 16px); border: 1px solid var(--ink-mid); background: var(--paper); display: grid; place-items: center; }
.finished-frame span { border-block: 5px solid transparent; border-left: 7px solid var(--ink-mid); }
.processing-diagram figcaption { font-size: 13.5px; }
.diagram-note { font-size: 11px; color: var(--ink-muted); margin: 0; }
.processing-diagram.is-playing .process-trace { animation: draw-line 2200ms cubic-bezier(.3,0,.3,1) both; }
.processing-diagram.is-playing .frame-stack i:nth-child(3) { animation: feed-frame 2200ms cubic-bezier(.4,0,.2,1) both; }
@keyframes feed-frame { 0%, 15% { transform: translateX(0); } 35%, 65% { transform: translateX(25px); } 100% { transform: translateX(0); } }
.price-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-bottom: 1px solid var(--rule-strong); }
.price-terms > div { padding: 26px 30px 10px; }
.price-terms .fixed-price { border-left: 2px solid var(--ink); }
.price-terms dt { font-size: 12px; color: var(--ink-muted); min-height: 28px; }
.price-terms dd { margin: 0; }
.price-terms strong { display: block; font-size: 19px; color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.price-terms p, .price-comparison figcaption { font-size: 13px; }
.price-comparison figcaption { margin-top: 16px; max-width: 80ch; }
.starting-cash { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.starting-cash > div { padding: 10px 18px 14px 0; }
.starting-cash .chosen { border-left: 2px solid var(--ink); padding-left: 24px; }
.starting-cash dt { font-size: 13px; margin-bottom: 14px; }
.starting-cash dd { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
.fee-section { scroll-margin-top: 28px; padding: 36px 0 28px; border-top: 1px solid var(--rule-strong); }
.fee-workbench { display: grid; grid-template-columns: 260px minmax(0,1fr); border: 1px solid var(--rule-strong); background: var(--paper-raised); }
.fee-entry { padding: 24px; border-right: 1px solid var(--rule); }
#fee-form > label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 12px; }
.input-line { display: flex; align-items: center; border: 1px solid var(--rule-strong); background: var(--paper); }
.input-line:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.input-line > span { padding-left: 12px; font-family: 'Geist Mono',monospace; }
.input-line input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 19px/1.3 'Geist Mono',monospace; padding: 12px 10px; border-radius: 0; }
.input-line input:focus-visible { outline: none; }
#fee-help { font-size: 12px; color: var(--ink-muted); margin: 10px 0 20px; }
.solid-button { min-height: 46px; padding: 10px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 13px; width: 100%; }
.solid-button:hover { background: var(--ink-mid); border-color: var(--ink-mid); }
.text-button { min-height: 44px; padding: 10px 0; font-size: 12px; border: 0; background: none; color: var(--ink-mid); text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); }
.text-button:disabled { color: var(--ink-muted); text-decoration: none; cursor: default; }
.input-error { font-size: 12px; margin: 6px 0 0; color: var(--ink); }
.boundary-tests { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 12px; font-size: 12px; }
.boundary-tests summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--ink-mid); }
.boundary-tests p { color: var(--ink-muted); }
.boundary-button { display: block; width: 100%; min-height: 44px; text-align: left; border: 0; border-top: 1px solid var(--rule); background: none; padding: 12px 0; color: var(--ink); font-size: 12px; }
.boundary-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.fee-output { min-width: 0; padding: 24px 30px 28px; }
.scenario-name { color: var(--ink-muted); font-size: 12px; margin-bottom: 20px; }
.equation { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 20px; margin: 0; }
.equation > div { position: relative; min-width: 0; }
.equation dt { color: var(--ink-muted); font-size: 12px; margin-bottom: 10px; }
.equation dd { font-size: clamp(16px,2vw,23px); margin: 0; letter-spacing: -.04em; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.equation .subtract::before, .equation .equals::before { position: absolute; left: -17px; top: 26px; color: var(--ink-muted); }
.equation .subtract::before { content: '−'; }
.equation .equals::before { content: '='; }
.cash-scale { margin: 28px 0 24px; }
.scale-drawing { position: relative; padding-top: 26px; padding-bottom: 69px; }
.scale-track { position: relative; height: 56px; border: 1px solid var(--rule-strong); }
.closed-region { position: absolute; inset: 0 auto 0 0; width: 80.645161%; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: var(--ink-muted); font-size: 12px; z-index: 1; }
.closed-region > span { background: var(--paper-raised); padding: 2px 3px; }
.spent-region { position: absolute; inset: 0 0 0 77.419355%; background: var(--spent); }
.floor-mark { position: absolute; top: 26px; left: 80.645161%; height: 56px; border-left: 2px solid var(--ink); }
.floor-mark > span { position: absolute; top: 65px; left: 0; transform: translateX(-50%); font-size: 11px; white-space: nowrap; color: var(--ink-muted); }
.floor-mark > b { position: absolute; top: 84px; left: 0; transform: translateX(-50%); font-size: 12px; }
.after-mark { position: absolute; top: 15px; height: 11px; left: 77.419355%; border-left: 1px solid var(--ink-mid); }
.after-mark > span { position: absolute; bottom: 16px; transform: translateX(-50%); font-size: 11px; white-space: nowrap; color: var(--ink-mid); }
.after-mark.at-end > span { transform: translateX(-100%); }
.after-mark.at-start > span { transform: none; }
.scale-zero, .scale-end { position: absolute; top: 95px; color: var(--ink-muted); font-size: 10px; }
.scale-zero { left: 0; }
.scale-end { right: 0; }
.cash-scale figcaption { font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.cash-result { border-top: 1px solid var(--rule-strong); padding-top: 20px; }
.cash-result h3 { font-size: 15px; margin-bottom: 8px; }
.cash-result p { font-size: 13.5px; margin: 0; }
.cash-result[data-state='refuse'] { border-top: 2px solid var(--ink); }
.pending-note { min-height: 264px; padding-top: 12px; font-size: 15px; }
.fee-footnote { max-width: 78ch; margin: 16px 0 0; font-size: 12px; color: var(--ink-muted); }
.sequence-section { border-top: 1px solid var(--rule-strong); padding: 32px 0 38px; scroll-margin-top: 24px; }
.sequence-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sequence-heading h2 { margin-bottom: 0; }
.motion-controls { display: flex; gap: 20px; flex-shrink: 0; }
.decision-path { margin: 30px 0 0; }
.path-labels, .path-explanations { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.path-labels { font-size: 13px; color: var(--ink); }
.path-labels > :nth-child(2), .path-explanations > :nth-child(2) { text-align: center; }
.path-labels > :last-child, .path-explanations > :last-child { text-align: right; }
.path-art { height: 128px; position: relative; margin: 0 20px; }
.path-svg { display: block; position: absolute; width: 100%; height: 100%; overflow: visible; }
.path-base { stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.path-ink { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.proposal-paper { position: absolute; top: calc(50% - 22px); left: 0; width: 34px; height: 44px; border: 1px solid var(--ink-mid); background: var(--paper); display: flex; flex-direction: column; gap: 5px; padding: 12px 7px; }
.proposal-paper span { width: 100%; height: 1px; background: var(--rule-strong); }
.proposal-paper span:last-child { width: 65%; }
.cash-gate { position: absolute; left: calc(50% - 22px); top: 12px; bottom: 12px; width: 44px; display: flex; justify-content: space-between; background: var(--paper); }
.cash-gate span { display: block; width: 2px; background: var(--ink); }
.decision-end { position: absolute; right: 0; top: calc(50% - 9px); width: 18px; height: 18px; border: 1px solid var(--ink); background: var(--paper); }
.traveller { position: absolute; top: calc(50% - 3px); left: calc(100% - 12px); width: 6px; height: 6px; background: var(--ink); }
.decision-path[data-result='refuse'] .path-out { visibility: hidden; }
.decision-path[data-result='refuse'] .traveller { left: calc(50% - 34px); }
.decision-path[data-result='pending'] .path-ink, .decision-path[data-result='pending'] .traveller { visibility: hidden; }
.path-explanations { font-size: 12px; color: var(--ink-muted); }
.path-explanations p { margin: 0; }
.path-explanations > :first-child { max-width: 22ch; }
.path-explanations > :last-child { max-width: 27ch; justify-self: end; }
.decision-path figcaption { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink); }
.sequence-note { max-width: 78ch; font-size: 13.5px; margin: 14px 0 0; }
.decision-path.is-playing .path-in { animation: draw-line 850ms cubic-bezier(.4,0,.2,1) both; }
.decision-path.is-playing .path-out { animation: draw-line 850ms 1120ms cubic-bezier(.4,0,.2,1) both; }
.decision-path.is-playing .traveller { animation: pass-through 2100ms cubic-bezier(.4,0,.2,1) both; }
.decision-path.is-playing[data-result='refuse'] .traveller { animation: stop-here 1100ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pass-through { 0% { left: 34px; opacity: 0; } 8% { opacity: 1; } 42%, 54% { left: calc(50% - 34px); } 65% { left: calc(50% + 26px); } 100% { left: calc(100% - 12px); } }
@keyframes stop-here { 0% { left: 34px; opacity: 0; } 8% { opacity: 1; } 100% { left: calc(50% - 34px); } }
.closing-copy p { max-width: 68ch; }
.closing-copy > a { display: inline-block; min-height: 44px; padding: 8px 0; font-size: 13.5px; }
.development-note { color: var(--ink-muted); font-size: 12px; margin-top: 22px; }
.article-continuation { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0 42px; border-top: 1px solid var(--rule); }
.article-continuation a { font-size: 13.5px; }
.article-continuation a:last-child { text-align: right; }
.article-continuation span { display: block; color: var(--ink-muted); margin-bottom: 7px; font-size: 12px; }
.fee-article .source-notes { margin-top: 0; }
.fee-article .source-content .money { white-space: normal; }
@media (max-width: 850px) {
  .chapter, .offer-introduction { grid-template-columns: 220px minmax(0,1fr); gap: 30px; }
  .cash-rule { gap: 28px; }
  .fee-workbench { grid-template-columns: 220px minmax(0,1fr); }
  .fee-entry { padding: 20px; }
  .fee-output { padding: 22px; }
  .equation { gap: 18px; }
  .sequence-heading { align-items: flex-start; }
  .motion-controls { gap: 14px; }
}
@media (max-width: 680px) {
  .fee-article .hero { padding-top: 30px; padding-bottom: 34px; }
  .desktop-break { display: none; }
  .chapter, .offer-introduction { grid-template-columns: 1fr; gap: 16px; }
  .offer-introduction h2 br { display: none; }
  .reading-path { gap: 0 20px; padding-block: 7px; }
  .reading-path a { min-height: 38px; }
  .offer-chapter { padding: 28px 0 32px; }
  .job-exhibit { padding: 20px 16px 14px; }
  .processing-footer { flex-direction: column; gap: 0; }
  .price-terms > div { padding: 22px 16px 8px; }
  .cash-rule { grid-template-columns: 1fr; gap: 18px; }
  .cash-rule .starting-cash { max-width: 420px; }
  .chapter { padding: 28px 0 32px; }
  .chapter-copy { max-width: 60ch; }
  .chapter-copy h2 br { display: none; }
  .chapter-copy p:not(.chapter-label) { font-size: 14px; }
  .starting-cash dd { font-size: 25px; }
  .starting-cash dt { min-height: 3.2em; }
  .starting-cash .chosen { padding-left: 18px; }
  .fee-workbench { grid-template-columns: 1fr; }
  .fee-entry { border-right: 0; border-bottom: 1px solid var(--rule); }
  #fee-form { display: grid; grid-template-columns: 1fr auto; gap: 0 14px; }
  #fee-form label, #fee-help, #fee-error { grid-column: 1/-1; }
  #fee-form label { grid-row: 1; }
  .input-line { grid-row: 2; }
  #fee-form .solid-button { grid-row: 2; grid-column: 2; width: auto; padding-inline: 16px; }
  #fee-help { margin: 9px 0 0; }
  #reset-fee { text-align: left; justify-self: start; grid-column: 1/-1; }
  .fee-output { padding: 22px 20px; }
  .equation { grid-template-columns: 1fr 1fr 1.3fr; gap: 18px; }
  .equation dt { min-height: 36px; }
  .equation .subtract::before, .equation .equals::before { top: 44px; }
  .equation dd { font-size: 19px; }
  .fee-section { padding-top: 28px; }
  .sequence-heading { flex-direction: column; gap: 7px; }
  .decision-path { margin-top: 20px; }
  .path-labels, .path-explanations { gap: 16px; }
  .path-labels { font-size: 12px; }
  .path-explanations { font-size: 11px; line-height: 1.5; }
  .path-art { margin-inline: 8px; height: 110px; }
  .cash-gate { top: 18px; bottom: 18px; width: 30px; left: calc(50% - 15px); }
  .article-continuation { flex-direction: column; gap: 22px; }
  .article-continuation a:last-child { text-align: left; }
}
@media (max-width: 390px) {
  .processing-labels { font-size: 11px; gap: 8px; }
  .price-terms > div { padding-inline: 12px; }
  .price-terms p { font-size: 12px; }
  .price-terms dt { min-height: 48px; }
  .price-terms strong { font-size: 17px; }
  .fee-output { padding: 20px 14px; }
  .fee-entry { padding: 18px 14px; }
  .equation { gap: 15px; }
  .equation dt { font-size: 11px; }
  .equation dd { font-size: 16px; }
  .equation .subtract::before, .equation .equals::before { left: -12px; }
  .scale-zero, .scale-end { font-size: 9px; }
  .starting-cash dt { font-size: 12px; }
  .closed-region { padding-right: 6px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .fee-article .decision-path *, .fee-article .processing-diagram * { animation: none !important; } }
:root[data-motion='off'] .decision-path *, :root[data-motion='off'] .processing-diagram * { animation: none !important; }
@media print {
  .fee-article .hero { padding: 20px 0; }
  .reading-path, .motion-controls, .processing-control, .fee-entry, .article-continuation { display: none !important; }
  .fee-workbench { grid-template-columns: 1fr; }
  .chapter, .fee-section, .sequence-section { break-inside: avoid; }
  .fee-article .decision-path *, .fee-article .processing-diagram * { animation: none !important; }
  .path-art { height: 80px; }
}
