:root {
  --red: #E31C25;
  --blue: #002868;
  --black: #0a0a0a;
  --off: #f5f2ea;
  --muted: #b8b4ad;
  --gold: #C5A572;
  --chrome-h: 108px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--black);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: #ff6b72; }
.chrome {
  flex: 0 0 auto;
  background: var(--blue);
  border-bottom: 3px solid var(--red);
  z-index: 20;
}
.chrome-inner {
  width: min(100% - 1.25rem, 1200px);
  margin-inline: auto;
  padding: 0.55rem 0 0.65rem;
  display: grid;
  gap: 0.55rem;
}
.chrome-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}
.chrome-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.chrome-name {
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.1;
}
.chrome-office {
  margin: 0;
  color: #d7d2c8;
  font-size: 0.88rem;
}
.badge-real {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #0d3d1f;
  color: #9dffb8;
  border: 1px solid #2e8b57;
  padding: 0.22rem 0.5rem;
}
.badge-notion {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #3a3428;
  color: #e0c897;
  border: 1px solid var(--gold);
  padding: 0.22rem 0.5rem;
}
.wm-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 62ch;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}
.controls button,
.controls select,
.controls a.btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
}
.controls button:hover,
.controls a.btn:hover { background: rgba(255,255,255,0.1); }
.controls button:disabled { opacity: 0.4; cursor: not-allowed; }
.controls select {
  background: #001a44;
  max-width: min(100%, 220px);
}
.slide-label {
  font-size: 0.78rem;
  color: #ffb0b4;
  font-weight: 700;
}
.stage {
  flex: 1 1 auto;
  position: relative;
  background: #111;
  min-height: 0;
}
.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.template-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  pointer-events: none;
  background: rgba(10,10,10,0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-bottom: 2px solid var(--red);
  text-align: center;
}
.template-banner strong { color: var(--gold); }
.stage.has-banner iframe { top: 28px; height: calc(100% - 28px); }

/* Index page */
.page-wrap { width: min(100% - 2rem, 980px); margin: 2rem auto 3rem; }
.page-wrap h1 {
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
}
.kicker { color: var(--red); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.lede { color: var(--muted); max-width: 58ch; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.cand-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid #2a2a2a;
  background: #121212;
  padding: 1.1rem 1.15rem 1.25rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cand-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--red);
}
.cand-card h2 {
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin: 0.4rem 0 0.35rem;
}
.cand-card .office { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.65rem; }
.cand-card .notes { color: #9a958c; font-size: 0.8rem; margin: 0; }
.topbar {
  background: var(--blue);
  border-bottom: 3px solid var(--red);
  padding: 0.55rem 0;
  font-size: 0.9rem;
}
.topbar .inner { width: min(100% - 2rem, 980px); margin-inline: auto; }
.foot {
  border-top: 4px solid var(--red);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}
.foot .inner { width: min(100% - 2rem, 980px); margin-inline: auto; }
@media (max-width: 640px) {
  .chrome-inner { padding-top: 0.45rem; }
  .controls button, .controls select, .controls a.btn { padding: 0.4rem 0.55rem; font-size: 0.72rem; }
}
