:root {
  --ink: #1c1f23;
  --muted: #57606a;
  --line: #e3e5e8;
  --surface: #ffffff;
  --ground: #f5f6f8;
  --navy: #16233f;
  --accent: #1f6feb;
  --warn: #9a6700;
  --fail: #b3261e;
  --warn-bg: #fdf5e3;
  --fail-bg: #fdeceb;
}

* { box-sizing: border-box; }

/* The hidden attribute must win over any display rule, or a layout class
   (display: grid on .choices) shows what the script hid. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- chrome --- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--navy);
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand small { display: block; font-size: 12px; opacity: 0.7; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.14);
  font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
}

.session { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.who { opacity: 0.75; }
.topbar a.link { color: #fff; }

main { max-width: 940px; margin: 28px auto 40px; padding: 0 24px; }

footer {
  max-width: 940px;
  margin: 0 auto 40px;
  padding: 0 24px;
  color: var(--muted);
  font-size: 12px;
}

/* --- surfaces --- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
}

.panel.centred { max-width: 460px; margin: 8vh auto; text-align: center; }

h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 6px; }
h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.6px;
     color: var(--muted); margin: 30px 0 10px; }

.muted { color: var(--muted); }
.right { text-align: right; }
.footnote { color: var(--muted); font-size: 12.5px; font-style: italic; }
.back { display: inline-block; margin-bottom: 14px; font-size: 13px; }

a.link { color: var(--accent); text-decoration: none; }
a.link:hover { text-decoration: underline; }

code {
  background: var(--ground);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.92em;
}

/* --- controls --- */

.button {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.small { padding: 5px 11px; font-size: 13px; font-weight: 500; }
.button:hover { filter: brightness(1.06); }

.search { display: flex; gap: 10px; margin: 16px 0 4px; }
.search.inline { margin-top: 12px; }
.search input {
  flex: 1;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* --- candidate --- */

.candidate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

/* --- tables --- */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.current td { background: #f8fafc; }

/* --- notices --- */

.notice {
  border: 1px solid;
  border-radius: 9px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 14px;
}
.notice p { margin: 6px 0 0; }
.notice-error { background: var(--fail-bg); border-color: var(--fail); }
.notice-warn  { background: var(--warn-bg); border-color: var(--warn); }
.notice-info  { background: #eaf2fd;        border-color: var(--accent); }

@media (max-width: 620px) {
  .candidate-head { flex-direction: column; }
}

/* --- merged specification view --- */

.summary { margin: 4px 0 18px; }
.summary p { margin: 0 0 8px; }

.chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ground);
  font-size: 12.5px;
  font-weight: 600;
}

.small { font-size: 12.5px; }

/* Inside the Bullhorn custom tab there is no app chrome and much less room. */
main.embedded { margin: 0; padding: 0; max-width: none; }
main.embedded .panel { border: 0; border-radius: 0; padding: 18px 20px; }

/* Real logo in place of the initials block. The artwork is dark, so it sits
   on a white tile to stay visible against the navy bar. */
.brand-logo { height: 30px; width: auto; display: block;
              background: #fff; border-radius: 6px; padding: 2px 6px; }

/* Grouped specification list. */
.spec { margin: 0 0 6px; }
.spec-row {
  display: flex;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid #eef0f2;
}
.spec-row:last-child { border-bottom: 0; }
.spec dt { width: 190px; flex: none; color: var(--muted); }
.spec dd { margin: 0; white-space: pre-line; }

.note-mark { color: var(--muted); cursor: help; }

@media (max-width: 620px) {
  .spec-row { flex-direction: column; gap: 2px; }
  .spec dt { width: auto; }
}

/* --- open house results --- */

main.wide, footer.wide { max-width: 1280px; }

.filters fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 14px 0 0;
  padding: 10px 16px 14px;
}
.filters legend { font-weight: 600; padding: 0 6px; }
.filters label { font-size: 14px; white-space: nowrap; }
.filters input[type=date], .filters input[type=time], .filters input[type=number] {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.filters input[type=number] { width: 80px; }
.filters .tick input { margin-right: 4px; }

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0 6px;
}
.filters .only { flex-basis: 100%; color: var(--muted); }

/* The client list and its Fill in button travel together when the row wraps. */
.preset-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.preset-pick label { color: var(--muted); }
.preset-pick select {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  max-width: 190px;
}

.preset-note { background: #eaf2fd; border-color: var(--accent); }
.ask-list { margin: 4px 0 0; padding-left: 20px; }
.ask-list li { margin: 2px 0; }

.how { margin: 8px 0 4px; }
.how summary { cursor: pointer; }
.how ul { margin: 6px 0 0; padding-left: 20px; }

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.table-scroll { overflow-x: auto; }
.results-table { font-size: 13.5px; }
.results-table td { padding: 8px; }
.results-table .nowrap { white-space: nowrap; }
.results-table .cpu { display: inline-block; max-width: 170px; white-space: nowrap;
                      overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; font-weight: 400; }
.results-table td.ok      { background: #e8f5ec; }
.results-table td.bad     { background: var(--fail-bg); color: var(--fail); font-weight: 600; }
.results-table td.unknown { background: #f0f1f3; color: var(--muted); }
/* One badge per 1.5+ requirement, so fifteen checks fit in one column. */
.results-table tr.detail-row td { border-top: 0; padding-top: 0; }
.detail-checks .badge { display: inline-block; margin: 0 .25rem .2rem 0; padding: 0 .35rem;
  border-radius: .25rem; white-space: nowrap; }
.detail-checks .badge.ok      { background: #e8f5ec; color: #1a7f37; }
.detail-checks .badge.bad     { background: var(--fail-bg); color: var(--fail); font-weight: 600; }
.detail-checks .badge.unknown { background: #f0f1f3; color: var(--muted); }
.results-table tr.all-met td:first-child { box-shadow: inset 4px 0 0 #2da44e; }

.session .link + .who { margin-left: 4px; }

/* Off screen, not display:none, so the browser still treats it as the form's
   default button for the Enter key. */
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filters input[type=datetime-local] { padding: 6px 8px; border: 1px solid var(--line);
                                      border-radius: 6px; font: inherit; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 0; }

/* Phones: the signed-in address does not fit beside the links, and nobody
   needs reminding who they are. */
@media (max-width: 620px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; }
  .session { gap: 12px; }
  .session .who { display: none; }
  main { padding: 0 12px; }
  .panel { padding: 20px 16px; }
}

/* --- candidate browser check (/check) --- */

.check { max-width: 560px; margin: 0 auto; }
.check .lead { color: var(--muted); margin: 0 0 20px; }

.check .field { margin-bottom: 16px; }
.check .field label { display: block; margin-bottom: 4px; font-weight: 600; }
.check .field input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.check .field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--fail-bg);
  color: var(--fail);
}

.button.big { padding: 14px 22px; font-size: 16px; width: 100%; }

.step-title { font-size: 17px; margin: 20px 0 10px; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps .step {
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* The marker is punctuation, not meaning: every row also says what happened. */
.steps .step::before { position: absolute; left: 4px; }
.steps .doing { color: var(--muted); }
.steps .doing::before { content: "\2026"; }
.steps .ok::before    { content: "\2713"; color: #1a7f37; font-weight: 700; }
.steps .skip          { color: var(--muted); }
.steps .skip::before  { content: "\2013"; }

.notice-ok { background: #e8f5ec; border-color: #1a7f37; }

.check-table { width: 100%; border-collapse: collapse; }
.check-table th {
  text-align: left;
  font-weight: 600;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.check-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

/* --- 2026-10-28 refresh ------------------------------------------------- */

.topbar a.link.current { text-decoration: underline; text-underline-offset: 5px; }

/* Candidate page */
.eyebrow { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .6px;
           text-transform: uppercase; color: var(--accent); }
.check h1 { font-size: 24px; line-height: 1.25; }
.check .reassure { margin: 12px 0 0; text-align: center; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copy-row code { word-break: break-all; }

.choices { display: grid; gap: 14px; margin: 4px 0 8px; }
.choice { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 14px; }
.choice.recommended { border: 2px solid var(--accent); background: #f5f9ff; }
.choice h2 { margin-top: 2px; }
.choice p { margin: 4px 0 12px; }
.choice .tag { position: absolute; top: -11px; left: 14px; background: var(--accent); color: #fff;
               font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
               padding: 2px 8px; border-radius: 999px; }
.choice .button.big { text-align: center; }

.progress { height: 6px; background: var(--ground); border-radius: 999px; overflow: hidden; margin: 0 0 10px; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }

/* Recruiter results */
.results-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.results-table td { vertical-align: top; }
.filters details.more { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.filters details.more > summary { cursor: pointer; font-weight: 600; }
.filters details.more[open] > summary { margin-bottom: 8px; }
.filters details.more fieldset { border: 0; padding: 0; margin: 0; }
.client-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px;
              padding: 12px 14px; background: var(--ground); border-radius: 10px; }
.client-bar label { font-weight: 600; }
.client-bar select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; min-width: 16rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 2px; }
.stat { background: var(--ground); border-radius: 8px; padding: 6px 12px; font-size: 13.5px; }
.stat strong { font-size: 16px; }
.stat.warn { background: var(--warn-bg); color: var(--warn); }
