/**
 * Curriculum Checklist — Checklist styles
 * File: cck-checklist.css
 * Integrated version:
 * - preserves full plugin structure
 * - applies earlier custom code as priority layer
 * - improves specificity and responsiveness where helpful
 */

/* =========================
   Shell / section wrappers
   ========================= */

.cck-checklist-shell{
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  color: #17384D;
}

.cck-checklist-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cck-checklist-header-main{
  min-width: 0;
  flex: 1 1 480px;
}

.cck-checklist-title-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cck-checklist-title{
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0C2C43;
  letter-spacing: -0.01em;
}

.cck-checklist-description{
  margin: 7px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(12, 44, 67, 0.72);
}

.cck-checklist-header-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cck-checklist-meta-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid rgba(12, 44, 67, 0.08);
  border-radius: 999px;
  background: #F7F5EF;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.cck-checklist-meta-label{
  color: rgba(12, 44, 67, 0.58);
  font-weight: 600;
}

.cck-checklist-meta-value{
  color: #0C2C43;
  font-weight: 700;
}

.cck-section-subtitle{
  font-size: 0.95rem;
  font-weight: 800;
  color: #0C2C43;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* =========================
   Tooltip
   ========================= */

.cck-checklist-tooltip-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
}

.cck-checklist-tooltip-icon{
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.cck-checklist-tooltip-fallback{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  background: #0C2C43;
}

.cck-checklist-tooltip-content{
  position: absolute;
  z-index: 30;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(360px, 82vw);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(12, 44, 67, 0.10);
  background: #FCFBF7;
  box-shadow: 0 14px 32px rgba(12, 44, 67, 0.10);
  color: #355166;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.cck-checklist-tooltip-wrap:hover .cck-checklist-tooltip-content,
.cck-checklist-tooltip-wrap:focus .cck-checklist-tooltip-content,
.cck-checklist-tooltip-wrap:focus-within .cck-checklist-tooltip-content{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cck-tooltip-formula{
  display: inline-block;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(12, 44, 67, 0.05);
  color: #0C2C43;
  font-size: 11.5px;
  line-height: 1.55;
  font-weight: 600;
}

/* =========================
   Guest / empty / inline messages
   ========================= */

.cck-checklist-guest-message,
.cck-checklist-empty-tree,
.cck-inline-message{
  border: 1px solid rgba(12, 44, 67, 0.08);
  background: #F8F6F1;
  color: rgba(12, 44, 67, 0.78);
  border-radius: 16px;
  padding: 13px 15px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.cck-inline-message.cck-error,
.cck-inline-message.cck-template-error{
  background: #FDF2F4;
  border-color: #F2C9CF;
  color: #8D2C35;
}

/* =========================
   Progress area
   ========================= */

.cck-checklist-progress-area{
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.cck-checklist-progress-pie-wrap,
.cck-checklist-progress-summary-wrap{
  min-width: 0;
}

.cck-checklist-progress-summary-wrap{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cck-progress-summary-card,
.cck-last-completed-card,
.cck-subject-progress-card{
  position: relative;
  background: #FCFBF7;
  border: 1px solid rgba(12, 44, 67, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(12, 44, 67, 0.05);
  padding: 14px 16px;
  overflow: visible;
}

.cck-progress-summary-card::before,
.cck-last-completed-card::before,
.cck-subject-progress-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(233,123,123,0.45),
    rgba(233,176,123,0.45),
    rgba(233,223,123,0.45),
    rgba(134,224,163,0.45),
    rgba(127,215,230,0.45),
    rgba(138,167,234,0.45),
    rgba(181,154,232,0.45),
    rgba(232,143,201,0.45)
  );
  pointer-events: none;
}

.cck-progress-summary-top,
.cck-subject-progress-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cck-progress-summary-title,
.cck-progress-summary-heading,
.cck-last-completed-title,
.cck-subject-progress-title{
  font-weight: 800;
  color: #0C2C43;
}

.cck-progress-summary-title,
.cck-progress-stat-label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cck-progress-summary-percent,
.cck-subject-progress-percent{
  font-weight: 800;
  color: #0C2C43;
  white-space: nowrap;
  font-size: 1.2em;
}

.cck-progress-summary-bar,
.cck-subject-progress-bar,
.cck-node-subtree-progress{
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #E9EEF2;
  overflow: hidden;
  margin-top: 12px;
}

.cck-progress-summary-fill,
.cck-subject-progress-fill,
.cck-node-subtree-progress-fill{
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(233,123,123,0.88),
    rgba(233,176,123,0.88),
    rgba(233,223,123,0.88),
    rgba(134,224,163,0.88),
    rgba(127,215,230,0.88),
    rgba(138,167,234,0.88),
    rgba(181,154,232,0.88),
    rgba(232,143,201,0.88)
  );
}

.cck-progress-summary-meta,
.cck-subject-progress-meta{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(12, 44, 67, 0.68);
}

.cck-progress-summary-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.cck-progress-stat{
  min-width: 90px;
}

.cck-progress-stat-label{
  display: block;
  font-size: 0.74rem;
  color: rgba(12, 44, 67, 0.58);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cck-progress-stat-value{
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0C2C43;
}

.cck-last-completed-body{
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cck-last-completed-item{
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  color: #0C2C43;
}

.cck-last-completed-subject,
.cck-last-completed-date{
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(12, 44, 67, 0.60);
}

/* =========================
   Subject Progress Slider
   ========================= */

.cck-subject-progress-section{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cck-subject-progress-list{
  display: block !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  padding-bottom: 0 !important;
}

.cck-subject-progress-list::-webkit-scrollbar{
  display: none !important;
}

.cck-subject-progress-slider{
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cck-subject-progress-slider-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cck-subject-progress-slider-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 700;
  color: #0C2C43;
}

.cck-subject-progress-nav{
  appearance: none;
  border: 1px solid rgba(12, 44, 67, 0.10);
  background: #FCFBF7;
  color: #0C2C43;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(12, 44, 67, 0.05);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.cck-subject-progress-nav:hover:not(:disabled){
  background: #F7F5EF;
  border-color: rgba(243, 119, 72, 0.28);
  transform: translateY(-1px);
}

.cck-subject-progress-nav:disabled{
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.cck-subject-progress-nav span{
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 800;
}

/* earlier code takes priority here */
.cck-subject-progress-viewport{
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 20px 5px;
  border: 2px dashed #c1c1c1;
  border-radius: 10px;
  box-shadow: 1px 1px 5px 1px #c1c1c1;
}

.cck-subject-progress-track{
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  will-change: transform;
}

.cck-subject-progress-slide{
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.cck-subject-progress-card{
  position: relative;
  width: 95%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  background: #FCFBF7;
  border: 1px solid rgba(12, 44, 67, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(12, 44, 67, 0.05);
  padding: 14px 16px;
  overflow: visible;
}

.cck-subject-progress-right{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cck-subject-progress-weight-pill{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(12, 44, 67, 0.06);
  color: #0C2C43;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap;
}

.cck-subject-progress-weight-label{
  font-weight: 800;
  color: rgba(12, 44, 67, 0.72);
}

.cck-subject-progress-weight-value{
  font-weight: 800;
  color: #0C2C43;
}

/* =========================
   Tree section
   ========================= */

.cck-checklist-tree-section{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border-radius: 10px;
  border: 2px dashed #c1c1c1;
}

.cck-checklist-tree{
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* =========================
   Node structure
   ========================= */

.cck-checklist-node{
  border: 1px solid rgba(12, 44, 67, 0.08);
  background: #FCFBF7;
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  box-shadow: 0 3px 10px rgba(12, 44, 67, 0.04);
  position: relative;
}

.cck-checklist-node:hover{
  border-color: rgba(12, 44, 67, 0.14);
  box-shadow: 0 8px 22px rgba(12, 44, 67, 0.07);
}

.cck-node-is-inactive{
  opacity: 0.72;
}

.cck-node-is-checkable.cck-node-is-checked{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.78)),
    linear-gradient(
      90deg,
      rgba(240,253,244,0.90),
      rgba(252,251,247,1)
    );
}

.cck-node-row{
  width: 100%;
  position: relative;
}

.cck-node-main{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  position: relative;
}

.cck-node-rail::before{
  z-index: 1;
}

.cck-node-toggle-placeholder{
  position: relative;
  z-index: 0;
  background: transparent;
}

.cck-node-checkbox-wrap{
  position: relative;
  z-index: 2;
}

.cck-node-toggle,
.cck-node-toggle-placeholder,
.cck-node-checkbox-wrap,
.cck-node-checkbox-placeholder{
  position: relative;
}

.cck-node-main > .cck-node-toggle,
.cck-node-main > .cck-node-toggle-placeholder,
.cck-node-main > .cck-node-checkbox-wrap,
.cck-node-main > .cck-node-checkbox-placeholder{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  padding-top: 11px;
}

/* subject rows are slightly taller, so give them a touch more offset */
.cck-node-level-subject > .cck-node-row > .cck-node-main > .cck-node-toggle,
.cck-node-level-subject > .cck-node-row > .cck-node-main > .cck-node-toggle-placeholder,
.cck-node-level-subject > .cck-node-row > .cck-node-main > .cck-node-checkbox-wrap,
.cck-node-level-subject > .cck-node-row > .cck-node-main > .cck-node-checkbox-placeholder{
  padding-top: 13px;
}

.cck-node-toggle,
.cck-node-toggle-placeholder{
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.cck-node-toggle{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
}

.cck-node-toggle:hover{
  background: rgba(12, 44, 67, 0.06);
}

.cck-node-toggle-icon{
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cck-node-toggle-icon::before{
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #4A6478;
  border-bottom: 2px solid #4A6478;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -2px;
}

.cck-node-toggle[aria-expanded="false"] .cck-node-toggle-icon::before{
  transform: rotate(-45deg);
  margin-top: 0;
}

.cck-node-checkbox-wrap,
.cck-node-checkbox-placeholder{
  width: 22px;
  height: 22px;
  margin: 0 auto;
  position: relative;
}

.cck-node-checkbox{
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.cck-node-checkbox-ui{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(12, 44, 67, 0.18);
  background: #FFFFFF;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.cck-node-checkbox:hover + .cck-node-checkbox-ui,
.cck-node-checkbox:focus + .cck-node-checkbox-ui{
  border-color: #F37748;
  box-shadow: 0 0 0 3px rgba(243,119,72,0.10);
}

.cck-node-checkbox:checked + .cck-node-checkbox-ui{
  border-color: #F37748;
  background: rgba(243,119,72,0.10);
}

.cck-node-checkbox:checked + .cck-node-checkbox-ui::after{
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #F37748;
  border-bottom: 2px solid #F37748;
  transform: rotate(-45deg);
  margin-top: -1px;
}

.cck-node-checkbox:disabled + .cck-node-checkbox-ui{
  opacity: 0.58;
  cursor: not-allowed;
}

.cck-node-content{
  min-width: 0;
  flex: none;
  padding: 14px 16px 14px 0;
  position: relative;
}

.cck-node-content::before{
  content: "";
  position: absolute;
  left: -14px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(12, 44, 67, 0.06);
}

/* subject-only boxed look retained */
.cck-node-level-subject > .cck-node-row > .cck-node-main > .cck-node-content{
  min-width: 0;
  width: 100%;
  padding: 14px 16px 14px 0;
  position: relative;
  background: #FCFBF7;
  border-radius: 18px;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

/* flatten non-subject rows per earlier code */
.cck-checklist-node:not(.cck-node-level-subject){
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  transition: none !important;
  box-shadow: none !important;
}

.cck-checklist-node:not(.cck-node-level-subject):hover{
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.cck-checklist-node:not(.cck-node-level-subject) > .cck-node-row,
.cck-checklist-node:not(.cck-node-level-subject) > .cck-node-row > .cck-node-main,
.cck-checklist-node:not(.cck-node-level-subject) > .cck-node-row > .cck-node-main > .cck-node-content{
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cck-checklist-node:not(.cck-node-level-subject) > .cck-node-row > .cck-node-main > .cck-node-content{
  overflow: visible !important;
}

.cck-node-title-row{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.cck-node-title{
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 700;
  color: #0C2C43;
  min-width: 0;
  word-break: break-word;
  flex: 1 1 auto;
}

.cck-node-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 7px;
}

.cck-node-meta-item{
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(12, 44, 67, 0.58);
}

.cck-node-status-badge{
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 700;
  border: 1px solid transparent;
}

.cck-node-status-done{
  color: #1E5A3A;
  background: #EEF9F1;
  border-color: #CDEDD6;
}

.cck-node-status-inactive{
  color: #5A6F80;
  background: #EEF3F7;
  border-color: #D6E0E8;
}

.cck-node-subtree-progress{
  margin-top: 10px;
  max-width: 320px;
}

/* topic level and below: horizontal dotted borders only */
.cck-node-level-topic > .cck-node-row > .cck-node-main > .cck-node-content,
.cck-node-level-item > .cck-node-row > .cck-node-main > .cck-node-content,
.cck-node-level-subitem > .cck-node-row > .cck-node-main > .cck-node-content,
.cck-node-level-detail > .cck-node-row > .cck-node-main > .cck-node-content,
.cck-node-level-subdetail > .cck-node-row > .cck-node-main > .cck-node-content,
.cck-node-level-subsubdetail > .cck-node-row > .cck-node-main > .cck-node-content,
.cck-node-level-detail2 > .cck-node-row > .cck-node-main > .cck-node-content,
.cck-node-level-detail3 > .cck-node-row > .cck-node-main > .cck-node-content,
.cck-node-level-detail4 > .cck-node-row > .cck-node-main > .cck-node-content{
  border-top: 1px dotted #c1c1c1 !important;
  border-bottom: 1px dotted #c1c1c1 !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.cck-node-level-subject > .cck-node-row > .cck-node-main > .cck-node-content{
  border: none;
  box-shadow: none;
}

/* =========================
   Children / nesting
   ========================= */

.cck-node-children{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 10px 10px;
}

.cck-node-children[hidden]{
  display: none !important;
}

.cck-node-depth-0{ margin-left: 0; }
.cck-node-depth-1{ margin-left: 12px; }
.cck-node-depth-2{ margin-left: 24px; }
.cck-node-depth-3{ margin-left: 36px; }
.cck-node-depth-4{ margin-left: 48px; }
.cck-node-depth-5{ margin-left: 60px; }
.cck-node-depth-6{ margin-left: 72px; }

/* =========================
   Loading / pending state hooks
   ========================= */

.cck-checklist-shell.is-saving .cck-node-checkbox-ui,
.cck-checklist-node.is-saving .cck-node-checkbox-ui{
  opacity: 0.72;
}

.cck-checklist-shell.is-loading{
  pointer-events: none;
  opacity: 0.88;
}

/* =========================
   Standalone Last Completed shortcode only
   ========================= */

.cck-last-completed-card-solo{
  max-width: 420px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(12, 44, 67, 0.08);
  background: #FCFBF7;
  box-shadow: 0 8px 24px rgba(12, 44, 67, 0.05);
  position: relative;
  overflow: hidden;
}

.cck-last-completed-card-solo::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(243, 119, 72, 0.65);
  pointer-events: none;
}

.cck-last-completed-card-solo .cck-last-completed-title{
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.4;
  font-weight: 800;
  color: #0C2C43;
}

.cck-last-completed-card-solo .cck-last-completed-body{
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cck-last-completed-card-solo .cck-last-completed-item{
  font-size: 0.96rem;
  line-height: 1.58;
  font-weight: 700;
  color: #0C2C43;
  word-break: break-word;
}

.cck-last-completed-card-solo .cck-last-completed-subject{
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(12, 44, 67, 0.62);
  font-weight: 600;
}

.cck-last-completed-card-solo .cck-last-completed-date,
.cck-last-completed-card-solo .cck-last-completed-empty{
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(12, 44, 67, 0.56);
}

.cck-last-completed-card-solo .cck-last-completed-empty{
  font-style: italic;
}

/* =========================================
   BUTTON HOVER / FOCUS
   retained from earlier code
   ========================================= */
button:focus,
button:hover,
.menu-toggle:hover,
.ast-button:hover,
.ast-custom-button:hover,
.button:hover,
input[type="reset"]:hover,
input[type="reset"]:focus,
input#submit:hover,
input#submit:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
form[class*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover,
form[class*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:focus,
body .wp-block-file .wp-block-file__button:hover,
body .wp-block-file .wp-block-file__button:focus{
  background-color: #f37748;
  box-shadow: 1px 1px 5px 1px #c1c1c1;
}

/* =========================================
   CHECKLIST-TREE ONLY: subtree bars become solid orange
   ========================================= */
.cck-checklist-tree .cck-node-subtree-progress{
  background: gainsboro !important;
}

.cck-checklist-tree .cck-node-subtree-progress-fill{
  background: #f37748 !important;
}

.cck-node-toggle {
    margin-top: 15px;
    margin-left: 10px;
}

.cck-node-rail {
    margin-top: 15px;
    margin-left: 10px;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 920px){
  .cck-checklist-progress-area{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .cck-subject-progress-slide{
    justify-content: stretch;
  }

  .cck-subject-progress-card{
    width: 100%;
  }

  .cck-checklist-tree-section{
    padding: 12px;
  }
}

@media (max-width: 640px){
  .cck-checklist-header{
    flex-direction: column;
    align-items: stretch;
  }

  .cck-node-main{
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .cck-node-content{
    padding: 12px 12px 12px 0;
  }

  .cck-node-content::before{
    left: -10px;
  }

  .cck-node-depth-0{ margin-left: 0; }
  .cck-node-depth-1{ margin-left: 8px; }
  .cck-node-depth-2{ margin-left: 14px; }
  .cck-node-depth-3{ margin-left: 20px; }
  .cck-node-depth-4{ margin-left: 26px; }
  .cck-node-depth-5{ margin-left: 32px; }
  .cck-node-depth-6{ margin-left: 38px; }

  .cck-subject-progress-list{
    grid-template-columns: 1fr;
  }

  .cck-progress-summary-meta,
  .cck-subject-progress-meta{
    flex-direction: column;
    align-items: flex-start;
  }

  .cck-subject-progress-right{
    width: 100%;
    justify-content: space-between;
  }

  .cck-subject-progress-slider-header{
    gap: 10px;
    flex-wrap: wrap;
  }

  .cck-subject-progress-nav{
    width: 34px;
    height: 34px;
  }

  .cck-subject-progress-viewport{
    padding: 12px 4px;
  }

  .cck-checklist-tree-section{
    padding: 10px;
  }

  .cck-node-children{
    padding: 0 4px 6px 4px;
  }
}