/* Empty state (components/empty-state/card.html). One size everywhere: a 240×150 illustration at
   min(174px, 77%) (the founder overview card size + 10%, then + 20%), 16px copy, centred in its
   container, with 20px between the picture and the copy and 8px between title and description. */
.gf-empty-state {
  flex: 1;
  width: 100%;
  min-height: 170px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 14px 22px;
  text-align: center;
  font-family: var(--gf-font);
}

.gf-empty-state__art {
  width: min(174px, 77%);
  line-height: 0;
}

/* Two classes so page rules that size every svg (e.g. `.meetings-page svg { width: 20px }`) can't shrink it. */
.gf-empty-state .gf-empty-state__art svg {
  display: block;
  width: 100%;
  height: auto;
}

.gf-empty-state .gf-empty-state__title,
.gf-empty-state .gf-empty-state__description {
  max-width: 34rem;
  margin: 0;
}

.gf-empty-state .gf-empty-state__title {
  color: #101828;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-body);
}

.gf-empty-state .gf-empty-state__description {
  color: #344054;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  line-height: var(--gf-leading-body);
}

/* Title, description and buttons stack together (beside the picture in the row layout). */
.gf-empty-state .gf-empty-state__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gf-empty-state.gf-empty-state--row .gf-empty-state__copy {
  align-items: flex-start;
}

.gf-empty-state .gf-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gf-empty-state .gf-empty-state__action {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-family: var(--gf-font);
  font-size: var(--gf-text-control);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-control);
  cursor: pointer;
  transition:
    background var(--gf-duration-respond) var(--gf-ease),
    border-color var(--gf-duration-respond) var(--gf-ease);
}

.gf-empty-state .gf-empty-state__action:hover {
  background: #f9fafb;
}

.gf-empty-state .gf-empty-state__action.is-primary {
  border-color: var(--gf-blue);
  background: var(--gf-blue);
  color: #ffffff;
}

.gf-empty-state .gf-empty-state__action.is-primary:hover {
  border-color: var(--gf-blue-hover);
  background: var(--gf-blue-hover);
}

/* Dropdown pickers and menus: the text only. */
.gf-empty-state--inline {
  min-height: 0;
  padding: 12px;
  gap: 4px;
}

.gf-empty-state.gf-empty-state--inline .gf-empty-state__description {
  color: #667085;
}

@media (max-width: 768px) {
  .gf-empty-state {
    min-height: 150px;
    gap: 10px;
    padding: 14px 12px 18px;
  }

  .gf-empty-state__art {
    width: min(154px, 68%);
  }
}

/* The element that hosts the component spans the full row of a grid or flex list, fills the
   container's height and centres the state vertically in it. */
.gf-empty-host {
  grid-column: 1 / -1;
  align-self: stretch;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100%;
}

/* Inside a card the host starts below the header, so 100% of the card made it taller
   than the card: the illustration sat low (more air above it than below) and the
   bottom of the state was clipped. Filling the remaining space centres it instead. */
.card .gf-empty-host {
  min-height: 0;
}

.gf-empty-host > .gf-empty-state,
.gf-empty-host .gf-empty-state:only-child {
  margin-block: auto;
}

/* Row layout (event details attendees): the illustration on the left, the copy beside it,
   aligned to the start of the row rather than centred. */
.gf-empty-state.gf-empty-state--row {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 8px 0;
  text-align: left;
}

.gf-empty-state.gf-empty-state--row .gf-empty-state__art {
  width: min(174px, 48%);
  flex: 0 0 auto;
}

.gf-empty-host:has(> .gf-empty-state--row) {
  justify-content: flex-start;
  min-height: 0;
}

/* Page-level lists (jobs, lists, matches, tutorials, decks, offers): the empty state takes the height
   of the page like the events and Collaborate lists do, instead of a thin band under the filters. */
.gf-empty-host.gf-empty-host--page {
  min-height: min(640px, 60vh);
}

/* Section-level lists (a tutorial row, a deck row, a profile tab): sized to the block it belongs
   to, so the filters, tabs and create actions around it stay usable. */
.gf-empty-host.gf-empty-host--section {
  min-height: clamp(200px, 30vh, 320px);
  flex: 0 1 auto;
}

.gf-empty-host.gf-empty-host--matches {
  min-height: clamp(240px, 36vh, 420px);
}
