/* ==========================================================
   CHECKLISTS (What to bring pages) – website
   Markup: .checklist > .checklist__col > .checklist__group
           > h2.checklist__heading + ul.checklist__items > li
   Two columns on wide screens, one on phones. checklist.js
   (optional) makes each item tickable and remembers ticks.
   ========================================================== */

.checklist-intro { font-size: 1.05rem; max-width: 46rem; }

.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 2.5rem;
  margin: 1.25rem 0 1.5rem;
}
@media (min-width: 900px) {
  .checklist { grid-template-columns: 1fr 1fr; }
}

.checklist__group { margin: 0 0 1.75rem; break-inside: avoid; }

.checklist h2.checklist__heading {
  font-family: 'Hand of Sean', 'Clarendon Std Roman', sans-serif;
  font-size: 1.6rem;
  line-height: 1.1;
  color: #007db1;
  text-transform: none;
  margin: 0 0 .35rem;
  padding: 0 0 .3rem;
  border-bottom: 2px solid #007db1;
}

.checklist ul.checklist__items { list-style: none; margin: 0; padding: 0; }
.checklist ul.checklist__items li {
  position: relative;
  margin: 0;
  padding: .55rem .25rem .55rem 2.1rem;
  border-bottom: 1px solid #e3e3e3;
  line-height: 1.4;
}
.checklist ul.checklist__items li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .7rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #333;
  border-radius: 3px;
  background: #fff;
  box-sizing: border-box;
}
.checklist__note { color: #555; }
.checklist__note::before { content: "– "; }

.checklist__group--extra h2.checklist__heading { color: #5a8728; border-bottom-color: #5a8728; }
.checklist__group--extra ul.checklist__items li::before { border-style: dashed; border-color: #888; }

/* Tickable items (only once checklist.js has run) */
.checklist--interactive ul.checklist__items li { cursor: pointer; user-select: none; }
.checklist--interactive ul.checklist__items li:hover { background: #f5f9fc; }
.checklist--interactive ul.checklist__items li:focus-visible { outline: 3px solid #ffc422; outline-offset: -3px; }
.checklist ul.checklist__items li.is-checked::before {
  background: #5a8728;
  border-color: #5a8728;
}
.checklist ul.checklist__items li.is-checked::after {
  content: "";
  position: absolute;
  left: .62rem;
  top: .82rem;
  width: .32rem;
  height: .62rem;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.checklist ul.checklist__items li.is-checked strong,
.checklist ul.checklist__items li.is-checked .checklist__note { color: #8a8a8a; text-decoration: line-through; }

/* Hint bar (added by checklist.js) */
.checklist-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin: 1rem 0 .25rem;
  padding: .75rem 1rem;
  background: #eef6fa;
  border-left: 4px solid #007db1;
  border-radius: 4px;
}
.checklist-hint__icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 3px;
  background: #5a8728;
}
.checklist-hint__icon::after {
  content: "";
  position: absolute;
  left: .48rem;
  top: .2rem;
  width: .38rem;
  height: .75rem;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.checklist-hint__text { flex: 1 1 18rem; }
.checklist-hint__status { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.checklist-hint__count { font-weight: bold; color: #007db1; }
.checklist-hint--all-done { background: #eef5e7; border-left-color: #5a8728; }
.checklist-hint--all-done .checklist-hint__count { color: #5a8728; }

.checklist-reset {
  background: none; border: 0; padding: 0; color: #007db1;
  text-decoration: underline; cursor: pointer; font: inherit;
}
.checklist-reset[hidden] { display: none; }

/* Browser print (Ctrl/Cmd-P) of the web page: keep it tidy too */
@media print {
  .checklist { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .checklist ul.checklist__items li { padding-top: .25rem; padding-bottom: .25rem; font-size: 9.5pt; }
  .checklist ul.checklist__items li.is-checked strong,
  .checklist ul.checklist__items li.is-checked .checklist__note { text-decoration: none; color: inherit; }
  .checklist-hint { display: none; }
}
