/* ======================================================================
   quiz.css — Energy Persona Quiz styles
   Scope: #quiz-container and its children
   Palette aligned with terminology flashcards: slate surfaces, gold CTAs.
   ====================================================================== */

/* ── Container & Screens ─────────────────────────────────────── */
#quiz-container {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: inherit;
}

.quiz-screen { display: none; }
.quiz-screen.active { display: block; }

/* ── Start Screen ─────────────────────────────────────────────── */
#quiz-start {
  text-align: center;
  padding: 3rem 2rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

#quiz-start .quiz-hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

#quiz-start h1 {
  color: #f8fafc;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

#quiz-start p {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

#quiz-start p a {
  color: #64ffda;
  font-weight: 600;
}

#quiz-start p strong {
  color: #e2e8f0;
}

.quiz-start-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.quiz-start-cta {
  background: #C5A005;
  color: #0A192F;
  font-weight: 700;
  padding: 0.75rem 2.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.18s, transform 0.12s;
}

.quiz-start-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.quiz-start-cta:focus-visible {
  outline: 2px solid #64ffda;
  outline-offset: 3px;
}

/* ── Question Screen ─────────────────────────────────────────── */
#quiz-question {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.quiz-progress-bar-wrap {
  background: #334155;
  height: 6px;
  border-radius: 0;
}

.quiz-progress-bar-fill {
  background: #C5A005;
  height: 6px;
  border-radius: 0;
  transition: width 0.4s ease;
  width: 0%;
}

.quiz-question-header {
  padding: 1.5rem 2rem .75rem;
  border-bottom: 1px solid #334155;
}

#qz-progress {
  font-size: .8rem;
  font-weight: 600;
  color: #C5A005;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

#qz-scenario {
  font-size: 1.08rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0;
}

.quiz-answers {
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ── Answer Button ────────────────────────────────────────────── */
.quiz-answer-btn {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: #0f172a;
  border: 2px solid #475569;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  min-height: 2.75rem;
  cursor: pointer;
  text-align: left;
  font-size: .95rem;
  color: #e2e8f0;
  line-height: 1.45;
  transition: border-color .18s, background .18s, transform .12s;
  width: 100%;
}

.quiz-answer-btn:hover:not(:disabled) {
  border-color: #64ffda;
  background: #243447;
  transform: translateX(3px);
}

.quiz-answer-btn:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
}

.quiz-answer-btn:disabled {
  cursor: default;
  opacity: .7;
}

.quiz-answer-btn.selected {
  border-color: #C5A005;
  background: rgba(197, 160, 5, 0.12);
}

.quiz-answer-btn.selected::after {
  content: '✓';
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 700;
  color: #C5A005;
  font-size: 1.1rem;
}

/* A/B/C/D label badge */
.quiz-choice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  background: #1e3a5f;
  color: #f1f5f9;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.quiz-answer-btn.selected .quiz-choice-label {
  background: #C5A005;
  color: #0A192F;
}

/* ── Question Footer ─────────────────────────────────────────── */
.quiz-question-footer {
  padding: 1rem 2rem 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.quiz-question-footer--split {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-quiz-back {
  background: #0f172a;
  color: #cbd5e1;
  border: 2px solid #475569;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.btn-quiz-back:hover:not(:disabled) {
  border-color: #64ffda;
  background: #1e293b;
  color: #f1f5f9;
}

.btn-quiz-back:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
}

.btn-quiz-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qz-scenario-focus:focus {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
}

#qz-next-btn {
  background: #C5A005;
  color: #0A192F;
  border: none;
  padding: .65rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .97rem;
  cursor: pointer;
  transition: opacity .18s, transform .12s;
}

#qz-next-btn:hover:not(:disabled) {
  opacity: .88;
  transform: translateY(-1px);
}

#qz-next-btn:focus-visible {
  outline: 2px solid #64ffda;
  outline-offset: 2px;
}

#qz-next-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* ── Result Screen ───────────────────────────────────────────── */
#quiz-result {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  overflow-x: hidden;
  overflow-y: visible;
  scroll-behavior: smooth;
  position: relative;
}

.qz-deeplink-banner {
  background: rgba(30, 58, 95, 0.55);
  border-bottom: 1px solid #334155;
  padding: 0.85rem 1.25rem;
}

.qz-deeplink-banner-text {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.qz-deeplink-banner-text strong {
  color: #f1f5f9;
}

.qz-save-warning {
  background: rgba(127, 29, 29, 0.35);
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
  padding: 0.75rem 1.25rem;
}

.qz-save-warning p {
  margin: 0;
  font-size: 0.86rem;
  color: #fecaca;
  line-height: 1.45;
  text-align: center;
}

.quiz-result-hero {
  background: linear-gradient(135deg, #0A192F 0%, #1e3a5f 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  color: #fff;
}

.quiz-result-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: .75rem;
}

.quiz-result-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #C5A005;
  margin-bottom: .5rem;
}

.quiz-result-title:focus {
  outline: none;
}

.quiz-result-title:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 3px;
}

.quiz-result-desc {
  font-size: .97rem;
  color: #cbd5e1;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Supplementary profile categories (pedagogical) */
.qz-profile-wrap {
  margin: 1.75rem auto 0;
  max-width: 560px;
  padding: 1.25rem 1.35rem 1.1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.22);
  text-align: left;
}

.qz-profile-heading {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C5A005;
}

.qz-profile-framing {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.88);
  line-height: 1.45;
}

.qz-profile-body {
  margin: 0;
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.55;
}

.qz-profile-note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.4;
}

.qz-profile-details {
  margin-bottom: 0.65rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 0 0.5rem;
}

.qz-profile-details:last-of-type {
  margin-bottom: 0;
}

.qz-profile-summary {
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 0.65rem 0.35rem;
  list-style: none;
}

.qz-profile-summary::-webkit-details-marker {
  display: none;
}

.qz-profile-summary:focus {
  outline: none;
}

.qz-profile-summary:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
  border-radius: 4px;
}

.qz-profile-details[open] .qz-profile-summary {
  color: #cbd5e1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 0.35rem;
}

.qz-profile-details .qz-profile-body {
  padding: 0 0.35rem 0.65rem;
}

.qz-profile-details .qz-profile-note {
  padding: 0 0.35rem 0.65rem;
}

/* Illustrative shadow / stress tendency (pedagogical) */
.qz-shadow-wrap {
  margin: 1.75rem auto 0;
  max-width: 540px;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(197, 160, 5, 0.28);
  text-align: left;
}

.qz-shadow-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(197, 160, 5, 0.95);
  margin: 0 0 0.35rem;
}

.qz-shadow-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.qz-shadow-body {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.qz-shadow-note {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.95);
  margin: 0;
  line-height: 1.45;
}

.qz-buddy-wrap {
  margin: 1.25rem auto 0;
  max-width: 540px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(30, 58, 95, 0.35);
  border: 1px solid rgba(100, 255, 218, 0.22);
  text-align: center;
}

.qz-buddy-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(100, 255, 218, 0.9);
  margin: 0 0 0.25rem;
}

.qz-buddy-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.35;
}

/* ── Grid signature radar ───────────────────────────────────── */
.qz-radar-section {
  padding: 1.5rem 2rem 1.25rem;
  border-bottom: 1px solid #334155;
  background: #0f172a;
  scroll-margin-top: 1rem;
}

.qz-radar-section h6 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #C5A005;
  margin-bottom: 0.5rem;
}

.qz-radar-framing {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 1rem;
  line-height: 1.45;
  max-width: 520px;
}

.qz-radar-chart-wrap {
  max-width: 320px;
  margin: 0 auto;
  overflow: visible;
}

.qz-radar-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.qz-radar-legend {
  list-style: none;
  margin: 1rem auto 0;
  padding: 0;
  max-width: 420px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.qz-radar-legend li {
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
  border-left: 3px solid rgba(197, 160, 5, 0.45);
}

/* ── Axis Bars (legacy; unused when radar-only result UI) ───── */
.quiz-axes-section {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #334155;
  background: #0f172a;
}

.quiz-axes-section h6 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #C5A005;
  margin-bottom: 1rem;
}

.quiz-axis-row {
  margin-bottom: 1rem;
}

.quiz-axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: #94a3b8;
  margin-bottom: .3rem;
}

.quiz-axis-track {
  position: relative;
  background: #334155;
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.quiz-axis-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #1e3a5f, #C5A005);
  border-radius: 6px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
  width: 50%;
}

.quiz-axis-midline {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2px;
  background: rgba(248, 250, 252, 0.25);
}

/* ── Runner-up Section ───────────────────────────────────────── */
.quiz-runnerup-section {
  padding: 1.25rem 2rem 1rem;
  border-bottom: 1px solid #334155;
  background: #1e293b;
}

.quiz-runnerup-section h6 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: .85rem;
}

.quiz-runnerup-note {
  font-size: .8rem;
  line-height: 1.45;
  color: #94a3b8;
  margin: -0.35rem 0 0.85rem;
  max-width: 40rem;
}

.quiz-runnerup-cards {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.quiz-runnerup-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .88rem;
  color: #e2e8f0;
}

.quiz-runnerup-card .ruc-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
}

.quiz-runnerup-card .ruc-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.quiz-runnerup-card .ruc-icon {
  font-size: 1.25rem;
}

.quiz-runnerup-card .ruc-title {
  font-weight: 600;
  color: #f1f5f9;
}

a.quiz-runnerup-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

a.quiz-runnerup-card:hover {
  border-color: #C5A005;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

a.quiz-runnerup-card:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
}

/* ── Least similar (contrast) ───────────────────────────────── */
.quiz-least-similar-section {
  padding: 1.25rem 2rem 1rem;
  border-bottom: 1px solid #334155;
  background: #1e293b;
}

.quiz-least-similar-section h6 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: .5rem;
}

.quiz-least-similar-framing {
  font-size: .78rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0 0 .85rem;
  max-width: 40rem;
}

.quiz-least-similar-cards {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

a.quiz-least-similar-card {
  border-style: dashed;
  border-color: #475569;
}

a.quiz-least-similar-card:hover {
  border-color: #64748b;
}

/* ── Explore next (persona_explore_links.json) ─────────────────── */
.quiz-explore-next-section {
  padding: 1.25rem 2rem 1rem;
  border-bottom: 1px solid #334155;
  background: #1e293b;
}

.quiz-explore-next-section h6 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: .5rem;
}

.quiz-explore-next-intro {
  font-size: .82rem;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0 0 .75rem;
  max-width: 42rem;
}

.quiz-explore-next-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #cbd5e1;
  font-size: .88rem;
  line-height: 1.55;
  max-width: 42rem;
}

.quiz-explore-next-link {
  color: #64ffda;
  font-weight: 600;
  text-decoration: none;
}

.quiz-explore-next-link:hover {
  text-decoration: underline;
  color: #86efac;
}

/* ── Actions ─────────────────────────────────────────────────── */
.quiz-result-actions {
  padding: 1.25rem 2rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-quiz-retake {
  background: #0A192F;
  color: #C5A005;
  border: 2px solid #C5A005;
  padding: .6rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.btn-quiz-retake:hover {
  background: #1e3a5f;
}

.btn-quiz-retake:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
}

.btn-quiz-browse {
  background: rgba(100, 255, 218, 0.12);
  color: #64ffda;
  border: 2px solid rgba(100, 255, 218, 0.55);
  padding: .6rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}

.btn-quiz-browse:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
}

.btn-quiz-browse:focus-visible {
  outline: 2px solid #64ffda;
  outline-offset: 2px;
}

/* Beats #quiz-start p margin shorthand (browse wrap is a <p>). */
#quiz-start .quiz-start-browse-wrap {
  margin-top: 3.25rem;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  align-items: center;
}

#quiz-start .quiz-start-cta {
  margin-bottom: 0;
}

.quiz-browse-all-btn {
  display: inline-block;
  text-decoration: none !important;
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}

.quiz-browse-all-btn:hover {
  color: #e2e8f0;
  border-color: #64748b;
  background: rgba(30, 41, 59, 0.5);
}

.quiz-browse-all-btn:focus-visible {
  outline: 2px solid #64ffda;
  outline-offset: 2px;
}

.quiz-browse-modal-btn {
  background: rgba(100, 255, 218, 0.08);
  color: rgba(100, 255, 218, 0.85);
  border: 1px solid rgba(100, 255, 218, 0.25);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}

.quiz-browse-modal-btn:hover {
  color: #64ffda;
  border-color: rgba(100, 255, 218, 0.45);
  background: rgba(100, 255, 218, 0.12);
}

.quiz-browse-modal-btn:focus-visible {
  outline: 2px solid #64ffda;
  outline-offset: 2px;
}

/* Locked persona teaser */
.qz-persona-locked {
  padding: 2.5rem 2rem 3rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.qz-persona-locked-hook {
  margin-bottom: 1.25rem;
}

.qz-persona-locked-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.qz-persona-locked-title {
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.qz-persona-locked-panel {
  text-align: left;
  margin: 0 auto 1.5rem;
  max-width: 420px;
}

.qz-persona-locked-lead {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.qz-persona-locked-lead a {
  color: #64ffda;
  font-weight: 600;
}

.qz-persona-locked-cta {
  margin-top: 0.25rem;
}

/* Persona library modal */
.qz-library-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .qz-library-modal {
    align-items: center;
  }
}

.qz-library-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.82);
  cursor: pointer;
}

.qz-library-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  padding: 1.5rem 1.25rem 2rem;
  margin: 0;
}

@media (min-width: 640px) {
  .qz-library-modal-panel {
    border-radius: 16px;
    margin: 1rem;
  }
}

.qz-library-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.qz-library-modal-close:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.qz-library-modal-title {
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 2rem 0.35rem 0;
  padding-right: 2rem;
}

.qz-library-modal-sub {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.qz-library-modal-sub strong {
  color: #cbd5e1;
  font-weight: 600;
}

.qz-library-teaser-text {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.qz-library-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.qz-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.qz-library-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  padding: 0.65rem 0.75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  cursor: pointer;
  color: #e2e8f0;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
}

.qz-library-card:hover {
  border-color: #C5A005;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.qz-library-card:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
}

.qz-library-card-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.qz-library-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: #cbd5e1;
}

.quiz-result--library .quiz-runnerup-section,
.quiz-result--library .quiz-least-similar-section,
.quiz-result--library .quiz-explore-next-section {
  display: none !important;
}

/* ── Sign-in Nudge ───────────────────────────────────────────── */
.quiz-signin-nudge {
  background: rgba(30, 58, 95, 0.45);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .88rem;
  color: #cbd5e1;
  flex: 1;
  min-width: 200px;
}

.quiz-signin-nudge a {
  font-weight: 700;
  color: #C5A005;
}

.quiz-signin-nudge a:hover {
  color: #64ffda;
}

/* ── Result: account / profile / compare panels ───────────── */
.qz-result-context {
  padding: 0 2rem 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

.qz-context-panel {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.qz-context-panel a {
  font-weight: 700;
  color: #C5A005;
}

.qz-context-panel a:hover {
  color: #64ffda;
}

.qz-context-heading {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.qz-context-lead {
  margin: 0;
  line-height: 1.5;
}

.qz-context-note {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

.qz-persona-profile-compare {
  background: #0f172a;
  border-color: #475569;
  color: #cbd5e1;
}

.qz-persona-profile-compare .qz-context-heading {
  color: #f8fafc;
}

.qz-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .qz-compare-grid {
    grid-template-columns: 1fr;
  }
}

.qz-compare-cell {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.qz-compare-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.qz-compare-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}

/* Sticky quick actions (result screen) */
.qz-result-sticky {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0));
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid #334155;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.quiz-result--deeplink .qz-sticky-link {
  display: none;
}

.qz-sticky-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 2px solid #C5A005;
}

.qz-sticky-link:hover {
  background: rgba(197, 160, 5, 0.12);
  color: #f8fafc;
}

.qz-sticky-link:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
}

.qz-sticky-retake {
  background: #0A192F;
  color: #C5A005;
  border: 2px solid #C5A005;
  padding: 0.45rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.qz-sticky-retake:hover {
  background: #1e3a5f;
}

.qz-sticky-retake:focus-visible {
  outline: 2px solid #C5A005;
  outline-offset: 2px;
}

/* Explore more (footer of result card) */
.quiz-explore-more {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid rgba(197, 160, 5, 0.2);
  text-align: center;
  background: #0f172a;
}

.quiz-explore-more-label {
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}

.quiz-explore-more-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
}

.quiz-explore-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.quiz-explore-link--gold {
  color: rgba(197, 160, 5, 0.95);
}

.quiz-explore-link--teal {
  color: #64ffda;
}

.quiz-explore-link:hover {
  text-decoration: underline;
}

.quiz-explore-soon {
  opacity: 0.65;
  font-weight: 500;
}

/* Example Grid Signature on quiz start (same tokens as persona_pages.css .persona-example-radar) */
#quiz-start .persona-example-radar {
  margin: 2rem auto 0;
  max-width: 560px;
  padding: 1.5rem 1rem 1.35rem;
  border: 1px solid rgba(100, 255, 218, 0.12);
  border-radius: 12px;
  background: #0f172a;
  text-align: center;
}

#quiz-start .persona-example-radar .container {
  max-width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.persona-example-radar-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #c5a005;
  text-align: center;
  margin: 0 0 0.65rem;
}

.persona-example-radar-lead {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

.persona-example-radar-chart-wrap {
  max-width: 320px;
  margin: 0 auto;
  overflow: visible;
}

.persona-example-radar-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.persona-example-radar-legend {
  list-style: none;
  margin: 1.15rem auto 0;
  padding: 0;
  max-width: 420px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
  text-align: left;
}

.persona-example-radar-legend li {
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
  border-left: 3px solid rgba(197, 160, 5, 0.45);
}

.persona-example-radar-axis {
  font-weight: 600;
  color: #e2e8f0;
}

.persona-example-radar-cta-wrap {
  text-align: center;
  margin: 1.75rem 0 0;
}

.persona-example-radar-hint {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.persona-example-radar-hint strong {
  color: #e2e8f0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  #quiz-start h1 { font-size: 1.4rem; }
  #quiz-start .persona-example-radar {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  .quiz-question-header,
  .quiz-answers,
  .quiz-question-footer,
  .qz-radar-section,
  .quiz-axes-section,
  .quiz-runnerup-section,
  .quiz-least-similar-section,
  .quiz-explore-next-section,
  .quiz-result-actions,
  .qz-result-context { padding-left: 1.2rem; padding-right: 1.2rem; }
  .quiz-result-hero { padding: 2rem 1.2rem 1.5rem; }
  .quiz-result-title { font-size: 1.25rem; }
  .qz-result-sticky {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
