/* Independent detail page reference layout. Home stylesheet supplies the shared brand and navigation only. */
.detail-page{max-width:1500px;margin:auto;padding:28px 0 0}
.detail-hero{display:grid;grid-template-columns:minmax(0,24fr) minmax(0,76fr);gap:20px;margin:0 30px;align-items:start}
.detail-intro{position:relative;min-width:0;padding:18px 0 0;display:flex;flex-direction:column;align-items:flex-start}
.detail-intro .ref-pill{font-size:14px;padding:6px 13px;min-height:32px}
.detail-intro h1{font-size:clamp(29px,3.35vw,49px);font-weight:800;line-height:1.22;letter-spacing:-.065em;color:#073b2e;margin:22px 0 16px;overflow-wrap:normal;word-break:keep-all}
.detail-intro h1 span{font-size:.95em;color:#ed6c53}
.detail-intro>p{font-size:16px;line-height:1.65;letter-spacing:-.3px;color:#3d4b43;max-width:325px;word-break:keep-all}
.detail-art{position:relative;margin-top:24px;width:100%;height:245px;background:radial-gradient(ellipse at 48% 63%,#f5eddb66,transparent 70%);isolation:isolate}
.detail-art img{position:absolute;height:100%;width:80%;left:3%;object-fit:contain;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse 74% 75% at 50% 50%,black 58%,transparent 99%)}
.detail-art-badge{position:absolute;right:6%;top:4%;display:grid;place-items:center;width:73px;height:73px;border-radius:22px;background:linear-gradient(140deg,#e5f7e9,#bfe3cc);box-shadow:0 9px 15px #224c3520;color:#098456;transform:rotate(7deg)}
.detail-art-badge svg{width:46px;height:46px}
.detail-workbench{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:14px;min-width:0;align-items:stretch}
.detail-input-panel,.detail-result-panel{min-width:0;border:1px solid #e4e3df;border-radius:22px;box-shadow:0 7px 18px #324a3b0b;padding:22px 24px;background:#fdfbf9}
.detail-input-panel{display:flex;flex-direction:column}
.detail-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:0;margin:-9px -10px 20px}
.detail-tabs a{min-height:47px;display:flex;justify-content:center;align-items:center;gap:4px;border:1px solid #e5e4e0;border-radius:11px;padding:7px 3px;font-size:12px;font-weight:650;letter-spacing:-.45px;text-align:center;line-height:1.25;background:#f9f8f5;word-break:keep-all}
.detail-tabs svg{width:18px;height:18px;color:#387a58}.detail-tabs a.active{background:linear-gradient(140deg,#0a7553,#075440);color:#fff;border-color:#075440}.detail-tabs a.active svg{color:#fff}
.detail-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:20px}
.detail-panel-head h2{display:flex;align-items:center;gap:7px;color:#17362a;font-size:21px;line-height:1.25;font-weight:800;letter-spacing:-.65px;word-break:keep-all}
.detail-panel-head h2 svg{width:24px;height:24px;color:#0b8356}.detail-panel-head>a,.detail-copy{font-size:11px;white-space:nowrap;color:#33594a;border:1px solid #cddcd2;border-radius:20px;padding:6px 9px;background:#fdfbf9}
.detail-input-panel form{display:flex;flex-direction:column;gap:12px}
.fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
.form-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:650;color:#1c2a22;letter-spacing:-.25px}
.field-control{display:flex;align-items:center;gap:6px;min-width:0;min-height:45px;border:1px solid #dadcd8;border-radius:10px;background:#fffdfa;padding:0 11px}
.field-control:focus-within{border-color:#0c8b5d;box-shadow:0 0 0 2px #0c8b5d12}
.field-control input,.field-control select{border:0;outline:none!important;min-width:0;width:100%;background:transparent;font-size:16px;font-weight:650;line-height:1.3;padding:10px 0;color:#14261e;font-variant-numeric:tabular-nums}
.field-control select{padding-right:4px}.field-control .unit{font-size:13px;color:#47594f;white-space:nowrap;font-weight:400}
.field-control input[type=number]{appearance:textfield;-moz-appearance:textfield}.field-control input::-webkit-inner-spin-button,.field-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.detail-presets{display:flex;gap:4px;flex-wrap:wrap}.detail-presets button{font-size:11px;line-height:1.2;background:#f1f2ee;border:1px solid #e4e6df;border-radius:6px;padding:5px 8px;color:#30453b}.detail-presets button:hover,.detail-presets button.active{background:#e1f3e7;color:#07583e;border-color:#9acdb1}
.detail-method{grid-column:1/-1;min-width:0;border:0;padding:0;margin:0}.detail-method legend{font-size:14px;font-weight:700;margin-bottom:8px}.detail-method>div{display:flex;gap:5px}.detail-method label{position:relative;flex:1;min-width:0;cursor:pointer}.detail-method input{position:absolute;opacity:0;width:1px;height:1px}.detail-method span{display:flex;align-items:center;justify-content:center;min-height:43px;padding:6px 3px;border:1px solid #dddeda;border-radius:10px;background:#f2f2ef;text-align:center;white-space:nowrap;font-size:12px;font-weight:650;letter-spacing:-.4px}.detail-method input:checked+span{background:linear-gradient(130deg,#0d7957,#07543e);border-color:#07543e;color:white}.detail-method input:checked+span:before{content:"✓";margin-right:4px}.detail-method input:focus-visible+span{outline:2px solid #0b7e54;outline-offset:2px}
.form-actions{display:flex;gap:8px;align-items:stretch;margin-top:4px}.detail-submit{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;border:1px solid #fa7158;min-height:52px;border-radius:13px;background:linear-gradient(110deg,#ff8b70,#ff7a61);color:white;font-size:15px;font-weight:750;letter-spacing:-.35px;box-shadow:0 2px 5px #c8693f10}.detail-submit:hover{background:#e7654e}.detail-submit svg{width:19px;height:19px}.detail-reset{border:1px solid #daddd8;border-radius:12px;background:#f7f7f4;padding:0 14px;white-space:nowrap;font-size:13px;font-weight:650}.error-text{font-size:13px;color:#b63c2c;line-height:1.4}
.detail-help{font-size:12px;line-height:1.5;color:#496155;margin-top:16px}.detail-help summary{cursor:pointer}.detail-help p{margin:7px 0}.detail-help a,.detail-tax-note a{color:#08754f;text-decoration:underline}.detail-tax-note{font-size:12px;color:#5a4c36;background:#f9f0db;border-radius:9px;padding:10px;margin-top:10px}
.detail-loan-group{min-width:0;display:grid;gap:10px;align-content:start}.detail-loan-group h3{font-size:13px;background:#eeefeb;border-radius:8px;text-align:center;padding:9px 3px;margin:0;letter-spacing:-.35px}.detail-loan-group.new h3{background:#dff2e7;color:#075940}.detail-refinance .fields-grid{gap:18px 12px}.detail-income{grid-column:1/-1;background:#edf5ed;border-radius:10px;padding:10px;font-size:12px}.detail-income>div{display:flex;gap:5px;margin-top:5px}.detail-income input{width:100%;min-width:0;padding:8px;border:1px solid #c8dccd;border-radius:6px}.detail-income button{white-space:nowrap;background:#0c6b4b;border:0;color:white;padding:8px;border-radius:6px}
.detail-result-panel{background:linear-gradient(135deg,#eaf7ef,#e2f4eb);border-color:#d7eadc;display:flex;flex-direction:column;gap:14px;padding:24px}
.detail-result-panel .detail-panel-head{margin-bottom:0}.detail-result-panel .detail-panel-head h2{color:#0a432e}.detail-copy{background:#ffffffc2;cursor:pointer}
.detail-result-main{display:flex;flex-direction:column;gap:6px;padding:4px 0 12px;border-bottom:1px solid #cddfd2;min-width:0}
.detail-result-main>span{font-size:15px;font-weight:700;color:#184d37}.detail-result-main>strong{font-size:clamp(27px,3.45vw,50px);font-weight:800;color:#08784c;line-height:1.2;letter-spacing:-1.6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.detail-result-cards{display:flex;flex-direction:column;gap:0;background:#ffffff9c;border-radius:12px;padding:4px 13px;min-width:0}
.detail-result-cards .mini-stat{display:flex;align-items:baseline;justify-content:space-between;gap:7px;padding:10px 0;border-bottom:1px solid #deebe0;min-width:0}
.detail-result-cards .mini-stat:last-child{border-bottom:0}.detail-result-cards .mini-stat>span{font-size:13px;color:#35483c;word-break:keep-all}.detail-result-cards .mini-stat strong{font-size:14px;letter-spacing:-.35px;color:#103e2d;text-align:right;overflow-wrap:anywhere;max-width:60%;font-variant-numeric:tabular-nums}
.detail-composition{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:center;gap:14px;padding:10px 0}
.detail-donut{width:100%;max-width:165px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#098957 0 var(--share,50%),#ff9a7f var(--share,50%) 100%);display:grid;place-items:center;justify-self:center}
.detail-donut>div{width:73%;height:73%;border-radius:50%;background:#f9fbf6;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6px;gap:5px}.detail-donut small{font-size:11px;color:#3e5145}.detail-donut strong{font-size:12px;overflow-wrap:anywhere;line-height:1.3;color:#123b2a}
.detail-legend{display:flex;flex-direction:column;gap:13px}.detail-legend>div{display:flex;align-items:flex-start;gap:7px;font-size:12px}.detail-legend i{width:11px;height:11px;margin-top:4px;flex-shrink:0;border-radius:3px;background:#098957}.detail-legend>div:nth-child(2) i{background:#ff9a7f}.detail-legend b{display:block;font-size:13px;overflow-wrap:anywhere;color:#164732}.detail-result-note{font-size:12px;line-height:1.55;color:#385b49;background:#f8fbf5b8;border-radius:10px;padding:11px 12px;margin-top:auto;word-break:keep-all}
.detail-schedule-link{display:flex;justify-content:flex-end;gap:6px;font-size:13px;color:#075a40;font-weight:700}.detail-schedule-link svg{width:17px;height:17px}
.detail-visual-table{width:100%;border-collapse:collapse;font-size:11px;background:#ffffff9c;border-radius:10px;overflow:hidden;table-layout:fixed}.detail-visual-table td,.detail-visual-table th{padding:8px 4px;text-align:right;border-bottom:1px solid #d9e9dc;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.detail-visual-table th:first-child,.detail-visual-table td:first-child{text-align:left;padding-left:8px}.detail-visual-table thead{background:#d4eddf}.detail-visual-table th{font-size:11px;white-space:normal}.detail-visual-table td:last-child{font-weight:750;color:#075b3f}
.detail-bars{display:flex;flex-direction:column;gap:10px;background:#ffffffa0;border-radius:10px;padding:13px}.detail-bars>div{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:12px}.detail-bars>div>i{grid-column:1/-1;height:9px;background:#dce7dc;border-radius:8px;overflow:hidden}.detail-bars>div>i>b{display:block;height:100%;background:#119568;border-radius:8px}.detail-bars>div:nth-child(2)>i>b{background:#ff997b}.detail-bars>div:nth-child(3)>i>b{background:#7cbca0}
.detail-page .ref-tools{width:auto;margin:36px 30px 0}.detail-page .ref-tools-head h2{font-size:27px}.detail-page .ref-tile{min-height:110px}.detail-page .ref-tile[aria-current=page]{background:#e5f4ea;border-color:#a8d8bc}.detail-page .ref-tile:first-child:not([aria-current=page]){background:#fdfbf9;border-color:#e6e4e0}.detail-page .ref-banners{width:auto;margin:25px 30px 0}.detail-lower{margin:38px 30px 50px;display:flex;flex-direction:column;gap:22px}
.schedule-section,.explain-card,.faq-section,.static-article{background:#fdfbf9;border:1px solid #e4e4dc;border-radius:18px;padding:24px;min-width:0}
.section-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.section-title-row h2,.explain-card h2,.faq-section h2{font-size:23px;font-weight:800;letter-spacing:-.6px;color:#113e2f;margin:4px 0 10px}.section-index{font-size:12px;color:#08784c;font-weight:700}.btn-light{border:1px solid #ccd9cd;border-radius:10px;background:#f9fbf8;padding:9px 13px;font-size:13px;white-space:nowrap}.table-scroll{overflow-x:auto}.table-scroll table{border-collapse:collapse;width:100%;min-width:620px;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.table-scroll th,.table-scroll td{padding:10px 12px;text-align:right;border-bottom:1px solid #e4e8df}.table-scroll th:first-child{text-align:left}.table-scroll thead{background:#edf5ed}.table-scroll .table-hint{text-align:left;color:#557063}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.explain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.explain-card p,.faq-item p{font-size:14px;line-height:1.75;color:#3c5246;margin:8px 0}.formula{background:#edf5ed;padding:12px;border-radius:10px;margin-top:14px}.formula>span{color:#075d40;font-size:12px;font-weight:700}.faq-item{border-bottom:1px solid #e5e6df;padding:14px 0;font-size:15px}.faq-item:last-child{border:0}.faq-item summary{font-weight:650}.static-layout{max-width:1000px;margin:35px auto 55px}.static-article h1{font-size:34px;color:#073b2e;margin-bottom:16px;line-height:1.3}.static-article h2{font-size:22px;color:#124b36;margin:24px 0 10px}.static-article p{font-size:15px;line-height:1.8;margin:10px 0}.static-article a:not(.btn){color:#075d40;text-decoration:underline}.static-article .document-help{margin:24px 0}.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:#52675e;margin:0 0 14px}.article-updated{color:#6c7b71;font-size:12px!important}.static-article .btn{display:inline-block;margin-top:16px}
@media(min-width:1400px){.detail-hero{grid-template-columns:24fr 76fr;margin:0 35px;gap:24px}.detail-input-panel,.detail-result-panel{padding:24px 26px}.detail-workbench{gap:18px}.detail-art{height:280px}.detail-panel-head h2{font-size:23px}.detail-tabs a{font-size:14px}.field-control input{font-size:17px}.detail-result-cards .mini-stat strong{font-size:16px}}
@media(max-width:1100px){.detail-hero{grid-template-columns:minmax(0,22fr) minmax(0,78fr);gap:14px;margin:0 20px}.detail-input-panel,.detail-result-panel{padding:16px}.detail-tabs{margin:0 0 15px}.detail-tabs a{font-size:11px}.detail-tabs svg{display:none}.detail-panel-head h2{font-size:18px}.detail-intro h1{font-size:32px}.detail-intro p{font-size:14px}.detail-art{height:200px}.detail-result-main>strong{font-size:34px}.fields-grid{gap:13px 9px}.detail-method span{font-size:11px}.detail-page .ref-tools,.detail-page .ref-banners,.detail-lower{margin-left:20px;margin-right:20px}}
@media(max-width:900px){.detail-page{padding-top:16px}.detail-hero{display:flex;flex-direction:column;margin:0 19px;gap:18px}.detail-intro{width:100%;min-height:155px;padding:0 30% 0 0;justify-content:center}.detail-intro h1{font-size:32px;margin:10px 0}.detail-intro>p{font-size:14px}.detail-art{position:absolute;width:28%;right:0;top:0;height:100%;margin:0}.detail-art-badge{width:48px;height:48px;border-radius:13px}.detail-art-badge svg{width:31px;height:31px}.detail-workbench{width:100%}.detail-input-panel,.detail-result-panel{padding:18px}.detail-panel-head h2{font-size:20px}.detail-tabs a{font-size:12px}.detail-tabs svg{display:block;width:16px;height:16px}.detail-page .ref-tools,.detail-page .ref-banners,.detail-lower{margin-left:19px;margin-right:19px}}
@media(max-width:600px){.detail-page{padding-top:14px}.detail-hero{margin:0 13px;gap:13px}.detail-intro{min-height:148px;padding-right:30%}.detail-intro .ref-pill{font-size:11px;min-height:25px;padding:4px 9px}.detail-intro h1{font-size:26px;margin:8px 0;letter-spacing:-.6px}.detail-intro>p{font-size:12px;line-height:1.5}.detail-art{width:30%;height:116px;top:22px}.detail-art-badge{width:38px;height:38px;border-radius:10px}.detail-art-badge svg{width:24px;height:24px}.detail-workbench{grid-template-columns:minmax(0,1fr);gap:12px}.detail-input-panel,.detail-result-panel{border-radius:17px;padding:15px}.detail-tabs{gap:3px;margin:-3px -3px 15px}.detail-tabs a{font-size:11px;min-height:43px;flex-direction:column;gap:3px}.detail-tabs svg{width:16px;height:16px}.detail-panel-head{margin-bottom:16px}.detail-panel-head h2{font-size:18px}.detail-panel-head h2 svg{width:21px;height:21px}.detail-panel-head>a,.detail-copy{font-size:11px}.fields-grid{gap:13px 10px}.field-control{min-height:42px;padding:0 8px}.field-control input,.field-control select{font-size:15px}.form-field{font-size:12px;line-height:1.4}.detail-presets button{padding:4px 6px;font-size:10px}.detail-method span{font-size:12px;min-height:39px}.detail-submit{min-height:47px;font-size:14px}.detail-reset{font-size:12px;padding:0 12px}.detail-result-main>strong{font-size:34px}.detail-result-cards .mini-stat>span{font-size:12px}.detail-result-cards .mini-stat strong{font-size:14px}.detail-page .ref-tools,.detail-page .ref-banners,.detail-lower{margin-left:13px;margin-right:13px}.detail-page .ref-tools-head h2{font-size:19px}.detail-page .ref-tools-head>a{font-size:11px}.detail-page .ref-tile{min-height:103px}.explain-grid{grid-template-columns:1fr}.schedule-section,.explain-card,.faq-section,.static-article{padding:16px}.section-title-row h2,.explain-card h2,.faq-section h2{font-size:20px}.static-article h1{font-size:27px}.static-layout{margin-top:20px}.detail-visual-table{font-size:10px}.detail-visual-table th{font-size:10px}}
@media(max-width:340px){.detail-input-panel,.detail-result-panel{padding:12px}.detail-intro h1{font-size:23px}.detail-method span{font-size:11px}.field-control input{font-size:14px}.detail-submit{font-size:12px}.detail-result-main>strong{font-size:29px}.detail-legend b{font-size:11px}}

/* Use the corresponding illustration extracted from the two individual reference designs. */
.detail-mortgage .detail-art img,.detail-refinance .detail-art img{width:100%;left:0;mask-image:none}
.detail-mortgage .detail-art-badge,.detail-refinance .detail-art-badge{display:none}
.input-mode{display:flex;border:1px solid #d7e3d9;border-radius:12px;padding:3px;gap:4px;background:#f0f4ee}.input-mode button{flex:1;border:0;background:transparent;border-radius:9px;padding:10px;font-weight:700;font-size:14px}.input-mode button[aria-pressed=true]{background:#075b40;color:white}.mode-note{font-size:12px;color:#486052;line-height:1.55;background:#edf5ed;border-radius:9px;padding:10px 12px}.easy-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.easy-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:13px;font-weight:700}.easy-control{display:flex;align-items:center;gap:5px;border:1px solid #daddd6;border-radius:10px;background:#fffdfa;padding:0 8px;min-height:44px}.easy-control input{flex:1;min-width:0;border:0;background:transparent;padding:10px 0;font:inherit;font-size:16px;appearance:textfield}.easy-control input::-webkit-inner-spin-button,.easy-control input::-webkit-outer-spin-button{appearance:none}.easy-control select{border:0;border-left:1px solid #e2e7df;background:transparent;max-width:55%;font-size:11px;padding:5px 0;color:#375447}.easy-field>small{font-size:11px;font-weight:400;color:#627267;line-height:1.35}.easy-field>select{padding:10px;border:1px solid #daddd6;border-radius:10px;background:#fffdfa}.easy-tax-help,.easy-tax-confirm{grid-column:1/-1;font-size:12px;line-height:1.6}.easy-tax-help{background:#fff3dc;padding:10px;border-radius:9px}.easy-tax-confirm{display:flex;gap:6px;align-items:flex-start}.easy-tax-confirm input{accent-color:#075b40;margin-top:4px}.detail-housing-coop-tax .easy-fields{grid-template-columns:1fr}.detail-input-panel form>.detail-method{margin-top:5px}

.easy-unit{font-size:12px;color:#375447;white-space:nowrap;padding:0 4px}.easy-control select[hidden]{display:none!important}

/* Responsive sizing pass: keep the existing palette, components and layout hierarchy. */
.detail-page{padding-top:28px}
.detail-hero{grid-template-columns:minmax(0,24fr) minmax(0,76fr);gap:18px;align-items:start}
.detail-intro{padding-top:16px}
.detail-intro h1{font-size:clamp(29px,3.05vw,46px);margin:16px 0 12px;line-height:1.18;overflow-wrap:anywhere}
.detail-intro>p{font-size:15px;line-height:1.6}
.detail-art{height:clamp(170px,15vw,225px);margin-top:15px}
.detail-art img,.detail-mortgage .detail-art img,.detail-refinance .detail-art img{width:100%;left:0;object-fit:contain;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse 76% 76% at 50% 50%,#000 62%,transparent 99%)}
.detail-workbench{gap:14px;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
.detail-input-panel,.detail-result-panel{padding:17px 20px}
.detail-tabs{margin:-4px -6px 12px;gap:4px}
.detail-tabs a{min-width:0;min-height:44px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.detail-tabs a svg{width:17px;height:17px}
.detail-panel-head{margin-bottom:12px}
.detail-panel-head h2{min-width:0;overflow-wrap:anywhere;font-size:20px}
.detail-panel-head>a,.detail-copy{flex-shrink:0}
.detail-input-panel form{gap:10px}
.mode-note{padding:8px 10px;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.easy-fields,.fields-grid,.detail-refinance .fields-grid{gap:10px 12px}
.easy-field,.form-field{gap:4px;min-width:0;font-size:13px;line-height:1.35}
.easy-field>label,.easy-field>small,.form-field>span{overflow-wrap:anywhere}
.easy-field>small{font-size:11px;line-height:1.3}
.easy-control,.field-control{min-height:42px}
.easy-control input,.field-control input,.field-control select{min-width:0;font-size:16px;padding:8px 0}
.easy-control input{width:0}
.easy-control select{flex:0 0 auto;max-width:55%}
.easy-unit{flex-shrink:0}
.detail-method legend{margin-bottom:6px}
.detail-method span{min-height:42px;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;line-height:1.3}
.form-actions{margin-top:0}
.detail-submit{min-height:48px;min-width:0;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.detail-reset{padding:0 12px}
.detail-help{margin-top:10px}
.detail-result-panel{gap:11px}
.detail-result-main{gap:3px;padding:3px 0 10px}
.detail-result-main>strong{font-size:clamp(29px,3.05vw,46px);line-height:1.18}
.detail-result-cards{padding:2px 12px}
.detail-result-cards .mini-stat{padding:8px 0}
.detail-result-cards .mini-stat>span{min-width:0;overflow-wrap:anywhere}
.detail-result-cards .mini-stat strong{min-width:0;max-width:63%;font-size:14px}
.detail-composition{padding:5px 0;gap:12px}
.detail-donut{max-width:145px}
.detail-donut strong{font-size:12px;max-width:100%}
.detail-legend{gap:10px;min-width:0}
.detail-legend>div,.detail-legend>div>span{min-width:0}
.detail-visual-table{font-size:12px;line-height:1.35}
.detail-visual-table td,.detail-visual-table th{padding:7px 4px;overflow-wrap:anywhere}
.detail-result-note{margin-top:0;padding:8px 10px;line-height:1.45;overflow-wrap:anywhere}
.detail-schedule-link{margin-top:auto;min-height:25px}
.detail-page .ref-tools{margin-top:32px}
.detail-page .ref-tile{min-height:116px}
.detail-page .ref-banners{margin-top:28px}
@media(min-width:1300px){
 .detail-hero{margin-left:30px;margin-right:30px}
 .detail-intro h1{font-size:clamp(36px,3vw,46px)}
 .detail-input-panel,.detail-result-panel{padding:20px 22px}
 .detail-tabs a{font-size:13px}
 .detail-result-cards .mini-stat strong{font-size:15px}
}
@media(min-width:1101px) and (max-width:1299px){
 .detail-hero{grid-template-columns:minmax(0,22fr) minmax(0,78fr);gap:14px;margin-inline:24px}
 .detail-input-panel,.detail-result-panel{padding:16px}
 .detail-tabs a{font-size:12px}
 .detail-tabs svg{display:none}
 .detail-intro h1{font-size:32px}
 .detail-result-main>strong{font-size:36px}
}
@media(max-width:1100px){
 .detail-page{padding-top:20px}
 .detail-hero{display:flex;flex-direction:column;gap:16px;margin-inline:24px}
 .detail-intro{width:100%;min-height:136px;padding:0 30% 0 0;justify-content:center}
 .detail-intro h1{font-size:32px;margin:8px 0}
 .detail-intro>p{max-width:none;font-size:14px}
 .detail-art{position:absolute;width:28%;right:0;top:0;height:100%;margin:0}
 .detail-art img{width:100%;left:0}
 .detail-workbench{width:100%}
 .detail-tabs svg{display:block}
 .detail-tabs a{font-size:12px}
 .detail-page .ref-tools,.detail-page .ref-banners,.detail-lower{margin-inline:24px}
 .detail-result-main>strong{font-size:38px}
}
@media(max-width:740px){
 .detail-page{padding-top:14px}
 .detail-hero{margin-inline:13px;gap:12px}
 .detail-intro{min-height:130px;padding-right:30%}
 .detail-intro h1{font-size:clamp(23px,6.5vw,30px);margin:7px 0}
 .detail-intro>p{font-size:12px;line-height:1.5}
 .detail-art{height:100%;max-height:135px;top:0;width:29%}
 .detail-art-badge{width:38px;height:38px;border-radius:11px}
 .detail-art-badge svg{width:24px;height:24px}
 .detail-workbench{grid-template-columns:minmax(0,1fr);gap:12px}
 .detail-input-panel,.detail-result-panel{padding:14px;border-radius:17px}
 .detail-tabs{margin:0 0 10px;gap:4px}
 .detail-tabs a{min-height:46px;font-size:12px;flex-direction:column;gap:3px;padding:5px 3px}
 .detail-panel-head h2{font-size:18px}
 .detail-panel-head>a,.detail-copy{min-height:36px;display:inline-flex;align-items:center}
 .easy-fields,.fields-grid,.detail-refinance .fields-grid{gap:12px 10px}
 .easy-control,.field-control{min-height:46px}
 .easy-control input,.field-control input,.field-control select{font-size:16px}
 .easy-control select{font-size:12px}
 .easy-field>small{font-size:11px}
 .detail-method span{min-height:44px;font-size:12px}
 .detail-submit,.detail-reset{min-height:46px}
 .detail-result-main>strong{font-size:clamp(29px,8vw,38px)}
 .detail-result-cards .mini-stat strong{font-size:14px}
 .detail-result-note{font-size:12px}
 .detail-page .ref-tools,.detail-page .ref-banners,.detail-lower{margin-inline:13px}
 .detail-page .ref-tools{margin-top:24px}
 .detail-page .ref-tile{min-height:108px}
 .detail-page .ref-tools-head h2{font-size:19px}
 .detail-visual-table{font-size:11px}
}
@media(max-width:360px){
 .detail-input-panel,.detail-result-panel{padding:12px}
 .easy-fields,.fields-grid,.detail-refinance .fields-grid{grid-template-columns:minmax(0,1fr)}
 .detail-tabs a{font-size:11px}
 .detail-method span{font-size:11px}
 .detail-result-cards .mini-stat{align-items:flex-start}
 .detail-panel-head h2{font-size:17px}
 .detail-visual-table td,.detail-visual-table th{padding:6px 3px}
 .detail-donut{max-width:120px}
}

/* On short desktop viewports, preserve the form hierarchy with a denser vertical rhythm. */
@media(min-width:1101px){
 .detail-art{isolation:auto}
 .detail-input-panel form{gap:8px}
 .detail-panel-head{margin-bottom:10px}
 .detail-tabs{margin-bottom:10px}
 .easy-fields,.fields-grid,.detail-refinance .fields-grid{row-gap:8px}
 .easy-field,.form-field{gap:3px}
 .easy-control,.field-control{min-height:40px}
 .easy-control input,.field-control input,.field-control select{padding:7px 0}
 .mode-note{padding:7px 9px;line-height:1.4}
 .detail-method span{min-height:40px}
 .detail-submit{min-height:46px}
 .detail-help{margin-top:8px}
}
@media(max-width:740px){
 .detail-intro{min-height:116px}
 .detail-tabs{margin-bottom:8px}
 .detail-input-panel form{gap:9px}
 .detail-panel-head{margin-bottom:10px}
}

/* Repayment comparison: the comparison table already contains all nine
   amounts. Do not repeat the same numbers in a second, tall results list. */
.detail-repayment-compare #result-cards{display:none}
.detail-repayment-compare #detail-visual{min-width:0;width:100%}
.detail-repayment-compare .detail-visual-table{font-size:13px;line-height:1.45}
.detail-repayment-compare .detail-visual-table th,
.detail-repayment-compare .detail-visual-table td{padding:12px 5px}
.detail-repayment-compare .detail-visual-table th:first-child{width:23%}
.detail-repayment-compare .detail-result-panel .detail-result-note{margin-top:0}
.detail-repayment-compare .detail-workbench{align-items:start}
.detail-repayment-compare .detail-art{height:clamp(140px,12vw,180px)}
@media(min-width:1101px){
 .detail-repayment-compare .detail-input-panel,.detail-repayment-compare .detail-result-panel{min-height:390px}
 .detail-repayment-compare .detail-visual-table td:last-child{font-size:14px}
}
@media(max-width:740px){
 .detail-repayment-compare .detail-art{height:100%;max-height:135px}
 .detail-repayment-compare .detail-visual-table{font-size:11px}
 .detail-repayment-compare .detail-visual-table th,.detail-repayment-compare .detail-visual-table td{padding:9px 3px}
}
@media(min-width:1101px){
 .detail-repayment-compare .detail-visual-table th,.detail-repayment-compare .detail-visual-table td{padding:8px 5px}
 .detail-repayment-compare .detail-result-panel{gap:9px}
 .detail-repayment-compare .ref-tools{margin-top:24px}
 .detail-repayment-compare .ref-tools-head{margin-bottom:12px}
 .detail-repayment-compare .ref-tile{min-height:108px}
}

/* All detail pages use the same four slots. Secondary calculators identify themselves
   in the existing input heading and in the full calculator list, not by moving tabs. */
.detail-tabs a span{min-width:0;overflow-wrap:anywhere;word-break:keep-all;text-align:center}
.detail-tabs a svg{flex-shrink:0}
.detail-tabs a[aria-current="page"]{background:linear-gradient(140deg,#0a7553,#075440);color:#fff;border-color:#075440}
.detail-tabs a[aria-current="page"] svg{color:#fff}
.detail-page .ref-tile[aria-current="page"]{box-shadow:inset 0 0 0 1px #78bd9d}
