:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --text: #2b2110;
  --muted: #7a6c4c;
  --primary: #b8860b;
  --primary-contrast: #ffffff;
  --accent: #f5c542;
  --border: #f0e6c8;
  --font-heading: Impact, 'Arial Black', sans-serif;
  --font-body: Tahoma, Geneva, sans-serif;
  --radius: 0.35rem;
  --button-radius: 0.35rem;
  --space-unit: 1rem;
  --button-transform: none;
  --button-weight: 700;
}

/* Layout-agnostic reset + shared component styles.
   All colors/fonts come from the :root custom properties injected per-site
   above this file at render time (see src/render.py:build_theme_css). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 var(--space-unit, 1.25rem); }

/* nav */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: var(--space-unit, .9rem) 1.25rem; }
.site-nav .brand { font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.1rem; }
.site-nav .links a { margin-left: 1rem; text-decoration: none; color: var(--muted); font-size: .9rem; }
.site-nav .links a:hover { color: var(--primary); }

/* nav variant: centered stacked (see brief.py nav_style pick) */
.site-nav-centered .wrap { flex-direction: column; gap: .4rem; text-align: center; }
.site-nav-centered .brand { font-size: 1.3rem; text-transform: var(--button-transform, none); }
.site-nav-centered .links a { margin: 0 .6rem; }

/* hero */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--space-unit, 1rem) * 2.2) 0;
}
.hero p.lede { color: var(--muted); max-width: 60ch; }
.badge {
  display: inline-block; background: var(--accent); color: var(--text);
  font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: var(--radius, 999px);
  margin-bottom: .75rem;
}

/* CTA button */
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: .8rem 1.5rem;
  border-radius: var(--button-radius, .5rem);
  text-decoration: none;
  font-weight: var(--button-weight, 700);
  text-transform: var(--button-transform, none);
  letter-spacing: .01em;
  margin-top: .75rem;
}
.cta-button:hover { filter: brightness(1.08); }

/* body content */
.content { padding: calc(var(--space-unit, 1rem) * 2) 0; }
.content p { margin: 0 0 1rem; }

/* facts table */
table.facts { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
table.facts th, table.facts td {
  text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border);
}
table.facts th { color: var(--muted); font-weight: 600; width: 40%; }

/* steps */
ol.steps { padding-left: 1.25rem; }
ol.steps li { margin-bottom: .6rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.faq-item p { color: var(--muted); margin: 0; }

/* layout-02: compact top banner instead of a full hero */
.top-banner {
  background: var(--primary);
  color: var(--primary-contrast);
}
.top-banner .wrap { display: flex; align-items: center; justify-content: space-between; padding: var(--space-unit, .9rem) 1.25rem; flex-wrap: wrap; gap: .75rem; }
.top-banner h1 { color: var(--primary-contrast); font-size: 1.3rem; margin: 0; }
.top-banner .cta-button { background: var(--primary-contrast); color: var(--primary); }

.quick-facts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, .75rem);
  padding: var(--space-unit, 1.25rem);
  margin: 1.5rem 0;
}
.quick-facts-card table.facts { margin: 0; }

/* layout-03: split hero, facts as a card beside the intro */
.hero-split .wrap { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.hero-split .hero-main { flex: 1 1 340px; }
.hero-split .hero-card { flex: 0 1 280px; }

/* footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: .8rem;
}
.site-footer .legal { margin: .35rem 0; }
