/* Build checklist page — layers on top of styles.css */

.page-head { min-height: auto; }
.page-head .page-shell { padding-bottom: 34px; }
.page-head .brand { margin-left: 0; min-width: 0; }

.page-title { margin: 8px 0 4px; max-width: 760px; position: relative; z-index: 3; }
.page-title .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Anton", Impact, sans-serif; text-transform: uppercase;
  letter-spacing: 2px; font-size: 14px; color: var(--green-dark);
  background: rgba(255,255,255,.55); padding: 7px 13px; border-radius: 999px;
}
.page-title .eyebrow svg { height: 17px; width: auto; fill: currentColor; }
.page-title h1 {
  margin: 16px 0 10px;
  font-family: "Anton", Impact, Haettenschweiler, sans-serif;
  font-size: clamp(38px, 4.4vw, 58px); line-height: .98; letter-spacing: 3px;
  text-transform: uppercase;
}
.page-title p { margin: 0; font-size: 19px; color: #1c2a31; line-height: 1.46; }

.checklist-wrap { padding: 26px 0 40px; background: linear-gradient(180deg,#fff, #fbfdff); }

/* control bar with progress + actions */
.checklist-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #fff; border: 1px solid #d7e3eb; border-radius: 12px;
  box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 26px;
}
.progress { flex: 1 1 320px; min-width: 260px; }
.progress .count {
  font-family: "Anton", Impact, sans-serif; text-transform: uppercase;
  letter-spacing: 1px; font-size: 15px; display: flex; justify-content: space-between; margin-bottom: 8px;
}
.progress .count b { color: var(--green-dark); }
.progress .track { height: 12px; background: #e7eef2; border-radius: 999px; overflow: hidden; }
.progress .fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg,#8fc21a,#6fa700); transition: width .25s ease;
}
.progress .ready { color: var(--green-dark); font-weight: 700; }
.cl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-actions button {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; letter-spacing: .3px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 10px 15px;
  min-height: 44px; touch-action: manipulation;
}
.cl-actions button.primary { background: linear-gradient(180deg,#86bd00,#6fa700); color: #fff; border: 0; }
.cl-actions button svg { height: 16px; width: auto; fill: currentColor; }

/* card grid */
.cl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cl-card {
  border: 1px solid #d7e3eb; border-radius: 12px; background: #fff;
  box-shadow: var(--shadow); padding: 4px 22px 14px; break-inside: avoid;
}
.cl-card > h2 {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px 0 14px;
  border-bottom: 2px solid var(--green);
  font-family: "Anton", Impact, Haettenschweiler, sans-serif;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 20px;
}
.cl-card > h2 .ic {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: #eef7db; color: var(--green-dark);
}
.cl-card > h2 .ic svg { height: 22px; width: auto; fill: currentColor; }
.cl-card > h2 .tag { margin-left: auto; font-size: 12px; letter-spacing: 1px; color: var(--muted); }

.cl-item {
  display: flex; align-items: flex-start; gap: 13px; padding: 12px 2px;
  border-bottom: 1px solid #eef2f5; cursor: pointer; user-select: none;
}
.cl-item:last-child { border-bottom: 0; }
.cl-item input { appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; flex: none; margin-top: 1px; cursor: pointer;
  border: 2px solid #b7c6cf; border-radius: 6px; background: #fff; position: relative;
  transition: background .12s, border-color .12s;
}
.cl-item input:checked { background: var(--green); border-color: var(--green); }
.cl-item input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.cl-item .txt b { display: block; font-size: 15.5px; line-height: 1.2; }
.cl-item .txt small { color: var(--muted); font-size: 13px; }
.cl-item.checked .txt b { text-decoration: line-through; color: var(--muted); }
.cl-item .opt { margin-left: 6px; font-size: 10px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--green-dark); border: 1px solid #cfe39a; border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }

.cl-note {
  margin-top: 26px; display: flex; align-items: center; gap: 14px;
  background: var(--blue-soft, #eefaff); border: 1px solid #bfe3f2; border-left: 5px solid var(--green);
  border-radius: 10px; padding: 16px 20px; font-size: 15px;
}
.cl-note svg { height: 24px; width: auto; flex: none; fill: var(--green-dark); }
.cl-note a { color: var(--green-dark); font-weight: 700; }

@media (max-width: 1020px) {
  .page-title { margin-left: 0; }
}
@media (max-width: 780px) {
  .page-title { margin-left: 0; }
  .cl-grid { grid-template-columns: 1fr; }
  .page-title p { font-size: 17px; }
  .checklist-bar { display: block; padding: 15px; }
  .progress { width: 100%; min-width: 0; }
  .cl-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: 15px; }
  .cl-actions button { min-width: 0; min-height: 48px; justify-content: center; padding: 10px 8px; }
  .cl-item { min-height: 48px; padding-block: 13px; }
}

@media (max-width: 460px) {
  .page-head .page-shell { padding-bottom: 26px; }
  .page-title h1 { font-size: 36px; letter-spacing: 2px; }
  .page-title .eyebrow { font-size: 12px; letter-spacing: 1.3px; }
  .checklist-wrap { padding-top: 18px; }
  .cl-card { padding: 4px 16px 10px; }
  .cl-card > h2 { gap: 9px; font-size: 18px; letter-spacing: 1px; }
  .cl-card > h2 .ic { width: 36px; height: 36px; }
  .cl-card > h2 .tag { display: none; }
  .cl-item { gap: 11px; }
  .cl-item input { width: 24px; height: 24px; }
  .cl-item input:checked::after { left: 7px; top: 2px; }
  .cl-item .txt b { font-size: 16px; }
  .cl-item .txt small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; }
  .cl-note { align-items: flex-start; padding: 14px; font-size: 14px; }
}

@media print {
  .toolbar, .cl-actions, .nav-toggle, .site-nav .nav-book { display: none !important; }
  .page-head { background: #fff !important; border: 0; }
  .checklist-bar { box-shadow: none; }
  .cl-card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
