/* Honored Goodbyes — Family Checklist (extends styles.css) */
.narrow { width: min(calc(100% - 2.5rem), 46rem); }

.cl-hero { padding: 3.25rem 0 2.75rem; }
.cl-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.cl-hero-note { margin: 1rem auto 0; max-width: 32rem; color: var(--ink-soft); font-size: 1rem; }

.cl-bar {
  position: sticky; top: 4.6rem; z-index: 8;
  background: rgba(232, 238, 230, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.cl-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 1rem; padding: 0.55rem 0; }
.save-status { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--sage-deep); display: flex; align-items: center; gap: 0.45rem; }
.save-status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sage); flex: none; }
.save-status.is-error { color: #8a3b2e; }
.save-status.is-error::before { background: #b5523f; }
.overall { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--ink-soft); }
.overall-bar, .sum-bar { display: block; height: 6px; border-radius: 999px; background: var(--ivory-deep); overflow: hidden; }
.overall-bar { width: 7rem; }
#overall-fill, .sum-fill { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .3s ease; }

.cl-intro { padding: 2rem 0 0.5rem; background: var(--paper); }
.cl-intro p { margin: 0 0 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.6rem 1.1rem;
  font: inherit; font-size: 0.98rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 999px; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-soft { background: var(--paper); color: var(--sage-deep); border: 1px solid var(--line); }
.btn-soft:hover, .btn-soft:focus-visible { background: var(--sage-mist); color: var(--sage-deep); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px dashed var(--line); }
.btn-ghost.armed { color: #8a3b2e; border-color: #b5523f; }
.btn-danger { background: #8a3b2e; color: #fff; border: 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.reset-confirm { border: 1px solid #c98d80; background: #fbefeb; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.reset-confirm p { margin: 0 0 0.75rem; }
.reset-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.flash { background: var(--sage-mist); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem; font-size: 0.98rem; }

.how-save { border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); padding: 0 1rem; margin-bottom: 1.25rem; }
.how-save summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--sage-deep); }
.how-save p { font-size: 0.98rem; color: var(--ink-soft); }

.jump { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-bottom: 1.25rem; }
.jump a { font-size: 0.88rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--ivory-deep); text-decoration: none; color: var(--ink); min-height: 40px; display: inline-flex; align-items: center; }

.cl-main { background: var(--paper); padding: 0.5rem 0 3rem; }
.part-title { font-family: "Fraunces", Georgia, serif; font-weight: 520; font-size: 1.6rem; margin: 1.75rem 0 0.75rem; letter-spacing: -0.01em; }

.cl-section { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 0.85rem; box-shadow: 0 6px 18px rgba(44,42,38,.04); scroll-margin-top: 8rem; }
.cl-section > summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.15rem; position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem; align-items: center; min-height: 64px;
  -webkit-tap-highlight-color: transparent;
}
.cl-section > summary::-webkit-details-marker { display: none; }
.cl-section > summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 1.45rem; width: 0.65rem; height: 0.65rem;
  border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(45deg); transition: transform .2s;
}
.cl-section[open] > summary::after { transform: rotate(-135deg); top: 1.75rem; }
.sum-title { font-family: "Fraunces", Georgia, serif; font-size: 1.28rem; font-weight: 550; line-height: 1.25; }
.sum-progress { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.sum-bar { grid-column: 1 / -1; }
.sec-body { padding: 0 1rem 1rem; }
.sec-intro { margin: 0 0 1rem; color: var(--ink-soft); font-size: 1rem; }

.step, .field, .paper { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-bottom: 0.75rem; transition: background .2s; }
.step[data-state="done"], .field[data-state="done"], .paper[data-state="done"] { background: #eef2ec; border-color: rgba(74, 88, 72, .3); }
.step[data-state="na"], .field[data-state="na"], .paper[data-state="na"] { background: #f1eee8; opacity: .8; }
.step[data-state="done"] .step-title, .paper[data-state="done"] .paper-name { text-decoration: line-through; text-decoration-color: rgba(74,88,72,.5); color: var(--ink-soft); }
.step-title { margin: 0 0 0.4rem; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; font-weight: 560; line-height: 1.3; }
.step-desc { margin: 0 0 0.75rem; font-size: 1rem; }
.facts { margin: 0 0 0.75rem; display: grid; gap: 0.5rem; }
.fact { display: grid; grid-template-columns: 1fr; gap: 0.05rem; }
.fact dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); }
.fact dd { margin: 0; font-size: 0.98rem; color: var(--ink); }
@media (min-width: 720px) { .fact { grid-template-columns: 11rem 1fr; gap: 1rem; } .fact dt { padding-top: 0.2rem; } }
.utah-note, .utah-li { font-size: 0.95rem; }
.utah-note { margin: 0 0 0.75rem; padding: 0.5rem 0.75rem; border-left: 3px solid var(--gold); background: rgba(212, 193, 154, .18); border-radius: 0 8px 8px 0; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--ivory); }
.seg-opt { margin: 0; position: relative; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg-opt + .seg-opt { border-left: 1px solid var(--line); }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; font-weight: 600; }
.seg-opt input:checked + span { background: var(--sage-deep); color: var(--ivory); }
.seg-na input:checked + span { background: #8b857a; }
.seg-todo input:checked + span { background: var(--gold-soft); color: var(--ink); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -4px; }

.note { margin-top: 0.6rem; }
.note > summary { cursor: pointer; color: var(--sage-deep); font-weight: 600; font-size: 0.95rem; min-height: 44px; display: flex; align-items: center; }
.answer textarea { font-size: 1rem; min-height: 56px; resize: vertical; line-height: 1.45; }
.print-text { display: none; }

.field-label { text-transform: none; letter-spacing: 0; font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 0 0 0.45rem; }
.field .answer { margin-bottom: 0.6rem; }
.group-title { font-family: "Fraunces", Georgia, serif; font-size: 1.12rem; font-weight: 560; margin: 1.25rem 0 0.6rem; color: var(--gold-deep); }
.group-title:first-of-type { margin-top: 0.25rem; }
.na-check { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; min-height: 44px; text-transform: none; letter-spacing: 0; font-size: 0.98rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; }
.na-check input { width: 1.4rem; height: 1.4rem; accent-color: var(--sage-deep); }
.field.q[data-state="done"] { background: #eef2ec; }

.facts-box { border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 12px 12px 0; padding: 0.5rem 1rem 0.5rem 0.5rem; margin-bottom: 1rem; }
.facts-box ul, .donts ul { margin: 0.25rem 0; padding-left: 1.2rem; }
.facts-box li, .donts li { margin: 0.35rem 0; font-size: 0.98rem; }
.donts { background: #fbefeb; border: 1px solid #e3c4bb; border-radius: 14px; padding: 0.5rem 1rem 0.75rem; margin-top: 1rem; }
.donts .group-title { color: #8a3b2e; }

.paper { display: grid; gap: 0.6rem; }
.paper-name { font-weight: 600; }
@media (min-width: 720px) { .paper { grid-template-columns: 1fr 17rem; align-items: center; } }

.numbers { display: grid; gap: 0.75rem; }
.num-row { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem; display: grid; gap: 0.5rem; }
.num-field { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); }
.num-label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 0.2rem; }
.num-field input { min-height: 48px; font-size: 1rem; }
.num-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
@media (min-width: 720px) { .num-row { grid-template-columns: 1.2fr 1fr 1.2fr auto; align-items: end; } }
.add-row { margin-top: 0.75rem; width: 100%; }

.cl-disclaimer { padding: 1.5rem 0 2.5rem; background: var(--ivory); font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .cl-bar { top: 4.1rem; }
  .narrow { width: min(calc(100% - 1.4rem), 46rem); }
  .sec-body { padding: 0 0.6rem 0.8rem; }
  .step, .field, .paper { padding: 0.85rem; }
  .overall-bar { width: 4.5rem; }
  .toolbar .btn { flex: 1 1 45%; }
}

@media print {
  .site-header, .cl-bar, .toolbar, .reset-confirm, .flash, .how-save, .jump, .add-row, .num-actions, .skip, .note > summary, .site-footer, .na-check input { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero { padding: 0.5rem 0; background: none; }
  .ornament { display: none; }
  .cl-section { box-shadow: none; break-inside: auto; border-color: #bbb; }
  .cl-section > summary::after { display: none; }
  .step, .field, .paper, .num-row { break-inside: avoid; }
  .answer textarea { display: none; }
  .print-text { display: block; white-space: pre-wrap; min-height: 1.4em; border-bottom: 1px solid #bbb; padding: 0.2rem 0; }
  .seg-opt span { min-height: 0; padding: 0.15rem 0; }
  .seg-opt input:checked + span { background: #ddd !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rights { background: none; }
}
#sec-numbers .sum-bar { display: none; }
