:root {
  --ink: #1e2422;
  --muted: #56615c;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #e2ddd2;
  --wood: #9a5213;
  --wood-dark: #7a400d;
  --wood-tint: #f4ece0;
  --link: #1f5c4a;
  --focus: #0b57d0;
  --radius: 10px;
  --max: 72rem;
  --prose: 44rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--wood-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand .logo { width: 30px; height: 30px; fill: var(--wood); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; font-size: .97rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--wood-dark); text-decoration: underline; }
.nav .nav-cta { background: var(--wood); color: #fff; padding: .35rem .8rem; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--wood-dark); color: #fff; text-decoration: none; }

/* layout */
main { padding-top: 1.25rem; padding-bottom: 3rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }
.doc { max-width: var(--prose); }
.doc-head h1, .hero h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: .2rem 0 .5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--wood); margin: 0; }
.meta, .small { color: var(--muted); font-size: .9rem; }
.small { display: inline; }
.card-list .small, .link-list .small { display: block; }
.prose h2 { font-size: 1.4rem; line-height: 1.25; margin: 2rem 0 .6rem; letter-spacing: -.01em; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin: .25rem 0; }
.lead { font-size: 1.1rem; }
sup.cite { font-size: .7em; line-height: 0; margin-left: .1em; }
sup.cite a { text-decoration: none; }

/* tables */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--wood-tint); font-weight: 700; }
table.facts th[scope="row"] { width: 34%; color: var(--muted); font-weight: 600; }
table.fits td, table.chart td { white-space: nowrap; }
table.fits td:last-child { white-space: normal; min-width: 12rem; }
table.fits th[scope="row"] { min-width: 9rem; }

/* lists and cards */
.link-list, .card-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.link-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.card-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 .6rem; }
.card-list li a { font-weight: 650; }
.card-list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.card-list.grid li { margin: 0; }

/* hero */
.hero { padding: 1.5rem 0 .5rem; max-width: var(--prose); }
.hero p { font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
section { margin: 0 0 2rem; }

/* buttons and boxes */
.button { display: inline-block; background: var(--wood); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.15rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--wood-dark); color: #fff; }
.button.ghost { background: transparent; color: var(--wood-dark); box-shadow: inset 0 0 0 2px var(--wood); }
.button.ghost:hover { background: var(--wood-tint); }
.cta-box { background: var(--wood-tint); border-left: 4px solid var(--wood); border-radius: 6px; padding: 1rem 1.1rem; margin: 2rem 0; }
.cta-box p { margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.sources ol { padding-left: 1.4rem; font-size: .92rem; }
.sources li { margin: .35rem 0; word-break: break-word; }

/* forms */
form.request, form.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; max-width: var(--prose); margin: 0 0 1.5rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 700; margin-bottom: .4rem; }
label { display: block; margin: 0 0 .8rem; font-weight: 600; }
.choice { font-weight: 500; display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .45rem; }
.choice input { margin-top: .35rem; }
input:not([type=radio]):not([type=checkbox]), select, textarea { display: block; width: 100%; margin-top: .25rem; padding: .55rem .65rem; border: 1px solid #b9b3a6; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.row label { flex: 1 1 8rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .95rem; }
.form-status { font-weight: 600; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a3261b; }
.calc-out { display: block; background: var(--wood-tint); border-radius: 8px; padding: .9rem 1rem; font-size: 1.05rem; min-height: 3rem; }
.calc-out strong { font-size: 1.6rem; color: var(--wood-dark); }
figure.plan { margin: 1rem 0 1.5rem; }
figure.plan svg { display: block; width: 100%; height: auto; max-height: 14rem; }
figure.plan .floor { fill: #fff; stroke: #56615c; stroke-width: 30; }
figure.plan .p { fill: #ead3ad; stroke: #9a5213; stroke-width: 16; }
figure.plan figcaption { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
[data-hide-empty]:not(:has(li)) { display: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 1.5rem 0 2rem; font-size: .92rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .5rem 0; }
.fine { font-size: .85rem; }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .nav { gap: .2rem .9rem; }
}
@media print {
  .site-header, .site-footer, .cta-box, form { display: none; }
}
