body { word-break: keep-all; overflow-wrap: anywhere; }
.switcher { display: flex; gap: .25rem; }
.switcher a { display: block; text-decoration: none; font-weight: 650; border-radius: 2rem; padding: .4rem .8rem; font-size: .94rem; }
.switcher a[aria-current] { background: var(--pale); }
.switcher a:hover { text-decoration: underline; }
.ko-hero { background: var(--pale); padding-block: clamp(2.7rem, 6vw, 5.2rem); }
.ko-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
.ko-hero p { color: var(--muted); max-width: 39rem; margin-bottom: 0; font-size: 1.1rem; }
.layout { padding-block: 2.8rem; display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, .95fr); align-items: start; gap: 2.8rem 2rem; }
.calc-head, .after-input, .sumrow { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.layout h2 { font-size: 1.65rem; line-height: 1.25; margin: 0; }
.calc-head button { white-space: nowrap; }
.hint { color: var(--muted); margin: .85rem 0 1.2rem; }
.input-table { min-width: 0; table-layout: fixed; }
.input-table th, .input-table td { vertical-align: top; padding: .75rem .5rem; }
.input-table th small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; font-weight: 450; margin-top: .25rem; }
.input-table thead th { background: #edf5f0; }
.num, .extra { width: 100%; display: grid; gap: .35rem; }
.extra { margin-top: .4rem; }
.unit { display: flex; background: white; border: 1px solid #aebfbc; border-radius: 7px; align-items: center; overflow: hidden; }
.unit:focus-within { outline: 2px solid #25846e; outline-offset: 1px; }
.unit input { min-width: 0; border: 0; outline: 0; font-size: 1rem; padding-inline: .5rem .05rem; appearance: textfield; }
.unit input::-webkit-inner-spin-button, .unit input::-webkit-outer-spin-button { -webkit-appearance: none; }
.unit span { padding-inline: .15rem .45rem; color: var(--muted); font-size: .83rem; white-space: nowrap; }
.after-input { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.totals { background: #123f37; color: #fff; padding: 1.6rem; border-radius: .9rem; }
.totals h2 { margin-bottom: 1.1rem; }
.sumrow { border-bottom: 1px solid #447065; padding: .8rem 0; color: #e0f2e9; }
.sumrow strong { color: white; font-variant-numeric: tabular-nums; font-size: 1.25rem; }
#verdict { margin: 1.1rem 0 0; font-weight: 650; }
.notes { font-size: .9rem; color: #d0e8dc; margin: .8rem 0 0; white-space: pre-line; }
.notes:empty { display: none; }
.reading { grid-column: 1 / -1; max-width: 49rem; }
.reading h2 { margin-bottom: 1.5rem; }
.reading h3 { margin: 1.35rem 0 .35rem; }
.reading p { color: var(--muted); }
.example { background: #f0f6f2; border-left: .25rem solid var(--green); padding: 1rem 1.25rem; margin-block: 1.5rem; }
.example h3, .example p { margin: 0 0 .5rem; }
.example small { color: var(--muted); }
.sources { border-top: 1px solid var(--line); }
.sources ul { padding-left: 1.25rem; }
.related { margin-top: 1.25rem; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 790px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  .totals { padding: 1.25rem; }
}
@media (max-width: 540px) {
  .layout { padding-block: 1.5rem; }
  .ko-hero { padding-block: 2.2rem; }
  .ko-hero p { font-size: 1rem; }
  .switcher a { font-size: .875rem; padding: .35rem .45rem; }
  nav { gap: .4rem; flex-wrap: wrap; padding-block: .6rem; }
  .input-table th, .input-table td { padding: .7rem .2rem; }
  .input-table th:first-child { width: 34%; }
  .input-table th small { font-size: .78rem; }
  .input-table select { padding-left: .35rem; font-size: .875rem; }
  .input-table { font-size: .94rem; }
  .layout h2 { font-size: 1.4rem; }
}
#send-budget { margin-top: 1.25rem; }
.transfer-hint { font-size: .875rem; color: #d0e8dc; margin: .65rem 0 0; }
.budget-wrap { padding-block: 2.5rem; }
.budget-bar, .group-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.budget-bar { margin-bottom: 1.4rem; }
.budget-bar p, .budget-wrap .after-input p { margin: 0; color: var(--muted); }
.budget-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.group { min-width: 0; }
.group-head { margin-bottom: .65rem; }
.group-head h2, .matrix h2, .budget-wrap .reading h2 { font-size: 1.55rem; line-height: 1.35; margin-bottom: 0; }
.group-head a { font-size: .9rem; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.offer { min-width: 0; border-radius: .65rem; border: 1px solid var(--line); padding: .8rem; margin: 0; }
.offer legend { color: var(--green); font-weight: bold; padding-inline: .25rem; }
.offer label + label { margin-top: .75rem; }
.check-fee { display: flex; align-items: center; font-weight: 500; }
.check-fee input { width: 1rem; min-height: 1rem; height: 1rem; accent-color: var(--green); }
.matrix { background: #eff7f3; padding: 1.25rem; border-radius: .8rem; margin-top: 1.75rem; }
.budget-table { margin-top: .75rem; min-width: 0; table-layout: fixed; }
.budget-table tbody th { width: 22%; }
.budget-table strong, .budget-table small { display: block; }
.budget-table small { color: var(--muted); }
.budget-wrap .reading { margin-top: 3rem; }
.budget-wrap .reading h2 { margin-bottom: 1rem; }
@media (max-width: 900px) { .budget-inputs { grid-template-columns: 1fr; } }
@media (max-width: 500px) {
  .switcher { flex-wrap: wrap; }
  .matrix { padding: .8rem; }
  .budget-table th, .budget-table td { padding: .65rem .25rem; }
  .budget-table thead th:first-child { width: 19%; }
  .offers { gap: .4rem; }
  .offer { padding: .6rem; }
  .budget-bar { align-items: start; gap: .6rem; }
}
.crumbs { min-height: auto; padding-block: .65rem; font-size: .875rem; color: var(--muted); }
.crumbs ol { display: flex; align-items: baseline; gap: .3rem .6rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .6rem; color: var(--muted); }
