/* v236 — Family Integrity practice milestones.
   Deliberately quieter than the three practice directions (Asana, Pranayama,
   Complete Practice): a compact list, no cover art, no progress metaphors. */

/* family-commercial.v218.css hides every child of the practice host except the academy
   root while a member is signed in. Practice Milestones is a deliberate second child of
   that host, so it opts back in here. The rule is scoped to this one section; everything
   else the v215/v218 rules hide stays hidden. */
body.family-member-mode [data-family-practice-content] > section.fmil236 { display: block !important; }
/* Free-preview mode keeps the whole protected area hidden, as before. */

.fmil236 {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid rgba(47, 81, 72, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
}

.fmil236__head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-end; justify-content: space-between; }
.fmil236__head h2 { margin: 4px 0 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.22; }
.fmil236__head .eyebrow { display: block; }
.fmil236__lede { margin: 10px 0 0; max-width: 62ch; font-size: .94rem; line-height: 1.55; color: #4a5551; }
.fmil236__note { margin: 6px 0 0; font-size: .82rem; color: #6b7570; }

/* participants ------------------------------------------------------------ */
.fmil236__people { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; }
.fmil236__people-label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7570; margin-right: 2px; }
.fmil236__person {
  border: 1px solid rgba(47, 81, 72, .24);
  background: #fff; color: #27302c;
  border-radius: 999px; padding: 7px 15px;
  font: inherit; font-size: .9rem; cursor: pointer;
  min-height: 40px;
}
.fmil236__person.is-active { background: #2f5148; border-color: #2f5148; color: #fff; }
.fmil236__person:focus-visible { outline: 2px solid #c96f50; outline-offset: 2px; }
.fmil236__add { border-style: dashed; }

/* Name correction: a quiet text action, not a third chip competing with the participants. */
.fmil236__rename {
  border: 0; background: none; padding: 7px 4px;
  font: inherit; font-size: .84rem; color: #6b7570;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; min-height: 40px;
}
.fmil236__rename:hover { color: #2f5148; }
.fmil236__rename:focus-visible { outline: 2px solid #c96f50; outline-offset: 2px; border-radius: 6px; }

.fmil236__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 14px 0 0; }
.fmil236__form label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: #4a5551; }
.fmil236__form input {
  font: inherit; min-height: 42px; min-width: 15rem; max-width: 100%;
  padding: 8px 12px; border: 1px solid rgba(47, 81, 72, .3); border-radius: 8px; background: #fff;
}
.fmil236__hint { flex: 1 1 100%; margin: 0; font-size: .8rem; color: #6b7570; }
.fmil236__empty { margin: 16px 0 0; font-size: .92rem; color: #4a5551; }

/* milestone list ---------------------------------------------------------- */
.fmil236__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.fmil236__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(47, 81, 72, .14);
  border-radius: 10px;
  background: #fff;
}
.fmil236__item.is-recorded { border-color: rgba(47, 81, 72, .34); background: rgba(47, 81, 72, .04); }
.fmil236__n { font-variant-numeric: tabular-nums; font-size: .95rem; color: #8c9691; letter-spacing: .04em; }
.fmil236__text { min-width: 0; }
.fmil236__name { display: block; font-weight: 600; font-size: .98rem; line-height: 1.3; color: #27302c; }
.fmil236__meta { display: block; margin-top: 2px; font-size: .82rem; color: #6b7570; }
.fmil236__state { display: block; margin-top: 2px; font-size: .82rem; color: #2f5148; }
.fmil236__item:not(.is-recorded) .fmil236__state { color: #8c9691; }
.fmil236__action { justify-self: end; }
.fmil236__action .btn { min-height: 40px; white-space: nowrap; }

/* attestation ------------------------------------------------------------- */
.fmil236__attest {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid rgba(201, 111, 80, .35);
  border-radius: 10px;
  background: rgba(201, 111, 80, .06);
}
.fmil236__attest h3 { margin: 0; font-size: 1rem; }
.fmil236__attest-for { margin: 2px 0 0; font-size: .85rem; color: #6b7570; }
.fmil236__attest p.fmil236__attest-text { margin: 10px 0 0; font-size: .92rem; line-height: 1.5; color: #3d4742; }
.fmil236__attest-resp { margin: 8px 0 0; font-size: .82rem; color: #6b7570; }
.fmil236__check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: .9rem; line-height: 1.45; }
.fmil236__check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.fmil236__attest-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.fmil236__attest-actions .btn { min-height: 42px; }

.fmil236__status { margin: 14px 0 0; font-size: .88rem; min-height: 1.2em; }
.fmil236__status[data-kind="error"] { color: #a4472c; }
.fmil236__status[data-kind="ok"] { color: #2f5148; }

/* Personal Space ---------------------------------------------------------- */
.fmil236-dash__group + .fmil236-dash__group { margin-top: 18px; }
.fmil236-dash__who { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7570; }
.fmil236-dash__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.fmil236-dash__row {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid rgba(47, 81, 72, .16); border-radius: 10px; background: #fff;
}
.fmil236-dash__row strong { display: block; font-size: .96rem; }
.fmil236-dash__row small { display: block; margin-top: 2px; font-size: .82rem; color: #6b7570; }
.fmil236-dash__row .btn { min-height: 40px; }
.fmil236-dash__link { display: inline-block; margin-top: 14px; }

@media (max-width: 720px) {
  .fmil236 { padding: 16px 14px; }
  .fmil236__item { grid-template-columns: 2.1rem minmax(0, 1fr); }
  .fmil236__action { grid-column: 1 / -1; justify-self: stretch; margin-top: 8px; }
  .fmil236__action .btn { width: 100%; }
  .fmil236__form input { min-width: 0; width: 100%; }
  .fmil236__form label { flex: 1 1 100%; }
  .fmil236-dash__row .btn { width: 100%; }
}

@media (max-width: 380px) {
  .fmil236__head h2 { font-size: 1.08rem; }
  .fmil236__item { padding: 11px 11px; }
  .fmil236__person { padding: 7px 12px; }
}

/* public Family page ------------------------------------------------------ */
.fmil236-public__panel {
  display: grid; gap: 10px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(47, 81, 72, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .6);
}
.fmil236-public__panel h2 { margin: 2px 0 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.fmil236-public__panel p { margin: 0; max-width: 68ch; line-height: 1.6; }
.fmil236-public__note { font-size: .84rem; color: #6b7570; }
.fmil236-public__panel .btn { justify-self: start; margin-top: 6px; }
