:root {
  --bg: #0f1115;
  --panel: #171a21;
  --ink: #e8eaed;
  --muted: #9aa0a6;
  --accent: #ff9900;
  --line: #2a2f3a;
  --radius: 10px;
  --max: 960px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.site-header .brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.site-header nav a { margin-left: 1rem; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: 0.85rem; flex-wrap: wrap;
}

.profile { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.headshot { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.profile h1 { margin: 0 0 0.25rem; }
.profile .title { margin: 0; color: var(--accent); }
.profile .tagline { margin: 0.5rem 0; }
.profile .alias { color: var(--muted); margin: 0; }

.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; min-width: 120px; }
.stat .num { display: block; font-size: 1.6rem; font-weight: 700; }
.stat .label { color: var(--muted); font-size: 0.85rem; }

.badges { list-style: none; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badges li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.85rem; }

.cert-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.cert { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem; color: var(--ink); }
.cert img { width: 96px; height: 96px; object-fit: contain; }
.cert-name { font-size: 0.85rem; }
.cert-status { font-size: 0.75rem; color: var(--muted); }
.cert.expired img { filter: grayscale(1); opacity: 0.6; }
.cert.expired .cert-status { color: #e06c75; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.card h3 { margin: 0 0 0.5rem; }
.card .impact { margin: 0 0 0.75rem; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag { background: #202634; border: 1px solid var(--line); border-radius: 6px; padding: 0.1rem 0.5rem; font-size: 0.75rem; color: var(--muted); }

.disclaimer { background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.disclaimer button { margin-top: 1rem; background: var(--accent); color: #111; border: 0; border-radius: 6px; padding: 0.6rem 1rem; font-weight: 600; cursor: pointer; }

.iframe-wrap, .embed { position: relative; width: 100%; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.iframe-wrap iframe { width: 100%; height: 80vh; border: 0; background: #fff; }
.embed { padding-top: 56.25%; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.rendered-md { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.rendered-md pre { background: #0b0d11; padding: 1rem; border-radius: 8px; overflow: auto; }
.rendered-md code { background: #0b0d11; padding: 0.1rem 0.35rem; border-radius: 4px; }
