/* Shared local cost estimate; typography follows the surrounding Wagrien page. */
.pc-calculator {
  --pc-ink: var(--hp-ink, var(--oe-ink, #17384a));
  --pc-muted: var(--hp-muted, var(--oe-body, #50616f));
  --pc-line: var(--hp-line, var(--oe-line, #c9d5df));
  --pc-accent: var(--hp-blue, var(--oe-accent, #3f6888));
  color: var(--pc-ink); background: #edf5f3; border: 1px solid #bfd6cf;
  box-sizing: border-box; width: 100%; max-width: 100%; container-type: inline-size;
  padding: clamp(16px, 1.7vw, 22px); margin-top: 28px; border-radius: 12px;
  font: inherit; overflow-wrap: anywhere;
}
.pc-calculator *, .pc-calculator *::before, .pc-calculator *::after { box-sizing: border-box; }
.pc-calculator [hidden] { display: none !important; }
.pc-heading { margin-bottom: 14px; }
.pc-calculator .pc-heading h2 { font-family: var(--hp-font-heading, Georgia, serif); font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 400; line-height: 1.2; color: var(--pc-ink); margin: 0 0 7px; }
.pc-heading p, .pc-hint, .pc-note { color: var(--pc-muted); font-size: .875rem; line-height: 1.55; margin: 0; }
.pc-overview { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 12px; }
.pc-chart { position: relative; width: 120px; max-width: 100%; justify-self: center; margin: 0 !important; aspect-ratio: 1; }
.pc-chart svg { display: block; width: 100%; height: 100%; }
.pc-chart-track, .pc-chart-segment { fill: none; stroke-width: 24; }
.pc-chart-track { stroke: #d1e0dd; }
.pc-chart-segment { stroke: var(--pc-part); }
.pc-color-price { --pc-part: #244f69; }
.pc-color-transfer_tax { --pc-part: #258170; }
.pc-color-legal_fees { --pc-part: #bf8433; }
.pc-color-commission { --pc-part: #7b67a5; }
.pc-chart-caption { position: absolute; inset: 22%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; font-size: .6875rem; line-height: 1.45; color: var(--pc-muted); pointer-events: none; }
.pc-chart-caption strong { color: var(--pc-ink); font-size: .6875rem; }
.pc-swatch { display: inline-block; flex: 0 0 9px; width: 9px; height: 9px; background: var(--pc-part); border-radius: 2px; margin: .35em 7px 0 0; }
.pc-settings { margin-top: 14px; border-top: 1px solid #c4d8d2; padding-top: 10px; }
.pc-settings > summary { cursor: pointer; padding: 5px 0; width: fit-content; color: var(--pc-ink); font-size: .875rem; }
.pc-settings[open] > summary { margin-bottom: 12px; }
.pc-inputs { border: 0; margin: 0; padding: 0; min-width: 0; }
.pc-main-inputs, .pc-assumption-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pc-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.pc-field label { display: block; font-size: .875rem; line-height: 1.45; }
.pc-field input, .pc-field select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; font: inherit; color: var(--pc-ink); background: #fff; border: 1px solid #9baeba; border-radius: 3px; }
.pc-field input[readonly], .pc-field input:disabled { background: #f2f5f7; }
.pc-field input[aria-invalid=true], .pc-field select[aria-invalid=true] { border-color: #b14535; outline: 1px solid #b14535; }
.pc-field :focus-visible, .pc-assumptions summary:focus-visible, .pc-settings > summary:focus-visible { outline: 3px solid var(--pc-accent); outline-offset: 3px; }
.pc-inputs > .pc-hint { margin-top: 9px; }
.pc-assumptions { margin-top: 18px; }
.pc-assumptions summary { cursor: pointer; padding: 5px 0; font-size: .9375rem; text-underline-offset: 3px; }
.pc-assumptions[open] summary { margin-bottom: 14px; }
.pc-assumptions .pc-hint { margin-top: 14px; }
.pc-incomplete { margin-top: 20px; padding: 12px 14px; background: #fff7e8; color: #74501b; font-size: .875rem; line-height: 1.5; }
.pc-results { display: grid; gap: 0; min-width: 0; margin: 0 !important; }
.pc-results > div { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 6px 0; font-size: .875rem; }
.pc-results dt { min-width: 0; line-height: 1.45; }
.pc-results dt small { display: block; margin-left: 16px; color: var(--pc-muted); font-size: .75rem; font-weight: 400; }
.pc-results dd { min-width: 0; margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.45; }
.pc-fee-breakdown { display: block; color: var(--pc-muted); font-size: .75rem; font-weight: 400; line-height: 1.5; margin-top: 3px; }
.pc-results .pc-extras { margin-top: 6px; padding-top: 10px; border-top: 1px solid #c4d8d2; }
.pc-results .pc-total { margin-top: 5px; padding-top: 12px; border-top: 2px solid #9bbfb3; color: var(--pc-ink); }
.pc-total dd { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.25; }
.pc-note { margin-top: 14px !important; font-size: .8125rem; }
.pc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* A minimum readable width also covers the homepage's narrower main column. */
@media (min-width: 1000px) {
  .pc-calculator { width: 50%; min-width: min(100%, 440px); }
}
@container (min-width: 440px) {
  .pc-overview { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
}
@container (max-width: 399px) {
  .pc-main-inputs, .pc-assumption-grid { grid-template-columns: 1fr; }
  .pc-results .pc-total { grid-template-columns: 1fr; gap: 5px; }
  .pc-results .pc-total dd { text-align: left; }
}
@media (max-width: 560px) {
  .pc-overview { grid-template-columns: 1fr; gap: 9px; }
  .pc-chart { width: 120px; }
  .pc-main-inputs, .pc-assumption-grid { grid-template-columns: 1fr; }
  .pc-results > div { gap: 8px; }
  .pc-results .pc-total { grid-template-columns: 1fr; gap: 5px; }
  .pc-results .pc-total dd { text-align: left; }
}
