/* ──────────────────────────────────────────
   Cert Exam Change Tracker — Emerald Theme
   Accent: #10B981  |  Namespace: .cert-*
   ────────────────────────────────────────── */

:root {
  --cert-accent: #10B981;
  --cert-accent-dim: rgba(16, 185, 129, 0.15);
  --cert-accent-hover: #34D399;
  --cert-bg: #141118;
  --cert-card: #1e1b24;
  --cert-card-hover: #252230;
  --cert-border: #2a2733;
  --cert-text: #e0dce6;
  --cert-text-dim: #9e98a8;
  --cert-badge-beginner: #10B981;
  --cert-badge-intermediate: #3B82F6;
  --cert-badge-advanced: #F59E0B;
}

.cert-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ── Compact hero for cert study guide pages ── */
.tool-hero { padding: 0.5rem 0.75rem 0; }
.tool-hero-inner { padding: 0.5rem 1rem 0.35rem; }
.tool-hero-title { font-size: 1.2rem; }
.tool-hero-title::after { width: 50px; }
.tool-hero-subtitle { font-size: 0.78rem; }
.tool-hero-badges { margin-top: 0.15rem; }
.cert-pn { margin-top: 0.5rem; padding-top: 0.4rem; }
@media (max-width: 640px) {
  .tool-hero { padding: 0.4rem 0.5rem 0; }
  .tool-hero-inner { padding: 0.4rem 0.75rem 0.3rem; }
  .tool-hero-title { font-size: 1rem; }
  .tool-hero-title::after { width: 36px; }
}

/* ── Cert Prev/Next Circular Nav ── */
.cert-pn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  gap: 0.75rem;
}
.cert-pn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  max-width: 48%;
  overflow: hidden;
}
.cert-pn-link:hover {
  border-color: var(--cert-accent);
  color: var(--cert-accent);
  background: rgba(255,255,255,0.04);
}
.cert-pn-prev { margin-right: auto; }
.cert-pn-next { margin-left: auto; }
.cert-pn-arrow { font-size: 0.85rem; opacity: 0.7; }
.cert-pn-code { font-weight: 700; color: var(--cert-accent); font-size: 0.82rem; }
.cert-pn-title { opacity: 0.7; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .cert-pn-title { display: none; }
  .cert-pn-link { font-size: 0.72rem; padding: 0.35rem 0.65rem; }
}

/* ── Tabs ── */
.cert-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.cert-tabs::-webkit-scrollbar { display: none; }
.cert-tab {
  background: none;
  border: 1px solid transparent;
  color: var(--cert-text-dim);
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 14px;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}
.cert-tab:hover {
  color: var(--cert-text);
  background: rgba(255, 255, 255, 0.06);
}
.cert-tab.active {
  color: #000;
  background: var(--cert-accent);
  border-color: var(--cert-accent);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.cert-panel { display: none; }
.cert-panel.active { display: block; }
.cert-roadmap-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  background: var(--cert-accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  color: var(--cert-accent-hover);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}
.cert-roadmap-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--cert-accent);
}
.cert-updates-section h2 { color: var(--cert-text); margin-bottom: 0.5rem; }

/* ── Controls ── */
.cert-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cert-search {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 1rem;
  background: rgba(6, 6, 12, 0.55);
  -webkit-backdrop-filter: blur(var(--glass-blur-subtle));
  backdrop-filter: blur(var(--glass-blur-subtle));
  border: var(--glass-border);
  border-radius: var(--glass-radius-button);
  color: var(--cert-text);
  font-size: 0.95rem;
}
.cert-search:focus {
  outline: none;
  border-color: var(--cert-accent);
  box-shadow: 0 0 0 2px var(--cert-accent-dim);
}
.cert-search::placeholder { color: var(--cert-text-dim); }

.cert-select {
  padding: 0.6rem 0.75rem;
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 14px;
  color: var(--cert-text);
  font-size: 0.9rem;
  cursor: pointer;
}
.cert-select:focus {
  outline: none;
  border-color: var(--cert-accent);
}

/* ── Stats bar ── */
.cert-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.cert-stat-box {
  background: color-mix(in srgb, var(--stat-color) 8%, var(--cert-card));
  border: 1px solid color-mix(in srgb, var(--stat-color) 25%, transparent);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cert-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--stat-color);
  font-family: var(--font-heading, 'Inter', sans-serif);
  line-height: 1;
}
.cert-stat-label {
  font-size: 0.78rem;
  color: var(--cert-text-dim);
  font-weight: 600;
}
@media (max-width: 640px) {
  .cert-stats { grid-template-columns: repeat(2, 1fr); }
}

.cert-result-count {
  font-size: 0.82rem;
  color: var(--cert-text-dim);
  margin-bottom: 1rem;
  min-height: 1.2em;
}

/* ── Category chips ── */
.cert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.cert-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--glass-radius-pill);
  border: var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--cert-text-dim);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cert-chip:hover, .cert-chip.active {
  background: var(--cert-accent-dim);
  border-color: var(--cert-accent);
  color: var(--cert-accent);
}

/* ── Exam grid ── */
.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Category groups */
.cert-category-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cert-category-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cert-accent);
  padding: 0.5rem 0 0.4rem 0.75rem;
  border-bottom: 1px solid var(--cert-border);
  border-left: 3px solid var(--cert-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cert-category-heading .cert-category-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--cert-text-dim);
}
.cert-category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.cert-card {
  display: block;
  text-decoration: none;
  background: rgba(6, 6, 12, 0.55);
  -webkit-backdrop-filter: blur(var(--glass-blur-card));
  backdrop-filter: blur(var(--glass-blur-card));
  border: var(--glass-border);
  border-radius: var(--glass-radius-card);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  color: inherit;
}
.cert-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.cert-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cert-card-code {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cert-accent);
  white-space: nowrap;
}

.cert-card-title {
  font-size: 0.9rem;
  color: var(--cert-text);
  line-height: 1.3;
}

.cert-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cert-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cert-badge-beginner { background: rgba(16, 185, 129, 0.15); color: var(--cert-badge-beginner); }
.cert-badge-intermediate { background: rgba(59, 130, 246, 0.15); color: var(--cert-badge-intermediate); }
.cert-badge-advanced { background: rgba(245, 158, 11, 0.15); color: var(--cert-badge-advanced); }
.cert-badge-category {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cert-text-dim);
}

.cert-card-skills {
  font-size: 0.82rem;
  color: var(--cert-text-dim);
  line-height: 1.5;
}
.cert-card-skills .cert-skill-item {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
}
.cert-card-skills .cert-skill-weight {
  color: var(--cert-accent);
  font-weight: 500;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.cert-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cert-border);
  font-size: 0.78rem;
  color: var(--cert-text-dim);
}

.cert-card-cta {
  color: var(--cert-accent);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
.cert-card:hover .cert-card-cta {
  color: var(--cert-accent-hover);
}

/* Status notes on cards */
.cert-card-status-note {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.cert-card-status-retiring { color: #FCD34D; background: rgba(245, 158, 11, 0.08); }
.cert-card-status-retired { color: #FCA5A5; background: rgba(239, 68, 68, 0.08); }
.cert-card-status-beta { color: #C4B5FD; background: rgba(139, 92, 246, 0.08); }

/* ── Modal ── */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-modal[hidden] { display: none; }

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cert-modal-content {
  position: relative;
  background: rgba(6, 6, 12, 0.88);
  -webkit-backdrop-filter: blur(var(--glass-blur-overlay));
  backdrop-filter: blur(var(--glass-blur-overlay));
  border: var(--glass-border);
  border-radius: var(--glass-radius-card);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cert-modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: var(--cert-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.cert-modal-close:hover { border-color: var(--cert-accent); color: var(--cert-accent); }

/* Modal content styles */
.cert-detail-header { margin-bottom: 1.5rem; }
.cert-detail-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cert-accent);
}
.cert-detail-title {
  font-size: 1.1rem;
  color: var(--cert-text);
  margin-top: 0.25rem;
}
.cert-detail-date {
  font-size: 0.85rem;
  color: var(--cert-text-dim);
  margin-top: 0.5rem;
}

.cert-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.cert-detail-link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--cert-accent);
  border-radius: 14px;
  color: var(--cert-accent);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.cert-detail-link:hover {
  background: var(--cert-accent);
  color: #000;
}

.cert-detail-section {
  margin-top: 1.5rem;
}
.cert-detail-section h3 {
  font-size: 1rem;
  color: var(--cert-accent);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--cert-border);
  padding-bottom: 0.5rem;
}

.cert-skill-area {
  margin-bottom: 1.25rem;
}
.cert-skill-area-header {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cert-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.cert-skill-area-header::before {
  content: "▸";
  color: var(--cert-accent);
  transition: transform 0.2s;
}
.cert-skill-area-header.expanded::before { transform: rotate(90deg); }

.cert-skill-sub-area {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.cert-skill-sub-area h5 {
  font-size: 0.85rem;
  color: var(--cert-accent);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.cert-skill-sub-area ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}
.cert-skill-sub-area li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.2rem;
  font-size: 0.83rem;
  color: var(--cert-text-dim);
  line-height: 1.5;
}
.cert-skill-sub-area li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--cert-accent);
}

/* Change history in modal */
.cert-change-entry {
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.cert-change-date {
  font-size: 0.8rem;
  color: var(--cert-text-dim);
}
.cert-change-summary {
  font-size: 0.9rem;
  color: var(--cert-text);
  font-weight: 500;
  margin-top: 0.25rem;
}
.cert-change-added { color: var(--cert-badge-beginner); }
.cert-change-removed { color: #EF4444; }

/* ── Skeleton ── */
.cert-skeleton-row {
  height: 180px;
  background: linear-gradient(90deg, var(--cert-card) 25%, var(--cert-card-hover) 50%, var(--cert-card) 75%);
  background-size: 200% 100%;
  border-radius: 16px;
  animation: cert-shimmer 1.5s infinite;
  margin-bottom: 1rem;
}
@keyframes cert-shimmer { to { background-position: -200% 0; } }

/* ── Footer ── */
.cert-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cert-border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--cert-text-dim);
}
.cert-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}
.cert-footer-links a { color: var(--cert-accent); text-decoration: none; }
.cert-footer-links a:hover { text-decoration: underline; }

/* ── No results ── */
.cert-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--cert-text-dim);
  font-size: 1.1rem;
}

/* ── Status badges ── */
.cert-badge-retiring { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.cert-badge-retired { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.cert-badge-beta { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.cert-badge-upcoming { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }

/* Status card overlay */
.cert-card-retiring { border-left: 3px solid #F59E0B; }
.cert-card-retired { opacity: 0.7; border-left: 3px solid #EF4444; }
.cert-card-beta { border-left: 3px solid #8B5CF6; }

/* ── Single exam page ── */
.cert-single { max-width: 900px; }

/* Breadcrumbs */
.cert-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--cert-text-dim);
  margin-bottom: 1rem;
}
.cert-breadcrumb a { color: var(--cert-accent); text-decoration: none; }
.cert-breadcrumb a:hover { text-decoration: underline; }
.cert-breadcrumb span:last-child { color: var(--cert-text); font-weight: 500; }

/* TOC jump-to bar */
.cert-toc {
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--cert-text-dim);
}
.cert-toc:empty { display: none; }
.cert-toc strong { color: var(--cert-text); }
.cert-toc-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.cert-toc-list li {
  padding: 0.15rem 0;
}
.cert-toc-list li::marker { color: var(--cert-accent); font-weight: 600; }
.cert-toc a { color: var(--cert-accent); text-decoration: none; }
.cert-toc a:hover { text-decoration: underline; }

/* Countdown */
.cert-countdown {
  margin-top: 0.4rem;
  font-size: 1.1rem;
}

/* Toolbar (prep time + print) */
.cert-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cert-prep-time {
  font-size: 0.85rem;
  color: var(--cert-text-dim);
}
.cert-prep-time strong { color: var(--cert-accent); }
.cert-print-btn {
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 14px;
  padding: 0.4rem 0.85rem;
  color: var(--cert-text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cert-print-btn:hover { border-color: var(--cert-accent); color: var(--cert-accent); }

/* Progress bar */
.cert-progress-wrap {
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.cert-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--cert-text);
  margin-bottom: 0.5rem;
}
.cert-progress-text { color: var(--cert-accent); font-weight: 600; }
.cert-progress-bar {
  height: 8px;
  background: var(--cert-border);
  border-radius: 4px;
  overflow: hidden;
}
.cert-progress-fill {
  height: 100%;
  background: var(--cert-accent);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}
.cert-progress-reset {
  background: none;
  border: none;
  color: var(--cert-text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 0.4rem;
  padding: 0;
}
.cert-progress-reset:hover { color: #EF4444; }

/* Study Plan Generator */
.cert-planner {
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 16px;
  margin-bottom: 1rem;
}
.cert-planner-toggle {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cert-accent);
  list-style: none;
}
.cert-planner-toggle::-webkit-details-marker { display: none; }
.cert-planner-toggle::before { content: "▸ "; transition: transform 0.2s; }
.cert-planner[open] .cert-planner-toggle::before { content: "▾ "; }
.cert-planner-body {
  padding: 0 1rem 1rem;
}
.cert-planner-label {
  display: block;
  font-size: 0.85rem;
  color: var(--cert-text-dim);
  margin-bottom: 0.5rem;
}
.cert-planner-input {
  display: block;
  margin-top: 0.3rem;
  padding: 0.4rem 0.6rem;
  background: var(--cert-bg);
  border: 1px solid var(--cert-border);
  border-radius: 6px;
  color: var(--cert-text);
  font-size: 0.85rem;
}
.cert-planner-input:focus { border-color: var(--cert-accent); outline: none; }
.cert-planner-btn {
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--cert-accent);
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.cert-planner-btn:hover { background: var(--cert-accent-hover); }
.cert-plan-result {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--cert-text);
}
.cert-plan-week {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 14px;
  border-left: 3px solid var(--cert-accent);
}
.cert-plan-week ul { margin: 0.3rem 0 0; padding-left: 1.25rem; }
.cert-plan-week li { font-size: 0.83rem; color: var(--cert-text-dim); }

/* Study checkboxes */
.cert-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cert-border);
  border-radius: 3px;
  margin-right: 0.5rem;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  flex-shrink: 0;
}
.cert-cb:checked {
  background: var(--cert-accent);
  border-color: var(--cert-accent);
}
.cert-cb:checked::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 12px;
  color: #000;
  font-weight: 700;
}
.cert-checked { opacity: 0.5; }
.cert-checked a { text-decoration: line-through !important; }

/* Print styles */
@media print {
  .tool-hero, .cert-breadcrumb, .cert-toolbar, .cert-toc,
  .cert-progress-wrap, .cert-single-nav, .cert-single-meta,
  .site-header, .site-footer, .global-btt,
  #cert-related, .cert-status-banner { display: none !important; }
  .cert-single-content { max-width: 100%; }
  .cert-single-content h2 { page-break-before: auto; }
  .cert-collapsible.cert-collapsed { max-height: none !important; opacity: 1 !important; }
  .cert-cb { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .cert-checked { opacity: 1; }
  body { background: #fff; color: #000; }
  .cert-single-content, .cert-single-content h2, .cert-single-content h3,
  .cert-single-content h4, .cert-single-content li, .cert-single-content a {
    color: #000 !important;
  }
  .cert-single-content table th { background: #eee !important; }
}

.cert-status-banner {
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cert-status-retiring {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FCD34D;
}
.cert-status-retired {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}
.cert-status-beta {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #C4B5FD;
}

.cert-single-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cert-single-content {
  color: var(--cert-text);
  line-height: 1.7;
}
.cert-single-content h2 {
  color: var(--cert-accent);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--cert-border);
  padding-bottom: 0.5rem;
}
.cert-single-content h3 {
  color: var(--cert-text);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.cert-single-content h4 {
  color: var(--cert-accent);
  font-size: 0.92rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.cert-single-content ul {
  padding-left: 1.5rem;
  margin: 0.25rem 0 0.75rem;
}
.cert-single-content li {
  font-size: 0.88rem;
  color: var(--cert-text-dim);
  line-height: 1.6;
  margin-bottom: 0.15rem;
}
.cert-single-content li::marker { color: var(--cert-accent); }
.cert-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cert-single-content th, .cert-single-content td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--cert-border);
  font-size: 0.88rem;
  white-space: nowrap;
}
.cert-single-content td:last-child { white-space: normal; }
.cert-single-content th {
  color: var(--cert-accent);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.05);
}
.cert-single-content a {
  color: var(--cert-accent);
  text-decoration: none;
}
.cert-single-content a:hover { text-decoration: underline; }

/* Collapsible skill sections */
.cert-collapsible-toggle {
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
}
.cert-collapsible-toggle::after {
  content: "▾";
  position: absolute;
  right: 0;
  color: var(--cert-accent);
  transition: transform 0.2s;
}
.cert-collapsible-toggle.cert-collapsed::after {
  transform: rotate(-90deg);
}
.cert-collapsible {
  transition: max-height 0.3s ease, opacity 0.2s;
  overflow: hidden;
}
.cert-collapsible.cert-collapsed {
  max-height: 0 !important;
  opacity: 0;
  margin: 0;
}

.cert-single-nav {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cert-border);
}

/* Related exam cards */
.cert-related-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s;
}
.cert-related-card:hover {
  border-color: var(--cert-accent);
}
.cert-related-card .cert-card-code {
  font-size: 0.95rem;
}
.cert-related-card .cert-card-title {
  flex: 1;
  font-size: 0.85rem;
  min-width: 150px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .cert-category-cards { grid-template-columns: 1fr; }
  .cert-controls { flex-direction: column; }
  .cert-modal-content { width: 95%; padding: 1.25rem; max-height: 90vh; }
}

/* ──────────────────────────────────────────
   Cert Roadmap Kanban — used by roadmap.html
   ────────────────────────────────────────── */
.roadmap-container { max-width: 1300px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.roadmap-legend {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem;
  padding: 0.6rem 1rem; background: var(--cert-card); border: 1px solid var(--cert-border);
  border-radius: 16px; font-size: 0.82rem; color: var(--cert-text-dim); align-items: center;
}
.roadmap-legend-item { display: flex; align-items: center; gap: 0.3rem; }
.roadmap-legend-swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

.kanban-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kanban {
  display: grid;
  grid-template-columns: 140px repeat(3, 1fr);
  gap: 0;
  min-width: 800px;
}

.kanban-header {
  padding: 0.65rem 0.75rem; font-weight: 700; font-size: 0.9rem;
  text-align: center; border-bottom: 2px solid var(--cert-border);
  position: sticky; top: 0; z-index: 2; background: var(--cert-bg);
}
.kanban-header-cat { text-align: left; color: var(--cert-text-dim); font-size: 0.8rem; }
.kanban-header-fund { color: #10B981; border-bottom-color: #10B981; }
.kanban-header-assoc { color: #3B82F6; border-bottom-color: #3B82F6; }
.kanban-header-expert { color: #F59E0B; border-bottom-color: #F59E0B; }

.kanban-lane-label {
  padding: 0.75rem 0.5rem;
  font-weight: 700; font-size: 0.85rem;
  border-bottom: 1px solid var(--cert-border);
  display: flex; align-items: flex-start; gap: 0.3rem;
  position: sticky; left: 0; background: var(--cert-bg); z-index: 1;
}
.kanban-lane-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 3px; flex-shrink: 0; }
.kanban-cell {
  padding: 0.5rem;
  border-bottom: 1px solid var(--cert-border);
  display: flex; flex-direction: column; gap: 0.4rem;
}

.kanban-card {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: var(--cert-card); border: 1px solid var(--cert-border); border-radius: 6px;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.15s;
  font-size: 0.82rem;
}
.kanban-card:hover { border-color: var(--cert-accent); transform: translateY(-1px); }
.kanban-card-code { font-weight: 700; white-space: nowrap; }
.kanban-card-title { color: var(--cert-text-dim); font-size: 0.72rem; line-height: 1.3; flex: 1; }
.kanban-card-badge { font-size: 0.6rem; flex-shrink: 0; }

.kanban-row-azure .kanban-card-code { color: #3B82F6; }
.kanban-row-ai .kanban-card-code { color: #8B5CF6; }
.kanban-row-security .kanban-card-code { color: #EF4444; }
.kanban-row-m365 .kanban-card-code { color: #F59E0B; }
.kanban-row-power .kanban-card-code { color: #A855F7; }
.kanban-row-d365 .kanban-card-code { color: #14B8A6; }

.kanban-card-retiring { border-left: 3px solid #F59E0B; }
.kanban-card-retired { opacity: 0.45; }
.kanban-card-beta { border-left: 3px solid #8B5CF6; border-left-style: dashed; }

.kanban-empty { color: var(--cert-text-dim); font-size: 0.72rem; opacity: 0.4; padding: 0.3rem; }

@media (max-width: 768px) {
  .kanban { min-width: 650px; grid-template-columns: 100px repeat(3, 1fr); }
  .kanban-card-title { display: none; }
  .kanban-lane-label { font-size: 0.75rem; }
}

/* ── Video Cards ── */
.cert-video-section {
  margin: 2rem 0 1.5rem;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 16px;
}
.cert-video-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cert-accent);
  margin: 0 0 0.3rem;
}
.cert-video-intro {
  font-size: 0.85rem;
  color: var(--cert-text-dim);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.cert-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.cert-video-grid.cert-video-single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}
a.cert-video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--cert-card);
  border: 1px solid var(--cert-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
a.cert-video-card:hover, a.cert-video-card:focus-visible {
  border-color: var(--cert-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
  outline: none;
}
a.cert-video-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}
.cert-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.cert-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
a.cert-video-card:hover .cert-video-thumb img {
  opacity: 0.85;
}
.cert-video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.cert-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.2s;
}
a.cert-video-card:hover .cert-video-play {
  transform: scale(1.1);
}
.cert-video-play svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  opacity: 0.9;
}
a.cert-video-card:hover .cert-video-play svg {
  opacity: 1;
}
.cert-video-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.cert-video-badge-course {
  background: rgba(16, 185, 129, 0.9);
  color: #000;
}
.cert-video-badge-qa {
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
}
.cert-video-info {
  padding: 0.7rem 0.85rem;
}
.cert-video-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cert-text);
  line-height: 1.4;
}
@media (max-width: 640px) {
  .cert-video-grid { grid-template-columns: 1fr; }
}
