.escrow-worksheet{margin:40px 0 48px;border-top:2px solid var(--forest);padding-top:24px;scroll-margin-top:0;letter-spacing:0}
.escrow-worksheet [hidden]{display:none!important}
.escrow-worksheet h2{font-family:var(--display);font-size:28px;line-height:1.2;color:var(--forest);margin:0 0 12px}
.escrow-worksheet h3{font-size:17px;line-height:1.4;color:var(--forest);margin:0 0 12px}
.escrow-worksheet p{font-size:15px;line-height:1.6;margin:0 0 16px}
.ew-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.ew-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.ew-actions button{border:1px solid var(--border);border-radius:6px;padding:10px 14px;min-height:44px;background:var(--white);color:var(--forest);font-size:14px;font-weight:600}
.ew-actions button:first-child{background:var(--forest);color:white;border-color:var(--forest)}
.ew-actions button:hover{border-color:var(--forest)}
.ew-actions button:disabled{opacity:.5;cursor:not-allowed}
.ew-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:16px 0 24px;font-size:14px}
.ew-table th,.ew-table td{padding:12px 8px;border-bottom:1px solid var(--border);vertical-align:top;text-align:left}
.ew-table thead th{color:var(--forest);font-weight:600}
.ew-table th:first-child{width:38%;padding-left:0}
.ew-table tbody th{font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.ew-table th small{display:block;font-weight:400;font-size:12px;color:var(--muted);margin-top:5px}
.ew-money{position:relative}
.ew-money>span[aria-hidden=true]{position:absolute;top:12px;left:12px;color:var(--muted);pointer-events:none}
.ew-table input{width:100%;min-width:0;min-height:46px;border:1px solid #9d998d;border-radius:6px;background:white;color:var(--forest);font:inherit;font-size:16px;font-variant-numeric:tabular-nums;padding:10px 8px 10px 27px}
.ew-table input[aria-invalid=true]{border:2px solid #9c2828}
.ew-error{display:block;color:#942323;font-size:12px;line-height:1.35;margin-top:4px;overflow-wrap:anywhere}
.ew-print-value{display:none}
.ew-currency{display:block;max-width:100%;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.ew-amount .ew-currency,.ew-breakdown .ew-currency{overflow-x:auto}
[data-value=budgetChange] .ew-currency{display:inline-block;vertical-align:bottom}
.escrow-worksheet .ew-note{font-size:13px;color:var(--muted)}
.ew-result{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:24px 0;margin:20px 0;container-type:inline-size}
.ew-amount{display:block;font-size:36px;font-weight:600;line-height:1.3;color:var(--forest);font-variant-numeric:tabular-nums}
.ew-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16em),1fr));gap:20px;margin:20px 0}
.ew-breakdown dt{font-size:14px;color:var(--muted)}
.ew-breakdown dd{font-size:23px;font-weight:500;color:var(--forest);font-variant-numeric:tabular-nums}
.ew-totals{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}
.ew-totals th,.ew-totals td{padding:8px 6px;text-align:right;border-bottom:1px solid var(--border);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ew-totals th:first-child{text-align:left;width:46%;padding-left:0}
@container(max-width:38em){
  .ew-totals,.ew-totals tbody{display:block}
  .ew-totals thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ew-totals tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;border-bottom:1px solid var(--border)}
  .ew-totals th:first-child{grid-column:1/-1;width:auto}
  .ew-totals th,.ew-totals td{border:0;padding:8px 0;min-width:0;text-align:left}
  .ew-totals td::before{content:attr(data-column-label);display:block;font-weight:600;margin-bottom:4px}
}
@container(max-width:24em){
  .ew-totals tr{grid-template-columns:minmax(0,1fr)}
  .ew-totals th:first-child{grid-column:1}
}
.ew-pending{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:24px 0;color:var(--muted)}
.ew-example{margin-top:24px;border-top:1px solid var(--border);padding-top:16px}
.ew-example summary{cursor:pointer;min-height:44px;color:var(--forest);font-weight:600;padding-bottom:12px}
.ew-example p{font-size:14px}
.ew-example a,.ew-sources a{color:var(--gold-text);text-decoration:underline;text-underline-offset:3px}
.ew-badge{font-size:13px!important;color:var(--gold-text);font-weight:600}
.ew-questions{padding-left:20px;font-size:14px;margin:16px 0}
.ew-questions li{margin:8px 0}
.ew-print-identity{display:none}
.ew-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html:has(#escrow-payment-worksheet input:focus) #kbSearchFab{visibility:hidden;pointer-events:none}
@media(max-width:480px){.escrow-worksheet h2{font-size:25px}.ew-table tr{display:grid;grid-template-columns:1fr 1fr;gap:0 8px;border-bottom:1px solid var(--border)}.ew-table th:first-child{width:auto;grid-column:1/-1}.ew-table th,.ew-table td{padding:8px 0;border:0;min-width:0}.ew-table tbody th{padding-top:14px;padding-bottom:0}.ew-table th small{margin-top:2px}.ew-table input{padding-left:24px}.ew-money>span[aria-hidden=true]{left:9px}.ew-breakdown{gap:14px}.ew-amount{font-size:30px}.ew-breakdown dd{font-size:20px}}
@media print{
  @page{size:auto;margin:14mm}
  body{background:white!important;color:black!important}
  body>nav,body>.mobile-menu,body>.skip-link,body>footer,#kbSearchFab,#kbSearchOverlay{display:none!important}
  main.page-wrap{max-width:none;margin:0;padding:0}
  main.page-wrap>:not(#escrow-payment-worksheet){display:none!important}
  .escrow-worksheet{margin:0;padding:12px 0;border-color:black;font-size:10pt}
  .escrow-worksheet h2{font-size:20pt}.escrow-worksheet h3{font-size:12pt}
  .escrow-worksheet p,.ew-table,.ew-totals,.ew-questions{font-size:9pt;line-height:1.35}
  .escrow-worksheet p{margin-bottom:8px}.escrow-worksheet h3{margin-bottom:6px}
  .ew-actions,.ew-sr-only{display:none!important}
  .ew-print-identity{display:block;font-size:9pt!important}
  .ew-print-scope,.ew-print-footer{font-size:8pt!important;line-height:1.35!important;break-inside:avoid}
  .ew-table{margin:8px 0 14px}.ew-table th,.ew-table td{padding:6px 4px}
  .ew-table input{font-size:10pt;min-height:28px;padding-top:3px;padding-bottom:3px}
  .ew-money:has(.ew-print-value)>input,.ew-money:has(.ew-print-value)>span[aria-hidden=true]{display:none}
  .ew-print-value{display:block;min-height:1.5em;font-size:10pt;white-space:nowrap;font-variant-numeric:tabular-nums}
  .ew-print-value[data-invalid=true]{white-space:normal;overflow-wrap:anywhere}
  .ew-table:has(.ew-print-value),.ew-table:has(.ew-print-value) tbody,.ew-totals,.ew-totals tbody{display:block}
  .ew-table:has(.ew-print-value) thead,.ew-totals thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ew-table:has(.ew-print-value) tr,.ew-totals tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;border-bottom:1px solid var(--border)}
  .ew-table:has(.ew-print-value) th:first-child,.ew-totals th:first-child{grid-column:1/-1;width:auto}
  .ew-table:has(.ew-print-value) th,.ew-table:has(.ew-print-value) td,.ew-totals th,.ew-totals td{border:0;padding:4px 0;min-width:0;text-align:left}
  .ew-table:has(.ew-print-value) td::before,.ew-totals td::before{content:attr(data-column-label);display:block;font-weight:600;margin-bottom:4px}
  .ew-amount .ew-currency,.ew-breakdown .ew-currency{overflow:visible}
  .ew-money>span[aria-hidden=true]{top:3px}.ew-table tr,.ew-result{break-inside:avoid}
  .ew-result{padding:12px 0;margin:12px 0}.ew-amount{font-size:24pt}.ew-breakdown{margin:8px 0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ew-breakdown dd{font-size:14pt}
  .ew-example{break-inside:avoid;margin-top:12px;padding-top:10px}.ew-example summary{min-height:0;padding-bottom:6px}
  .ew-questions{margin:8px 0}.ew-questions li{margin:4px 0}
  .ew-sources{font-size:8pt!important}
}
