/* before. / Visual system, responsive rhythm, and platform-stable icons. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { font-variant-emoji:text; }
img,svg { max-width:100%; }
.line-icon { width:1.15em; height:1.15em; display:inline-block; vertical-align:-.18em; flex-shrink:0; }
.check-icon .line-icon { width:10px; height:10px; }
.progress-ring .line-icon { width:14px; height:14px; }
.group-icon .line-icon { width:19px; height:19px; }
.button>span:has(.line-icon),.home-tool-link>span { display:inline-flex; align-items:center; }
h1,h2,h3 { text-wrap:balance; }
p { text-wrap:pretty; }
.hero-copy,.hero-scene,.section-heading>*,.home-section-heading>*,.topic-introduction>* { min-width:0; }
.hero-scene { border-radius:18px; }
.hero-scene::after { content:''; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 70px #f7f7ef44; pointer-events:none; }
.hero-description { font-size:16px; line-height:1.8; }
.hero-footnote { font-size:11px; }
.hero-actions { align-items:center; }
.home-tools { padding-top:28px; }
.home-section-heading .eyebrow { margin-bottom:16px; }
.home-section-heading h2 { line-height:1.12; }
.home-tool { overflow:hidden; padding:25px 23px; border-radius:14px; background:#fcfbf6; min-height:440px; }
.home-tool-art { display:flex; align-items:center; justify-content:center; height:158px; margin:10px -9px 22px; border-bottom:1px solid #e7e8df; background:radial-gradient(ellipse at 50% 65%,#e8eddf80,transparent 70%); }
.home-tool-art img { width:212px; height:150px; object-fit:contain; transition:transform .35s ease; }
.home-tool:hover .home-tool-art img { transform:translateY(-5px) rotate(-2deg); }
.home-tool h3 { font-size:26px; line-height:1.18; letter-spacing:-.9px; }
.home-tool p { font-size:14px; line-height:1.65; }
.home-tool-link { font-size:12px; padding-top:15px; border-top:1px solid #e4e6dc; }
.home-tool-link>span { width:29px; height:29px; border:1px solid #d7dccd; border-radius:50%; justify-content:center; flex-shrink:0; transition:background .2s,color .2s; }
.home-tool:hover .home-tool-link>span { background:var(--blue); color:white; border-color:var(--blue); }
.home-practice { border-radius:18px; background:radial-gradient(ellipse at 80% 50%,#f4f6e9 0,transparent 60%),#e9eddf; }
.home-practice h2 { line-height:1.13; }
.home-practice .eyebrow { margin-bottom:16px; }
.practice-orbit { transform:scale(1.12); }
.topic-introduction { display:flex; align-items:center; gap:16px; max-width:520px; }
.topic-introduction .section-intro { flex:1; max-width:320px; font-size:14px; }
.topic-art { width:150px; height:112px; object-fit:contain; flex-shrink:0; }
.section-heading { align-items:center; }
.guide-header,.practice-heading { padding-bottom:25px; border-bottom:1px solid var(--line); }
.section-heading h2,.guide-header h2,.practice-heading h2 { line-height:1.12; }
.guide-page,.practice-card,.practice-summary,.input-panel,.result-panel,.finance-inputs,.finance-result,.budget-inputs,.budget-result { border-radius:12px; }
button,input,select { min-width:0; }
summary { gap:12px; }
summary::marker { color:#60724d; }
fieldset { min-inline-size:0; }
.chart-legend>div,.finance-metrics>div,.guide-receipts dl>div { gap:12px; }
.chart-legend dd,.finance-metrics dd { text-align:right; }
.site-footer { padding-bottom:45px; }
@media(min-width:621px) and (max-width:1050px) {
 .home-tool { min-height:390px; }
 .home-tool-art { height:145px; }
 .hero h1 { font-size:clamp(42px,5.8vw,64px); }
 .topic-art { width:100px; height:90px; }
 .topic-introduction { max-width:45%; gap:8px; }
}
@media(max-width:760px) and (min-width:621px) {
 .hero { grid-template-columns:1fr; max-width:600px; gap:32px; }
 .hero-copy { text-align:center; }
 .hero .eyebrow,.hero-actions,.hero-footnote { justify-content:center; }
 .hero-description { margin-inline:auto; max-width:460px; }
 .hero-scene { width:100%; max-width:500px; margin-inline:auto; min-height:430px; }
 .house-art { width:100%; left:0; top:0; }
 .hero h1 { font-size:60px; }
 .hero-footnote { max-width:none; }
 .lab-grid,.finance-grid { grid-template-columns:1fr; }
 .result-panel { position:static; }
}
@media(max-width:620px) {
 .wrap { width:calc(100% - 40px); }
 .site-header.wrap { padding:15px 20px 0; gap:8px 12px; }
 .site-header nav { margin:0; }
 .site-header nav a { padding:12px 0; min-height:44px; font-size:13px; }
 .site-header .session-progress { min-height:32px; }
 .hero { padding-top:36px; gap:30px; }
 .hero-copy { text-align:center; }
 .hero .eyebrow { justify-content:center; font-size:9px; letter-spacing:1.3px; }
 .hero h1 { font-size:clamp(41px,11.8vw,64px); letter-spacing:-.058em; line-height:1.08; margin-top:20px; }
 .hero-description { font-size:15px; line-height:1.75; max-width:390px; margin:22px auto 0; }
 .hero-actions { display:flex; flex-direction:column; gap:3px; margin-top:24px; }
 .hero .button { width:100%; max-width:350px; min-height:52px; font-size:14px; margin:0; justify-content:space-between; padding:15px 22px; border-radius:8px; }
 .hero-secondary { justify-content:center; min-height:46px; font-size:13px; border:0; }
 .hero-footnote { justify-content:center; font-size:10px; line-height:1.6; margin-top:8px; gap:6px; }
 .check-icon { flex-shrink:0; }
 .hero-scene { margin:0 auto; min-height:380px; width:100%; }
 .house-art { top:10px; left:0; width:100%; }
 .listing-label { left:20px; top:21px; font-size:8px; }
 .rent-ticket { top:75px; left:17px; }
 .truth-ticket { width:235px; right:20px; bottom:36px; }
 .truth-ticket .hero-question { font-size:27px; letter-spacing:-1px; }
 .scene-caption { font-size:7px; letter-spacing:.75px; left:20px; bottom:14px; }
 .home-tools { padding-top:24px; padding-bottom:36px; }
 .home-section-heading { text-align:center; margin-bottom:26px; }
 .home-section-heading .eyebrow { justify-content:center; font-size:9px; }
 .home-section-heading h2 { font-size:36px; letter-spacing:-1.7px; }
 .home-section-heading>p { font-size:14px; line-height:1.7; margin-top:15px; }
 .home-tool-grid { grid-template-columns:1fr; gap:16px; }
 .home-tool { padding:23px; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) 112px; column-gap:12px; }
 .home-tool-number { font-size:9px; letter-spacing:1.1px; grid-column:1; margin-bottom:15px; }
 .home-tool-art { grid-column:2; grid-row:1/4; height:125px; margin:0 -9px 0 0; border:0; align-self:center; }
 .home-tool-art img { width:135px; height:115px; max-width:none; }
 .home-tool h3 { grid-column:1; font-size:27px; line-height:1.15; margin:0; max-width:none; letter-spacing:-1px; }
 .home-tool h3 br { display:none; }
 .home-tool p { grid-column:1/-1; font-size:14px; max-width:none; margin:16px 0 19px; }
 .home-tool-link { grid-column:1/-1; font-size:13px; align-items:center; margin:0; padding-top:14px; gap:14px; }
 .home-practice { padding:28px 24px; gap:26px; text-align:center; }
 .home-practice .eyebrow { justify-content:center; font-size:8px; letter-spacing:1px; }
 .home-practice h2 { font-size:33px; letter-spacing:-1.3px; }
 .home-practice h2 br { display:none; }
 .home-practice>div>p:not(.eyebrow) { font-size:14px; }
 .home-practice .button { width:100%; justify-content:space-between; font-size:13px; }
 .home-practice-status { padding-top:22px; }
 .practice-orbit { display:block; transform:scale(.8); margin-bottom:-10px; height:120px; }
 .home-practice .home-practice-status>p { margin-top:10px; }
 .decision-picker.wrap { padding-inline:20px; }
 .topic-tabs>button { border-radius:6px; }
 .topic-tabs strong { font-size:12px; }
 #tool-sections { gap:8px; }
 #tool-sections a { min-height:44px; font-size:11px; }
 #tools-view .section-heading h2 { font-size:37px; letter-spacing:-1.8px; }
 .section-intro,.depth-section .section-intro { font-size:14px; line-height:1.75; }
 .topic-introduction { max-width:none; gap:12px; margin-top:13px; }
 .topic-introduction .section-intro { margin:0; max-width:none; font-size:14px; }
 .topic-art { width:102px; height:90px; }
 .section-heading .eyebrow { font-size:9px; }
 .guide-header h2,.practice-heading h2 { font-size:35px; letter-spacing:-1.6px; }
 .guide-header>p,.practice-heading>p { max-width:none; line-height:1.75; }
 .guide-page h3,.practice-card h3 { line-height:1.16; letter-spacing:-1px; }
 .guide-progress li { min-height:48px; }
 .guide-actions .button { width:100%; justify-content:space-between; gap:12px; }
 .guide-budget-actions .button { white-space:normal; gap:15px; }
 input[type=number],select { font-size:16px!important; min-height:44px; }
 .rent-value input,.large-money-field input,.budget-income input { font-size:42px!important; }
 .input-panel,.result-panel,.finance-inputs,.finance-result,.budget-inputs,.budget-result { padding:23px 20px; }
 .money-field label { min-height:32px; line-height:1.45; font-size:12px; }
 .fields-grid { gap:16px 12px; align-items:end; }
 .input-group summary { font-size:13px; }
 .group-total { flex-shrink:0; }
 .result-tabs button { flex:1; min-height:44px; padding:10px 7px; }
 .finance-field-grid { gap:18px 12px; }
 .finance-field-grid label { min-height:32px; line-height:1.5; font-size:12px; }
 .finance-metrics>div { align-items:baseline; }
 .school-type-switch { flex-direction:column; }
 .school-type-switch button { min-height:44px; }
 .budget-field { grid-template-columns:minmax(0,1fr) 100px; gap:12px; }
 .budget-field label { font-size:13px; }
 .budget-annual-math { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
 .budget-annual-answer output { font-size:29px; }
 .budget-annual-answer>span { font-size:11px; }
 .statement-brand { flex-wrap:wrap; }
 .statement-brand span:last-child { font-size:9px; }
 .practice-tracks { gap:10px; }
 .practice-tracks strong { font-size:17px; }
 .practice-tracks small { margin-top:5px; font-size:12px; }
 .practice-markers { gap:4px; }
 .practice-markers button { min-width:0; min-height:44px; }
 .practice-actions .button { gap:14px; }
 .mobile-total-bar { bottom:max(12px,env(safe-area-inset-bottom)); border-radius:12px; padding:11px 15px; }
 body[data-view=tools] .site-footer { padding-bottom:110px; }
 .site-footer { text-align:center; align-items:center; gap:18px; }
 .footer-fine { text-align:center; }
 .site-footer .footer-fine p { font-size:11px; }
}
@media(max-width:360px) {
 .wrap { width:calc(100% - 32px); }
 .site-header.wrap { padding-inline:16px; }
 .hero h1 { font-size:40px; }
 .hero-scene { min-height:340px; }
 .truth-ticket { width:210px; right:17px; }
 .truth-ticket .hero-question { font-size:24px; }
 .home-tool { padding:20px; grid-template-columns:minmax(0,1fr) 85px; gap:0 8px; }
 .home-tool h3 { font-size:25px; }
 .home-tool-art img { width:110px; }
 .home-tool-number { font-size:8px; letter-spacing:.8px; }
 .home-tool-art { height:105px; }
 .home-section-heading h2 { font-size:32px; }
 .topic-art { width:82px; height:80px; }
 .input-group summary { font-size:12px; gap:6px; }
 .group-icon { display:none; }
 .budget-field { grid-template-columns:minmax(0,1fr) 85px; }
 .finance-topline,.budget-topline { flex-wrap:wrap; gap:6px; }
 .budget-annual-math { grid-template-columns:1fr auto; }
 .budget-annual-math>span { display:none; }
 .budget-annual-answer { max-width:105px; }
}
@media(prefers-reduced-motion:reduce) {
 .home-tool-art img,.home-tool-link>span { transition:none; }
 .home-tool:hover .home-tool-art img { transform:none; }
}
/* Equal-width tabs keep labels centered on WebKit as well as Chromium. */
.topic-tabs>button { display:flex; align-items:center; justify-content:center; }
.topic-tabs>button>span { min-width:0; }
@media(max-width:620px) { .topic-tabs>button { padding-inline:3px; } }
