/* HomeBuyingCalc design system (phase 2).
   Loaded on every page right before agent-theme.css, so it settles the page's own styles and agent colors still win.
   Layout and type only: no calculator math, inputs, defaults or disclosures change here. */

/* ---- Font: Inter, hosted on the site (48 KB, every weight; SIL Open Font License, see fonts/Inter-OFL.txt) ---- */
@font-face{font-family:"Inter";src:url("/assets/fonts/inter-latin-wght.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
:root{--ds-font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  /* Four text colors */
  --ds-ink:var(--ink,#f0f3f5);--ds-muted:var(--mut,#a7b3bd);--ds-gold:var(--gold,var(--neon,#e0b65f));--ds-on-gold:#08121b;
  /* Three corner radii (+ pill for main actions) */
  --ds-r-sm:10px;--ds-r-lg:20px;--ds-pill:999px;
  /* Page width, aligned with the header logo */
  --ds-page:1150px}
html body,body :is(button,input,select,textarea){font-family:var(--ds-font)}
body{font-feature-settings:"cv11" 1,"ss01" 1;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* Money and percentages line up */
:is(.big,.metric,#payOut,#cash,.pay-split b,.breakdown dd,.rcard .v,.ro .v,.amount,.amt,.dl-val,.tax-readout,.cashbar,.verdict-row,td,dd){font-variant-numeric:tabular-nums}

/* ---- Text colors: page variables point at the four ---- */
:root{--label:var(--ink,#f0f3f5)}

/* ---- One page width and left edge (matches the logo) ---- */
body :is(div.wrap,main.wrap,main.shell){max-width:var(--ds-page)!important;margin-left:auto;margin-right:auto;box-sizing:border-box}
/* Tool pages keep 24px side padding inside the box, so the box is 48px wider and the content still starts at the logo. */
body main.tool-main{max-width:calc(var(--ds-page) + 48px)!important;margin-left:auto;margin-right:auto;box-sizing:border-box}
body .site-footer{max-width:calc(var(--ds-page) + 48px)!important;font-family:var(--ds-font)}
body .site-page-notice{max-width:var(--ds-page);margin-left:auto;margin-right:auto}

/* ---- One page title + subtitle on every calculator ---- */
body :is(.wrap .chead,.tool-main .hero,.tool-main .intro){max-width:none;text-align:left}
body :is(.wrap .chead,.tool-main .hero,.tool-main .intro) h1{font-size:46px;font-weight:800;letter-spacing:-.035em;line-height:1.06;max-width:22ch}
body :is(.wrap .chead,.tool-main .hero,.tool-main .intro) h1+p{font-size:16px!important;line-height:1.55!important;color:var(--ds-muted);max-width:60ch;margin:10px 0 0!important}
body :is(.wrap .chead,.tool-main .hero,.tool-main .intro){padding:40px 0 28px!important;margin:0!important;border:0!important}
@media(max-width:620px){body :is(.wrap .chead,.tool-main .hero,.tool-main .intro){padding:24px 0 20px!important}}
@media(max-width:620px){body :is(.wrap .chead,.tool-main .hero,.tool-main .intro) h1{font-size:30px;letter-spacing:-.03em}}

/* ---- One section label: small gold caps ---- */
body :is(.eyebrow,.step-label,.tool-main section.panel:not(.learn)>h2:first-child,.tool-main section.card:not(.learn):not(.review-card)>h2:first-child){font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--ds-gold);line-height:1.4}
body .tool-main section.panel:not(.learn)>h2:first-child,body .tool-main section.card:not(.learn):not(.review-card)>h2:first-child{margin:0 0 18px}

/* ---- Type scale: 12 / 14 / 16 / 18-20 / 22-26 / 30-46 / 40-52 ---- */
body :is(.fl,.field-head,.tool-main label){font-size:14px}
body :is(.help,.field small,.tool-main .field>small,.hbc-estimate-note,.disclaimer,.byline,.hbc-short-notice){font-size:12px;line-height:1.55}
body :is(.tool-main p.small,.section-note,.date-note){font-size:14px;line-height:1.55}
body :is(#hbc-results-explained,.learn>p,.panel.learn p,.card.learn p,.lcard p,.lcard li){font-size:16px;line-height:1.65}
body :is(.lcard h4,.lcard h3){font-size:18px}
body :is(section.learn>h2,.panel.learn>h2,.hbc-videos h2,#results-explained-title){font-size:22px;letter-spacing:-.02em}
@media(min-width:861px){body :is(.lcard h4,.lcard h3){font-size:20px}body :is(section.learn>h2,.panel.learn>h2,.hbc-videos h2,#results-explained-title){font-size:26px}}
body .hbc-disclosure-content p{font-size:14px;line-height:1.6}

/* ---- Buttons: pill for main actions ---- */
body :is(a.button,button.button,.btn-primary,.btn-secondary,.hbc-download,#print,#downloadFeeSheet,.review-card a,.site-header__cta,.cta-actions a,.va-handoff){border-radius:var(--ds-pill)}
/* ---- Corners: 10px for inputs and small controls, 20px for cards ---- */
body :is(input.inp,select.inp,.tool-main input:not([type=checkbox]):not([type=radio]):not([type=range]),.tool-main select){border-radius:var(--ds-r-sm)}
body :is(.card-tinted,.inputs>.section,.pay,.rcard,.status,.gap-card,.panel,main .card,.lcard,.review-card,.hbc-videos,.cta,.hbc-fees,.hbc-market-rates,.choice,.trust-grid>article){border-radius:var(--ds-r-lg)}
/* FHA, VA and Conventional place the footer inside the page box: no extra side padding there. */
body .wrap .site-footer{padding-left:0!important;padding-right:0!important}
body :is(.wrap .chead,.tool-main .hero,.tool-main .intro) h1{margin:0!important}
body main.tool-main{padding-top:0!important}
/* Result card label = the same small gold caps as every section label. */
body .pay>.k:first-child{font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--ds-gold)}

/* ---- Snap leftover sizes onto the scale (these win over page styles; colors come from theme variables, so agent pages stay in their colors) ---- */
body :is(.dc-k,.hbc-estimate-note,.paybar__go,.verdict-pill,.coe-tag,.hbc-shorts__tag,.tax-status,.le-eyebrow,.slider-ends span,.sl,.sl span,.sl b,.credit-status,.auto-badge,.sources,.sources a,.tax-disclaimer){font-size:12px!important}
body :is(.hbc-disclosures>p,.site-footer p,.site-footer__links a,.site-page-notice,.hbc-market-source){font-size:12px!important;line-height:1.6!important}
body :is(.dl-name,.status .s,.notice,p.notice,.btn-secondary,.btn-primary,.hbc-download,.breakdown .row span,.breakdown .row b,#breakdown .row span,#breakdown .row b,.va-tax-callout,.rcard>.k,td,th){font-size:14px!important}
body :is(.hbc-video__title,.cta-text p,.cta p){font-size:16px!important}
body :is(.ro .v,.paybar__amt,.gap-card h3,.payoff-choice h3,.panel h3,.metric small){font-size:18px!important}
body :is(.dc-v,.hbc-footer-name,.rcard>h2){font-size:20px!important}
body :is(.cta-text h3,.cta h3,.cta h2){font-size:22px!important;letter-spacing:-.025em}
body :is(.payment-number){font-size:30px!important}
/* Main result numbers: one size everywhere */
body :is(.pay>.amt,.price-card .big,.rcard.price-card .big,#cash.metric,.tax-result-panel .metric>span,.metric#cash){font-size:46px!important;letter-spacing:-.03em;line-height:1.05}
@media(min-width:861px){
  body :is(.lcard h4,.lcard h3){font-size:20px}
  body :is(.cta-text h3,.cta h3,.cta h2){font-size:26px!important}
  body :is(.pay>.amt,.price-card .big,.rcard.price-card .big,#cash.metric,.tax-result-panel .metric>span,.metric#cash){font-size:56px!important}
}
body .hbc-footer-name b{font-size:inherit!important}

/* ---- Fold near-duplicate colors into the four (+ one green and one amber for status) ---- */
:root{--ds-good:#8fe0ab;--ds-warn:#f2c46b}
html.hbc-agent{--ds-good:#1a6b45;--ds-warn:#7f5300;--ds-on-gold:var(--agent-actionInk,var(--agent-primaryInk,#fff))}
body :is(.site-footer a,.site-footer__links a,.gap-card a,.hbc-video__meta,.paybar__meta,.pay>.amt,.va-tax-callout a,.notice a,.handoffs a,.sources a,main p a:not(.button):not([class*=btn]),.auto-badge.manual){color:var(--ds-gold)!important}
body :is(.ae-result-note,.pay-split__list li,.donut-note,.notice,p.notice,.split span,.affordability-page .chead p){color:var(--ds-muted)!important}
body :is(.btn-secondary,.split strong){color:var(--ds-ink)!important}
html:not(.hbc-agent) body .add-btn{color:var(--ds-ink)}
body :is(.btn-primary,.hbc-fees .hbc-download,.site-header__cta,.unit-seg button.on,a.button:not(.secondary):not(.outline),#print){color:var(--ds-on-gold)!important}
body :is(.verdict-pill[data-tone=good],.credit-status,.auto-badge:not(.manual),.paybar__meta.good){color:var(--ds-good)!important}
body .verdict-pill[data-tone=warn]{color:var(--ds-warn)!important}
/* Remaining sizes */
body :is(.row>span,.row>b,.row>strong,.dl-val,.rate-pick__more,.coe-tips li,.coe-arrow,figcaption strong,.card dt,.card dd,.payoff-intro-short){font-size:14px!important}
body .card .footnote{font-size:12px!important}
body :is(.panel .metric,.metric):not(#cash){font-size:46px!important;letter-spacing:-.03em;line-height:1.05}
@media(min-width:861px){body :is(.panel .metric,.metric):not(#cash){font-size:56px!important}}
body .stand-card strong,body .card strong{font-size:inherit}
/* One gold, one green, one amber on Austin's pages (agent pages keep their own palette) */
html:not(.hbc-agent){--gold:#e0b65f;--neon:#e0b65f;--green:#8fe0ab;--amber:#f2c46b}
body .tax-status{color:var(--ds-good)!important}
/* Secondary result figures (after a small result label) and text results stay one step smaller. */
body .result-label+.metric:not(#cash){font-size:30px!important}
body[data-tool="va-entitlement"] .metric:not(#cash){font-size:34px!important}
@media(min-width:861px){body .result-label+.metric:not(#cash){font-size:40px!important}body[data-tool="va-entitlement"] .metric:not(#cash){font-size:46px!important}}
body .savings .big{font-size:46px!important}
@media(min-width:861px){body .savings .big{font-size:56px!important}}
/* Results action card: Book (main), Apply, PDF. */
body .cta-results .cta-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body .cta-results .cta-actions>*{min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;cursor:pointer}
body .cta-results button.hbc-download{font:inherit;font-weight:650;background:transparent;border:1px solid var(--line,#293541)}
body .cta-results .cta-status:empty{display:none}
@media(max-width:620px){body .cta-results .cta-actions>*{width:100%}}
/* Desktop: the actions sit in an even two-column grid, so every button is the same width.
   An odd count lets the first (Book) span the full row. Phones keep one full-width column. */
body .cta-results .cta-actions>*{box-sizing:border-box;min-height:48px;white-space:nowrap}
@media(min-width:621px){
  body .cta-results .cta-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:0 1 520px;width:min(100%,520px)}
  body .cta-results .cta-actions>*{width:100%;padding-left:14px;padding-right:14px}
  body .cta-results .cta-actions>:first-child:nth-last-child(odd){grid-column:1/-1}
}
/* VA: the disability-rating link belongs with "See my cash to close", with room before the next card. */
body .va-tax-callout{border-top:0;padding:0;margin:12px 0 32px}
/* Footer: same content, tighter on phones. */
body .site-footer .ae-footer{margin-bottom:14px!important}
body .site-footer p{margin-bottom:10px!important}
body .site-footer .hbc-disclosures{margin-top:14px!important;padding-top:14px!important}
body .site-footer__links{gap:6px 18px}
body .site-footer__links a{font-size:14px!important}
@media(max-width:620px){
  body .site-footer{margin-top:28px!important;padding-top:22px!important;padding-bottom:28px!important}
  body .site-footer .ae-footer{gap:14px!important}
  body .site-footer .hbc-footer-name{margin-bottom:4px}
  body .site-footer__links{display:flex!important;flex-wrap:wrap;gap:0 18px!important;margin-top:14px!important;padding-top:8px!important}
  body .site-footer__links a{display:inline-flex;align-items:center;min-height:34px;padding:0!important;margin:0!important}
}
body .cta-results .hbc-download{color:var(--ds-ink)!important}
/* Phase 3: smaller cents on the big monthly payment; payment change after a market-rate tap. */
body .pay>.amt .cents{font-size:.5em;font-weight:700;letter-spacing:0;vertical-align:.62em;margin-left:1px;opacity:.85}
body .rate-pick__delta{margin:2px 0 0!important;font-size:12px!important;font-weight:650;color:var(--ds-muted)}
body .rate-pick__delta[hidden]{display:none}
body .rate-pick__delta[data-tone=good]{color:var(--ds-good)}
body .rate-pick__delta[data-tone=warn]{color:var(--ds-warn)}
/* Phase 3: "Where your income goes" as a stacked bar (income-bar.js). */
body .income-bar{margin:12px 0 14px}
body .income-bar__head{margin:0 0 10px!important;font-size:14px;color:var(--ds-muted)}
body .income-bar__head b{font-size:30px;font-weight:800;letter-spacing:-.03em;color:var(--ds-good);font-variant-numeric:tabular-nums;margin-right:4px}
body .income-bar.is-short .income-bar__head b{color:#ffa197}
body .income-bar__bar{display:flex;gap:2px;height:12px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.06)}
body .income-bar__bar span{min-width:3px}
body .donut-wrap.has-income-bar .donut-fig{display:none!important}
body .donut-wrap.has-income-bar{display:block!important}
body .donut-wrap.has-income-bar .dleg{display:grid!important;gap:8px;min-width:0!important;width:100%}
body .donut-wrap.has-income-bar .dl-row{display:grid!important;grid-template-columns:10px minmax(0,1fr) auto 3.2em;align-items:center;gap:10px;font-size:14px}
body .donut-wrap.has-income-bar .dl-pct{text-align:right;color:var(--ds-muted);font-size:12px;font-variant-numeric:tabular-nums}
/* One color per part, the same on every calculator */
body .ib-housing{--c:#e0b65f}body .ib-taxes{--c:#6f9fe0}body .ib-debts{--c:#e98a7a}body .ib-maint{--c:#4fb3a9}body .ib-child{--c:#a98be0}body .ib-residual{--c:#8fe0ab}
body .income-bar__bar span,body .has-income-bar .dl-row .dl-dot{background:var(--c)!important}
html.hbc-agent .ib-housing{--c:var(--agent-primary)}html.hbc-agent .ib-taxes{--c:#4a74c4}html.hbc-agent .ib-debts{--c:#c9604f}html.hbc-agent .ib-maint{--c:#2b8a80}html.hbc-agent .ib-child{--c:#8461c4}html.hbc-agent .ib-residual{--c:#2f8a57}
html.hbc-agent .income-bar__bar{background:rgba(0,0,0,.06)}
html.hbc-agent .income-bar.is-short .income-bar__head b{color:#a3302a}
body .donut-wrap.has-income-bar .dl-row[style*="none"]{display:none!important}
html body #donutLegend .dl-row .dl-dot{background:var(--c)!important}
/* Phase 3: price tiers (price-tiers.js). */
body .price-tiers{margin-top:14px}
body .price-tiers[hidden]{display:none}
body .price-tiers>.k{font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--ds-gold)}
body .price-tiers__sub{margin:6px 0 14px!important;font-size:14px;color:var(--ds-muted);line-height:1.5}
body .price-tiers__row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body .price-tier{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:76px;padding:10px 12px;border:1px solid var(--line,#293541);border-radius:var(--ds-r-sm);background:transparent;color:var(--ds-ink);font:inherit;text-align:left;cursor:pointer}
body .price-tier b{font-size:18px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
body .price-tier__name{font-size:12px;font-weight:650;color:var(--ds-muted)}
body .price-tier__dti{font-size:12px;color:var(--ds-muted)}
body .price-tier[aria-pressed=true]{border-color:var(--ds-gold);background:rgba(224,182,95,.10);box-shadow:inset 0 0 0 1px var(--ds-gold)}
body .price-tier:disabled{opacity:.55;cursor:default}
body .price-tiers__detail{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:14px;color:var(--ds-ink)}
body .price-tiers__use{min-height:40px;padding:8px 16px;border-radius:var(--ds-pill);border:1px solid var(--line,#293541);background:transparent;color:var(--ds-ink);font:inherit;font-weight:650;cursor:pointer}
body .price-tiers__note{margin:10px 0 0!important;font-size:12px;color:var(--ds-muted)}
@media(max-width:380px){body .price-tier b{font-size:16px}}
html.hbc-agent .price-tier[aria-pressed=true]{border-color:var(--agent-primary);background:var(--agent-accent);box-shadow:inset 0 0 0 1px var(--agent-primary)}
html.hbc-agent .price-tiers>.k{color:var(--agent-primary)!important}
html.hbc-agent .price-tiers__use{background:var(--agent-surface)!important;color:var(--agent-ink)!important;border-color:var(--agent-line)!important}
/* Phase 3: on phones, each group of summary tiles (Upfront MIP / Loan amount / P&I, income, MIP) is one compact card with rows. */
@media(max-width:520px){
  body .readouts{display:block!important;padding:2px 14px!important;border:1px solid var(--line,#293541);border-radius:var(--ds-r-sm);background:var(--ds-readout-bg,#0c151f)}
  body .readouts>.ro{display:flex!important;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:10px 0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  body .readouts>.ro+.ro{border-top:1px solid var(--line,#293541)!important}
  body .readouts>.ro .k{margin:0!important;font-size:14px!important}
  body .readouts>.ro .v{margin:0!important;font-size:16px!important;text-align:right;white-space:nowrap}
}
html.hbc-agent{--ds-readout-bg:var(--agent-surface)}
/* Present mode (FHA, VA, Conventional, Affordability): wider for screen recordings, leaving at least ~240px on each side for a talking head. */
body.present :is(div.wrap,main.wrap){max-width:clamp(1150px,calc(100vw - 480px),1400px)!important}
/* The plain "Compare market rates" link that the rate button replaces once the page has loaded. */
body .hbc-rate-link{display:block;grid-row:3;justify-self:start;margin-top:8px;padding:3px 0;color:var(--ds-gold);font-size:14px;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
/* Friendly loan-limit notes (FHA, Conventional, VA): informational, not an error. */
body .help.limit-note{margin-top:12px;padding:10px 14px;border-left:3px solid var(--ds-gold);border-radius:0 var(--ds-r-sm,8px) var(--ds-r-sm,8px) 0;background:var(--ds-readout-bg,rgba(255,255,255,.04));color:var(--ds-ink);font-size:14px;line-height:1.55;text-wrap:pretty}
body .help.limit-note[hidden]{display:none}
body .help.limit-note a{color:var(--ds-gold);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
/* Line breaks: no lone word on the last line. "pretty" re-balances paragraph endings (Chrome, Edge, Safari 26+);
   "balance" evens out short multi-line text such as headings, labels and buttons. Older browsers simply ignore these. */
p,li,dd,dt,label,summary,figcaption,td,th,blockquote,.help,.notice,.small,.lcard p{text-wrap:pretty}
h1,h2,h3,h4,h5,.k,.fl,.eyebrow,button,.btn,.hbc-video__title,figcaption,summary,th,.price-tiers__sub{text-wrap:balance}
.tax-steps article h3{display:flow-root} /* sit beside the floated step number so balanced wrapping works in Safari */
.sources a{white-space:nowrap}
/* Phone page titles: a touch smaller on narrow phones so "Mortgage Payoff Calculator" etc. stay on one line. */
@media(max-width:620px){body :is(.wrap .chead,.tool-main .hero,.tool-main .intro) h1{font-size:clamp(26px,6.9vw,30px)}}
/* Readability floor for the smallest labels (sample Loan Estimate captions, agent header line). */
body .le-form-caption,body .le-paper-footer,body .le-paper-footer span{font-size:10px}
html.hbc-agent body .agent-identity small{font-size:12px;text-wrap:balance}
/* Results as numbered steps, with the math under each ratio (ratio-explain.js). */
body .step-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:22px;height:22px;margin-right:8px;border:1px solid color-mix(in srgb,var(--ds-gold) 55%,transparent);border-radius:50%;color:var(--ds-gold);font-size:12px;font-weight:700;letter-spacing:0;line-height:1;text-transform:none;vertical-align:middle;font-variant-numeric:tabular-nums}
body .ratio-math{display:grid;gap:4px;margin:12px 0 0;padding-top:12px;border-top:1px solid color-mix(in srgb,var(--ds-muted) 22%,transparent);color:var(--ds-muted);font-size:14px;line-height:1.5;text-wrap:pretty;font-variant-numeric:tabular-nums}
body .ratio-math[hidden]{display:none}
body .ratio-math__room{color:var(--ds-ink)}
body .ratio-math__room b{font-weight:700;color:var(--ds-good)}
body .ratio-math__room.is-over b{color:var(--ds-warn)}
/* Share this scenario (share-scenario.js) */
body .hbc-share__status{margin:10px 0 0;min-height:0;color:var(--ds-good)}
body .hbc-share__status:empty{display:none}
body .ratio-math .nowrap{white-space:nowrap}
body .rcard.compare>.step-head{display:flex;align-items:center;margin:0 0 14px}
/* Closing Costs: total out of pocket (cash to close + money paid before closing). */
body .out-of-pocket{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:14px 0 6px;padding:12px 14px;border-radius:var(--ds-r-sm,10px);background:color-mix(in srgb,var(--ds-gold) 10%,transparent);color:var(--ds-ink);font-size:15px;line-height:1.45}
body .out-of-pocket[hidden]{display:none}
body .out-of-pocket b{font-weight:800;font-variant-numeric:tabular-nums}
body .out-of-pocket span{flex-basis:100%;color:var(--ds-muted);font-size:13px}
/* San Antonio BAH helper (bah-helper.js) */
body .bah-quick{display:inline-block;margin:10px 0 0;padding:6px 0;border:0;background:none;color:var(--ds-gold);font:inherit;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body .bah-helper{margin:-2px 0 14px;padding:12px 14px;border-left:3px solid var(--ds-gold);border-radius:0 var(--ds-r-sm,10px) var(--ds-r-sm,10px) 0;background:var(--ds-readout-bg,rgba(255,255,255,.04))}
body .bah-helper__row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start}
body .bah-helper__field{display:grid;gap:6px;margin:0;color:var(--ds-muted);font-size:13px;font-weight:600}
body .bah-helper__field select{width:100%}
body .bah-helper__note{margin:10px 0 0!important;font-size:13px;line-height:1.5;color:var(--ds-muted)}
/* VA: funding fee reason, and "Keep it, sell it or refinance it" (va-limit-note.js, va-keep-sell-refi.js) */
body .ro-why{margin-top:4px;color:var(--ds-muted);font-size:12px;font-weight:500;line-height:1.35;font-variant-numeric:tabular-nums}
body .ro-why:empty{display:none}
body .ksr-q{margin:0 0 16px}
body .ksr-q>.field{margin:0}
body .ksr-inputs{margin-top:14px;padding:14px;border-left:3px solid var(--ds-gold);border-radius:0 var(--ds-r-sm,10px) var(--ds-r-sm,10px) 0;background:var(--ds-readout-bg,rgba(255,255,255,.04))}
body .ksr-inputs[hidden],body .ksr-coe[hidden],body .ksr-refi[hidden],body .ksr-county[hidden]{display:none}
body .ksr-inputs .row2{margin-bottom:12px}
body .ksr-inputs .field{margin:0}
body .ksr-coe,body .ksr-refi,body .ksr-county,body .ksr-inputs>.field{margin:0 0 12px}
body .ksr-link{padding:0;border:0;background:none;color:var(--ds-gold);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body .rcard.ksr[hidden]{display:none}
body .ksr-sub,body .ksr-note{color:var(--ds-muted);font-size:14px;line-height:1.5;margin:6px 0 14px}
body .ksr-note{margin:14px 0 0;font-size:13px}
body .ksr-note a{color:var(--ds-gold)}
body .ksr-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:1.35;font-variant-numeric:tabular-nums}
body .ksr-table th,body .ksr-table td{padding:8px 4px;border-bottom:1px solid color-mix(in srgb,var(--ds-muted) 18%,transparent);text-align:right;vertical-align:top}
body .ksr-table thead th{color:var(--ds-ink);font-size:14px;font-weight:700;border-bottom-color:color-mix(in srgb,var(--ds-muted) 35%,transparent)}
body .ksr-table tbody th{color:var(--ds-muted);font-weight:500;text-align:left;width:31%}
body .ksr-table td{color:var(--ds-ink);font-weight:600}
body .ksr-table .ksr-down{color:var(--ds-gold);font-size:15px;font-weight:800}
body .ksr-table small{display:block;color:var(--ds-muted);font-size:11.5px;font-weight:500}
body .ksr-table .ok{color:var(--ds-good)}
body .ksr-table .short{color:var(--ds-warn)}
body .ksr-table tr.ksr-actions th,body .ksr-table tr.ksr-actions td{border-bottom:0;padding-top:12px}
body .ksr-use{padding:7px 12px;border:1px solid color-mix(in srgb,var(--ds-gold) 60%,transparent);border-radius:999px;background:none;color:var(--ds-gold);font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
body .ksr-hint,body .ksr-foot{margin:10px 0 0!important;color:var(--ds-muted);font-size:12.5px}
body .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body .ksr-table td{white-space:nowrap}
body .ksr-table td small,body .ksr-table td span{white-space:nowrap}
@media(max-width:520px){body .ksr-table{font-size:12px}body .ksr-table th,body .ksr-table td{padding:7px 2px}body .ksr-table tbody th{width:24%;hyphens:auto}body .ksr-table thead th{font-size:13px}body .ksr-table .ksr-down{font-size:13.5px}body .ksr-table td:nth-child(n){white-space:normal}body .ksr-table td{word-break:keep-all}body .ksr-use{padding:6px 9px;font-size:12px}}
@media(max-width:380px){body .ksr-table{font-size:11px}body .ksr-table thead th{font-size:12px}body .ksr-table .ksr-down{font-size:12px}body .ksr-table small{font-size:10px}body .ksr-table tbody th{width:22%}body .ksr-use{padding:5px 7px;font-size:11px}}
body .ksr-grid{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;contain:paint}
@media(max-width:380px){body .ksr-table{min-width:340px}}
body .ksr-key{margin:0 0 12px;color:var(--ds-ink);font-size:15px;line-height:1.45}
body .ksr-key b{color:var(--ds-gold);font-weight:800}
body .ksr-est-line{color:var(--ds-ink)}
body .ksr-est-line:empty{display:none}
body .ksr-path{margin:4px 0 12px}
body .ksr-table th.is-on,body .ksr-table td.is-on{background:color-mix(in srgb,var(--ds-gold) 9%,transparent)}
body .ksr-table thead th.is-on{color:var(--ds-gold)}
body .ksr-change{display:block;margin-left:auto;font-size:11.5px;font-weight:500;white-space:nowrap}
body .ksr-foot{margin:10px 0 0;padding-left:18px;color:var(--ds-muted);font-size:12.5px;line-height:1.5}
body .ksr-foot li{margin:2px 0}
body .seg.is-locked{opacity:.75}
body .seg.is-locked button{cursor:not-allowed}
body .ksr-q .ksr-link{display:block;margin-top:4px;text-align:left;font-size:inherit}
body .ksr-table .ksr-change{display:block;margin:2px 0 0 auto;text-align:right}
@media(max-width:520px){body .ksr-table td{font-size:11.5px;padding-left:4px}body .ksr-table td .ksr-down{font-size:13px}}
/* The comparison table sets its own sizes (the shared table rule above forces 14px). */
body #ksrCard .ksr-table td,body #ksrCard .ksr-table tbody th{font-size:13px!important}
body #ksrCard .ksr-table thead th{font-size:14px!important}
@media(max-width:520px){body #ksrCard .ksr-table td{font-size:11.5px!important}body #ksrCard .ksr-table tbody th{font-size:12px!important}body #ksrCard .ksr-table thead th{font-size:13px!important}}
@media(max-width:380px){body #ksrCard .ksr-table td{font-size:11px!important}body #ksrCard .ksr-table tbody th{font-size:11px!important}body #ksrCard .ksr-table thead th{font-size:12px!important}}
/* Income/debt rows: long type names (e.g. "Rental income, other property (75%)") shrink instead of widening the row on small phones. */
body .item-row>*{min-width:0}
body .item-row .isel{width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
