.opportunities-page .fellowship-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 2.25rem;
  margin-top: 1.5rem;
}

.opportunities-page .fellowship-entry {
  padding-top: var(--editorial-entry-padding);
  border-top: var(--editorial-entry-rule);
}

.opportunities-page .fellowship-entry h3,
.opportunities-page .opportunity-entry h4 {
  margin: 0;
}

.opportunities-page .fellowship-entry p {
  margin: .5rem 0 0;
  line-height: 1.6;
}

.opportunities-page .opportunity-entry h4 a {
  color: var(--editorial-link);
}

.opportunities-page .fellowship-entry .entry-link {
  margin: .75rem 0 0;
}

.opportunities-page .fellowship-entry .entry-link a {
  color: var(--editorial-link);
  font-weight: 600;
}

.opportunities-page .fellowship-deadline {
  margin-top: .6rem;
  color: var(--editorial-muted);
}

.opportunities-page .fellowship-deadline-status {
  font-weight: 600;
}

.opportunities-page .opportunity-database-link {
  margin: 1rem 0 1.5rem;
}

.opportunities-page .opportunity-database-link a {
  font-weight: 600;
}

.opportunities-page .opportunity-list {
  border-top: 1px solid var(--content-rule);
}

.opportunities-page .opportunity-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--content-rule);
}

.opportunities-page .opportunity-entry h4 a {
  text-decoration-thickness: 1px;
  text-underline-offset: .12em;
}

.opportunities-page .opportunity-funder {
  margin: .25rem 0 0;
  color: var(--editorial-muted);
  font-weight: 500;
}

.opportunities-page .opportunity-description {
  margin: .4rem 0 .75rem;
  color: var(--editorial-muted);
}

.opportunities-page .opportunity-meta {
  margin: 0;
  text-align: left;
}

.opportunities-page .opportunity-meta p {
  margin: 0;
}

.opportunities-page .opportunity-deadline {
  margin-bottom: .15rem !important;
}

.opportunities-page .opportunity-details {
  line-height: 1.5;
}

.opportunities-page .opportunity-meta-label {
  color: var(--editorial-muted);
  font-size: .95em;
  font-style: normal;
  font-weight: 600;
}

.opportunities-page .opportunity-deadline-value {
  font-weight: 600;
}

.opportunities-page .opportunity-section-note {
  margin-top: -.25rem;
  color: var(--editorial-muted);
  font-size: .9em;
}

.opportunities-page .opportunity-deadline-note {
  margin-top: .3rem !important;
  color: inherit;
  font-size: 1em;
  font-weight: 400;
}

.opportunities-page .opportunity-filters {
  display: grid;
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}

.opportunities-page .opportunity-filters label {
  font-weight: 600;
}

.opportunities-page .opportunity-filters select {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .4rem .5rem;
  border: 1px solid var(--site-control-border);
  border-radius: 4px;
  background: var(--site-surface);
  color: inherit;
  font: inherit;
}

.opportunities-page .opportunity-no-results {
  margin: 1rem 0;
}

.fellowship-table {
  overflow-x: auto;
  margin: .75rem 0 1rem;
}

.fellowship-table table {
  width: 100%;
  border-collapse: collapse;
}

.fellowship-table th,
.fellowship-table td {
  padding: .5rem .75rem .5rem 0;
  border-bottom: 1px solid var(--content-rule);
  text-align: left;
  vertical-align: top;
}

.fellowship-table th {
  white-space: nowrap;
}

@media (min-width: 600px) {
  .opportunities-page .opportunity-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .opportunities-page .fellowship-list {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }
}
