/* IMB brand system, per CLAUDE_CODING.md — shared across index/assessment/admin. */
:root {
  --ink: #1B365D;
  --accent: #487A7B;
  --accent-light: rgba(72, 122, 123, 0.09);
  --muted: #707372;
  --prompt: #B2B4B2;
  --imb-red: #B83A4B;
  --imb-teal: #009681;
  --imb-orange: #E87722;
  --imb-yellow: #F3D54E;
  --ring-track: #E7E9EA;
  --bg: #FAFAF9;
  --card-bg: #FFFFFF;
  --border: #E2E4E3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: #222;
  font-family: 'Proform', 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, .brand-font {
  font-family: 'Azo Sans', 'Nunito Sans', sans-serif;
  color: var(--ink);
  margin: 0 0 0.5em;
}

a { color: var(--accent); }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

header.site-header img.logo { height: 32px; display: block; }

header.site-header .who { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { opacity: 0.9; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.google { background: #fff; color: #444; border: 1px solid var(--border); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input[type="text"], input[type="email"], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--ink); }

.progress-bar { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.progress-fill { height: 100%; background: var(--accent); transition: width .2s; }
.progress-label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

.step-desc { color: var(--muted); margin-bottom: 20px; }

.question-block { margin-bottom: 28px; }
.question-text { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
}
.option-btn:hover { border-color: var(--accent); }
.option-btn.selected { border-color: var(--accent); background: var(--accent-light); font-weight: 600; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 24px; }

.score-ring-wrap { display: flex; justify-content: center; margin: 12px 0; }
.church-name { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: -8px; }
.level-tagline { text-align: center; color: var(--muted); margin-top: -8px; }

.level-strip { display: flex; gap: 6px; margin: 20px 0; }
.level-chip {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  background: var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.level-chip.active { background: var(--accent); color: #fff; }

.dim-bars { margin: 20px 0; }
.dim-bar { margin-bottom: 12px; }
.dim-bar-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.dim-bar-track { height: 10px; background: var(--border); border-radius: 6px; overflow: hidden; }
.dim-bar-fill { height: 100%; background: var(--accent); }

.insight-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
@media (max-width: 560px) { .insight-cards { grid-template-columns: 1fr; } }
.insight-card { border-radius: 10px; padding: 16px; }
.insight-card.strength { background: rgba(0,150,129,0.08); }
.insight-card.priority { background: rgba(184,58,75,0.08); }
.insight-card ul { margin: 8px 0 0; padding-left: 20px; }

.ai-heading { margin-top: 28px; }
.ai-narrative h2 { font-size: 18px; margin-top: 18px; }
.ai-narrative h3 { font-size: 15px; }
.ai-narrative ul { padding-left: 20px; }
.ai-empty { color: var(--muted); font-style: italic; }
.spinner { color: var(--muted); font-size: 14px; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
table.admin-table tr { cursor: pointer; }
table.admin-table tr:hover { background: var(--accent-light); }

.saved-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.saved-list-item:last-child { border-bottom: none; }

.error-banner {
  background: rgba(184,58,75,0.1);
  color: var(--imb-red);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.back-link { display: inline-block; margin-bottom: 16px; }
