/* Horry County bank and credit union snapshot: charts, tables and lists. Colors and fonts come only from site.css :root. */
.sec h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; margin: 2.2rem 0 0.6rem; max-width: var(--measure); }

.snap { margin: 1.6rem 0 0; padding: 1.1rem 1.25rem 1rem; border: 1.5px solid var(--ink); background: var(--card); max-width: 46rem; container-type: inline-size; }
.snap svg { display: block; width: 100%; height: auto; overflow: visible; }
.snap .plot-sm { display: none; max-width: 26rem; }
.snap text { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.snap .val { fill: var(--ink); font-weight: 600; }
.snap .bar { fill: var(--flag); }
.snap .bar-o { fill: var(--ink-2); }
.snap .base { stroke: var(--ink); stroke-width: 1.5; }
.snap figcaption { margin-top: 0.7rem; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); max-width: var(--measure); }

/* in a narrow chart the phone-sized drawing takes over, so labels stay at 11.5 px or more */
@container (max-width: 600px) {
  .snap .plot-lg { display: none; }
  .snap .plot-sm { display: block; }
  .snap text { font-size: 14px; }
}

.tablewrap { max-height: 32rem; overflow: auto; border: 1.5px solid var(--ink); background: var(--card); margin-top: 1.2rem; max-width: 46rem; }
.tablewrap table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.tablewrap caption { text-align: left; padding: 0.6rem 0.8rem; color: var(--ink-2); font-size: 0.78rem; line-height: 1.45; }
.tablewrap th, .tablewrap td { padding: 0.4rem 0.6rem; text-align: right; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tablewrap thead th { position: sticky; top: 0; background: var(--card); font-weight: 600; white-space: nowrap; }
.tablewrap th[scope="row"], .tablewrap td:nth-child(2) { text-align: left; font-weight: 400; }
.tablewrap .names th[scope="row"] { min-width: 16ch; }
.tablewrap td:nth-child(2) { white-space: nowrap; }
.tablewrap thead th:first-child, .tablewrap thead th:nth-child(2) { text-align: left; }
.tablewrap tbody tr:nth-child(even) { background: var(--paper); }

.checks, .plain { margin: 0 0 1rem; padding-left: 1.1rem; max-width: var(--measure); }
.checks li, .plain li { margin-bottom: 0.5rem; }
.checks li::marker, .plain li::marker { color: var(--flag-ink); }

/* Windows contrast themes leave SVG paint alone, so the charts take system colors */
@media (forced-colors: active) {
  .snap text, .snap .val { fill: CanvasText; }
  .snap .bar { fill: Highlight; }
  .snap .bar-o { fill: CanvasText; }
  .snap .base { stroke: CanvasText; }
}

@media print {
  .tablewrap { max-height: none; overflow: visible; }
  .tablewrap thead th { position: static; }
}

/* each table's caption shows above its scroll box (a caption inside would scroll out of view on a phone);
   the full caption stays on the table for screen readers */
.tcap { margin: 1.2rem 0 0; max-width: var(--measure); font-family: var(--mono); font-size: 0.78rem; line-height: 1.45; color: var(--ink-2); }
.tcap + .tablewrap { margin-top: 0.5rem; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tablewrap:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
