/* ---- Contributors (design/contributors_1124, a founder approved it): a quiet head, the crowd, the list and its rail.
   Drawn by js/contributors-page.js. The list rows are the leaderboard's (.lb-row, site.css). ---- */
.page-contributors [data-prog='meta'] { --pc: var(--color-program-meta-mark); }
.page-contributors [data-prog='gct'] { --pc: var(--color-program-geometric-mark); }
.page-contributors [data-prog='pcx'] { --pc: var(--color-program-proof-mark); }
.page-contributors [data-prog='lib'] { --pc: var(--color-art-organism-9a8f3c); }
.page-contributors [data-prog='clb'] { --pc: var(--color-accent-mid); }
.page-contributors [data-prog='alg'] { --pc: var(--color-art-organism-4e9a8a); }

.ct-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.page-contributors .ct-head .page-title { margin-top: 0; font-size: 44px; line-height: 1.1; }
.ct-note { margin-bottom: var(--spacing-24); padding: 10px 14px; border: 1px solid var(--color-status-refuted-ring); border-radius: var(--radius-6); background: var(--color-status-refuted-row); font: 400 13px/1.4 var(--sans); color: var(--color-status-refuted-ink); }
.ct-note[hidden] { display: none; }

.ct-box { position: relative; padding: 20px 22px; border: 1px solid var(--color-rule); border-radius: var(--radius-16); background: var(--color-surface-raised); min-width: 0; }
.ct-crowd { margin-top: var(--spacing-24); padding: 22px 24px 16px; border-radius: var(--radius-16); }
.ct-crowd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ct-crowd-head h2, .ct-box-head h2 { font: 600 15px/1.2 var(--sans); color: var(--color-ink); }
.ct-legend { margin-top: 4px; font: 400 12px/1.25 var(--sans); color: var(--color-ink-meta); }
.ct-total { font: 400 22px/1 var(--serif); color: var(--color-public-ink); white-space: nowrap; }
.ct-total.none { color: var(--color-ink-meta); }
/* The range switch (a segmented control) and the shading key. */
.ct-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 10px; }
.ct-range { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-8); background: var(--color-surface-sunk); }
.ct-range button { min-width: 38px; padding: 5px 12px; border: 0; border-radius: var(--radius-6); background: none; font: 500 12px/15px var(--sans); color: var(--color-ink-muted); cursor: pointer; }
.ct-range button:hover { color: var(--color-ink); }
.ct-range button[aria-pressed='true'] { background: var(--color-surface-raised); box-shadow: 0 1px 3px var(--a-27-26-23-01); font-weight: 600; color: var(--color-ink); }
.ct-key { display: flex; align-items: center; gap: 10px; font: 400 11px/13px var(--sans); color: var(--color-ink-muted); }
.ct-key span::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; border-radius: var(--radius-2); background: var(--color-public-ink); }
.ct-key .b1::before { opacity: 0.25; } .ct-key .b2::before { opacity: 0.5; } .ct-key .b3::before { opacity: 0.75; }
/* The series' key: three 3 px squares, 1 px apart, in the faces' ink at 50%, then the words. */
.ct-key .ct-key-series { margin-right: 7px; font-weight: 400; }
.ct-key .ct-key-series[hidden] { display: none; }
.ct-key .ct-key-series::before { content: ''; display: inline-block; width: 11px; height: 3px; margin-right: 3px; vertical-align: 2px; background: linear-gradient(90deg, var(--a-43-111-214-05) 3px, transparent 3px 4px, var(--a-43-111-214-05) 4px 7px, transparent 7px 8px, var(--a-43-111-214-05) 8px); }
/* The hour grid: a column per bucket, a square per person, the floor at the bottom. */
.ct-stage { position: relative; margin-top: 4px; padding-bottom: 22px; }
.ct-stage svg { display: block; overflow: visible; }
.ct-col { stroke: var(--color-rule-soft); stroke-width: 1; }
.ct-midnight { stroke: var(--color-ink-faint); stroke-width: 1; }
.ct-axis { stroke: var(--color-rule); stroke-width: 1; }
.ct-squares rect { fill: var(--color-public-ink); }
.ct-sq[data-band='1'] rect { opacity: 0.25; } .ct-sq[data-band='2'] rect { opacity: 0.5; } .ct-sq[data-band='3'] rect { opacity: 0.75; }
.ct-sq:hover rect, .ct-sq:focus-visible rect, .ct-sq.on rect { opacity: 1; stroke: var(--color-ink); stroke-width: 1.5; }
.ct-sq:focus { outline: none; }
/* The series over the grid (points, or units of work, per hour): small squares in the faces' ink at 50%, the peak in full ink. */
.ct-series { pointer-events: none; }
.ct-series rect { fill: var(--a-43-111-214-05); }
.ct-series rect.peak { fill: var(--color-public-ink); }
.ct-peak { font: 400 11px/15px var(--mono); color: var(--color-ink-meta); }
.ct-peak.under { padding: 0 3px; border-radius: var(--radius-2); background: var(--color-surface-raised); }
.ct-first { fill: var(--public-bg); stroke: var(--color-public-ink); stroke-width: 1.5; stroke-dasharray: 3 2; }
.ct-marks { position: absolute; inset: 0; pointer-events: none; }
.ct-marks > span { position: absolute; white-space: nowrap; }
.ct-dayname.flip { transform: translateX(calc(-100% - 12px)); }
.ct-dayname { top: 0; font: 600 10px/12px var(--sans); letter-spacing: 0.4px; text-transform: uppercase; color: var(--color-ink-meta); }
.ct-empty-say { transform: translate(-50%, -50%); font: 400 12px/1.25 var(--sans); color: var(--color-ink-faint); }
.ct-more-n { transform: translateX(-50%); font: 600 10px/12px var(--mono); color: var(--color-public-ink); }
.ct-tag, .ct-first-say { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--color-public-ink); border-radius: var(--radius-full); background: var(--color-surface-raised); color: var(--color-ink); }
.ct-tag { transform: translateX(-50%); padding: 2px 6px; font: 600 11px/13px var(--sans); }
.ct-first-say { padding: 4px 10px 4px 8px; font: 600 12px/15px var(--sans); }
.ct-first-say i { width: 9px; height: 9px; box-sizing: border-box; border: 1px dashed var(--color-public-ink); border-radius: var(--radius-2); }
.ct-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; }
.ct-ticks span { position: absolute; top: 0; font: 400 11px/16px var(--mono); color: var(--color-ink-meta); white-space: nowrap; }
.ct-ticks .end { transform: translateX(-100%); }
/* The person card. */
.ct-tip { position: absolute; z-index: 2; display: grid; gap: 4px; width: 232px; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--color-rule); border-radius: var(--radius-10); background: var(--color-surface-raised); box-shadow: 0 4px 14px var(--a-27-26-23-012); }
.ct-tip[hidden] { display: none; }
.ct-tip .who { display: flex; align-items: center; gap: 6px; font: 600 14px/17px var(--sans); color: var(--color-ink); }
.ct-where-list i, .ct-group i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pc, var(--color-public-ink)); }
.ct-tip .who i, .ct-latest li > i { flex: none; width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid var(--color-surface-raised); border-radius: 50%; background: var(--color-public-ink); box-shadow: 0 0 0 0.5px var(--color-public-ink); }
.ct-tip .what { font: 400 12px/15px var(--sans); color: var(--color-ink-secondary); }
.ct-tip .when { font: 400 11px/15px var(--mono); color: var(--color-ink-meta); }
.ct-tip .go { font: 600 12px/15px var(--sans); color: var(--color-public-ink); text-decoration: none; }
.ct-tip .go:hover { text-decoration: underline; }
/* The overview: the whole record, the brush over the window. */
.ct-over-head, .ct-over-foot { display: flex; justify-content: space-between; gap: 12px; }
.ct-over-head { align-items: baseline; margin-top: 6px; }
.ct-over-say { font: 600 10px/12px var(--sans); letter-spacing: 0.4px; text-transform: uppercase; color: var(--color-ink-meta); }
.ct-brush-say { font: 400 11px/13px var(--sans); color: var(--color-ink-meta); }
.ct-track { position: relative; margin-top: 4px; touch-action: none; }
.ct-over { display: block; }
.ct-over .bar { fill: var(--color-public-ink); opacity: 0.35; }
.ct-day { stroke: var(--color-ink-faint); stroke-width: 1; stroke-dasharray: 3 3; }
.ct-brush { position: absolute; top: 0; bottom: 0; box-sizing: border-box; border: 1.5px solid var(--color-public-ink); border-radius: var(--radius-4); background: var(--public-bg); background: color-mix(in srgb, var(--color-public-ink) 10%, transparent); cursor: grab; }
.ct-brush:active { cursor: grabbing; }
.ct-brush:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.ct-brush::before, .ct-brush::after { content: ''; position: absolute; top: 50%; width: 6px; height: 20px; max-height: 80%; box-sizing: border-box; transform: translate(-50%, -50%); border: 1.5px solid var(--color-public-ink); border-radius: var(--radius-2); background: var(--color-surface-raised); }
.ct-brush::before { left: 0; } .ct-brush::after { left: 100%; }
.ct-brush.whole { cursor: default; }
.ct-over-foot { margin-top: 4px; font: 400 10px/13px var(--mono); color: var(--color-ink-meta); }

.ct-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: var(--spacing-24); margin-top: var(--spacing-24); }
.ct-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ct-main { min-width: 0; }
.ct-search { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-8); background: var(--color-surface-raised); }
.ct-search:focus-within { border-color: var(--color-ink-meta); }
.ct-glass { flex: none; width: 12px; height: 12px; border: 1.5px solid var(--color-ink-meta); border-radius: 50%; position: relative; }
.ct-glass::after { content: ''; position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.5px; background: var(--color-ink-meta); transform: rotate(45deg); }
.ct-search-in { flex: 1; min-width: 0; height: 42px; border: 0; background: none; font: 400 15px var(--sans); color: var(--color-ink); outline: none; }
.ct-search kbd { flex: none; padding: 1px 7px; border: 1px solid var(--color-rule); border-radius: var(--radius-4); background: var(--color-surface-sunk2); font: 400 11px/1.5 var(--mono); color: var(--color-ink-meta); }
.ct-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; border-bottom: 1px solid var(--color-rule); }
.ct-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.ct-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 9px; border: 0; border-bottom: 1.5px solid transparent; margin-bottom: -1px; background: none; font: 500 13px/1.3 var(--sans); color: var(--color-ink-muted); white-space: nowrap; cursor: pointer; }
.ct-tabs button[aria-selected='true'] { border-bottom-color: var(--color-ink); color: var(--color-ink); font-weight: 600; }
.ct-badge { padding: 1px 6px; border-radius: var(--radius-full); background: var(--public-bg); font: 600 10px/1.4 var(--mono); color: var(--color-public-ink); }
.ct-controls { flex: none; display: flex; align-items: center; gap: 16px; padding-bottom: 6px; }
.ct-window { flex: none; border: 0; background: none; font: 400 12px var(--sans); color: var(--color-ink-muted); cursor: pointer; }
.ct-window[hidden] { display: none; }
.ct-say { margin-top: 12px; font: 400 13px/1.25 var(--sans); color: var(--color-ink-meta); }
.ct-say .narrow { display: none; }
.ct-rows { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ct-sub { display: flex; flex-wrap: wrap; column-gap: 0; overflow: hidden; }
.ct-sub > span + span::before { content: '·'; padding: 0 6px; }
.ct-sub .p-pts .short { display: none; } /* rule C: points lead the row's count; a phone says pts */
.ct-group { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; font: 600 12px/1.3 var(--sans); color: var(--color-ink); }
.ct-group .n { margin-left: auto; font: 400 11px/1.3 var(--mono); color: var(--color-ink-meta); }
.ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; font: 400 12px/1.4 var(--sans); color: var(--color-ink-meta); }
.ct-foot[hidden] { display: none; }
.ct-more { flex: none; white-space: nowrap; border: 0; background: none; padding: 0; font: 600 12px/1.4 var(--sans); color: var(--color-public-ink); cursor: pointer; }
.ct-row.yours .handle { text-decoration: none; }

.ct-box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ct-box-head span { font: 400 12px/1.25 var(--sans); color: var(--color-ink-meta); } .ct-box-head .ct-blue { color: var(--color-public-ink); }
.ct-where-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ct-where-list li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; font: 400 12px/1.3 var(--sans); color: var(--color-ink-secondary); }
.ct-where-list .n { font: 400 11px/1.3 var(--mono); color: var(--color-ink-meta); }
.ct-where-list .bar { grid-column: 1 / -1; height: 4px; border-radius: var(--radius-2); background: var(--color-surface-sunk2); overflow: hidden; }
.ct-where-list .bar b { display: block; height: 100%; min-width: 2px; background: var(--pc); }
.ct-quiet { display: flex; align-items: center; gap: 8px; font: 400 12px/1.5 var(--sans); color: var(--color-ink-muted); }
.ct-quiet .ring { flex: none; width: 10px; height: 10px; box-sizing: border-box; border: 1px dashed var(--color-public-ink); border-radius: 50%; }
.ct-joined { display: grid; grid-template-columns: repeat(auto-fill, 22px); justify-content: space-between; row-gap: 0.5px; }
.ct-joined a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; text-decoration: none; }
.ct-joined i { width: var(--d, 8px); height: var(--d, 8px); border-radius: 50%; background: var(--color-public-ink); }
.ct-joined a.newest i { box-shadow: 0 0 0 2.5px var(--color-surface-raised), 0 0 0 4px var(--color-ink); }
.ct-joined a:hover i, .ct-joined a:focus-visible i { box-shadow: 0 0 0 2px var(--color-surface-raised), 0 0 0 3.5px var(--color-public-ink); }
.ct-joined a:focus { outline: none; }
.ct-latest { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.ct-latest li { display: flex; align-items: center; gap: 8px; }
.ct-latest .mono { margin-left: auto; }
.ct-latest a { font: 600 13px/1.25 var(--sans); color: var(--color-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-latest a:hover { text-decoration: underline; }
.ct-latest .mono { font-size: 11px; color: var(--color-ink-meta); white-space: nowrap; }

/* Loading: the page's shape in grey, before the record is read. */
.ct-skel i { display: block; border-radius: var(--radius-4); background: var(--color-surface-sunk2); animation: ct-skel 1.4s ease-in-out infinite alternate; }
.ct-skel .ct-head .ct-skel-line { width: 220px; height: 10px; }
.ct-skel .ct-box i + i { margin-top: 12px; }
.ct-skel-line { height: 10px; } .ct-skel-line.short { width: 40%; }
.ct-skel-fill { height: 180px; } .ct-skel-fill.small { height: 90px; }
.ct-skel-crowd { margin-top: var(--spacing-24); }
.ct-skel .ct-main i { margin-bottom: 8px; } .ct-skel-row { height: 52px; }
@keyframes ct-skel { from { opacity: 1; } to { opacity: 0.5; } }

/* Where the rail narrows the list, the toggle and the window wrap under the tabs (Live/Contributors 1024). */
@media (min-width: 1001px) and (max-width: 1100px) { .ct-bar { flex-wrap: wrap; } .ct-tabs { width: 100%; } .ct-controls { width: 100%; justify-content: space-between; } }
@media (max-width: 1000px) {
  .ct-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .page-contributors .ct-head .page-title { font-size: 34px; }
  .ct-box { padding: 14px; }
  .ct-crowd { padding: 16px 15px 12px; }
  .ct-crowd-head h2 { font-size: 14px; } .ct-legend { font-size: 11px; } .ct-total { font-size: 18px; }
  .ct-tools { display: block; margin-top: 12px; }
  .ct-range { display: flex; } .ct-range button { flex: 1; }
  .ct-key, .ct-window, .ct-brush-say { display: none; }
  .ct-ticks span { font-size: 10px; }
  .ct-tabs { gap: 16px; }
  /* A phone puts Points / Proofs on its own row under the tabs (Live/Contributors 390). */
  .ct-bar { display: block; border-bottom: 0; } .ct-tabs { box-shadow: inset 0 -1px 0 var(--color-rule); } .ct-tabs button { margin-bottom: 0; } .ct-controls { margin-top: 12px; padding: 0; }
  .ct-say .wide, .ct-sub .p-last, .ct-sub .p-rank { display: none; } .ct-sub .p-rank + span::before { content: none; } /* a phone row says the lemmas only (Live/Contributors 390) */
  .ct-say .narrow { display: inline; }
  .ct-sub .p-pts .long { display: none; } .ct-sub .p-pts .short { display: inline; }
  .ct-search kbd { display: none; }
}
.ct-body.ct-solo { grid-template-columns: minmax(0, 1fr); } /* all causes: the list alone (js/contributors-cause.js) */
.ct-none { padding: var(--spacing-16) 0; }
.record-page > .cr-cause { margin-bottom: 12px; }
.ct-list { display: none; align-items: center; gap: 8px; }
.ct-list-label { font: 400 12px/1.25 var(--sans); color: var(--color-ink-meta); }
.ct-list-in { padding: 4px 9px; min-height: 44px; border: 1px solid var(--color-rule-verify); border-radius: var(--radius-6); background: var(--color-surface-raised); font: 500 14px/1.25 var(--sans); color: var(--color-ink); }
@media (max-width: 600px) { .ct-tabs { display: none; } .ct-list { display: inline-flex; } } /* tabs never wrap: a List select on a phone (design K3, board 0890e70fb23cb92b) */
.ct-latest .handle { font: 600 13px/1.25 var(--sans); color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* a name with no page (js/contributors-cause.js) */
