/* The public card lists (/card-lists), printed by lib/card-lists.js outside
   React. The app stylesheet loads first and carries the face and the colour
   tokens; this file lays the page out with its own class names, because
   Tailwind only writes the classes it finds in client/src and these pages are
   not in client/src. A real file, not a <style> block: the CSP refuses an
   inline stylesheet. */
.cl-page {
  min-height: 100svh;
  background: var(--paper, #FAF9F5);
  color: var(--ink, #2C2A26);
  font-family: var(--font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 16px;
  line-height: 1.55;
}
.cl-wrap { max-width: 72rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .cl-wrap { padding-left: 32px; padding-right: 32px; } }
.cl-skip { position: absolute; left: -9999px; top: 8px; }
.cl-skip:focus { left: 16px; z-index: 100; background: var(--ink, #2C2A26); color: #fff; padding: 8px 16px; border-radius: 8px; }

.cl-header { border-bottom: 1px solid var(--border, #E5E2DA); background: var(--paper, #FAF9F5); }
.cl-header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.cl-brand { font-size: 18px; font-weight: 700; color: var(--ink, #2C2A26); text-decoration: none; white-space: nowrap; }
.cl-nav { display: flex; align-items: center; gap: 4px; }
.cl-nav a { font-size: 14px; color: var(--muted-foreground, #5E5A52); text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.cl-nav a:hover { color: var(--ink, #2C2A26); }
.cl-nav a.cl-nav-cta { background: var(--ink, #2C2A26); color: #fff; font-weight: 600; margin-left: 4px; }
@media (max-width: 480px) { .cl-nav a:not(.cl-nav-cta) { display: none; } }

.cl-main { padding-top: 32px; padding-bottom: 64px; }
.cl-crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted-foreground, #5E5A52); }
.cl-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border, #C9C5BB); }
.cl-crumbs a { color: var(--muted-foreground, #5E5A52); text-decoration: underline; text-underline-offset: 3px; }
.cl-crumbs a:hover { color: var(--ink, #2C2A26); }

.cl-h1 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) { .cl-h1 { font-size: 36px; line-height: 42px; } }
.cl-h2 { font-size: 18px; line-height: 24px; font-weight: 650; margin: 32px 0 12px; }
.cl-lead { margin: 12px 0 0; max-width: 44rem; color: var(--muted-foreground, #5E5A52); }

.cl-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0 0; padding: 0; }
.cl-facts div { display: flex; flex-direction: column; }
.cl-facts dt { font-size: 13px; color: var(--muted-foreground, #5E5A52); }
.cl-facts dd { margin: 0; font-size: 22px; line-height: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }

.cl-rarities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.cl-stat-label { color: var(--muted-foreground, #5E5A52); }
.cl-stat-value { font-weight: 650; font-variant-numeric: tabular-nums; }

.cl-table-box { overflow-x: auto; border: 1px solid var(--border, #E5E2DA); border-radius: 12px; background: var(--card, #FAF9F5); max-width: 100%; }
.cl-table-box:focus-visible { outline: 2px solid var(--pine, #2B5BD7); outline-offset: 2px; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.cl-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted-foreground, #5E5A52); background: var(--secondary, #F2F0EA); padding: 10px 12px; white-space: nowrap; position: sticky; top: 0; }
.cl-table td { padding: 9px 12px; border-top: 1px solid var(--border, #E5E2DA); vertical-align: top; }
.cl-table td.cl-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-table tbody tr:hover td { background: var(--secondary, #F2F0EA); }
.cl-table a { color: var(--ink, #2C2A26); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cl-table a:hover { color: var(--pine, #2B5BD7); }

.cl-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 14px; }
.cl-pager a, .cl-more a { color: var(--ink, #2C2A26); text-decoration: underline; text-underline-offset: 3px; }
.cl-pager a:hover, .cl-more a:hover { color: var(--pine, #2B5BD7); }
.cl-more { margin-top: 16px; font-size: 14px; color: var(--muted-foreground, #5E5A52); }

.cl-cta { margin-top: 40px; padding: 24px; border: 1px solid var(--border, #E5E2DA); border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cl-cta p { margin: 0; max-width: 40rem; }
.cl-button { display: inline-block; background: var(--pine, #2B5BD7); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.cl-button:hover { filter: brightness(1.08); }

.cl-footer { border-top: 1px solid var(--border, #E5E2DA); padding: 24px 0 40px; }
.cl-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.cl-footer-links a { color: var(--muted-foreground, #5E5A52); text-decoration: none; }
.cl-footer-links a:hover { color: var(--ink, #2C2A26); text-decoration: underline; }
.cl-small { margin: 16px 0 0; font-size: 13px; color: var(--muted-foreground, #5E5A52); }
.cl-facts + .cl-table-box, .cl-lead + .cl-table-box { margin-top: 24px; }
