:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --ink: #26221c;
  --muted: #6d675c;
  --line: #e7e2d8;
  --accent: #c2410c;
  --accent-soft: #fff2e9;
  --radius: 12px;
  --wrap: 900px;
  font-size: 17px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.main-nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.main-nav a:hover { color: var(--accent); }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a { padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .8rem; text-decoration: none; color: var(--muted); }
.lang-switch a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

main.wrap { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .2em 0 .6em; }
h2 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
a { color: var(--accent); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.lede { font-size: 1.1rem; color: var(--muted); }

.answer-card { background: var(--accent-soft); border: 1px solid #f4d3bf; border-radius: var(--radius); padding: 18px 22px; margin: 8px 0 4px; }
.answer-label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--accent); font-weight: 700; }
.answer { font-size: 1.7rem; font-weight: 700; margin: 4px 0 0; }
.extra { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.extra li { display: flex; flex-direction: column; }
.extra span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.extra strong { font-size: 1.1rem; }

.calc-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.calc-box label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.calc-input { width: 110px; padding: 8px 10px; font-size: 1.1rem; border: 1px solid var(--line); border-radius: 8px; }
.calc-box .unit { color: var(--muted); }
.calc-box .eq { font-size: 1.3rem; color: var(--muted); }
.calc-output { font-size: 1.4rem; font-weight: 700; color: var(--accent); min-width: 70px; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: #f3efe7; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: none; }

.note { font-size: .85rem; color: var(--muted); }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--ink); }

.related, .link-list { list-style: none; padding: 0; }
.related li, .link-list li { margin: 6px 0; }
.link-list.two-col { columns: 2; column-gap: 40px; }
@media (max-width: 560px) { .link-list.two-col { columns: 1; } }

.hub-group { margin-bottom: 8px; }
.hub-group h2 { margin-bottom: .2em; }
.guide-body ul { margin: .5em 0; }

.affiliates { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 1.8em; background: var(--card); }
.affiliates h2 { margin-top: 0; font-size: 1.1rem; }
.aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.aff-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--bg); transition: border-color .15s, transform .15s; }
.aff-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.aff-name { font-weight: 700; }
.aff-blurb { font-size: .85rem; color: var(--muted); }
.aff-cta { font-size: .82rem; font-weight: 600; color: var(--accent); margin-top: 4px; }
.aff-disclosure { margin-top: 12px; margin-bottom: 0; font-style: italic; }

.gc-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; box-shadow: 0 6px 30px rgba(0,0,0,.16); max-width: 760px; margin: 0 auto; }
.gc-consent-msg { margin: 0; font-size: .9rem; flex: 1; min-width: 240px; }
.gc-consent-btns { display: flex; gap: 10px; }
.gc-consent button { cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); }
.gc-accept { background: var(--accent); color: #fff; border-color: var(--accent); }
.gc-decline { background: transparent; color: var(--muted); }
.cookie-settings { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; text-decoration: underline; padding: 0; }

.hero { padding: 10px 0 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0; }
.site-footer p { font-size: .8rem; color: var(--muted); margin: 0; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1712; --card: #241f19; --ink: #ece7dd; --muted: #a49c8d; --line: #38312a; --accent: #f97316; --accent-soft: #2c211a; }
  th { background: #2c261f; }
}
