/* Candidate Assessment: Leveredge look and feel (same palette as team-assessment) */
:root {
  --bg: #1C1C1C;
  --text: #F2F2F2;
  --muted: #BDBAB2;      /* 8.9:1 on bg */
  --gold: #9C8C66;
  --gold-light: #C9B98F; /* 9.4:1 on bg */
  --panel: #2A2927;
  --panel-2: #33312E;
  --line: rgba(156, 140, 102, .45);
  --danger: #FF7B6B;     /* 6.6:1 on bg */
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--gold-light); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
h1:focus { outline: none; }
[hidden] { display: none !important; }

.top { border-bottom: 1px solid var(--line); }
.top-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { height: 44px; width: auto; display: block; }
.wordmark { color: var(--text); text-transform: uppercase; letter-spacing: .32em; font-size: 15px; font-weight: 300; }
.spacer { flex: 1; }

main { max-width: 760px; margin: 0 auto; padding: 32px 16px 96px; }
.kicker { color: var(--gold-light); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 28px; } h2 { font-size: 20px; margin-top: 28px; } h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.subtitle, .muted { color: var(--muted); }
.subtitle { font-size: 18px; margin-bottom: 24px; }
.prose { margin: 0 0 24px; }
.prose ul { padding-inline-start: 22px; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.notice { background: var(--panel); border-inline-start: 3px solid var(--gold-light); padding: 14px 16px; border-radius: 8px; margin: 0 0 24px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 20px 16px; margin: 0 0 16px; }
.panel > h2:first-child { margin-top: 0; }

label { display: block; font-weight: 600; margin: 0 0 8px; }
input, textarea {
  font: inherit; font-size: 17px; color: var(--text); background: var(--bg); width: 100%;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 48px;
}
#code { font-size: 24px; letter-spacing: .3em; max-width: 220px; font-variant-numeric: tabular-nums; }
textarea { min-height: 45vh; resize: vertical; line-height: 1.5; }
textarea[readonly] { opacity: .7; }
.msg { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.msg:empty { display: none; }

button {
  font: inherit; font-size: 16px; min-height: 48px; padding: 10px 20px; border-radius: 8px;
  border: 1px solid var(--gold); background: transparent; color: var(--text); cursor: pointer;
}
button:hover:not(:disabled) { background: var(--panel-2); }
button.primary { background: var(--gold-light); color: #1C1C1C; border-color: var(--gold-light); font-weight: 600; }
button.primary:hover:not(:disabled) { background: #D8CAA3; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.link { border: 0; padding: 8px; color: var(--gold-light); text-decoration: underline; background: none; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.row > p { flex-basis: 100%; margin: 0; }

/* overview */
.qlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.qrow {
  background: var(--panel); border-radius: 8px; padding: 12px 14px;
  display: grid; grid-template-columns: 2em 1fr auto; gap: 2px 10px; align-items: baseline;
}
.qn { color: var(--gold-light); font-weight: 600; grid-row: span 2; }
.qt { font-weight: 600; }
.qs { justify-self: end; font-size: 14px; color: var(--muted); }
.ql { grid-column: 2; font-size: 14px; color: var(--muted); }
.qrow.next { border: 1px solid var(--gold-light); }
.qrow.next .qs, .qrow.closed .qs { color: var(--gold-light); font-weight: 600; }
.qrow.locked { opacity: .75; }
#o-actions { margin-top: 28px; }

/* question */
.countdown {
  position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0 12px; margin-bottom: 8px;
  font-size: 48px; font-weight: 600; line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
}
.countdown.low { color: var(--danger); }
.prompt { background: var(--panel); border-radius: var(--radius); padding: 18px 16px; }
.prompt > :last-child { margin-bottom: 0; }
.meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-top: 6px; }
#q-count { font-variant-numeric: tabular-nums; margin-inline-start: auto; }

/* admin */
.qa { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.qa p { font-size: 14px; }
.answer { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: 8px; padding: 12px; min-height: 1em; }
