@layer app {
  /* ============================================================
     Personal feed
     ============================================================ */

  .personal-feed__header {
    max-width: 42rem;
    margin-inline: auto;
  }

  .personal-feed__eyebrow {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .personal-feed__tabs {
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(0.25rem, 1.5vw, 0.5rem);

    .nav-link {
      border: 1px solid transparent;
      border-radius: 999px;
      color: color-mix(in srgb, var(--color-dark) 55%, transparent);
      font-size: clamp(0.8rem, 3.5vw, 0.9rem);
      font-weight: 600;
      padding: 0.4rem clamp(0.5rem, 2vw, 0.7rem);
      white-space: nowrap;

      &:hover {
        background: color-mix(in srgb, var(--color-primary) 6%, transparent);
        color: var(--color-primary);
      }

      &.active {
        background: color-mix(in srgb, var(--color-primary) 12%, transparent);
        border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
        color: var(--color-primary);
        font-size: clamp(0.9rem, 3.75vw, 1rem);
        padding-inline: clamp(0.7rem, 2.5vw, 0.9rem);
      }
    }
  }

  .personal-feed__tab--active {
    margin-inline-end: auto;
    order: -1;
  }

  .personal-feed__stream {
    margin-inline: auto;
    max-width: 48rem;
  }

  .personal-feed__description {
    line-height: 1.5;
  }

  /* The card deliberately does not clip its own overflow. It used to, to keep
     the shorter media below from poking past the rounded corners — but the
     media button already clips itself, and clipping at the card cut off the
     emoji picker, which is absolutely positioned and has to be able to hang
     below a short post. */
  .personal-feed__stream .feed-post .feed-post-media {
    --feed-post-image-max-height: 320px;
  }

  .personal-feed__stream .feed-post__location-context {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
  }
}
