/* The report surface: the Board Report's visual system (design review 2026-11-13) brought to the results on /executive and /workforce, so a buyer moving between the free pages and
   the paid report sees one product.

   Direction and wording approved by the owner 2026-11-25 (PROPOSAL_page_redesign_20261125_v5).

   Scope: everything here sits under .rs, which only the two results cards carry (#results-panel on /executive,
   #multi-results-panel and #placeholder-card on /workforce). Form mechanics on the left are untouched.
   Tokens are the report's own, not new colours. */

.rs {
  --rs-navy: #1A2E4A;
  --rs-teal: #0E8074;
  --rs-gold: #B08D3E;          /* rules and accents only; never text */
  --rs-gold-text: #8A6D2C;     /* 4.88:1 on white */
  --rs-ink: #22272E;
  --rs-body: #353C47;
  --rs-muted: #5A6473;         /* 5.99:1 on white, 5.63:1 on Cloud */
  --rs-rule: #DCE1E8;
  --rs-cloud: #F6F8FB;
  --rs-teal-tint: #CFE7E3;
  --rs-teal-lite: #EAF4F2;
  --rs-gold-tint: #E9DFC6;
  --rs-serif: 'DM Serif Display', Georgia, serif;
  --rs-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--rs-body);
  box-shadow: 0 1px 2px rgba(26, 46, 74, .04);
  border-color: var(--rs-rule);
  border-radius: 6px;
}

/* ── The head: the report's section head (P10). A teal small-caps eyebrow, a short gold rule, the title in
      DM Serif Display, the basis line under it. Replaces the teal-tint header band. ───────────────────── */
.rs > .card-header.rs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 16px;
  padding: 26px 28px 0;
  background: #fff;
  border-bottom: 0;
}
.rs .rs-head h2 {
  margin: 0;
  font: 600 .75rem/1.4 var(--rs-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rs-teal);
}
.rs .rs-head h2::after {               /* the report's 0.6in gold rule, under the eyebrow */
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 8px 0 12px;
  background: var(--rs-gold);
}
.rs .rs-head__aside { display: flex; align-items: center; gap: 12px; padding-top: 1px; }
.rs .rs-title {
  grid-column: 1 / -1;
  margin: 0;
  font: 400 2.125rem/1.15 var(--rs-serif);
  letter-spacing: -.01em;
  color: var(--rs-navy);
  text-wrap: balance;
}
.rs .rs-title:empty { display: none; }
.rs > .card-body { padding: 14px 28px 28px; }

/* The basis line and the run's facts: plain text with hairline separators, not pills (static metadata). */
.rs .results-meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 22px;
  margin: 0 0 22px; padding: 0 0 18px;
  border-bottom: 1px solid var(--rs-rule);
  font-size: .9375rem; color: var(--rs-body);
}
.rs .results-meta .results-basis { flex-basis: 100%; margin-bottom: 6px; color: var(--rs-muted); font-size: .875rem; }
.rs .results-meta .meta-chip {
  background: none; border-radius: 0; padding: 0; font-size: .9375rem; font-weight: 500; color: var(--rs-navy);
}
.rs#results-panel .results-meta .results-basis + .meta-chip { display: none; }   /* the role is the title now */

/* The credibility line: kept, word for word, set as a quiet note. */
.rs .cred-line { font-size: .875rem; line-height: 1.6; color: var(--rs-muted); max-width: 76ch;
  opacity: 1; }   /* style.css fades it to .8; at the muted grey that is 3.8:1 (axe). Full: 5.99:1, link 4.82:1 */
.rs .cred-line a { color: var(--rs-teal); }

/* Vintage and the two actions: text buttons, no glyphs. */
.rs .forecast-bar { gap: 8px; }
.rs .vintage-badge { background: none; border: 0; padding-left: 0; color: var(--rs-muted); }
.rs .methodology-btn {
  background: #fff; border: 1px solid var(--rs-rule); border-radius: 4px;
  min-height: 32px; padding: 0 12px; font: 500 .8125rem/1 var(--rs-sans); color: var(--rs-navy);
}
.rs .methodology-btn:hover { border-color: var(--rs-navy); }
.rs .methodology-btn:focus-visible { outline: 2px solid var(--rs-teal); outline-offset: 2px; }

/* ── Section labels inside the card: the eyebrow over a gold rule (report CCEyebrow + Rule). ──────────── */
.rs .comp-range-title {
  margin: 8px 0 14px;
  font: 600 .75rem/1.4 var(--rs-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--rs-navy);
}
.rs .comp-range-title::after {
  content: ""; display: block; width: 32px; height: 2px; margin-top: 7px; background: var(--rs-gold);
}

/* Section titles (Comparable organizations): serif, as the report's section titles. */
.rs .comp-range-title.rs-sec {
  margin-top: 40px !important;
  font: 400 1.625rem/1.2 var(--rs-serif); letter-spacing: 0; text-transform: none; color: var(--rs-navy);
}
.rs .comp-range-title.rs-sec::after { display: none; }
.rs .comp-range-title.rs-sec::before {
  content: ""; display: block; width: 44px; height: 2px; margin-bottom: 14px; background: var(--rs-gold);
}
.rs .comp-range-title.rs-sec > span {
  font: 400 .9375rem/1.4 var(--rs-sans) !important; color: var(--rs-muted);
}

/* ── Figure tiles (report P1): Cloud, a hairline, a small-caps label, the figure in serif. P50 carries the
      report's teal edge; equal size, so the edge, not the type, says which one matters. ──────────────── */
.rs .percentile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.rs .pct-box {
  text-align: left; padding: 15px 16px 16px;
  background: var(--rs-cloud); border: 1px solid var(--rs-rule); border-radius: 4px;
  transition: none;
}
.rs .pct-box:hover { box-shadow: none; }
.rs .pct-box.highlight { background: var(--rs-cloud); border-color: var(--rs-rule); box-shadow: inset 3px 0 0 var(--rs-teal); }
.rs .pct-box.highlight::before { content: none; }
.rs .pct-label {
  font: 600 .75rem/1.3 var(--rs-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--rs-teal);
}
.rs .pct-value,
.rs .pct-box.highlight .pct-value {
  margin-top: 8px; font: 400 2rem/1.1 var(--rs-serif); letter-spacing: -.01em; color: var(--rs-navy);
  font-variant-numeric: lining-nums;
}
.rs .pct-sub { display: none; }
/* Kept on screen under the 50th percentile: the owner's standing retention of "Median" in the top summary, now beside "50th percentile" per the percentile rule. */
.rs #box-median .pct-sub { display: block; margin-top: 6px; font: 400 .8125rem/1.3 var(--rs-sans); color: var(--rs-muted); }

/* The old gradient bar's DOM stays (the page's script still writes to it); the report chart replaces it. */
.rs .comp-range:has(.rc) .range-bar-wrap { display: none; }   /* a failed script load keeps the old bar */

/* ── The range chart (report RangeChart) ─────────────────────── */
.rc { margin: 0 0 22px; container-type: inline-size; }
.rc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.rc__title { font: 600 .75rem/1.4 var(--rs-sans, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #1A2E4A; }
.rc__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 0 auto; padding: 0; list-style: none;
  font: 400 .8125rem/1.3 var(--rs-sans, sans-serif); color: #353C47; }
.rc__legend li { display: inline-flex; align-items: center; gap: 7px; }
.rc__sw { display: inline-block; width: 22px; height: 11px; border-radius: 2px; }
.rc__sw--outer { background: #CFE7E3; }
.rc__sw--iqr { background: #0E8074; }
.rc--set .rc__sw--outer { background: #E9DFC6; }
.rc--set .rc__sw--iqr { background: #B08D3E; }
.rc__sw--tick { width: 2px; height: 14px; border-radius: 0; background: #1A2E4A; margin: 0 4px; }
.rc__sw--inc { width: 8px; height: 8px; border-radius: 0; background: #22272E; transform: rotate(45deg); margin: 0 4px; }

.rc__plot { position: relative; padding: 0 84px; }
.rc__field { position: relative; }
.rc__grid { position: absolute; top: 0; bottom: 22px; width: 1px; background: #DCE1E8; }
.rc__row { position: relative; height: 92px; }
.rc__track { position: absolute; left: 0; right: 0; top: 34px; height: 18px; }
.rc__band { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.rc__band--outer { background: #CFE7E3; }
.rc__band--iqr { background: #0E8074; border-radius: 2px; }
.rc--set .rc__band--outer { background: #E9DFC6; }
.rc--set .rc__band--iqr { background: #B08D3E; }
.rc__tick { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #1A2E4A;
  box-shadow: 0 0 0 1.5px #fff; }
.rc__lbl { position: absolute; white-space: nowrap; font: 500 .8125rem/1 var(--rs-sans, sans-serif);
  font-variant-numeric: tabular-nums; color: #22272E;
  /* A surface ring, above the incumbent's dashed line (z-index 1): an incumbent just past P25 or P75 would
     otherwise strike through that figure. Background and shadow only, so no label moves. */
  position: absolute; z-index: 2; background: #fff; box-shadow: 0 0 0 2px #fff; }
.rc__lbl--p50 { top: 10px; transform: translateX(-50%); font-weight: 600; font-size: .9375rem; color: #1A2E4A;
  background: #fff; padding: 0 4px; }
.rc__lbl--q { top: 62px; }
.rc__lbl--p25 { transform: translateX(-100%); padding-right: 2px; }
.rc__lbl--p75 { padding-left: 2px; }
.rc__lbl--end { top: 38px; color: #5A6473; font-weight: 400; }
.rc__lbl--p10 { transform: translateX(calc(-100% - 8px)); }
.rc__lbl--p90 { transform: translateX(8px); }
.rc__axis { position: relative; height: 22px; border-top: 1px solid #DCE1E8; }
.rc__tick-lbl--first { transform: none !important; }
.rc__tick-lbl--last { transform: translateX(-100%) !important; }
.rc__tick-lbl { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap;
  font: 400 .75rem/1 var(--rs-sans, sans-serif); color: #5A6473; font-variant-numeric: tabular-nums; }

.rc__inc { position: absolute; top: -6px; bottom: 22px; width: 0; border-left: 1.5px dashed #22272E; z-index: 1; pointer-events: none; }
.rc__inc-diamond { position: absolute; top: -4px; left: -5.5px; width: 9px; height: 9px; background: #22272E; transform: rotate(45deg); }
.rc__inc-lbl { position: absolute; top: -9px; left: 10px; white-space: nowrap; font: 600 .8125rem/1 var(--rs-sans, sans-serif); color: #22272E; background: #fff; padding: 0 3px; }
.rc__inc-lbl--left { left: auto; right: 10px; }
.rc:has(.rc__inc) .rc__row { margin-top: 14px; }

.rc__tip { position: absolute; top: -6px; transform: translate(-50%, -100%); z-index: 2; pointer-events: none;
  padding: 6px 9px; border-radius: 4px; background: #1A2E4A; color: #fff; white-space: nowrap;
  font: 500 .8125rem/1.2 var(--rs-sans, sans-serif); }
.rc__band, .rc__tick { cursor: default; }

/* Narrow: the P10 and P90 labels leave the band ends and sit under the band, so the chart keeps its width. */
@container (max-width: 520px) {
  /* Narrow: P25 and P75 centred under their band edges on one line, P10 and P90 on the next, anchored to the
     band's outer ends, so no two labels share a line and none can cross. */
  .rc__plot { padding: 0 2px; }
  .rc__row { height: 116px; }
  .rc__lbl--q { transform: translateX(-50%); padding: 0; }
  .rc__lbl--end { top: 86px; }
  .rc__lbl--p10 { transform: none; }
  .rc__lbl--p90 { transform: translateX(-100%); }
  .rc__legend { margin-left: 0; }
}

/* Compact (a workforce role's detail row): smaller, no title. */
.rc--compact { margin: 6px 0 4px; }
.rc--compact .rc__row { height: 78px; }
.rc--compact .rc__track { top: 30px; height: 14px; }
.rc--compact .rc__lbl--p50 { top: 8px; font-size: .875rem; }
.rc--compact .rc__lbl--q { top: 54px; }
.rc--compact .rc__lbl--end { top: 32px; }
.rc--compact .rc__plot { padding: 0 76px; }
@container (max-width: 520px) { .rc--compact .rc__plot { padding: 0 2px; } .rc--compact .rc__row { height: 96px; } .rc--compact .rc__lbl--end { top: 74px; } }

/* ── Panels under the chart (target, projection): the same hairline, no shadow. ───────────────────────── */
.rs .pct-target, .rs .age-data { border-color: var(--rs-rule); border-radius: 4px; box-shadow: none; }

/* ── Tables (report P4): a navy rule over the header and under it, hairlines between rows, no vertical
      lines, no header fill; the P50 column tinted as the report's key column; the total row bold on Cloud. ── */
.rs .breakdown-table,
.rs .multi-results-table { border-collapse: collapse; }
.rs .breakdown-table th,
.rs .multi-results-table thead th {
  background: #fff; color: var(--rs-navy);
  font: 600 .8125rem/1.3 var(--rs-sans); letter-spacing: 0; text-transform: none;
  border-top: 0; border-bottom: 1px solid var(--rs-navy);
}
.rs .breakdown-table thead tr:first-child th,
.rs .multi-results-table thead tr:first-child th { border-top: 1.5px solid var(--rs-navy); }
.rs .breakdown-table td,
.rs .multi-results-table tbody td { font-size: .9375rem; color: var(--rs-ink); border-bottom: 1px solid var(--rs-rule); }
.rs .breakdown-table td.col-median,
.rs .breakdown-table th.col-median,
.rs .multi-results-table td.p50-cell,
.rs .multi-results-table th.p50-th { background: var(--rs-teal-lite); color: var(--rs-navy); font-weight: 600; }
.rs .breakdown-table tr.bd-row-total td { background: var(--rs-cloud); border-top: 1px solid var(--rs-navy); border-bottom: 0;
  font-weight: 600; color: var(--rs-navy); }
.rs .breakdown-table tr.bd-row-total td.col-median { background: var(--rs-teal-tint); }
.rs .breakdown-table tr:not(.bd-row-total):hover td { background: inherit; }
.rs .breakdown-table tr:not(.bd-row-total):hover td.col-median { background: var(--rs-teal-lite); }

/* Grouped headers on /workforce: the group names in the report's small caps, the group colours kept. */
.rs .multi-results-table th.col-group-header { font: 600 .75rem/1.3 var(--rs-sans); letter-spacing: .08em; text-transform: uppercase; }
.rs .multi-results-table th.col-group-header.col-group-incentive { color: var(--rs-gold-text); }
.rs .multi-results-table th.col-group-header.col-group-total { color: var(--rs-teal); }

/* The notes under a table: the report's small notes, upright (not italic), on a readable measure. */
.rs .comparables-note { font-style: normal; font-size: .8125rem; line-height: 1.55; color: var(--rs-muted); max-width: 84ch; }

/* The §4958 line and the workforce disclaimer: the report's callout (teal-lite, gold left rule). */
.rs .rs-callout,
.rs .comparables-note.rs-callout {
  max-width: none; margin: 18px 0 0; padding: 14px 20px;
  background: var(--rs-teal-lite); border-left: 3px solid var(--rs-gold); border-radius: 0;
  font-size: .875rem; line-height: 1.6; color: var(--rs-body);
}

/* ── Narrow screens ─────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rs > .card-header.rs-head { padding: 20px 18px 0; }
  .rs > .card-body { padding: 12px 18px 22px; }
  .rs .rs-title { font-size: 1.75rem; }
  /* P50 across the top, P25 and P75 side by side under it (low to high, left to right). */
  .rs .percentile-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "p50 p50" "p25 p75"; gap: 10px; }
  .rs #box-p25 { grid-area: p25; }
  .rs #box-median { grid-area: p50; }
  .rs #box-p75 { grid-area: p75; }
  .rs .pct-value, .rs .pct-box.highlight .pct-value { font-size: 1.5rem; }
  .rs #box-p25 .rs-q, .rs #box-p75 .rs-q { display: none; }
  .rs #box-median .pct-value { font-size: 2rem; }
  /* The component column stays put while the percentiles scroll, so P50 is always one swipe away. */
  .rs .breakdown-table th:first-child,
  .rs .breakdown-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--rs-rule); }
  .rs .breakdown-table tr.bd-row-total td:first-child { background: var(--rs-cloud); }
}

/* ── /workforce: the results card and the empty state ─────────────────────────────────────────────────── */
.rs#multi-results-panel > .card-header.rs-head { padding-bottom: 14px; }
.rs#multi-results-panel .rs-head h2 { grid-column: 1; }
.rs#multi-results-panel .rs-title { grid-row: 2; }
.rs#multi-results-panel > .card-body { padding: 0 12px; }
.rs .provenance-strip { background: none; border-left: 0; padding-left: 28px; color: var(--rs-muted); }
/* The base-salary note and the "Age data to" control sit outside the card body; give them the same 28px inset as
   the provenance line and the disclaimer callout, so nothing in the card runs flush to its edge. */
.rs#multi-results-panel .base-only-note { margin: 6px 28px 14px; }
.rs#multi-results-panel .age-data { margin: 0 28px 18px; }
/* An open role's detail (description, titles, the chart) is as wide as the visible table window, not the whole
   13-column table: on a phone the table scrolls sideways, and the detail used to run off-screen with it. The scroll
   box is the size container; each detail block is capped at its width and stays put while the figures scroll. */
.rs#multi-results-panel .table-scroll { container-type: inline-size; }
.rs .multi-results-table tbody tr.expand-row > td > * {
  position: sticky; left: 16px; max-width: calc(100cqw - 32px); box-sizing: border-box; }
.rs .expand-detail-bar { display: none; }

.rs.rs-empty .placeholder-panel { padding: 44px 32px 40px; text-align: left; align-items: flex-start; }
.rs.rs-empty .placeholder-panel .icon { display: none; }
.rs.rs-empty .placeholder-panel p { max-width: 40ch; margin: 22px 0 0; font-size: 1rem; line-height: 1.6; color: var(--rs-body); }
.rs-ghost { width: 100%; max-width: 520px; }       /* a grey outline of the range chart: what a run produces */
.rs-ghost__row { position: relative; height: 18px; margin: 14px 0; }
.rs-ghost__row::before { content: ""; position: absolute; left: var(--a); right: var(--d); top: 0; bottom: 0; border-radius: 3px; background: #EEF1F5; }
.rs-ghost__row::after { content: ""; position: absolute; left: var(--b); right: var(--c); top: 0; bottom: 0; border-radius: 2px; background: #DCE1E8; }
.rs-ghost__axis { height: 1px; background: #DCE1E8; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { .rc * { transition: none !important; } }
@media print { .rc__tip { display: none !important; } }

/* /workforce has one heading ("Results — N Roles"): it is the title, set as the report's section title. */
.rs#multi-results-panel .rs-head { align-items: end; }
.rs#multi-results-panel .rs-head h2 {
  font: 400 1.75rem/1.2 var(--rs-serif); letter-spacing: 0; text-transform: none; color: var(--rs-navy);
}
.rs#multi-results-panel .rs-head h2::after { display: none; }
.rs#multi-results-panel .rs-head h2::before {
  content: ""; display: block; width: 44px; height: 2px; margin-bottom: 14px; background: var(--rs-gold);
}
.rs .multi-results-table tbody tr.expand-row > td { background: #fff; padding: 18px 20px 16px; }

/* The comparables roster is the dense table (the report's roster sets it a step smaller too). */
.rs #comparables-table-wrap .breakdown-table td,
.rs #comparables-table-wrap .breakdown-table th { font-size: .875rem; }
.rs #comparables-table-wrap .breakdown-table td { line-height: 1.4; }


/* Review fixes (round 1) ─────────────────────────────────────────────────────────────────────────────── */
/* The sample banner as the report's callout: teal-lite, gold left rule, no icon, no full border. */
.rs .sample-banner { background: var(--rs-teal-lite); border: 0; border-left: 3px solid var(--rs-gold); border-radius: 0; box-shadow: none; padding: 14px 20px; }
.rs .sample-banner__icon { display: none; }
.rs .sample-banner__eyebrow { color: #7D6227; }   /* gold text on teal-lite: 5.13:1 (--rs-gold-text is 4.35:1 here) */
.rs .sample-banner__text { color: var(--rs-body); }
.rs .example-banner { background: var(--rs-teal-lite); border: 0; border-left: 3px solid var(--rs-gold); border-radius: 0; }

/* The confidence badge: small caps text, not a mint pill. */
.rs .confidence-badge { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
  font: 600 .75rem/1.4 var(--rs-sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-muted) !important; }

/* Figures first: the credibility line, vintage and Methodology now sit under the breakdown, on a hairline. */
.rs .rs-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rs-rule); }
.rs .rs-foot .cred-line { margin-top: 0; }

/* Phone tables: an edge shadow says "there is more to the right" while the table can still scroll. */
@media (max-width: 640px) {
  .rs .breakdown-wrap, .rs .comparables-scroll, .rs .table-scroll {
    background:
      linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 28px 100% no-repeat local,
      radial-gradient(farthest-side at 100% 50%, rgba(26,46,74,.16), rgba(26,46,74,0)) right / 12px 100% no-repeat scroll;
  }
}
