/* pages/offers.css */
/* ---------- Offers ---------- */
.offers-actionbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-12);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-16);
}

.offer-card {
  display: grid;
  gap: var(--space-12);
  padding: var(--space-16);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius-8);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.offer-card:hover {
  background: var(--bg-elevated);
}
.offer-card.off {
  border-left-color: var(--text-muted);
}

.offer-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
}
.offer-card__pills { display: inline-flex; gap: var(--space-6); align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
/* let the name column shrink so the pills never spill past the card edge */
.offer-card__top > div { min-width: 0; }
.offer-card__name { overflow-wrap: anywhere; }

/* Vacancies → mapping column: show the offer's RU name, truncated with ellipsis
   so a long «Voxys · Оператор колл-центра удаленно» stays one tidy pill; full
   slug in the title tooltip. Keep the pill's inline-flex + status dot; the inner
   span is the flex item that shrinks (min-width:0) and ellipsizes, leaving the
   dot and any «+N» fan counter always visible. */
.pill.vac-offer-pill { max-width: 260px; }
.vac-offer-pill__txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offer-card__name {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.25;
}
.offer-card__slug {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.offer-card__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: var(--space-4);
  column-gap: var(--space-8);
  font-size: var(--fs-secondary);
  color: var(--text-tertiary);
}
.offer-card__meta strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
}

.offer-card--new {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: var(--space-16);
  background: transparent;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-8);
  color: var(--accent-soft-text);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.offer-card--new:hover {
  border-color: var(--accent-soft-border);
  color: var(--text-primary);
  background: var(--accent-soft-bg);
}

/* ---------- Offer Editor (fullscreen overlay) ---------- */
.view.fullscreen {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay); /* Tails C-a11y-z: literal match — this IS the "fullscreen overlay" per the comment above; now correctly above .bottom-tab-bar (1200 > 1100) instead of tied with it at 100 */
  background: var(--bg-canvas);
  display: flex;
  flex-direction: column;
}
.view.fullscreen[hidden] {
  display: none;
}
