/* ===== calculator page ===== */
.sc-page { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.crumbs { display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink-3); padding:22px 0 6px; flex-wrap:wrap; }
.crumbs a:hover{ color:var(--brand-700); } .crumbs .sep{ opacity:.5; }
.art-head { padding: 14px 0 26px; }
.art-head .tags{ display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.art-head h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing:-.03em; }
.art-head .lead { font-size:19px; color:var(--ink-2); margin-top:16px; max-width:720px; }
.art-head .byline{ display:flex; align-items:center; gap:14px; margin-top:20px; flex-wrap:wrap; font-size:13.5px; color:var(--ink-3); }
.mini-av{ width:30px;height:30px;border-radius:50%;background:linear-gradient(145deg,var(--brand-500),var(--brand-700));display:grid;place-items:center;color:#fff;font-size:12px;font-weight:700; }
.byline b{ color:var(--ink-2); font-weight:600; }

/* calculator widget */
.calc { display:grid; grid-template-columns: 1fr .95fr; gap:0; border:1px solid var(--line-2); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-md); margin: 8px 0 40px; background:var(--surface); }
.calc-in { padding:30px; }
.calc-out { padding:30px; background: var(--brand-900); color:#fff; position:relative; }
.calc h2.cw-t{ font-size:19px; margin-bottom:4px; }
.calc .cw-sub{ font-size:13.5px; color:var(--ink-3); margin-bottom:22px; }
.field { margin-bottom:20px; }
.field label { display:flex; justify-content:space-between; align-items:baseline; font-size:14.5px; font-weight:600; margin-bottom:9px; }
.field label .hint{ font-weight:500; color:var(--ink-3); font-size:12.5px; }
.inp-wrap{ position:relative; display:flex; align-items:center; }
.inp-wrap input, .inp-wrap select{ width:100%; border:1.5px solid var(--line); border-radius:var(--r-sm); padding:13px 44px 13px 15px; font-family:var(--font); font-size:17px; font-weight:600; color:var(--ink); outline:none; background:var(--surface); transition:border-color .15s; -moz-appearance:textfield; }
.inp-wrap select{ padding-right:15px; cursor:pointer; }
.inp-wrap input::-webkit-outer-spin-button,.inp-wrap input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.inp-wrap input:focus, .inp-wrap select:focus{ border-color:var(--brand-500); }
.inp-wrap .unit{ position:absolute; right:14px; font-size:14px; color:var(--ink-3); font-weight:600; pointer-events:none; }
.inp-wrap input.err{ border-color:var(--danger); }
.field .erruler{ color:var(--danger); font-size:12.5px; margin-top:6px; display:none; }
input[type=range]{ -webkit-appearance:none; width:100%; height:5px; border-radius:5px; background:var(--brand-100); margin-top:14px; outline:none; }
input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:20px;height:20px;border-radius:50%; background:var(--brand-600); border:3px solid #fff; box-shadow:var(--sh); cursor:pointer; }
input[type=range]::-moz-range-thumb{ width:20px;height:20px;border-radius:50%; background:var(--brand-600); border:3px solid #fff; cursor:pointer; }

.seg{ display:flex; gap:6px; background:var(--surface-2); border-radius:var(--r-pill); padding:5px; }
.seg button{ flex:1; border:none; background:transparent; padding:10px; border-radius:var(--r-pill); font-size:14px; font-weight:600; color:var(--ink-2); transition:all .15s; }
.seg button.on{ background:var(--surface); color:var(--brand-700); box-shadow:var(--sh-sm); }

.calc-out .out-eyebrow{ font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; color:#7FA593; font-weight:700; }
.out-main{ margin:14px 0 6px; }
.out-main .v{ font-family:var(--display); font-weight:700; font-size:44px; letter-spacing:-.03em; }
.out-main .u{ font-size:18px; color:#9EC4B1; font-weight:600; }
.out-rows{ margin-top:24px; border-top:1px solid rgba(255,255,255,.12); }
.out-row{ display:flex; justify-content:space-between; align-items:center; padding:13px 0; border-bottom:1px solid rgba(255,255,255,.1); font-size:14.5px; color:#BFD8CC; }
.out-row b{ color:#fff; font-weight:600; font-size:16px; }
.out-bar{ display:flex; height:10px; border-radius:6px; overflow:hidden; margin-top:22px; background:rgba(255,255,255,.1); }
.out-bar .b1{ background:var(--brand-500); } .out-bar .b2{ background:var(--gold-500); }
.out-legend{ display:flex; gap:18px; margin-top:12px; font-size:12.5px; color:#9EC4B1; }
.out-legend i{ width:10px;height:10px;border-radius:3px;display:inline-block;margin-right:6px;vertical-align:middle; }
.out-note{ margin-top:20px; font-size:12px; color:#7FA593; line-height:1.5; }

/* content prose */
.prose h2{ font-size:clamp(24px,3vw,30px); margin:48px 0 16px; letter-spacing:-.02em; }
.prose h3{ font-size:20px; margin:28px 0 10px; }
.prose p{ color:var(--ink-2); margin:0 0 16px; }
.prose b, .prose strong{ color:var(--ink); }
.prose a{ color:var(--brand-700); border-bottom:1px solid var(--brand-100); font-weight:600; }
.prose ul{ color:var(--ink-2); margin:0 0 16px; padding-left:0; list-style:none; display:grid; gap:10px; }
.prose ul li{ position:relative; padding-left:30px; }
.prose ul li::before{ content:""; position:absolute; left:4px; top:9px; width:7px;height:7px;border-radius:2px; background:var(--brand-500); }
.prose ol{ color:var(--ink-2); margin:0 0 16px; padding-left:22px; display:grid; gap:9px; }
.formula{ background:var(--brand-900); color:#EAF6EF; border-radius:var(--r); padding:24px 26px; font-size:18px; margin:18px 0 14px; overflow-x:auto; }
.formula .frm{ font-family:var(--display); font-size:22px; letter-spacing:0; }
.formula .leg{ color:#9EC4B1; font-size:13.5px; margin-top:14px; line-height:1.7; }
.formula .leg b{ color:#F8D38A; font-family:var(--display); }
.example{ background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r); padding:6px 26px; box-shadow:var(--sh-sm); margin:18px 0; }
.example .ex-row{ display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px dashed var(--line); font-size:15.5px; color:var(--ink-2); }
.example .ex-row:last-child{ border-bottom:none; } .example .ex-row b{ color:var(--ink); }
.example .ex-total{ background:var(--brand-50); margin:0 -26px; padding:16px 26px; border-radius:0 0 var(--r) var(--r); }
.example .ex-total b{ color:var(--brand-700); font-size:18px; }

/* faq */
.faq{ border-top:1px solid var(--line); margin-top:8px; }
.faq details{ border-bottom:1px solid var(--line); }
.faq summary{ list-style:none; cursor:pointer; padding:20px 0; display:flex; justify-content:space-between; align-items:center; gap:20px; font-size:17.5px; font-weight:600; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary .ic{ width:26px;height:26px;border-radius:50%;background:var(--brand-50);color:var(--brand-600);display:grid;place-items:center;flex:none; transition:transform .2s; }
.faq details[open] summary .ic{ transform:rotate(45deg); }
.faq .ans{ padding:0 0 22px; color:var(--ink-2); max-width:760px; }

/* disclaimer + sources */
.disc-box{ display:flex; gap:16px; background:var(--gold-50); border:1px solid var(--gold-100); border-radius:var(--r); padding:20px 22px; margin:36px 0 24px; }
.disc-box svg{ width:24px;height:24px;color:var(--gold-600);flex:none; }
.disc-box b{ display:block; margin-bottom:4px; } .disc-box p{ font-size:14px; color:var(--ink-2); }
.sources{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; font-size:14px; color:var(--ink-3); margin-bottom:10px; }
.sources a{ color:var(--brand-700); font-weight:600; border-bottom:1px solid var(--brand-100); }
.updated{ font-size:13.5px; color:var(--ink-3); }

/* related */
.related{ background:var(--surface-2); margin-top:64px; padding:56px 0; }
.rel-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px; }
.rel-card{ background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r); padding:20px; display:flex; gap:14px; align-items:center; transition:transform .15s,box-shadow .2s; }
.rel-card:hover{ transform:translateY(-3px); box-shadow:var(--sh-md); }
.rel-card .ic{ width:42px;height:42px;border-radius:12px;background:var(--brand-50);color:var(--brand-600);display:grid;place-items:center;flex:none; }
.rel-card b{ font-size:15.5px; } .rel-card span{ font-size:13px;color:var(--ink-3); }

@media (max-width:860px){
  .calc{ grid-template-columns:1fr; }
  .rel-grid{ grid-template-columns:1fr; }
}
