/* ==========================================================================
 COSYlanguages · English Grammar Manual Level B1 (interactive web edition)
 Cozy, friendly design system for teens and adults.
 ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,600;0,700;0,800;0,900;1,600&family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --teal-900: var(--accent-900, #0c3f38);
  --teal-800: var(--accent-800, #0f5c50);
  --teal-700: var(--accent-700, #157c6c);
  --teal-600: var(--accent-600, #1c9483);
  --teal-500: var(--accent-500, #25a894);
  --teal-100: var(--accent-100, #e4f4f0);
  --teal-050: var(--accent-050, #f2faf8);

  --ink: #132321;
  --ink-soft: #3c5450;
  --paper: #faf8f3;
  --panel: #ffffff;
  --line: #e6e2d8;

  --role-subject: #3562e0;
  --role-verb: #1c8f56;
  --role-noun: #c9740a;
  --role-adj: #7c4fd6;

  --why-bg: #fdf3d6;
  --why-line: #c99a1f;
  --why-ink: #7a5b0c;

  --native-bg: #f1e9fb;
  --native-line: #8b5cf6;
  --native-ink: #5b3aa8;

  --mistake-bg: #fdf0f0;
  --mistake-line: #e55353;
  --mistake-ink: #9c1c1c;

  --mint-bg: #eaf6f1;
  --mint-line: #1c9483;
  --mint-ink: #0f5c50;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-card: 0 2px 4px rgba(19,35,33,.03), 0 10px 28px -8px rgba(19,35,33,.12);
  --shadow-hover: 0 4px 8px rgba(19,35,33,.05), 0 16px 36px -8px rgba(19,35,33,.20);

  --font-display: 'Nunito', 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-700); transition: color .15s ease; }
a:hover { color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: var(--teal-900);
  color: #eafaf5; border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #eafaf5; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--panel, #fff);
  color: var(--teal-900); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 16px;
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.brand-name em { font-style: italic; font-weight: 600; opacity: .88; }

.topbar-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar-nav a {
  color: #cdece4; text-decoration: none; font-size: 12px; font-weight: 700;
  padding: 4px 8px; border-radius: 99px; transition: all .15s ease;
  white-space: nowrap;
}
.topbar-nav a:hover, .topbar-nav a.active { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- page header ---------- */
.page-head { padding: 36px 0 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-100); padding: 6px 14px; border-radius: 99px; margin-bottom: 14px;
}
.page-head h1 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 8px; color: var(--ink); letter-spacing: -.01em; line-height: 1.2;
}
.page-head .subtitle { font-style: italic; color: var(--ink-soft); font-size: 18px; margin: 0; }
.rule { border: none; border-top: 2px solid var(--ink); margin: 20px 0 0; opacity: .85; }

.badge-reg {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 800;
  font-family: var(--font-mono); margin-right: 6px; text-transform: uppercase;
}
.badge-reg.uk { background: #e0e8ff; color: #1e3f9e; }
.badge-reg.us { background: #ffe0e0; color: #9b1c1c; }
.badge-reg.ca { background: #e0f7ff; color: #005f80; }
.badge-reg.au { background: #fff3e0; color: #8a4d18; }

/* ---------- callout boxes ---------- */
.box { border-radius: var(--radius-m); padding: 20px 22px; margin: 22px 0; border: 1px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,.02); }
.box h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.box p { margin: 0; font-size: 15.5px; }

.box.why { background: var(--why-bg); border-color: #eddca0; color: var(--why-ink); }
.box.why h3 { color: var(--why-ink); }

.box.native { background: var(--native-bg); border-color: #e2d4fb; color: var(--native-ink); }
.box.native h3 { color: var(--native-ink); }

.box.mint { background: var(--mint-bg); border-color: #c9e9de; color: var(--mint-ink); }
.box.mint h3 { color: var(--mint-ink); }

.box.rule-box { background: var(--teal-050); border: 1px solid var(--teal-100); border-left: 4px solid var(--teal-600); }
.box.rule-box strong { color: var(--teal-800); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius-m); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 15px; }
thead th {
  background: var(--ink); color: #fff; text-align: left; padding: 12px 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:nth-child(even) { background: var(--teal-050); }

/* ---------- mistakes: click to reveal ---------- */
.mistakes { margin: 24px 0; }
.mistakes .m-title {
  font-family: var(--font-display); font-weight: 800; font-size: 15.5px; color: var(--mistake-ink);
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.mflip {
  background: var(--mistake-bg); border: 1px solid #f4c6c6; border-radius: var(--radius-m);
  padding: 14px 18px; margin-bottom: 12px; cursor: pointer; user-select: none; position: relative;
  transition: background .15s, transform .15s; box-shadow: var(--shadow-card);
}
.mflip:hover { background: #fbe0e0; transform: translateY(-1px); }
.mflip .wrong-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.mflip .wrong-line .x { color: var(--mistake-line); font-weight: 800; }
.mflip .wrong-text { text-decoration: line-through; color: #8a3b3b; }
.mflip .right-line { display: none; gap: 10px; align-items: flex-start; font-size: 15.5px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #f0b8b8; }
.mflip .right-line .c { color: #1c8f56; font-weight: 800; }
.mflip.flipped .right-line { display: flex; }
.mflip .hint { font-family: var(--font-mono); font-size: 11px; color: #9a4545; margin-top: 4px; display: block; }
.mflip.flipped .hint { display: none; }

/* ---------- examples list ---------- */
.examples { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 22px; margin: 24px 0; box-shadow: var(--shadow-card); }
.examples .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-700); font-weight: 700; display: block; margin-bottom: 10px; }
.examples ul { margin: 0; padding-left: 20px; }
.examples li { margin-bottom: 8px; font-size: 15.5px; }
.examples li:last-child { margin-bottom: 0; }

/* ---------- checklist ---------- */
.checklist { background: var(--mint-bg); border: 1px solid #b8e2d4; border-radius: var(--radius-m); padding: 20px 22px; margin: 28px 0; }
.checklist h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 15.5px; color: var(--mint-ink); font-weight: 800; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15.5px; cursor: pointer; border-bottom: 1px solid rgba(28,148,131,.14); }
.check-item:last-child { border-bottom: none; }
.check-item input { width: 20px; height: 20px; accent-color: var(--teal-700); cursor: pointer; }
.check-item.done span { text-decoration: line-through; color: var(--ink-soft); opacity: .8; }
.check-progress { font-family: var(--font-mono); font-size: 12px; color: var(--mint-ink); font-weight: 600; margin-top: 12px; }

/* ---------- ccq panel (stage 2) ---------- */
.ccq-panel {
  background: rgba(235, 243, 250, 0.7);
  border: 1px solid rgba(42, 111, 151, 0.25);
  border-left: 4px solid var(--teal-600);
  border-radius: var(--radius-m);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}
.ccq-panel .quiz-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--teal-900);
}

/* ---------- quiz ---------- */
.quiz-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; margin: 36px 0; box-shadow: var(--shadow-card);
}
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.quiz-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 0; }
.quiz-score { font-family: var(--font-mono); font-size: 13.5px; background: var(--teal-100); color: var(--teal-800); padding: 6px 14px; border-radius: 99px; font-weight: 700; }
.qitem { border-top: 1px solid var(--line); padding: 20px 0; }
.qitem:first-of-type { border-top: none; padding-top: 14px; }
.qitem .qtext { font-family: var(--font-display); font-weight: 800; font-size: 16.5px; margin-bottom: 14px; }
.qopts { display: flex; flex-direction: column; gap: 10px; }
.qopt {
  text-align: left; border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--radius-s);
  padding: 12px 16px; font-size: 15.5px; cursor: pointer; font-family: var(--font-body); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.qopt:hover { border-color: var(--teal-500); }
.qopt.correct { border-color: #1c8f56; background: #e6f6ec; font-weight: 700; }
.qopt.incorrect { border-color: var(--mistake-line); background: var(--mistake-bg); }
.qopt[disabled] { cursor: default; }
.qexplain { display: none; margin-top: 12px; font-size: 14.5px; background: var(--teal-050); border-left: 4px solid var(--teal-600); padding: 12px 16px; border-radius: 8px; }
.qexplain.show { display: block; }
.quiz-reset { margin-top: 18px; background: none; border: 1.5px solid var(--ink); color: var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 9px 18px; border-radius: 99px; cursor: pointer; transition: background .15s, color .15s; }
.quiz-reset:hover { background: var(--ink); color: #fff; }

/* ---------- pager / footer nav ---------- */
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 44px 0 12px; flex-wrap: wrap; }
.pager a {
  flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 20px;
  text-decoration: none; color: var(--ink); background: var(--panel); box-shadow: var(--shadow-card);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pager a:hover { transform: translateY(-2px); border-color: var(--teal-600); box-shadow: var(--shadow-hover); }
.pager a .dir { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--teal-700); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.pager a .ttl { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16.5px; margin-top: 4px; }
.pager a.next { text-align: right; }

footer.site { background: var(--ink); color: #c9d8d4; padding: 36px 0; margin-top: 64px; font-size: 14px; }
footer.site a { color: #eafaf5; }
footer.site .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- home page ---------- */
.hero { background: var(--teal-900); color: #eafaf5; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero-kicker { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #8fd6c4; font-weight: 600; }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 6vw, 54px); margin: 14px 0 12px; letter-spacing: -.01em; line-height: 1.18; }
.hero p.lead { max-width: 580px; color: #cdeee5; font-size: 18px; line-height: 1.6; }

.parts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 32px 0 12px; }
.part-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--panel); border-radius: var(--radius-l);
  padding: 24px 24px 22px; border: 1px solid var(--line); box-shadow: var(--shadow-card); position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.part-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--teal-600); }
.part-card .pnum { font-family: var(--font-mono); font-size: 12px; color: var(--teal-700); font-weight: 700; }
.part-card h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 6px 0 8px; }
.part-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }
.part-card .topics-count { font-family: var(--font-mono); font-size: 12px; color: var(--teal-700); background: var(--teal-100); padding: 4px 12px; border-radius: 99px; font-weight: 700; }
.part-card .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }

/* ---------- topic list map ---------- */
.topic-list-page { padding-bottom: 40px; }
.map-group { margin-bottom: 32px; }
.glabel { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-700); font-weight: 800; margin-bottom: 12px; display: block; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.topic-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--panel); border-radius: var(--radius-m);
  padding: 18px 20px; border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.topic-card:hover { transform: translateY(-2px); border-color: var(--teal-600); box-shadow: var(--shadow-hover); }
.topic-card .tnum { font-family: var(--font-mono); font-size: 11px; color: var(--teal-700); font-weight: 700; text-transform: uppercase; }
.topic-card .ttl { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 4px 0 4px; }
.topic-card .sub { font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 640px) {
  .topbar-nav { display: none; }
  .hero { padding: 44px 0 40px; }
}


/* ---------- Visual Components: Scale / Gradient ---------- */
.scale-wrap {
  margin: 26px 0;
  overflow-x: auto;
  padding-bottom: 8px;
}
.scale-bar {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-100, #e4f4f0), var(--teal-600, #1c9483));
  position: relative;
  margin: 26px 14px 52px;
  min-width: 280px;
}
.scale-pt {
  position: absolute;
  top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink, #132321);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line, #e6e2d8);
  transform: translateX(-50%);
}
.scale-lbl {
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink, #132321);
}
.scale-lbl small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft, #3c5450);
  font-size: 10.5px;
}

/* ---------- Visual Components: Branching / Decision Tree ---------- */
.tree {
  margin: 26px 0;
}
.tree-q {
  background: var(--ink, #132321);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  text-align: center;
  padding: 9px 16px;
  border-radius: 99px;
  max-width: 360px;
  margin: 0 auto 4px;
}
.tree-branches {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  position: relative;
}
.tree-branches::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line, #e6e2d8);
}
.branch {
  flex: 1;
  min-width: 120px;
  max-width: 220px;
  text-align: center;
}
.branch .lbl {
  font-size: 11px;
  color: var(--ink-soft, #3c5450);
  margin-bottom: 6px;
  min-height: 14px;
}
.branch .box2 {
  background: var(--teal-700, #157c6c);
  border-radius: var(--radius-s, 10px);
  padding: 10px 8px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.branch .ex {
  font-size: 11.5px;
  color: var(--ink-soft, #3c5450);
  margin-top: 6px;
  font-family: var(--font-mono, monospace);
}

/* ---------- Visual Components: Circular / Cycle Diagram ---------- */
.cycle-wrap {
  margin: 26px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: 12px;
}
.cycle-step {
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e6e2d8);
  border-radius: var(--radius-s, 10px);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow-card, 0 2px 4px rgba(0,0,0,0.05));
  position: relative;
}
.cycle-step .num {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  background: var(--teal-600, #1c9483);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cycle-step .title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink, #132321);
}
.cycle-step .sub {
  font-size: 11px;
  color: var(--ink-soft, #3c5450);
  margin-top: 2px;
}

/* ---------- Visual Components: Vertical Stack / Building Blocks ---------- */
.stack-wrap {
  margin: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.stack-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-s, 10px);
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e6e2d8);
  box-shadow: var(--shadow-card, 0 2px 4px rgba(0,0,0,0.05));
}
.stack-block .label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink, #132321);
}
.stack-block .value {
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  color: var(--teal-700, #157c6c);
}




/* Dark theme: the palette above is light-only, so the same role
   tokens are re-derived over a dark base when the OS prefers dark
   or an explicit theme is set. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --teal-100: color-mix(in srgb, #e4f4f0 14%, #151a16);
  --teal-050: color-mix(in srgb, #f2faf8 14%, #151a16);
  --ink: #e8f0e9;
  --ink-soft: #c8d8c9;
  --paper: #151a16;
  --panel: #1e241f;
  --line: color-mix(in srgb, #e6e2d8 42%, #151a16);
  --why-bg: color-mix(in srgb, #fdf3d6 16%, #151a16);
  --why-line: color-mix(in srgb, #c99a1f 42%, #151a16);
  --why-ink: color-mix(in srgb, #7a5b0c 45%, #ffffff);
  --native-bg: color-mix(in srgb, #f1e9fb 16%, #151a16);
  --native-line: color-mix(in srgb, #8b5cf6 42%, #151a16);
  --native-ink: color-mix(in srgb, #5b3aa8 45%, #ffffff);
  --mistake-bg: color-mix(in srgb, #fdf0f0 16%, #151a16);
  --mistake-line: color-mix(in srgb, #e55353 42%, #151a16);
  --mistake-ink: color-mix(in srgb, #9c1c1c 45%, #ffffff);
  --mint-bg: color-mix(in srgb, #eaf6f1 16%, #151a16);
  --mint-line: color-mix(in srgb, #1c9483 42%, #151a16);
  --mint-ink: color-mix(in srgb, #0f5c50 45%, #ffffff);
  /* table headers paint --ink as a fill, which turns light in dark mode */
  --thead-fill: color-mix(in srgb, var(--ink) 16%, #151a16);
  }
  :root:not([data-theme="light"]) thead th {
    background: var(--thead-fill) !important; color: var(--ink) !important;
  }
}
html[data-theme="dark"], body.theme-dark {
  --teal-100: color-mix(in srgb, #e4f4f0 14%, #151a16);
  --teal-050: color-mix(in srgb, #f2faf8 14%, #151a16);
  --ink: #e8f0e9;
  --ink-soft: #c8d8c9;
  --paper: #151a16;
  --panel: #1e241f;
  --line: color-mix(in srgb, #e6e2d8 42%, #151a16);
  --why-bg: color-mix(in srgb, #fdf3d6 16%, #151a16);
  --why-line: color-mix(in srgb, #c99a1f 42%, #151a16);
  --why-ink: color-mix(in srgb, #7a5b0c 45%, #ffffff);
  --native-bg: color-mix(in srgb, #f1e9fb 16%, #151a16);
  --native-line: color-mix(in srgb, #8b5cf6 42%, #151a16);
  --native-ink: color-mix(in srgb, #5b3aa8 45%, #ffffff);
  --mistake-bg: color-mix(in srgb, #fdf0f0 16%, #151a16);
  --mistake-line: color-mix(in srgb, #e55353 42%, #151a16);
  --mistake-ink: color-mix(in srgb, #9c1c1c 45%, #ffffff);
  --mint-bg: color-mix(in srgb, #eaf6f1 16%, #151a16);
  --mint-line: color-mix(in srgb, #1c9483 42%, #151a16);
  --mint-ink: color-mix(in srgb, #0f5c50 45%, #ffffff);
  /* table headers paint --ink as a fill, which turns light in dark mode */
  --thead-fill: color-mix(in srgb, var(--ink) 16%, #151a16);
}
html[data-theme="dark"] thead th, body.theme-dark thead th {
  background: var(--thead-fill) !important; color: var(--ink) !important;
}
