.job-feed {
  --feed-ink: var(--ink);
  --feed-muted: var(--muted);
  --feed-line: var(--line);
  --feed-wash: var(--green-soft);
  color: var(--feed-ink);
}

.feed-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 24px;
}

.feed-intro h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 46px); }
.feed-intro p { margin: 0; max-width: 590px; }
.feed-live-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--feed-line);
  border-radius: 999px;
  background: #fff;
  color: #58736a;
  font-size: 12px;
  font-weight: 700;
}
.feed-live-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56a578;
}
.feed-live-note { flex-wrap: wrap; }
.feed-live-note .feed-refresh-button { color: #28664d; }

.feed-filters {
  padding: clamp(17px, 3vw, 25px);
  margin-bottom: 27px;
  background: linear-gradient(135deg, #fff 0%, #fbfdfb 100%);
  border: 1px solid var(--feed-line);
  border-radius: 21px;
  box-shadow: 0 12px 32px rgba(23, 73, 55, .055);
}
.feed-filter-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(145px, .9fr) minmax(145px, .9fr) minmax(135px, .8fr);
  gap: 14px 12px;
  align-items: end;
}
.feed-filters .field { margin: 0; min-width: 0; }
.feed-filters .field label { display: block; margin-bottom: 0; }
.feed-filters input, .feed-filters select { border-color: #d7e5dc; background-color: #fff; }
.feed-query { grid-column: span 2; }
.feed-location-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(105px, .75fr);
  gap: 9px;
}
.feed-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid #e9f0eb;
}
.feed-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: #435e53;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.feed-check input { width: 17px; height: 17px; margin: 0; }
.feed-filter-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.feed-clear {
  color: #58736a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feed-clear:hover { color: var(--feed-ink); }
.feed-filter-actions .button { min-width: 126px; }

.feed-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 13px;
}
.feed-results-head h2 { margin: 0; font-size: 22px; }
.feed-count { color: var(--feed-muted); font-size: 13px; font-weight: 650; }
.feed-count strong { color: var(--feed-ink); font-variant-numeric: tabular-nums; }
.feed-status {
  min-height: 0;
  margin: -3px 0 12px;
  color: #637970;
  font-size: 12px;
}
.feed-status:empty { display: none; }
.feed-status[data-state="error"] {
  padding: 11px 13px;
  border: 1px solid #f0d1c9;
  border-radius: 12px;
  color: #9a4435;
  background: #fff5f1;
}
.feed-status[data-state="updated"] { color: #387252; }
.feed-status[data-state="loading"] { color: #637970; }

.feed-list { display: grid; gap: 11px; }
.feed-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 21px 23px;
  border: 1px solid var(--feed-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 73, 55, .025);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.feed-card:hover { transform: translateY(-2px); border-color: #bdd8c8; box-shadow: 0 12px 27px rgba(23, 73, 55, .08); }
.feed-card-main { min-width: 0; }
.feed-card-title {
  display: inline-block;
  color: #193e33;
  font: 750 clamp(17px, 2vw, 20px)/1.3 Manrope, "DM Sans", sans-serif;
  letter-spacing: -.035em;
  text-decoration: none;
}
.feed-card-title:hover { color: var(--green); }
.feed-card-summary { margin: 8px 0 0; color: #60746c; font-size: 13px; line-height: 1.6; }
.feed-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
  margin-top: 12px;
  color: #687e75;
  font-size: 12px;
}
.feed-category {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
}
.feed-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.feed-meta-item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feed-card-side {
  display: flex;
  min-width: 125px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  text-align: right;
}
.feed-budget { color: var(--green); font: 800 17px Manrope, "DM Sans", sans-serif; white-space: nowrap; }
.feed-budget-note { color: #72847c; font-size: 11px; font-weight: 600; }
.feed-open-link { color: var(--green); font-size: 12px; font-weight: 750; }
.feed-open-link span { display: inline-block; margin-left: 3px; transition: transform 170ms ease; }
.feed-card:hover .feed-open-link span { transform: translateX(3px); }
.feed-empty {
  padding: 48px 24px;
  border: 1px dashed #c8d9ce;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6faf6, #fff);
  text-align: center;
}
.feed-empty-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 15px;
  background: #e7f3eb;
  color: #37775a;
}
.feed-empty-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feed-empty h3 { margin-bottom: 7px; }
.feed-empty p { max-width: 460px; margin: 0 auto 17px; font-size: 13px; }
.feed-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.feed-pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d7e5dc;
  border-radius: 11px;
  background: #fff;
  color: #315c49;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.feed-pagination a:hover { border-color: #94bea5; background: #f1f8f3; }
.feed-page-label { color: #70837a; font-size: 12px; }
.feed-refresh-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feed-refresh-button:focus-visible, .feed-clear:focus-visible, .feed-pagination a:focus-visible, .feed-card a:focus-visible {
  outline: 3px solid #c4e88d;
  outline-offset: 3px;
  border-radius: 5px;
}

@media (max-width: 800px) {
  .feed-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-query { grid-column: span 2; }
}
@media (max-width: 600px) {
  .feed-intro { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 14px; }
  .feed-intro .eyebrow { margin-bottom: 4px; }
  .feed-intro h1 { font-size: 30px; margin-bottom: 0; }
  .feed-intro p { display: none; }
  .feed-live-note { padding: 7px 10px; }
  .feed-filters { padding: 14px; margin-bottom: 16px; border-radius: 17px; }
  .feed-filter-grid { grid-template-columns: 1fr 1fr; gap: 8px 9px; }
  .feed-filters .field { gap: 4px; }
  .feed-filters .field label { font-size: 12px; }
  .feed-filters input, .feed-filters select { min-height: 44px; }
  .feed-filters input[type="checkbox"] { min-height: unset; }
  .feed-query { grid-column: 1 / -1; }
  .feed-location-row { grid-template-columns: 1fr; gap: 8px; }
  .feed-options { align-items: stretch; flex-direction: column; gap: 0; margin-top: 8px; padding-top: 5px; }
  .feed-filter-actions { width: 100%; justify-content: space-between; margin: 7px 0 0; }
  .feed-filter-actions .button { min-width: 118px; }
  .feed-results-head { align-items: flex-start; flex-direction: column; gap: 2px; margin-bottom: 11px; }
  .feed-results-head h2 { font-size: 20px; }
  .feed-card { grid-template-columns: 1fr; gap: 13px; padding: 17px; border-radius: 15px; }
  .feed-card-side { min-width: 0; flex-direction: row; align-items: center; text-align: left; }
  .feed-card-meta { gap: 8px 11px; }
  .feed-card-summary { font-size: 12px; }
  .feed-empty { padding: 35px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-card, .feed-open-link span, .feed-pagination a { transition: none; }
  .feed-card:hover { transform: none; }
}
