/* ==========================================================================
   Telehealth page — patterns that appear only here.
   ========================================================================== */

@layer pages {

  /* ---- Hero: "Pharmacy margin engine" -------------------------------- */

  .engine {
    --engine-cream: #f9d7b3;
  }

  .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-sm);
    margin: 0;
  }

  .stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: var(--space-sm);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: var(--space-md);
    background: rgb(26 10 2 / 0.22); /* was white glass: cream labels 3.2:1 */
  }

  .stat__label {
    font-size: var(--fs-micro);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--engine-cream);
  }

  .stat__value {
    margin: 0;
    font-size: var(--fs-l);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    font-variant-numeric: tabular-nums;
  }

  @media (max-width: 479.98px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  .ops {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--space-sm);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: var(--radius-card);
    background: rgb(255 255 255 / 0.05);
  }

  .ops__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
  }

  .ops__title {
    font-size: var(--fs-micro);
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--engine-cream);
  }

  .ops__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .ops__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 14px;
    background: rgb(255 255 255 / 0.04);
    font-size: var(--fs-caption);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
  }

  /* Tiny status chip inside the engine panel (8px in Figma). */
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: var(--radius-pill);
    background: rgb(255 255 255 / 0.05);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--engine-cream);
  }

  .support-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: var(--space-md);
    background: rgb(19 11 9 / 0.4);
  }

  .support-strip__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    line-height: 1.4;
  }

  .support-strip__label {
    font-size: var(--fs-micro);
    text-transform: uppercase;
    color: #f5caa9;
  }

  .support-strip__value {
    font-size: var(--fs-body-m);
    font-weight: 700;
    color: #fff;
  }

  .avatars {
    display: flex;
    gap: var(--space-xs);
  }

  .avatars li {
    display: grid;
    place-items: center;
    inline-size: 28px;
    block-size: 28px;
    border-radius: 50%;
    background: var(--avatar, #ffd8b9);
    color: #120b09;
    font-size: 9px;
    font-weight: 700;
  }

  .avatars li:nth-child(2) { --avatar: #ffe7d0; }
  .avatars li:nth-child(3) { --avatar: #ffb787; }
  .avatars li:nth-child(4) { --avatar: #ffd1a8; }
}
