:root {
  --navy: #1a2744;
  --navy-light: #2a3a5c;
  --orange: #f5821f;
  --ink: #202638;
  --muted: #5c6478;
  --bg: #f6f7fa;
  --card: #ffffff;
  --border: #e2e5ec;

  --dreamer: #2f5fd6;
  --doer: #d9402f;
  --delegator: #e8961e;
  --developer: #1f9d63;
  --distributor: #7b3fc4;

  --burnout: #d9402f;
  --ideal: #1f9d63;
  --misalign: #e8961e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

header.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #10182c 100%);
  color: #fff;
  padding: 48px 20px 40px;
  margin-bottom: 36px;
}

header.hero .wrap { padding-bottom: 0; }

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  font-size: 40px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h1 .d { color: var(--orange); }

.lede {
  font-size: 18px;
  color: #c9cfe0;
  max-width: 640px;
  margin: 0 0 4px;
}

h2 {
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 44px;
}

.role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 6px solid var(--role-color, var(--navy));
  border-radius: 10px;
  padding: 18px 20px;
}

.role-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.role-card .tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.role-card p {
  margin: 0;
  font-size: 14.5px;
  color: #3a4257;
}

.role-card .watch {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.role-card .tagline-inline {
  font-weight: 400;
  font-style: italic;
  color: #8a8f9c;
  font-size: 15px;
}

.pills {
  margin: 10px 0 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-block;
  background: var(--role-color, var(--navy));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 100px;
  opacity: 0.88;
}

.trap-box {
  background: #fff4ec;
  border: 1px solid #f3c79b;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 44px;
  font-size: 14.5px;
}

.trap-box strong.title {
  display: block;
  color: #b0501a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12.5px;
  margin-bottom: 8px;
}

form#assessment-form { margin-top: 8px; }

.role-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 24px 8px;
  margin-bottom: 22px;
  border-top: 5px solid var(--role-color, var(--navy));
}

.role-block h3 {
  margin: 0 0 2px;
  font-size: 20px;
}

.role-block .tagline {
  color: var(--muted);
  font-style: italic;
  margin: 0 0 18px;
  font-size: 14px;
}

.slider-row {
  margin-bottom: 20px;
}

.slider-row label.q {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.slider-row .help {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.slider-control {
  display: flex;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e2e5ec;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--role-color, var(--navy));
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--role-color, var(--navy));
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--role-color, var(--navy));
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--role-color, var(--navy));
  cursor: pointer;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9aa1b3;
  margin-top: 4px;
  /* Matches the range thumb's 24px diameter (12px radius) so each number
     lines up under the thumb's actual resting position for that value. */
  padding: 0 12px;
}

.submit-row {
  text-align: center;
  margin-top: 30px;
}

button.btn-primary {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 130, 31, 0.35);
}

button.btn-primary:hover { background: #e0731a; }

button.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button.btn-secondary:hover { border-color: var(--navy); }

footer.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
}

/* ---------- Results page ---------- */

.summary-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.result-table th, .result-table td {
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.result-table th {
  background: #f0f1f5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.result-table td.role-name {
  text-align: left;
  font-weight: 700;
}

.result-table tr:last-child td { border-bottom: none; }

.result-table tr.graph-row td {
  padding: 4px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.result-table tr.graph-row:last-child td { border-bottom: none; }

.bar-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #9aa1b3;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.tag.burnout { background: var(--burnout); }
.tag.ideal { background: var(--ideal); }
.tag.misalign { background: var(--misalign); }
.tag.critical-burnout { background: #8f1c10; font-weight: 800; }
.tag.critical-misalign { background: #a35c00; font-weight: 800; }

.bar-track {
  position: relative;
  height: 10px;
  background: linear-gradient(to right, var(--burnout) 0%, #f5d9a0 35%, var(--ideal) 47%, var(--ideal) 53%, #f5d9a0 65%, var(--misalign) 100%);
  border-radius: 5px;
  margin: 6px 0 2px;
}
.bar-marker {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 18px;
  background: var(--navy);
  border-radius: 2px;
  transform: translateX(-50%);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.action-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 6px solid var(--role-color, var(--navy));
  border-radius: 10px;
  padding: 18px 20px;
}

.action-card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 8px;
  color: #fff;
}
.badge.do-more { background: var(--ideal); }
.badge.delegate { background: var(--burnout); }
.badge.aligned { background: var(--navy); }
.badge.watch { background: var(--misalign); }
.badge.zero { background: #1e6fa8; }

.action-card h4 { margin: 0 0 6px; font-size: 17px; }
.action-card p { margin: 0; font-size: 14.5px; color: #3a4257; }

.urgent-alert {
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 4px 0 10px;
  border-left: 4px solid;
}
.urgent-alert.burnout {
  background: #fdecea;
  color: #8f1c10;
  border-left-color: var(--burnout);
}
.urgent-alert.misalign {
  background: #fdf3e2;
  color: #7a4b00;
  border-left-color: var(--misalign);
}

.one-move {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 30px;
}
.one-move .eyebrow { margin-bottom: 8px; }
.one-move p { font-size: 16px; margin: 0; }

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Printable reference section (role explainer) */
.print-only { display: none; }

@media print {
  header.hero { background: none !important; color: var(--ink) !important; padding: 20px 0; }
  .lede { color: var(--muted); }
  .no-print { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  .role-block, .action-card, .role-card, .result-table, .summary-banner, .one-move {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .one-move { background: #fff !important; color: var(--ink) !important; border: 2px solid var(--navy); }
  a[href]:after { content: ""; }
}

@media (min-width: 620px) {
  .roles-grid { grid-template-columns: 1fr; }
}
