/*
 * Facts box "Auf einen Blick" (aside of the event page): rows, registration block by state, links.
 * Bubble shape, tip bottom-right (box in the right-hand column, components.md rule 3).
 */
@layer components {
  .event-facts {
    --bubble-radius: var(--component-bubble-radius-m);
    --bubble-opposite: var(--component-bubble-radius-opposite-m);
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    padding: var(--space-24);
    border-radius: var(--bubble-opposite) var(--bubble-radius) var(--component-bubble-radius-tip) var(--bubble-radius);
    border: var(--border-width-thin) solid var(--surface-raised-outline, var(--color-border-default));
    background-color: var(--surface-raised, var(--color-background-subtle));
  }

  .event-facts__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8) var(--space-16);
    margin-block-end: var(--space-8);
  }

  .event-facts__title {
    font-size: var(--type-heading-s-size);
    line-height: var(--type-heading-s-line-height);
  }

  .event-facts__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin: 0;
  }

  .event-facts__row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: var(--space-16);
    font-size: var(--type-text-small-size);
    line-height: var(--type-text-small-line-height);
  }

  .event-facts__row dt {
    color: var(--color-text-subtle);
  }

  .event-facts__row dd {
    margin: 0;
    font-weight: var(--font-weight-bold);
    overflow-wrap: anywhere;
  }

  .event-facts__line {
    display: block;
  }

  .event-facts__line--secondary {
    margin-block-start: var(--space-4);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-subtle);
  }

  .event-facts__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    margin: 0;
    padding: 0;
    padding-block-start: var(--space-24);
    border-block-start: var(--border-width-thin) solid var(--color-border-default);
    list-style: none;
  }

  .event-facts__status {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    font-weight: var(--font-weight-bold);
    font-size: var(--type-label-m-size);
    line-height: var(--type-label-m-line-height);
  }

  .event-facts__status .icon {
    flex: none;
    margin-block-start: calc((var(--type-label-m-line-height) - 20px) / 2);
  }

  .event-facts__status--full {
    align-items: center;
    font-weight: var(--font-weight-regular);
  }

  .event-facts__places {
    margin: 0;
    padding-inline-start: calc(20px + var(--space-12));
    color: var(--color-text-subtle);
    font-size: var(--type-text-small-size);
    line-height: var(--type-text-small-line-height);
  }

  .event-facts__registration .button {
    inline-size: 100%;
  }

  .event-facts__links {
    gap: var(--space-8);
  }

  @media (min-width: 1024px) {
    .event-facts {
      --bubble-radius: var(--component-bubble-radius-l);
      --bubble-opposite: var(--component-bubble-radius-opposite-l);
      padding: var(--space-32);
    }

    .event-facts__row {
      grid-template-columns: 96px minmax(0, 1fr);
    }
  }
}
