﻿/* ─────────────────────────────────────────────────────────────────────────
   home_new.css — Crowies Portal new design system
   Covers: navbar (cp-nav) + home dashboard (.home-dashboard)
   Brand:  body.brand-paints / body.brand-coatings
   Theme:  body.theme-light  / body.theme-dark
   ──────────────────────────────────────────────────────────────────────── */

/* ═════════════════════════════════════════════════════════════════════════
   Bootstrap replacement — all 69 classes used in this codebase
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ── Grid ──────────────────────────────────────────────────────────────── */
.container       { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.container-fluid { width: 100%; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class*="col-"] { padding: 0 15px; width: 100%; }

.col-xs-1  { width: 8.333%; }  .col-xs-2  { width: 16.667%; }
.col-xs-3  { width: 25%; }     .col-xs-4  { width: 33.333%; }
.col-xs-5  { width: 41.667%; } .col-xs-6  { width: 50%; }
.col-xs-7  { width: 58.333%; } .col-xs-8  { width: 66.667%; }
.col-xs-9  { width: 75%; }     .col-xs-10 { width: 83.333%; }
.col-xs-11 { width: 91.667%; } .col-xs-12 { width: 100%; }

@media (min-width: 768px) {
  .col-sm    { flex: 1; }
  .col-sm-1  { width: 8.333%; }  .col-sm-2  { width: 16.667%; }
  .col-sm-3  { width: 25%; }     .col-sm-4  { width: 33.333%; }
  .col-sm-5  { width: 41.667%; } .col-sm-6  { width: 50%; }
  .col-sm-7  { width: 58.333%; } .col-sm-8  { width: 66.667%; }
  .col-sm-9  { width: 75%; }     .col-sm-10 { width: 83.333%; }
  .col-sm-11 { width: 91.667%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-md-1  { width: 8.333%; }  .col-md-2  { width: 16.667%; }
  .col-md-3  { width: 25%; }     .col-md-4  { width: 33.333%; }
  .col-md-5  { width: 41.667%; } .col-md-6  { width: 50%; }
  .col-md-7  { width: 58.333%; } .col-md-8  { width: 66.667%; }
  .col-md-9  { width: 75%; }     .col-md-10 { width: 83.333%; }
  .col-md-11 { width: 91.667%; } .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
  .col-lg-1  { width: 8.333%; }  .col-lg-2  { width: 16.667%; }
  .col-lg-3  { width: 25%; }     .col-lg-4  { width: 33.333%; }
  .col-lg-5  { width: 41.667%; } .col-lg-6  { width: 50%; }
  .col-lg-7  { width: 58.333%; } .col-lg-8  { width: 66.667%; }
  .col-lg-9  { width: 75%; }     .col-lg-10 { width: 83.333%; }
  .col-lg-11 { width: 91.667%; } .col-lg-12 { width: 100%; }
}

/* ── Tables ────────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.table th, .table td { padding: 10px 8px; border-top: 1px solid #ddd; vertical-align: top; text-align: left; }
.table thead th { vertical-align: bottom; border-bottom: 2px solid #ddd; background-color: #f5f5f5; }
.table-sm th, .table-sm td,
.table-condensed th, .table-condensed td { padding: 6px 8px; }
.table-bordered, .table-bordered th, .table-bordered td { border: 1px solid #ddd; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9f9f9; }
.table-hover > tbody > tr:hover { background-color: #f5f5f5; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
/* Global baseline — bare inputs without form-control get consistent sizing */
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
select, textarea {
  padding: 6px 12px; font-size: 14px; font-family: inherit; line-height: 1.43;
  color: #555; background-color: #fff; border: 1px solid #ccc; border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box;
}
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):focus,
select:focus, textarea:focus { border-color: #66afe9; outline: 0; box-shadow: 0 0 0 3px rgba(102,175,233,.3); }

.form-group { margin-bottom: 15px; }
.form-control {
  display: block; width: 100%; padding: 6px 12px;
  font-size: 14px; font-family: inherit; line-height: 1.43;
  color: #555; background-color: #fff;
  border: 1px solid #ccc; border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { border-color: #66afe9; outline: 0; box-shadow: 0 0 0 3px rgba(102,175,233,.3); }
/* form-control-lg was a no-op in Bootstrap 3 — keep same size as base */
.form-control-lg { padding: 6px 12px; font-size: 14px; }
.form-control-sm { padding: 3px 8px; font-size: 12px; border-radius: 3px; }
.form-control-label, .control-label { display: block; font-weight: 700; margin-bottom: 5px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 6px 12px; font-size: 14px; font-family: inherit;
  font-weight: 400; line-height: 1.43; text-align: center; white-space: nowrap;
  vertical-align: middle; cursor: pointer; border: 1px solid transparent;
  border-radius: 4px; text-decoration: none; user-select: none;
  background: none; transition: all 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-sm  { padding: 5px 10px;  font-size: 12px; border-radius: 3px; }
.btn-xs  { padding: 1px 5px;   font-size: 12px; border-radius: 3px; }
.btn-block { display: block; width: 100%; }
.btn-default        { color: #333; background-color: #fff;     border-color: #ccc; }
.btn-default:hover  { background-color: #e6e6e6; border-color: #adadad; }
.btn-primary        { color: #fff; background-color: #337ab7;  border-color: #2e6da4; }
.btn-primary:hover  { background-color: #286090; border-color: #204d74; }
.btn-success        { color: #fff; background-color: #5cb85c;  border-color: #4cae4c; }
.btn-success:hover  { background-color: #449d44; border-color: #398439; }
.btn-danger         { color: #fff; background-color: #d9534f;  border-color: #d43f3a; }
.btn-danger:hover   { background-color: #c9302c; border-color: #ac2925; }
.btn-warning        { color: #fff; background-color: #f0ad4e;  border-color: #eea236; }
.btn-warning:hover  { background-color: #ec971f; border-color: #d58512; }
.btn-info           { color: #fff; background-color: #5bc0de;  border-color: #46b8da; }
.btn-info:hover     { background-color: #31b0d5; border-color: #269abc; }
.btn-secondary      { color: #fff; background-color: #6c757d;  border-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }
.btn-outline-info        { color: #5bc0de; background: transparent; border-color: #5bc0de; }
.btn-outline-info:hover  { color: #fff; background-color: #5bc0de; }
.btn-outline-secondary       { color: #6c757d; background: transparent; border-color: #6c757d; }
.btn-outline-secondary:hover { color: #fff; background-color: #6c757d; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.nav-item { list-style: none; }
.nav-link { display: block; padding: 8px 15px; text-decoration: none; color: #337ab7; }
.nav-link:hover { color: #23527c; }
.nav-pills > li { display: inline-block; }
.nav-pills > li > a { display: block; padding: 8px 15px; border-radius: 4px; text-decoration: none; color: #337ab7; }
.nav-pills > li > a:hover { background-color: #eee; }
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover { color: #fff; background-color: #337ab7; }
.nav-tabs { border-bottom: 1px solid #ddd; flex-wrap: wrap; margin-bottom: 15px; }
.nav-tabs > li > a {
  display: block; padding: 10px 15px; border: 1px solid transparent;
  border-radius: 4px 4px 0 0; text-decoration: none; color: #337ab7; margin-bottom: -1px;
}
.nav-tabs > li > a:hover { border-color: #eee #eee #ddd; }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover { color: #555; border: 1px solid #ddd; border-bottom-color: #fff; background-color: #fff; }
.justify-content-center { justify-content: center; }

/* ── Pagination ────────────────────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; padding: 0; margin: 20px 0; list-style: none; }
.page-item { display: inline-block; }
.page-item:first-child .page-link { border-radius: 4px 0 0 4px; }
.page-item:last-child  .page-link { border-radius: 0 4px 4px 0; }
.page-link {
  display: block; padding: 6px 12px; margin-left: -1px;
  color: #337ab7; text-decoration: none;
  background-color: #fff; border: 1px solid #ddd; cursor: pointer;
}
.page-link:hover { color: #23527c; background-color: #eee; }
.page-item.active   .page-link { color: #fff; background-color: #337ab7; border-color: #337ab7; }
.page-item.disabled .page-link { color: #777; cursor: default; pointer-events: none; }

/* ── Panels ────────────────────────────────────────────────────────────── */
.panel { background-color: #fff; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.panel-heading { padding: 10px 15px; background-color: #f5f5f5; border-bottom: 1px solid #ddd; border-radius: 3px 3px 0 0; }
.panel-body { padding: 15px; }

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.alert-danger  { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }
.alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.alert-info    { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }

/* ── Labels ────────────────────────────────────────────────────────────── */
.label { display: inline-block; padding: 2px 6px; font-size: 75%; font-weight: 700; color: #fff; border-radius: 3px; white-space: nowrap; }
.label-default { background-color: #777; }
.label-success { background-color: #5cb85c; }
.label-info    { background-color: #5bc0de; }
.label-warning { background-color: #f0ad4e; color: #fff; }
.label-danger  { background-color: #d9534f; }

/* ── Badge ─────────────────────────────────────────────────────────────── */
.badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: 700; color: #fff; text-align: center; border-radius: 10px; background-color: #777; }

/* ── List groups ───────────────────────────────────────────────────────── */
.list-group { padding: 0; margin: 0 0 20px; border-radius: 4px; overflow: hidden; list-style: none; }
.list-group-item { display: block; padding: 10px 15px; background-color: #fff; border: 1px solid #ddd; margin-bottom: -1px; text-decoration: none; color: #555; }
.list-group-item:first-child { border-radius: 4px 4px 0 0; }
.list-group-item:last-child  { border-radius: 0 0 4px 4px; margin-bottom: 0; }
a.list-group-item, button.list-group-item { color: #337ab7; }
a.list-group-item:hover { background-color: #f5f5f5; }
.list-group-item.active { color: #fff; background-color: #337ab7; border-color: #337ab7; }

/* ── Well ──────────────────────────────────────────────────────────────── */
.well { padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-muted  { color: #777; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.pull-left   { float: left !important; }
.pull-right  { float: right !important; }
.clearfix::after { content: ''; display: table; clear: both; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media print { .no-print { display: none !important; } }

/* ═════════════════════════════════════════════════════════════════════════
   Design system — navbar, dashboard, dark mode
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Body baseline ─────────────────────────────────────────────────────── */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: var(--cp-bg, #f5f7fa);
  color: var(--cp-text, #1a2332);
}

/* ── Brand tokens ──────────────────────────────────────────────────────── */
body.brand-paints   { --cp-accent: #01ACF1; --cp-nav-bg: #01ACF1; }
body.brand-coatings { --cp-accent: #73bd42; --cp-nav-bg: #54575c; }

/* ── Theme tokens ──────────────────────────────────────────────────────── */
body.theme-light {
  --cp-bg:         #f5f7fa;
  --cp-surface:    #ffffff;
  --cp-text:       #1a2332;
  --cp-text-muted: #6b7a8d;
  --cp-text-light: #9baab8;
  --cp-border:     #e2e8f0;
}
body.theme-dark {
  --cp-bg:         #0f1923;
  --cp-surface:    #1a2535;
  --cp-text:       #e8edf5;
  --cp-text-muted: #7a90a8;
  --cp-text-light: #4a6080;
  --cp-border:     #2a3a50;
}

/* Bridge body theme tokens into the dashboard component */
body.theme-dark .home-dashboard,
body .home-dashboard.dark {
  --bg:         var(--cp-bg);
  --surface:    var(--cp-surface);
  --surface-2:  #212f42;
  --border:     var(--cp-border);
  --text:       var(--cp-text);
  --text-muted: var(--cp-text-muted);
  --text-light: var(--cp-text-light);
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.cp-nav {
  position: sticky;
  top: 0;
  margin: 0;
  z-index: 100;
  height: 56px;
  padding: 0 28px;
  background: var(--cp-nav-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cp-nav * { box-sizing: border-box; }

.cp-nav-brand img {
  height: 40px;
  object-fit: contain;
  display: block;
}

.cp-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.cp-nav-links li a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s;
}
.cp-nav-links li a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cp-nav-links li.active a {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cp-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-theme-form { margin: 0; }
.cp-theme-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}
.cp-theme-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.cp-nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
}
.cp-nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cp-nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.cp-nav-user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.cp-nav-user-name {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.cp-nav-user-store {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}
.cp-nav-logout {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 4px;
  transition: color 0.15s;
}
.cp-nav-logout:hover { color: #fff; }

@media (max-width: 900px) {
  .cp-nav { padding: 0 16px; gap: 12px; }
  .cp-nav-links { display: none; }
  .cp-nav-brand img { height: 32px; }
}
@media (max-width: 480px) {
  .cp-nav-user-text { display: none; }
}
@media print { .cp-nav { display: none; } }

/* ─────────────────────────────────────────────────────────────────────────
   Home dashboard
   ──────────────────────────────────────────────────────────────────────── */

.home-dashboard {
  --accent:      #01ACF1;
  --accent-soft: rgba(1, 172, 241, 0.10);
  --bg:          #f5f7fa;
  --surface:     #ffffff;
  --surface-2:   #f5f7fa;
  --border:      #e2e8f0;
  --text:        #1a2332;
  --text-muted:  #6b7a8d;
  --text-light:  #9baab8;
  --tier-color:  #f5a623;

  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: calc(100vh - 56px);
  padding: 32px 28px 60px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.home-dashboard *, .home-dashboard *::before, .home-dashboard *::after { box-sizing: border-box; }

.home-dashboard.coatings {
  --accent:      #73bd42;
  --accent-soft: rgba(115, 189, 66, 0.12);
}

.home-dashboard.dark {
  --bg:         #0f1923;
  --surface:    #1a2535;
  --surface-2:  #212f42;
  --border:     #2a3a50;
  --text:       #e8edf5;
  --text-muted: #7a90a8;
  --text-light: #4a6080;
}

/* ── Dashboard header ──────────────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.dash-greeting {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.dash-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin: 3px 0 0;
}
.dash-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
}
.dash-section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 12px;
}

/* ── Bulletin teaser ───────────────────────────────────────────────────── */
.bulletin-teaser {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.bulletin-teaser-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bulletin-teaser-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.bulletin-open-btn {
  padding: 8px 16px;
  border-radius: 9px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.bulletin-open-btn:hover { opacity: 0.85; }

.bulletin-unread-dot {
  position: absolute;
  top: -4px; right: -4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #e74c3c;
  border: 2px solid var(--surface);
}

/* ── Main grid ─────────────────────────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* ── Tile grid ─────────────────────────────────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
}
.tile:hover {
  background: var(--tile-color);
  border-color: var(--tile-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--tile-color) 33%, transparent);
}
.tile:hover .tile-icon  { background: rgba(255,255,255,0.2); color: #fff; }
.tile:hover .tile-label { color: #fff; }
.tile:hover .tile-desc  { color: rgba(255,255,255,0.85); }
.tile:hover .tile-badge { background: rgba(255,255,255,0.25); color: #fff; }

.tile-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tile-color) 14%, transparent);
  color: var(--tile-color);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.tile-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tile-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  text-wrap: pretty;
}
.tile-badge {
  position: absolute;
  top: 20px; right: 22px;
  padding: 2px 9px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--tile-color) 14%, transparent);
  color: var(--tile-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── Training panel ────────────────────────────────────────────────────── */
.training-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 72px;
}
.training-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.training-tier-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.training-tier-sub {
  font-size: 11px;
  color: var(--text-light);
}
.training-ring {
  position: relative;
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.training-ring-bg { stroke: var(--border); }
.training-ring-fg { stroke: var(--accent); transition: stroke-dashoffset 0.4s ease; }
.training-ring-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--accent);
}

.training-courses {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.training-course {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.training-course-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.training-course-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.training-course-score {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}
.training-dots {
  display: flex;
  gap: 4px;
}
.training-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
}
.training-dot.filled { background: var(--accent); }

.training-unlock {
  background: #fff8e6;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #856404;
  line-height: 1.45;
}
.home-dashboard.dark .training-unlock,
body.theme-dark .training-unlock {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.35);
  color: #ffc107;
}

.training-panel-link {
  display: block;
  text-align: center;
  padding: 10px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid var(--border);
}
.training-panel-link:hover { text-decoration: underline; }

/* ── Bulletin drawer ───────────────────────────────────────────────────── */
.bulletin-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 30, 46, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 200;
  backdrop-filter: blur(2px);
}
.bulletin-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.bulletin-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 65%;
  max-width: 860px;
  background: var(--surface, #fff);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.22);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0, 0.12, 1);
  display: flex;
  flex-direction: column;
  z-index: 201;
}
.bulletin-drawer.open { transform: translateX(0); }

.bulletin-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1.5px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}
.bulletin-drawer-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text, #1a2332);
}
.bulletin-nav {
  display: flex;
  gap: 6px;
}
.bulletin-nav-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border, #e2e8f0);
  background: var(--surface-2, #f5f7fa);
  color: var(--text-muted, #6b7a8d);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.bulletin-nav-btn:hover:not(:disabled) {
  background: var(--accent, #01ACF1);
  color: #fff;
  border-color: var(--accent, #01ACF1);
}
.bulletin-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.bulletin-close-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border, #e2e8f0);
  background: var(--surface-2, #f5f7fa);
  color: var(--text-muted, #6b7a8d);
  cursor: pointer;
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.bulletin-close-btn:hover {
  background: var(--text, #1a2332);
  color: var(--surface, #fff);
  border-color: var(--text, #1a2332);
}
.bulletin-drawer-body {
  flex: 1;
  overflow: hidden;
  background: var(--surface-2, #f5f7fa);
}
.bulletin-drawer-body iframe {
  width: 100%; height: 100%;
  border: 0;
}

body.theme-dark .bulletin-drawer {
  background: var(--cp-surface);
}
body.theme-dark .bulletin-drawer-header {
  border-bottom-color: var(--cp-border);
}
body.theme-dark .bulletin-drawer-title { color: var(--cp-text); }
body.theme-dark .bulletin-nav-btn {
  background: #212f42;
  border-color: var(--cp-border);
  color: var(--cp-text-muted);
}
body.theme-dark .bulletin-nav-btn:hover:not(:disabled) {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #fff;
}
body.theme-dark .bulletin-close-btn {
  background: #212f42;
  border-color: var(--cp-border);
  color: var(--cp-text-muted);
}
body.theme-dark .bulletin-close-btn:hover {
  background: var(--cp-text);
  border-color: var(--cp-text);
  color: var(--cp-surface);
}
body.theme-dark .bulletin-drawer-body { background: #212f42; }
body.theme-dark .dash-eyebrow { color: var(--cp-text-light); }

@media print {
  .bulletin-teaser, .bulletin-drawer, .bulletin-backdrop, .cp-nav { display: none !important; }
}

/* ── Form validation ───────────────────────────────────────────────────── */
.form-control.is-invalid,
input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: #d9534f;
}
.invalid-feedback {
  display: block;
  color: #d9534f;
  font-size: 0.875em;
  margin-top: 3px;
}
.form-error {
  display: block;
  color: #d9534f;
  font-size: 0.875em;
  margin-top: 3px;
}
body.theme-dark .form-control.is-invalid,
body.theme-dark input.is-invalid,
body.theme-dark select.is-invalid,
body.theme-dark textarea.is-invalid { border-color: #f08888; }
body.theme-dark .invalid-feedback,
body.theme-dark .form-error { color: #f08888; }

/* ── Label + icon row ──────────────────────────────────────────────────── */
.label-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.label-row label { margin-bottom: 0; font-weight: 700; }

/* ── Autosave glow (shared across Weekly Wrap, Store Info, SA Info, WT Info) */
.review-saving { box-shadow: 0 0 8px 3px rgba(255, 190, 0, 0.7) !important; }
.review-saved  { box-shadow: 0 0 8px 3px rgba(0, 180, 0, 0.6)   !important; }
.review-error  { box-shadow: 0 0 8px 3px rgba(210, 0, 0, 0.6)   !important; }

/* ── Info hover tooltip ────────────────────────────────────────────────── */
.info_pop {
  position: relative;
  display: inline-block;
  cursor: help;
}
.info_pop .info_up {
  visibility: hidden;
  opacity: 0;
  width: 320px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  transition: opacity 0.2s;
  pointer-events: none;
  font-size: 13px;
  line-height: 1.4;
}
.info_pop .info_up::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 19%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #555;
}
.info_pop:hover .info_up {
  visibility: visible;
  opacity: 1;
}
body.theme-dark .info_pop .info_up { background-color: #212f42; }
body.theme-dark .info_pop .info_up::after { border-top-color: #212f42; }

/* ── Forms sub-navigation bar ──────────────────────────────────────────── */
.forms-subnav {
  border-bottom: 2px solid #ddd;
}
body.theme-dark .forms-subnav {
  border-bottom-color: var(--cp-border);
}

/* ── Filter buttons (tf-btn) ───────────────────────────────────────────── */
.tf-btn { background-color: #fff; border-width: 1px; border-style: solid; transition: background-color 0.15s, color 0.15s; }
.tf-btn.tf-warning { color: #f0ad4e; border-color: #f0ad4e; }
.tf-btn.tf-info    { color: #5bc0de; border-color: #5bc0de; }
.tf-btn.tf-success { color: #5cb85c; border-color: #5cb85c; }
.tf-btn.tf-danger  { color: #d9534f; border-color: #d9534f; }
.tf-btn.tf-muted   { color: #777;    border-color: #aaa; }
.tf-btn.tf-new     { color: #337ab7; border-color: #337ab7; }
.tf-btn.tf-warning:hover, .tf-btn.tf-warning.active { background-color: #f0ad4e; color: #fff; }
.tf-btn.tf-info:hover,    .tf-btn.tf-info.active    { background-color: #5bc0de; color: #fff; }
.tf-btn.tf-success:hover, .tf-btn.tf-success.active { background-color: #5cb85c; color: #fff; }
.tf-btn.tf-danger:hover,  .tf-btn.tf-danger.active  { background-color: #d9534f; color: #fff; }
.tf-btn.tf-muted:hover,   .tf-btn.tf-muted.active   { background-color: #777;    color: #fff; }
.tf-btn.tf-new:hover, .tf-btn.tf-new.active           { background-color: #337ab7; color: #fff; }

body.theme-dark .tf-btn { background-color: var(--cp-surface); }
body.theme-dark .tf-btn.tf-warning.active { background-color: #f0ad4e; color: #fff; border-color: #f0ad4e; }
body.theme-dark .tf-btn.tf-info.active    { background-color: #5bc0de; color: #fff; border-color: #5bc0de; }
body.theme-dark .tf-btn.tf-success.active { background-color: #5cb85c; color: #fff; border-color: #5cb85c; }
body.theme-dark .tf-btn.tf-danger.active  { background-color: #d9534f; color: #fff; border-color: #d9534f; }
body.theme-dark .tf-btn.tf-muted.active   { background-color: #777;    color: #fff; border-color: #777; }

/* ── Submit button ─────────────────────────────────────────────────────── */
.button {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: var(--cp-accent);
  color: #fff;
  transition: opacity 0.15s;
  box-sizing: border-box;
}
.button:hover { opacity: 0.85; }
/* Inline form context — button and inputs shrink to content width */
.form-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.form-inline .button,
.form-inline input[type="submit"],
.form-inline input[type="button"] { display: inline-block; width: auto; }
.button-red { background-color: #d9534f; }
.button-red:hover { background-color: #c9302c; opacity: 1; }
body.theme-dark .button-red { background-color: #a71d2a; }

/* ── Semantic colour classes ───────────────────────────────────────────── */
.green,  tr.green > td,  tr.green > th  { background-color: rgb(204, 255, 204) !important; color: rgb(0, 100, 0) !important; }
.red,    tr.red > td,    tr.red > th    { background-color: rgb(255, 204, 204) !important; color: rgb(100, 0, 0) !important; }
.blue,   tr.blue > td,   tr.blue > th   { background-color: rgb(204, 204, 255) !important; color: rgb(0, 0, 100) !important; }
.yellow, tr.yellow > td, tr.yellow > th { background-color: rgb(255, 255, 204) !important; color: rgb(100, 100, 0) !important; }

body.theme-dark .green,
body.theme-dark tr.green > td, body.theme-dark tr.green > th  { background-color: #1e3a2a !important; color: #7ee89a !important; }
body.theme-dark .red,
body.theme-dark tr.red > td,   body.theme-dark tr.red > th    { background-color: #3a1e1e !important; color: #f08888 !important; }
body.theme-dark .blue,
body.theme-dark tr.blue > td,  body.theme-dark tr.blue > th   { background-color: #1e2a3a !important; color: #90b8f8 !important; }
body.theme-dark .yellow,
body.theme-dark tr.yellow > td,body.theme-dark tr.yellow > th { background-color: #3a3200 !important; color: #ffd966 !important; }

/* ── Custom dropdowns ──────────────────────────────────────────────────── */
.dropbtn {
  background-color: #01ACF1;
  color: #fff;
  padding: 4px;
  font-size: 16px;
  border: none;
  width: 160px;
  cursor: pointer;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 10;
}
.dropdown-content a {
  color: #000;
  padding: 3px 7px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover { background-color: #ddd; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown:hover .dropbtn { background-color: #000; }

body.theme-dark .dropdown-content {
  background-color: var(--cp-surface);
  border: 1px solid var(--cp-border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
body.theme-dark .dropdown-content a { color: var(--cp-text); }
body.theme-dark .dropdown-content a:hover { background-color: #2a3a50; }
body.theme-dark .dropdown:hover .dropbtn { background-color: #212f42; }

/* ─────────────────────────────────────────────────────────────────────────
   Dark mode — component overrides (Bootstrap replacement owns light mode)
   ──────────────────────────────────────────────────────────────────────── */

body.theme-dark { background: var(--cp-bg); color: var(--cp-text); }

/* ── Tables ────────────────────────────────────────────────────────────── */
body.theme-dark .table { background-color: var(--cp-surface); }
body.theme-dark .table th, body.theme-dark .table td { border-color: var(--cp-border); color: var(--cp-text); background-color: var(--cp-surface); }
body.theme-dark .table thead th { background-color: #212f42; border-color: var(--cp-border); }
body.theme-dark .table-bordered, body.theme-dark .table-bordered th, body.theme-dark .table-bordered td { border-color: var(--cp-border); }
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) { background-color: #212f42; }
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > td,
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > th { background-color: #212f42; }
body.theme-dark .table-hover > tbody > tr:hover > td,
body.theme-dark .table-hover > tbody > tr:hover > th { background-color: rgba(1,172,241,0.08); }

/* ── Forms ─────────────────────────────────────────────────────────────── */
body.theme-dark .form-control,
body.theme-dark input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
body.theme-dark select, body.theme-dark textarea { background-color: var(--cp-surface); border-color: var(--cp-border); color: var(--cp-text); }
body.theme-dark .form-control:focus, body.theme-dark input:focus, body.theme-dark select:focus, body.theme-dark textarea:focus { border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(1,172,241,.18); outline: 0; }
body.theme-dark ::placeholder { color: var(--cp-text-light); }
body.theme-dark label, body.theme-dark .form-control-label, body.theme-dark .control-label { color: var(--cp-text); }
body.theme-dark input[type="submit"], body.theme-dark input[type="button"] { background-color: #212f42; border-color: var(--cp-border); color: var(--cp-text); }
body.theme-dark input[type="submit"]:hover, body.theme-dark input[type="button"]:hover { background-color: #2a3a50; border-color: var(--cp-accent); }

/* ── Select2 ───────────────────────────────────────────────────────────── */
body.theme-dark .select2-container--default .select2-selection--single,
body.theme-dark .select2-container--default .select2-selection--multiple { background-color: var(--cp-surface); border-color: var(--cp-border); }
body.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--cp-text); }
body.theme-dark .select2-dropdown { background-color: var(--cp-surface); border-color: var(--cp-border); }
body.theme-dark .select2-container--default .select2-results__option { color: var(--cp-text); }
body.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--cp-accent); color: #fff; }
body.theme-dark .select2-search--dropdown .select2-search__field { background-color: #212f42; border-color: var(--cp-border); color: var(--cp-text); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
body.theme-dark .btn-default { background-color: #212f42; border-color: var(--cp-border); color: var(--cp-text); }
body.theme-dark .btn-default:hover { background-color: #2a3a50; border-color: var(--cp-accent); }
body.theme-dark .btn-primary  { background-color: #0d8fc7; border-color: #0a7aaa; color: #fff; }
body.theme-dark .btn-primary:hover  { background-color: #0a7aaa; }
body.theme-dark .btn-success  { background-color: #1e7e34; border-color: #196429; color: #fff; }
body.theme-dark .btn-success:hover  { background-color: #196429; }
body.theme-dark .btn-danger   { background-color: #a71d2a; border-color: #8c1823; color: #fff; }
body.theme-dark .btn-danger:hover   { background-color: #8c1823; }
body.theme-dark .btn-warning  { background-color: #d39e00; border-color: #ba8b00; color: #fff; }
body.theme-dark .btn-warning:hover  { background-color: #ba8b00; }
body.theme-dark .btn-info     { background-color: #117a8b; border-color: #0f6674; color: #fff; }
body.theme-dark .btn-info:hover     { background-color: #0f6674; }
body.theme-dark .btn-secondary { background-color: #212f42; border-color: var(--cp-border); color: var(--cp-text); }
body.theme-dark .btn-outline-info { color: #5bc0de; border-color: #5bc0de; background: transparent; }
body.theme-dark .btn-outline-info:hover { background-color: #5bc0de; color: #fff; }
body.theme-dark .btn-outline-secondary { color: var(--cp-text-muted); border-color: var(--cp-border); background: transparent; }
body.theme-dark .btn-outline-secondary:hover { background-color: #212f42; color: var(--cp-text); }
body.theme-dark .amend-btn, body.theme-dark .approve-btn, body.theme-dark .slide-btn,
body.theme-dark .review-save-btn,
body.theme-dark button:not([class*="btn-"]):not(.cp-theme-btn):not(.bulletin-nav-btn):not(.bulletin-close-btn):not(.bulletin-open-btn):not(.dropbtn):not(.button):not(.button-red) {
  background-color: #212f42 !important; border-color: var(--cp-border) !important; color: var(--cp-text) !important;
}

/* ── Panels ────────────────────────────────────────────────────────────── */
body.theme-dark .panel { background-color: var(--cp-surface); border-color: var(--cp-border); }
body.theme-dark .panel-heading { background-color: #212f42; border-color: var(--cp-border); color: var(--cp-text); }
body.theme-dark .panel-body { color: var(--cp-text); }

/* ── Alerts ────────────────────────────────────────────────────────────── */
body.theme-dark .alert-success { background-color: rgba(40,167,69,.15);  border-color: rgba(40,167,69,.3);  color: #6fcf8a; }
body.theme-dark .alert-danger  { background-color: rgba(220,53,69,.15);  border-color: rgba(220,53,69,.3);  color: #f08888; }
body.theme-dark .alert-warning { background-color: rgba(255,193,7,.12);  border-color: rgba(255,193,7,.3);  color: #ffd966; }
body.theme-dark .alert-info    { background-color: rgba(91,192,222,.12); border-color: rgba(91,192,222,.3); color: #90d8f0; }

/* ── Pagination ────────────────────────────────────────────────────────── */
body.theme-dark .page-link { background-color: var(--cp-surface); border-color: var(--cp-border); color: var(--cp-accent); }
body.theme-dark .page-link:hover { background-color: #212f42; }
body.theme-dark .page-item.active .page-link { background-color: var(--cp-accent); border-color: var(--cp-accent); color: #fff; }
body.theme-dark .page-item.disabled .page-link { background-color: var(--cp-surface); border-color: var(--cp-border); color: var(--cp-text-light); }

/* ── Labels ────────────────────────────────────────────────────────────── */
body.theme-dark .label-default { background-color: #2a3a50; }

/* ── List groups ───────────────────────────────────────────────────────── */
body.theme-dark .list-group-item { background-color: var(--cp-surface); border-color: var(--cp-border); color: var(--cp-text); }
body.theme-dark a.list-group-item, body.theme-dark button.list-group-item { color: var(--cp-accent); }
body.theme-dark a.list-group-item:hover { background-color: #212f42; }
body.theme-dark .list-group-item.active { background-color: var(--cp-accent); border-color: var(--cp-accent); color: #fff; }

/* ── Nav pills / tabs ──────────────────────────────────────────────────── */
body.theme-dark .nav-pills > li > a { color: var(--cp-accent); background-color: transparent; }
body.theme-dark .nav-pills > li > a:hover { background-color: rgba(255,255,255,.06); }
body.theme-dark .nav-pills > li.active > a { background-color: var(--cp-accent); color: #fff; }
body.theme-dark .nav-tabs { border-color: var(--cp-border); }
body.theme-dark .nav-tabs > li > a { color: var(--cp-text-muted); border-color: var(--cp-border); background-color: var(--cp-surface); }
body.theme-dark .nav-tabs > li > a:hover { background-color: #212f42; }
body.theme-dark .nav-tabs > li.active > a { background-color: var(--cp-surface); border-color: var(--cp-border); border-bottom-color: var(--cp-surface); color: var(--cp-text); }

/* ── Admin training cards & answer rows ────────────────────────────────── */
body.theme-dark .nav-card {
  background: var(--cp-surface) !important;
  border-color: var(--cp-accent) !important;
}
body.theme-dark .nav-row + .nav-row {
  border-top-color: var(--cp-border) !important;
}
body.theme-dark .nav-label { color: var(--cp-text-muted) !important; }
body.theme-dark .ans-correct {
  background: rgba(40, 167, 69, 0.15) !important;
  border-top-color: var(--cp-border) !important;
}
body.theme-dark .ans-wrong {
  background: rgba(220, 53, 69, 0.15) !important;
  border-top-color: var(--cp-border) !important;
}
body.theme-dark .ans-partial {
  background: rgba(255, 193, 7, 0.12) !important;
  border-top-color: var(--cp-border) !important;
}
body.theme-dark .active-row { background-color: rgba(1, 172, 241, 0.15) !important; }
/* Inline-styled header/alternating rows in expanded detail tables */
body.theme-dark tr[style*="background:#e0e0e0"],
body.theme-dark tr[style*="background:#eee"],
body.theme-dark tr[style*="background: #e0e0e0"],
body.theme-dark tr[style*="background: #eee"] {
  background-color: #212f42 !important;
}
body.theme-dark tr[style*="background:#fafafa"],
body.theme-dark tr[style*="background:#f9f9f9"],
body.theme-dark tr[style*="background: #fafafa"],
body.theme-dark tr[style*="background: #f9f9f9"] {
  background-color: var(--cp-surface) !important;
}
/* Inline-styled scenario/response detail boxes */
body.theme-dark div[style*="background:#f9f9f9"],
body.theme-dark div[style*="background: #f9f9f9"] {
  background-color: var(--cp-surface) !important;
  border-color: var(--cp-border) !important;
}

/* ── Training tier cards ───────────────────────────────────────────────── */
body.theme-dark .tier-open {
  background: var(--cp-surface) !important;
  border-color: var(--cp-accent) !important;
}
body.theme-dark .tier-locked {
  background: #212f42 !important;
  border-color: var(--cp-border) !important;
}
body.theme-dark .unlock-banner-lock {
  background: rgba(255, 193, 7, 0.08) !important;
  border-color: rgba(255, 193, 7, 0.35) !important;
  color: #ffc107 !important;
}
body.theme-dark .unlock-banner-ok {
  background: rgba(40, 167, 69, 0.12) !important;
  border-color: rgba(40, 167, 69, 0.35) !important;
  color: #6fcf8a !important;
}
body.theme-dark .tier-title { color: var(--cp-text) !important; }

/* ── Page-level containers ─────────────────────────────────────────────── */
body.theme-dark .container,
body.theme-dark .well {
  background-color: transparent;
  color: var(--cp-text);
}
body.theme-dark .well {
  background-color: var(--cp-surface);
  border-color: var(--cp-border);
}
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3,
body.theme-dark h4, body.theme-dark h5, body.theme-dark h6 {
  color: var(--cp-text);
}
body.theme-dark p, body.theme-dark span, body.theme-dark li,
body.theme-dark td, body.theme-dark th { color: var(--cp-text); }

/* ── Inline text link ──────────────────────────────────────────────────────── */
.text-link { color: #01ACF1; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
body.theme-dark .text-link { color: var(--cp-accent); }
