.opportunities-shell,
.opportunity-detail-shell,
.opportunity-form-page,
.opportunity-management-shell,
.opportunity-empty-page {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5.5rem, 7vw, 7rem) 0 5rem;
}

.opportunities-hero,
.section-heading,
.opportunity-form-actions,
.post-card-header,
.post-card-stats,
.post-card-actions,
.opportunities-filter-bar,
.opportunity-hero-actions,
.opportunities-hero-actions,
.network-row,
.pipeline-row,
.report-row,
.notification-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.opportunities-hero,
.section-heading {
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.opportunities-hero h1,
.section-heading h1,
.opportunity-form-page h1,
.opportunity-management-shell > h1,
.opportunity-empty-page h1 {
  margin: 0.2rem 0 0.7rem;
  color: #12352e;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.opportunities-hero p,
.section-heading p,
.opportunity-management-shell > p {
  max-width: 720px;
  margin: 0;
  color: #65756d;
  line-height: 1.7;
}

.opportunities-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 220px;
  align-items: start;
  gap: 1.2rem;
}

.opportunities-sidebar {
  position: sticky;
  top: 1rem;
}

.opportunities-nav,
.opportunities-nav-section,
.opportunity-side-panel,
.opportunity-composer,
.opportunity-post-card,
.opportunity-filter-bar,
.opportunity-empty-state,
.opportunity-comments,
.management-overview,
.pipeline-section,
.network-grid > section,
.notification-list,
.report-list {
  border: 1px solid rgba(19, 53, 46, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(19, 53, 46, 0.06);
}

.opportunities-nav,
.opportunities-nav-section {
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem;
}

.opportunities-nav-section {
  margin-top: 0.8rem;
}

.opportunities-nav-section > span,
.panel-kicker {
  padding: 0.5rem 0.7rem;
  color: #71827a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opportunities-nav a,
.opportunities-nav-section a,
.back-link {
  display: block;
  padding: 0.65rem 0.75rem;
  color: #52665d;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

.opportunities-nav a:hover,
.opportunities-nav a.active,
.opportunities-nav-section a:hover {
  background: #e8f4ef;
  color: #0f5949;
}

.opportunity-composer {
  overflow: hidden;
  margin-bottom: 1rem;
}

.opportunity-composer > summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  color: #124f41;
  font-weight: 800;
  list-style: none;
}

.opportunity-composer > summary::-webkit-details-marker { display: none; }
.composer-plus { display: inline-grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #d8f0e5; color: #0f5949; font-size: 1.35rem; }
.opportunity-form { padding: 0 1.1rem 1.1rem; }
.opportunity-type-picker { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.type-choice,
.post-card-actions button,
.post-card-actions a {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: #f0f5f2;
  color: #38564b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.type-choice.active,
.post-card-actions button.active { background: #d8f0e5; color: #0f5949; }
.opportunity-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.opportunity-form-grid label { display: grid; gap: 0.35rem; color: #52665d; font-size: 0.83rem; font-weight: 800; }
.opportunity-form-grid .field-wide { grid-column: 1 / -1; }
.opportunity-form input,
.opportunity-form select,
.opportunity-form textarea,
.opportunities-filter-bar input,
.opportunities-filter-bar select,
.comment-form textarea,
.opportunity-dialog textarea,
.report-row textarea {
  width: 100%;
  border: 1px solid rgba(19, 53, 46, 0.16);
  border-radius: 10px;
  padding: 0.68rem 0.75rem;
  background: #fbfdfc;
  color: #1d3028;
  font: inherit;
  font-size: 0.92rem;
  box-sizing: border-box;
}
.opportunity-form input:focus,
.opportunity-form select:focus,
.opportunity-form textarea:focus,
.opportunities-filter-bar input:focus { outline: 3px solid rgba(20, 184, 166, 0.22); border-color: #279b80; }
.opportunity-type-fields { grid-column: 1 / -1; padding-top: 0.4rem; }
.opportunity-form-actions { justify-content: flex-end; margin-top: 1rem; }
.opportunity-login-callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border: 1px solid rgba(20, 120, 95, 0.15); border-radius: 16px; background: #eff9f4; }
.opportunity-login-callout p { margin: 0; color: #315b4d; }
.primary-cta,
.secondary-cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border: 0; border-radius: 10px; padding: 0.68rem 0.95rem; font: inherit; font-size: 0.82rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-cta { background: #0f5949; color: #fff; }
.secondary-cta { background: #e9f3ef; color: #145744; }
.notification-badge { display: inline-grid; min-width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 999px; background: #ef6b55; color: #fff; font-size: 0.7rem; }
.opportunities-filter-bar { align-items: end; padding: 0.8rem; margin-bottom: 1rem; box-shadow: none; }
.opportunities-filter-bar label { display: grid; gap: 0.3rem; color: #71827a; font-size: 0.72rem; font-weight: 800; }
.opportunities-filter-bar input,
.opportunities-filter-bar select { padding: 0.55rem 0.65rem; font-size: 0.82rem; }
.opportunities-filter-bar .filter-search { flex: 1; }
.opportunities-feed { display: grid; gap: 1rem; }
.opportunity-post-card { padding: 1.15rem; }
.post-card-header { align-items: flex-start; }
.post-card-header > div:nth-child(2) { display: grid; gap: 0.15rem; min-width: 0; flex: 1; }
.post-card-header strong { color: #183c31; }
.post-card-header span:not(.post-type-label) { color: #7b8b84; font-size: 0.76rem; }
.author-avatar { display: grid; flex: 0 0 2.3rem; width: 2.3rem; height: 2.3rem; place-items: center; border-radius: 50%; background: #d8f0e5; color: #0f5949; font-weight: 900; }
.post-type-label { display: inline-flex; width: fit-content; border-radius: 999px; padding: 0.3rem 0.55rem; background: #f0f5f2; color: #537063; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.post-type-job { background: #fff3d7; color: #8e5c08; }
.post-type-partnership { background: #e8ebff; color: #4653a0; }
.opportunity-post-card h2 { margin: 1rem 0 0.55rem; color: #173a30; font-size: 1.2rem; }
.opportunity-post-card h2 a { color: inherit; text-decoration: none; }
.post-structured-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.6rem 0; }
.post-structured-meta span,
.post-tags { border-radius: 999px; padding: 0.32rem 0.6rem; background: #f6f8f7; color: #53665d; font-size: 0.76rem; }
.post-body { margin: 0.8rem 0; color: #3f554b; line-height: 1.7; white-space: pre-line; }
.post-card-stats { justify-content: flex-start; padding: 0.75rem 0; border-top: 1px solid rgba(19, 53, 46, 0.09); color: #75867d; font-size: 0.76rem; }
.post-card-actions { flex-wrap: wrap; justify-content: flex-start; }
.post-card-actions form { margin: 0; }
.post-card-actions a { background: transparent; }
.opportunity-side-panel { display: grid; gap: 0.4rem; padding: 1rem; margin-bottom: 0.8rem; }
.opportunity-side-panel strong { color: #0f5949; font-size: 2.1rem; }
.opportunity-side-panel p { margin: 0; color: #60736a; line-height: 1.6; }
.opportunity-side-panel a { color: #0f5949; font-weight: 800; text-decoration: none; }
.opportunity-side-note { background: #f2f8f5; box-shadow: none; }
.opportunity-dialog { width: min(520px, calc(100% - 2rem)); border: 0; border-radius: 16px; padding: 1.2rem; box-shadow: 0 28px 80px rgba(0,0,0,0.24); }
.opportunity-dialog::backdrop { background: rgba(6, 25, 19, 0.45); }
.opportunity-dialog h3 { margin-top: 0; color: #173a30; }
.opportunity-dialog label { display: grid; gap: 0.4rem; color: #52665d; font-weight: 800; }
.back-link { width: fit-content; padding-left: 0; margin-bottom: 1rem; }
.opportunity-detail-shell > .opportunity-post-card { max-width: 900px; margin: 0 auto; }
.opportunity-comments { max-width: 900px; margin: 1rem auto 0; padding: 1.1rem; }
.opportunity-comments h2 { margin-top: 0; color: #173a30; }
.comment-form { display: grid; gap: 0.65rem; margin-bottom: 1rem; }
.comment-form .primary-cta { justify-self: end; }
.comment-list { display: grid; gap: 0.75rem; }
.comment-item { padding: 0.75rem; border-left: 3px solid #d8f0e5; background: #f8fbf9; }
.comment-item strong { color: #173a30; }
.comment-item small { margin-left: 0.5rem; color: #84938d; }
.comment-item p { margin: 0.4rem 0 0; color: #4e6258; white-space: pre-line; }
.opportunity-management-shell > .back-link { margin-bottom: 1rem; }
.management-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.management-tabs a { padding: 0.55rem 0.75rem; border-radius: 999px; color: #5b7065; text-decoration: none; font-size: 0.82rem; font-weight: 800; }
.management-tabs a.active { background: #d8f0e5; color: #0f5949; }
.management-table-wrap { overflow-x: auto; border: 1px solid rgba(19, 53, 46, 0.12); border-radius: 16px; background: #fff; }
.management-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.management-table th,
.management-table td { padding: 0.85rem 0.9rem; border-bottom: 1px solid rgba(19, 53, 46, 0.09); text-align: left; color: #52665d; font-size: 0.82rem; }
.management-table th { color: #173a30; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.management-table a { margin-right: 0.65rem; color: #0f5949; font-weight: 800; text-decoration: none; }
.status-chip { border-radius: 999px; padding: 0.3rem 0.55rem; background: #f0f5f2; color: #567167; font-size: 0.72rem; font-weight: 800; }
.management-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0; }
.management-overview div { display: grid; gap: 0.2rem; padding: 1rem; border-right: 1px solid rgba(19, 53, 46, 0.09); }
.management-overview div:last-child { border-right: 0; }
.management-overview strong { color: #0f5949; font-size: 1.8rem; }
.management-overview span { color: #74867c; font-size: 0.8rem; }
.pipeline-section { padding: 1rem; }
.pipeline-section h2 { margin-top: 0; color: #173a30; }
.pipeline-row { align-items: flex-start; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid rgba(19, 53, 46, 0.08); }
.pipeline-row:last-child { border-bottom: 0; }
.pipeline-row > div { min-width: 0; flex: 1; }
.pipeline-row p { margin: 0.35rem 0; color: #52665d; white-space: pre-line; }
.pipeline-row small,
.muted-copy { color: #829088; font-size: 0.8rem; }
.pipeline-row form { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }
.pipeline-row select { border: 1px solid rgba(19, 53, 46, 0.16); border-radius: 8px; padding: 0.45rem; background: #fff; }
.network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.network-grid > section { padding: 1rem; }
.network-grid h2 { margin-top: 0; color: #173a30; font-size: 1rem; }
.network-row { justify-content: space-between; align-items: flex-start; padding: 0.7rem 0; border-bottom: 1px solid rgba(19, 53, 46, 0.08); color: #52665d; font-size: 0.8rem; }
.network-row form { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.notification-list,
.report-list { overflow: hidden; }
.notification-row,
.report-row { align-items: flex-start; justify-content: space-between; padding: 1rem; border-bottom: 1px solid rgba(19, 53, 46, 0.08); }
.notification-row:last-child,
.report-row:last-child { border-bottom: 0; }
.notification-row > span,
.notification-row p,
.report-row span,
.report-row p,
.report-row small { display: block; margin: 0.3rem 0 0; color: #75867d; font-size: 0.8rem; }
.report-row form { display: grid; gap: 0.4rem; min-width: 210px; }
.form-alert { margin: 0 0 1rem; }

@media (max-width: 1100px) {
  .opportunities-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .opportunities-sidebar-right { display: none; }
  .network-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .opportunities-shell,
  .opportunity-detail-shell,
  .opportunity-form-page,
  .opportunity-management-shell,
  .opportunity-empty-page { width: min(100% - 1rem, 640px); padding-top: 7rem; }
  .opportunities-hero { align-items: flex-start; flex-direction: column; }
  .opportunities-layout { display: block; }
  .opportunities-sidebar-left { position: static; overflow-x: auto; margin-bottom: 0.8rem; }
  .opportunities-sidebar-left { scrollbar-width: none; }
  .opportunities-sidebar-left::-webkit-scrollbar { display: none; }
  .opportunities-nav { display: flex; min-width: max-content; }
  .opportunities-nav-section { display: none; }
  .opportunity-form-grid { grid-template-columns: 1fr; }
  .opportunity-form-grid .field-wide,
  .opportunity-type-fields { grid-column: auto; }
  .opportunities-filter-bar { align-items: stretch; flex-wrap: wrap; }
  .opportunities-filter-bar .filter-search { flex-basis: 100%; }
  .opportunities-filter-bar label { flex: 1 1 40%; }
  .opportunities-filter-bar .secondary-cta { flex: 1 1 100%; }
  .post-card-header { flex-wrap: wrap; }
  .post-type-label { margin-left: 3rem; }
  .post-card-stats { flex-wrap: wrap; }
  .opportunity-login-callout,
  .section-heading,
  .pipeline-row,
  .report-row { align-items: stretch; flex-direction: column; }
  .pipeline-row form,
  .report-row form { width: 100%; justify-content: stretch; }
  .pipeline-row form > *,
  .report-row form > * { flex: 1; }
  .management-overview { grid-template-columns: 1fr; }
  .management-overview div { border-right: 0; border-bottom: 1px solid rgba(19, 53, 46, 0.09); }
  .management-overview div:last-child { border-bottom: 0; }
}
