/* ==========================================================================
   Client Onboarding Kit — document sections (block: ob-doc, file 2 of 2).
   Split from onboarding-doc.css to stay under the ~500-line file ceiling.
   Covers: field sections, repeatable rows, lists/checklist with #EEEAE2
   dividers, the #F4F0E9 summary box, footer strip, hint, copy bar.
   Local design tokens (--ob-*) are defined on .ob-doc in onboarding-doc.css.
   ========================================================================== */

/* ---- Field sections (eyebrow label above value) ---- */
.ob-doc__field-block {
  margin-bottom: var(--space-4);
}
.ob-doc__field-block .ob-doc__eyebrow {
  margin-bottom: var(--space-1);
}
/* Section eyebrow with the strong divider rule beneath (mockup table
   header treatment: eyebrow row closed by a 1px ink-ish rule). */
.ob-doc__eyebrow--rule {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ob-ink);
  margin: var(--space-5) 0 0;
}
.ob-doc__prose {
  margin: var(--space-3) 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ob-ink-soft);
}

/* ---- Repeatable rows (milestones, requirements) ----
   #EEEAE2 dividers per the mockup's line-item rows; flex-wrap lets the
   date + remove pair drop to their own line at 375px instead of crushing
   the label input. ---- */
.ob-doc__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--ob-divider);
}
.ob-doc__row:last-of-type {
  border-bottom: none;
}
.ob-doc__row .ob-doc__input {
  flex: 1 1 12em;
  width: auto;
  min-width: 0;
}
.ob-doc__row .ob-doc__input--date {
  flex: 0 0 auto;
  margin-left: auto;
}
.ob-doc__remove-btn {
  flex-shrink: 0;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ob-ink-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.ob-doc__remove-btn:hover { color: var(--color-error); background: var(--color-error-bg); }
.ob-doc__remove-btn:focus-visible {
  outline: 3px solid var(--ob-doc-accent);
  outline-offset: 2px;
}
.ob-doc__add-row {
  min-height: var(--touch-min);
  margin: var(--space-2) 0;
  padding: var(--space-2) var(--space-3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ob-doc-accent);
  background: transparent;
  border: 1px dashed var(--ob-divider-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.ob-doc__add-row:hover { border-color: var(--ob-doc-accent); background: var(--ob-box); }
.ob-doc__add-row:focus-visible {
  outline: 3px solid var(--ob-doc-accent);
  outline-offset: 2px;
}

.ob-doc__checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ob-ink-soft);
  cursor: pointer;
}
.ob-doc__checkbox-label input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--ob-doc-accent);
}

/* ---- Highlighted summary box (#F4F0E9, mockup "Balance due" treatment) ---- */
.ob-doc__summary-box {
  background: var(--ob-box);
  padding: 14px 16px;
  margin-top: var(--space-5);
}
.ob-doc__summary-box .ob-doc__eyebrow {
  color: var(--ob-ink-soft);
  margin-bottom: var(--space-2);
}

/* ---- Derived checklist + brief lists (#EEEAE2 dividers) ---- */
.ob-doc__checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ob-doc__checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--ob-divider);
  font-size: 0.875rem;
  line-height: 1.6;
}
.ob-doc__checklist-item:last-child { border-bottom: none; }
/* Empty-state muting: items whose source field is still empty render their
   template-fallback phrasing muted — never as real entered data. They flip
   to ink live as the user types (patch path and full renders both rebuild
   the list from state). */
.ob-doc__checklist-item--ph {
  color: var(--ob-ink-muted);
}
.ob-doc__checklist-box {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border: 1px solid var(--ob-ink-muted);
  border-radius: 2px;
}
.ob-doc__list {
  margin: var(--space-3) 0 var(--space-4);
  padding-left: 1.2em;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ob-ink-soft);
}
.ob-doc__list li { margin-bottom: var(--space-1); }
.ob-doc__list--plain {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.ob-doc__milestones {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}
.ob-doc__milestone {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
  border-bottom: 1px solid var(--ob-divider);
  font-size: 0.875rem;
}
.ob-doc__milestone:last-child { border-bottom: none; }
.ob-doc__milestone-date {
  color: var(--ob-ink-muted);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---- Hint (brief tab cross-link) ---- */
.ob-doc__hint {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--ob-divider-strong);
  font-size: 0.8rem;
  color: var(--ob-ink-muted);
}
.ob-doc__hint-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ob-doc-accent);
  font-weight: 600;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.ob-doc__hint-link:focus-visible {
  outline: 3px solid var(--ob-doc-accent);
  outline-offset: 2px;
}

/* ---- Footer strip (mockup): business left, italic serif credit right ---- */
.ob-doc__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 14px 0 20px;
  border-top: 1px solid var(--ob-divider);
  font-size: 11px;
  color: var(--ob-faint);
  letter-spacing: 0.03em;
}
.ob-doc__footer-credit {
  font-family: var(--ob-serif);
  font-style: italic;
  font-size: 12px;
}

/* ---- Copy bar (page chrome below the sheet) ---- */
.ob-doc__copy-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
