/* ==========================================================================
   /opportunities — the board.  .opp-* only.

   Every colour is a token from site.css; there is no hex literal in this file.
   The prototype's inline styles (lines 415–455) become real classes here, which
   is what gives the card its working :hover and the chips a working :focus-visible.
   ========================================================================== */

.opp-wrap {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(56px, 9vw, 112px);
}


/* ------------------------------------------------------------------ masthead */

.opp-h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6.4vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  max-width: 16ch;
}

.opp-lede {
  margin: 0 0 10px;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-ink-2);
  text-wrap: pretty;
}

.opp-count {
  margin: 0 0 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}


/* --------------------------------------------------------------------- chips
   Real links, so the board filters without JavaScript. 44px minimum height
   because a chip is a touch target, not a word in a sentence. */

.opp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.opp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--dash);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.opp-chip:hover { color: var(--rust); border-color: var(--rust); }

.opp-chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.opp-chip.is-on:hover { color: var(--paper); }


/* ---------------------------------------------------------------------- grid */

.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}


/* ---------------------------------------------------------------------- card */

.opp-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: 4px;
  transition: border-top-color 0.15s ease;
}
.opp-card:hover { border-top-color: var(--rust); }

.opp-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
}

.opp-type {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

.opp-deadline { color: var(--muted); }

.opp-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.opp-org {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
}

.opp-amount {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--rust);
}

/* flex:1 pushes every card's footer to the same baseline in a row */
.opp-why {
  margin: 0;
  flex: 1;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--body-ink-2);
}

.opp-foot {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
}

.opp-who {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.opp-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  word-break: break-word;
}


/* ---------------------------------------------------------------- spotted one?
   Always the last cell of the grid, filtered or not — the board is never a dead
   end. The button is the shared .btn .btn--rust (chalk on rust, never paper). */

.opp-spot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 22px;
  background: var(--wash);
  border: 1px dashed var(--dash);
  border-radius: 4px;
}

.opp-spot-h {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.opp-spot-p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--body-ink-2);
}

.opp-spot-cta { align-self: flex-start; }


/* --------------------------------------------------------------- empty state
   Renders whenever the grid holds nothing but the spotted-one card — including
   under a filter that matched nothing, which the prototype left unexplained. */

.opp-empty {
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-ink-2);
}
