body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;margin:0;background:#fff;color:#111}
.container{max-width:980px;margin:40px auto;padding:0 20px}
h1,h2,h3{margin:0 0 14px 0}
p{line-height:1.5}
.table{width:100%;border-collapse:collapse;margin:18px 0}
.table th,.table td{border-bottom:1px solid #e5e5e5;padding:10px 8px;vertical-align:top}
.table th{font-weight:600;text-align:left}
.num{width:90px;padding:6px}
.actions{display:flex;gap:10px;margin-top:18px}
.button{display:inline-block;padding:10px 14px;border-radius:8px;background:#111;color:#fff;text-decoration:none;border:0;cursor:pointer}
.button.secondary{background:#f1f1f1;color:#111}
.hint{color:#555;font-size:0.95em;margin-top:24px}
img.chart{max-width:100%;height:auto;border:1px solid #eee;border-radius:8px}
img.chart-tall{max-width:100%;height:auto}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.card{border:1px solid #e9e9e9;border-radius:10px;padding:14px}
.small{color:#555;font-size:0.95em}

.pointsbar{display:flex;gap:18px;align-items:center;margin:12px 0 6px 0;padding:10px 12px;border:1px solid #e9e9e9;border-radius:10px;background:#fafafa}
.error{margin:12px 0;padding:10px 12px;border:1px solid #b00020;border-radius:10px;background:#fff5f6;color:#b00020;font-weight:600}
button.button:disabled{opacity:0.45;cursor:not-allowed}


.introbox{margin:12px 0 12px 0;padding:12px 14px;border:1px solid #e9e9e9;border-radius:12px;background:#fcfcfc}
.introbox p{margin:6px 0}

.note{margin:12px 0 12px 0;padding:12px 14px;border:1px solid #e9e9e9;border-radius:12px;background:#fcfcfc}
.note p{margin:6px 0}

.defs{margin:6px 0 18px 0}
.defs-title{font-weight:700;margin:0 0 6px 0}
.stmt{font-weight:600}
.expl{margin-top:6px;color:#555;font-size:0.92em;line-height:1.35}
.dimdesc{margin-top:6px;color:#444;font-size:0.92em;line-height:1.35}

/* Optional respondent name field in the points bar */
.namebox{margin-left:auto;display:inline-flex;gap:8px;align-items:center;font-size:14px}
input.name{padding:6px 8px;border:1px solid #ddd;border-radius:6px;width:180px}

.meta{display:flex;gap:18px;flex-wrap:wrap;color:#555;margin:6px 0 14px 0;font-size:14px}
.download-link{margin:16px 0 24px 0}
.download-link a{font-weight:700}


/* Plain-English explainer under formal definition */
.plain{ margin-top:6px; padding:8px 10px; border-left:3px solid #cfd8dc; background:#f7f9fa; color:#263238; font-size:0.92em; line-height:1.25em; }


.theme-card {
  border: 1px solid #d9d9d9;
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 0 0 1rem 0;
}

.theme-role {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  margin-bottom: 0.2rem;
}

.theme-name {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.theme-text {
  margin: 0;
}

.profile-structure-intro ul {
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}

.profile-structure-intro li {
  margin-bottom: 0.35rem;
}


.archetype-hero {
  border: 1px solid #d9d9d9;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.25rem 0;
}

.archetype-kicker {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.25rem;
}

.archetype-name {
  font-size: 1.8rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.archetype-subtext {
  margin: 0;
  color: #444;
}


.snapshot-section {
  margin: 0 0 1.75rem 0;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.snapshot-card {
  border: 1px solid #d9d9d9;
  background: #fafafa;
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.snapshot-card-wide {
  grid-column: span 2;
}

.snapshot-kicker {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.3rem;
}

.snapshot-title {
  font-size: 1.7rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.snapshot-title-small {
  font-size: 1.35rem;
}

.snapshot-text {
  margin: 0;
}

.snapshot-list {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

@media (max-width: 800px) {
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-card-wide {
    grid-column: span 1;
  }
}

/* Questionnaire wizard */
.questionnaire-shell{max-width:1100px}
.questionnaire-header{margin-bottom:18px}
.questionnaire-lead{font-size:1.04rem;color:#46525c;max-width:860px}
.questionnaire-intro-card,.wizard-card{border:1px solid #d8dde3;border-radius:18px;background:#fcfdfe;box-shadow:0 10px 28px rgba(24,39,75,0.06)}
.questionnaire-intro-card{padding:18px 20px;margin:0 0 18px 0}
.questionnaire-intro-list{margin:10px 0 10px 20px;padding:0}
.questionnaire-intro-list li{margin:0 0 8px 0}
.wizard-card{padding:22px 22px 18px 22px}
.wizard-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.wizard-kicker{font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#6b7280;margin-bottom:4px}
.wizard-title{font-size:1.45rem;font-weight:800;line-height:1.15}
.wizard-step-pill{padding:8px 12px;border-radius:999px;background:#eef2f6;color:#30404f;font-weight:700;white-space:nowrap}
.wizard-progress{height:10px;border-radius:999px;background:#e7ebef;overflow:hidden;margin-bottom:18px}
.wizard-progress-fill{height:100%;width:33.333%;background:linear-gradient(90deg,#577189 0%,#8d4c52 100%);transition:width .2s ease}
.wizard-meta-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.wizard-meta-box{padding:12px 14px;border:1px solid #e4e8ec;border-radius:14px;background:#fff}
.wizard-meta-label{font-size:.84rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6b7280;margin-bottom:4px}
.wizard-meta-value{font-size:1.1rem;font-weight:700;color:#1f2933}
.wizard-panel.is-hidden,.pass1-card.is-hidden{display:none}
.wizard-namebox{margin:0 0 18px 0}
.pass1-card{padding:18px;border:1px solid #e4e8ec;border-radius:16px;background:#fff}
.pass1-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:8px}
.pass1-step-count{font-size:.84rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#7c8792;margin-bottom:5px}
.pass1-total-badge{padding:8px 12px;border-radius:999px;background:#eef2f6;color:#30404f;font-weight:700;white-space:nowrap}
.pass1-dimdesc{margin-bottom:14px}
.pass1-endcaps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}
.pass1-endcap{padding:14px;border:1px solid #e6eaee;border-radius:14px;background:#f8fafb}
.split-slider-block{padding:14px;border:1px solid #dce3e8;border-radius:14px;background:#fbfcfd}
.split-slider-label-row,.split-score-row{display:flex;justify-content:space-between;gap:14px}
.split-slider-label-row{font-weight:700;color:#475569;margin-bottom:8px}
.split-slider{width:100%;margin:10px 0 16px 0}
.split-score-row{flex-wrap:wrap}
.split-score-box{flex:1 1 220px;padding:12px 14px;border-radius:12px;background:#eef2f6}
.split-score-label{font-size:.9rem;color:#54616d;margin-bottom:4px}
.split-score-value{font-size:1.5rem;font-weight:800;color:#1f2933}
.split-helper{margin:10px 0 0 0;color:#55616d}
.pass2-intro-grid,.pass3-intro-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:14px;margin-bottom:18px}
.pass2-intro-card,.pass3-intro-card{padding:16px;border:1px solid #e4e8ec;border-radius:16px;background:#fff}
.pass2-total-card,.pass3-total-card{display:flex;flex-direction:column;justify-content:center}
.pass2-total-value,.pass3-total-value{font-size:2rem;font-weight:800;line-height:1.05;margin:6px 0 8px 0}
.pass2-total-remaining,.pass3-total-remaining{color:#4a5561}
.salience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.salience-card{padding:16px;border:1px solid #e4e8ec;border-radius:16px;background:#fff}
.salience-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.salience-name{font-size:1.05rem;font-weight:800;color:#1f2933;margin-bottom:2px}
.salience-preview{padding:8px 10px;border-radius:999px;background:#eef2f6;color:#30404f;font-weight:700;white-space:nowrap}
.salience-input-row{display:flex;align-items:center;gap:10px}
.salience-adjust{width:40px;height:40px;border:1px solid #cfd8df;border-radius:10px;background:#f6f8fa;color:#24313d;font-size:1.4rem;line-height:1;cursor:pointer}
.salience-input{width:110px;text-align:center;font-size:1.05rem}
.draft-chart{display:flex;flex-direction:column;gap:14px}
.draft-row{display:grid;grid-template-columns:220px minmax(0,1fr) 230px;gap:16px;align-items:center;padding:14px;border:1px solid #e4e8ec;border-radius:16px;background:#fff}
.draft-dim-name{font-weight:800;margin-bottom:4px}
.draft-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.draft-bar-block{display:flex;flex-direction:column;gap:6px}
.draft-bar-label{font-size:.9rem;color:#55616d;font-weight:700}
.draft-bar-track{height:16px;border-radius:999px;background:#e8edf1;overflow:hidden}
.draft-bar-fill{height:100%;width:0%;transition:width .15s ease}
.draft-bar-fill-a{background:#6f889d}
.draft-bar-fill-b{background:#9a6266}
.draft-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.draft-inputs label{display:flex;flex-direction:column;gap:6px;font-size:.92rem;color:#485461;font-weight:700}
.final-input{width:100%}
.wizard-nav{display:flex;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}
.pass2-total-card.state-green,.pass3-total-card.state-green{background:#eef9f1;border-color:#cfe6d6}
.pass2-total-card.state-orange,.pass3-total-card.state-orange{background:#fff7ea;border-color:#efd8ad}
.pass2-total-card.state-red,.pass3-total-card.state-red{background:#ffeff1;border-color:#f0c6ce}
@media (max-width: 900px){.wizard-meta-row,.pass1-endcaps,.salience-grid,.pass2-intro-grid,.pass3-intro-grid,.draft-row,.draft-bars,.draft-inputs{grid-template-columns:1fr}.draft-row{gap:12px}}

.questionnaire-step-list{display:flex;flex-direction:column;gap:12px;margin:12px 0 0 0}
.questionnaire-step{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:start}
.questionnaire-step-num{font-weight:700;line-height:1.45;color:#1f2933}
.questionnaire-step-body{line-height:1.55;color:#1f2933}
.draft-inputs label span{white-space:nowrap}

.rerun-panel{
  margin: 1.1rem 0 1.35rem 0;
}
.rerun-panel-top{
  margin-top: 0.35rem;
  margin-bottom: 1.8rem;
}
.rerun-panel-bottom{
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}
.rerun-note{
  margin: 0.75rem 0 0 0;
  max-width: none;
  width: 100%;
  line-height: 1.55;
}

.report-card-shell{
  margin: 2rem 0 2.4rem 0;
  background: linear-gradient(180deg, #f5f7fa 0%, #f3f5f8 100%);
  border: 1px solid #dde3e8;
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
  position: relative;
  overflow: hidden;
}

.report-card-shell::before{
  content: "";
  display: block;
  height: 5px;
  margin: -1.4rem -1.4rem 1.2rem -1.4rem;
  background: linear-gradient(90deg, #8ea8bb 0%, #b7c0c8 52%, #b08b8b 100%);
}

.report-card-shell::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(176,139,139,0.08) 0%,
      rgba(176,139,139,0.03) 4.5%,
      rgba(176,139,139,0.00) 10%,
      rgba(176,139,139,0.00) 90%,
      rgba(176,139,139,0.03) 95.5%,
      rgba(176,139,139,0.08) 100%);
}

.report-card{
  margin: 0;
  position: relative;
  z-index: 1;
}

.report-card-grid{
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.report-card-panel{
  border: 1px solid #e1e5ea;
  border-radius: 20px;
  padding: 1.6rem 1.7rem;
  position: relative;
  overflow: hidden;
}

.report-card-panel-primary{
  background: linear-gradient(180deg, rgba(236,241,246,0.82) 0%, rgba(244,247,250,0.72) 100%);
}

.report-card-panel-matches{
  background: linear-gradient(180deg, rgba(247,243,243,0.92) 0%, rgba(245,241,241,0.78) 100%);
}

.report-card-summary{
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(251,250,250,0.84) 100%);
}

.report-card-summary::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(176,139,139,0.10) 0%,
      rgba(176,139,139,0.03) 5%,
      rgba(176,139,139,0.00) 11%,
      rgba(176,139,139,0.00) 89%,
      rgba(176,139,139,0.03) 95%,
      rgba(176,139,139,0.10) 100%);
}

.report-card-kicker{
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9b7d7d;
  margin-bottom: 1rem;
}

.report-card-main{
  font-size: 3rem;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111418;
  margin-bottom: 1.45rem;
  max-width: 11ch;
}

.report-card-subhead{
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9b7d7d;
  margin-top: 1rem;
  margin-bottom: 0.32rem;
}

.report-card-value{
  font-size: 1.25rem;
  font-weight: 750;
  color: #17202a;
}

.report-card-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.report-card-tag{
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #e1e7ed;
  color: #334556;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(128, 145, 158, 0.08);
}

.report-card-panel-matches .report-card-kicker{
  margin-bottom: 1.28rem;
}

.report-card-panel-matches .report-card-subhead:first-of-type{
  margin-top: 1.55rem;
}

.report-card-panel-matches .report-card-subhead{
  margin-top: 1.4rem;
  margin-bottom: 0.42rem;
}

.report-card-panel-matches .report-card-value{
  font-size: 1.15rem;
  line-height: 1.3;
}

.report-card-summary-line{
  font-size: 1.45rem;
  line-height: 1.6;
  color: #1d2228;
  margin: 0;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px){
  .report-card-shell{
    padding: 1rem;
    border-radius: 20px;
  }

  .report-card-shell::before{
    margin: -1rem -1rem 1rem -1rem;
  }

  .report-card-grid{
    grid-template-columns: 1fr;
  }

  .report-card-main{
    font-size: 2.3rem;
    max-width: none;
  }

  .report-card-summary-line{
    font-size: 1.18rem;
  }
}

/* Political Profile brand */
.pp-brand{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem 0;
}

.pp-brand__mark{
  display: inline-flex;
  align-items: center;
  color: #7f8fa6;
  line-height: 0;
}

.pp-brand__mark svg{
  width: 18px;
  height: 36px;
  overflow: visible;
}

.pp-brand__bar--blue{
  color: #7f8fa6;
}

.pp-brand__bar--rose{
  color: #9a6f73;
}

.pp-brand__wordmark{
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
  font-weight: 720;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: 2.25rem;
}

.pp-brand__political{
  color: #9a6f73;
}

.pp-brand__profile{
  color: #7f8fa6;
}

.pp-brand--compact{
  margin-bottom: 0.9rem;
}

.pp-brand--compact .pp-brand__mark svg{
  width: 14px;
  height: 28px;
}

.pp-brand--compact .pp-brand__wordmark{
  font-size: 1.6rem;
}

@media (max-width: 900px){
  .pp-brand__wordmark{
    font-size: 1.8rem;
  }

  .pp-brand--compact .pp-brand__wordmark{
    font-size: 1.35rem;
  }
}


.report-card-shell > .pp-brand{
  position: relative;
  z-index: 1;
  margin: 0 0 1.2rem 2.2rem;
}

.report-card-shell > .pp-brand.pp-brand--compact .pp-brand__wordmark{
  font-size: 1.75rem;
}

.report-card-shell > .pp-brand.pp-brand--compact .pp-brand__mark svg{
  width: 15px;
  height: 30px;
}


.results-card-heading{
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #111418;
  margin: 1.2rem 0 0.9rem 0;
}

.results-card-followup{
  font-size: 1rem;
  color: #5f6770;
  margin: 0.95rem 0 1.45rem 0;
}

.results-meta{
  margin: 0 0 2rem 0;
}

.results-meta .meta{
  margin: 0 0 0.85rem 0;
}

.results-meta .download-link{
  margin: 0 0 0.95rem 0;
}

.results-meta .rerun-panel-top{
  margin-top: 0.45rem;
  margin-bottom: 0;
}
