/*
 * family.css — the FAMILY FLOWS' forms (the add-child / add-partner pages) and the shared HOME-PERSON
 * icon. Baseline-loaded (Assets::VIEW_CSS). The family CARD's styles went with the card (P2c).
 */

/*
 * The add-child and add-partner pages (Painting leftovers 1): "Find an existing person" and "Or create a new person"
 * are two section blocks, both shown (the old mode toggles are gone). A long match list scrolls inside its rows.
 */
.add-child .child-results,
.family-add-partner .parent-results { max-height: 16rem; overflow-y: auto; }

/* --- HOME-PERSON icon (baseline-loaded). By default absolutely pinned BOTTOM-RIGHT inside a
   position-relative host; the person header's metadata line sets it inline (person.css). GREY = not
   home, clickable (a mini <form>); GREEN = is home, inert (a <span>). --- */
.home-icon {
    position: absolute;
    bottom: 0.2rem;
    right: 0.3rem;
    margin: 0;            /* the grey state is a <form> — kill any residual form margin so the
                            absolute bottom/right offsets are exact */
    padding: 0;
    line-height: 1;       /* no line-box padding to skew the corner offset */
    z-index: 2;
}
/* GREY (not home): a bare icon button, muted; darkens on hover/focus to read as clickable. */
.home-icon-btn {
    padding: 0;
    border: 0;
    background: none;
    line-height: 1;
    color: var(--foliale-muted);
}
.home-icon-btn:hover,
.home-icon-btn:focus {
    color: var(--foliale-text);
}
/* GREEN (is home): inert, success-coloured, default cursor (nothing to click). */
.home-icon--set {
    color: var(--foliale-home);
    cursor: default;
}
/* One-shot confirmation PULSE — added only on the freshly-set green (the set-home swap), never on an
   ordinary page load. Pure CSS, runs once. */
.home-icon--just-set {
    display: inline-block;   /* transform needs a block/inline-block box */
    animation: home-icon-pulse 0.5s ease-out 1;
}
@keyframes home-icon-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
