/* ==========================================================================
   La Flora Kids — bespoke bedtime meditations
   Scoped stylesheet for custom-kids.hbs and custom-kids-invitation.hbs.

   Deliberately self-contained: it inherits the theme's design tokens
   (--color-bg, --color-primary, --color-hover, --color-disabled,
   --title-font, --body-font) from style.css but adds no rule that reaches
   outside `.lf-kids`. Nothing here can affect any other page, and style.css
   is never touched.
   ========================================================================== */

.lf-kids {
  --kids-rule: color-mix(in srgb, var(--color-primary) 16%, transparent);
  --kids-paper: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg));
  background: var(--color-bg);
  color: var(--color-primary);
  /* Top padding 0: the site's default header spacing alone sets the gap,
     matching /the-gate/'s vertical rhythm (Leonardo, 2026-08-17). */
  padding: 0 1.25rem clamp(4rem, 10vw, 8rem);
  font-family: var(--body-font, var(--font-sans));
}

.lf-kids__wrap {
  max-width: 42rem;
  margin: 0 auto;
}

.lf-kids__wrap--wide {
  max-width: 46rem;
}

/* --- Masthead ------------------------------------------------------------ */

.lf-kids__eyebrow {
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 1.6rem;
}

.lf-kids__title {
  font-family: var(--title-font, var(--font-serif));
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

/* The child's name on the invitation page — the one piece of type that is
   allowed to be loud. */
.lf-kids__name {
  font-family: var(--title-font, var(--font-serif));
  font-weight: 400;
  font-size: clamp(3.4rem, 14vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 1.5rem;
  text-wrap: balance;
}

.lf-kids__lede {
  font-family: var(--title-font, var(--font-serif));
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-primary) 82%, var(--color-bg));
  text-wrap: pretty;
}

.lf-kids__rule {
  border: 0;
  border-top: 1px solid var(--kids-rule);
  margin: clamp(2.6rem, 7vw, 4.2rem) 0;
}

.lf-kids__rule--short {
  width: 3.5rem;
  border-top-color: var(--color-hover);
  margin: 2rem 0;
}

/* --- Body sections ------------------------------------------------------- */

.lf-kids__section {
  margin: clamp(2.6rem, 7vw, 4rem) 0;
}

.lf-kids__h2 {
  font-family: var(--title-font, var(--font-serif));
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.lf-kids__h3 {
  font-family: var(--title-font, var(--font-serif));
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.lf-kids p {
  font-size: 1.03rem;
  line-height: 1.72;
  margin-bottom: 1.05rem;
  text-wrap: pretty;
}

.lf-kids p:last-child {
  margin-bottom: 0;
}

.lf-kids__quiet {
  color: var(--color-disabled);
  font-size: 0.92rem;
  line-height: 1.65;
}

.lf-kids em {
  font-style: italic;
}

/* --- Portrait slot ------------------------------------------------------- */

.lf-kids__portrait {
  margin: clamp(2rem, 6vw, 3rem) 0;
}

.lf-kids__portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.lf-kids__portrait-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  background: var(--kids-paper);
  border: 1px dashed var(--kids-rule);
  border-radius: 2px;
  padding: 1.5rem;
}

.lf-kids__portrait-frame img {
  width: clamp(90px, 22%, 150px);
  opacity: 0.5;
}

.lf-kids__portrait-note {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-disabled);
}

.lf-kids__caption {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--color-disabled);
  font-style: italic;
}

/* --- Listen -------------------------------------------------------------- */

.lf-kids__listen {
  background: var(--kids-paper);
  border: 1px solid var(--kids-rule);
  border-radius: 3px;
  padding: clamp(1.4rem, 4vw, 2rem);
  margin: clamp(2rem, 6vw, 3rem) 0;
}

.lf-kids__listen-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 0.7rem;
}

.lf-kids__listen-title {
  font-family: var(--title-font, var(--font-serif));
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

/* --- Ordered "what arrives" list ---------------------------------------- */

.lf-kids__arrives {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: arrives;
}

.lf-kids__arrives li {
  counter-increment: arrives;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.5rem;
}

.lf-kids__arrives li::before {
  content: counter(arrives);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--title-font, var(--font-serif));
  font-size: 0.95rem;
  color: var(--color-hover);
  border: 1px solid var(--kids-rule);
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Terms strip --------------------------------------------------------- */

.lf-kids__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--kids-rule);
  border-bottom: 1px solid var(--kids-rule);
  margin: clamp(2.2rem, 6vw, 3rem) 0;
}

.lf-kids__term-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-disabled);
  margin-bottom: 0.35rem;
}

.lf-kids__term-value {
  font-family: var(--title-font, var(--font-serif));
  font-size: 1.5rem;
  line-height: 1.1;
}

/* --- Forms --------------------------------------------------------------- */

.lf-kids__form {
  margin-top: 1.8rem;
}

.lf-kids__field {
  margin-bottom: 1.5rem;
}

.lf-kids__label {
  display: block;
  font-family: var(--title-font, var(--font-serif));
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.lf-kids__hint {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-disabled);
  margin-bottom: 0.55rem;
}

.lf-kids__input,
.lf-kids__textarea {
  width: 100%;
  font-family: var(--body-font, var(--font-sans));
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-primary);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--kids-rule);
  border-radius: 0;
  padding: 0.55rem 0.1rem;
  transition: border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lf-kids__textarea {
  border: 1px solid var(--kids-rule);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  min-height: 5.5rem;
  resize: vertical;
}

.lf-kids__input:focus,
.lf-kids__textarea:focus {
  outline: none;
  border-color: var(--color-hover);
}

.lf-kids__input::placeholder,
.lf-kids__textarea::placeholder {
  color: color-mix(in srgb, var(--color-disabled) 55%, transparent);
}

/* Repeatable child rows */

.lf-kids__children {
  margin-bottom: 0.6rem;
}

.lf-kids__child-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 4.5rem auto 1.75rem;
  grid-template-areas:
    "name   age    gender remove"
    "tidbit tidbit tidbit tidbit";
  gap: 0.9rem;
  /* Stretch, not `end`: each cell is a column with its hint pinned to the top
     and its control to the bottom, so "Age" and "Boy or girl" sit on one line
     even though an underlined input and a row of pills aren't the same height. */
  align-items: stretch;
  margin-bottom: 1.1rem;
}

.lf-kids__child-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lf-kids__child-cell--name { grid-area: name; }
.lf-kids__child-cell--age { grid-area: age; }
.lf-kids__child-cell--gender { grid-area: gender; }

/* Per-child gift message — spans the whole row, under that child's fields,
   and only exists in gift mode. */
.lf-kids__child-cell--tidbit {
  grid-area: tidbit;
  margin-top: 0.3rem;
}

.lf-kids__child-cell--tidbit[hidden] { display: none; }

.lf-kids__textarea--tidbit {
  min-height: 3.6rem;
}

.lf-kids__gift-pointer {
  margin-top: 1.4rem;
}

/* Boy / girl. Asked because it decides the pronouns — kept as quiet as a
   form control can be: no fills, no colour until chosen. */

.lf-kids__gender {
  display: flex;
  gap: 0.4rem;
  padding-bottom: 0.15rem;
}

/* `position: relative` matters: the visually-hidden radio inside is absolutely
   positioned, and without an anchor here it would be placed against the page
   — which sends the browser scrolling to the wrong place on keyboard focus. */
.lf-kids__gender-opt {
  position: relative;
  cursor: pointer;
}

.lf-kids__gender-opt input {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lf-kids__gender-opt span {
  display: block;
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.85rem;
  line-height: 1;
  color: var(--color-disabled);
  border: 1px solid var(--kids-rule);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.lf-kids__gender-opt:hover span {
  color: var(--color-hover);
  border-color: var(--color-hover);
}

.lf-kids__gender-opt input:checked + span {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.lf-kids__gender-opt input:focus-visible + span {
  outline: 2px solid var(--color-hover);
  outline-offset: 2px;
}

.lf-kids__child-remove {
  grid-area: remove;
  align-self: end;
  background: none;
  border: 0;
  color: var(--color-disabled);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.45rem 0;
  transition: color 0.18s ease;
}

.lf-kids__child-remove:hover {
  color: var(--color-hover);
}

.lf-kids__child-row:only-child .lf-kids__child-remove {
  visibility: hidden;
}

.lf-kids__add {
  background: none;
  border: 0;
  padding: 0.2rem 0;
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.9rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-hover);
  cursor: pointer;
}

.lf-kids__add:hover {
  color: var(--color-hover);
}

/* Submit */

.lf-kids__submit {
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  padding: 0.95rem 2.1rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.lf-kids__submit:hover:not(:disabled) {
  background: var(--color-hover);
  border-color: var(--color-hover);
}

.lf-kids__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.lf-kids__error {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #8a2b2b;
}

.lf-kids__error[hidden] {
  display: none;
}

/* --- Thank-you / state panels ------------------------------------------- */

.lf-kids__panel {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1rem;
}

.lf-kids__panel-title {
  font-family: var(--title-font, var(--font-serif));
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lf-kids__panel p {
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Invitation: sibling switcher --------------------------------------- */

.lf-kids__siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.lf-kids__sibling {
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--color-disabled);
  background: transparent;
  border: 1px solid var(--kids-rule);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.lf-kids__sibling:hover {
  color: var(--color-hover);
  border-color: var(--color-hover);
}

.lf-kids__sibling[aria-selected="true"] {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* --- Invitation: questionnaire sections --------------------------------- */

.lf-kids__q-section {
  margin: clamp(2.6rem, 7vw, 4rem) 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--kids-rule);
}

.lf-kids__q-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.lf-kids__q-num {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 0.5rem;
}

.lf-kids__q-intro {
  color: var(--color-disabled);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.lf-kids__known {
  background: var(--kids-paper);
  border: 1px solid var(--kids-rule);
  border-radius: 3px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 2.4rem;
}

.lf-kids__known-title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-disabled);
  margin-bottom: 0.7rem;
}

.lf-kids__known dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.2rem;
  font-size: 0.95rem;
}

.lf-kids__known dt {
  color: var(--color-disabled);
}

.lf-kids__saved {
  font-size: 0.82rem;
  color: var(--color-disabled);
  margin-top: 0.9rem;
  min-height: 1.2em;
}

/* --- Footer link back ---------------------------------------------------- */

.lf-kids__back {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--kids-rule);
  font-size: 0.9rem;
  color: var(--color-disabled);
}

.lf-kids__back a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-hover);
}

.lf-kids__back a:hover {
  color: var(--color-hover);
}

/* --- Narrow screens ------------------------------------------------------ */

@media (max-width: 540px) {
  /* Two lines per child: name across the top, age + boy/girl underneath.
     Squeezing four columns into 350px turns the name field into a slot. */
  .lf-kids__child-row {
    grid-template-columns: 4.5rem 1fr 1.75rem;
    grid-template-areas:
      "name   name   remove"
      "age    gender gender"
      "tidbit tidbit tidbit";
    gap: 0.7rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--kids-rule);
  }

  .lf-kids__child-row:only-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .lf-kids__child-remove {
    align-self: end;
  }

  .lf-kids__gender {
    justify-content: flex-end;
  }

  .lf-kids__terms {
    gap: 1.2rem 2rem;
  }
}

/* --------------------------------------------------------------------------
   Gifting

   Page 1: a checkbox that grows four fields.
   Invitation page: the gift block — the gifter's words for the child, and
   the one decision the parents get to make about them.
   -------------------------------------------------------------------------- */

.lf-kids__giftbox {
  padding: 1.3rem 1.4rem;
  background: var(--kids-paper);
  border: 1px solid var(--kids-rule);
  border-radius: 3px;
}

.lf-kids__check {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  cursor: pointer;
  font-family: var(--title-font, var(--font-serif));
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-primary);
}

.lf-kids__check input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 1px solid var(--color-disabled);
  border-radius: 2px;
  background: var(--color-bg);
  cursor: pointer;
  position: relative;
  top: 0.15rem;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.lf-kids__check input:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.lf-kids__check input:checked::after {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.08rem;
  width: 0.28rem;
  height: 0.55rem;
  border: solid var(--color-bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.lf-kids__check input:focus-visible {
  outline: 2px solid var(--color-hover);
  outline-offset: 2px;
}

.lf-kids__giftbox > .lf-kids__hint {
  margin-top: 0.5rem;
  margin-left: 1.65rem;
}

.lf-kids__gift-fields {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--kids-rule);
}

.lf-kids__gift-fields .lf-kids__field:last-child {
  margin-bottom: 0;
}

/* --- Invitation page: the gift block ------------------------------------- */

.lf-kids__gift {
  margin: clamp(2rem, 5vw, 2.8rem) 0;
  padding: clamp(1.5rem, 4vw, 2.1rem);
  background: var(--kids-paper);
  border: 1px solid var(--kids-rule);
  border-left: 2px solid var(--color-hover);
  border-radius: 3px;
}

.lf-kids__gift-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-hover);
  margin-bottom: 1rem;
}

.lf-kids__gift-quote {
  font-family: var(--title-font, var(--font-serif));
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
  white-space: pre-wrap;
}

.lf-kids__gift-from {
  font-size: 0.88rem;
  color: var(--color-disabled);
}

.lf-kids__gift-ask {
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--kids-rule);
}

.lf-kids__gift-ask p {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

/* Two full-width choice cards, stacked. Not radio buttons: the decision is
   consequential and one-way, and it deserves furniture that says so. The
   chosen card stays lit while the confirmation is read. */

.lf-kids__gift-choices {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lf-kids__gift-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--color-bg);
  border: 1px solid var(--kids-rule);
  border-left: 2px solid var(--kids-rule);
  border-radius: 2px;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.lf-kids__gift-card:hover {
  border-color: var(--color-hover);
  border-left-color: var(--color-hover);
}

.lf-kids__gift-card.is-chosen {
  border-color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
}

.lf-kids__gift-card-title {
  display: block;
  font-family: var(--title-font, var(--font-serif));
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.lf-kids__gift-card-sub {
  display: block;
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-disabled);
}

.lf-kids__gift-card:focus-visible {
  outline: 2px solid var(--color-hover);
  outline-offset: 2px;
}

.lf-kids__gift-none,
.lf-kids__gift-siblings {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-disabled);
  margin-bottom: 0.4rem;
}

.lf-kids__gift-covers-note {
  font-family: var(--title-font, var(--font-serif));
  font-style: italic;
  color: var(--color-hover);
}

.lf-kids__gift-covers {
  color: var(--color-disabled);
}

.lf-kids__gift-confirm {
  margin-top: 1.4rem;
  padding: 1.2rem 1.3rem;
  background: var(--color-bg);
  border: 1px solid var(--color-hover);
  border-radius: 2px;
}

.lf-kids__gift-confirm p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0.55rem;
}

.lf-kids__gift-final {
  font-family: var(--title-font, var(--font-serif));
  font-style: italic;
  color: var(--color-hover);
}

.lf-kids__gift-confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.lf-kids__gift-back {
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-disabled);
  background: none;
  border: 1px solid var(--kids-rule);
  border-radius: 2px;
  padding: 0.8rem 1.3rem;
  cursor: pointer;
}

.lf-kids__gift-back:hover { color: var(--color-hover); border-color: var(--color-hover); }

.lf-kids__gift-verdict {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--kids-rule);
  font-size: 0.92rem;
  color: var(--color-disabled);
}

.lf-kids__gift-verdict b {
  font-family: var(--title-font, var(--font-serif));
  font-weight: 400;
  font-style: normal;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   The cart, and the two ways the send button can be unavailable.
   Added with the pay-first flow. Still nothing outside `.lf-kids`.
   -------------------------------------------------------------------------- */

.lf-kids__cart[hidden] { display: none; }

.lf-kids__cart-lines {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  border-top: 1px solid var(--kids-rule);
}

.lf-kids__cart-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--kids-rule);
}

.lf-kids__cart-line-name {
  font-family: var(--title-font, var(--font-serif));
  font-size: 1.05rem;
  line-height: 1.4;
}

.lf-kids__cart-line-amount {
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.95rem;
  color: var(--color-hover);
  white-space: nowrap;
}

.lf-kids__cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.1rem 0 1.4rem;
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-disabled);
}

.lf-kids__cart-total span:last-child {
  font-family: var(--title-font, var(--font-serif));
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--color-primary);
}

.lf-kids__cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

/* The dev-only simulate box. Deliberately looks like scaffolding: it is
   scaffolding, and it must never be mistaken for part of the page. */
.lf-kids__cart-dev {
  margin-top: 2.4rem;
  padding: 1.2rem 1.4rem;
  border: 1px dashed var(--color-disabled);
  border-radius: 2px;
  background: var(--kids-paper);
}

.lf-kids__cart-dev[hidden] { display: none; }

.lf-kids__cart-dev-label {
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-disabled);
  margin-bottom: 0.6rem;
}

.lf-kids__cart-dev .lf-kids__quiet {
  margin-bottom: 1rem;
}

/* GATED — a decision is waiting above. Greyed, but it still answers when
   pressed, because the answer ("decide first, it's just above") is the
   whole point of letting it be pressed. */
.lf-kids__submit.is-gated {
  opacity: 0.45;
  background: var(--color-disabled);
  border-color: var(--color-disabled);
  cursor: not-allowed;
}

.lf-kids__submit.is-gated:hover {
  background: var(--color-disabled);
  border-color: var(--color-disabled);
}

/* LOCKED — the revision window closed. Nothing left to press. */
.lf-kids__submit.is-locked {
  opacity: 0.35;
  background: transparent;
  color: var(--color-disabled);
  border-color: var(--color-disabled);
}

/* The sentence under the button: when it locks, or that it already has. */
.lf-kids__window {
  margin-top: 0.9rem;
  font-family: var(--body-font, var(--font-sans));
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--color-disabled);
}

.lf-kids__window:empty { display: none; }
.lf-kids__window[hidden] { display: none; }

/* --- Kids-only header logo -----------------------------------------------
   Same canvas as laflora_logo.png (1584x656), so layout is untouched.
   Scoped by :has(.lf-kids): the swap applies on the three kids pages only
   (Leonardo, 2026-08-17). */
body:has(.lf-kids) .lf-header__logo-img {
  content: url("../images/la-flora-kids.png");
}

/* --------------------------------------------------------------------------
   Ghost-rendered body
   --------------------------------------------------------------------------
   The prose that used to be hardcoded in custom-kids.hbs now comes out of the
   Ghost page, so it arrives as plain <h2>/<p>/<ol> instead of the .lf-kids__*
   classes. These rules reproduce exactly what those classes gave, so moving
   the copy into the editor changed nothing visually.

   Keep in step with .lf-kids__h2 / .lf-kids__h3 / .lf-kids__arrives above.
   -------------------------------------------------------------------------- */

/* Each <h2> opens what used to be a .lf-kids__section, so it carries the
   section's top margin. The first one doesn't — the player sits above it. */
.lf-kids__body > h2 {
  font-family: var(--title-font, var(--font-serif));
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1.2;
  margin: clamp(2.6rem, 7vw, 4rem) 0 1.1rem;
}

/* NB: the first child of .lf-kids__body is Ghost's (hidden) audio card, so
   `h2:first-child` never matches and the opening h2 keeps its section margin
   — which is what the old markup did. Left here as the explicit statement of
   intent for a body that ever starts with a heading. */
.lf-kids__body > h2:first-child {
  margin-top: 0;
}

/* The old markup ended in a .lf-kids__section whose 4rem bottom margin
   collapsed against the terms strip. The body div has to carry that itself,
   or the strip rides 16px too high. */
.lf-kids__body {
  margin-bottom: clamp(2.6rem, 7vw, 4rem);
}

.lf-kids__body > h3 {
  font-family: var(--title-font, var(--font-serif));
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

/* Paragraph type is inherited from `.lf-kids p`; only the trailing margin
   needs restoring, since that rule zeroes it on the last child. */
.lf-kids__body > p:last-child {
  margin-bottom: 1.05rem;
}

/* "What arrives" — an ordinary numbered list in the editor, wearing the
   circled-numeral treatment .lf-kids__arrives gives. */
.lf-kids__body > ol {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: arrives;
}

.lf-kids__body > ol > li {
  counter-increment: arrives;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.5rem;
  font-size: 1.03rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.lf-kids__body > ol > li::before {
  content: counter(arrives);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--title-font, var(--font-serif));
  font-size: 0.95rem;
  color: var(--color-hover);
  border: 1px solid var(--kids-rule);
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The leading bold phrase in each item stands in for the old <h3>.

   line-height is pinned rather than inherited: the old .lf-kids__h3 computed
   to 22.08px, while inheriting the list item's 1.72 gives 33px — 11px per
   item, 33px down the page. 1.15 reproduces the original exactly. */
.lf-kids__body > ol > li > strong {
  display: block;
  font-family: var(--title-font, var(--font-serif));
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

/* Ghost's own audio card is lifted into the themed player by kids.js and
   hidden inline. This is the belt-and-braces: if the JS never runs, the raw
   card must not appear in the middle of the prose. */
.lf-kids__body .kg-audio-card {
  display: none;
}

/* Ghost wraps figures/images in .kg-card; keep anything Iara adds later
   (an image, a quote) inside the column and readable. */
.lf-kids__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.lf-kids__body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--kids-rule);
  font-style: italic;
  color: var(--color-hover);
}
