/* Editorial pages: guides, glossary, FAQ, tools, blog, company pages. Loaded after legal.css and uses its tokens, header and footer.
   Nothing here needs JavaScript; no inline styles, images from data: or fonts from other hosts (the pages ship with a strict CSP). */

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* breadcrumbs and article head */
.crumbs { margin: clamp(22px, 3vw, 34px) 0 0; font-size: 13.5px; line-height: 1.5; color: var(--tx-note); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: rgba(255,255,255,.3); }
.crumbs a { color: var(--tx-note); text-decoration: none; transition: color .16s; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--tx-2); }
.lg-tabs + .crumbs { margin-top: 28px; }

.art-hero { max-width: 880px; padding: clamp(18px, 3.4vw, 34px) 0 clamp(6px, 1.6vw, 14px); }
.art-hero.hub { max-width: 780px; }
.art-hero > * { animation: lgIn .8s var(--ease) both; }
.art-hero > :nth-child(2) { animation-delay: .05s; } .art-hero > :nth-child(3) { animation-delay: .1s; } .art-hero > :nth-child(4) { animation-delay: .15s; }
.art-hero h1 { margin: 0; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.035em; font-weight: 650; color: #fff; text-wrap: balance; }
.dek { margin: 14px 0 0; max-width: 62ch; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: var(--tx-2); text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; color: var(--tx-note); }
.meta li { display: inline-flex; align-items: baseline; gap: .4em; }
.meta li + li::before { content: ""; width: 3px; height: 3px; margin: 0 14px; border-radius: 50%; background: currentColor; opacity: .55; }
.meta a { color: var(--tx-1); text-underline-offset: 3px; }
.meta time { color: var(--tx-2); }

.lg-layout.no-toc { display: block; }
.lg-layout.no-toc .prose { margin: 0; }
.prose.art { max-width: 74ch; }
.prose.art > :first-child { margin-top: 0; }

/* the contents list of an article: open on wide screens, a toggle on a phone (hidden by CSS from the first paint, so the script moves nothing) */
@media (max-width: 1039px) {
  .art-toc:not(.on) > nav { display: none; }
  .art-toc[open]:not(.on) summary::after { transform: rotate(45deg) translateY(-2px); }
  .art-toc summary { pointer-events: auto; cursor: pointer; }
}

/* body text: the sections the template adds (FAQ, sources, related) carry their own h2, so legal.css' per-section rule must not add a second line */
.prose.art section { padding: 0; border-top: 0; }
.art .sr { margin: -1px; padding: 0; border: 0; }
.art h2 { margin: 64px 0 18px; padding-top: 44px; border-top: 1px solid var(--hair); }
.art > h2:first-child, .art > .callout-tldr + h2 { margin-top: 56px; }
.tool-page .art > h2:first-child { margin-top: 0; }
.tool-wrap { padding-top: clamp(14px, 2.4vw, 26px); }
.tool-wrap .crumbs { margin-top: clamp(14px, 2vw, 20px); }
.art-hero.tool-hero { padding-top: clamp(12px, 2vw, 20px); padding-bottom: 4px; }
.art-hero.tool-hero h1 { font-size: clamp(26px, 3.4vw, 36px); }
.art-hero.tool-hero .dek { max-width: 70ch; margin-top: 10px; font-size: 16px; }
.art-hero.tool-hero .meta { margin-top: 12px; }
.art h3 { position: relative; margin: 36px 0 10px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.3; letter-spacing: -.025em; font-weight: 650; color: #fff; scroll-margin-top: 96px; }
.art h3 .anchor { display: inline-block; width: 1.1em; margin-left: .35em; text-align: center; text-decoration: none; opacity: 0; transition: opacity .16s; }
.art h3 .anchor::after { content: "#"; color: var(--accent-3); font-weight: 500; }
.art h3:hover .anchor, .art h3 .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .art h3 .anchor { opacity: .55; } }
.art p, .art li { text-wrap: pretty; }
.art > p:first-of-type { font-size: 18.5px; }
.art blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--tx-2); }
.art blockquote p { margin: 0 0 10px; }
.art hr { margin: 44px 0; border: 0; border-top: 1px solid var(--hair); }
.art code { padding: .12em .4em; border-radius: 6px; background: rgba(255,255,255,.08); font: 500 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--tx-1); overflow-wrap: anywhere; }
.art pre.code { overflow-x: auto; margin: 22px 0; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); }
.art pre.code code { padding: 0; background: none; font-size: 14px; line-height: 1.65; white-space: pre; overflow-wrap: normal; }
.art pre.code:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.art .fact { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: underline dotted rgba(185,164,253,.75); text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: help; }
.art .fact-t { font-weight: 500; color: var(--tx-1); }
.art .calc { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* tables */
.art .tbl { margin: 24px 0 28px; }
.art .tbl table { font-variant-numeric: tabular-nums; }
@media (min-width: 701px) { .art .tbl table { min-width: 560px; } }
.art .tbl td:first-child { font: inherit; white-space: normal; font-weight: 600; color: var(--tx-1); }
.art .tbl [data-al="r"] { text-align: right; }
.tbl-src { margin: -14px 0 26px; font-size: 13.5px; line-height: 1.6; color: var(--tx-note); }
.tbl-src a { color: var(--accent-3); } .art .tbl [data-al="c"] { text-align: center; }
.art .tbl td a { color: var(--accent-3); }
.art .tbl th, .art .tbl td { overflow-wrap: anywhere; }

/* callouts */
.callout { margin: 30px 0; padding: 18px 22px 6px; border-radius: 16px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--hair-2); }
.callout-h { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.callout-b > :first-child { margin-top: 0; } .callout-b > :last-child { margin-bottom: 14px; }
.callout-tldr { background: linear-gradient(135deg, rgba(121,82,253,.22), rgba(121,82,253,.05)); box-shadow: inset 0 0 0 1px var(--accent-b); }
.callout-tldr .callout-b { font-size: 18px; line-height: 1.65; color: var(--tx-1); }
.callout-warning, .callout-risk { background: rgba(251,191,36,.07); box-shadow: inset 0 0 0 1px rgba(251,191,36,.4); }
.callout-warning .callout-h, .callout-risk .callout-h { color: #fcd34d; }
.callout-example { background: rgba(110,231,183,.05); box-shadow: inset 0 0 0 1px rgba(110,231,183,.3); }
.callout-example .callout-h { color: #6ee7b7; }
.callout-terminal { background: linear-gradient(135deg, rgba(121,82,253,.12), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px var(--accent-b); }
.callout-rule .callout-h { color: var(--accent-3); }

/* figures */
.fig { margin: 34px 0; }
.fig svg { display: block; width: 100%; height: auto; border-radius: 16px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--hair-2); }
.fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--tx-note); }
.fig text { font-family: Inter, "Inter Fallback", system-ui, sans-serif; fill: rgba(255,255,255,.82); font-size: 13px; }
.fig .f-s { font-size: 11.5px; fill: rgba(255,255,255,.62); } .fig .f-b { font-weight: 650; fill: #fff; } .fig .f-m { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fig .f-up { fill: #6ee7b7; } .fig .f-dn { fill: #fb7185; } .fig .f-acc { fill: #b9a4fd; } .fig .f-warn { fill: #fcd34d; }
.fig .s-grid { stroke: rgba(255,255,255,.12); fill: none; } .fig .s-axis { stroke: rgba(255,255,255,.38); fill: none; }
.fig .s-acc { stroke: #b9a4fd; fill: none; } .fig .s-up { stroke: #6ee7b7; fill: none; } .fig .s-dn { stroke: #fb7185; fill: none; } .fig .s-warn { stroke: #fcd34d; fill: none; } .fig .s-dash { stroke-dasharray: 5 5; }
.fig .b-warn { fill: rgba(251,191,36,.12); stroke: rgba(251,191,36,.6); } .fig .f-hi { fill: #fff; } .fig .s-w1 { stroke: rgba(255,255,255,.88); fill: none; } .fig .s-w2 { stroke: rgba(255,255,255,.45); fill: none; }
.fig .b-acc { fill: rgba(139,92,246,.2); stroke: rgba(185,164,253,.7); } .fig .b-up { fill: rgba(110,231,183,.12); stroke: rgba(110,231,183,.6); } .fig .b-dn { fill: rgba(251,113,133,.12); stroke: rgba(251,113,133,.6); } .fig .b-n { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.25); }
.fig .area-acc { fill: rgba(139,92,246,.22); stroke: none; } .fig .area-dn { fill: rgba(251,113,133,.16); stroke: none; }
.fig .w-2 { stroke-width: 2; } .fig .w-3 { stroke-width: 3; } .fig .w-1 { stroke-width: 1; }

/* cards and hubs */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.card { position: relative; padding: 22px 22px 20px; border-radius: 20px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair-2); transition: background .2s, box-shadow .2s, transform .25s var(--ease); }
.card:hover { background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); transform: translateY(-2px); }
.card:focus-within { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.card-k { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
.card h3 a { color: #fff; text-decoration: none; }
.card h3 a:focus-visible { outline: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.card-d { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tx-2); }
.hub-body { display: grid; gap: clamp(44px, 6vw, 76px); padding: clamp(28px, 5vw, 52px) 0 clamp(36px, 6vw, 64px); }
.hub-gh { max-width: 62ch; margin-bottom: 20px; }
.hub-gh h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.035em; font-weight: 650; color: #fff; }
.hub-gh p { margin: 0; color: var(--tx-2); }
.art-wrap > .art-disc { max-width: 74ch; margin-bottom: clamp(40px, 7vw, 80px); }
.art-rel { margin-top: 56px; }
.art-rel h2 { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--tx-1); font-size: 14px; text-decoration: none; transition: background .16s, box-shadow .16s; }
.chips a:hover { background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); }

/* glossary */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 4px; }
.az a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--tx-1); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .16s, box-shadow .16s; }
.az a:hover { background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); }
.gl-wrap { max-width: 940px; padding-bottom: clamp(24px, 4vw, 48px); }
.gl-l { margin: 44px 0 4px; font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--accent-2); scroll-margin-top: 96px; }
.gl { margin: 0; }
.gl-row { display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr); gap: 6px 32px; padding: 16px 0; border-top: 1px solid var(--hair); scroll-margin-top: 96px; }
.gl dt { font-size: 17px; font-weight: 650; color: #fff; }
.gl dt a { color: #fff; text-decoration: none; } .gl dt a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-2); }
.gl dd { margin: 0; color: var(--tx-2); }
.gl .more { margin-left: 6px; color: var(--accent-3); font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .gl-row { grid-template-columns: 1fr; } }

/* FAQ, sources */
.qa { padding: 24px 0 8px; border-top: 1px solid var(--hair); }
.faq-g + .faq-g { margin-top: 12px; }
.art .faq-g > h2 { margin-top: 56px; }
.art .faq-g:first-child > h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.qa h3 { margin: 0 0 10px; font-size: clamp(18px, 2vw, 20px); }
.prose .qa-l { color: #fff; text-decoration: none; }
.prose .qa-l:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-2); }
.art-faq .qa:first-of-type { border-top: 0; padding-top: 4px; }
details.src-facts { margin-top: 8px; }
details.src-facts > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 14.5px; font-weight: 600; color: var(--tx-1); }
details.src-facts > summary::-webkit-details-marker { display: none; }
details.src-facts > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
details.src-facts[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.src-facts > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
details.src-facts .tbl { margin-top: 14px; }
.src-list ul, .src-list ol { padding-left: 1.2em; }
.src-list li { margin: 6px 0; }
.src-note { font-size: 14.5px; color: var(--tx-note); }
.art-disc { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 13.5px; line-height: 1.7; color: var(--tx-note); }

/* tools: the calculators. One component (.cx). Two columns when its own box is wide enough (the inputs on the left, the result on the right),
   one column when it is not (the result first, then the inputs, then the details). Type: 12 to 16px in the widget, 32px for the main number. */
.tool.cx { --pad: 20px; --pos: #6ee7b7; --neg: #ff8a98; max-width: 880px; margin: 22px 0 26px; padding: 0; border-radius: 20px; background: rgba(255,255,255,.028); box-shadow: inset 0 0 0 1px var(--hair-2); container: cx / inline-size; overflow: hidden; overflow: clip; }
.cx-form { margin: 0; }
.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "in" "more"; }
.cx-in { grid-area: in; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; padding: var(--pad); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.cx-hero { grid-area: hero; padding: var(--pad) var(--pad) 16px; background: linear-gradient(180deg, rgba(139,92,246,.18), rgba(139,92,246,.07)); }
.cx-more { grid-area: more; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; padding: 8px var(--pad) var(--pad); background: rgba(139,92,246,.07); }
@container cx (min-width: 640px) {
  .tool.cx { --pad: 24px; }
  .cx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; grid-template-areas: "in hero" "in more"; }
  .cx-in { align-self: start; position: sticky; top: 80px; border: 0; }
  .cx-hero, .cx-more { border-left: 1px solid var(--hair); }
}

/* the main number */
.cx-k { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); }
.cx-v { margin: 4px 0 0; font-size: 28px; font-size: clamp(24px, 8.4cqi, 32px); font-weight: 650; line-height: 1.12; letter-spacing: -.025em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-v.long { font-size: 22px; font-size: clamp(19px, 6cqi, 24px); }
.cx-v.pos, .cx-rows dd.pos { color: var(--pos); }
.cx-v.neg, .cx-rows dd.neg { color: var(--neg); }
.cx-s { margin: 6px 0 0; min-height: 1.5em; font-size: 13.5px; line-height: 1.5; color: var(--tx-2); }
.cx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cx-pair .cx-v { font-size: 26px; font-size: clamp(20px, 6.4cqi, 28px); }
.cx-pair .cx-v.long { font-size: 18px; font-size: clamp(16px, 4.6cqi, 20px); }

/* the inputs */
.cx-fs { min-width: 0; margin: 0; padding: 0; border: 0; }
.cx-fs > legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); }
.cx-fs > legend + * { clear: both; }
.cx-fs > :not(legend) ~ :not(legend) { margin-top: 12px; }
.cx-f { min-width: 0; }
.cx-f > label, .cx-f > .lbl { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--tx-1); }
.cx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-box, .cx-sel { position: relative; }
.cx-box input, .cx-sel select { display: block; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255,255,255,.065); box-shadow: inset 0 0 0 1px var(--hair-2); color: #fff; font: 500 16px/1 Inter, "Inter Fallback", system-ui, sans-serif; font-variant-numeric: tabular-nums; transition: background .16s, box-shadow .16s; }
.cx-box input.pl { padding-left: 28px; }
.cx-box input.pr { padding-right: 30px; }
.cx-box .u { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--tx-note); pointer-events: none; }
.cx-box .u.l { left: 12px; }
.cx-box .u.r { right: 12px; }
.cx-box input:hover, .cx-sel select:hover { background: rgba(255,255,255,.085); }
.cx-box input:focus-visible, .cx-sel select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; background: rgba(255,255,255,.09); }
.cx-box input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--neg); }
.cx-sel select { -webkit-appearance: none; appearance: none; padding-right: 36px; color-scheme: dark; cursor: pointer; text-overflow: ellipsis; }
.cx-sel::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--tx-2); border-bottom: 1.6px solid var(--tx-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cx-h { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--tx-note); }
.cx-h.bad { color: var(--neg); }
.cx-lead { margin: 0 0 12px; font-size: 13px; }
.cx-lh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.cx-lh > label, .cx-lh > .lbl { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--tx-1); }
.cx-lh small { font-size: 12.5px; color: var(--tx-note); }

/* long or short, one of two choices */
.cx-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 44px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.065); box-shadow: inset 0 0 0 1px var(--hair-2); }
.cx-seg label { position: relative; display: block; margin: 0; }
.cx-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cx-seg span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 8px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--tx-2); white-space: nowrap; transition: background .16s, color .16s; }
.cx-seg input:checked + span { background: rgba(255,255,255,.17); color: #fff; }
.cx-seg input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.cx-seg.ls input[value="long"]:checked + span { background: rgba(110,231,183,.2); color: #b6f5d6; }
.cx-seg.ls input[value="short"]:checked + span { background: rgba(255,138,152,.2); color: #ffc7cf; }

/* quick values */
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cx-chip { min-width: 44px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair); color: var(--tx-2); font: 600 13px/1 Inter, "Inter Fallback", system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .16s, color .16s, box-shadow .16s; }
.cx-chip:hover { background: rgba(255,255,255,.1); color: #fff; }
.cx-chip[aria-pressed="true"] { background: var(--accent-wash); color: #fff; box-shadow: inset 0 0 0 1px var(--accent-b); }
.cx-chip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* the leverage slider */
.cx-range { --fill: 0%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 6px 0 0; background: transparent; cursor: pointer; }
.cx-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255,255,255,.18) var(--fill)); }
.cx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(139,92,246,.45); }
.cx-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); }
.cx-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.cx-range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(139,92,246,.45); }
.cx-range:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* the numbers under the main one */
.cx-rows { margin: 0; padding: 0; }
.cx-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; padding: 9px 0; border-top: 1px solid var(--hair); }
.cx-rows > div:first-child { border-top: 0; }
.cx-rows > div[hidden] { display: none; }
.cx-rows dt { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--tx-2); }
.cx-rows dt small, .cx-rows dd small { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--tx-note); }
.cx-rows dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: right; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-eq { margin: 0; min-height: 1.5em; font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--tx-note); overflow-wrap: anywhere; }
.cx-say { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--tx-2); }
.cx-x { margin: 0; font-size: 13px; line-height: 1.5; color: var(--tx-note); }
.cx-x a { color: var(--accent-3); }

/* charts and bars */
.cx-viz { margin: 0; }
.cx-viz figcaption { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 12.5px; line-height: 1.4; color: var(--tx-note); }
.cx-viz figcaption span:first-child { font-weight: 600; color: var(--tx-2); }
.cx-chart { height: 132px; }
.cx-chart svg { display: block; overflow: visible; }
.vz-base, .vz-tick { stroke: rgba(255,255,255,.24); stroke-width: 1; }
.vz-axis { fill: rgba(255,255,255,.72); font: 500 12px/1 Inter, "Inter Fallback", system-ui, sans-serif; }
.vz-zero { stroke: rgba(255,255,255,.3); stroke-width: 1; stroke-dasharray: 2 3; }
.vz-line { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vz-mark { stroke: rgba(255,255,255,.42); stroke-width: 1; stroke-dasharray: 3 3; }
.vz-dot { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.vz-lbl { fill: #fff; font: 600 12px/1 Inter, "Inter Fallback", system-ui, sans-serif; paint-order: stroke; stroke: #16121f; stroke-width: 4px; stroke-linejoin: round; }
.cx-bars { display: grid; gap: 8px; }
.cx-bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.3; }
.cx-bar .bl { color: var(--tx-2); }
.cx-bar .tr { display: block; height: 8px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.1); }
.cx-bar i { display: block; width: 0; height: 100%; border-radius: 4px; transition: width .25s var(--ease); }
.cx-bar i.pos { background: var(--pos); }
.cx-bar i.neg { background: var(--neg); }
.cx-bar .bv { min-width: 7ch; text-align: right; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* a folded part: the same trade in every category, the funding block */
.cx-cmp, .cx-opt { border-top: 1px solid var(--hair); }
.cx-cmp > summary, .cx-opt > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--tx-1); }
.cx-cmp > summary::-webkit-details-marker, .cx-opt > summary::-webkit-details-marker { display: none; }
.cx-cmp > summary::after, .cx-opt > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.cx-cmp[open] > summary::after, .cx-opt[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.cx-cmp > summary:focus-visible, .cx-opt > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }
.cx-opt[open] > .cx-two { margin: 4px 0 6px; }
.cx-tbl { overflow-x: auto; margin: 0 0 8px; }
.cx-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cx-tbl th, .cx-tbl td { padding: 7px 8px 7px 0; border-top: 1px solid var(--hair); text-align: right; white-space: nowrap; color: var(--tx-2); }
.cx-tbl th:first-child, .cx-tbl td:first-child { text-align: left; }
.cx-tbl thead th { border-top: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-note); }
.cx-tbl tbody th { font-weight: 500; color: var(--tx-1); }
.cx-tbl tr[aria-current="true"] th, .cx-tbl tr[aria-current="true"] td { background: var(--accent-wash); color: #fff; }
.cx-tbl td.pos { color: var(--pos); }
.cx-tbl td.neg { color: var(--neg); }
.cx-cmp-static { border-top: 1px solid var(--hair); padding-top: 12px; }
.cx-cap { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--tx-1); }

/* the bottom line of the widget */
.cx-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px var(--pad); border-top: 1px solid var(--hair); background: rgba(255,255,255,.02); }
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--hair-2); color: #fff; font: 600 14px/1 Inter, "Inter Fallback", system-ui, sans-serif; cursor: pointer; transition: background .16s, color .16s; }
.cx-btn:hover { background: rgba(255,255,255,.13); }
.cx-btn.quiet { background: transparent; box-shadow: none; color: var(--tx-2); }
.cx-btn.quiet:hover { background: rgba(255,255,255,.07); color: #fff; }
.cx-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.cx-btn .t-b { display: none; }
.cx-btn[data-done] { color: var(--pos); }
.cx-btn[data-done] .t-a { display: none; }
.cx-btn[data-done] .t-b { display: inline; }
.cx-note { flex: 1 1 180px; margin: 0; min-height: 1.4em; font-size: 12.5px; line-height: 1.4; text-align: right; color: var(--tx-note); }
.tool-ns { margin: 0; padding: 16px 20px; color: #fcd34d; }
@media (prefers-reduced-motion: reduce) { .tool.cx *, .tool.cx *::before, .tool.cx *::after { transition: none !important; } }
@media (forced-colors: active) {
  .cx-seg input:checked + span, .cx-chip[aria-pressed="true"] { outline: 2px solid Highlight; }
  .cx-box input, .cx-sel select { border: 1px solid CanvasText; }
}

/* jump links under the calculator, in place of the contents list */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 880px; margin: 0; }
.jump > span { margin-right: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-note); }
.jump a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--tx-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--hair-2); transition: background .16s, color .16s; }
.jump a:hover { background: rgba(255,255,255,.07); color: #fff; }
.jump a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

@media print {
  details.src-facts > summary { display: none; }
  .crumbs, .az, .card .card-k, .cx-foot, .cx-chips, .jump { display: none !important; }
  .art-hero { max-width: none; padding: 0 0 12pt; } .art-hero > * { animation: none !important; }
  .art-hero h1, .art h2, .art h3 { color: #000 !important; } .art-hero h1 { font-size: 28pt; }
  .dek, .meta, .meta li, .meta a, .meta time { color: #333 !important; }
  .callout { background: none !important; box-shadow: none !important; border: 1px solid #999; break-inside: avoid; }
  .callout-h, .callout-b, .callout-b p { color: #000 !important; }
  .art code, .art pre.code { background: #f2f2f2 !important; color: #000 !important; box-shadow: none !important; }
  .art .fact, .art .calc { color: #000 !important; text-decoration: none; }
  .fig svg { background: #fff; box-shadow: none; } .fig text { fill: #000 !important; }
  .art-disc { color: #333 !important; border-color: #ccc; }
}
/* a long rule or formula in any language must wrap instead of widening the page */
.art .fact, .art .fact-t, .cx-eq, .cx-say, .art .calc { overflow-wrap: anywhere; }
