/* WebDev contrast 2026-11-21 — 12krokow.com.pl / dobradroga.org
 *
 * Root cause: several components keep a light surface (background:#fff
 * or #eef7fc) in both themes, while dark-theme text tokens and the
 * global rules
 *   html[data-theme="dark"] p, li { color:#c2cde2 }
 *   html[data-theme="dark"] h1–h5 { color:#f2f5fc }
 *   html[data-theme="dark"] b, strong { color:#eef2fa }
 *   --ink / --gray flipping to near-white
 * have higher specificity (or change the variables) than the component
 * colours. Copy becomes light grey/lavender on white (~1.1–1.6:1).
 *
 * This file is linked from every page and only restyles those light
 * surfaces. Already-themed dark cards (news-card, post-card, card-g,
 * faq-item, table-wrap, …) are left alone.
 */

/* Token reset on light surfaces, both themes. --blue is darkened so
   links on white meet WCAG AA (#179FDD on #fff is only 2.98:1). */
.step,
.for-card,
.media-card,
.team-stats div,
.content table {
  --ink: #111111;
  --ink-2: #111111;
  --ink-3: #1a1f2c;
  --gray: #333333;
  --gray-light: #39414f;
  --blue: #0a628a;
  --blue-dark: #0a5474;
}

/* Step cards and "dla kogo" cards on /program-dwunastu-krokow/ */
.step,
.step p,
.step li,
.for-card,
.for-card p,
.for-card li {
  color: #111111;
}

/* Media / article cards on the same page */
.media-card,
.media-card p,
.media-card li,
.media-card h2,
.media-card h3,
.media-card h4,
.media-card .src {
  color: #111111;
}

.media-card .go,
.media-card .sub a,
.media-card a:not(.badge) {
  color: #0a628a;
}

/* Stat chips on /nasz-zespol/. Surface stays #eef7fc; original number
   colour #1A9EDD is only 2.77:1 on that chip even in the light theme. */
.team-stats div,
.team-stats span {
  color: #111111;
}

.team-stats b,
.team-stats strong {
  color: #0a628a;
}

/* Bare .content tables (a lone email cell etc.). .table-wrap is already
   remapped in the dark theme and is restored below. */
.content table,
.content table th,
.content table td {
  color: #111111;
}

.content table a {
  color: #0a628a;
}

/* Dark theme: beat html[data-theme="dark"] p / li / h* / b without
   using !important. */
html[data-theme="dark"] .step,
html[data-theme="dark"] .step p,
html[data-theme="dark"] .step li,
html[data-theme="dark"] .for-card,
html[data-theme="dark"] .for-card p,
html[data-theme="dark"] .for-card li,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .media-card p,
html[data-theme="dark"] .media-card li,
html[data-theme="dark"] .media-card h2,
html[data-theme="dark"] .media-card h3,
html[data-theme="dark"] .media-card h4,
html[data-theme="dark"] .media-card .src,
html[data-theme="dark"] .team-stats div,
html[data-theme="dark"] .team-stats span,
html[data-theme="dark"] .content table,
html[data-theme="dark"] .content table th,
html[data-theme="dark"] .content table td {
  color: #111111;
}

html[data-theme="dark"] .media-card .go,
html[data-theme="dark"] .media-card .sub a,
html[data-theme="dark"] .media-card a:not(.badge),
html[data-theme="dark"] .content table a {
  color: #0a628a;
}

html[data-theme="dark"] .team-stats b,
html[data-theme="dark"] .team-stats strong {
  color: #0a628a;
}

/* Restore already-themed tables (dark surface + light text).
   Specificity is higher than the .content table rules above. */
html[data-theme="dark"] .table-wrap table,
html[data-theme="dark"] .table-wrap table td {
  color: #c2cde2;
}

html[data-theme="dark"] .table-wrap table th {
  color: #eef2fa;
  background: #0c1a32;
}

html[data-theme="dark"] .table-wrap table a {
  color: #7cc0f0;
}

html[data-theme="dark"] .table-wrap table a:hover {
  color: #a5d6f5;
}
