/* IOP morning & afternoon group schedule — page-scoped additions
   (handoff AriseVida-IOP-Schedule-Update, Oct 2026). Loaded by iop.html
   only, after styles.min.css. Nothing here is global.

   ≥768px — the curriculum board (.iop-daily-board, styles.css) now holds
   two equal session cards (Morning groups / Afternoon groups) instead of
   the two timed morning blocks with the "Continuous" connector: the
   board's own card, chip, time and note styles are reused unchanged;
   only the grid and the note rhythm differ.

   <768px — the phone curriculum twin (.av-iop-curriculum, styles.css)
   renders the two sessions as stacked rounded cards built from its own
   pill-label and time styles, with the twin's tokens (rule, ink, serif),
   followed by the three session-detail cards (.av-iop-curriculum__details:
   icon + title header over a full-width body). */

/* ---- Curriculum board, tablet / laptop / desktop (the board is hidden
        below 768px, where the phone twin takes over) ---- */
.iop-daily-board-blocks.iop-daily-board-blocks--sessions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.iop-daily-board-note + .iop-daily-board-note {
  margin-top: 12px;
}
/* Narrow tablet band: the wider "Afternoon groups" label would wrap its
   chip while the Morning card's would not, so both card heads stack the
   chip under the label (right-aligned by its auto margin) until the row
   fits again at 948px. */
@media (max-width: 947.98px) {
  .iop-daily-board-blocks--sessions .iop-daily-board-block-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Phone hero schedule pill (the shared .svch system puts the two
        benefit pills side by side from 356px; with two time lines the
        schedule copy column was only 93–108px wide and the ranges broke
        mid-range, so this page stacks the two pills full width exactly as
        the system already does below 356px) ---- */
@media (max-width: 767.98px) {
  .svc-mobile-hero[aria-labelledby="iop-hero-m-title"] .svch-benefits {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .svc-mobile-hero[aria-labelledby="iop-hero-m-title"] .svch-benefits::before {
    content: none;
  }
  .svc-mobile-hero[aria-labelledby="iop-hero-m-title"] .svch-benefit + .svch-benefit {
    padding-top: 14px;
    border-top: 1px solid rgba(15, 118, 110, 0.16);
  }
}

/* ---- Phone curriculum twin ---- */
@media (max-width: 767.98px) {
  .av-iop-curriculum__sessions {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 14px 0 16px;
    list-style: none;
  }
  .av-iop-curriculum__session {
    min-width: 0;
    padding: 16px 16px 15px;
    border: 1px solid var(--av-iop-rule);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
  }
  .av-iop-curriculum__session .av-iop-curriculum__block-time {
    margin-top: 11px;
  }
  .av-iop-curriculum__session-meta {
    margin: 8px 0 0;
    color: var(--av-iop-body);
    font-size: clamp(12.5px, 3.3vw, 14.5px);
    line-height: 1.48;
  }

  /* ---- Session details: three stacked cards under the session cards
          (approved mobile design, handoff arisevida-mobile-session-cards,
          Oct 2026). Each card is a compact icon + title header over a
          full-width body: the body is a sibling of the header grid, so
          paragraphs start at the card's inner left edge beneath the icon.
          Same border, radius, surface and outer edges as the session
          cards above; the twin's tokens throughout. Cards grow with their
          content; nothing is clamped, clipped or fixed in height. ---- */
  /* Proportions are calibrated to the approved image, which was captured on
     a 430-px phone: body ≈13.3px on an 18px pitch (the twin's own note
     scale), titles ≈15px, the twin's 36px icon medallion, ≈10px above the
     header and ≈13px below the last line, ≈8px between the two blocks. */
  .av-iop-curriculum__details {
    display: grid;
    gap: 8px;
    margin: 0;
  }
  .av-iop-curriculum__detail {
    min-width: 0;
    margin: 0;
    padding: 10px 16px 13px;
    border: 1px solid var(--av-iop-rule);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
  }
  .av-iop-curriculum__detail-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    margin: 0 0 5px;
  }
  .av-iop-curriculum__detail-head .av-iop-curriculum__note-icon svg {
    width: 70%;
    height: 70%;
  }
  .av-iop-curriculum__detail-title {
    min-width: 0;
    margin: 0;
    color: var(--av-iop-ink);
    font-family: var(--av-iop-sans);
    font-size: clamp(14.5px, 3.7vw, 15.5px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: break-word;
  }
  .av-iop-curriculum__detail-body {
    min-width: 0;
    margin: 0;
  }
  .av-iop-curriculum__detail-body p,
  .av-iop-curriculum__detail-label {
    margin: 0;
    color: var(--av-iop-body);
    font-family: var(--av-iop-sans);
    font-size: clamp(12.5px, 3.1vw, 13.5px);
    font-weight: 400;
    line-height: 1.38;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: break-word;
  }
  .av-iop-curriculum__detail-label {
    margin: 0 0 1px;
    font-weight: 600;
  }
  .av-iop-curriculum__detail-body p + .av-iop-curriculum__detail-label {
    margin-top: 8px;
  }
  /* keeps the hyphenated "18-week" together instead of breaking after the hyphen */
  .av-iop-curriculum__keep {
    white-space: nowrap;
  }
}
