/*
  Empty states (owner's request, 2026-11-24).

  1. Open positions (Careers, Open Position page). Positions are not copied from the CMS, so these lists are
     always empty. Instead of Webflow's "No items found." box, the build (careers_empty_states in
     tools/build_from_export.py) puts one row built from the site's own position-card parts: it says there are
     no roles in the selected tab and leads to Contact. Same grid, padding, hairline and arrow circle as a real
     position card, so the list still reads as a list.
  2. Article "Contributors": an article without contributors hides the whole block instead of showing
     "No items found." under the heading.
*/

/* Webflow's box (.empty-state: border, gradient, centred text) is replaced by the row below.
   Full bleed like the real cards: .filtered.careers pulls the list out by -3em on both sides (the page gutter)
   and every card pads its content back in by 3em. Webflow's box had margin 3em to sit inside the gutter;
   without it the row runs edge to edge and its text lines up with the tabs, exactly like a position card. */
.empty-state.w-dyn-empty {
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: left;
}

.career_position-card.empty-state_card {
  grid-template-columns: 1fr auto;
  padding-top: 2.5em;
  padding-bottom: 2.5em;
  color: var(--_color-primitives---navy--900);
  text-decoration: none;
}

/* hairline on top too: with a single row the card would otherwise float under the tabs.
   (Not ::before — the page's own "POSITION CARD HOVER" code uses ::before for the dark fill on hover.) */
.career_position-card.empty-state_card {
  box-shadow: inset 0 1px 0 #61718a33;
}

.empty-state_text {
  display: flex;
  flex-direction: column;
  gap: .75em;
  max-width: 34em;
}

.empty-state_text .text-h3 {
  margin: 0;
  font-family: var(--_typography---font-styles--heading);
}

.empty-state_note {
  margin: 0;
  color: var(--_color-primitives---navy--500);
  line-height: 1.5;
}

.empty-state_action {
  display: flex;
  align-items: center;
  gap: 1em;
  white-space: nowrap;
}

.empty-state_card .card-arrow-circle {
  color: var(--_color-primitives---navy--900);
}

.empty-state_card .blog-item_icon-arrow {
  position: static;
  width: 1.125em;
  height: 1.125em;
}

/* Hover comes from the page's own position-card hover (Careers / Open Position page code): the dark fill rises
   from the bottom line, text turns white, the arrow circle turns white. Keyboard focus gets the same look: */
.career_position-card.empty-state_card:focus-visible::before {
  transform: scaleY(1);
}

.empty-state_card:focus-visible .text-h3,
.empty-state_card:focus-visible .text-body-2 {
  color: #fff;
}

.empty-state_card:focus-visible .empty-state_note {
  color: var(--_color-primitives---opacity--white-80);
}

.empty-state_card:focus-visible .card-arrow-circle {
  border-color: #fff;
  background-color: #fff;
  color: #172335;
}

.empty-state_card:focus-visible {
  outline: 2px solid var(--_color-primitives---navy--900);
  outline-offset: 4px;
}

@media screen and (max-width: 767px) {
  .career_position-card.empty-state_card {
    grid-template-columns: 1fr;
    grid-row-gap: 1.5em;
    padding-top: 2em;
    padding-bottom: 2em;
  }
}

/* 2. Article without contributors */
.article_contributers:has(.w-dyn-empty) {
  display: none;
}
