:root { font: 16px/1.55 system-ui, sans-serif; color: #23362f; background: #f5f1e8; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 53rem); margin: 1.6rem auto 3rem; border-top: .38rem solid #226351; }
header { padding: 1.35rem 0 .9rem; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.025em; margin: 0; }
h2 { font-size: 1.14rem; margin: 0 0 .75rem; }
p { margin: .45rem 0; }
header p, dt { color: #465e55; }
.controls, .panel { background: #fffcf5; border: 1px solid #b7c4ba; padding: 1rem; }
.controls { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: end; gap: .65rem; }
.controls label { display: grid; gap: .3rem; min-width: 0; font-weight: 650; }
select, button { font: inherit; min-height: 2.75rem; border: 1px solid #587d70; border-radius: .25rem; padding: .35rem .6rem; }
select { width: 100%; color: inherit; background: white; }
button { color: #fff; background: #225a49; font-weight: 670; cursor: pointer; }
:focus-visible { outline: 3px solid #b35725; outline-offset: 3px; }
.columns { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: .75rem; margin-top: .75rem; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; gap: .6rem; border-top: 1px solid #e1e4d9; padding: .38rem 0; }
dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.answer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem; margin: -.1rem 0 .65rem; }
.answer strong { font-size: 2rem; line-height: 1; color: #225a49; font-variant-numeric: tabular-nums; }
.answer span { color: #465e55; }
@media (max-width: 560px) {
  .controls, .columns { grid-template-columns: minmax(0, 1fr); }
}
