.leaf-opp-hub {
  --leaf-opp-green: #06332d;
  --leaf-opp-green-2: #0b4a3e;
  --leaf-opp-cream: #f5eadc;
  --leaf-opp-card: #fffaf3;
  --leaf-opp-white: #ffffff;
  --leaf-opp-gold: #b46a08;
  --leaf-opp-text: #102a27;
  --leaf-opp-muted: #667085;
  --leaf-opp-border: rgba(6, 51, 45, 0.13);
  --leaf-opp-danger: #b42318;
  --leaf-opp-success: #067647;
  --leaf-opp-warning: #b54708;
  --leaf-opp-radius-lg: 28px;
  --leaf-opp-radius-md: 18px;
  --leaf-opp-shadow: 0 18px 45px rgba(6, 51, 45, 0.09);
  position: relative;
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding: 34px 0 56px;
  color: var(--leaf-opp-text);
  font-family: "Aptos", "Segoe UI", sans-serif;
}

.leaf-opp-hub *,
.leaf-opp-hub *::before,
.leaf-opp-hub *::after {
  box-sizing: border-box;
}

.leaf-opp-hub a {
  color: inherit;
}

.leaf-opp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--leaf-opp-border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 15%, rgba(180, 106, 8, 0.18), transparent 20rem),
    linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(245, 234, 220, 0.9));
  box-shadow: var(--leaf-opp-shadow);
}

.leaf-opp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--leaf-opp-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.leaf-opp-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leaf-opp-gold);
}

.leaf-opp-hero h1,
.leaf-opp-submit h2,
.leaf-opp-card h2,
.leaf-opp-detail-content h2,
.leaf-opp-detail-content h3 {
  margin: 0;
  color: var(--leaf-opp-green);
  font-family: "Rink", "Aptos", "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.leaf-opp-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.9;
}

.leaf-opp-hero p {
  max-width: 760px;
  margin: 24px 0 12px;
  color: rgba(16, 42, 39, 0.76);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.leaf-opp-hero small {
  display: block;
  color: rgba(6, 51, 45, 0.72);
  font-size: 0.98rem;
  font-weight: 700;
}

.leaf-opp-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--leaf-opp-green);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
}

.leaf-opp-filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--leaf-opp-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(6, 51, 45, 0.05);
}

.leaf-opp-filters label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.leaf-opp-filters span {
  color: var(--leaf-opp-green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.leaf-opp-filters input,
.leaf-opp-filters select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(6, 51, 45, 0.15);
  border-radius: 14px;
  background: #fff;
  color: var(--leaf-opp-text);
  font: inherit;
  box-shadow: none;
}

.leaf-opp-filters input:focus,
.leaf-opp-filters select:focus,
.leaf-opp-button:focus,
.leaf-opp-modal-close:focus {
  outline: 3px solid rgba(180, 106, 8, 0.25);
  outline-offset: 2px;
}

.leaf-opp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.leaf-opp-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--leaf-opp-border);
  border-radius: var(--leaf-opp-radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(180, 106, 8, 0.11), transparent 12rem),
    rgba(255, 250, 243, 0.94);
  box-shadow: 0 16px 38px rgba(6, 51, 45, 0.07);
}

.leaf-opp-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.leaf-opp-status,
.leaf-opp-featured,
.leaf-opp-closing-soon {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaf-opp-status-open {
  background: rgba(6, 118, 71, 0.12);
  color: var(--leaf-opp-success);
}

.leaf-opp-status-closed {
  background: rgba(180, 35, 24, 0.12);
  color: var(--leaf-opp-danger);
}

.leaf-opp-status-upcoming {
  background: rgba(180, 106, 8, 0.13);
  color: var(--leaf-opp-warning);
}

.leaf-opp-featured {
  background: rgba(6, 51, 45, 0.09);
  color: var(--leaf-opp-green);
}

.leaf-opp-closing-soon {
  background: rgba(180, 106, 8, 0.16);
  color: var(--leaf-opp-warning);
}

.leaf-opp-card h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.02;
}

.leaf-opp-card p {
  margin: 0;
  color: var(--leaf-opp-muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.leaf-opp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaf-opp-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(6, 51, 45, 0.09);
  color: rgba(6, 51, 45, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.leaf-opp-tag-type {
  background: rgba(6, 51, 45, 0.08) !important;
}

.leaf-opp-meta-list,
.leaf-opp-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.leaf-opp-meta-list {
  margin-top: auto;
  padding-top: 8px;
}

.leaf-opp-meta-list div,
.leaf-opp-detail-list div {
  display: grid;
  gap: 3px;
}

.leaf-opp-meta-list dt,
.leaf-opp-detail-list dt {
  color: rgba(6, 51, 45, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaf-opp-meta-list dd,
.leaf-opp-detail-list dd {
  margin: 0;
  color: var(--leaf-opp-text);
  font-weight: 800;
}

.leaf-opp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.leaf-opp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.leaf-opp-button:hover {
  transform: translateY(-2px);
}

.leaf-opp-button-primary {
  background: linear-gradient(135deg, var(--leaf-opp-green-2), var(--leaf-opp-green));
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(6, 51, 45, 0.15);
}

.leaf-opp-button-light {
  background: #fff;
  color: var(--leaf-opp-green) !important;
  border-color: rgba(6, 51, 45, 0.16);
}

.leaf-opp-empty {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid var(--leaf-opp-border);
  border-radius: 20px;
  background: #fff;
  color: var(--leaf-opp-green);
  font-weight: 900;
  text-align: center;
}

.leaf-opp-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--leaf-opp-border);
  border-radius: var(--leaf-opp-radius-lg);
  background: linear-gradient(135deg, rgba(6, 51, 45, 0.08), rgba(180, 106, 8, 0.08));
}

.leaf-opp-submit h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 3.2vw, 3.5rem);
  line-height: 0.98;
}

.leaf-opp-submit p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--leaf-opp-muted);
  line-height: 1.58;
}

.leaf-opp-disclaimer {
  margin: 18px 0 0;
  color: var(--leaf-opp-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.leaf-opp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.leaf-opp-modal.is-open {
  display: block;
}

.leaf-opp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 18, 0.58);
}

.leaf-opp-modal-panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 42px);
  margin: 21px auto;
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
  background: #fffaf3;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.leaf-opp-modal-close {
  position: sticky;
  top: 0;
  float: right;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--leaf-opp-green);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.leaf-opp-detail-content h2 {
  clear: both;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.leaf-opp-detail-overview {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(6, 51, 45, 0.06);
}

.leaf-opp-detail-overview h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.leaf-opp-detail-overview p {
  margin: 0 0 10px;
  color: var(--leaf-opp-muted);
  line-height: 1.6;
}

.leaf-opp-detail-list {
  gap: 12px;
}

.leaf-opp-detail-list div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(6, 51, 45, 0.10);
}

.leaf-opp-detail-list a {
  color: var(--leaf-opp-green);
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .leaf-opp-filters,
  .leaf-opp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .leaf-opp-hub {
    width: min(100%, 94vw);
    padding-top: 20px;
  }

  .leaf-opp-hero,
  .leaf-opp-submit,
  .leaf-opp-card {
    border-radius: 22px;
  }

  .leaf-opp-hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
    max-width: 11ch;
  }

  .leaf-opp-filters,
  .leaf-opp-grid,
  .leaf-opp-submit {
    grid-template-columns: 1fr;
  }

  .leaf-opp-card {
    min-height: auto;
    padding: 20px;
  }

  .leaf-opp-actions,
  .leaf-opp-button,
  .leaf-opp-hero-link {
    width: 100%;
  }

  .leaf-opp-modal-panel {
    width: min(94vw, 760px);
    margin: 14px auto;
    max-height: calc(100vh - 28px);
  }
}
