/*
 * csec-hospitals — five hundred-birth fields, one per kind of hospital, and a
 * shared rule underneath. Mission and trust (.lo) keeps the chapter colour on
 * its number; the others are in ink. Narrow: one row per kind.
 */
.csk { display: flex; flex-direction: column; gap: 22px; }
.csk-views { margin: 0; }
.csk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px clamp(14px, 2.4vw, 32px); }
.csk-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: relative; }
/* the one that breaks the pattern: a faint wash of the chapter colour */
.csk-col.lo::before {
  content: ""; position: absolute; inset: -12px -12px -10px; z-index: -1;
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--cat-emph) 8%, transparent);
}
.csk-grid { isolation: isolate; }
.csk-head { min-height: 2.6em; display: flex; align-items: flex-end; }
.csk-name { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.csk-field { display: block; width: 100%; aspect-ratio: 1; overflow: visible; }
.csk-foot p { margin: 0; }
.csk-num { display: flex; align-items: baseline; color: var(--ink); }
.csk-col.lo .csk-num { color: var(--cat-emph); }
.csk-val { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 40px); font-weight: 400; letter-spacing: -.03em; }
.csk-pc { font-family: var(--font-display); font-size: 20px; margin-left: 2px; color: inherit; opacity: .7; }
.csk-sig { margin-top: 4px !important; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.csk-sig.lo { color: var(--cat-emph); }
.csk-sig.hi { color: var(--ink); }
.csk-n { margin-top: 2px !important; font-family: var(--font-mono); font-size: 11.5px; color: var(--label-ink); }

/* the shared rule */
.csk-rule { border-top: 1px solid var(--fig-line); padding-top: 6px; }
.csk-rule svg { display: block; overflow: visible; }
.csk-axis { stroke: var(--axis-ink); stroke-width: 1; }
.csk-tk { stroke: var(--axis-ink); stroke-width: 1; }
.csk-tl { font-family: var(--font-mono); font-size: 11.5px; fill: var(--label-ink); }
.csk-brk { fill: none; stroke: rgba(var(--ink-rgb), .35); stroke-width: 1; transition: d .7s var(--rv-ease); }
.csk-dot { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; transition: cx .7s var(--rv-ease); }
.csk-dot.k-mission_trust { fill: var(--cat-emph); stroke: var(--cat-emph); }
.csk-dl { font-family: var(--font-mono); font-size: 11.5px; fill: var(--muted); transition: x .7s var(--rv-ease); }
.csk-dl.lo { fill: var(--cat-emph); }

@container (width < 640px) {
  .csk-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .csk-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    grid-template-areas: "head field" "foot field";
    align-items: start;
    gap: 2px 16px;
    padding: 14px 0;
    border-top: 1px solid var(--fig-line);
  }
  .csk-head { grid-area: head; min-height: 0; }
  .csk-name { font-size: 17px; }
  .csk-field { grid-area: field; }
  .csk-foot { grid-area: foot; }
  .csk-val { font-size: 32px; }
  .csk-col.lo::before { inset: 0 -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .csk-brk, .csk-dot, .csk-dl { transition: none; }
}
