/* IMC Values & Mindset — SHL forced-choice replica.
   The question stage is deliberately FIXED to the real SHL palette (light grey
   panel, white cards, slate-blue #33708F selected state) in both site themes —
   that's the fidelity users come for. The intro card and the results mirror
   are QuantVault chrome and follow the theme variables. */

.ivm { max-width: 760px; margin: 0 auto; width: 100%; }

/* ---- intro (SHL-style instruction screens) ---- */
.ivm-intro {
  text-align: center;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,.08));
  border-radius: 18px;
  padding: 30px 26px 28px;
  box-shadow: 0 10px 34px rgba(15,23,42,.08);
}
.ivm-intro__brand { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-primary, #4c8bf5); }
.ivm-intro__brand span { color: var(--text-muted, #98a1b0); font-weight: 600; letter-spacing: .06em; text-transform: none; }
.ivm-intro__icon { font-size: 2.4rem; margin: 18px 0 4px; }
.ivm-intro__title { font: 700 1.5rem/1.2 Inter, system-ui, sans-serif; color: var(--text-primary, #222); margin: 8px 0 14px; }
.ivm-intro__body { max-width: 34em; margin: 0 auto 22px; text-align: left; }
.ivm-intro__body p { font-size: .95rem; line-height: 1.55; color: var(--text-secondary, #555); margin: 0 0 10px; }
.ivm-intro__fine { font-size: .8rem; color: var(--text-muted, #98a1b0); margin: 16px 0 0; line-height: 1.5; }

.ivm-btn {
  display: inline-block; cursor: pointer;
  border: 1px solid var(--border-color, #cdd4de);
  background: var(--bg-elevated, #fff); color: var(--text-primary, #333);
  font: 700 .92rem/1 Inter, system-ui, sans-serif;
  padding: 12px 30px; border-radius: 999px;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.ivm-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(15,23,42,.12); }
.ivm-btn--go {
  border: 0; background: #33607f; color: #fff;
  letter-spacing: .06em; box-shadow: 0 6px 18px rgba(51,96,127,.35);
}
.ivm-btn--go:hover { filter: brightness(1.08); }

/* ---- question stage: authentic SHL look, theme-independent ---- */
.ivm-panel {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 42px 24px 56px;
  text-align: center;
}
.ivm-q { font: 400 1.32rem/1.4 Inter, "Segoe UI", system-ui, sans-serif; color: #3f4448; margin: 0 0 30px; }
.ivm-q b { font-weight: 700; }
.ivm-cards { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ivm-card {
  display: block; width: 100%; max-width: 560px; cursor: pointer;
  background: #fff; border: 0; border-radius: 8px;
  box-shadow: 0 3px 9px rgba(0,0,0,.14);
  padding: 17px 26px;
  font: 400 .95rem/1.45 Inter, "Segoe UI", system-ui, sans-serif;
  color: #5c6670; text-align: center;
  transition: background .12s, color .12s, transform .08s;
}
.ivm-card:hover { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(0,0,0,.18); }
.ivm-card--flash { background: #5b9bd5; color: #fff; }
.ivm-card--sel { background: #33708F; color: #fff; box-shadow: 0 4px 11px rgba(51,112,143,.45); }

/* footer: Back pill · progress bar with % · Pause pill */
.ivm-foot { display: flex; align-items: flex-start; gap: 16px; padding: 16px 4px 0; }
.ivm-pill {
  flex: none; cursor: pointer;
  border: 1px solid #c9ced4; background: #fff; color: #5c6670;
  font: 600 .8rem/1 Inter, system-ui, sans-serif;
  padding: 8px 18px; border-radius: 999px;
}
.ivm-pill:hover { color: #33708F; border-color: #33708F; }
.ivm-pill[disabled] { opacity: .38; cursor: default; }
.ivm-pill[disabled]:hover { color: #5c6670; border-color: #c9ced4; }
.ivm-prog { flex: 1; padding-top: 11px; }
.ivm-prog__track { height: 5px; border-radius: 3px; background: #dcdfe3; overflow: hidden; }
.ivm-prog__fill { height: 100%; background: #71bf44; border-radius: 3px; transition: width .3s; }
.ivm-prog__pct { text-align: right; font: 600 .74rem/1 Inter, system-ui, sans-serif; color: #8a9099; margin-top: 5px; }

/* dark theme: keep the SHL panel authentic-light but soften the seam */
[data-theme="dark"] .ivm-panel { box-shadow: 0 10px 34px rgba(0,0,0,.4); }
[data-theme="dark"] .ivm-pill { background: var(--bg-elevated, #1a2335); border-color: var(--border-color, #333); color: var(--text-secondary, #8392a7); }
[data-theme="dark"] .ivm-prog__track { background: var(--bg-secondary, #0b1018); }
[data-theme="dark"] .ivm-prog__pct { color: var(--text-muted, #4b5c72); }

/* ---- interstitial: full-width dark slate-blue banner ---- */
.ivm-inter {
  background: #33607f; border-radius: 8px;
  padding: 54px 30px; text-align: center;
  box-shadow: 0 10px 34px rgba(15,23,42,.18);
}
.ivm-inter h3 { font: 700 1.3rem/1.3 Inter, system-ui, sans-serif; color: #fff; margin: 0 0 12px; }
.ivm-inter p { font: 600 1.08rem/1.5 Inter, system-ui, sans-serif; color: #fff; max-width: 34em; margin: 0 auto 26px; }
.ivm-btn--inter {
  border: 0; background: #fff; color: #33607f;
  text-transform: uppercase; letter-spacing: .18em; font-size: .82rem;
  padding: 13px 34px;
}

/* ---- results: dimension mirror + consistency readout ---- */
.ivm-res {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,.08));
  border-radius: 18px; padding: 30px 28px;
  box-shadow: 0 10px 34px rgba(15,23,42,.08);
}
.ivm-res__kicker { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-green, #22c55e); }
.ivm-res__h { font: 800 1.7rem/1.2 Inter, system-ui, sans-serif; color: var(--text-primary, #111); margin: 8px 0 10px; }
.ivm-res__lede { font-size: .97rem; line-height: 1.6; color: var(--text-secondary, #555); margin: 0 0 22px; }
.ivm-res__sub { font: 800 1.05rem/1.3 Inter, system-ui, sans-serif; color: var(--text-primary, #222); margin: 26px 0 6px; }
.ivm-res__note { font-size: .84rem; line-height: 1.55; color: var(--text-muted, #98a1b0); margin: 0 0 14px; }
.ivm-res__none { font-size: .9rem; color: var(--text-muted, #98a1b0); }

.ivm-dims { display: flex; flex-direction: column; gap: 12px; }
.ivm-dim { border: 1px solid var(--border-color, rgba(0,0,0,.07)); border-radius: 12px; padding: 12px 16px; }
.ivm-dim--hi { border-color: var(--accent-border, rgba(76,139,245,.3)); background: var(--accent-light, rgba(76,139,245,.06)); }
.ivm-dim--lo { opacity: .75; }
.ivm-dim__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.ivm-dim__name { font: 700 .92rem/1.2 Inter, system-ui, sans-serif; color: var(--text-primary, #222); }
.ivm-dim__meta { font-size: .72rem; color: var(--text-muted, #98a1b0); white-space: nowrap; }
.ivm-dim__track { height: 8px; border-radius: 4px; background: var(--bg-secondary, #eef1f6); overflow: hidden; }
.ivm-dim__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #33708F, #5b9bd5); }
.ivm-dim__blurb { font-size: .76rem; color: var(--text-muted, #98a1b0); margin-top: 6px; }

.ivm-chks { display: flex; flex-direction: column; gap: 10px; }
.ivm-chk { border-left: 4px solid; border-radius: 8px; background: var(--bg-secondary, #f6f8fb); padding: 10px 14px; }
.ivm-chk--ok  { border-color: var(--accent-green, #22c55e); }
.ivm-chk--mid { border-color: var(--accent-gold, #f5b731); }
.ivm-chk--bad { border-color: var(--color-hard, #f43f5e); }
.ivm-chk__verdict { font: 800 .74rem/1 Inter, system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 7px; }
.ivm-chk--ok  .ivm-chk__verdict { color: var(--accent-green, #22c55e); }
.ivm-chk--mid .ivm-chk__verdict { color: var(--accent-gold, #d99e13); }
.ivm-chk--bad .ivm-chk__verdict { color: var(--color-hard, #f43f5e); }
.ivm-chk__row { font-size: .85rem; line-height: 1.5; color: var(--text-secondary, #555); }
.ivm-chk__row b { color: var(--text-primary, #222); font-weight: 700; }

.ivm-res__guide p { font-size: .92rem; line-height: 1.6; color: var(--text-secondary, #555); margin: 0 0 10px; }
.ivm-res__guide b { color: var(--text-primary, #222); }
.ivm-res__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.ivm-res__link { font: 600 .9rem/1 Inter, system-ui, sans-serif; color: var(--accent-primary, #4c8bf5); text-decoration: none; }
.ivm-res__link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .ivm-panel { padding: 30px 14px 40px; }
  .ivm-q { font-size: 1.12rem; }
  .ivm-card { padding: 14px 18px; font-size: .9rem; }
  .ivm-foot { flex-wrap: wrap; }
  .ivm-prog { order: 3; flex-basis: 100%; padding-top: 4px; }
}
