/* Calm palette: deep plum, muted brass, soft stone. */
:root { --brand: #2c1b25; --brand-2: #432a38; --brass: #a98a55; --brass-light: #dcc69a; --bg: #f3f1ee; --card: #fcfbfa; --ink: #26211f; --muted: #655e5a; --line: #ddd7d0; --link: #74304c; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: .5rem; top: .5rem; background: var(--card); padding: .5rem; z-index: 3; }
header { display: grid; grid-template-columns: 1fr auto; gap: .75rem 1rem; align-items: center; background: var(--brand); border-bottom: 3px solid var(--brass); padding: .9rem max(1.15rem, calc((100% - 62rem) / 2)) 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; font-size: 1.2rem; letter-spacing: -.01em; color: #f4efea; text-decoration: none; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: .45rem; box-shadow: 0 0 0 1px rgba(220, 198, 154, .35); }
.lang { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid rgba(220, 198, 154, .45); border-radius: .45rem; }
.lang a { min-width: 2.5rem; padding: .2rem .55rem; text-align: center; text-decoration: none; font-weight: 600; font-size: .82rem; color: #ddd0d6; border-radius: .3rem; }
.lang a[aria-current] { background: var(--brass-light); color: var(--brand); }
nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
nav a { padding: .45rem 0 .6rem; color: #d9cdd3; text-decoration: none; font-size: .93rem; border-bottom: 2px solid transparent; }
nav a:hover { color: #fff; }
nav a[aria-current] { color: #fff; border-bottom-color: var(--brass-light); font-weight: 600; }
main, footer .inner { max-width: 62rem; margin: 0 auto; padding-left: 1.15rem; padding-right: 1.15rem; }
main { padding-top: 2rem; }
main > h1, main > h2, main > h3, main > p, main > ul:not(.cards), main > ol { max-width: 46rem; }
h1, h2, h3 { letter-spacing: -.015em; }
h1 { margin: 0 0 .85rem; line-height: 1.2; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; color: var(--brand); }
h2 { margin: 2.6rem 0 .7rem; color: var(--brand); font-size: 1.28rem; font-weight: 650; line-height: 1.35; }
h3 { color: var(--ink); font-size: 1.04rem; font-weight: 650; margin: 1.4rem 0 .2rem; }
.privacy { font-size: .88rem; color: var(--muted); }
.calc { display: grid; gap: 1.25rem; margin-top: 1.2rem; }
.calc form, .result { border-radius: .6rem; }
.calc form { background: var(--card); border: 1px solid var(--line); padding: 1.25rem; box-shadow: 0 1px 3px rgba(44, 27, 37, .05); }
.result { background: var(--brand); color: #e9e2e5; padding: .35rem 1.25rem 1.1rem; }
@media (min-width: 56rem) { .calc { grid-template-columns: 1.05fr .95fr; align-items: start; } .result { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; } }
.big { font-size: .95rem; color: #d3c5cc; } .big strong { display: block; margin-top: .15rem; font-size: 2rem; font-weight: 700; color: var(--brass-light); line-height: 1.25; font-variant-numeric: tabular-nums; }
.result table { font-size: .9rem; font-variant-numeric: tabular-nums; } .result th, .result td { border-bottom: 1px solid rgba(255, 255, 255, .12); } .result th { font-weight: 500; } .result caption { color: var(--brass-light); } .result a { color: var(--brass-light); }
label { display: block; margin: 0 0 .95rem; font-weight: 600; font-size: .95rem; }
label input[type=number], select { display: block; width: 100%; margin-top: .3rem; padding: .62rem .7rem; font: inherit; font-weight: 400; color: var(--ink); border: 1px solid #bdb4ad; border-radius: .4rem; background: #fff; }
input[type=checkbox] { accent-color: var(--brand); }
small { display: block; font-weight: 400; font-size: .83rem; color: var(--muted); }
.check { font-weight: 400; }
details { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: .4rem; padding: .2rem .85rem; } summary { cursor: pointer; font-weight: 600; padding: .45rem 0; }
fieldset { border: 1px solid var(--line); border-radius: .4rem; margin: 0 0 .85rem; min-width: 0; } legend { font-weight: 650; padding: 0 .3rem; }
button { font: inherit; font-weight: 600; padding: .5rem 1.15rem; background: transparent; color: var(--brand); border: 1px solid var(--brand-2); border-radius: .4rem; cursor: pointer; }
button:hover { background: var(--brand); color: #fff; }
table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .93rem; }
th, td { text-align: left; padding: .5rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
main > table { max-width: 46rem; background: var(--card); border: 1px solid var(--line); } main > table th { background: #e9e4de; color: var(--brand); font-weight: 650; }
caption { text-align: left; font-weight: 650; }
.alert { background: #ede7dc; border-left: 3px solid var(--brass); border-radius: 0 .35rem .35rem 0; padding: .75rem 1rem; color: var(--ink); }
.cards { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cards a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand-2); border-radius: .6rem; padding: 1.15rem; text-decoration: none; color: var(--ink); }
.cards a strong { display: block; margin-bottom: .3rem; font-size: 1.05rem; color: var(--brand); }
.cards a:hover { border-color: var(--brass); }
footer { margin-top: 3.5rem; background: var(--brand); border-top: 3px solid var(--brass); color: #c9bbc2; font-size: .85rem; }
footer .inner { padding-top: 1.1rem; padding-bottom: 1.8rem; }
footer a { display: inline-block; color: #eee5e9; margin-right: 1.2rem; }
/* Keep money amounts on one line inside the narrow results panel. */
.result th, .result td { overflow-wrap: normal; }
.result tr > * + * { white-space: nowrap; }
.result tr:first-child > * + * { white-space: normal; }
@media (max-width: 25rem) { .result { padding-left: .6rem; padding-right: .6rem; } .result table { font-size: .76rem; } .result th, .result td { padding-right: .15rem; padding-left: .15rem; } }
