:root { color-scheme: light; --ink: #202124; --accent: #68419a; --line: #dcd5e6; }
* { box-sizing: border-box; }
body { margin: 0; background: #f8f9fb; color: var(--ink); font: 1rem/1.75 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #8656bf; outline-offset: 4px; }
.site-header, main, footer { max-width: 900px; margin-inline: auto; padding: 24px; }
.site-header { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-header img { width: 170px; max-width: 100%; height: auto; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
details { width: 100%; }
summary { cursor: pointer; color: var(--accent); }
.languages { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.languages [aria-current] { font-weight: 700; }
h1 { font-size: clamp(1.85rem, 5vw, 2.7rem); line-height: 1.25; margin-top: 12px; }
h2 { font-size: 1.4rem; line-height: 1.4; margin-top: 0; }
p { margin: 0 0 18px; }
.intro { font-size: 1.15rem; }
.cta, button { display: inline-block; border: 0; border-radius: 7px; background: var(--accent); color: white; padding: 10px 18px; font-weight: 650; text-decoration: none; cursor: pointer; }
.cta { margin-bottom: 24px; }
section { margin-block: 24px; background: white; padding: 24px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.cost-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: block; }
label span { display: block; margin-bottom: 5px; }
input { width: 100%; min-width: 0; border: 1px solid #93879f; border-radius: 5px; padding: 9px; background: white; color: var(--ink); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 20px 12px; }
.results div { background: #f3edf9; padding: 16px; border-radius: 7px; }
dt { font-weight: 650; }
dd { margin: 0; }
output { display: block; font-size: 1.8rem; font-weight: 700; }
output[data-negative="true"] { color: #9a2525; }
.note { font-size: .95rem; color: #4c4655; }
.worksheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px; }
.worksheet dd { min-height: 2em; border-bottom: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-block: 20px; }
footer { border-top: 1px solid var(--line); font-size: .9rem; }
@media (max-width: 560px) { .site-header, main, footer { padding: 18px; } section { padding: 18px; } .cost-fields, .results, .worksheet { grid-template-columns: 1fr; } }
@media print {
  body { background: white; font-size: 10pt; }
  .site-header, .cta, .actions, footer { display: none; }
  main { max-width: none; padding: 0; }
  h1 { font-size: 20pt; }
  section { border: 0; padding: 0; border-radius: 0; }
  h2, dt { break-after: avoid; }
  .worksheet div, .results, label { break-inside: avoid; }
  .worksheet dd { min-height: 3em; }
  a { color: black; }
}
