/* Coding Practice Lab — restrained academic design.
   Keep this small: typography, tags, and callout polish only. */

:root {
  --cpl-accent: #1e293b;      /* dark slate, matches the author's site favicon */
  --cpl-accent-soft: #eef2f7;
  --cpl-tag-py: #3572A5;      /* GitHub's Python color */
  --cpl-tag-r: #198CE7;       /* R blue */
  --cpl-tag-neutral: #64748b;
}

body {
  font-size: 1.02rem;
  line-height: 1.65;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
}

/* Language / topic / status tags used across index and dashboard */
.cpl-tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  margin: 0 0.25rem 0.25rem 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--cpl-tag-neutral);
  white-space: nowrap;
}
.cpl-tag.lang-python { background: var(--cpl-tag-py); }
.cpl-tag.lang-r      { background: var(--cpl-tag-r); }
.cpl-tag.status-new      { background: #0d9488; }
.cpl-tag.status-learning { background: #b45309; }
.cpl-tag.status-review   { background: #7c3aed; }
.cpl-tag.status-mastered { background: #15803d; }
.cpl-tag.difficulty      { background: #475569; }

/* Dashboard stat tiles */
.cpl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem 0;
}
.cpl-stat {
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--cpl-accent);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  background: var(--cpl-accent-soft);
}
.cpl-stat .num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cpl-accent);
  line-height: 1.1;
}
.cpl-stat .label {
  font-size: 0.8rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Practice table */
table.cpl-table {
  width: 100%;
  font-size: 0.92rem;
}
table.cpl-table td { vertical-align: top; }

/* Filter controls */
.cpl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cpl-filters select, .cpl-filters button {
  padding: 0.3rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
}
.cpl-filters button {
  background: var(--cpl-accent);
  color: #fff;
  border-color: var(--cpl-accent);
  cursor: pointer;
}

/* Make hint/solution callouts visually distinct from informational ones */
.callout.callout-style-default > .callout-header {
  font-weight: 600;
}

/* Due badge in review queue */
.cpl-due { color: #b91c1c; font-weight: 700; }
.cpl-ok  { color: #15803d; }

/* Demo-data notice + workflow panels (final revision) */
.cpl-demo-note { background: #fef9c3; border: 1px solid #fde047; border-radius: 6px; padding: 0.5rem 0.8rem; }
.cpl-hero { text-align: center; margin: 1.2rem 0 2rem; }
.cpl-hero h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.cpl-hero .buttons { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.cpl-hero .buttons a { background: var(--cpl-accent); color: #fff; padding: 0.5rem 1rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.cpl-hero .buttons a.secondary { background: #fff; color: var(--cpl-accent); border: 1px solid var(--cpl-accent); }
.cpl-workflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; margin: 1.2rem 0 1.6rem; }
.cpl-stage { border: 1px solid #e2e8f0; border-top: 4px solid var(--cpl-accent); border-radius: 8px; padding: 0.8rem 1rem; background: #fff; }
.cpl-stage .stage-n { color: var(--cpl-tag-neutral); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cpl-stage h3 { margin: 0.2rem 0 0.4rem; }
.cpl-codespaces { display: inline-block; background: #1e293b; color: #fff !important; padding: 0.35rem 0.8rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
