/* pa-cohort.css · 30 Nov 2026. "Retention by sign-up week" as dot strips (js/charts/pa-cohort.js). Screen only:
   report.html never renders these. Week hues are one lilac ramp, oldest lightest. */
body:not(.rp-body) .pa-coh { container-type: inline-size; margin-top: var(--space-3); }
body:not(.rp-body) .pa-coh__k { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: var(--space-3) 0 0; font-size: var(--font-size-12); line-height: 16px; color: var(--color-text-tertiary); }
body:not(.rp-body) .pa-coh__k > span { display: inline-flex; align-items: center; gap: 6px; }
body:not(.rp-body) .pa-coh [data-cn]:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--color-lilac-700)); outline-offset: 2px; }

/* ── dot strips ── */
body:not(.rp-body) .pa-cohc__g { display: flex; flex-direction: column; gap: 10px; }
body:not(.rp-body) .pa-cohc__r { display: grid; grid-template-columns: 64px minmax(0, 1fr) 132px; gap: 0 var(--space-4); align-items: end; }
body:not(.rp-body) .pa-cohc__h { order: 9; align-items: start; gap: 0 var(--space-4); margin-top: -4px; font-size: 11px; line-height: 16px; color: var(--color-text-tertiary); }
body:not(.rp-body) .pa-cohc__h > span:last-child { visibility: hidden; }
body:not(.rp-body) .pa-cohc__g > .pa-cohc__r:nth-child(2) .pa-cohc__x::before { content: 'Newest vs first'; display: block; margin-bottom: 2px; font-size: 11px; font-weight: var(--font-weight-regular); color: var(--color-text-tertiary); }
body:not(.rp-body) .pa-cohc__ax { position: relative; height: 16px; }
body:not(.rp-body) .pa-cohc__ax i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
body:not(.rp-body) .pa-cohc__ax i:first-child { transform: none; }
body:not(.rp-body) .pa-cohc__ax i:last-child { transform: translateX(-100%); }
body:not(.rp-body) .pa-cohc__d { display: flex; align-items: center; gap: 8px; padding-bottom: 1px; font-size: var(--font-size-12); line-height: 16px; color: var(--color-text-secondary); white-space: nowrap; }
body:not(.rp-body) .pa-cohc__d i { width: 8px; height: 8px; border-radius: 2px; background: var(--bi); }
body:not(.rp-body) .pa-cohc__t { position: relative; display: block; min-width: 0; border-bottom: 1px solid var(--color-border-subtle); }
body:not(.rp-body) .pa-cohc__t svg { position: absolute; inset: 0; display: block; overflow: visible; }
body:not(.rp-body) .pa-cohc__t svg .g { fill: var(--color-neutral-100); fill-opacity: .6; stroke: none; }
body:not(.rp-body) .pa-cohc__p { position: absolute; width: var(--w); height: calc(var(--s) + 2px); transform: translate(-50%, -50%); border-radius: 50%; cursor: default; }
body:not(.rp-body) .pa-cohc__p::after { content: ''; position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); transform: translate(-50%, -50%); border-radius: 50%; background: var(--c); transition: opacity 150ms ease, transform 150ms ease; }
body:not(.rp-body) .pa-cohc.is-pick .pa-cohc__p:not(.is-on)::after { opacity: .2; }
body:not(.rp-body) .pa-cohc.is-pick .pa-cohc__p.is-on::after { transform: translate(-50%, -50%) scale(1.3); }
body:not(.rp-body) .pa-cohc__p:focus-visible { outline-offset: 0; }
body:not(.rp-body) .pa-cohc__lk { position: absolute; right: 0; top: 0; width: 14px; height: 14px; }
body:not(.rp-body) .pa-cohc__lk .pa-lock { width: 12px; height: 12px; }
body:not(.rp-body) .pa-cohc__x { display: flex; flex-direction: column; padding-bottom: 1px; font-size: var(--font-size-13, 13px); line-height: 16px; }
body:not(.rp-body) .pa-cohc__x small { font-size: 11px; color: var(--color-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.rp-body) .pa-cohc__ramp { gap: 3px !important; }
body:not(.rp-body) .pa-cohc__ramp i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
body:not(.rp-body) .pa-cohc__ramp i:first-of-type { margin-left: 3px; } body:not(.rp-body) .pa-cohc__ramp i:last-of-type { margin-right: 3px; }
@container (max-width: 520px) {
  body:not(.rp-body) .pa-cohc__r { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 12px; }
  body:not(.rp-body) .pa-cohc__d { grid-column: 1; grid-row: 1; }
  body:not(.rp-body) .pa-cohc__x { grid-column: 2; grid-row: 1; flex-direction: row; align-items: baseline; gap: 6px; }
  body:not(.rp-body) .pa-cohc__t { grid-column: 1 / -1; grid-row: 2; }
  body:not(.rp-body) .pa-cohc__g > .pa-cohc__r:nth-child(2) .pa-cohc__x::before { display: none; }
  body:not(.rp-body) .pa-cohc__h { grid-template-columns: minmax(0, 1fr); }
  body:not(.rp-body) .pa-cohc__h > span:first-child, body:not(.rp-body) .pa-cohc__h > span:last-child { display: none; }
  body:not(.rp-body) .pa-cohc__ax { grid-column: 1; grid-row: 1; }
}

/* ── draw-in, once per visit; nothing with reduced motion ── */
@media (prefers-reduced-motion: no-preference) {
  body:not(.rp-body) .pa-cohc.is-wait:not(.is-play) .pa-cohc__p { opacity: 0; }
  body:not(.rp-body) .pa-cohc.is-play:not(.is-done) .pa-cohc__p::after { animation: pa-coh-dot 240ms cubic-bezier(0.23, 1, 0.32, 1) calc(var(--i) * 12ms) backwards; }
  @keyframes pa-coh-dot { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
}
