/* Verify Institute — Mortgage Payment calculator styles (Claude, 2026-11-09). Uses site tokens with fallbacks. */
.mtg{--m-ink:var(--ink,#183a2e);--m-line:var(--line,#d7dfd0);--m-muted:var(--muted,#617161);--m-acc:#1f5e49;--m-soft:#eef4e6;--m-card:#fffefa;
 display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:24px;align-items:start;color:var(--m-ink);font-variant-numeric:tabular-nums}
.mtg *{box-sizing:border-box}
.mtg-inputs,.mtg-results,.mtg-compare,.mtg-chart,.mtg-sched,.mtg-how{background:var(--m-card);border:1px solid var(--m-line);border-radius:12px;padding:20px;min-width:0}
.mtg-compare,.mtg-chart,.mtg-sched,.mtg-how{grid-column:1/-1}
.mtg fieldset{border:0;margin:0;padding:0}.mtg legend,.mtg-eyebrow{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--m-muted);margin-bottom:12px;padding:0}
.mtg-field{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;font-size:13px;min-width:0}.mtg-field>span:first-child{font-weight:600}
.mtg-field small{font-size:11px;line-height:1.5;color:var(--m-muted)}
.mtg-input{display:flex;align-items:stretch;border:1px solid #bccbb6;border-radius:8px;background:#fff;overflow:hidden;min-height:46px}
.mtg-input:focus-within{outline:2px solid #6c9a74;outline-offset:1px}
.mtg-input i{font-style:normal;display:flex;align-items:center;padding:0 10px;background:var(--m-soft);color:var(--m-muted);font-size:14px}
.mtg-input input{border:0;flex:1;min-width:0;padding:10px;font-size:16px;color:inherit;background:transparent;font-variant-numeric:tabular-nums}
.mtg-input input:focus{outline:none}.mtg [aria-invalid="true"]{color:#8a2f1a}.mtg-err{font-style:normal;font-size:12px;color:#8a2f1a}.mtg-err:empty{display:none}
.mtg-pair{display:grid;grid-template-columns:1.6fr 1fr;gap:8px}
.mtg-range{width:100%;accent-color:var(--m-acc);min-height:28px;margin:2px 0}
.mtg-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mtg-chips button{min-height:40px;padding:0 14px;border:1px solid #bccbb6;border-radius:999px;background:#fff;color:inherit;font-size:13px;cursor:pointer}
.mtg-chips button[aria-checked="true"]{background:var(--m-acc);border-color:var(--m-acc);color:#fff}.mtg-chips button:hover{border-color:var(--m-acc)}
.mtg-custom{width:96px;min-height:40px;border-radius:999px}.mtg-custom input{padding:6px 4px 6px 12px;font-size:14px}
.mtg-panel{border-top:1px solid var(--m-line);padding:14px 0 2px}.mtg-panel summary{cursor:pointer;font-weight:600;font-size:14px;display:flex;justify-content:space-between;gap:10px;list-style:none;min-height:32px;align-items:center}
.mtg-panel summary::after{content:'+';font-weight:400;font-size:18px;color:var(--m-muted)}.mtg-panel[open] summary::after{content:'−'}
.mtg-panel summary b{margin-left:auto;font-weight:500;color:var(--m-acc);font-size:13px}.mtg-panel>*:not(summary){margin-top:12px}
.mtg-hint{font-size:12px;line-height:1.6;color:var(--m-muted);background:var(--m-soft);border-radius:8px;padding:10px 12px}
.mtg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.mtg-results{position:sticky;top:16px;background:#eaf1df;border-color:#d3dec4}
.mtg-hero strong{display:block;font-family:var(--serif,Georgia,serif);font-size:44px;line-height:1.1;color:#1b533f}
.mtg-hero span{display:block;font-size:12px;line-height:1.6;color:#51664a;margin-top:6px}
.mtg-break{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:center;margin:18px 0 6px}.mtg-donut{width:120px;height:120px}
.mtg-legend{list-style:none;margin:0;padding:0;font-size:13px}.mtg-legend li{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;padding:5px 0;border-bottom:1px solid #d3dec4}
.mtg-legend i{width:12px;height:12px;border-radius:3px}.mtg-legend b{font-weight:600}
.mtg-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:16px 0 0}.mtg-stats dt{font-size:11px;color:#51664a}.mtg-stats dd{margin:3px 0 0;font-size:17px;font-weight:600}
.mtg-stats small{display:block;font-size:11px;font-weight:400;color:#51664a}
.mtg-save{margin:16px 0 0;background:#fff;border-left:4px solid #c0843d;padding:10px 12px;font-size:13px;line-height:1.6;border-radius:0 8px 8px 0}
.mtg-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.mtg-actions button{min-height:40px;padding:0 12px;border:1px solid #aabf9d;border-radius:8px;background:#fff;color:inherit;font-size:13px;cursor:pointer}
.mtg-actions button[data-act="pin"]{background:var(--m-acc);color:#fff;border-color:var(--m-acc)}
.mtg-msg{font-size:12px;color:#33583f;min-height:1em;margin:8px 0 0}.mtg-link{border:0;background:none;color:var(--m-acc);text-decoration:underline;cursor:pointer;font-size:12px;padding:4px 0}
.mtg h3{font-size:18px;margin:0 0 12px}.mtg-table-wrap{overflow-x:auto;max-width:100%}
.mtg-table{border-collapse:collapse;width:100%;font-size:13px}.mtg-table th,.mtg-table td{padding:8px 10px;border-bottom:1px solid var(--m-line);text-align:right;white-space:nowrap}
.mtg-table th:first-child,.mtg-table td:first-child{text-align:left}.mtg-table thead th{font-size:11px;color:var(--m-muted);font-weight:600;vertical-align:bottom}
.mtg-table thead small{display:block;font-weight:400;white-space:normal;min-width:120px}.mtg-table td.low{background:#dcebcf;font-weight:600}
.mtg-sched-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:10px}.mtg-sched-head h3{margin:0}
.mtg-sched-scroll{max-height:420px;overflow:auto}.mtg-sched-scroll thead th{position:sticky;top:0;background:var(--m-card)}
.mtg-chart svg{width:100%;height:auto;display:block}.mtg-chart text{font-size:11px;fill:#5a6d5a}.mtg-chart .g{stroke:#e2e8dc}
.mtg-chart .area{fill:#1f5e49;opacity:.12}.mtg-chart .bal{fill:none;stroke:#1f5e49;stroke-width:2.5}.mtg-chart .base{fill:none;stroke:#8a9a86;stroke-width:2;stroke-dasharray:6 5}.mtg-chart .mi{stroke:#c0843d;stroke-width:2;stroke-dasharray:3 4}
.mtg-key{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;color:var(--m-muted);margin:8px 0 0}.mtg-key span::before{content:'';display:inline-block;width:18px;height:3px;margin-right:6px;vertical-align:middle}
.k-bal::before{background:#1f5e49}.k-base::before{background:#8a9a86}.k-mi::before{background:#c0843d}
.mtg-how summary{cursor:pointer;font-weight:600;font-size:16px}.mtg-how li,.mtg-how p{font-size:13px;line-height:1.8}.mtg-how h4{font-size:14px;margin:18px 0 6px}.mtg-how a{color:var(--m-acc)}
.mtg-sticky{display:none}
@media (max-width:860px){.mtg{grid-template-columns:1fr;gap:16px}.mtg-results{position:static}
 .mtg-sticky{display:flex;position:sticky;top:0;z-index:5;justify-content:space-between;align-items:center;background:#1b533f;color:#fff;padding:10px 16px;border-radius:10px;font-size:13px}
 .mtg-sticky strong{font-size:20px}.mtg-inputs,.mtg-results,.mtg-compare,.mtg-chart,.mtg-sched,.mtg-how{padding:16px}}
@media (max-width:420px){.mtg-grid,.mtg-stats{grid-template-columns:1fr}.mtg-break{grid-template-columns:96px 1fr}.mtg-donut{width:96px;height:96px}.mtg-hero strong{font-size:38px}}
@media print{.mtg-inputs .mtg-range,.mtg-actions,.mtg-sticky,.mtg-sched-head .mtg-chips,.mtg-link{display:none}.mtg{display:block}.mtg-results{position:static}.mtg-sched-scroll{max-height:none}}
@media (prefers-reduced-motion:reduce){.mtg *{transition:none!important}}
.mtg-field select{min-height:46px;border:1px solid #bccbb6;border-radius:8px;padding:0 10px;font-size:15px;background:#fff;color:inherit}.mtg-field select:disabled{opacity:.6}

.mtg [hidden]{display:none!important}
.mtg fieldset{min-width:0}.mtg select{width:100%;max-width:100%;min-width:0;text-overflow:ellipsis}
