/* ─── Page Header ───────────────────────────────────────────────────────── */
.checklist-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem max(2rem, calc(50% - 640px)) 2rem;
  text-align: center;
}
.checklist-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.checklist-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.checklist-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.checklist-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0d1117;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-print:hover { opacity: 0.85; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-back:hover { border-color: var(--accent); color: var(--text); }
/* ─── Checklist Body ────────────────────────────────────────────────────── */
.checklist-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(2rem, calc(50% - 640px)) 5rem;
  flex: 1;
}
.checklist-section {
  margin-bottom: 2.5rem;
}
.checklist-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s;
}
.checklist-item:has(.item-cb:checked) {
  border-color: var(--green);
  background: rgba(63, 185, 80, 0.04);
}
.item-cb {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.item-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.item-cb:checked + .item-text {
  color: var(--muted);
  text-decoration: line-through;
}
.checklist-progress-bar {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-track {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}
.progress-label {
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--muted);
  white-space: nowrap;
  min-width: 5rem;
  text-align: right;
}
/* ─── Checklist CTA ─────────────────────────────────────────────────────── */
.checklist-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.checklist-cta-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
/* ─── Print Styles ──────────────────────────────────────────────────────── */
@media print {
  nav, .checklist-actions, .checklist-progress-bar, footer { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .checklist-header { padding: 1rem 0; }
  .checklist-title { font-size: 20pt; color: #111; }
  .checklist-subtitle { color: #444; }
  .checklist-section-title { color: #0969da; }
  .checklist-item {
    background: none;
    border: 1px solid #ccc;
    padding: 0.5rem 0.75rem;
    break-inside: avoid;
  }
  .item-text { color: #111; }
  .item-cb:checked + .item-text { color: #666; }
}

/* ─── Phone Overrides ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .checklist-header { padding-block: 4rem 2rem; padding-inline: 1.5rem; }
  .checklist-body { padding-block: 0 4rem; padding-inline: 1.5rem; }
}
@media (max-width: 480px) {
  .checklist-header { padding-block: 3.5rem 2rem; padding-inline: 1rem; }
  .checklist-body { padding-block: 0 3.5rem; padding-inline: 1rem; }
}
