/* Surface: Retest-day bundle (Phase 2.5 Brief 27, surfaces #5 + #7).
 *
 * Composite member-facing screen — Surface #5 (cycle-N retest-day pre-retest,
 * PRE-DRAW + POST-DRAW states) + Surface #7 cycle-3+ variants Frame B + Frame
 * C. Frames D.1 + D.2 deferred per D-SCOPE (T-NEXT-retest-day-frames-d1-d2-
 * non-responder, gated on multi-cycle data substrate).
 *
 * Scoped to #screen-retest-day .retest-day-* selectors. All colors via
 * var(--color-semantic-*) tokens (ADR-0003). No SVG trajectory CSS in v1.0 —
 * Frame B's 4-point SVG is descoped per D-DATA + ADR-0031 until per-marker
 * outcome_history lands; Brief 26 before→after marker-card pattern from
 * progress.css is reused for both Frame B + Frame C marker rows.
 *
 * Brand: warm-stone register exclusively. No atmospheric chrome, no
 * gradients on member-facing surfaces (mockup self-check Criterion 10).
 */

#screen-retest-day .retest-day-surface {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
  box-sizing: border-box;
  font-family: var(--font-family-body);
  color: var(--color-semantic-text-on-canvas);
}

/* ─── Status strip (date only) ──────────────────────────────────────────── */

#screen-retest-day .retest-day-status-strip {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-semantic-text-secondary);
  padding: var(--spacing-2) 0 var(--spacing-3);
  border-bottom: 1px solid var(--color-semantic-border-subtle);
}

/* ─── Hero + sub-hero ───────────────────────────────────────────────────── */

#screen-retest-day .retest-day-hero {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl, 36px);
  font-weight: var(--font-weight-light);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-hero em {
  font-style: italic;
  color: var(--color-semantic-text-accent);
  font-weight: var(--font-weight-light);
}

#screen-retest-day .retest-day-subhero {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-semantic-text-secondary);
}

/* ─── Section eyebrow (shared) ──────────────────────────────────────────── */

#screen-retest-day .retest-day-section-eyebrow {
  display: block;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-semantic-text-label);
  margin-bottom: var(--spacing-2);
}

/* ─── Surface #5 — retest-day pre-retest preview block ──────────────────── */

#screen-retest-day .retest-day-preview-block {
  padding: var(--spacing-4);
  background: var(--color-semantic-surface-raised);
  border: 1px solid var(--color-semantic-border-subtle);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

#screen-retest-day .retest-day-preview-bridge {
  margin: 0;
  font-family: var(--font-family-display);
  font-style: italic;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-preview-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
  padding: var(--spacing-2) 0;
  border-top: 1px solid var(--color-semantic-border-subtle);
}

#screen-retest-day .retest-day-preview-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

#screen-retest-day .retest-day-preview-row-signal {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-preview-row-markers {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--color-semantic-text-secondary);
  letter-spacing: 0.04em;
}

/* ─── Surface #5 — practical reminders (PRE-DRAW only) ──────────────────── */

#screen-retest-day .retest-day-reminders {
  padding: var(--spacing-4);
  background: var(--color-semantic-surface-canvas);
  border: 1px solid var(--color-semantic-border-subtle);
  border-radius: var(--radius-card);
}

#screen-retest-day .retest-day-reminders-list {
  display: flex;
  flex-direction: column;
}

#screen-retest-day .retest-day-reminder-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: baseline;
  gap: var(--spacing-2);
  padding: var(--spacing-2) 0;
  border-top: 1px solid var(--color-semantic-border-subtle);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-reminder-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

#screen-retest-day .retest-day-reminder-bullet {
  color: var(--color-semantic-text-secondary);
  text-align: center;
}

#screen-retest-day .retest-day-reminder-label {
  font-family: var(--font-family-body);
  color: var(--color-semantic-text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: var(--spacing-2);
}

#screen-retest-day .retest-day-reminder-value {
  color: var(--color-semantic-text-on-canvas);
  font-variant-numeric: tabular-nums;
}

/* ─── Surface #5 — waiting copy + closing line ──────────────────────────── */

#screen-retest-day .retest-day-waiting {
  padding: var(--spacing-4);
  background: var(--color-semantic-surface-raised);
  border: 1px solid var(--color-semantic-border-subtle);
  border-radius: var(--radius-card);
}

#screen-retest-day .retest-day-waiting-copy {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: 1.55;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-waiting-copy + .retest-day-waiting-copy {
  margin-top: var(--spacing-2);
}

#screen-retest-day .retest-day-closing-line {
  margin: 0;
  font-family: var(--font-family-display);
  font-style: italic;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-closing-accent {
  color: var(--color-semantic-text-accent);
}

/* ─── Surface #7 Frame B — favorable retest (descoped) ──────────────────── */

#screen-retest-day .retest-day-frame-b-section {
  padding: var(--spacing-4);
  background: var(--color-semantic-surface-raised);
  border: 1px solid var(--color-semantic-border-subtle);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

#screen-retest-day .retest-day-frame-b-bridge {
  margin: 0;
  font-family: var(--font-family-display);
  font-style: italic;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-frame-b-marker-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

/* ─── Surface #7 Frame C — markers decline (verbatim) ───────────────────── */

#screen-retest-day .retest-day-frame-c-pr-block {
  padding: var(--spacing-4);
  background: var(--color-semantic-surface-raised);
  border: 1px solid var(--color-semantic-border-subtle);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

#screen-retest-day .retest-day-frame-c-pr-eyebrow {
  display: block;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-semantic-text-label);
}

#screen-retest-day .retest-day-frame-c-pr-headline {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-frame-c-pr-clarify {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-semantic-text-secondary);
}

#screen-retest-day .retest-day-frame-c-bridge {
  margin: 0;
  font-family: var(--font-family-display);
  font-style: italic;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-frame-c-marker-outcomes {
  padding: var(--spacing-3);
  background: var(--color-semantic-surface-canvas);
  border: 1px solid var(--color-semantic-border-subtle);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

#screen-retest-day .retest-day-frame-c-narrative {
  padding: var(--spacing-4);
  background: var(--color-semantic-surface-raised);
  border: 1px solid var(--color-semantic-border-subtle);
  border-radius: var(--radius-card);
}

#screen-retest-day .retest-day-frame-c-narrative p {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: 1.55;
  color: var(--color-semantic-text-on-canvas);
}

#screen-retest-day .retest-day-frame-c-narrative p + p {
  margin-top: var(--spacing-2);
}

/* ─── Shared drill-link + proposal-link affordances ─────────────────────── */

#screen-retest-day .retest-day-drill-link,
#screen-retest-day .retest-day-proposal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-4);
  background: var(--color-semantic-surface-canvas);
  border: 1px solid var(--color-semantic-border-default);
  border-radius: var(--radius-card);
  color: var(--color-semantic-text-on-canvas);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  min-height: 44px; /* touch target */
}

#screen-retest-day .retest-day-drill-arrow {
  color: var(--color-semantic-text-accent);
}
