
/* Hidden states must override component display rules. */
.feed-loading[hidden],
.feed-message[hidden] {
  display: none !important;
}
.opportunities-page {
  background: #f8f8fc;
}

.opportunities-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 158px 0 72px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfbff 0%, #f3f3ff 100%);
}

.opportunities-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background-image:
    linear-gradient(rgba(69,70,120,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,70,120,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.75) 70%, transparent 100%);
}

.opportunities-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
}

.opportunities-intro {
  max-width: 790px;
}

.opportunities-intro h1 {
  max-width: 760px;
  margin: 19px 0 0;
  font-size: clamp(58px, 7vw, 94px);
  line-height: .94;
  letter-spacing: -.067em;
}

.opportunities-intro p {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.sample-status {
  flex: 0 0 250px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid #d9daee;
  border-radius: 15px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 42px rgba(25,27,80,.08);
}

.status-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(19,165,107,.12);
}

.sample-status b,
.sample-status small {
  display: block;
}

.sample-status b {
  margin-bottom: 4px;
  font-size: 13px;
}

.sample-status small {
  color: #73758b;
  font-size: 10px;
  line-height: 1.45;
}

.opportunities-section {
  padding: 48px 0 92px;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.feed-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.feed-count strong {
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.05em;
}

.feed-count span {
  color: #66687d;
  font-size: 13px;
  font-weight: 700;
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.search-control,
.select-control {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid #d9daea;
  border-radius: 12px;
  background: white;
}

.search-control {
  width: min(330px, 40vw);
  gap: 9px;
  padding: 0 14px;
}

.search-control svg {
  width: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #7c7e93;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-control input,
.select-control select {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-control input::placeholder {
  color: #9294a7;
}

.select-control {
  min-width: 155px;
  padding: 0 11px;
}

.select-control select {
  cursor: pointer;
}

.search-control:focus-within,
.select-control:focus-within {
  border-color: #9d9eff;
  box-shadow: 0 0 0 4px rgba(88,90,255,.09);
}

.feed-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  margin-bottom: 24px;
  padding: 15px 17px;
  border: 1px solid #dbdced;
  border-radius: 13px;
  background: #f1f1ff;
}

.feed-notice span {
  padding: 5px 8px;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.feed-notice p {
  margin: 2px 0 0;
  color: #5d5f77;
  font-size: 11px;
  line-height: 1.55;
}

.opportunity-list {
  display: grid;
  gap: 15px;
}

.live-opportunity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px;
  gap: 34px;
  padding: 28px;
  border: 1px solid #ddddeb;
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 35px rgba(20,22,68,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.live-opportunity-card:hover {
  transform: translateY(-3px);
  border-color: #babbff;
  box-shadow: 0 18px 46px rgba(20,22,68,.075);
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.stage-badge,
.notice-badge,
.set-aside-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.stage-badge {
  background: var(--blue);
  color: white;
}

.stage-badge.early {
  background: #ececff;
  color: var(--blue);
}

.notice-badge {
  border: 1px solid #e0e1ed;
  background: #fafaff;
  color: #74768b;
}

.set-aside-badge {
  background: #eefaf5;
  color: #087d51;
}

.card-main h2 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1.14;
  letter-spacing: -.04em;
}

.card-agency {
  margin: 9px 0 0;
  color: #77798e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.card-summary {
  max-width: 830px;
  margin: 21px 0 0;
  color: #54566d;
  font-size: 14px;
  line-height: 1.72;
}

.card-warning {
  max-width: 830px;
  margin: 15px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #e6a100;
  border-radius: 0 8px 8px 0;
  background: #fff9e9;
  color: #745615;
  font-size: 11px;
  line-height: 1.55;
}

.card-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 23px;
}

.detail-item {
  padding: 12px 13px;
  border: 1px solid #ececf4;
  border-radius: 10px;
  background: #fafaff;
}

.detail-item span,
.detail-item b {
  display: block;
}

.detail-item span {
  margin-bottom: 6px;
  color: #8b8da0;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.detail-item b {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.45;
}

.card-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding-left: 28px;
  border-left: 1px solid #ececf4;
}

.score-block {
  text-align: right;
}

.score-number {
  display: block;
  color: var(--blue);
  font-size: 48px;
  line-height: .9;
  font-weight: 850;
  letter-spacing: -.065em;
}

.score-label {
  display: block;
  margin-top: 7px;
  color: #85879a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.deadline-block {
  padding: 14px;
  border-radius: 12px;
  background: #f2f2ff;
}

.deadline-block span,
.deadline-block b,
.deadline-block small {
  display: block;
}

.deadline-block span {
  margin-bottom: 7px;
  color: #7d7f95;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.deadline-block b {
  font-size: 14px;
  letter-spacing: -.02em;
}

.deadline-block small {
  margin-top: 4px;
  color: #73758a;
  font-size: 9px;
}

.source-button {
  width: 100%;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.source-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,255,.20);
}

.source-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-loading {
  display: grid;
  gap: 15px;
}

.loading-card {
  height: 290px;
  border: 1px solid #e1e2ed;
  border-radius: 20px;
  background: linear-gradient(90deg, #fff 25%, #f5f5fb 37%, #fff 63%);
  background-size: 400% 100%;
  animation: loading-shimmer 1.5s ease infinite;
}

@keyframes loading-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.feed-message {
  padding: 65px 28px;
  border: 1px solid #ddddeb;
  border-radius: 20px;
  background: white;
  text-align: center;
}

.feed-message h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.045em;
}

.feed-message p {
  max-width: 520px;
  margin: 13px auto 24px;
  color: #6c6e83;
  font-size: 13px;
}

.sample-cta {
  padding: 0 0 90px;
}

.sample-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 50px 54px;
  border-radius: 28px;
  background: var(--ink);
  color: white;
  box-shadow: 0 24px 65px rgba(16,17,39,.16);
}

.sample-cta-panel h2 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 53px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.sample-cta-panel p {
  max-width: 650px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.63);
  font-size: 14px;
}

.sample-cta-panel .button {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .opportunities-hero-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 35px;
  }

  .sample-status {
    flex-basis: auto;
  }

  .live-opportunity-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-side {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.3fr;
    align-items: center;
    gap: 13px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid #ececf4;
  }

  .score-block {
    text-align: left;
  }

  .score-number {
    font-size: 38px;
  }

  .sample-cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .opportunities-hero {
    padding: 120px 0 52px;
  }

  .opportunities-grid {
    background-size: 32px 32px;
  }

  .opportunities-intro h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .opportunities-intro p {
    font-size: 15px;
  }

  .opportunities-section {
    padding-top: 30px;
  }

  .feed-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-controls {
    flex-direction: column;
  }

  .search-control,
  .select-control {
    width: 100%;
  }

  .feed-notice {
    grid-template-columns: 1fr;
  }

  .live-opportunity-card {
    padding: 21px;
    border-radius: 16px;
  }

  .card-main h2 {
    font-size: 23px;
  }

  .card-details {
    grid-template-columns: 1fr 1fr;
  }

  .card-side {
    grid-template-columns: 1fr;
  }

  .score-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .score-label {
    margin-top: 0;
  }

  .sample-cta {
    padding-bottom: 55px;
  }

  .sample-cta-panel {
    padding: 36px 24px;
  }

  .sample-cta-panel .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-card {
    animation: none;
  }
}

/* Beta-readiness readability and affordance refinements */
.live-opportunity-card:hover {
  transform: none;
  border-color: #ddddeb;
  box-shadow: 0 12px 35px rgba(20,22,68,.045);
}
.stage-badge,
.notice-badge,
.set-aside-badge { font-size: 10px; }
.card-agency,
.card-summary,
.detail-item b,
.deadline-block b,
.deadline-block small,
.score-label,
.source-button { font-size: 12px; }
.feed-notice p,
.sample-status small { font-size: 12px; }
.source-button { min-height: 46px; }

/* Batch 1 public-feed explanation and label contrast */
.search-control input::placeholder { color: #65677a; }
.sample-status small,
.card-agency,
.notice-badge { color: #65677a; }
.feed-notice span { font-size: 11px; }
.feed-notice p { color: #51536b; }
.feed-notice p strong { color: var(--ink); }
.detail-item span {
  color: #65677a;
  font-size: 11px;
  line-height: 1.3;
}
.score-label {
  color: #65677a;
  font-size: 12px;
  line-height: 1.35;
}
.deadline-block span {
  color: #65677a;
  font-size: 11px;
  line-height: 1.3;
}
.deadline-block small { color: #65677a; font-size: 12px; }
