/* Mental health self-test — same theme, app-like on mobile */

.st-shell {
  width: min(100% - 1.25rem, 760px);
  margin: 0 auto 2.5rem;
}

.st-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(249, 201, 224, 0.65);
}

.st-intro h2,
.st-report h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  color: var(--ink);
  margin: 0.35rem 0 0.75rem;
}

.st-lead {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.st-bullets {
  list-style: disc;
  margin: 0 0 1.15rem 1.15rem;
  color: var(--text);
  display: grid;
  gap: 0.35rem;
}

.st-disclaimer {
  background: #fff8fb;
  border: 1px solid var(--pink-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.st-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.st-consent input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--pink-deep);
  flex-shrink: 0;
}

.st-progress {
  margin-bottom: 1rem;
}

.st-progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.st-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fb7abf, #d63384);
  border-radius: var(--radius-pill);
  transition: width 0.3s var(--ease);
}

.st-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.st-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--st-color, var(--pink)) 14%, white);
  color: var(--st-color, var(--pink-deep));
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.st-domain-chip span {
  background: var(--st-color, var(--pink-deep));
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
}

.st-safety-chip {
  --st-color: #b42318;
}

.st-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.st-q-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 0.35rem;
}

.st-q h3 {
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 1rem;
  font-weight: 650;
}

.st-options {
  display: grid;
  gap: 0.55rem;
  border: none;
  padding: 0;
  margin: 0;
}

.st-option {
  cursor: pointer;
  display: block;
}

.st-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.st-option-face {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--bg);
  min-height: 52px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.st-option-face strong {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 650;
}

.st-option-face em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.st-q-text {
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.45;
  margin: 0.5rem 0 1.15rem;
}

.st-section-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 1.15rem 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.st-pick-grid {
  display: grid;
  gap: 0.55rem;
}

.st-pick {
  appearance: none;
  border: 2px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
  font: inherit;
}

.st-pick strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.st-pick span {
  color: var(--muted);
  font-size: 0.82rem;
}

.st-pick.is-selected,
.st-pick:hover {
  border-color: var(--pink);
  background: var(--accent-soft);
}

.st-pick-full {
  margin-bottom: 0.35rem;
  background: #fff;
  border-color: var(--pink-soft);
}

.st-science {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.st-science h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--mauve);
}

.st-science p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.st-science ul {
  list-style: disc;
  margin: 0.35rem 0 0.75rem 1.15rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text);
}

.st-story-echo {
  background: var(--pink-wash);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.st-story-echo h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--mauve);
}

.st-story-echo p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

.st-save {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.st-save.ok {
  color: #2f6f5e;
  font-weight: 650;
}

.st-save.warn {
  color: #9a3412;
  font-weight: 650;
}

.st-overall-ring span {
  font-size: 0.68rem;
  opacity: 0.9;
  font-weight: 600;
}

@media (min-width: 640px) {
  .st-pick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .st-pick-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.st-option.is-selected .st-option-face,
.st-option input:checked + .st-option-face {
  border-color: var(--pink);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(244, 146, 198, 0.2);
}

.st-option:active .st-option-face {
  transform: scale(0.98);
}

.st-nav {
  margin-top: 1.25rem;
}

.st-error {
  margin-top: 0.75rem;
}

.st-based {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
}

.st-overall {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--pink-soft);
  background: linear-gradient(135deg, #fff, #fff8fb);
}

.st-overall-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: conic-gradient(from 210deg, #fb7abf, #d63384, #412b47, #fb7abf);
  color: #fff;
  box-shadow: 0 10px 28px rgba(214, 51, 132, 0.28);
  margin-inline: auto;
}

.st-overall-ring strong {
  font-size: 1.85rem;
  line-height: 1;
}

.st-overall-ring span {
  font-size: 0.68rem;
  opacity: 0.9;
  font-weight: 600;
}

.st-overall h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.st-section-title {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  color: var(--mauve);
}

.st-score-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.st-score-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
}

.st-score-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.st-score-top h3 {
  font-size: 1rem;
  color: var(--ink);
}

.st-score-top p {
  font-size: 0.8rem;
  color: var(--muted);
}

.st-score-num {
  text-align: right;
  color: var(--st-color, var(--pink-deep));
}

.st-score-num strong {
  font-size: 1.55rem;
  line-height: 1;
  display: block;
}

.st-score-num span {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
}

.st-meter {
  height: 7px;
  background: #e8ecef;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.st-meter span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.st-score-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.st-badge {
  font-weight: 750;
  color: var(--pink-deep);
}

.st-tone-ok .st-badge { color: #2f6f5e; }
.st-tone-mild .st-badge { color: #a16207; }
.st-tone-moderate .st-badge { color: #c2410c; }
.st-tone-high .st-badge { color: #b42318; }

.st-score-card p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}

.st-recommend {
  background: #fff;
  border: 1px solid var(--pink-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.st-recommend h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.st-recommend p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.st-crisis {
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1.15rem;
  color: #7a271a;
}

.st-crisis h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.st-crisis ul {
  list-style: disc;
  margin: 0.5rem 0 0 1.1rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.st-crisis a {
  color: var(--pink-deep);
  font-weight: 700;
  text-decoration: underline;
}

.st-report-cta {
  margin-top: 0.5rem;
}

.st-domains-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.st-domain-preview {
  background: #fff;
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--pink);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
}

@media (min-width: 640px) {
  .st-overall {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .st-overall-ring {
    margin-inline: 0;
  }

  .st-score-grid {
    grid-template-columns: 1fr 1fr;
  }

  .st-domains-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .st-shell {
    width: min(100% - 2.5rem, 880px);
  }

  .st-card {
    padding: 2rem 2.15rem 2.15rem;
  }

  .st-options {
    grid-template-columns: 1fr 1fr;
  }

  .st-score-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .st-report-cta .btn {
    width: auto;
  }
}

@media (max-width: 899px) {
  .st-nav {
    flex-direction: column-reverse;
  }

  .st-nav .btn {
    width: 100%;
  }
}
