.opportunity-shell {
  width: min(100% - 32px, 1180px);
  margin: 1rem auto 2.5rem;
}

.opportunity-hero,
.opportunity-detail__hero {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--border, #e6ded5);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f5efe7 100%);
}

.opportunity-eyebrow {
  margin: 0 0 .4rem;
  color: var(--brand, #8b5e3c);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.opportunity-hero h1,
.opportunity-detail__hero h1 {
  margin: 0;
  color: var(--brand-dark, #3f2d22);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.06;
}

.opportunity-hero > p:last-child {
  max-width: 65ch;
  margin: .75rem 0 0;
  line-height: 1.55;
}

.opportunity-tabs,
.opportunity-cities,
.opportunity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

.opportunity-tabs a,
.opportunity-cities a,
.opportunity-pills span {
  padding: .5rem .75rem;
  border: 1px solid var(--border, #ddd4ca);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
}

.opportunity-tabs a[aria-current="page"],
.opportunity-cities a[aria-current="page"] {
  background: var(--brand-dark, #3f2d22);
  color: #fff;
}

.opportunity-search {
  max-width: 620px;
  margin: 1rem 0;
}

.opportunity-search label {
  display: block;
  margin-bottom: .35rem;
  font-size: .82rem;
  font-weight: 750;
}

.opportunity-search > div {
  display: flex;
  gap: .45rem;
}

.opportunity-search input {
  width: 100%;
  min-width: 0;
  padding: .7rem .8rem;
  border: 1px solid var(--border, #ddd4ca);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.opportunity-card {
  display: flex;
  flex-direction: column;
  padding: 1.05rem;
  border: 1px solid var(--border, #e6ded5);
  border-radius: 14px;
  background: var(--surface, #fff);
}

.opportunity-card__top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}

.opportunity-label,
.opportunity-highlight {
  color: var(--brand, #8b5e3c);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.opportunity-highlight {
  color: #315d3b;
}

.opportunity-card h2,
.opportunity-card h3 {
  margin: .55rem 0 .25rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.opportunity-card h2 a,
.opportunity-card h3 a {
  color: inherit;
  text-decoration: none;
}

.opportunity-card p {
  margin: .28rem 0;
  line-height: 1.45;
}

.opportunity-company,
.opportunity-expiry {
  color: var(--muted, #6f6a66);
  font-size: .84rem;
}

.opportunity-benefit {
  font-weight: 750;
}

.opportunity-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.opportunity-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.opportunity-empty {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--border, #ddd4ca);
  border-radius: 14px;
}

.opportunity-status {
  margin-bottom: .75rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: #fff1d6;
  color: #684b14;
  font-weight: 750;
}

.opportunity-detail__company {
  font-size: 1rem;
}

.opportunity-detail__company a {
  color: inherit;
  font-weight: 750;
}

.opportunity-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.opportunity-detail__main section,
.opportunity-detail__aside section {
  margin: 0 0 1rem;
  padding: 1.1rem;
  border: 1px solid var(--border, #e6ded5);
  border-radius: 14px;
  background: #fff;
}

.opportunity-detail h2 {
  margin: 0 0 .65rem;
  font-size: 1.2rem;
}

.opportunity-prose {
  line-height: 1.65;
}

.opportunity-prose p {
  margin: .45rem 0;
}

.opportunity-detail dl,
.opportunity-detail dd {
  margin: 0;
}

.opportunity-detail dl > div {
  padding: .65rem 0;
  border-bottom: 1px solid var(--border, #eee7df);
}

.opportunity-detail dl > div:last-child {
  border: 0;
}

.opportunity-detail dt {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted, #6f6a66);
}

.opportunity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1rem 0;
}

.opportunity-related {
  margin-top: 1.4rem;
}

.opportunity-offer-value {
  margin: .8rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #315d3b;
}

.opportunity-coupon {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: .8rem;
  padding: .6rem .8rem;
  border: 1px dashed #315d3b;
  border-radius: 10px;
  background: #fff;
}

.opportunity-coupon span {
  font-size: .75rem;
  text-transform: uppercase;
}

.opportunity-coupon strong {
  font-size: 1.05rem;
  letter-spacing: .05em;
}

@media (max-width: 850px) {
  .opportunity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opportunity-detail__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .opportunity-shell {
    width: calc(100% - 20px);
    margin-top: .5rem;
  }

  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-hero,
  .opportunity-detail__hero {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .opportunity-hero h1,
  .opportunity-detail__hero h1 {
    font-size: 1.8rem;
  }

  .opportunity-tabs,
  .opportunity-cities {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .25rem;
  }

  .opportunity-tabs a,
  .opportunity-cities a {
    white-space: nowrap;
  }

  .opportunity-pagination {
    justify-content: space-between;
    font-size: .82rem;
  }
}
