/*
 * csec-cities — sixteen cities ranked by C-section rate. Bead = rate (size:
 * births), line = 95% range. Tamil Nadu in the chapter colour. Right column:
 * share of births at mission and trust hospitals (wide layouts only).
 */
.csc { position: relative; }
.csc-svg { display: block; overflow: visible; }
.csc-svg:focus-visible { outline: 2px solid var(--accent2); outline-offset: 4px; border-radius: 4px; }
.csc-grid line { stroke: var(--fig-line); stroke-width: 1; }
.csc-grid text, .csc-colh { font-family: var(--font-mono); font-size: 11.5px; fill: var(--label-ink); }
.csc-ref line { stroke: var(--ref-ink); stroke-width: 1; stroke-dasharray: 3 4; }
.csc-ref text { font-family: var(--font-mono); font-size: 11.5px; fill: var(--ref-ink); }

.csc-hit { fill: transparent; }
.csc-row.hot .csc-hit { fill: rgba(var(--ink-rgb), .05); }
.csc-name { font-family: var(--font-sans); font-size: 14px; fill: var(--ink); }
.csc-row.small .csc-name { fill: rgba(var(--ink-rgb), .62); }
.csc-ci { stroke: rgba(var(--ink-rgb), .32); stroke-width: 2; stroke-linecap: round; }
.csc-bead { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; }
.csc-val { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; fill: var(--ink); }
.csc-row.tn .csc-bead { fill: var(--cat-emph); stroke: var(--cat-emph); }
.csc-row.tn .csc-ci { stroke: color-mix(in srgb, var(--cat-emph) 55%, transparent); }
.csc-row.tn .csc-val { fill: var(--cat-emph); }
.csc-row.hot .csc-name { font-weight: 600; }
.csc-mt-track { fill: rgba(var(--ink-rgb), .08); }
.csc-mt { fill: rgba(var(--ink-rgb), .55); }
.csc-row.tn .csc-mt { fill: var(--cat-emph); }
.csc-mt-val { font-family: var(--font-mono); font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }

/* first view: rows settle in from the top */
.csc[data-rv="pending"] .csc-row { opacity: 0; }
.csc[data-rv="shown"] .csc-row { transition: opacity .5s ease calc(var(--i) * 35ms); }

.csc-legend { margin-top: 12px; }
.csc-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid var(--ink); background: var(--bg); margin-right: 6px; vertical-align: -1px; }
.csc-key.tn { background: var(--cat-emph); border-color: var(--cat-emph); }
.csc-key-small { color: var(--muted); }

@container (width < 560px) {
  .csc-name { font-size: 13px; }
  .csc-val { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .csc-row { transition: none !important; } }
