/* ======================================================================
 * PathCraft LMS — EAA Design Tokens
 * ==================================================================== */
:root{
  --pc-gap: 16px;
  --pc-radius: 10px;
  --pc-border: 1px solid #DDE3EF;

  --pc-bg: #F4F6FB;
  --pc-bg-soft: #EEF1F8;
  --pc-bg-hover: #E8EDF8;

  --pc-text: #1F2937;
  --pc-text-dim: #6B7280;

  /* EAA brand palette */
  --pc-primary:  #1B3A6B;
  --pc-primary-light: #2A5298;
  --pc-gold:     #C9A227;
  --pc-gold-light: #F0C040;

  --pc-success: #16a34a;
  --pc-warning: #d97706;
  --pc-error: #dc2626;

  --pc-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ======================================================================
 * Base Helpers
 * ==================================================================== */
.pathcraft-hidden{ display:none !important; }

.pathcraft-card{
  background:#fff;
  border: var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: 0 6px 14px rgba(0,0,0,.04);
}

/* ======================================================================
 * COURSE LIST / PICKER
 * ==================================================================== */
.pathcraft-course-list{
  display:grid;
  gap: 20px;
}

.pathcraft-course-item{
  border: var(--pc-border);
  border-radius: var(--pc-radius);
  padding: 16px;
  background:#fff;
}

.pathcraft-course-item h2,
.pathcraft-course-item h3{
  margin: 0 0 6px;
  font-weight: 900;
}

.pathcraft-course-excerpt{
  color: var(--pc-text-dim);
  font-size: 14px;
  margin-bottom: 10px;
}

/* ======================================================================
 * COURSE PLAYER LAYOUT
 * ==================================================================== */
.pathcraft-player{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 900px){
  .pathcraft-player{
    grid-template-columns: 1fr;
  }
}

/* ======================================================================
 * SIDEBAR
 * ==================================================================== */
.pathcraft-player__sidebar{
  border: var(--pc-border);
  border-radius: var(--pc-radius);
  background:#fff;
  padding: 14px;
  overflow:auto;
}

.pathcraft-course-title{
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.pathcraft-course-progress-summary{
  font-size: 13px;
  color: var(--pc-text-dim);
}

.pathcraft-progress-bar{
  height: 8px;
  background:#e5e7eb;
  border-radius: 999px;
  overflow:hidden;
  margin-top: 6px;
}

.pathcraft-progress-bar-inner{
  height:100%;
  background: var(--pc-primary);
}

/* ======================================================================
 * MODULES
 * ==================================================================== */
.pathcraft-player__module{
  margin-top: 12px;
}

.pathcraft-module-toggle{
  width:100%;
  background: var(--pc-bg-soft);
  border:none;
  border-radius: 10px;
  padding: 10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  font-weight: 900;
  transition: background .15s ease;
}

.pathcraft-module-toggle:hover{
  background: var(--pc-bg-hover);
}

.pathcraft-module-panel{
  margin-top: 6px;
}

.pathcraft-player__lesson-list{
  list-style:none;
  padding:0;
  margin:0;
}

.pathcraft-player__lesson{
  margin: 2px 0;
}

.pathcraft-player__lesson-link{
  display:flex;
  gap: 8px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration:none;
  color: var(--pc-text);
  font-size: 14px;
}

.pathcraft-player__lesson-link:hover{
  background: var(--pc-bg-soft);
}

.pathcraft-player__lesson.is-active .pathcraft-player__lesson-link{
  background: var(--pc-bg-hover);
  font-weight: 800;
}

.pathcraft-player__lesson.is-locked{
  opacity:.55;
}

.pathcraft-lesson-status{
  width:18px;
  text-align:center;
}

/* ======================================================================
 * CONTENT PANEL
 * ==================================================================== */
.pathcraft-player__content{
  min-height: 400px;
}

/* Breadcrumbs */
.pathcraft-breadcrumbs{
  font-size: 13px;
  color: var(--pc-text-dim);
  margin-bottom: 10px;
}

.pathcraft-breadcrumbs a{
  color: var(--pc-primary);
  text-decoration:none;
}

.pathcraft-breadcrumbs a:hover{
  text-decoration:underline;
}

/* Lesson */
.pathcraft-player__lesson-title{
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.pathcraft-lesson-content{
  line-height: 1.65;
}

/* ======================================================================
 * QUIZ (legacy class names retained, but updated to match new renderer)
 * ==================================================================== */
.pathcraft-quiz{
  margin-top: 18px;
  border: var(--pc-border);
  border-radius: var(--pc-radius);
  padding: 16px;
  background:#fff;
}

/* QUIZ PLAYER - extends pathcraft-player for quiz-specific styling */
.pathcraft-player--quiz .pathcraft-player__sidebar {
  padding: 16px;
}

.pathcraft-player--quiz .pathcraft-quiz {
  margin-top: 24px;
}

.pathcraft-quiz__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pathcraft-quiz__title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0;
  color: var(--pc-text);
}

.pc-quiz-meta {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pc-quiz-meta span {
  font-size: 14px;
  color: #6b7280;
}

.pc-quiz-meta strong {
  color: var(--pc-text);
  font-weight: 700;
}

.pathcraft-quiz__timer {
  min-width: 220px;
  text-align: right;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.pc-quiz-sidebar-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.pc-quiz-sidebar-section:last-child {
  border-bottom: none;
}

.pc-quiz-sidebar-section h3 {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pc-quiz-qnav {
  width: 100%;
}

.pc-quiz-qnav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-quiz-qnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: var(--pc-text);
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s ease;
}

.pc-quiz-qnav-link:hover {
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
}

.pc-quiz-qnav-link.is-answered {
  position: relative;
}

.pc-qnav-answered-indicator {
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.pc-quiz-qnav-link.is-active {
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 3px rgba(var(--pc-primary-rgb), 0.1);
}

/* ======================================================================
 * Result Summary Card (shown after submission)
 * ==================================================================== */
.pc-quiz-result-summary {
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pc-quiz-result-summary .pathcraft-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pc-quiz-result-summary .pathcraft-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pathcraft-btn {
  background: var(--pc-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.pathcraft-btn-primary {
  background: var(--pc-primary);
  color: #fff;
}

.pathcraft-btn-primary:hover {
  background: var(--pc-primary-light);
}

.pathcraft-btn-secondary {
  background: #e5e7eb;
  color: var(--pc-text);
}

.pathcraft-btn-secondary:hover {
  background: #d1d5db;
}

.pathcraft-btn:active {
  transform: translateY(0);
}

.pathcraft-quiz__block {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.pathcraft-quiz__option-group {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .pathcraft-player--quiz .pathcraft-quiz__header {
    flex-direction: column;
  }

  .pathcraft-quiz__timer {
    width: 100%;
    text-align: left;
  }

  .pathcraft-player--quiz .pathcraft-player__sidebar {
    order: -1;
  }
}

.pathcraft-quiz__q{
  font-weight: 900;
  margin: 6px 0 12px;
  font-size: 1rem;
}

/* New renderer uses .pathcraft-quiz__options + .pathcraft-quiz__tile */
.pathcraft-quiz__options{
  display:grid;
  gap: 10px;
}

.pathcraft-quiz__tile{
  border: var(--pc-border);
  border-radius: 12px;
  padding: 12px 12px;
  cursor: pointer;
  display:block;
  background:#fff;
  transition: background .15s ease, transform .06s ease;
}

.pathcraft-quiz__tile:hover{
  background: var(--pc-bg-soft);
}

.pathcraft-quiz__tile:active{
  transform: translateY(1px);
}

.pathcraft-quiz__tile input{
  margin-right: 10px;
}

.pathcraft-quiz__tile-body{
  display:flex;
  align-items:flex-start;
  gap: 10px;
}

.pathcraft-quiz__tile-key{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: var(--pc-border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  flex: 0 0 auto;
  margin-top: 1px;
}

.pathcraft-quiz__tile-label{
  font-weight: 700;
  line-height: 1.4;
}

/* Legacy (kept for compatibility with old markup) */
.pathcraft-quiz__choices{
  display:grid;
  gap:10px;
}

.pathcraft-choice-tile{
  display:flex;
  gap:10px;
  padding: 12px;
  border-radius: 10px;
  border: var(--pc-border);
  cursor:pointer;
}

.pathcraft-choice-tile:hover{
  background: var(--pc-bg-soft);
}

.pathcraft-choice-tile__input{ display:none; }

.pathcraft-choice-tile__letter{
  width:28px;
  height:28px;
  border-radius: 6px;
  border: var(--pc-border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.pathcraft-choice-tile__label{ font-weight:700; }

/* Submit row */
.pathcraft-quiz__actions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
}

/* Result panel */
.pathcraft-quiz__result{
  border: var(--pc-border);
  background: var(--pc-bg-soft);
  border-radius: var(--pc-radius);
  padding: 12px 14px;
  margin: 14px 0;
}

.pathcraft-quiz__result.is-success{
  border-color: rgba(22,163,74,.35);
  background: rgba(22,163,74,.06);
}

.pathcraft-quiz__result.is-warning{
  border-color: rgba(217,119,6,.35);
  background: rgba(217,119,6,.06);
}

.pathcraft-quiz__result-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:center;
}

.pathcraft-quiz__result-msg{
  font-weight: 800;
}

.pathcraft-quiz__result-score{
  font-size: 14px;
  color: var(--pc-text);
}

/* Explanation block (new renderer) */
.pathcraft-quiz__explain{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(17,24,39,.15);
}

.pathcraft-quiz__explain-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.pathcraft-quiz__explain-body{
  color: var(--pc-text);
  line-height: 1.6;
}

/* Explanation block (legacy alias) */
.pathcraft-quiz__explanation{
  margin-top: 16px;
  padding: 14px;
  background: var(--pc-bg-soft);
  border-radius: var(--pc-radius);
}

/* Retake row */
.pathcraft-quiz__retake{
  margin-top: 12px;
  display:flex;
  justify-content:flex-end;
}

/* ======================================================================
 * TIMER (bar color + smooth width)
 * ==================================================================== */
.pathcraft-quiz__timer{ user-select:none; }

/* FIX #1: remove timerbar-0 special-case, target all timer bars */
[id^="pc-quiz-timerbar-"]{
  background: var(--pc-primary);
  transition: width .25s linear;
}

/* ======================================================================
 * STICKY BAR
 * ==================================================================== */
.pathcraft-stickybar{
  position: sticky;
  bottom: 0;
  margin-top: 24px;
  padding: 14px;
  border-radius: var(--pc-radius);
  border: var(--pc-border);
  background:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  box-shadow: 0 -6px 18px rgba(0,0,0,.04);
}

/* FIX #2: if you want JS-controlled visibility */
.pathcraft-stickybar{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease;
}
.pathcraft-stickybar:not(.is-visible){
  /* comment these 2 lines out if you want it always visible */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.pathcraft-stickybar.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pathcraft-stickybar__small{
  font-size:12px;
  color: var(--pc-text-dim);
}

.pathcraft-stickybar__inner{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
}

.pathcraft-stickybar__label{
  min-width: 220px;
}

.pathcraft-stickybar__title{
  font-weight: 900;
  line-height: 1.25;
}

.pathcraft-stickybar__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.pathcraft-stickybar__status{
  font-weight: 800;
  color: var(--pc-success);
}

/* Mobile stickybar stacking */
@media (max-width: 900px){
  .pathcraft-stickybar__inner{
    flex-direction: column;
    align-items: stretch;
  }
  .pathcraft-stickybar__actions{
    justify-content:flex-start;
    width:100%;
  }
}


/* Learning templates: keep action bar always visible */
.pc-lesson-shell .pathcraft-stickybar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: 0;
  z-index: 9999;
}

/* ======================================================================
 * BUTTONS
 * ==================================================================== */
.pathcraft-btn{
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  border: var(--pc-border);
  background: #fff;
  color: var(--pc-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pathcraft-btn-primary{
  background: var(--pc-primary);
  color:#fff;
  border-color: var(--pc-primary);
}

.pathcraft-btn-secondary{
  background:#fff;
}

.pathcraft-btn-ghost{
  background:transparent;
  border:none;
  color: var(--pc-text-dim);
}

/* Disabled buttons (submit + timed-out states) */
.pathcraft-btn[disabled],
.pathcraft-btn:disabled{
  opacity: .65;
  cursor: not-allowed;
}

/* ======================================================================
 * DASHBOARD
 * ==================================================================== */
.pathcraft-dashboard{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.pathcraft-dashboard__grid{
  display:grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 20px;
}

.pathcraft-card__title{
  font-weight:900;
  margin-bottom: 6px;
}

.pathcraft-card__next{
  font-size: 13px;
  margin-top: 8px;
  color: var(--pc-text-dim);
}

/* ======================================================================
 * Utility spacing helpers used by PHP
 * ==================================================================== */
.pathcraft-mt-12{ margin-top:12px !important; }
.pathcraft-mt-14{ margin-top:14px !important; }
.pathcraft-mt-18{ margin-top:18px !important; }

/* ======================================================================
 * Card head used by quiz renderer
 * ==================================================================== */
.pathcraft-card__head{
  padding: 12px 16px;
  border-bottom: var(--pc-border);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.pathcraft-card__title{
  margin:0;
  font-size: 1rem;
  font-weight: 900;
}

.pathcraft-card__meta{
  font-size: 12px;
  color: var(--pc-text-dim);
  margin-top: 2px;
}

/* ======================================================================
 * Notices
 * ==================================================================== */
.pathcraft-notice{
  border: var(--pc-border);
  background: var(--pc-bg-soft);
  border-radius: var(--pc-radius);
  padding: 12px 14px;
  color: var(--pc-text);
}

.pc-practice-callout__title{
  font-weight: 900;
  margin: 0 0 6px;
}

.pc-practice-callout__note{
  margin-top: 8px;
  font-size: 12px;
  color: var(--pc-text-dim);
}

.pathcraft-notice a{
  color: var(--pc-primary);
  text-decoration:none;
}

.pathcraft-notice a:hover{
  text-decoration:underline;
}

/* ======================================================================
 * Locked lesson box (replaces inline styles)
 * ==================================================================== */
.pathcraft-lesson-locked{
  border: var(--pc-border);
  background: var(--pc-bg-soft);
  padding: 12px 14px;
  border-radius: var(--pc-radius);
}

/* ======================================================================
 * Media
 * ==================================================================== */
.pathcraft-media{
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.pathcraft-media--audio{
  height: 40px;
}

.pathcraft-lesson-video-embed iframe{
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 12px;
}

/* ======================================================================
 * Module panels: smoother + nicer closed state
 * ==================================================================== */
.pathcraft-module-toggle__meta{
  font-size: 12px;
  color: var(--pc-text-dim);
  font-weight: 800;
}

.pathcraft-module-toggle__chev{
  margin-left: 8px;
  transition: transform .18s ease;
}

.pathcraft-module-toggle.is-open .pathcraft-module-toggle__chev{
  transform: rotate(180deg);
}

/* Locked tag */
.pathcraft-locked-tag{
  margin-left: 8px;
  font-size: 12px;
  color: var(--pc-text-dim);
}

/* ======================================================================
 * Dashboard polish (optional, but makes it "premium")
 * ==================================================================== */
.pathcraft-card__badge{
  display:inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: var(--pc-border);
  background: var(--pc-bg-soft);
  color: var(--pc-text);
  margin-bottom: 10px;
}

.pathcraft-progress-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  color: var(--pc-text-dim);
  margin-bottom: 8px;
}

.pathcraft-card__actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ======================================================================
 * LEARNING COCKPIT STYLES
 * ==================================================================== */

.eaa-course-cockpit {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

.course-header {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress-section {
  align-items: flex-start;
}

.progress-container {
  flex: 1;
}

.eaa-lms-progress-bar {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-continue {
  transition: all 0.3s ease;
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.module-accordion {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.module-accordion:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.module-header {
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.module-header:hover {
  background-color: #e9ecef !important;
}

.lesson-item {
  transition: all 0.3s ease;
}

.lesson-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lesson-item.completed {
  border-left-color: #28a745;
}

.lesson-item.current {
  border-left-color: #007bff;
  background-color: #f8f9ff !important;
}

.lesson-item.locked {
  opacity: 0.7;
}

.adaptive-panel {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.student-tools-panel .pathcraft-card {
  transition: transform 0.3s ease;
}

.student-tools-panel .pathcraft-card:hover {
  transform: translateY(-4px);
}

.certificate-panel {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .progress-section {
    flex-direction: column;
    align-items: stretch;
  }

  .course-meta {
    flex-direction: column;
    gap: 10px;
  }

  .student-tools-panel .pathcraft-card {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* =====================================================
 * Lesson Page — Clean LMS Layout (Sidebar + Content + Sticky Actions)
 * ===================================================== */

.pc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.pc-lesson-shell {
  min-height: 100vh;
  background: #f6f7f9;
}

.pc-lesson-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--pc-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.pc-lesson-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pc-lesson-topbar__brand,
.pc-lesson-topbar__course {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pc-lesson-topbar__course {
  font-weight: 600;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.pc-lesson-topbar__sep {
  opacity: 0.7;
}

.pc-lesson-topbar__right {
  font-size: 14px;
  opacity: 0.95;
  white-space: nowrap;
}

.pc-lesson-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
}

/* Reuse player columns, but soften spacing */
.pathcraft-player--lesson {
  gap: 16px;
}

.pc-lesson-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow: auto;
}

.pc-sidebar-card {
  padding: 14px;
  margin-bottom: 12px;
}

.pc-sidebar-progress__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pc-sidebar-progress__label {
  font-weight: 700;
  color: #111827;
}

.pc-sidebar-progress__count {
  font-size: 12px;
  color: #6b7280;
}

.pc-sidebar-progress__meta {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.pc-sidebar-continue {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.pc-sidebar-continue:hover {
  background: #e5e7eb;
}

.pc-sidebar-outline__title {
  font-weight: 800;
  margin-bottom: 10px;
  color: #111827;
}

.pc-outline-module {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}

.pc-outline-module.is-collapsed {
  opacity: 0.98;
}

/* Module toggle button */
.pc-outline-module .pathcraft-module-toggle {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.pc-outline-module .pathcraft-module-title {
  font-weight: 700;
  color: #111827;
  font-size: 13px;
  text-align: left;
  line-height: 1.25;
}

.pc-outline-module .pathcraft-module-toggle__chev {
  opacity: 0.7;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.pc-outline-module .pathcraft-module-toggle.is-open .pathcraft-module-toggle__chev,
.pc-outline-module .pathcraft-module-toggle__chev.is-open {
  transform: rotate(180deg);
}

.pc-outline-list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.pc-outline-item {
  margin: 0;
}

.pc-outline-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  font-size: 13px;
}

.pc-outline-link:hover {
  background: #f3f4f6;
}

.pc-outline-icon {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.pc-outline-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-outline-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.pc-outline-item.is-active .pc-outline-link {
  background: #eef2ff;
  border: 1px solid #e5e7eb;
}

.pc-outline-item.is-completed .pc-outline-text {
  color: #374151;
}

.pc-outline-item.is-locked .pc-outline-link {
  opacity: 0.7;
}

.pc-outline-lock-reason {
  margin: 6px 10px 10px 38px;
  font-size: 11px;
  color: #4b5563;
  line-height: 1.35;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 8px;
}

.pc-lesson-main {
  min-width: 0;
}

.pc-lesson-card {
  padding: 18px;
}

.pc-lesson-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 12px;
}


/* Header action row (Back / Prev / Next) */
.pc-lesson-header-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pc-header-btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #e5e7eb;
  background:#fff;
  color:#111827;
}
.pc-header-btn:hover{ background:#f3f4f6; }
.pc-header-btn-group{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.pc-header-btn--primary{
  background: var(--pc-primary);
  color:#fff;
  border-color: rgba(0,0,0,0.06);
}
.pc-header-btn--primary:hover{
  background: var(--pc-primary);
  color:#fff;
  border-color: rgba(0,0,0,0.06);
  filter: brightness(0.97);
}
.pc-header-btn--disabled{
  opacity: 0.55;
  pointer-events:none;
}

/* Locked header link (clickable to show reason) */
.pc-header-btn[aria-disabled="true"]{
  opacity: 0.65;
  cursor: not-allowed;
}
.pc-header-btn.pc-locked-link[aria-disabled="true"]{
  pointer-events: auto;
}

/* Header Help dropdown (native <details>) */
.pc-help-menu{
  position: relative;
  display: inline-block;
}
.pc-help-menu > summary{
  list-style: none;
  cursor: pointer;
}
.pc-help-menu > summary::-webkit-details-marker{ display:none; }
.pc-help-menu__panel{
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: var(--pc-bg);
  border: var(--pc-border);
  border-radius: 12px;
  padding: 6px;
  z-index: 50;
}
.pc-help-menu__item{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--pc-text);
  font-weight: 800;
  font-size: 13px;
}
.pc-help-menu__item:hover{ background: var(--pc-bg-soft); }


.pc-lesson-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #111827;
}

.pc-lesson-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.pc-lesson-content {
  font-size: 16px;
  line-height: 1.7;
  color: #111827;
}

.pc-lesson-content h2,
.pc-lesson-content h3 {
  margin-top: 22px;
}

.pc-lesson-bottompad {
  height: 120px; /* space for fixed sticky bar */
}

/* Sticky action bar (fixed for consistent visibility) */
.pc-lesson-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e5e7eb;
}

.pc-lesson-stickybar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pc-lesson-stickybar__context {
  font-size: 12px;
  color: #6b7280;
}

.pc-lesson-stickybar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-lesson-stickybar__done {
  font-size: 13px;
  color: #6b7280;
}

/* Button variants (keep neutral + lightweight) */
.pathcraft-btn--ghost {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.pathcraft-btn--ghost:hover {
  background: #f3f4f6;
}

/* Button variants for clean LMS templates */
.pathcraft-btn{
  color: var(--pc-text);
  text-decoration:none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pathcraft-btn--primary{
  background: var(--pc-primary);
  color: #fff;
  border: 1px solid var(--pc-primary);
}

.pathcraft-btn--primary:hover,
.pathcraft-btn--primary:focus,
.pathcraft-btn--primary:focus-visible{
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
  filter: brightness(0.97);
  text-decoration: none;
}

.pathcraft-btn--secondary{
  background: #fff;
  color: var(--pc-text);
  border: 1px solid #e5e7eb;
}

.pathcraft-btn--secondary:hover{ background: #f3f4f6; }

/* Disabled state
 * - Buttons should be non-interactive.
 * - Locked LINKS (anchors) should still be clickable to show a lock reason via JS alert.
 */
.pathcraft-btn[aria-disabled="true"]{
  opacity: .6;
  cursor: not-allowed;
}

/* Default: disable pointer events for disabled buttons.
 * NOTE: we intentionally re-enable pointer events for locked anchors below.
 */
.pathcraft-btn[aria-disabled="true"]:not(a){
  pointer-events: none;
}

/* Locked anchors should remain clickable (they show a lock reason via JS alert). */
.pc-locked-link[aria-disabled="true"]{
  pointer-events: auto;
}


/* Responsive */
@media (max-width: 980px) {
  .pc-lesson-sidebar {
    position: relative;
    top: auto;
    max-height: none;
  }

  .pc-lesson-topbar__course {
    max-width: 54vw;
  }
}

@media (max-width: 640px) {
  .pc-lesson-title {
    font-size: 22px;
  }

  .pc-lesson-stickybar__left {
    display: none;
  }
}



/* =====================================================
 * Lesson Page — Clean LMS Layout (Sidebar + Content + Sticky Actions)
 * ===================================================== */

.pc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.pc-muted {
  color: #6b7280;
  font-size: 13px;
}

.pc-lesson-shell {
  min-height: 100vh;
  background: var(--pc-bg);
}

.pc-lesson-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--pc-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.pc-lesson-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pc-lesson-topbar__brand,
.pc-lesson-topbar__course {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45vw;
}

.pc-lesson-topbar__course {
  font-weight: 600;
  opacity: 0.95;
}

.pc-lesson-topbar__sep {
  opacity: 0.6;
}

.pc-lesson-topbar__right {
  font-size: 14px;
  opacity: 0.9;
  white-space: nowrap;
}

.pathcraft-player--lesson {
  max-width: 1180px;
}

.pc-lesson-layout {
  padding: 18px;
  gap: 18px;
}

.pc-lesson-sidebar {
  align-self: start;
}

.pc-lesson-sidebar-ui {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pc-sidebar-card {
  padding: 14px;
}

.pc-sidebar-progress__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pc-sidebar-progress__label {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}

.pc-sidebar-progress__count {
  font-size: 12px;
  color: #6b7280;
}

.pc-sidebar-progress__meta {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.pc-sidebar-continue {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 13px;
}

.pc-sidebar-continue:hover {
  background: #f3f4f6;
}

.pc-sidebar-outline__title {
  font-weight: 800;
  font-size: 13px;
  color: #111827;
  margin-bottom: 10px;
}

.pc-outline-module {
  border-top: 1px solid #eef2f7;
  padding-top: 10px;
  margin-top: 10px;
}

.pc-outline-module:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.pc-outline-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
}

.pc-outline-item {
  margin: 0;
  padding: 0;
}

/* Quiz learning template: avoid duplicate quiz title.
   The template already renders the quiz title as the page header (H1). */
body.pc-learning-quiz .pc-quiz-content .pathcraft-quiz__header .pathcraft-quiz__title {
  display: none;
}

.pc-outline-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  font-size: 13px;
}

.pc-outline-link:hover {
  background: #f3f4f6;
}

.pc-outline-item.is-active .pc-outline-link {
  background: #eef2ff;
  border: 1px solid #e0e7ff;
}

.pc-outline-item.is-completed .pc-outline-text {
  opacity: 0.85;
}

.pc-outline-item.is-locked .pc-outline-link {
  opacity: 0.65;
}

.pc-outline-icon {
  width: 18px;
  text-align: center;
  flex: 0 0 18px;
}

.pc-outline-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-outline-badge {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

.pc-outline-lock-reason {
  margin: 0 10px 8px 38px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.pc-lesson-main {
  align-self: start;
}

.pc-lesson-card {
  padding: 22px;
}

.pc-lesson-header {
  margin-bottom: 14px;
}

.pc-lesson-title {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.2;
  color: #111827;
}

.pc-lesson-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.pc-lesson-content {
  font-size: 16px;
  line-height: 1.65;
  color: #111827;
}

.pc-lesson-content h2 { margin-top: 22px; }
.pc-lesson-content h3 { margin-top: 18px; }

/* Learning templates (quiz/assignment): reserve space for fixed action bar */
body.pc-learning-page .pc-lesson-bottompad {
  height: 92px;
}

@media (max-width: 980px) {
  body.pc-learning-page .pc-lesson-bottompad { height: 132px; }
}

/* Learning templates: compact fixed bottom action bar */
body.pc-learning-page .pc-lesson-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
}

/* The stickybar element also has .pathcraft-stickybar, which adds padding/border/radius.
   Strip those for learning templates so the bar stays compact and doesn’t create extra whitespace. */
body.pc-learning-page .pc-lesson-stickybar.pathcraft-stickybar {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.pc-lesson-stickybar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 18px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pc-lesson-stickybar__context {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55vw;
}

.pc-lesson-stickybar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.pc-lesson-stickybar__done {
  font-size: 13px;
  color: #6b7280;
}

/* === Launch hotfix: lesson sticky bar stability === */
.pc-lesson-stickybar__inner {
  flex-wrap: wrap;
}

.pc-lesson-stickybar__left,
.pc-lesson-stickybar__right {
  min-width: 0;
}

.pc-lesson-stickybar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pc-mark-complete-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.pc-mark-complete-form .pathcraft-lesson-complete-btn {
  margin: 0;
  position: static;
  float: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pc-lesson-stickybar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .pc-lesson-stickybar__right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .pc-lesson-stickybar__right {
    flex-direction: column;
    align-items: stretch;
  }

  .pc-mark-complete-form,
  .pc-mark-complete-form .pathcraft-lesson-complete-btn {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .pc-lesson-layout {
    padding: 14px;
  }

  .pc-lesson-topbar__brand,
  .pc-lesson-topbar__course {
    max-width: 65vw;
  }

  .pc-lesson-title {
    font-size: 26px;
  }

  .pc-lesson-stickybar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .pc-lesson-stickybar__right {
    justify-content: flex-end;
  }
}


/* ============================================================
 * Clean Learning Shell (Lesson + Quiz + Assignment)
 * ============================================================ */

/* Lesson template: hide legacy Access Gate-injected navigation block.
   The clean template provides its own header + sticky actions. */
body.pathcraft-lms-lesson-template .pc-lesson-content .lesson-navigation {
  display: none;
}
body.pc-learning-page { background: #f6f7f9; }
.pc-learning-shell { min-height: 100vh; }

.pathcraft-player--quiz,
.pathcraft-player--assignment { gap: 16px; }

/* Ensure embedded quiz/assignment UI fits inside the content card */
.pc-quiz-content .pathcraft-quiz,
.pc-quiz-content .pathcraft-quiz * { max-width: 100%; }

/* Quiz template already provides the LEFT outline sidebar.
   The [eaa_quiz] shortcode also renders its own player grid + sidebar (Course/Questions),
   which results in an awkward 3-column layout. Hide/flatten the inner player here. */
body.pc-learning-quiz .pc-quiz-content .pathcraft-player--quiz[data-pc-quiz-player="1"]{
  display: block;
  padding: 0;
  margin: 0;
  max-width: 100%;
  gap: 0;
}

body.pc-learning-quiz .pc-quiz-content .pathcraft-player--quiz[data-pc-quiz-player="1"] > .pathcraft-player__sidebar{
  display: none !important;
}

body.pc-learning-quiz .pc-quiz-content .pathcraft-player--quiz[data-pc-quiz-player="1"] > .pathcraft-player__content{
  padding: 0;
  margin: 0;
  background: transparent;
}

body.pc-learning-quiz .pc-quiz-content .pathcraft-player--quiz[data-pc-quiz-player="1"] > .pathcraft-player__content > .pathcraft-quiz{
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pc-assignment-content .pathcraft-assignment { max-width: 100%; }

/* =====================================================================
 * Course Page Layout — Use more of the viewport
 * The course template uses the lesson layout wrapper for consistency,
 * but the 1180px cap can feel like ~1/3 width on large displays.
 * =================================================================== */
body.pathcraft-lms-course-template .pc-lesson-layout{
  max-width: 100%;
  padding: 24px;
}

/* Course single template — tighten spacing & typography */
body.pathcraft-lms-course-template .pathcraft-player{
  max-width: 1280px;
  padding: 20px;
  gap: 18px;
}

/* Course page does not use the fixed sticky bar; reduce unused bottom padding */
body.pathcraft-lms-course-template .pc-lesson-bottompad{
  height: 36px;
}

body.pathcraft-lms-course-template .pathcraft-player__sidebar{
  padding: 12px;
}

body.pathcraft-lms-course-template .pc-lesson-card{
  padding: 20px;
}

body.pathcraft-lms-course-template .pc-lesson-header{
  padding-bottom: 10px;
  margin-bottom: 12px;
}

body.pathcraft-lms-course-template .pc-lesson-title{
  font-size: 26px;
  margin: 0 0 6px;
}

body.pathcraft-lms-course-template .pc-lesson-header-actions{
  margin-top: 10px;
}

body.pathcraft-lms-course-template .pc-lesson-content{
  font-size: 15px;
  line-height: 1.65;
}

body.pathcraft-lms-course-template .pc-course-content p{
  margin: 0 0 12px;
}

body.pathcraft-lms-course-template .pc-course-content h2{
  margin-top: 18px;
}

body.pathcraft-lms-course-template .pc-course-content h3{
  margin-top: 16px;
}

@media (max-width: 900px){
  body.pathcraft-lms-course-template .pathcraft-player{
    padding: 14px;
    gap: 14px;
  }
}

@media (max-width: 640px){
  body.pathcraft-lms-course-template .pc-lesson-title{
    font-size: 22px;
  }
}

/* Module counts in outline */
.pc-outline-module-count{
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  font-weight: 800;
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
}
.pathcraft-module-toggle{
  display:flex;
  align-items:center;
  gap: 10px;
}
.pathcraft-module-toggle__chev{ margin-left: 6px; }

/* =========================================================
 * HOTFIX: learning-template button hardening
 * Purpose:
 * - Prevent theme/default button colors from leaking into LMS UI
 * - Normalize <a> and <button> variants across lesson/quiz/assignment templates
 * ======================================================= */

body.pc-learning-page .pathcraft-btn,
body.pc-learning-page a.pathcraft-btn,
body.pc-learning-page button.pathcraft-btn,
body.pc-learning-page input[type="submit"].pathcraft-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: none;
}

/* Primary */
body.pc-learning-page .pathcraft-btn--primary,
body.pc-learning-page a.pathcraft-btn--primary,
body.pc-learning-page button.pathcraft-btn--primary,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--primary {
  background: var(--pc-primary) !important;
  color: #fff !important;
  border-color: var(--pc-primary) !important;
}

body.pc-learning-page .pathcraft-btn--primary:hover,
body.pc-learning-page .pathcraft-btn--primary:focus,
body.pc-learning-page .pathcraft-btn--primary:focus-visible,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--primary:hover,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--primary:focus,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--primary:focus-visible {
  background: var(--pc-primary) !important;
  color: #fff !important;
  border-color: var(--pc-primary) !important;
  filter: brightness(0.96);
  box-shadow: none !important;
  outline: none;
}

/* Ghost */
body.pc-learning-page .pathcraft-btn--ghost,
body.pc-learning-page a.pathcraft-btn--ghost,
body.pc-learning-page button.pathcraft-btn--ghost,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--ghost {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
}

body.pc-learning-page .pathcraft-btn--ghost:hover,
body.pc-learning-page .pathcraft-btn--ghost:focus,
body.pc-learning-page .pathcraft-btn--ghost:focus-visible,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--ghost:hover,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--ghost:focus,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--ghost:focus-visible {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
  box-shadow: none !important;
  outline: none;
}

/* Secondary */
body.pc-learning-page .pathcraft-btn--secondary,
body.pc-learning-page a.pathcraft-btn--secondary,
body.pc-learning-page button.pathcraft-btn--secondary,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--secondary {
  background: #fff !important;
  color: var(--pc-text) !important;
  border: 1px solid #e5e7eb !important;
}

body.pc-learning-page .pathcraft-btn--secondary:hover,
body.pc-learning-page .pathcraft-btn--secondary:focus,
body.pc-learning-page .pathcraft-btn--secondary:focus-visible,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--secondary:hover,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--secondary:focus,
body.pc-learning-page .pathcraft-btn.pathcraft-btn--secondary:focus-visible {
  background: #f3f4f6 !important;
  color: var(--pc-text) !important;
  border-color: #d1d5db !important;
  box-shadow: none !important;
  outline: none;
}

/* Disabled / locked */
body.pc-learning-page .pathcraft-btn[disabled],
body.pc-learning-page .pathcraft-btn:disabled,
body.pc-learning-page .pathcraft-btn[aria-disabled="true"] {
  opacity: .6;
}

body.pc-learning-page button.pathcraft-btn[disabled],
body.pc-learning-page button.pathcraft-btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
}
