:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --card: #fffdf7;
  --ink: #1d2c24;
  --muted: #516056;
  --line: #d1d5c7;
  --pine: #184c3a;
  --pine-dark: #103b2c;
  --sage: #e5eddf;
  --orange: #a74420;
  --orange-light: #fae4ce;
  --text: Inter, "Helvetica Neue", Arial, sans-serif;
  --display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 58px);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: var(--pine); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #bd552c; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1216px, calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.wrap .wrap { width: 100%; }
.skip-link { position: absolute; z-index: 4; left: 8px; top: -100px; padding: 10px 16px; background: var(--card); }
.skip-link:focus { top: 8px; }
.site-header { border-top: 5px solid var(--pine); background: var(--card); }
.masthead, .masthead-tools, .brand, .locales, .whatsapp { display: flex; align-items: center; }
.masthead { justify-content: space-between; gap: 12px 24px; padding-block: 17px 14px; }
.brand { gap: 11px; font: 700 clamp(1.36rem, 2.25vw, 1.9rem)/1.12 var(--display); letter-spacing: -.05em; text-decoration: none; color: var(--pine-dark); }
.brand-mark { width: 34px; height: 36px; display: inline-flex; flex: none; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px 5px; background: var(--pine); border-radius: 8px 8px 8px 1px; }
.brand-mark i { width: 4px; background: #e5efd8; }
.brand-mark i:nth-child(1) { height: 37%; }
.brand-mark i:nth-child(2) { height: 67%; }
.brand-mark i:nth-child(3) { height: 94%; background: #f3ad62; }
.masthead-tools { gap: clamp(9px, 2vw, 28px); }
.locales { gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; }
.locales a { padding: 6px 7px; font: 600 .72rem/1.2 var(--mono); text-align: center; text-decoration: none; border-radius: 2px; color: var(--muted); }
.locales [aria-current], .locales a:hover { color: var(--pine-dark); background: var(--sage); }
.whatsapp { min-height: 36px; padding: 6px 12px; justify-content: center; gap: 8px; color: white; background: var(--pine); font-weight: 650; font-size: .82rem; text-decoration: none; border-radius: 5px; }
.whatsapp:hover { background: var(--pine-dark); }
.chat-glyph { display: inline-block; position: relative; width: 15px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px 4px 4px 0; }
.chat-glyph::after { content: ""; position: absolute; width: 5px; height: 2px; background: currentColor; top: 4px; left: 3px; border-radius: 1px; }
.menu-rule { border-block: 1px solid var(--line); }
.desk-nav { display: flex; flex-wrap: wrap; align-items: stretch; column-gap: clamp(12px, 2.3vw, 32px); }
.desk-nav a { padding: 10px 0 8px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; line-height: 1.3; font-size: .87rem; font-weight: 650; }
.desk-nav a:hover, .desk-nav a[aria-current] { color: var(--pine-dark); border-color: var(--orange); }
.site-main { min-height: 56vh; padding-bottom: clamp(40px, 6vw, 88px); }
.site-main > section + section, .site-main > article + section { margin-top: clamp(32px, 5vw, 70px); }
.hero { padding-block: clamp(26px, 4.1vw, 62px) clamp(16px, 2.6vw, 36px); }
.hero > * { max-width: 54rem; }
h1, h2, h3, h4, p, dl { margin-top: 0; }
h1, h2, h3, h4 { color: var(--pine-dark); text-wrap: balance; }
h1, h2 { font-family: var(--display); letter-spacing: -.048em; }
h1 { font-size: clamp(2.25rem, 4.9vw, 4.25rem); line-height: 1.04; margin-bottom: .28em; }
h2 { font-size: clamp(1.68rem, 3vw, 2.55rem); line-height: 1.12; margin-bottom: .48em; }
h3 { font-size: clamp(1.04rem, 1.65vw, 1.28rem); letter-spacing: -.025em; line-height: 1.27; margin-bottom: .55em; }
h4 { font-size: 1rem; margin-bottom: .35em; }
p { margin-bottom: .9em; }
p:last-child, ul:last-child, ol:last-child, dl:last-child { margin-bottom: 0; }
.eyebrow, .kicker { font: 700 .74rem/1.35 var(--mono); letter-spacing: .085em; text-transform: uppercase; color: var(--orange); margin-bottom: 11px; }
.lede, .lead { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.52; color: var(--muted); max-width: 70ch; }
.site-main :where(article,section,aside,div) { min-width: 0; }
.site-main { overflow-wrap: anywhere; }
.site-main :where(a,button,input,select,textarea) { -webkit-tap-highlight-color: transparent; }
.site-main > .calculator:first-child, .site-main > .article:first-child { margin-top: clamp(26px, 4vw, 54px); }
.calculator { scroll-margin-top: 1rem; }
.calculator > header, .calc-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; }
.calculator > header { padding-bottom: 12px; }
.calculator > header > *, .calc-head > * { margin-bottom: 0; }
.calculator > header p, .calc-head p { max-width: 72ch; color: var(--muted); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(245px, .89fr); gap: clamp(14px, 2vw, 26px); align-items: start; }
.panel, .guide-grid > *, .category-grid > * { border: 1px solid var(--line); background: var(--card); border-radius: 9px; }
.panel { padding: clamp(16px, 2.2vw, 30px); }
.calculator > .panel, .calc-grid + .comparison { margin-top: 18px; }
.panel > h2, .comparison h2, .summary h2 { font-size: clamp(1.48rem, 2.1vw, 2.02rem); }
.panel > :where(h3, h4):not(:first-child) { margin-top: 1.25em; }
.panel p, .panel li { max-width: 74ch; }
.calc-controls, .calc-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin-block: 12px; }
.calc-controls > label { flex: 1 1 135px; }
.calc-actions { align-items: center; }
.site-main button, .button, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; max-width: 100%; padding: 8px 14px; border: 1px solid var(--pine); border-radius: 5px; background: var(--pine); color: white; font-weight: 650; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; white-space: normal; }
.site-main button:hover, .button:hover, .btn:hover { background: var(--pine-dark); color: white; }
.site-main button:disabled { opacity: .5; cursor: not-allowed; }
.site-main button.secondary, .button.secondary, .calc-actions button:not(:first-child), .item-row button { color: var(--pine-dark); background: var(--card); border-color: #a8b7a9; }
.site-main button.secondary:hover, .button.secondary:hover, .calc-actions button:not(:first-child):hover, .item-row button:hover { background: var(--sage); }
.site-main label, .field { display: grid; gap: 5px; font-size: .87rem; line-height: 1.35; font-weight: 600; }
.site-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .site-main select, .site-main textarea {
  width: 100%; min-width: 0; max-width: 100%; min-height: 41px; border: 1px solid #9daea0; border-radius: 4px;
  padding: 8px 10px; background: #fffefa; color: var(--ink); font: 400 1rem/1.35 var(--text);
}
.site-main input[type="number"], .summary dd, .comparison dd, .site-main td { font-variant-numeric: tabular-nums; }
.site-main input[type="checkbox"], .site-main input[type="radio"] { accent-color: var(--pine); width: 17px; height: 17px; margin: 0 .3rem 0 0; vertical-align: -.14rem; }
.site-main label:has(input[type="checkbox"]), .site-main label:has(input[type="radio"]) { display: inline-block; }
.site-main input::placeholder, .site-main textarea::placeholder { color: #627066; opacity: 1; }
.site-main [aria-invalid="true"] { border-color: #a32617 !important; }
.site-main fieldset { min-width: 0; margin: 16px 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
.site-main legend { padding-inline: 0 .6em; font-weight: 700; color: var(--pine-dark); }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px,100%),1fr)); gap: 14px 15px; margin-block: 14px; }
.calc-detail { margin-block: 12px; }
.item-row { display: grid; grid-template-columns: minmax(110px, 1.5fr) minmax(65px, .68fr) minmax(84px, 1fr) auto; gap: 8px; align-items: end; margin-block: 12px; }
.item-row button { font-size: .85rem; padding-inline: 10px; }
.summary { border: 1px solid var(--pine); border-top: 4px solid var(--pine); background: #edf2e8; }
.summary > :is(h2,h3):first-child { margin-top: 0; }
.summary dl, .comparison dl { margin-block: 12px; }
.summary dl > div, .comparison dl > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 8px; border-bottom: 1px solid #cad4c5; padding-block: 8px; }
.summary dd, .comparison dd { margin: 0; text-align: end; font-weight: 650; }
.summary .total, .summary .amount { color: var(--pine-dark); font: 650 clamp(1.6rem, 3.4vw, 2.6rem)/1.16 var(--display); }
.site-main small, .hint, .note { color: var(--muted); font-size: .865rem; line-height: 1.47; }
.warning, .error, [role="alert"]:not(:empty) { color: #833b1a; }
.calc-detail > summary { cursor: pointer; font-weight: 650; color: var(--pine); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px,100%),1fr)); gap: 12px; }
.guide-grid > * { padding: 16px 18px; }
.guide-grid a { font-weight: 650; }
.guide-grid > a { text-decoration: none; }
.guide-grid > a:hover, .category-grid > a:hover { background: #f1f4e9; border-color: #8ca38a; }
.guide-grid p, .category-grid p { color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(120px,100%),1fr)); gap: 10px; }
.category-grid > * { overflow: hidden; }
.category-grid a { color: var(--pine-dark); text-decoration: none; font-size: .875rem; font-weight: 650; }
.category-grid a:focus-visible { outline-offset: 1px; }
.category-grid img { width: 100%; aspect-ratio: 1.55; object-fit: cover; background: var(--sage); }
.category-grid :where(a > span, figcaption) { display: block; padding: 6px 9px; }
.article { max-width: 83ch; }
.article h2:not(:first-child) { margin-top: 1.1em; }
.article h3:not(:first-child) { margin-top: 1.2em; }
.article :where(ul, ol) { padding-left: 1.4rem; }
.article li + li { margin-top: .38em; }
.article blockquote { margin-inline: 0; padding: .6rem 1rem; border-left: 3px solid var(--orange); background: var(--orange-light); }
.article a { font-weight: 600; }
.site-main table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: .94rem; }
.site-main :where(th,td) { text-align: start; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.site-main th { color: var(--pine-dark); }
.table-wrap { max-width: 100%; overflow-x: auto; }
.site-footer { background: #e9eddf; border-top: 1px solid #bdc8b6; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px 48px; padding-block: clamp(24px,4vw,50px); }
.footer-credit { max-width: 38rem; flex: 1 1 240px; }
.footer-credit .brand { font-size: 1.34rem; }
.footer-credit .brand-mark { width: 26px; height: 28px; padding: 6px 3px; }
.footer-credit p { color: var(--muted); margin: 10px 0 0; font-size: .88rem; }
.footer-nav { display: flex; align-items: center; align-content: start; justify-content: flex-end; flex-wrap: wrap; gap: 7px 18px; flex: 1 1 330px; }
.footer-nav a { font-size: .86rem; font-weight: 600; }
.home-hero { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(265px,.8fr); gap: clamp(20px,5.5vw,86px); align-items: center; }
.home-copy { padding-block: 5px 12px; }
.home-copy h1 { max-width: 17ch; }
.home-copy .lede { max-width: 55ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 20px; margin-top: clamp(14px,2.3vw,26px); }
.hero-actions .button { gap: 9px; padding: 12px 18px; }
.hero-actions > a:not(.button) { font-size: .94rem; font-weight: 650; }
.receipt-stage { display: grid; place-items: center; padding: 19px clamp(16px,2.3vw,34px); background-color: #d7e2d0; background-image: repeating-linear-gradient(0deg,transparent 0 23px,rgb(58 87 55 / 9%) 23px 24px),repeating-linear-gradient(90deg,transparent 0 23px,rgb(58 87 55 / 9%) 23px 24px); border: 1px solid #b6c7ad; border-radius: 9px; }
.paper-slip { position: relative; width: min(100%,338px); padding: 15px clamp(14px,2vw,24px) 18px; background: #fffdf6; color: #394639; box-shadow: 0 4px 11px rgb(31 57 35 / 10%); }
.paper-slip::after { content: ""; background: linear-gradient(135deg,#fffdf6 25%,transparent 25%) -8px 0 / 16px 12px repeat-x,linear-gradient(225deg,#fffdf6 25%,transparent 25%) -8px 0 / 16px 12px repeat-x; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px; }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px dashed #9fab97; padding-bottom: 7px; }
.slip-head h2 { font-size: clamp(1.2rem,2vw,1.63rem); margin: 0; }
.slip-head span, .slip-section, .slip-lines dd, .slip-total dd { font-family: var(--mono); }
.slip-head span { font-size: .74rem; font-weight: 700; color: var(--orange); }
.slip-lines { margin-block: 6px; font-size: .84rem; }
.slip-lines > div, .slip-total > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: baseline; }
.slip-lines dd, .slip-total dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.slip-section { color: #52684f; text-transform: uppercase; font-size: .64rem; font-weight: 700; letter-spacing: .075em; margin-top: 6px; }
.slip-total { border-top: 1px dashed #9fab97; padding-top: 6px; margin: 0; color: var(--pine-dark); font-weight: 700; font-size: .98rem; }
.slip-total dd { color: var(--orange); font-size: 1.16rem; }
.paper-slip > p { color: var(--muted); font-size: .74rem; line-height: 1.4; margin: 5px 0 0; }
.home-hero + .categories { margin-top: 3px; }
.cat-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 15px; margin-bottom: 9px; }
.cat-heading h2 { font-size: 1.3rem; letter-spacing: -.025em; margin: 0; }
.cat-heading p { margin: 0; color: var(--muted); font-size: .79rem; }
.categories .category-grid { grid-template-columns: repeat(10,minmax(0,1fr)); gap: 7px; }
.categories .category-grid > a { padding: 3px; }
.categories .category-grid img { height: clamp(46px,6.3vw,81px); aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: 5px; }
.categories .category-grid a > span { padding: 4px 3px; line-height: 1.24; font-size: clamp(.7rem,1vw,.81rem); }
.categories + .calculator { margin-top: clamp(25px,4vw,48px); }
.source-note, .guide-list > p { color: var(--muted); }
.source-note { font-size: .9rem; }
.calc-table-wrap { max-width: 100%; overflow-x: auto; }
.calc-table-wrap td { overflow-wrap: anywhere; }
.site-main > .source-note { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.source-note h2 { font-size: 1.45rem; }
.summary [data-out="headline"] { color: var(--pine-dark); font: 650 clamp(1.7rem,3.4vw,2.7rem)/1.12 var(--display); font-variant-numeric: tabular-nums; }
.summary [data-out="status"] { color: var(--orange); font: 650 .84rem/1.4 var(--mono); }
.summary [data-out="missing"], .summary [data-out="reconcile"] { font-size: .84rem; }
.calc-controls button[aria-pressed="false"] { color: var(--pine-dark); background: var(--card); border-color: #a8b7a9; }
.calc-editor details { padding-block: 9px; }
.site-main details > summary { cursor: pointer; font-weight: 650; color: var(--pine); }
.site-main details[open] > summary { margin-bottom: 8px; }
.fee-entry { border-bottom: 1px solid var(--line); padding-block: 3px; }
.fee-entry .calc-fields { margin-block: 4px; align-items: end; grid-template-columns: minmax(0,1fr) minmax(70px,.5fr); }
.fee-entry .charge-evidence { padding-block: 3px; font-size: .8rem; }
.fee-entry .charge-evidence summary { color: var(--muted); font-weight: 500; }
.payment-ledger { margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: clamp(16px,2.2vw,30px); }
.payment-ledger details { padding-block: 6px; }
.payment-ledger [data-ev="overview"] dl > div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-block: 6px; }
.payment-ledger [data-ev="overview"] dd { margin: 0; font-variant-numeric: tabular-nums; }
#ledger-transfer .panel + .panel { margin-top: 12px; }
.article section { margin-block: clamp(20px,3vw,32px); }
@media (max-width: 800px) {
  .calc-grid { grid-template-columns: minmax(0,1fr); }
  .footer-nav { justify-content: flex-start; }
  .categories .category-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .categories .category-grid img { height: clamp(43px,8vw,70px); }
}
@media (max-width: 600px) {
  .masthead { flex-wrap: wrap; gap: 9px; }
  .brand { font-size: 1.4rem; gap: 7px; }
  .brand-mark { width: 29px; height: 31px; padding: 6px 3px; }
  .desk-nav { column-gap: 12px; }
  .desk-nav a { padding-block: 7px 5px; font-size: .82rem; }
  .item-row { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px;background: #f2f3eb; border-radius: 5px; }
  .item-row button { justify-self: start; }
  .category-grid { grid-template-columns: repeat(auto-fit,minmax(min(105px,100%),1fr)); }
  .home-hero { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .home-copy { padding-block: 0; }
  .home-copy h1 { max-width: 21ch; }
  .receipt-stage { padding: 11px 10px 15px; }
  .paper-slip { padding: 9px 13px 11px; }
  .slip-lines { font-size: .78rem; }
  .categories .category-grid { gap: 5px; }
}
@media (max-width: 410px) {
  .masthead { flex-direction: column; align-items: flex-start; }
  .masthead-tools { width: 100%; justify-content: space-between; }
  .site-main :where(td,th) { padding: 5px 4px; font-size: .84rem; }
}
@media print {
  body, .site-header, .site-footer, .panel, .summary { background: white; color: black; }
  .wrap { width: 100%; }
  .masthead-tools, .menu-rule, .skip-link, .footer-nav, .calc-actions, .site-main button { display: none; }
  .masthead { padding: 6px 0; }
  .calc-grid, .guide-grid { display: block; }
  .panel, .article h2, .site-main h3 { break-after: auto; }
  .summary, .item-row { break-inside: avoid; }
  .site-main { padding-bottom: 10px; }
}
