/* survey tab: Shield Command styles for this tab only (shared pieces live in practice.css). */

/* Tab layout: banner, then the results block (space-y-6), whose stats and quote viewer are space-y-5 */
.sv-tab > * + * { margin-top: 1.5rem; }
.sv-results > * + * { margin-top: 1.25rem; }

/* No survey responses yet */
.sv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.5rem;
  text-align: center;
}
.sv-empty-icon { font-size: 2.5rem; color: rgb(100 116 139 / .3); }
.sv-empty p { margin: 0; }

/* "Why patients love the program" banner */
.sv-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) { .sv-banner { padding: 2rem; } }
.sv-banner-title { display: flex; align-items: center; gap: .5rem; }
.sv-banner-title [class*="icon-"] { font-size: 1.25rem; color: var(--primary); }
.sv-banner-desc { margin: .25rem 0 0; font-size: .75rem; line-height: 1rem; }
.sv-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}
.sv-chip {
  padding: .375rem .75rem;
  border-radius: var(--radius-md);
  background: rgb(10 115 123 / .1);
  color: var(--primary);
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 500;
}
@media (min-width: 768px) { .sv-chip { font-size: .875rem; line-height: 1.25rem; } }

/* Score cards */
.sv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .sv-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sv-stat { padding: 1rem; text-align: center; }
.sv-stat-value { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--primary); }
.sv-stat-unit { font-size: 1rem; line-height: 1.5rem; font-weight: 400; color: var(--muted); }
.sv-stat-label { margin-top: .125rem; font-size: .75rem; line-height: 1rem; }
.sv-nps-good { color: #059669; }
.sv-nps-fair { color: #d97706; }
.sv-nps-poor { color: #ef4444; }
.sv-nps-tier { display: flex; flex-direction: column; align-items: center; gap: .125rem; margin-top: .375rem; }
.sv-nps-avg { font-size: 10px; line-height: 1.5; }

/* Small rounded-full badges: NPS tier and the story / recognition label */
.sv-pill {
  display: inline-block;
  padding: .125rem .5rem;
  border-radius: 9999px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
}
.sv-pill-emerald { background: #d1fae5; color: #047857; }
.sv-pill-teal { background: #ccfbf1; color: #0f766e; }
.sv-pill-amber { background: #fef3c7; color: #b45309; }
.sv-pill-red { background: #fee2e2; color: #b91c1c; }
.sv-pill-violet { background: #ede9fe; color: var(--violet-700); }

/* Nothing patients agreed to share */
.sv-no-quotes { padding: 2rem; text-align: center; }
.sv-no-quotes p { margin: 0; font-style: italic; }

/* "What patients are saying" quote viewer */
.sv-viewer { padding: 1.25rem; }
@media (min-width: 768px) { .sv-viewer { padding: 1.75rem; } }
.sv-viewer-title { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.sv-viewer-title [class*="icon-"] { font-size: 1rem; color: var(--primary); }
.sv-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1024px) { .sv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sv-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, rgb(10 115 123 / .05), rgb(10 115 123 / .03), transparent);
  box-shadow: 0 0 0 1px rgb(10 115 123 / .1);
}
/* display: flex would otherwise override the hidden attribute the viewer uses. */
.sv-card[hidden] { display: none; }
.sv-card-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.sv-card-quote { flex-shrink: 0; margin-top: .125rem; font-size: 1.5rem; color: rgb(10 115 123 / .25); }
.sv-card-type { text-transform: uppercase; letter-spacing: .05em; }
.sv-card-text { margin: 0; font-size: .875rem; line-height: 1.625; font-style: italic; color: rgb(2 8 23 / .9); }
.sv-card-foot { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.sv-attribution { min-width: 0; overflow-wrap: anywhere; }
.sv-attribution > * + * { margin-top: .125rem; }
.sv-attribution-name { font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); }
.sv-attribution-meta { font-size: .75rem; line-height: 1rem; }
.sv-nav { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.practice-button.sv-nav-button { gap: .375rem; }
.practice-button .sv-nav-random { font-size: .875rem; }
.sv-viewer-note { margin: 1rem 0 0; font-size: 11px; line-height: 1.5; text-align: center; color: rgb(100 116 139 / .6); }
