/* Scope every layout rule to this family of public calculators. */
.household-page .calculator-intro{max-width:760px}
.household-board{grid-template-columns:minmax(0,1.4fr) minmax(260px,.9fr);align-items:start}
.household-form{min-width:0;padding:24px;container:household/inline-size}
.household-live-hint{margin:0 0 24px;color:var(--muted);font-size:13px;line-height:1.6}
.household-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;align-items:start}
.household-form .household-field{min-width:0;display:flex;flex-direction:column;gap:8px}
.household-field>label{font-size:14px;font-weight:600;line-height:1.5;margin:0;min-height:42px;display:flex;align-items:flex-end}
.household-control{min-width:0;position:relative}
.household-control input,.household-control select,.household-control .category-picker-trigger{box-sizing:border-box;width:100%;min-height:48px;background:#fff}
.household-control .category-picker{width:100%;min-width:0;margin:0}
.household-control>.gc-stepper{width:100%}
.household-field .household-check{grid-column:1/-1;align-items:center;min-height:48px;gap:12px;padding:8px 0;cursor:pointer;font-weight:500}
.household-check input{width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:#166b50;padding:0}
.household-field:has(.household-check){grid-column:1/-1}
.household-field[data-field="mode"]{grid-column:1/-1}
.household-field-error{color:#a12626;font-size:13px;line-height:1.5;margin:0;padding:4px 0}
.household-field-messages{min-width:0}
.household-field-hint{color:var(--muted);font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.household-repeater-label{font-size:14px;font-weight:600;line-height:1.5;margin:0 0 12px}
.household-variant-notice{margin:0 0 16px;padding:12px 16px;border:1px solid #d9d6b3;border-radius:10px;background:#fff9e8;font-size:13px;line-height:1.5}
.household-repeater{grid-column:1/-1;min-width:0}
.household-baseline{grid-column:1/-1;min-width:0;border:1px solid #d3dfd6;border-radius:12px;padding:16px}
.household-baseline summary{cursor:pointer;font-size:14px;line-height:1.5;min-height:44px;align-content:center;font-weight:600}
.household-baseline[open] summary{margin-bottom:16px}
.household-row{border:1px solid #d3dfd6;border-radius:14px;padding:16px;margin:0 0 20px;min-width:0}
.household-row legend{padding:0 8px;font-weight:600;font-size:14px}
.household-remove{background:transparent;border:0;color:#7a3630;text-decoration:underline;min-height:44px;padding:8px 0;margin-top:12px;cursor:pointer;font:inherit;font-size:13px}
.household-error{margin:24px 0 0;padding:12px 16px;background:#fff3ee;border-radius:10px}
.household-form .calculator-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.household-form .calculator-buttons .button{min-height:48px;white-space:nowrap;flex:0 1 auto;box-sizing:border-box}
.household-result{min-width:0;padding:24px}
.household-result .calculator-metric strong{overflow-wrap:anywhere}
.household-tables{display:grid;gap:24px;margin-top:32px;min-width:0}
.household-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #d3dfd6;border-radius:16px;background:#fff;padding:16px}
.household-table-scroll table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}
.household-table-scroll caption{text-align:left;font-size:18px;font-weight:600;padding:0 0 16px}
.household-table-scroll th,.household-table-scroll td{padding:12px 16px;border-bottom:1px solid #dde5dc;vertical-align:top;min-width:90px}
.household-table-scroll tbody tr:last-child>*{border-bottom:0}
.household-table-scroll thead th{font-size:13px;color:var(--muted)}
.household-page [hidden]{display:none!important}
.household-schedule{border:1px solid #d3dfd6;border-radius:16px;background:#fff;min-width:0}
.household-schedule>summary{list-style:none;cursor:pointer;padding:16px 56px 16px 20px;position:relative;min-height:48px;align-content:center;box-sizing:border-box;font-size:16px;font-weight:600}
.household-schedule>summary::-webkit-details-marker{display:none}
.household-schedule>summary::after{content:"";position:absolute;right:20px;top:50%;width:16px;height:16px;margin-top:-8px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.household-schedule[open]>summary::after{transform:rotate(180deg)}
.household-schedule .household-table-scroll{border:0;border-top:1px solid #d3dfd6;border-radius:0 0 16px 16px;margin:0}
.household-schedule>summary:focus-visible{outline:2px solid #087960;outline-offset:4px}
.household-reading{margin-top:32px;display:grid;gap:24px}
.household-reading>section,.household-sources{padding:24px;border:1px solid #d3dfd6;border-radius:16px;background:#fff;min-width:0}
.household-reading h2,.household-sources h2{margin:0 0 16px;font-size:clamp(21px,2.5vw,28px);line-height:1.35}
.household-reading p{line-height:1.75;margin:0 0 16px}
.household-reading p:last-child{margin-bottom:0}
.household-sources{margin-top:24px;font-size:14px;line-height:1.7}
.household-sources ul{margin:0;padding-left:20px}
.household-sources li+li{margin-top:12px}
@supports(grid-template-rows:subgrid){.household-fields{row-gap:8px}.household-form .household-field:not([hidden]):not(:has(.household-check)){display:grid;grid-row:span 3;grid-template-rows:subgrid;align-items:start;row-gap:8px}.household-form .household-field:has(.household-check){display:flex;grid-row:auto}.household-field>label{min-height:0}.household-field-error{margin-bottom:12px}.household-repeater,.household-field:has(.household-check){margin-top:12px;margin-bottom:12px}}
@container household (max-width:430px){.household-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){.household-board{grid-template-columns:minmax(0,1fr)}.household-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.household-form,.household-result{padding:20px 16px}.household-fields{grid-template-columns:minmax(0,1fr)}.household-row{padding:12px}.household-table-scroll{padding:12px}.household-table-scroll th,.household-table-scroll td{padding:12px 8px}.household-page .calculator-intro{margin-bottom:24px}}
.household-layout-figure{margin:0;padding:24px;border:1px solid #c8d9cf;border-radius:18px;background:#fff;min-width:0}
.household-layout-caption{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:20px}
.household-layout-caption h2{margin:0;font-size:22px;line-height:1.4}
.household-layout-caption .button{min-height:48px;white-space:nowrap;flex:0 0 auto}
.household-layout-svg{display:block;width:100%;height:auto;min-height:180px;max-height:560px;border:1px solid #d3dfd6;border-radius:8px;background:#f8faf6}
.household-layout-legend{display:flex;flex-wrap:wrap;gap:12px 24px;margin:20px 0 0;padding:0;list-style:none}
.household-layout-legend li{display:flex;align-items:center;gap:8px;margin:0;padding:0;border:0;font-size:14px;line-height:1.5}
.household-layout-swatch{width:20px;height:20px;border:1px solid;flex:0 0 20px;border-radius:3px}
.household-layout-figure>.small-note{margin:16px 0 0;line-height:1.5}
@media(max-width:480px){.household-layout-figure{padding:20px 16px}.household-layout-caption h2{font-size:20px}}
/* One atomic action between the two currency selectors; other modes retain
   their existing grid through display:contents. */
.household-form .exchange-currencies{display:contents}
.household-form .exchange-currencies.is-cross{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);gap:8px;align-items:start;min-width:0}
.household-form .exchange-currencies.is-cross>.household-field{grid-row:1/span 3}
.household-form .exchange-currencies.is-cross>[data-field="currency"]{grid-column:1}
.household-form .exchange-currencies.is-cross>[data-field="targetCurrency"]{grid-column:3}
.household-form .exchange-currency-swap{grid-column:2;grid-row:2;align-self:start;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-height:48px;padding:12px;box-sizing:border-box}
.exchange-currency-swap svg{display:block;flex:none}
@container household (max-width:430px){
 .household-form .exchange-currencies.is-cross{grid-template-columns:minmax(0,1fr) 48px}
 .household-form .exchange-currencies.is-cross>[data-field="targetCurrency"]{grid-column:1;grid-row:5/span 3}
 .household-form .exchange-currency-swap{grid-row:2/span 5;align-self:center}
 .exchange-currency-swap svg{transform:rotate(90deg)}
}
