/* CMO Allies careers. Swap the tokens in :root to match the main site's brand. */
:root {
  --bg: #F3F4F2; --surface: #FFFFFF; --ink: #16191D; --muted: #5E655F; --line: #D9DDD8;
  --accent: #1F5C4A; --accent-ink: #FFFFFF; --accent-soft: #E2ECE7;
  --warn: #B86A0B; --crit: #B42318; --good: #1F7A4D;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121614; --surface: #1A1F1C; --ink: #E9ECE8; --muted: #9BA39C; --line: #2C332F;
    --accent: #5FB898; --accent-ink: #0D1411; --accent-soft: #1E2E27;
    --warn: #E8A44A; --crit: #F0806F; --good: #6CCB98; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121614; --surface: #1A1F1C; --ink: #E9ECE8; --muted: #9BA39C; --line: #2C332F;
  --accent: #5FB898; --accent-ink: #0D1411; --accent-soft: #1E2E27;
  --warn: #E8A44A; --crit: #F0806F; --good: #6CCB98; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 56px;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; }
.wrap.wide { max-width: 1180px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.08; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 18px; }
p { margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 8px; }
.stack.loose { gap: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
@media (max-width: 520px) { .panel { padding: 18px; } }

header.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }

label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
label .opt-tag { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .opt:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 600px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }

button, .btn {
  font: inherit; cursor: pointer; border-radius: 8px; padding: 11px 18px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.danger { color: var(--crit); border-color: currentColor; background: transparent; }
button.ghost { background: transparent; border-color: transparent; padding-inline: 8px; }
button.small, .btn.small { padding: 6px 12px; font-size: 14px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions.end { justify-content: flex-end; }
.err { color: var(--crit); font-size: 14px; min-height: 1.3em; }
.ok { color: var(--good); font-size: 14px; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.6; }
.c-good { color: var(--good); } .c-accent { color: var(--accent); } .c-warn { color: var(--warn); } .c-crit { color: var(--crit); } .c-muted { color: var(--muted); }

/* Job list */
.roles { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.role { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: center; }
.role:hover h3, .role:focus-visible h3 { color: var(--accent); }
.role .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.role .go { font-family: var(--f-mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
.desc { white-space: pre-line; max-width: 66ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.facts > div { border-top: 2px solid var(--ink); padding-top: 8px; min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 20px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--bg); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .fname { font-family: var(--f-mono); font-size: 13px; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* Exam */
.rail { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 14px 10px; border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.railrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qcount, .clock { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.clock { font-size: 22px; }
.clock.warn { color: var(--warn); } .clock.crit { color: var(--crit); }
.bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.qtag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qtext { font-size: 19px; font-weight: 500; line-height: 1.45; margin-top: 6px; max-width: 62ch; }
.exam { user-select: none; -webkit-user-select: none; }
.opts { display: grid; gap: 10px; }
.opts.figs { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .opts.figs { grid-template-columns: repeat(2, 1fr); } }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; font-weight: 500; background: var(--surface); justify-content: flex-start; }
.opt .k { font-family: var(--f-mono); font-size: 13px; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.opt[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.opt[aria-pressed=true] .k { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.figs .opt { flex-direction: column; justify-content: center; }
.seq { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cell { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.cell.q { border-style: dashed; font-family: var(--f-display); font-size: 28px; color: var(--muted); }
.fig { width: 56px; height: 56px; }
.tscroll { overflow-x: auto; }
.dt { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dt td, .dt th { border: 1px solid var(--line); padding: 6px 14px; text-align: right; }
.dt th { text-align: left; font-weight: 600; background: var(--bg); }
.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.alertbox { border: 1.5px solid var(--crit); border-radius: 10px; padding: 16px 18px; color: var(--ink); background: var(--surface); }
.alertbox strong { color: var(--crit); }
.bigscore { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 12vw, 88px); line-height: 1; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
