/* ───────────────────────────────────────────────────────────────────────────
   worth. — the full analysis (check page result view)
   The verdict leads; three cards, the demands row and the distribution chart
   are the evidence behind it.
─────────────────────────────────────────────────────────────────────────── */

main.check-main { max-width: 1200px; }

/* ─── Title card ─────────────────────────────────────────────────────────── */
.a-title {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
}
.a-title-h {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}
.a-title-sub { margin-top: 8px; font-size: 15px; color: var(--text-secondary); }
.a-facts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.a-facts:empty { display: none; }
.a-facts li {
  padding: 4px 10px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-dim);
}

.a-verdict { margin-top: 16px; }

/* ─── Three cards ────────────────────────────────────────────────────────── */
.a-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.a-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px 22px;
  min-width: 0;
}
.a-card-hd {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.a-range {
  margin-top: 10px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--purple);
}
#r-salary-card .a-range { color: var(--black); }
.a-per { margin-top: 4px; font-size: 14px; color: var(--text-secondary); }
.a-per:empty { display: none; }

.a-quartiles {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.a-quartiles dt { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.a-quartiles dd { margin-top: 2px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.a-quartiles:empty { display: none; }

.a-gap { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.a-gap-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.a-gap-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}
.a-gap-text { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); text-wrap: pretty; }
#r-gap-card.is-short .a-gap-num { color: #C2185B; }
#r-gap-card.is-fair .a-gap-num { color: #0F7A4F; }

/* Percentile sliders: a 0–100 track with a marker, as in the mock-up. */
.a-sliders { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.a-slider { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; }
.a-slider-label { font-size: 13px; font-weight: 700; line-height: 1.25; }
.a-slider-label small { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.a-track { position: relative; height: 6px; border-radius: 3px; background: var(--border-light); }
.a-track-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.a-track-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.a-slider--demand .a-track-fill, .a-slider--demand .a-track-dot { background: var(--purple); }
.a-slider--salary .a-track-fill, .a-slider--salary .a-track-dot { background: var(--pink-soft); }
.a-axis {
  display: flex;
  justify-content: space-between;
  margin-left: 128px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.a-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--pink);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}
.a-callout:empty { display: none; }

/* ─── Demands row ────────────────────────────────────────────────────────── */
.a-demands {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.a-demands:empty { display: none; }
.a-demands li {
  flex: 1 1 170px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-right: 2px solid var(--border-light);
}
.a-demands li:last-child { border-right: 0; }
.a-demands svg { flex: none; width: 30px; height: 30px; }
.a-demands strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.a-demands span { display: block; font-size: 13px; color: var(--text-secondary); line-height: 1.3; }

/* ─── Chart + side ───────────────────────────────────────────────────────── */
.a-lower {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.a-lower .result-side { display: flex; flex-direction: column; gap: 16px; }
.a-legend { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; font-size: 13px; font-weight: 600; }
.a-legend li { display: flex; align-items: center; gap: 7px; }
.a-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.a-legend i.dashed { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; height: 3px; }
.a-chart { margin-top: 10px; }
.a-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.a-chart-note { margin-top: 8px; font-size: 12px; color: var(--text-muted); }

.a-flags { margin-top: 16px; }

/* ─── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .a-cards { grid-template-columns: 1fr; }
  .a-lower { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .a-title, .a-card { padding: 18px; }
  .a-demands li { flex-basis: 100%; border-right: 0; border-bottom: 2px solid var(--border-light); }
  .a-demands li:last-child { border-bottom: 0; }
  .a-slider { grid-template-columns: 96px 1fr; }
  .a-axis { margin-left: 108px; }
}

/* Side panels: Jev's answers are phrases, not numbers, so stack value over
   label instead of letting a long value push the label off the card. */
.a-lower .ask-row { flex-direction: column; gap: 1px; }
.a-lower .ask-row strong { min-width: 0; }

/* ─── Who you're applying to (Companies House) ───────────────────────────── */
.co-body { padding: 14px 16px 16px; }
.co-name { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.co-name strong { font-size: 16px; font-weight: 800; line-height: 1.25; }
.co-status {
  flex: none;
  padding: 2px 8px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--mint);
}
.co-status.is-troubled { background: var(--pink-soft); }
.co-rows { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.co-rows dt { color: var(--text-muted); font-weight: 600; }
.co-rows dd { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.co-notes { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; list-style: none; }
.co-notes li { padding: 8px 10px; border: 2px solid var(--border); border-radius: 10px; font-size: 13px; line-height: 1.4; }
.co-notes .sev-pink { background: var(--pink-soft); }
.co-notes .sev-yellow { background: var(--yellow); }
.co-notes .sev-blue { background: var(--blue-light); }
.co-foot { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.co-foot a { font-weight: 700; }

/* ─── Report form (shared shape with the website) ────────────────────────── */
.rp-intro { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.rp-intro strong { color: var(--text-primary); }
.rp-fieldset { border: 0; display: flex; flex-direction: column; gap: 7px; }
.rp-legend { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.rp-option {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 11px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 14px; line-height: 1.4; color: var(--text-primary);
  cursor: pointer;
}
.rp-option:has(input:checked) { border-color: var(--border); background: var(--pink); }
.rp-option input { margin-top: 2px; accent-color: var(--black); }
.rp-select { width: 100%; padding: 9px 10px; border: 2px solid var(--border-light); border-radius: 10px; font: inherit; font-size: 13px; background: var(--surface); }
.rp-fine { font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }
.rp-result { padding: 12px 13px; border: 2px solid var(--border); border-radius: 10px; font-size: 13px; line-height: 1.5; color: var(--text-primary); }
.rp-result.is-ok { background: var(--mint); }
.rp-result.is-err { background: var(--yellow); }
.co-reports { margin-top: 10px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.co-reports li { padding: 7px 9px; border: 2px solid var(--border); border-radius: 9px; background: var(--pink); font-size: 12px; font-weight: 600; line-height: 1.4; }

.a-report {
  margin-top: 16px;
  display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--surface);
  border: 2px dashed #9A9AB0;
  border-radius: 16px;
}
.a-report strong { display: block; font-size: 16px; font-weight: 800; }
.a-report span { display: block; margin-top: 2px; font-size: 14px; color: var(--text-secondary); }
.rp-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 22px 24px 24px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-primary);
}
.rp-dialog::backdrop { background: rgba(18, 18, 26, 0.45); }
.rp-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rp-dialog-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.rp-dialog-head .btn { padding: 6px 11px; }
.w-full { width: 100%; }

.co-reply { margin-top: 10px; padding: 9px 11px; border-left: 4px solid var(--black); background: var(--surface-dim); font-size: 13px; line-height: 1.5; }
.co-reply span { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 3px; }
