/* ============================================================
   The Connection Experiment — version C · matrix (segmented scale)
   Loads on top of ce-flow.css
   ============================================================ */

.ce-q-mx { padding-top: 16px; }
.ce-q-mx .ce-hint { margin-top: 9px; }

/* bold emphasis inside an Argent display title */
.ce-em { font-weight: 700; }

/* stack of relationship rows — sized to fit without scrolling */
.ce-sc-stack {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 2px; padding: 2px 0 0;
}

.ce-sc-row { padding: 7px 0; }
.ce-sc-row + .ce-sc-row { border-top: 1px solid var(--border-hairline); }

.ce-sc-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.ce-sc-label {
  font-family: var(--font-display); font-weight: 300;
  font-size: 19px; line-height: 1.1; letter-spacing: -0.2px; color: var(--ink);
}

/* discreet, per-row opt-out — a subtle pill on its own line below the scale */
.ce-sc-naline { display: flex; justify-content: flex-start; margin-top: 6px; }
.ce-sc-na {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: transparent; cursor: pointer;
  border: 1.2px solid color-mix(in srgb, var(--ink) 24%, transparent);
  font-family: var(--font-subhead); font-weight: 600;
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.ce-sc-na:hover { opacity: 0.82; }
.ce-sc-na:active { transform: scale(0.96); }
.ce-sc-na.on {
  opacity: 1; color: var(--color-cool-ivory);
  background: var(--color-amber-terracotta);
  border-color: var(--color-amber-terracotta);
}

/* the scale: one continuous line with 5 evenly spaced dots */
.ce-sc-bar {
  position: relative;
  display: flex; margin-top: 4px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.ce-sc-bar.off { opacity: 0.3; pointer-events: none; }
/* continuous line, drawn from the first dot's center to the last dot's center */
.ce-sc-line {
  position: absolute; top: 50%; left: 10%; right: 10%;
  height: 2px; transform: translateY(-50%);
  background: var(--check); border-radius: 999px; pointer-events: none;
}
/* generous touch target — far larger than the visible dot */
.ce-sc-hit {
  position: relative; flex: 1 1 0; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ce-sc-hit:active .ce-sc-dot { transform: scale(0.92); }
/* visible medium dot */
.ce-sc-dot {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--panel-bg); border: 1.6px solid var(--check);
  transition: width var(--dur-fast) var(--ease-out),
              height var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.ce-sc-hit.sel .ce-sc-dot {
  width: 20px; height: 20px;
  background: var(--accent); border-color: var(--accent-ink);
  box-shadow: inset 0 0 0 2px var(--panel-bg);
}

/* three labeled anchor points under the bar */
.ce-sc-ends {
  display: flex; margin-top: -8px; pointer-events: none;
  font-family: var(--font-subhead); font-weight: 600;
  font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink); opacity: 0.5;
}
.ce-sc-end { flex: 1 1 0; }
.ce-sc-end.p0 { text-align: left; white-space: pre-line; }
.ce-sc-end.p1 { text-align: center; }
.ce-sc-end.p2 { text-align: right; }
