/* Candidate journey theme; existing layout and behavior are preserved. The
   doorway pages (/ and /signin) style themselves in signin.css. */
@layer theme {
  body:has(.signin-page, .simulations-page, .simulation-landing-page, .assessment-window-page) {
    --bg-primary: #faf7f0;
    --bg-secondary: #eeefeb;
    --text-primary: #242522;
    --text-secondary: #686b64;
    --accent-primary: #b8541f;
    --accent-warm: var(--accent-primary);
    --accent-secondary: #934018;
    --surface-elevated: #fff;
    --surface-sunken: var(--bg-secondary);
    --journey-border: #e3e4df;
    background: var(--bg-primary);
    color: var(--text-primary);
    .page-bg-orb {
      background: none;
    }
    h1::after {
      background: none;
    }
    nav,
    .page-footer {
      background: var(--bg-primary);
      border-color: var(--journey-border);
      box-shadow: none;
      backdrop-filter: none;
    }
    .theme-toggle-btn,
    .profile-button {
      background: transparent;
      color: var(--text-secondary);
      border-color: var(--journey-border);
      box-shadow: none;
    }
    .cta-button,
    .action-button {
      background: var(--accent-primary);
      color: light-dark(#fff, #16181b);
      border-color: transparent;
      box-shadow: none;
    }
    .cta-button:hover,
    .action-button:hover {
      background: var(--accent-secondary);
      box-shadow: none;
    }
    :is(a, button, input, summary):focus-visible {
      outline: 2px solid var(--accent-primary);
      outline-offset: 3px;
    }
  }
  /* Attribute selector, not light-dark(), for token definitions (CI guard). */
  html[data-theme='dark']
    body:has(.signin-page, .simulations-page, .simulation-landing-page, .assessment-window-page) {
    --bg-primary: #0b0c0e;
    --bg-secondary: #1c1e22;
    --text-primary: #f3f4f6;
    --text-secondary: #a4a8ae;
    --accent-primary: #e47a3c;
    --accent-secondary: #ec8f58;
    --surface-elevated: #16181b;
    --journey-border: #2a2d32;
  }
  .simulation-landing-page,
  .simulations-page,
  .assessment-window-page {
    .skills-section,
    .info-cards,
    .assignment-card,
    .background-detail,
    .instructions :is(.flow-step, .task-list-card, .setup-card, .rules-card),
    .empty-state,
    .error-state,
    .window-state {
      background: var(--surface-elevated);
      border-color: var(--journey-border);
      box-shadow: none;
      backdrop-filter: none;
    }
    /* The strip is the surface; its cells only draw the dividers. */
    .info-card {
      background: transparent;
      border-color: var(--journey-border);
      box-shadow: none;
      backdrop-filter: none;
    }
    .info-card:hover,
    .assignment-card:hover {
      box-shadow: none;
      border-color: var(--journey-border);
    }
    .info-card .info-icon,
    .industry-badge,
    .skill-chip,
    .card-left,
    .card-industry-icon,
    .header-icon,
    .empty-icon {
      background: var(--surface-sunken);
      color: var(--text-secondary);
      border-color: var(--journey-border);
      box-shadow: none;
    }
    .background-section .background-detail {
      background: var(--surface-elevated);
      border-color: var(--journey-border);
      backdrop-filter: none;
    }
    .info-card::before,
    .assignment-card::before {
      background: none;
    }
  }
}
