/* Citation pages (scripts/generate-citation-pages.mjs) — the few pieces the
 * blog's own styles don't carry: data tables, the disclosure line, the sources
 * list. Every token has a fallback so the file stands on its own. */

.cp .scorecard-wrap { margin: 22px 0 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule, #e1e8f0); border-radius: 14px; }
.cp .scorecard { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp .scorecard thead th { background: var(--bg-1, #fafbfc); border-bottom: 1px solid var(--rule, #e1e8f0); text-align: left; padding: 13px 16px; font-family: var(--display, "Inter", system-ui, sans-serif); font-weight: 700; font-size: 13px; letter-spacing: -0.01em; color: var(--ink, #0a2245); }
.cp .scorecard tbody th { text-align: left; padding: 13px 16px; font-weight: 600; color: var(--ink, #0a2245); border-bottom: 1px solid var(--rule, #e1e8f0); border-right: 1px solid var(--rule, #e1e8f0); background: var(--bg-1, #fafbfc); vertical-align: top; min-width: 140px; }
.cp .scorecard tbody td { padding: 13px 16px; color: var(--ink-2, #2d4663); border-bottom: 1px solid var(--rule, #e1e8f0); vertical-align: top; line-height: 1.5; }
.cp .scorecard tbody tr:last-child th,
.cp .scorecard tbody tr:last-child td { border-bottom: 0; }
/* Links in a cell sit inside a block of text, so colour alone can't carry them
 * (WCAG 1.4.1). border-bottom is the site's underline convention, but it would
 * double against the cell rules — use a real underline instead. */
.cp .scorecard a { border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cp .scorecard a:hover, .cp .scorecard a:focus-visible { text-decoration-thickness: 2px; }

/* Phones: one card per row, label beside each value — no sideways scrolling */
@media (max-width: 640px) {
  .cp .scorecard-wrap { overflow-x: visible; border: 0; border-radius: 0; }
  .cp .scorecard { font-size: 15px; }
  .cp .scorecard thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cp .scorecard, .cp .scorecard tbody, .cp .scorecard tr, .cp .scorecard th, .cp .scorecard td { display: block; width: auto; }
  .cp .scorecard tbody tr { border: 1px solid var(--rule, #e1e8f0); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
  .cp .scorecard tbody tr:last-child { margin-bottom: 0; }
  .cp .scorecard tbody th { background: transparent; border: 0; border-bottom: 1px solid var(--rule, #e1e8f0); padding: 0 0 10px; margin-bottom: 10px; font-size: 17px; }
  .cp .scorecard tbody td { border: 0 !important; padding: 6px 0; overflow-wrap: anywhere; }
  .cp .scorecard tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--mono, ui-monospace, monospace); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim, #5a7290); }
}

.cp .cp-disclosure { font-size: 16px; line-height: 1.6; color: var(--ink-2, #2d4663); background: var(--bg-2, #f5f8fb); border: 1px solid var(--rule, #e1e8f0); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; }

.cp .prose ol.sources { font-size: 14px; color: var(--ink-2, #2d4663); gap: 6px; }
.cp .prose ol.sources a { font-weight: 500; overflow-wrap: anywhere; }

.cp .prose code { overflow-wrap: anywhere; }
