@layer components {
  /* Pílula base (abas e botões grandes) */
  .pill {
    --pill-w: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 8.5rem;
    padding: 0.6rem 1.25rem;
    border: 3px solid var(--pill-color, var(--color-white));
    border-radius: var(--radius-pill);
    color: var(--pill-color, var(--color-white));
    background: var(--pill-bg, transparent);
    font-size: var(--fs-label);
    font-weight: var(--fw-black);
    line-height: 1.1;
    text-transform: uppercase;
    transition:
      transform var(--dur-fast) var(--ease-out),
      background-color var(--dur-soft) var(--ease-soft),
      border-color var(--dur-soft) var(--ease-soft),
      color var(--dur-soft) var(--ease-soft);
  }

  .pill:hover {
    transform: translateY(-2px);
  }

  .pill:active {
    transform: scale(0.97);
  }

  /* Aba da seção "Celebrando": selecionada = amarela */
  .pill--light {
    --pill-color: var(--color-white);
  }

  .pill--light[aria-pressed="true"] {
    --pill-bg: var(--color-yellow);
    --pill-color: var(--color-blue-800);
    border-color: var(--color-yellow);
  }

  /* Aba da seção "Registros": selecionada = navy preenchida */
  .pill--navy {
    --pill-color: var(--color-navy);
  }

  .pill--navy[aria-pressed="true"] {
    --pill-bg: var(--color-navy);
    --pill-color: var(--color-white);
  }

  /* Botão de ação dentro de cards (Assistir / Ver fotos / Ler matéria / Ver perfil) */
  .tag-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 9rem;
    padding: 0.5rem 1.25rem;
    border: 2.26px solid var(--tag-border, var(--color-yellow));
    border-radius: var(--radius-pill);
    background: var(--tag-bg, var(--color-blue-400));
    color: var(--color-white);
    font-size: var(--fs-button);
    font-weight: var(--fw-black);
    line-height: 1.1;
    text-transform: uppercase;
    transition:
      transform var(--dur-fast) var(--ease-out),
      filter var(--dur-fast) var(--ease-out);
  }

  .tag-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
  }

  .tag-button:active {
    transform: scale(0.97);
  }

  .tag-button--live {
    --tag-bg: var(--color-blue-500);
    --tag-border: var(--color-white);
  }

  /* Botão com seta (Como chegar, Saber mais) */
  .arrow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 1.4rem;
    border-radius: var(--radius-pill);
    background: var(--color-blue-700);
    color: var(--color-white);
    font-size: var(--fs-button);
    font-weight: var(--fw-black);
    line-height: 1.1;
    white-space: nowrap;
    transition:
      transform var(--dur-fast) var(--ease-out),
      filter var(--dur-fast) var(--ease-out);
  }

  .arrow-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
  }

  .arrow-button:active {
    transform: scale(0.97);
  }

  .arrow-button__icon {
    width: 1.5em;
    height: auto;
    aspect-ratio: 113 / 98;
    rotate: -47.64deg;
    flex: none;
  }

  .pill[aria-disabled="true"],
  .tag-button[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
  }

  @media (min-width: 1024px) {
    .pill {
      width: calc(var(--px) * 276);
      min-height: calc(var(--px) * 73);
      font-size: calc(var(--px) * 30);
    }

    .tag-button {
      width: calc(var(--px) * 207.945);
      min-height: calc(var(--px) * 55);
      font-size: calc(var(--px) * 22.603);
    }

    .arrow-button {
      font-size: calc(var(--px) * 25.822);
    }
  }
}
