/* Soft staging checklist — multi-column grid layout */

.soft-staging-checklist {
  margin-top: 1rem;
}

.ss-progress-summary {
  margin-bottom: 1.25rem;
}

.ss-progress-label {
  margin: 0 0 0.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #666;
}

.ss-progress-bar-track {
  width: 100%;
  height: 6px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}

.ss-progress-bar-fill {
  height: 100%;
  background: #8b1a2f;
  border-radius: 4px;
  transition: width 0.25s ease;
}

.ss-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .ss-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .ss-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ss-category-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
}

.ss-category-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 14px;
  min-height: 40px;
}

.ss-category-card.is-complete .ss-category-header {
  background: #2e7d32;
}

.ss-category-title {
  flex: 1;
  min-width: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.ss-category-count {
  flex-shrink: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}

.ss-category-card.is-complete .ss-category-count {
  display: none;
}

.ss-category-complete-badge {
  display: none;
  flex-shrink: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
}

.ss-category-card.is-complete .ss-category-complete-badge {
  display: inline;
}

.ss-category-toggle {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1;
  padding: 0 0 0 0.25rem;
  cursor: pointer;
}

.ss-category-card.is-complete .ss-category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ss-category-toggle:hover {
  color: #fff;
}

.ss-category-card.is-complete:not(.is-collapsed) .ss-category-toggle {
  transform: rotate(180deg);
}

.ss-category-bar-track {
  height: 3px;
  background: #e5e5e5;
  width: 100%;
}

.ss-category-bar-fill {
  height: 100%;
  background: #8b1a2f;
  transition: width 0.25s ease;
}

.ss-category-card.is-complete .ss-category-bar-fill {
  background: #2e7d32;
  width: 100% !important;
}

.ss-category-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-category-card.is-collapsed .ss-category-items {
  display: none;
}

.ss-category-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s;
}

.ss-category-item:last-child {
  border-bottom: none;
}

.ss-category-item:hover {
  background: #fafafa;
}

.ss-category-item input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #1a1a1a;
}

.ss-category-item .task-label {
  flex: 1;
  min-width: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #1a1a1a;
}

.ss-category-item.done .task-label {
  color: #aaa;
  text-decoration: line-through;
}

.ss-category-item.done {
  opacity: 1;
}

@media print {
  .soft-staging-header,
  #main-nav,
  .header,
  #site-footer,
  .ss-category-toggle {
    display: none !important;
  }

  .main {
    max-width: none;
    padding: 0;
  }

  .ss-category-grid {
    display: block;
  }

  .ss-category-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
  }

  .ss-category-card.is-collapsed .ss-category-items {
    display: block !important;
  }

  .ss-category-header {
    background: #fff !important;
    color: #000 !important;
    border-bottom: 1px solid #ccc;
  }

  .ss-category-title {
    color: #000;
  }

  .ss-category-count,
  .ss-category-complete-badge {
    display: inline !important;
    color: #333 !important;
  }

  .ss-category-bar-track {
    display: none;
  }

  .ss-progress-bar-track {
    border: 1px solid #ccc;
  }

  .ss-category-item {
    height: auto;
    min-height: 28px;
    padding: 4px 0;
  }
}
