/*
 * ABEC placement-test identity overlay — derived from the public ABEC site
 * https://www.ab-englishcenter.com/ (checked 2026-08-11)
 *
 * This is presentation-only.  It must be linked AFTER index-C7I-aFlL.css.
 * It contains no candidate data, application settings, credentials, or logic.
 */

:root {
  /* Exact core tokens observed on www.ab-englishcenter.com */
  --navy: #073b9e;
  --navy-2: #0b61d8;
  --blue: #1178eb;
  --coral: #e2231a;
  --coral-dark: #b71812;
  --cream: #f2f7ff;
  --paper: #ffffff;
  --ink: #0b2f78;
  --muted: #536b93;
  --line: #d6e3f6;
  --green: #1f9d73;
  --red: #e2231a;

  /* Existing client aliases, retained so the compiled app keeps working. */
  --canvas: var(--cream);
  --cyan: var(--blue);
  --lime: var(--coral);
  --amber: var(--coral);
  --shadow: 0 24px 70px rgb(7 59 158 / 14%);

  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  background: var(--cream);
}

body,
button,
input,
textarea,
select {
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.brand strong,
.completion-card h1,
.report-header h1 {
  font-family: Manrope, "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.staff-table-wrap:focus-visible {
  outline-color: rgb(17 120 235 / 55%);
}

/* The public ABEC site uses a white header with blue typography. */
.topbar {
  min-height: 82px;
  color: var(--ink);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 4px 18px rgb(7 59 158 / 10%);
}

.brand {
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  background: #fff url("/assets/abec-logo-officiel.png") center / contain no-repeat;
  box-shadow: 0 2px 9px rgb(7 59 158 / 12%);
  font-size: 0;
}

.brand small,
.connection {
  color: var(--muted);
}

.connection i {
  background: var(--green);
  box-shadow: 0 0 0 3px rgb(31 157 115 / 15%);
}

.connection.offline i {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgb(226 35 26 / 14%);
}

.language-toggle {
  border-color: var(--line);
  color: var(--navy);
  background: var(--cream);
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 8px 20px rgb(226 35 26 / 25%);
}

.button.primary:not(:disabled):hover {
  background: var(--coral-dark);
  box-shadow: 0 11px 26px rgb(226 35 26 / 35%);
}

.button.secondary {
  border-color: var(--navy);
  color: var(--navy);
  background: #fff;
}

.button.secondary:not(:disabled):hover {
  border-color: var(--blue);
  color: var(--navy);
  background: var(--cream);
}

.button.text,
.eyebrow,
.technical-footnote span {
  color: var(--coral);
}

.button.text:not(:disabled):hover {
  color: var(--coral-dark);
}

/* The application does not duplicate the marketing-site photo: it keeps
 * the same blue/red hierarchy while preserving the quiet test environment. */
.hero-panel {
  background: linear-gradient(128deg, var(--navy) 0%, #0b61d8 72%, #1178eb 100%);
}

.hero-panel::before {
  border-color: rgb(255 74 66 / 25%);
}

.hero-panel .eyebrow,
.overall-result .eyebrow {
  color: #ffb1ab;
}

.hero-copy,
.local-preview-note,
.trust-strip,
.hero-panel .button.text {
  color: rgb(255 255 255 / 84%);
}

.hero-panel .button.preview-link {
  color: #fff;
  background: rgb(255 255 255 / 11%);
}

.hero-panel .button.preview-link:hover {
  background: rgb(255 255 255 / 22%);
}

.resume-card {
  border-color: rgb(255 177 171 / 56%);
  background: rgb(7 59 158 / 34%);
}

.soft-icon,
.completion-icon,
.record-avatar {
  color: #fff;
  background: var(--navy);
}

.module-chip {
  color: var(--coral-dark);
  background: #fff0ee;
}

.progress-track span {
  background: linear-gradient(90deg, var(--blue), var(--coral));
}

.checkbox-row input,
.choice-stack input {
  accent-color: var(--coral);
}

.choice-stack label:hover,
.choice-stack label.selected {
  border-color: var(--coral);
  background: #fff6f5;
}

.prompt {
  border-left-color: var(--coral);
  background: #fff8f7;
}

.audio-sample,
.listening-player,
.overall-result {
  background: linear-gradient(125deg, var(--navy), var(--navy-2));
}

.wave i {
  background: #ffb1ab;
}

.overall-result.pending {
  color: var(--ink);
  background: var(--cream);
}

.overall-result.pending .eyebrow {
  color: var(--coral);
}

.overall-result.pending strong {
  color: var(--ink);
}

.overall-result.pending p {
  color: var(--muted);
}

.staff-role-pill,
.staff-tabs button:hover,
.staff-tabs button.active {
  border-color: var(--line);
  color: var(--navy);
  background: var(--cream);
}

.site-footer {
  border-top-color: var(--line);
  color: rgb(255 255 255 / 88%);
  background: var(--navy);
}

/* Candidate-profile hooks for the intake extension.  These are deliberately
 * inert until the profile feature adds the matching class names. */
.candidate-profile-layout {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.candidate-profile-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.candidate-profile-card h1,
.candidate-profile-card h2 {
  color: var(--navy);
}

.candidate-profile-banner {
  margin: 0 0 20px;
  border: 1px solid rgb(226 35 26 / 24%);
  border-left: 4px solid var(--coral);
  border-radius: 13px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff8f7;
}

.candidate-profile-banner strong {
  color: var(--coral-dark);
}

.candidate-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.candidate-profile-grid .wide {
  grid-column: 1 / -1;
}

.candidate-profile-consent {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.candidate-profile-certificate-note {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--muted);
  background: var(--cream);
  font-size: 12px;
  line-height: 1.5;
}

.candidate-profile-submit {
  margin-top: 24px;
}

@media (max-width: 650px) {
  .topbar {
    min-height: 70px;
    padding: 10px 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .candidate-profile-grid {
    grid-template-columns: 1fr;
  }

  .candidate-profile-grid .wide {
    grid-column: auto;
  }
}
