/* LFG Sites themes: three complete looks driven by CSS variables (SPEC.md 14.1).
   Switch with a class on <body>: theme-clean, theme-bold, theme-corporate. */

:root, body.theme-clean {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #1a1d23;
  --muted: #5b6472;
  --accent: #0f766e;
  --accent-contrast: #ffffff;
  --border: #e3e6ea;
  --good: #1f9d55;
  --mid: #d9a300;
  --poor: #d64545;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 30, 40, 0.06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --heading-weight: 700;
  --letter: -0.01em;
}

body.theme-bold {
  --bg: #fffaf3;
  --surface: #fff1dc;
  --text: #241a12;
  --muted: #6d5a48;
  --accent: #ff4d1f;
  --accent-contrast: #ffffff;
  --border: #f3d9bf;
  --good: #1b9c62;
  --mid: #f2a600;
  --poor: #e03131;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(255, 77, 31, 0.12);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Nunito", system-ui, sans-serif;
  --heading-weight: 900;
  --letter: -0.02em;
}

body.theme-corporate {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #16233a;
  --muted: #55627a;
  --accent: #1f3a93;
  --accent-contrast: #ffffff;
  --border: #d9dfe8;
  --good: #2e8b57;
  --mid: #c88a00;
  --poor: #b23a3a;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(22, 35, 58, 0.08);
  --font: "Georgia", "Times New Roman", serif;
  --font-display: "Helvetica Neue", Arial, sans-serif;
  --heading-weight: 600;
  --letter: 0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--heading-weight); letter-spacing: var(--letter); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.muted { color: var(--muted); }
.btn { display: inline-block; background: var(--accent); color: var(--accent-contrast); text-decoration: none; padding: 12px 20px; border-radius: calc(var(--radius) / 1.5); font-weight: 700; border: 0; cursor: pointer; font-size: 1rem; }
.btn.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.badge.high { background: var(--poor); }
.badge.medium { background: var(--mid); color: #201a00; }
.badge.low { background: var(--muted); }
.badge.effort { background: var(--border); color: var(--text); }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* Charts */
.dial { display: inline-flex; flex-direction: column; align-items: center; margin: 0; text-align: center; }
.dial figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
/* SVG charts carry their colours as attributes (so PDFs render them); CSS only sets type. */
.dial-number { font-family: var(--font-display); }
.bar-label, .bar-number { font-family: var(--font); }

/* Site header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; flex-wrap: wrap; }
.site-header .logo { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--text); text-decoration: none; letter-spacing: -0.03em; }
.site-header nav a { margin-left: 18px; color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer { margin-top: 60px; padding: 30px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.site-footer a { color: var(--muted); margin-right: 14px; }
