/* The two most used faces are preloaded. Each swaps in when ready; the fallback faces below are
   resized to match DM Sans and Instrument Serif, so text barely moves when the real font arrives. */
@font-face{font-family:'Instrument Serif';src:url('/fonts/instrument-serif.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-500.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-600.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'DM Sans Fallback';src:local('Arial'),local('ArialMT'),local('Liberation Sans'),local('Helvetica'),local('Roboto');font-weight:400 500;size-adjust:104%;ascent-override:95.38%;descent-override:29.81%;line-gap-override:0%}
@font-face{font-family:'DM Sans Fallback';src:local('Arial Bold'),local('Arial-BoldMT'),local('Liberation Sans Bold'),local('Helvetica Bold'),local('Roboto Bold');font-weight:600 700;size-adjust:104%;ascent-override:95.38%;descent-override:29.81%;line-gap-override:0%}
@font-face{font-family:'Instrument Serif Fallback';src:local('Times New Roman'),local('TimesNewRomanPSMT'),local('Liberation Serif'),local('Times'),local('Noto Serif');size-adjust:83%;ascent-override:119.28%;descent-override:37.35%;line-gap-override:0%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
:root{--paper:#f5f2e9;--ink:#153f35;--muted:#566159;--line:#c7cbbd;--sage:#dce7c8;--soft:#e9eddf;--rust:#923f26;--white:#fffdf7;--radius:12px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scrollbar-color:#778676 var(--paper);scroll-padding-top:22px;background:var(--paper);color:var(--ink);font-family:'DM Sans','DM Sans Fallback',sans-serif;font-size:93.75%;line-height:1.55}body{margin:0}::selection{background:var(--sage);color:var(--ink)}[hidden]{display:none!important}button,input,select{font:inherit;color:inherit}button,a,summary,select,input{touch-action:manipulation}button,select,summary{cursor:pointer}button{border:1px solid var(--ink);border-radius:5px;background:var(--ink);color:var(--paper);padding:11px 16px;font-size:0.8667rem;font-weight:600}button:hover{background:#235b49}button:disabled{cursor:not-allowed;background:#e0e3d7;border-color:#bdc5b8;color:#626d5c}a{color:inherit;text-underline-offset:4px}a:hover{color:var(--rust)}:focus-visible{outline:3px solid var(--rust);outline-offset:4px}input{accent-color:var(--ink);caret-color:var(--ink)}.wrap{max-width:1280px;margin:0 auto;padding:0 28px}.skip{position:absolute;left:20px;top:-80px;z-index:10;background:var(--paper);padding:12px}.skip:focus{top:12px}.preview-note{text-align:center;font-size:0.8rem;background:#e9e5d9;color:#4c594e;padding:7px 15px}.site-header{height:88px;display:flex;align-items:center;justify-content:space-between;position:relative;gap:25px}.site-header:after{content:'';position:absolute;bottom:0;left:28px;right:28px;border-bottom:1px solid var(--line)}.brand{font-size:1.6rem;font-weight:700;letter-spacing:-.7px;text-decoration:none;white-space:nowrap}.brand span{font-weight:400}nav{display:flex;gap:35px;height:100%;align-items:center}nav a{font-size:0.9334rem;text-decoration:none;height:100%;display:flex;align-items:center;gap:5px}nav a[aria-current]{border-bottom:3px solid var(--ink);font-weight:700}.nav-note{font-size:0.8rem;color:var(--muted)}h1,h2,h3,p{margin:0}h1,h2,.broker-name{font-family:'Instrument Serif','Instrument Serif Fallback',Georgia,serif;font-weight:400}h1{font-size:4rem;line-height:1;letter-spacing:-1.2px;text-wrap:balance}h2{font-size:2.2rem;line-height:1.15}h3{font-size:1.0667rem}.intro{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;padding:34px 0}.intro>div>p{max-width:450px;color:var(--muted);font-size:0.9334rem;line-height:1.65;margin-top:16px}.guided{background:var(--sage);padding:24px 28px}.guided h2{font:600 1.1334rem/1.4 'DM Sans','DM Sans Fallback',sans-serif}.guided p{font-size:0.8667rem;line-height:1.6;color:#40543b;margin-top:7px}.choices{display:flex;gap:10px;margin:17px 0 11px}.secondary{background:transparent;color:var(--ink);border-color:#738468}.secondary:hover{background:#cbdcb4}.guided>a{font-size:0.8rem}.finder-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:17px}#results-status{color:var(--muted);font-size:0.8rem;margin-top:5px}.research-date{font-size:0.8rem;color:var(--muted);text-align:right}.filters{display:grid;grid-template-columns:1.1fr 1fr 1.1fr 1.1fr auto;align-items:end;gap:14px;padding:17px 0;border-block:1px solid var(--line)}.filters label{display:flex;flex-direction:column;gap:6px;font-size:0.8rem;font-weight:600;min-width:0}select,input[type=search]{width:100%;height:41px;padding:8px 10px;background:transparent;border:1px solid #738468;border-radius:4px;font-size:0.8rem}input::placeholder{color:#637064}.text-button{background:transparent;color:var(--ink);border:0;text-decoration:underline;text-underline-offset:4px;padding:10px 2px;font-weight:500;font-size:0.8rem}.text-button:hover{color:var(--rust);background:transparent}.scope-note{font-size:0.8rem;color:var(--muted);padding:11px 0 16px}.result-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:26px}.result-layout.has-detail{grid-template-columns:minmax(0,1fr) 360px}.list-head,.offering{display:grid;grid-template-columns:1.6fr .8fr 1.25fr 1fr;gap:24px}.list-head{font-size:0.8rem;color:var(--muted);padding:4px 0 10px}.offering{padding:22px 0;border-bottom:1px solid var(--line);align-items:start}.broker-name{font-size:1.9334rem;line-height:1.08;text-align:left;padding:0;background:none;border:0;color:var(--ink)}.broker-name:hover{color:var(--rust);background:none}.platform{font-size:0.8667rem;margin-top:4px}.entity{font-size:0.8rem;color:var(--muted);margin-top:7px}.value{font-size:1.2rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.annotation{font-size:0.8rem;color:var(--muted);margin-top:4px;line-height:1.5}.expiry{font-size:0.9334rem}.attention{color:var(--rust)}.row-actions{display:flex;flex-direction:column;gap:7px;align-items:flex-start}.row-actions>button{padding:0;min-height:27px;text-align:left}.evidence-label{font-size:0.8rem;color:var(--muted)}.compare-check{display:flex;align-items:center;gap:7px;font-size:0.8rem;cursor:pointer;min-height:32px}.compare-check input{width:17px;height:17px;margin:0}.mobile-label{display:none}.has-detail .offering,.has-detail .list-head{grid-template-columns:1.3fr .8fr 1.1fr;gap:15px}.has-detail .list-head span:last-child{display:none}.has-detail .row-actions{grid-column:1/-1;flex-direction:row;align-items:center;gap:20px}.offering.is-selected{background:var(--soft);padding-inline:12px}.details-pane{background:var(--soft);padding:24px;border-radius:var(--radius);position:sticky;top:20px}.detail-head{display:flex;justify-content:space-between;gap:16px;align-items:start}.detail-head h3{font:400 2.1334rem/1.05 'Instrument Serif','Instrument Serif Fallback',Georgia,serif}.close-detail{font-size:0.8rem;padding:6px 9px;min-height:32px;background:transparent;color:var(--ink);border-color:#738468}.close-detail:hover{background:var(--sage)}.detail-platform{font-size:0.8667rem;margin-top:8px}.detail-region{font-size:0.8rem;color:var(--muted);margin:5px 0 18px}.details-pane dl{margin:0}.details-pane dl>div{padding:12px 0;border-top:1px solid #bec9b7}.details-pane dt{font-size:0.8rem;color:var(--muted);margin-bottom:3px}.details-pane dd{margin:0;font-size:0.8667rem}.details-pane h4{font-size:0.8667rem;margin:19px 0 6px}.details-pane>p{font-size:0.8rem;line-height:1.65}.details-pane ul{padding-left:17px;margin:8px 0 16px;font-size:0.8rem}.details-pane li+li{margin-top:8px}.broker-link{display:block;text-align:center;background:var(--ink);color:var(--paper);text-decoration:none;border-radius:5px;padding:11px 12px;font-size:0.8rem}.broker-link:hover{background:#235b49;color:white}.empty{padding:36px 25px;background:var(--soft);border-radius:var(--radius)}.empty h3{font:400 2rem 'Instrument Serif','Instrument Serif Fallback',serif}.empty p{margin:8px 0 12px;max-width:60ch;font-size:0.8667rem;color:var(--muted)}.action-status{font-size:0.8rem;color:var(--rust);margin-top:8px;min-height:20px}.compare-tray{display:flex;gap:20px;align-items:center;justify-content:space-between;position:sticky;bottom:12px;background:var(--ink);color:var(--paper);padding:16px 20px;border-radius:var(--radius);z-index:3}.tray-copy{font-size:0.8667rem;font-weight:600}.tray-copy small{display:block;color:#d5e2d0;font-size:0.8rem;font-weight:400;margin-top:3px}.compare-tray button{background:var(--sage);color:var(--ink);border:0;white-space:nowrap}.compare-tray button:disabled{background:#a3b39d;color:#203c2d}.section{padding:35px 0;border-top:1px solid var(--line);margin-top:35px;scroll-margin-top:24px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.muted{color:var(--muted);font-size:0.8667rem}.compare-scroll{overflow-x:auto;overscroll-behavior-x:contain}.comparison table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:680px}.comparison th,.comparison td{text-align:left;vertical-align:top;padding:16px;border-bottom:1px solid var(--line);font-size:0.8667rem;overflow-wrap:anywhere}.comparison th:first-child{width:150px;font-weight:500;font-size:0.8rem}.comparison thead{background:var(--soft)}.comparison thead th{font-weight:500}.comparison .compare-name{font:400 1.7334rem 'Instrument Serif','Instrument Serif Fallback',serif;display:block}.comparison .compare-platform{font-size:0.8rem;display:block;margin-top:3px}.comparison td small{display:block;font-size:0.8rem;color:var(--muted);margin-top:6px}.comparison .source-list{padding:0;margin:0;list-style:none}.comparison .source-list li+li{margin-top:8px}.comparison .comparison-note{font-size:0.8rem;margin-top:14px;color:var(--muted)}.learn{display:grid;grid-template-columns:.9fr 1.3fr;gap:80px}.learn>div>p{font-size:0.8667rem;color:var(--muted);margin-top:12px;max-width:35ch}.questions details{border-bottom:1px solid var(--line);padding:0 0 14px;margin-bottom:14px}.questions summary{font-size:0.9334rem;font-weight:600;padding:3px 0}.questions details p{font-size:0.8667rem;color:var(--muted);margin-top:12px;max-width:65ch}.method{display:grid;grid-template-columns:.9fr 1.3fr;gap:80px}.method p{font-size:0.8rem;color:var(--muted);max-width:70ch}.method p+p{margin-top:12px}footer.wrap{display:flex;justify-content:space-between;gap:20px;font-size:0.8rem;color:var(--muted);padding-top:20px;padding-bottom:28px;border-top:1px solid var(--line)}
@media(min-width:901px){.details-pane{animation:reveal .2s ease-out}@keyframes reveal{from{clip-path:inset(0 0 12% 0)}to{clip-path:inset(0)}}}
@media(max-width:1100px){.intro{gap:35px}.nav-note{display:none}.filters{grid-template-columns:1fr 1fr 1fr}.search-label{grid-column:1/3}.filters .text-button{justify-self:end}.result-layout.has-detail{grid-template-columns:minmax(0,1fr) 320px}.has-detail .offering,.has-detail .list-head{grid-template-columns:1.2fr 1fr}.has-detail .list-head{display:none}.has-detail .row-actions{grid-column:auto;flex-direction:column;gap:5px}.learn,.method{gap:40px}}
@media(max-width:900px){.result-layout.has-detail{display:block}.details-pane{position:static;margin:12px 0 20px}.has-detail .offering{grid-template-columns:1.6fr .8fr 1.25fr 1fr;gap:18px}.has-detail .row-actions{grid-column:auto;flex-direction:column}.intro{gap:25px}.list-head,.offering{gap:18px}h1{font-size:3.4667rem}}
@media(max-width:600px){.wrap{padding-inline:20px}.site-header{height:auto;min-height:104px;flex-direction:column;align-items:flex-start;gap:12px;padding-top:18px}.site-header:after{left:20px;right:20px}.brand{font-size:1.5334rem}nav{gap:28px;height:40px}nav a{font-size:0.8rem;padding-bottom:10px}.preview-note{font-size:0.8rem}.intro{grid-template-columns:1fr;gap:21px;padding:25px 0}h1{font-size:3.0667rem}.intro>div>p{font-size:0.8667rem;margin-top:11px}.guided{padding:18px 20px}.guided h2{font-size:1rem}.guided p{font-size:0.8rem}.choices{gap:9px;margin:13px 0 8px}.choices button{font-size:0.8rem;padding:10px;flex:1}.guided>a{font-size:0.8rem}.finder-head{gap:12px;align-items:start}h2{font-size:1.9334rem}.research-date{font-size:0.8rem;min-width:94px;margin-top:4px}#results-status{font-size:0.8rem}.filters{grid-template-columns:1fr 1fr;gap:13px}.search-label{grid-column:auto}.filters .text-button{grid-column:1/-1;justify-self:start;padding:0;min-height:30px}.scope-note{font-size:0.8rem;padding-bottom:8px}.list-head{display:none}.offering,.has-detail .offering{grid-template-columns:1fr 1fr;gap:15px 20px;padding:22px 0}.identity{grid-column:1/-1}.broker-name{font-size:2rem}.entity{font-size:0.8rem}.mobile-label{display:block;font-size:0.8rem;color:var(--muted);margin-bottom:5px}.expiry{font-size:0.8667rem}.row-actions,.has-detail .row-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:9px 20px}.row-actions .compare-check{margin-left:auto}.evidence-label{flex-basis:100%}.details-pane{padding:22px 18px}.offering.is-selected{padding-inline:12px}.compare-tray{gap:10px;padding:13px;bottom:8px}.tray-copy{font-size:0.8rem}.tray-copy small{max-width:180px;font-size:0.8rem}.compare-tray button{padding:10px;font-size:0.8rem}.section{margin-top:26px;padding:27px 0}.learn,.method{grid-template-columns:1fr;gap:24px}.section-head{gap:14px}.section-head h2{font-size:1.8667rem}.comparison th,.comparison td{padding:13px}.comparison table{min-width:650px}.learn>div>p{max-width:unset}footer.wrap{flex-direction:column;gap:10px;font-size:0.8rem}.questions summary{min-height:36px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.details-pane{animation:none}}

/* One firm per entry; account-specific evidence stays inside its demo options. */
.grouping-note{font-size:0.8667rem;color:var(--muted);padding:0 0 18px;max-width:75ch}
.ordering-note{font-size:0.8rem;color:var(--muted);margin-bottom:12px;max-width:75ch}
.ordering-note summary{color:var(--ink);padding:6px 0;font-weight:600;min-height:32px}
.ordering-note p{margin:8px 0}
.jurisdiction-heading{font:600 1.0667rem/1.4 'DM Sans','DM Sans Fallback',sans-serif;padding:20px 0 10px;border-bottom:1px solid var(--line)}
.broker-group{border-bottom:1px solid var(--line);min-width:0}
.broker-summary{display:grid;grid-template-columns:minmax(170px,1fr) minmax(0,1.7fr) auto;gap:24px;align-items:center;padding:24px 0}
.broker-summary .broker-name{overflow-wrap:anywhere;line-height:1.15;margin:0}
.broker-summary .broker-name:hover{color:var(--ink)}
.broker-name-toggle{font:inherit;color:inherit;text-align:left;background:none;border:0;border-radius:0;padding:0;min-height:44px;max-width:100%;overflow-wrap:inherit}
.broker-name-toggle:hover,.broker-name-toggle:focus-visible{background:none;color:var(--rust);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.15em}
.broker-count{font-size:0.8rem;color:var(--muted);margin-top:7px}
.broker-coverage{font-size:0.8667rem;overflow-wrap:anywhere}
.broker-coverage p+p{font-size:0.8rem;color:var(--muted);margin-top:6px}
.broker-toggle{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;white-space:nowrap}
.broker-toggle svg{flex:none}
.broker-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.broker-options{padding:0 0 12px}
.broker-options .list-head{padding-top:12px;border-top:1px solid var(--line)}
.broker-options .offering:last-child{border-bottom:0}
.offering .identity h5{margin:0}
.offering-name{background:none;border:0;border-radius:0;padding:0;color:var(--ink);font-size:1.1334rem;font-weight:600;text-align:left;line-height:1.35;overflow-wrap:anywhere}
.offering-name:hover{background:none;color:var(--rust)}
.has-detail .broker-summary{grid-template-columns:minmax(0,1fr) auto;gap:12px 20px}
.has-detail .broker-coverage{grid-column:1/-1;grid-row:2}
@media(max-width:900px){.broker-summary{grid-template-columns:minmax(0,1fr) auto;gap:12px 20px}.broker-coverage{grid-column:1/-1;grid-row:2}}
@media(max-width:600px){.broker-summary,.has-detail .broker-summary{grid-template-columns:minmax(0,1fr);gap:12px;padding:22px 0}.broker-coverage,.has-detail .broker-coverage{grid-column:auto;grid-row:auto}.broker-toggle{justify-self:start}.broker-options .offering{border-top:1px solid var(--line);border-bottom:0}.offering-name{font-size:1.2rem}}

/* Expanded research: keep long qualifiers and source detail readable. */
.offering>div{min-width:0}.details-pane{overflow-wrap:anywhere}.details-pane dd small{display:block;font-size:0.8rem;color:var(--muted);margin-top:5px}.details-pane>p+p{margin-top:10px}.regulatory-detail{border-top:1px solid var(--line);padding:14px 0;margin:12px 0;font-size:0.8rem}.regulatory-detail summary{font-weight:600;padding:6px 0}.regulatory-detail p{margin:10px 0}.pagination{height:auto;display:flex;justify-content:space-between;gap:16px;margin:20px 0;font-size:0.8rem}.pagination button{min-width:88px}.pagination span{text-align:center}.compare-tray{top:8px;bottom:auto;margin-bottom:16px}.tray-copy small{max-width:75ch}.compare-tray:focus-within{outline:1px solid var(--sage)}
@media(max-width:600px){.compare-tray{position:static}.pagination{gap:10px}.pagination button{min-width:72px;padding:10px}.tray-copy small{max-width:180px}}

/* Demo signup action: same Field Guide palette and compact button shape. */
.signup-action{min-width:0;max-width:100%}
.demo-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 13px;border:1px solid var(--ink);border-radius:5px;background:var(--ink);color:var(--paper);font-size:0.8rem;font-weight:600;line-height:1.4;text-decoration:none}
.demo-button:hover{background:#235b49;color:var(--paper)}
.signup-note{margin:6px 0 0;font-size:0.8rem;line-height:1.5;color:var(--muted);max-width:32ch;overflow-wrap:anywhere}
.signup-note strong{display:block;color:var(--rust);font-weight:600}
.has-detail .row-actions{flex-wrap:wrap;align-items:flex-start}
.has-detail .row-actions .signup-action{flex-basis:100%}
.details-pane>.signup-action{margin-bottom:18px}
.research-link{display:inline-block;margin-top:12px;font-size:0.8rem}
.compare-scroll .signup-note{min-width:0}
@media(max-width:600px){.row-actions .signup-action{flex-basis:100%}.row-actions .demo-button{width:100%}.row-actions .signup-note{max-width:none}}

.execution-detail{border-block:1px solid var(--line);padding:12px 0;margin:16px 0;font-size:0.8rem;overflow-wrap:anywhere}
.execution-detail summary{min-height:44px;padding:5px 0;font-size:0.8667rem;font-weight:600;cursor:pointer}
.execution-detail summary span{display:block;margin:3px 0 0 16px;font-size:0.8rem;font-weight:400;color:var(--muted)}
.execution-detail p{margin:8px 0}
.execution-detail dl{margin-top:16px}
.execution-detail dt{font-weight:600;color:var(--ink)}
.execution-detail dd>strong{display:block;margin-top:7px}
.execution-detail .source-list{margin-bottom:10px}
.execution-comparison>p{max-width:75ch}
.execution-comparison table p{font-size:0.8rem;line-height:1.55}
.market-summary{font-size:0.8rem;line-height:1.5;margin-top:7px;color:var(--muted)}
.market-coverage-note{padding-top:0;max-width:75ch}
@media(min-width:1101px){.filters{grid-template-columns:repeat(5,minmax(0,1fr)) auto}}
@media(min-width:601px) and (max-width:1100px){.filters .search-label{grid-column:auto}}
@media(max-width:600px){.filters .search-label{grid-column:1/-1}}
/* API controls extend the Field Guide's native disclosures and ruled sections. */
.advanced-filters{grid-column:1/-1;border-top:1px solid var(--line);padding-top:8px;min-width:0}
.advanced-filters>summary{cursor:pointer;min-height:44px;align-content:center;font-size:0.8667rem;font-weight:600}
.api-filter-controls{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:20px;align-items:start;padding:8px 0 12px}
.api-filter-controls p{font-size:0.8rem;line-height:1.6;margin:0 0 6px;color:var(--muted);max-width:70ch}
.api-filter-controls a{font-size:0.8rem;display:inline-block;min-height:24px}
.api-summary{font-size:0.8rem;line-height:1.5;margin:8px 0 0;font-weight:600;color:var(--ink)}
.api-detail h4{margin-top:20px;margin-bottom:8px}
@media(max-width:600px){.api-filter-controls{grid-template-columns:minmax(0,1fr);gap:12px}}
/* The additional directory link stays reachable in the compact finder header. */
@media(max-width:1050px){.site-header .nav-note{display:none}}
@media(max-width:600px){.site-header{height:auto;min-height:110px;padding-bottom:8px}.site-header nav{height:auto;gap:16px;flex-wrap:wrap}.site-header nav a{min-height:36px;padding-bottom:4px}}

/* Keep all four destinations legible with the Guides & Updates label. */
@media(max-width:900px){.site-header{height:auto;align-items:flex-start;flex-direction:column;gap:12px;padding-top:18px;padding-bottom:8px}.site-header nav{height:auto;flex-wrap:wrap;gap:8px 24px}.site-header nav a{min-height:44px;padding-bottom:4px}}
@media(max-width:600px){.site-header nav{display:grid;grid-template-columns:auto auto;column-gap:24px;row-gap:0}}

/* Shared footer: identical destinations on every static page. */
.site-footer.wrap{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 32px;padding-top:32px;padding-bottom:28px}
.site-footer>div,.site-footer nav{min-width:0}
.site-footer .footer-brand{font-size:1.2rem;font-weight:700;color:var(--ink);text-decoration:none}
.site-footer .footer-brand:hover{color:var(--rust)}
.footer-intro{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
.footer-intro p{font-size:0.8667rem;max-width:36ch}
.site-footer nav{display:block;height:auto}
.site-footer h2{font:600 0.9334rem/1.5 'DM Sans','DM Sans Fallback',sans-serif;color:var(--ink);margin:0 0 8px}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer nav a{display:flex;align-items:center;min-height:44px;height:auto;padding:8px 0;font-size:0.8667rem;line-height:1.5;text-decoration:underline;overflow-wrap:anywhere}
.site-footer .footer-note{grid-column:1/-1;border-top:1px solid var(--line);padding-top:16px;font-size:0.8rem;line-height:1.6}
@media(max-width:900px){.site-footer.wrap{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}}
@media(max-width:600px){.site-footer.wrap{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-intro{flex-direction:column;gap:8px}.site-footer nav[aria-labelledby="footer-about"]{grid-column:1/-1}.site-footer nav[aria-labelledby="footer-about"] ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,auto);grid-auto-flow:column;column-gap:24px}}
@media(max-width:360px){.site-footer.wrap{grid-template-columns:minmax(0,1fr)}.site-footer nav[aria-labelledby="footer-about"] ul{display:block}}

/* Launch qualifications stay visible at the decision point. */
.research-controls{grid-column:1/-1;display:flex;align-items:end;gap:20px;min-width:0}
.research-controls label{min-width:200px}
.research-controls p{max-width:70ch;font-size:0.8rem;color:var(--muted)}
.signup-qualification,.evidence-gaps{font-size:0.8rem;line-height:1.55;color:var(--rust);margin:0 0 10px;overflow-wrap:anywhere}
.evidence-gaps{margin-top:8px}
@media(max-width:600px){.research-controls{display:block}.research-controls p{margin-top:8px}.research-controls label{display:block}}

/* Give each introductory guide link a distinct reading and focus target. */
.guided>a{display:block;width:fit-content;padding-block:6px}

/* Calculator disclosure shares the header's typography and native focus states. */
.nav-calculators{position:relative}
.nav-calculators>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;font-size:0.8667rem;list-style:none}
.nav-calculators>summary::-webkit-details-marker{display:none}
.nav-calculators>summary::after{content:'';width:7px;height:7px;border:solid currentColor;border-width:0 1px 1px 0;transform:translateY(-2px) rotate(45deg)}
.nav-calculators[open]>summary::after{transform:translateY(2px) rotate(225deg)}
.nav-calculators>summary:hover{color:var(--rust)}
.nav-calculators>summary.is-current{border-bottom:3px solid var(--ink);font-weight:700}
.calculator-menu{position:absolute;z-index:5;top:100%;right:0;width:250px;max-width:calc(100vw - 40px);margin:0;padding:8px 16px;list-style:none;background:var(--paper);border:1px solid var(--line)}
.site-header.wrap .calculator-menu a{min-height:44px;padding:10px 0;font-size:0.8667rem;line-height:1.5}
.site-header.wrap .calculator-menu a[aria-current],.site-footer nav a[aria-current]{border-bottom:0;font-weight:700;text-decoration:underline}
@media(max-width:600px){.nav-calculators>summary{font-size:0.8rem}.calculator-menu{left:0;right:auto}}
/* iPhones zoom the page when a form box with text under 16px is tapped, so typed and chosen text is 16px on touch screens. */
@media(max-width:600px),(pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea{font-size:1.0667rem!important}}
/* Links that stand on their own get a tap area at least 24 pixels tall (44 for the main actions). */
.footer-brand,.breadcrumbs a{display:inline-flex;align-items:center;min-height:24px}
.guide-comparison th a,.guide-comparison td a{display:inline-flex;align-items:center;min-height:24px}
.guide-comparison .demo-link{min-height:44px}
.article-body .reference-navigation a{min-width:44px;justify-content:center}
.article-body .reference-navigation[aria-label="Brokers by first letter"]{gap:4px}
.calculator-guide .spec-table a.load-contract{display:flex;align-items:center;min-height:32px}
/* Date boxes: Chrome's calendar button inside the box takes keyboard focus without the usual outline. */
input[type="date"]:focus-within{outline:3px solid var(--rust);outline-offset:4px}
/* Breadcrumb trail: a list, with the "›" drawn here and hidden from screen readers. */
.breadcrumbs{display:block;height:auto;gap:0;font-size:0.8667rem;color:var(--muted);padding-top:20px}
.breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;list-style:none;margin:0;padding:0}
.breadcrumbs li{display:inline-flex;align-items:center}
.breadcrumbs li+li::before{content:"›";content:"›"/"";padding:0 8px}
.breadcrumbs a{display:inline-flex;align-items:center;min-height:24px;height:auto;padding:0;font-size:inherit;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
/* Comfortable reading lines on wide screens: running text stops at about 70 characters a line.
   :where() keeps this rule the weakest, so any width a section already sets still wins. */
:where(main) :where(p,dd,figcaption,blockquote),:where(main) :where(ul,ol):not([class])>li{max-width:70ch}

.calculator-header{padding:34px 0 25px;max-width:850px}
.calculator-header h1{font-size:clamp(42px,5vw,62px);line-height:1.05}
.calculator-header p{font-size:1.1334rem;max-width:66ch;margin-top:16px;color:var(--muted)}
.calculator-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;align-items:start;border-top:1px solid var(--line);padding:28px 0 42px}
.calculator-form h2,.cost-results h2{font-size:1.8667rem;margin-bottom:18px}
.calculator-fields{display:grid;grid-template-columns:1fr 1fr;gap:19px 22px}
.calculator-field{min-width:0}
.calculator-field label{display:block;font-weight:600;font-size:0.9334rem;margin-bottom:7px}
.calculator-field input,.calculator-field select{width:100%;height:46px;border:1px solid #738468;border-radius:4px;background:var(--white);padding:10px;font-size:1.0667rem;font-variant-numeric:tabular-nums}
.calculator-field small{display:block;font-size:0.8rem;line-height:1.5;color:var(--muted);margin-top:6px}
.calculator-field .field-error{color:var(--rust);font-weight:500}
.calculator-field [aria-invalid=true]{border:2px solid var(--rust)}
.calculator-form details{margin-top:23px;border-block:1px solid var(--line);padding:14px 0}
.calculator-form summary{font-weight:600;font-size:0.9334rem}
.calculator-form details .calculator-fields{margin-top:18px}
.calculator-actions{display:flex;align-items:center;gap:20px;margin-top:20px;flex-wrap:wrap}
.calculator-actions button{font-size:0.9334rem;min-height:44px}
.calculator-actions .reset-calculator{background:transparent;color:var(--ink);border:0;text-decoration:underline;font-weight:400;padding-inline:0}
.calculator-actions .reset-calculator:hover{color:var(--rust)}
.calculator-form .example-note{font-size:0.8rem;color:var(--muted);margin-top:10px}
.cost-results{background:var(--sage);padding:28px;min-width:0}
.cost-period{font-size:0.9334rem}
.cost-total{display:block;font-size:clamp(34px,4vw,52px);line-height:1.15;font-weight:600;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:9px 0 6px}
.cost-assumption{font-size:0.8667rem;line-height:1.6;margin-bottom:20px}
.cost-breakdown{margin:0;border-top:1px solid #9dac8f}
.cost-breakdown>div{display:flex;justify-content:space-between;gap:18px;align-items:baseline;border-bottom:1px solid #9dac8f;padding:12px 0}
.cost-breakdown dt{font-size:0.9334rem}.cost-breakdown dd{font-size:1.2rem;font-weight:600;margin:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.cost-results .result-note{font-size:0.8rem;line-height:1.6;margin-top:18px}
.cost-results details{font-size:0.8667rem;margin-top:18px}.cost-results table{width:100%;border-collapse:collapse;margin-top:12px;font-variant-numeric:tabular-nums}.cost-results th,.cost-results td{padding:8px 0;border-bottom:1px solid #9dac8f;text-align:left}.cost-results th:last-child,.cost-results td:last-child{text-align:right}
.cost-results .table-scroll{max-height:260px;overflow-y:auto;overscroll-behavior:contain}
.calculator-notes{padding:36px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:48px}
.calculator-notes h2{margin-bottom:17px}.calculator-notes p,.calculator-notes ul{max-width:68ch;line-height:1.75}.calculator-notes p+p{margin-top:15px}.calculator-notes ul{padding-left:20px}.calculator-notes li+li{margin-top:8px}
.calculator-method{border-top:1px solid var(--line);padding:30px 0 30px;max-width:820px}
/* A closing note on every calculator page: the same calculator by web address, for AI assistants. */
.calculator-agent{border-top:1px solid var(--line);padding:30px 0 45px;max-width:820px}.calculator-agent p,.calculator-agent li{margin-top:10px;line-height:1.75;max-width:68ch}.calculator-agent ul{padding-left:20px}.calculator-agent .agent-link{overflow-wrap:anywhere}
.calculator-method summary{font-size:1.2rem;font-weight:600}.calculator-method p{margin-top:14px;line-height:1.75}.calculator-method .formula{font-weight:600}.calculator-method ol{padding-left:20px}.calculator-method li+li{margin-top:8px}
@media(max-width:850px){.calculator-layout{gap:26px;grid-template-columns:1fr}.cost-results{padding:25px}.calculator-notes{gap:25px}.cost-total{font-size:2.9334rem}.calculator-header{padding-top:26px}}
@media(max-width:540px){.calculator-fields{grid-template-columns:1fr;gap:17px}.calculator-notes{grid-template-columns:1fr}.calculator-header p{font-size:1.0667rem}.calculator-layout{padding-top:23px}.cost-results{padding:22px 18px}.cost-total{font-size:2.5334rem}.cost-breakdown dd{font-size:1.1334rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.calculator-scope{color:var(--ink)!important;font-weight:600}
.calculator-layout [hidden]{display:none}
.trade-guidance{grid-column:1/-1;font-size:0.9334rem;line-height:1.6;margin:0}
.calculator-form summary,.cost-results summary,.calculator-method summary{min-height:44px;box-sizing:border-box;padding-block:11px;cursor:pointer}
.cost-comparison{border-top:1px solid #9dac8f;margin-top:24px;padding-top:20px}
.cost-comparison h3{font-size:1.5334rem;margin:0 0 12px}
.cost-comparison p{font-size:1rem;line-height:1.6;margin-top:10px}
.cost-comparison .comparison-assumption{font-size:0.9334rem}

.article-header{padding:40px 0 28px;border-bottom:1px solid var(--line)}
.article-header h1{font-size:4rem;line-height:1.08;max-width:20ch;text-wrap:balance}
.article-header .article-deck{font-size:1.2667rem;line-height:1.6;max-width:65ch;margin-top:20px}
.article-meta{font-size:0.8rem;color:var(--muted);margin-top:16px}
.article-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:20px;font-size:0.8667rem}
.article-actions>a{min-height:44px;display:inline-flex;align-items:center}
.article-layout{display:grid;grid-template-columns:minmax(0,720px) minmax(160px,240px);gap:80px;padding:32px 0 48px;align-items:start}
.article-layout.article-layout-single{display:block}
.article-body{font-size:1.0667rem;line-height:1.75;min-width:0;max-width:70ch}
.article-body section{scroll-margin-top:24px;margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}
.article-body section:first-child{margin-top:0;padding-top:0;border-top:0}
.article-body h2{font-size:2.2rem;line-height:1.18;margin-bottom:16px;text-wrap:balance}
.article-body h3{font-family:'DM Sans','DM Sans Fallback',sans-serif;font-size:1.2rem;line-height:1.4;font-weight:600;margin:24px 0 8px}
.article-body p{margin:12px 0}.article-body ul,.article-body ol{padding-left:24px;margin:14px 0}
.article-body li+li{margin-top:8px}.article-body a{overflow-wrap:anywhere}
.article-body .reading-note{background:var(--soft);padding:20px 24px;margin:24px 0}
.reading-note p:first-child{margin-top:0}.reading-note p:last-child{margin-bottom:0}
.article-body .source-note{font-size:0.8667rem;color:var(--muted)}
.article-body table{width:100%;border-collapse:collapse;font-size:0.9334rem;line-height:1.6;margin:20px 0;table-layout:fixed}
.article-body th,.article-body td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:14px 12px;overflow-wrap:anywhere}
.article-body th:first-child,.article-body td:first-child{padding-left:0;width:32%}
.article-body th:last-child,.article-body td:last-child{padding-right:0}
.article-body caption{text-align:left;font-weight:600;margin-bottom:8px}
.article-toc{position:sticky;top:24px;border-top:1px solid var(--line);padding-top:16px}
.article-toc h2{font:600 0.8667rem/1.5 'DM Sans','DM Sans Fallback',sans-serif;margin-bottom:12px}
.article-toc nav,.article-mobile-toc nav{display:block;height:auto}
.article-toc a,.article-mobile-toc a{display:block;border:0;padding:8px 0;font-size:0.8667rem;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
.article-mobile-toc{display:none}.article-toc .toc-related{font-size:0.8667rem;border-top:1px solid var(--line);margin-top:20px;padding-top:12px}
.article-body .article-end{padding:24px 0;border-block:1px solid var(--line);margin-top:36px}
.article-end .demo-button{font-size:0.9334rem}.article-end p{margin:0 0 16px}
.guide-links{margin:18px 0;display:flex;flex-direction:column;align-items:flex-start;gap:10px;font-size:0.9334rem}
.guide-links a{min-height:36px;display:inline-flex;align-items:center}
@media(max-width:1000px){.article-layout{gap:40px;grid-template-columns:minmax(0,1fr) 200px}}
@media(max-width:760px){
 .article-header{padding:28px 0 24px}.article-header h1{font-size:2.8rem}.article-header .article-deck{font-size:1.1334rem;margin-top:16px}
 .article-layout{display:block;padding-top:24px}.article-toc{display:none}
 .article-mobile-toc{display:block;border-bottom:1px solid var(--line);padding:8px 0}
 .article-mobile-toc summary{min-height:44px;align-content:center;font-size:0.9334rem;font-weight:600;cursor:pointer}
 .article-mobile-toc nav{padding-bottom:12px}.article-mobile-toc a{min-height:44px}
 .article-body{font-size:1.0667rem}.article-body h2{font-size:1.9334rem}.article-body section{margin-top:28px;padding-top:24px}
 .article-body .reading-note{padding:16px}.article-body th,.article-body td{padding:12px 8px}
 .article-body th:first-child,.article-body td:first-child{width:36%}
}
@media(max-width:480px){
 .article-body .evidence-terms thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .article-body .evidence-terms tbody,.article-body .evidence-terms tr{display:block}
 .article-body .evidence-terms tr{padding:14px 0;border-bottom:1px solid var(--line)}
 .article-body .evidence-terms th,.article-body .evidence-terms td{display:block;width:auto;padding:0;border:0;overflow-wrap:normal}
 .article-body .evidence-terms td{margin-top:8px}
}

/* Inherit the Field Guide calculator surface and the article reading styles. */
.calculator-header .article-meta{font-size:0.8rem;margin-top:14px}
.size-value{font-variant-numeric:tabular-nums}
.cost-results .size-warning{color:var(--rust);font-size:1rem;font-weight:500;line-height:1.6;margin:0 0 6px}
.cost-breakdown small{display:block;font-size:0.8rem;font-weight:400;margin-top:4px}
.cost-breakdown dd{font-size:1.0667rem;max-width:62%}
.cost-results .cost-comparison p{font-size:0.9334rem}
.cost-results table{font-size:0.8667rem}
.cost-results th,.cost-results td{padding:9px 0 9px 8px}
.cost-results td{overflow-wrap:anywhere}
.cost-results #streak-details{overflow-x:auto}
.cost-results .streak-table td{white-space:nowrap;overflow-wrap:normal}
.cost-results th:first-child{padding-left:0}
.cost-results thead th{font-size:0.8rem;vertical-align:bottom}
.cost-results tbody th{font-weight:400}
.cost-results th:not(:first-child),.cost-results td{text-align:right}
.calculator-guide{border-top:1px solid var(--line);padding:36px 0 40px;max-width:820px}
.calculator-guide .formula{background:var(--soft);padding:16px 20px;margin:18px 0}
.calculator-guide .lot-reference{font-variant-numeric:tabular-nums}
.calculator-guide .lot-reference th:first-child{width:25%}
.calculator-guide .lot-reference th,.calculator-guide .lot-reference td{overflow-wrap:normal}
.calculator-guide .demo-button{width:auto;font-size:0.9334rem}
.common-questions .faq-item{margin:22px 0}
.common-questions .faq-question{margin:0 0 6px}
.common-questions .faq-answer{margin:0}
@media(max-width:540px){.cost-breakdown>div{gap:12px}.cost-breakdown dt{font-size:0.8667rem}.cost-breakdown dd{font-size:1rem}.cost-results table{font-size:0.8rem}.calculator-guide{padding-top:28px}}
/* Very narrow screens (small phones, or 400% zoom): let long figures wrap so the page never scrolls sideways. */
@media(max-width:380px){.calculator-guide .lot-reference th,.calculator-guide .lot-reference td{overflow-wrap:anywhere;padding-left:4px;padding-right:4px}}

/* Forex Drawdown Calculator: a second field group, the losing-run table and the maximum drawdown tool. */
.cost-total.is-loss,.cost-breakdown .is-loss{color:var(--rust)}
.calculator-form .form-group-title{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
.cost-results .table-scroll{max-height:300px}
.cost-results .table-scroll:focus-visible{outline:2px solid var(--rust);outline-offset:3px}
.cost-results .loss-table{margin-top:0}
.cost-results .loss-table th,.cost-results .loss-table td{white-space:nowrap;overflow-wrap:normal}
.cost-results .loss-table thead th{position:sticky;top:0;background:var(--sage);white-space:normal}
.calculator-guide .run-reference th:first-child{width:22%}
.series-tool{background:var(--soft);padding:22px 24px;margin:24px 0}
.article-body .series-tool h3{margin-top:0}
.series-tool label{display:block;font-weight:600;font-size:0.9334rem;margin-bottom:7px}
.series-tool textarea{display:block;width:100%;max-width:320px;min-height:190px;border:1px solid #738468;border-radius:4px;background:var(--white);padding:10px;font:inherit;font-size:1.0667rem;line-height:1.5;font-variant-numeric:tabular-nums;resize:vertical}
.series-tool textarea[aria-invalid=true]{border:2px solid var(--rust)}
.series-tool small{display:block;font-size:0.8rem;line-height:1.5;color:var(--muted);margin-top:6px}
.series-tool .field-error{color:var(--rust);font-weight:500}
.series-tool [hidden]{display:none}
.series-output{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
.article-body .series-output p{margin:6px 0;font-size:1rem}
.article-body .series-output .series-label{font-size:0.9334rem;margin:0}
.series-total{display:block;font-size:2.5334rem;line-height:1.15;font-weight:600;letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:var(--rust);margin:4px 0 8px}
@media(max-width:540px){.series-tool{padding:18px 16px}.series-tool textarea{max-width:none}.cost-results .loss-table{font-size:0.8rem}}
/* Review fixes, 16 November 2026: second headline, three charts, full-length table, hand-over links.
   The chart frames, example flag, pinned phone bar and short phone header come from profit-calculator.css
   and compounding-calculator.css. */
#drawdown-form :focus-visible{outline-color:var(--ink)}
.second-answer{margin:16px 0 6px;padding-top:16px;border-top:1px solid #9dac8f}
.second-total{display:block;font-size:2.2667rem;line-height:1.15;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink);margin:2px 0 8px}
.run-chart .limit-line{stroke:var(--rust);stroke-width:1.5;stroke-dasharray:6 4}
.run-chart text.limit-label{fill:var(--rust);font-weight:600}
.cost-bar.is-own{background:var(--ink)}
.cost-bar.is-other{background:#8c9a85}
.cost-bar-row.is-own p{font-weight:600}
.risk-chart.is-stale #risk-bars{opacity:.5}
#drawdown-results .table-scroll{max-height:none}
#drawdown-results .table-scroll.is-long{max-height:420px}
.cost-results .loss-table .is-past-limit td{color:var(--rust)}
#drawdown-results .next-links{font-size:0.9334rem;line-height:1.6;margin:0;padding-left:20px}
#drawdown-results .next-links li+li{margin-top:8px}
.article-body .series-tool .series-read{font-size:0.8667rem;line-height:1.5;color:var(--muted);margin:10px 0 0}
.series-tool .example-flag{margin-bottom:10px}

/* Forex Profit Calculator: extras on top of the shared calculator surface. */
.cost-total.is-loss{color:var(--rust)}
.cost-results .profit-table th,.cost-results .profit-table td{white-space:nowrap;overflow-wrap:normal}
.cost-results .cost-comparison .cost-breakdown{margin-top:4px}
.cost-results .cost-comparison .cost-breakdown+p{margin-top:14px}
/* Review fixes, 16 November 2026. Shares the Swap and Yen Carry calculators' example tag, +/− switch, hint and pinned phone bar. */
.example-tag{grid-column:1/-1;margin:0;padding:10px 12px;background:#f3e3d4;border-left:4px solid var(--rust);font-size:0.9334rem;line-height:1.5}
.example-flag{margin:0 0 14px;padding:10px 12px;background:#f3e3d4;border-left:4px solid var(--rust);font-size:0.9334rem;line-height:1.5}
.calculator-form .calculator-field small{font-size:0.8667rem}
.sign-input{display:flex;gap:6px}
.sign-input input{flex:1;min-width:0}
.sign-input .sign-toggle{flex:none;min-width:52px;min-height:46px;padding:0 10px;font-size:1.0667rem;background:var(--white);color:var(--ink);border:1px solid #738468}
.sign-input .sign-toggle:hover{background:var(--soft)}
.triple-hint{grid-column:1/-1;margin:0;padding:10px 12px;background:var(--white);border-left:4px solid var(--ink);font-size:0.9334rem;line-height:1.5}
.triple-hint .text-button{font-size:0.9334rem;font-weight:600;min-height:44px;padding:8px 2px}
/* The box being typed in is outlined in the site's dark green, so it never looks like an error. */
#profit-form :focus-visible{outline-color:var(--ink)}
.cost-breakdown dd a{font-weight:500}
/* Chart 1: profit or loss at each close price. Tinted zones and the words "Profit" and "Loss" say which side is which. */
.pl-chart,.cost-chart{margin:4px 0 22px;padding:14px 16px 12px;background:var(--white);border:1px solid #9dac8f;border-radius:4px}
.pl-chart figcaption,.cost-chart figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;margin-bottom:8px;font-size:1rem}
.pl-chart figcaption span,.cost-chart figcaption span{font-size:0.8667rem;color:var(--muted)}
.pl-plot svg{display:block;overflow:visible}
.pl-chart text{font-family:inherit;font-size:0.8rem;fill:var(--ink);font-variant-numeric:tabular-nums}
.pl-chart text.strong{font-weight:700}
.pl-chart text.muted{fill:var(--muted)}
.pl-chart .zone-profit{fill:#e1eee3}
.pl-chart .zone-loss{fill:#f6e3d8}
.pl-chart text.zone-label{font-size:0.8667rem;font-weight:600;fill:#4c594e}
.pl-chart .zero{stroke:var(--ink);stroke-width:1.5}
.pl-chart .open-line{stroke:var(--muted);stroke-width:1;stroke-dasharray:4 4}
.pl-chart .leader{stroke:#8c9a85;stroke-width:1;stroke-dasharray:2 3}
.pl-chart .pl-line{fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.pl-chart circle{stroke:var(--white);stroke-width:2}
.pl-chart .dot-close{fill:var(--ink)}
.pl-chart .dot-breakeven{fill:var(--white);stroke:var(--ink);stroke-width:2.5}
.pl-chart .dot-stop{fill:var(--rust)}
.pl-chart .dot-target{fill:#2f7a55}
.cost-results .chart-takeaway{font-size:0.9334rem;line-height:1.5;margin-top:8px}
/* Chart 2: where the profit went, every bar to one scale. */
.cost-bar-row+.cost-bar-row{margin-top:10px}
.cost-bar-row p{display:flex;justify-content:space-between;gap:12px;font-size:0.9334rem;margin:0 0 4px}
.cost-bar-row strong{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.cost-bar-row.is-total{border-top:1px solid #9dac8f;padding-top:10px}
.cost-bar-row.is-total p{font-weight:600}
.cost-track{height:18px;background:var(--soft);border-radius:3px;overflow:hidden}
.cost-bar{display:block;height:100%}
.cost-bar.is-charge{background:var(--rust)}
.cost-bar.is-credit{background:#2f7a55}
/* Phone: keep the answer in view while the form is on screen. */
.result-bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;min-height:52px;background:var(--ink);color:var(--paper);border-radius:var(--radius);text-decoration:none;font-size:1rem;font-weight:600;box-shadow:0 4px 16px rgba(21,63,53,.25)}
.result-bar:hover{color:var(--paper)}
.result-bar-link{font-size:0.8667rem;font-weight:500;text-decoration:underline;white-space:nowrap}
@media(min-width:851px){.result-bar{display:none!important}}
@media(max-width:540px){.calculator-header .calculator-scope{display:none}.pl-chart,.cost-chart{padding:12px 12px 10px}.pl-chart text{font-size:0.8rem}}
/* Labels keep a paper-coloured edge so a thin line passing behind them never cuts through the words. */
.pl-chart text{paint-order:stroke;stroke:var(--white);stroke-width:3px;stroke-linejoin:round}
.pl-chart text.zone-label{stroke:none}
/* Phone: a shorter header, so the first box shows on the first screen. */
@media(max-width:540px){.calculator-header{padding:16px 0 14px}.calculator-header h1{font-size:2.5334rem}.calculator-header p{font-size:1rem;line-height:1.5;margin-top:10px}.calculator-header .article-meta{margin-top:8px}.calculator-layout{padding-top:14px}.calculator-form h2{font-size:1.6rem;margin-bottom:12px}}
/* Very narrow screens (small phones, or 400% zoom): let the price table wrap instead of pushing the page sideways. */
@media(max-width:380px){.cost-results .profit-table th,.cost-results .profit-table td{white-space:normal;overflow-wrap:anywhere;padding-left:4px;padding-right:4px}}

/* Forex Compounding Calculator: charts and period table on the shared calculator surface.
   Review fixes, 16 November 2026: builds on the Profit Calculator's chart frames, example flag,
   pinned phone bar and short phone header (profit-calculator.css). */
.cost-total.is-loss{color:var(--rust)}
.cost-results .cost-total{overflow-wrap:anywhere}
.calculator-header .article-meta{font-size:0.8rem;margin-top:14px;color:var(--muted)}
.calculator-header .calculator-scope{color:var(--muted)!important;font-weight:400}
#compounding-form :focus-visible{outline-color:var(--ink)}
.cost-breakdown dd small{display:block;font-size:0.8rem;font-weight:400;margin-top:4px}
.reality-check{margin:0 0 10px;padding:10px 12px;background:var(--white);border-left:4px solid var(--ink);font-size:0.9334rem;line-height:1.5}
/* Losing periods read as a sentence: [3] losing months out of every [12] months. */
.loss-pattern{grid-column:1/-1;border:0;padding:0;margin:0}
.loss-pattern legend{display:block;font-weight:600;font-size:0.9334rem;margin-bottom:7px;padding:0}
.pattern-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.pattern-row input{width:72px!important;flex:none}
.pattern-row label{display:inline!important;font-weight:500!important;font-size:1rem!important;margin:0!important}
.pattern-row span{font-size:1rem}
/* Line charts: money scale from zero, end labels above the plot. */
.growth-chart .grid{stroke:var(--line);stroke-width:1}
.growth-chart .start-line{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4}
.growth-chart .target-line{stroke:#2f7a55;stroke-width:1.5;stroke-dasharray:6 4}
.growth-chart .line-simple{fill:none;stroke:var(--rust);stroke-width:2;stroke-dasharray:6 5;stroke-linejoin:round}
.growth-chart .line-ideal{fill:none;stroke:#2f7a55;stroke-width:2;stroke-dasharray:6 5;stroke-linejoin:round}
.growth-chart .tip-dot.line-ideal{stroke:#2f7a55;stroke-dasharray:none}
.growth-chart .dot-loss{fill:var(--rust);stroke:var(--white);stroke-width:1.5}
.growth-chart .dot-target{fill:#2f7a55}
.growth-chart .tip-area{fill:transparent;cursor:crosshair}
.growth-chart .chart-tip{pointer-events:none}
.growth-chart .tip-line{stroke:var(--ink);stroke-width:1;stroke-dasharray:2 3}
.growth-chart .tip-dot{fill:var(--white);stroke-width:2.5}
.growth-chart .tip-dot.pl-line{stroke:var(--ink)}
.growth-chart .tip-dot.line-simple{stroke:var(--rust);stroke-dasharray:none}
.growth-chart svg{touch-action:pan-y}
.cost-results .chart-hint{font-size:0.8rem;color:var(--muted);margin-top:4px}
/* Chart 2: one bar split into parts, each part named with its amount below. */
.parts-track{display:flex;height:28px;border-radius:3px;overflow:hidden;background:var(--soft)}
.parts-track .part{display:block;height:100%}
.part-start{background:var(--ink)}
.part-added{background:#9dac8f}
.part-gain{background:#2f7a55}
.part-out{background:#c9a27e}
.part-loss{background:var(--rust)}
.parts-legend{list-style:none;padding:0;margin:10px 0 0}
.parts-legend li{display:flex;justify-content:space-between;gap:12px;font-size:0.9334rem;padding:4px 0}
.parts-legend strong{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.parts-legend .swatch{display:inline-flex;align-items:center;gap:8px}
.parts-legend .swatch::before{content:"";width:14px;height:14px;border-radius:2px;background:inherit;flex:none}
.parts-legend .swatch.part-start,.parts-legend .swatch.part-added,.parts-legend .swatch.part-gain,.parts-legend .swatch.part-out,.parts-legend .swatch.part-loss{background:none}
.parts-legend .swatch.part-start::before{background:var(--ink)}
.parts-legend .swatch.part-added::before{background:#9dac8f}
.parts-legend .swatch.part-gain::before{background:#2f7a55}
.parts-legend .swatch.part-out::before{background:#c9a27e}
.parts-legend .swatch.part-loss::before{background:var(--rust)}
.losses-invite{margin:0 0 22px;font-size:0.9334rem;line-height:1.5}
.losses-invite .text-button{font-size:0.9334rem;font-weight:600;min-height:44px;padding:8px 2px}
/* Each line chart can show its figures as a small table. */
.chart-figures{margin-top:8px}
.chart-figures summary{display:flex;align-items:center;min-height:44px;font-size:0.9334rem;font-weight:600}
.chart-figures table{width:100%;border-collapse:collapse;font-size:0.8667rem;margin-top:4px}
.chart-figures th,.chart-figures td{padding:6px 0 6px 8px;border-bottom:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums}
.chart-figures th:first-child{text-align:left;padding-left:0}
.chart-figures tbody th{font-weight:400}
/* The table shows up to 24 rows in full; longer plans scroll inside the box. */
.cost-results .table-scroll{max-height:none}
.cost-results .table-scroll.is-long{max-height:420px}
.cost-results .table-scroll:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.cost-results .growth-table{margin-top:0}
.cost-results .growth-table th,.cost-results .growth-table td{white-space:nowrap;overflow-wrap:normal}
.cost-results .growth-table thead th{position:sticky;top:0;background:var(--sage)}
.cost-results .growth-table .is-loss td{color:var(--rust)}
.plan-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.plan-actions button{min-height:44px}
#share-status{overflow-wrap:anywhere}
.calculator-guide .formula sup{font-size:.75em}

/* Account Survival Calculator: second headline, three charts, the risk table and the formula tool.
   Review fixes, 16 November 2026: builds on the Profit and Compounding calculators' chart frames,
   example flag, pinned phone bar and short phone header (profit-calculator.css, compounding-calculator.css). */
.cost-breakdown>div[hidden]{display:none}
/* The older chart frame and line styles. The Kelly Criterion Calculator, the Win Rate Calculator and the Trading Journal load this file for them. */
.cost-breakdown+.cost-comparison{border-top:0;margin-top:4px}
.cost-results .paths-intro{font-size:0.9334rem;line-height:1.6;margin:0 0 12px}
.paths-figure{background:var(--white);border:1px solid #9dac8f;border-radius:4px;padding:6px 4px 2px}
.paths-figure svg{display:block;width:100%;height:auto}
.chart-area{fill:var(--white)}
.chart-grid{stroke:var(--line);stroke-width:1}
.chart-label{font-size:0.8rem;fill:var(--muted);font-variant-numeric:tabular-nums}
.chart-level{stroke-width:1.5;stroke-dasharray:6 4}
.level-start{stroke:var(--muted);stroke-width:1;stroke-dasharray:2 3}
.level-ruin{stroke:var(--rust)}
.level-target{stroke:var(--ink)}
.chart-path{fill:none;stroke-width:1.3;stroke-linejoin:round;opacity:.72}
.path-open{stroke:#4d7a63}
.path-target{stroke:var(--ink)}
.path-ruin{stroke:var(--rust);opacity:.9}
#survival-form :focus-visible,#formula-form :focus-visible{outline-color:var(--ink)}
.calculator-form .prop-hint{margin-top:2px}
.prop-hint .text-button{display:block;text-align:left}
/* With a profit target, the chance of reaching it first is a second headline of the same size. */
.second-headline{margin:16px 0 0;padding-top:14px;border-top:1px solid #9dac8f}
.second-headline[hidden]{display:none}
#survival-results .reality-check{margin-top:12px}
#survival-results .cost-chart,#survival-results .pl-chart{margin-top:18px}
#survival-results .cost-breakdown+.pl-chart{margin-top:22px}
/* Chart 2: sample runs of the account balance. Each run is a thin line; the level lines carry their names. */
.cost-results .runs-intro{font-size:0.9334rem;line-height:1.5;margin:0 0 10px}
.runs-chart .run{fill:none;stroke-width:1.3;stroke-linejoin:round}
.runs-chart .run-open{stroke:var(--ink);opacity:.5}
.runs-chart .run-target{stroke:#2f7a55;opacity:.8}
.runs-chart .run-ruin{stroke:var(--rust);opacity:.9}
.runs-chart .ruin-line{stroke:var(--rust);stroke-width:1.5;stroke-dasharray:6 4}
.runs-chart text.ruin-label{fill:var(--rust);font-weight:600}
.runs-chart text.target-label{fill:#22603f;font-weight:600}
/* Chart 3: the visitor's own risk level stands out from the others. */
.cost-bar.is-own{background:var(--rust)}
.cost-bar.is-other{background:#c9a27e}
.cost-bar-row.is-own p{font-weight:600}
.cost-results .risk-scroll{max-height:none}
.cost-results .risk-table th,.cost-results .risk-table td{white-space:nowrap}
.cost-results .risk-table thead th{white-space:normal}
.cost-results .risk-table .own-level th,.cost-results .risk-table .own-level td{background:var(--white);font-weight:600}
.series-tool .calculator-fields{max-width:560px}
.series-tool .formula-total{color:inherit}
.series-tool .formula-total.is-loss{color:var(--rust)}
.series-tool .calculator-actions{margin-top:20px}
.article-body .formula sup{font-size:.75em}
.formula-part{white-space:nowrap}
/* Phone: this page's table keeps a readable print size; tighter cells make the four columns fit, and on the narrowest phones a cell may take two lines. */
@media(max-width:540px){.cost-results .risk-table{font-size:0.8rem}#survival-results .risk-table{font-size:0.8334rem}#survival-results .risk-table th,#survival-results .risk-table td{padding-left:4px;padding-right:4px}}
@media(max-width:359px){#survival-results .risk-table td{white-space:normal}}

.analytics-toggle{background:var(--paper);color:var(--ink);border:1px solid var(--ink);min-height:44px;padding:10px 16px}
.analytics-toggle:hover{background:var(--soft)}
.analytics-toggle[hidden]{display:none}

/* Shared header search extends the Field Guide's native fields and ruled layout. */
.site-header.wrap{display:grid;grid-template-columns:auto minmax(0,1fr) 280px;gap:24px;min-height:104px;height:auto;align-items:center;padding-top:14px;padding-bottom:14px}
.site-header.wrap nav{justify-content:center;gap:20px;height:auto;min-width:0;flex-wrap:wrap}
.site-header.wrap nav a{min-height:44px;padding:8px 0;height:auto;font-size:0.8667rem}
.site-search{min-width:0}
.site-search label{display:block;font-size:0.8rem;font-weight:600;margin-bottom:4px}
.site-search-controls{display:flex;gap:6px;align-items:center}
.site-search input[type=search]{min-width:0;flex:1;height:44px;font-size:0.8667rem}
.site-search button{min-height:44px;padding:10px 12px}
.search-main{padding-top:36px;padding-bottom:48px;min-height:55vh}
.search-intro{max-width:75ch}
.search-intro h1{font-size:3.2rem}
.search-intro>p{margin-top:16px;color:var(--muted);max-width:65ch}
.search-toolbar{display:flex;justify-content:space-between;gap:24px;align-items:end;border-bottom:1px solid var(--line);padding:28px 0 20px}
.search-toolbar label{display:block;font-size:0.8rem;font-weight:600;margin-bottom:6px}
.search-toolbar select{width:285px;max-width:100%;height:44px;font-size:0.8667rem}
#site-search-status{font-size:0.9334rem;overflow-wrap:anywhere}
.search-list{list-style:none;padding:0;margin:0;max-width:850px}
/* Hold the space for results while search loads, so the links below don't jump when results appear. */
.search-list[aria-busy="true"]{min-height:100vh}
.search-result{padding:24px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.search-result h2{font-size:1.9334rem;line-height:1.15}
.search-result h2 a{text-decoration-thickness:1px}
.search-result>p{font-size:0.9334rem;max-width:75ch;margin-top:10px}
.search-result .search-result-meta{font-size:0.8rem;color:var(--muted);margin-top:8px}
.search-result .search-result-context{font-size:0.8667rem;font-weight:500}
.search-qualifications{margin-top:8px;max-width:75ch}
.search-qualifications summary{font-size:0.8rem;min-height:44px;align-content:center}
.search-qualifications p{font-size:0.8667rem;color:var(--muted);margin:4px 0 8px}
.search-empty{padding:28px 0}
.search-empty p{max-width:65ch;margin:12px 0}
.search-pagination{display:flex;justify-content:space-between;align-items:center;max-width:850px;height:auto;margin-top:24px;gap:16px;font-size:0.8667rem}
.search-pagination a{min-height:44px;padding:8px 0;font-size:0.8667rem;text-decoration:underline}
.search-pagination [aria-disabled]{color:var(--muted)}
.search-browse{margin-top:32px;padding-top:20px;border-top:1px solid var(--line);font-size:0.8667rem;max-width:850px}
.search-browse p{max-width:75ch;color:var(--muted)}
.search-browse-links{display:flex;flex-wrap:wrap;gap:4px 24px;margin-top:12px}
.search-browse-links a{display:inline-flex;min-height:44px;align-items:center}
#search-retry{margin-top:16px}
@media(max-width:1100px){
  .site-header.wrap{grid-template-columns:minmax(0,1fr) 300px;gap:6px 24px;padding-top:16px;padding-bottom:8px}
  .site-header.wrap nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:24px;display:flex}
  .site-search{grid-column:2;grid-row:1}
}
@media(max-width:600px){
  .site-header.wrap{grid-template-columns:minmax(0,1fr);gap:10px;padding-top:16px;padding-bottom:10px}
  .site-search{grid-column:1;grid-row:2}
  .site-header.wrap nav{grid-row:3;display:grid;grid-template-columns:auto auto;justify-content:start;column-gap:24px;row-gap:0}
  .site-header.wrap nav a{font-size:0.8rem;min-height:40px;padding:4px 0}
  .site-search input[type=search]{font-size:1.0667rem}
  .search-main{padding-top:28px;padding-bottom:32px}
  .search-intro h1{font-size:2.6667rem}
  .search-intro>p{font-size:0.9334rem}
  .search-toolbar{align-items:stretch;flex-direction:column;gap:14px;padding-top:24px}
  .search-toolbar select{width:100%;font-size:1.0667rem}
  .search-result h2{font-size:1.8rem}
}
/* Phone header: logo and a Menu button on one row, the search box below. The main links open
   from the Menu button as a native popover. Browsers without popover support keep the old layout. */
.menu-toggle{display:none}
.site-header.wrap nav .nav-search{display:none}
.site-header.wrap nav[popover]{position:static;inset:auto;width:auto;margin:0;border:0;padding:0;overflow:visible;color:inherit;background:none}
@media(max-width:600px){
  .site-header.wrap{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;min-height:0;padding-top:12px;padding-bottom:12px}
  .site-header.wrap .brand{grid-column:1;grid-row:1;align-self:center}
  .site-search{grid-column:1/-1;grid-row:2}
  .site-search label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@supports selector(:popover-open){
  @media(max-width:600px){
    .menu-toggle{display:inline-flex;align-items:center;gap:9px;grid-column:2;grid-row:1;min-height:44px;padding:10px 14px;background:transparent;color:var(--ink);border:1px solid #738468;font-size:0.9334rem;font-weight:600}
    .menu-toggle::before{content:'';width:16px;height:12px;background:linear-gradient(currentColor 0 0) top/100% 2px no-repeat,linear-gradient(currentColor 0 0) center/100% 2px no-repeat,linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat}
    .menu-toggle:hover{background:var(--soft);color:var(--ink)}
    .site-header.wrap nav[popover]:not(:popover-open){display:none}
    /* Keep expanded calculator links in one vertical scroll area. */
    .site-header.wrap nav[popover]:popover-open{--menu-top:96px;display:block;position:fixed;inset:var(--menu-top) 12px auto auto;width:min(320px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - var(--menu-top) - 12px);overflow:auto;padding:6px 18px 12px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 14px 36px rgba(21,63,53,.2)}
    .site-header.wrap nav[popover]:popover-open>a,.site-header.wrap nav[popover]:popover-open .nav-calculators>summary{font-size:1rem;min-height:48px;padding:12px 0;border-bottom:1px solid var(--line)}
    .site-header.wrap nav[popover]:popover-open>a[aria-current]{border-bottom:1px solid var(--line);text-decoration:underline}
    .site-header.wrap nav[popover] .calculator-menu{position:static;width:auto;max-width:none;border:0;padding:0 0 6px 12px;background:none}
    .site-header.wrap nav[popover] .calculator-menu a{font-size:1rem}
  }
}
/* Short phone screens, and desktops zoomed to 400%: one header row (logo and Menu), with search
   reached from inside the Menu, so the page itself fills most of the first screen. */
@supports selector(:popover-open){
  @media(max-width:600px) and (max-height:540px){
    .site-header.wrap{padding-top:8px;padding-bottom:8px}
    body:not(.search-page) .site-header.wrap .site-search{display:none}
    .site-header.wrap nav[popover]:popover-open{--menu-top:64px}
    .site-header.wrap nav[popover]:popover-open .nav-search{display:flex;font-size:1rem;min-height:48px;padding:12px 0;border-bottom:1px solid var(--line)}
  }
}

/* "Add this calculator to your website" box on each calculator page (scripts/embed-site.mjs). */
.calculator-embed{border-top:1px solid var(--line);padding:30px 0 40px;max-width:820px}
.calculator-embed p{margin-top:10px;line-height:1.75;max-width:68ch}
.calculator-embed label{display:block;margin-top:16px;font-weight:600;font-size:0.9334rem}
.calculator-embed .embed-code{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #738468;border-radius:6px;background:var(--white);font:0.8rem/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink);resize:vertical}
.calculator-embed .embed-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.calculator-embed .embed-copy{min-height:44px;font-size:0.9334rem}
.calculator-embed .embed-status{font-size:0.9334rem;color:var(--ink);font-weight:600}
.calculator-embed .embed-note{font-size:0.9334rem;color:var(--muted)}
