/* Integrity Index and pay chart, in the Disclosure world: ink rules, hairline records, figures in
   tabular Public Sans, Archivo only for titles and the headline number. Colour means something:
   ink for the published point, meadow green for the most attractive quadrant and selection. */
:root {
  --attractive: light-dark(#e4f0e6, #1a2c24);
  --attractive-edge: light-dark(#b9d4bf, #2d4a3c);
}

/* Navigation: “Integrity Index” on wide screens, “Index” on phones. */
@media (max-width: 700px) { .nav-qual { display: none; } .site-header .site-nav { gap: 20px; } .quiet-nav { gap: 18px !important; } }

.ix-head .lede { max-width: 40em; }
.ix-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ix-meta .meta-list { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ix-tabs { margin: 20px 0 22px; }
.ix-section { margin: 32px 0 40px; }
.ix-section .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; margin-bottom: 14px; }
.ix-section .section-head p { font-size: 13px; color: var(--muted); }
.ix-note { max-width: 38em; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.muted { color: var(--muted); }

/* ---- Personal weighting -------------------------------------------------------------------- */
.ix-weights { border-bottom: 1px solid var(--line); margin: 0 0 8px; }
.ix-tabs + .ix-weights { margin-top: -10px; }
.ix-weights > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 0; font-weight: 600; font-size: 15px; list-style: none; }
.ix-weights > summary::-webkit-details-marker { display: none; }
.ix-weights > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 2px; transition: transform .16s ease-out; align-self: center; }
.ix-weights[open] > summary::before { transform: rotate(45deg); }
.ix-weights-state { font-weight: 400; font-size: 13px; color: var(--muted); }
.ix-weights-form { padding: 0 0 16px; display: grid; gap: 14px; }
.ix-weights-form .hint { max-width: 44em; font-size: 14px; color: var(--muted); }
.ix-weight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 12px 20px; }
.ix-weight { display: grid; gap: 4px; }
.ix-weight label { font-size: 13px; font-weight: 600; }
.ix-weight select { min-height: 44px; font-size: 16px; }
.ix-floor label::after { content: ''; }
.ix-weight-actions { display: flex; gap: 12px; }
.ix-personal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--sunk); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0 0; font-size: 14px; }

/* ---- The index as a dot plot: score, and its range ---------------------------------------- */
.ix-axis, .ix-row { display: grid; grid-template-columns: 2rem minmax(9rem, 13rem) minmax(0, 1fr) 6.5rem; column-gap: 16px; align-items: center; }
.ix-axis { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; height: 20px; }
.ix-ticks { position: relative; height: 18px; }
.ix-ticks span { position: absolute; transform: translateX(-50%); }
.ix-ticks span:nth-child(1) { left: 0; transform: none; } .ix-ticks span:nth-child(2) { left: 25%; } .ix-ticks span:nth-child(3) { left: 50%; } .ix-ticks span:nth-child(4) { left: 75%; } .ix-ticks span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.ix-board { list-style: none; border-top: var(--rule-mid) solid var(--ink); }
.ix-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ix-rank { font-variant-numeric: tabular-nums; color: var(--faint); font-size: 13px; text-align: right; }
.ix-name { font-weight: 600; color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.ix-name:hover { text-decoration-color: currentColor; }
.ix-plot { position: relative; height: 22px; background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x; border-right: 1px solid var(--line); }
.ix-plot::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.ix-span { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--muted); }
.ix-span::before, .ix-span::after { content: ''; position: absolute; top: -4px; height: 10px; border-left: 2px solid var(--muted); }
.ix-span::before { left: 0; } .ix-span::after { right: 0; }
.ix-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--ink); }
.ix-score { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-variant-numeric: tabular-nums; }
.ix-score strong { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 24px; line-height: 1; }
.ix-range-text { font-size: 12px; color: var(--muted); min-width: 3.2rem; }
.ix-empty { padding: 14px 0; }
@media (max-width: 700px) {
  .ix-axis { grid-template-columns: 1.6rem minmax(0, 1fr); column-gap: 10px; } .ix-axis > span:nth-child(2), .ix-axis > span:nth-child(4) { display: none; }
  .ix-row { grid-template-columns: 1.6rem minmax(0, 1fr) auto; grid-template-areas: 'rank name score' 'rank plot plot'; row-gap: 6px; column-gap: 10px; }
  .ix-rank { grid-area: rank; align-self: start; padding-top: 3px; } .ix-name { grid-area: name; } .ix-score { grid-area: score; } .ix-plot { grid-area: plot; }
}

/* ---- Lens score table ---------------------------------------------------------------------- */
.ix-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; position: relative; }
.ix-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ix-lens-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; min-width: 760px; }
.ix-lens-table thead th { font-size: 13px; font-weight: 600; text-align: right; padding: 0 10px 8px; border-bottom: var(--rule-mid) solid var(--ink); white-space: nowrap; vertical-align: bottom; }
.ix-lens-table thead th:first-child { text-align: left; padding-left: 0; }
.ix-lens-table tbody th { text-align: left; font-weight: 600; padding: 9px 10px 9px 0; position: sticky; left: 0; background: var(--paper); }
.ix-lens-table td { text-align: right; padding: 9px 10px; }
.ix-lens-table tbody tr { border-bottom: 1px solid var(--line); }
.ix-lens-table .ix-total { border-right: 1px solid var(--line-strong); }
.ix-lens-table .ix-total strong { font-weight: 700; }
.ix-lens-table .is-ignored { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.ix-withheld { list-style: none; border-top: var(--rule-mid) solid var(--ink); }
.ix-withheld li { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ix-withheld a { font-weight: 600; }
.ix-withheld .muted { font-size: 13px; }
.ix-limits .plain-list { display: grid; gap: 8px; max-width: 40em; margin-bottom: 12px; }

/* ---- The disclosure panel: the index is the first line, like Calories on a label ------------ */
.disclosure .d-index { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0 0; color: var(--ink); text-decoration: none; }
.disclosure .d-index-label { font-family: var(--display); font-weight: 850; font-stretch: 80%; font-size: 22px; }
.disclosure .d-index-num { font-family: var(--display); font-weight: 900; font-stretch: 78%; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.disclosure .d-index-num .d-gap { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.disclosure .d-index:hover .d-index-label { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.disclosure .d-index-note { font-size: 12px; padding: 2px 0 6px; border-bottom: var(--rule-mid) solid var(--ink); line-height: 1.45; }
.disclosure .d-index-note a { color: var(--ink); }
.ix-panel .ix-big { display: flex; align-items: baseline; gap: 8px; padding: 6px 0 2px; }
.ix-panel .ix-big strong { font-family: var(--display); font-weight: 900; font-stretch: 76%; font-size: 64px; line-height: .95; font-variant-numeric: tabular-nums; }
.ix-panel .ix-big span { font-size: 13px; color: var(--muted); }
.ix-panel .ix-withheld-big span { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: 24px; color: var(--ink); }
.ix-panel .ix-big-note { border-bottom: var(--rule-mid) solid var(--ink); padding-bottom: 6px; }
.ix-meta { max-width: none !important; }
.ix-personal-company { background: var(--sunk); padding: 6px 8px !important; border-radius: var(--radius); }

/* ---- A company's working ------------------------------------------------------------------- */
.ix-explain { max-width: 38em; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-strong); padding-top: 10px; }
.ix-items .c-matter { width: 44%; } .ix-items .c-rating { width: 15%; } .ix-items .c-basis { width: 31%; } .ix-items .c-points { width: 10%; }
.ix-items .ix-points, .ix-items thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ix-items .ix-points .cell { font-weight: 700; }
.ix-items .type.small { margin-right: 4px; }
.ix-items .ix-unresolved th a, .ix-items .ix-context th a { font-weight: 400; }
.ix-lens .section-head p strong { font-variant-numeric: tabular-nums; }
.ix-matter p { max-width: 40em; }

/* ---- Role chooser -------------------------------------------------------------------------- */
.ix-cohort { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 14px; }
.ix-cohort .filter-field { display: grid; gap: 4px; min-width: min(14rem, 100%); flex: 1 1 12rem; }
.ix-cohort label { font-size: 13px; font-weight: 600; }
.ix-cohort select { min-height: 44px; font-size: 16px; }
.ix-cohort-list { list-style: none; border-top: var(--rule-mid) solid var(--ink); }
.ix-cohort-list li { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ix-cohort-family { font-weight: 600; min-width: 16rem; }

/* ---- The pay chart --------------------------------------------------------------------------- */
.pay-legend, .lp-chart-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.pay-legend span, .lp-chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.lg-quadrant::before { content: ''; width: 16px; height: 11px; background: var(--attractive); border: 1px solid var(--attractive-edge); }
.lg-pareto::before { content: ''; width: 22px; border-top: 2px dotted var(--ink); }
.lg-front::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.lg-other::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--raised); }
.lg-range::before { content: ''; width: 18px; height: 9px; border-left: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); background: linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1.5px no-repeat; }
.pay-controls { margin: 0 0 6px; font-size: 14px; }
.pay-controls .check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.pay-controls input { width: 18px; height: 18px; accent-color: var(--accent); }
.pay-figure { margin: 0; border-top: var(--rule-mid) solid var(--ink); padding-top: 12px; }
.pay-chart { width: 100%; }
.pay-chart-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.pay-chart-svg .quadrant { fill: var(--attractive); }
.pay-chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.pay-chart-svg .axis { stroke: var(--ink); stroke-width: 1.5; }
.pay-chart-svg .tick { fill: var(--faint); font-size: 12px; }
.pay-chart-svg .axis-title { fill: var(--muted); font-size: 12px; font-weight: 600; }
.pay-chart-svg .whisker line { stroke: var(--line-strong); stroke-width: 1.25; }
.pay-chart-svg .whisker.on-front line { stroke: var(--muted); }
.pay-chart-svg .pareto { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 0.1 5.5; stroke-linecap: round; }
.pay-chart-svg .pt { cursor: pointer; outline: none; }
.pay-chart-svg .pt-hit { fill: transparent; }
.pay-chart-svg .pt-dot { fill: var(--raised); stroke: var(--muted); stroke-width: 1.75; transition: r .14s ease-out; }
.pay-chart-svg .pt.on-front .pt-dot { fill: var(--ink); stroke: var(--ink); }
.pay-chart-svg .pt:hover .pt-dot { stroke: var(--ink); stroke-width: 2.5; }
.pay-chart-svg .pt.is-selected .pt-dot { stroke: var(--accent); stroke-width: 3.5; }
/* Focus is its own mark: a dashed ring around the point, distinct from selection. */
.pay-chart-svg .pt:focus-visible .pt-hit { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }
.pay-chart-svg .pt-label { fill: var(--muted); font-size: 12px; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.pay-chart-svg .pt-label.on-front { fill: var(--ink); font-weight: 600; }
.pay-chart-svg .pt-label.is-selected { fill: var(--ink); font-weight: 700; }
.pay-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 46em; }
.pay-detail { border-top: 1px solid var(--line-strong); margin-top: 16px; padding: 12px 0 4px; min-height: 5.5rem; }
.pay-detail h3 { font-size: 18px; margin-bottom: 8px; }
.pay-facts { display: flex; flex-wrap: wrap; gap: 6px 32px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.pay-facts dt { font-size: 13px; color: var(--muted); }
.pay-facts dd strong { font-size: 18px; }
.pay-detail-links { display: flex; gap: 18px; margin-top: 6px; }
.pay-table-h { font-size: 17px; margin: 28px 0 10px; }
.pay-table .c-co { width: 26%; } .pay-table .c-ix { width: 18%; } .pay-table .c-pay { width: 22%; } .pay-table .c-disc { width: 20%; } .pay-table .c-front { width: 14%; }
.pay-table td .cell, .pay-disclosures td .cell { font-variant-numeric: tabular-nums; }
.pay-table tr.on-front th a { font-weight: 700; }
.pay-disclosures .c-role { width: 24%; } .pay-disclosures .c-src { width: 12%; }
.pay-disclosures .pay-excluded th, .pay-disclosures .pay-excluded td { color: var(--muted); }
.pay-disclosures td .cell a + a { margin-left: 10px; }

/* Landing preview */
.lp-pay .lp-chart { display: block; margin-top: 14px; border-top: var(--rule-mid) solid var(--ink); padding-top: 10px; color: inherit; }
.lp-pay .lp-chart:hover .pay-chart-svg .pareto { stroke-width: 2.5; }
.lp-pay .lp-chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lp-company-ix { font-variant-numeric: tabular-nums; text-decoration: none; color: var(--ink); }
.lp-company-ix strong { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 20px; }
.lp-company-ix.muted { font-size: 12px; color: var(--muted); }

/* Directory index column */
.directory .c-ix { width: 9rem; }
.directory td[data-label="Integrity Index"] strong { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ix-weights > summary::before, .pay-chart-svg .pt-dot { transition: none; } }
/* Landing company rows gain the index column. */
.lp-company { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 5.5rem auto minmax(6.5rem, auto); }
.lp-company-ix { justify-self: end; }
/* The name keeps its longest word, so a long state such as "No Ledger yet" wraps instead of overlapping it. */
@media (max-width: 760px) { .lp-company { grid-template-columns: minmax(min-content, 1fr) auto auto; } .lp-company-ix { order: 2; } }
@media (max-width: 760px) { .ix-items .ix-points, .ix-items .ix-points .cell { text-align: left; } }
/* Landing preview: a wide drawing for desktops, a phone drawing with readable labels for phones. */
.lp-chart .pay-chart-svg.is-compact { display: none; }
@media (max-width: 640px) { .lp-chart .pay-chart-svg.is-wide { display: none; } .lp-chart .pay-chart-svg.is-compact { display: block; } }
/* Very narrow phones: four destinations wrap rather than overflow or scroll out of sight. */
@media (max-width: 380px) { .site-nav, .quiet-nav { flex-wrap: nowrap; gap: 12px !important; } .site-nav > a, .quiet-nav > a { font-size: 13px !important; white-space: nowrap; } }
/* Pay disclosures: seven columns that add up. */
.pay-disclosures .c-role { width: 22%; } .pay-disclosures .c-base { width: 12%; } .pay-disclosures .c-bonus { width: 9%; } .pay-disclosures .c-eq { width: 13%; }
.pay-disclosures .c-total { width: 14%; } .pay-disclosures .c-counted { width: 16%; } .pay-disclosures .c-src { width: 14%; }
.pay-disclosures td .cell a { display: inline-block; }
/* Methodology tables: hairline records, left-aligned, column heads on a mid rule. */
.ix-method-table { width: 100%; max-width: 44em; border-collapse: collapse; margin: 12px 0 16px; font-size: 14px; }
.ix-method-table th, .ix-method-table td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.ix-method-table thead th { font-size: 13px; font-weight: 600; border-bottom: var(--rule-mid) solid var(--ink); }
.ix-method-table tbody th { font-weight: 600; width: 40%; }
.ix-method-table td { font-variant-numeric: tabular-nums; }
.ix-personal-inline { font-size: 13px; color: var(--ink); background: var(--sunk); border-radius: var(--radius); padding: 6px 10px; margin: -2px 0 10px; }
.lp-chart-caption { font-size: 13px; color: var(--lp-muted, var(--muted)); margin-top: 8px; max-width: 46em; }
.lp-company-ix .lp-ix-range { font-size: 12px; color: var(--muted); margin-left: 4px; font-family: var(--sans); }
/* Pay disclosures on phones: one record, four short lines instead of seven stacked rows. */
@media (max-width: 760px) {
  .pay-disclosures tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 0; }
  .pay-disclosures th { grid-column: 1 / -1; padding: 0; }
  .pay-disclosures td { display: block; padding: 0; }
  .pay-disclosures td::before { display: block; font-size: 12px; margin-bottom: 2px; padding: 0; }
  .pay-disclosures td:nth-of-type(5) { grid-column: span 2; }
  .pay-disclosures td:last-child { grid-column: 1 / -1; }
}
/* Audit, confirming round: one strong weight in tables, readable measures, the landing key at the floor. */
.pay-table th a, .pay-table tr.on-front th a { font-weight: 600; }
.pay-figure figcaption, .ix-weights-form .hint { max-width: 65ch; }
.lp-key, .lp-chart-key { font-size: 12px; }
