/* Wellbeing Report (spoor C): de meting en de uitslag. Aanvulling op styles.css. Alleen CSS-beweging. */
:root { --ease-settle: cubic-bezier(0.22, 1, 0.36, 1); --ease-read: cubic-bezier(0.4, 0, 0.2, 1); --dur-tick: 160ms; --dur-read: 320ms; --dur-settle: 640ms; }

/* Meting: vraag links, kaart rechts. Op een telefoon de vraag eerst. */
.measure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: clamp(24px, 5vw, 56px); align-items: start; border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 4vw, 44px); background: var(--surface); margin-top: 8px; }
.q-progress { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 0 0 20px; }
.q-progress i { height: 4px; border-radius: 2px; background: var(--line); }
.q-progress i.on { background: var(--ink); }
.q-count { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.q-area { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 6px; }
.q-text { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; margin: 0 0 24px; min-height: 3.6em; }
.scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.scale button { font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 48px; padding: 0; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 4px; cursor: pointer; }
.scale button:hover { background: var(--ink); color: var(--bg); }
.scale-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 8px; }
.q-nav { margin-top: 20px; min-height: 28px; }
.q-nav button { font: inherit; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; }
.rose-live { display: block; width: 100%; max-width: 320px; height: auto; color: var(--ink); }
.rose-live .seg { transform-origin: 0 0; }
.source-line { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.measure + .trust-line { margin-top: 20px; }
@media (max-width: 760px) {
  .measure { grid-template-columns: 1fr; }
  .rose-live { max-width: 200px; margin: 0 auto; }
  /* Uitslag: eerst de kaart en de scores, dan de tekst en de vervolgstap */
  .measure.result .map-col { order: -1; }
}
@media (max-width: 560px) {
  /* Twee nette rijen: 0 tot 5 en 6 tot 10 */
  .scale { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
}

/* Uitslag */
.result-h { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; margin: 0 0 12px; }
.result .q-panel > p { color: var(--muted); margin: 0 0 12px; max-width: 46ch; }
.next { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.next h2 { font-size: 14px; font-family: inherit; font-stretch: 100%; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.next .result-actions { margin-top: 0; }
.next-links { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.save-note { min-height: 1.4em; }

/* Downloads voor coaches */
.downloads { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; max-width: none !important; }
.downloads li { margin: 0 !important; }

@media (prefers-reduced-motion: no-preference) {
  .scale button { transition: background-color var(--dur-tick) var(--ease-read), color var(--dur-tick) var(--ease-read); }
  .q-panel.in { animation: qin var(--dur-read) var(--ease-read); }
  @keyframes qin { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
  .rose-live .seg { transition: transform var(--dur-settle) var(--ease-settle); }
}
