/* Phase 6 opportunities directory and fellowship detail pages */
.opportunities-body { background: var(--paper); }
.desktop-nav a[aria-current="page"] { color: var(--blue); }

.opportunities-hero {
  position: relative;
  min-height: 92svh;
  padding: 166px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: clamp(54px, 8vw, 126px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.opportunities-copy { position: relative; z-index: 2; max-width: 760px; }
.opportunities-route, .back-link { display: inline-block; margin: 0 0 40px; color: #7890a6; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.opportunities-copy h1, .fellowship-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.opportunities-deck { max-width: 690px; margin: 30px 0 0; color: #36536b; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.58; }
.opportunities-context { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.opportunities-scaffold, .fellowship-scaffold { position: relative; justify-self: end; width: min(430px, 35vw); aspect-ratio: 1; transform: translate3d(0,var(--parallax-y,0px),0); }
.op-frame, .op-line, .op-node { position: absolute; display: block; }
.op-frame { inset: 14%; border: 1px solid rgba(23,130,255,.28); transform: rotate(45deg); }
.op-frame.frame-b { inset: 34%; border-color: rgba(0,165,247,.42); }
.op-line { left: 50%; top: 50%; background: linear-gradient(90deg,transparent,rgba(23,130,255,.23),transparent); transform: translate(-50%,-50%); }
.op-line.line-a { width: 94%; height: 1px; }
.op-line.line-b { width: 1px; height: 94%; background: linear-gradient(transparent,rgba(23,130,255,.23),transparent); }
.op-node { width: 8px; height: 8px; border-radius: 50%; background: #6dcaff; box-shadow: 0 0 0 10px rgba(109,202,255,.08), 0 0 24px rgba(109,202,255,.4); }
.op-node.node-a { left: 17%; top: 49%; }.op-node.node-b { right: 18%; top: 29%; }.op-node.node-c { left: 50%; bottom: 14%; }

.current-opportunities { padding: 126px 0 144px; }
.opportunities-heading, .fellowship-section-heading { max-width: 780px; margin-bottom: 64px; }
.opportunities-heading h2, .fellowship-section-heading h2 { margin: 0; font-family: var(--plain-display); font-size: clamp(28px,3.2vw,42px); font-weight: 500; line-height: 1.16; letter-spacing: -.02em; }
.fellowship-section-heading > p:last-child { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.opportunity-list { border-top: 1px solid var(--line); }
.opportunity-row {
  position: relative;
  min-height: 210px;
  padding: 34px 2px;
  display: grid;
  grid-template-columns: 64px minmax(360px,1fr) 180px 30px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.opportunity-open::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(23,130,255,.07),transparent 76%); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.opportunity-open:hover::before { transform: scaleX(1); }
.opportunity-row > * { position: relative; z-index: 1; }
.opportunity-number { align-self: start; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.opportunity-type { margin: 0 0 12px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.opportunity-main h3 { margin: 0; font-family: var(--display); font-size: clamp(27px,2.8vw,38px); font-weight: 500; line-height: 1.14; letter-spacing: -.025em; }
.opportunity-main > p:not(.opportunity-type) { margin: 13px 0 0; color: #4c6478; font-size: 15px; line-height: 1.55; }
.opportunity-main > span { display: block; margin-top: 20px; color: #8193a4; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.opportunity-status { text-align: right; }
.opportunity-status strong { display: block; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.opportunity-status span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.opportunity-arrow { color: var(--blue); font-size: 22px; text-align: right; transition: transform .25s ease; }
.opportunity-open:hover .opportunity-arrow { transform: translate(3px,-3px); }
.opportunity-closed { color: #6f8294; }
.opportunity-closed .opportunity-main h3, .opportunity-closed .opportunity-status strong { color: #718496; }
.opportunity-closed .opportunity-arrow { color: #9babb8; }
.opportunities-note { padding: 0 0 130px; display: grid; grid-template-columns: .42fr 1.58fr; gap: 70px; }
.opportunities-note > p:last-child { max-width: 710px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.opportunities-closing-scaffold { position: relative; aspect-ratio: 1; }
.opportunities-closing-scaffold span { position: absolute; inset: 18%; border: 1px solid rgba(23,130,255,.42); transform: rotate(45deg); }
.opportunities-closing-scaffold span:nth-child(2) { inset: 34%; }.opportunities-closing-scaffold span:nth-child(3) { inset: 48%; background: rgba(23,130,255,.16); }

.fellowship-hero {
  position: relative;
  min-height: 100svh;
  padding: 152px 0 0;
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(320px,.88fr);
  gap: clamp(50px,8vw,120px);
  align-items: center;
}
.fellowship-copy { position: relative; z-index: 2; max-width: 750px; padding-bottom: 72px; }
.back-link { margin-bottom: 38px; border-bottom: 1px solid transparent; transition: color .2s ease,border-color .2s ease; }
.back-link:hover { color: var(--blue); border-bottom-color: var(--blue); }
.open-status { display: inline-block; margin: 0 0 23px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.fellowship-deck { max-width: 680px; margin: 29px 0 0; color: #36536b; font-size: clamp(18px,1.55vw,21px); line-height: 1.58; }
.fellowship-intro { max-width: 660px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--blue); background: var(--blue); color: white; font-size: 12px; font-weight: 700; transition: transform .2s ease,box-shadow .2s ease; }
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,130,255,.2); }
.secondary-action { padding: 5px 0; border-bottom: 1px solid rgba(23,130,255,.35); color: #31536e; font-size: 12px; font-weight: 700; }
.secondary-action:hover { color: var(--blue); border-color: var(--blue); }
.fellowship-scaffold span, .fellowship-scaffold i, .fellowship-scaffold b { position: absolute; display: block; }
.fellowship-scaffold span { inset: 12%; border: 1px solid rgba(23,130,255,.26); transform: rotate(45deg); }.fellowship-scaffold span:nth-child(2) { inset: 31%; border-color: rgba(0,165,247,.4); }.fellowship-scaffold span:nth-child(3) { inset: 45%; }
.fellowship-scaffold i { left: 50%; top: 50%; width: 94%; height: 1px; background: linear-gradient(90deg,transparent,rgba(23,130,255,.2),transparent); transform: translate(-50%,-50%); }.fellowship-scaffold i:nth-of-type(2) { width: 1px; height: 94%; background: linear-gradient(transparent,rgba(23,130,255,.2),transparent); }
.fellowship-scaffold b { width: 8px; height: 8px; border-radius: 50%; background: #70cbff; box-shadow: 0 0 0 10px rgba(112,203,255,.08); }.fellowship-scaffold b:nth-of-type(1){left:16%;top:49%;}.fellowship-scaffold b:nth-of-type(2){right:17%;top:29%;}.fellowship-scaffold b:nth-of-type(3){left:49%;bottom:14%;}
.fellowship-facts { grid-column: 1/-1; display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fellowship-facts div { min-height: 108px; padding: 24px; display: grid; align-content: center; border-right: 1px solid var(--line); }.fellowship-facts div:last-child { border-right: 0; }
.fellowship-facts span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.fellowship-facts strong { margin-top: 8px; color: #234965; font-family: var(--plain-display); font-size: 16px; font-weight: 500; line-height: 1.35; }

.fellowship-overview { padding: 126px 0; color: white; background: var(--deep); }
.fellowship-overview-grid { display: grid; grid-template-columns: .42fr 1.58fr; gap: clamp(48px,8vw,118px); }
.section-index { color: #88d1ff; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.overview-copy { max-width: 860px; }.overview-copy h2 { max-width: 760px; margin: 0; font-family: var(--plain-display); font-size: clamp(29px,3.4vw,43px); font-weight: 500; line-height: 1.16; letter-spacing: -.02em; }
.overview-copy p { max-width: 760px; margin: 28px 0 0; color: #c4d5e2; font-size: 17px; line-height: 1.72; }
.overview-copy p + p { margin-top: 17px; color: #9db3c3; font-size: 14px; }

.fellowship-work, .candidate-section { padding: 130px 0 148px; }
.workstream-list { border-top: 1px solid var(--line); }
.workstream { min-height: 150px; padding: 30px 2px; display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 26px; border-bottom: 1px solid var(--line); }
.workstream > span { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .13em; }.workstream h3 { margin: 0; font-family: var(--display); font-size: clamp(24px,2.4vw,32px); font-weight: 500; line-height: 1.16; letter-spacing: -.02em; }.workstream p { max-width: 760px; margin: 15px 0 0; color: #4b6478; font-size: 15px; line-height: 1.68; }

.fellowship-experience { padding: 126px 0; color: white; background: #071d31; }
.fellowship-experience-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.experience-copy h2 { max-width: 620px; margin: 0; font-family: var(--plain-display); font-size: clamp(29px,3.4vw,43px); font-weight: 500; line-height: 1.16; letter-spacing: -.02em; }.experience-copy > p:last-child { max-width: 650px; margin: 26px 0 0; color: #bdd0dd; font-size: 17px; line-height: 1.72; }
.experience-lines { min-height: 310px; display: grid; align-content: center; gap: 38px; }.experience-lines span { position: relative; height: 1px; background: linear-gradient(90deg,transparent,rgba(117,206,255,.38)); }.experience-lines span::after { content:""; position:absolute; right:0; top:50%; width:7px; height:7px; border-radius:50%; background:#75ceff; transform:translateY(-50%); box-shadow:0 0 0 10px rgba(117,206,255,.08); }.experience-lines span:nth-child(2){width:78%;}.experience-lines span:nth-child(3){width:91%;}.experience-lines span:nth-child(4){width:63%;}

.candidate-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.candidate-grid p { min-height: 112px; margin: 0; padding: 28px; display: flex; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #35536a; font-size: 15px; font-weight: 600; line-height: 1.55; }
.selection-section { padding: 126px 0; color: white; background: linear-gradient(135deg,#0a3155,#061f36 74%); }
.selection-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: start; }.selection-copy h2 { margin: 0; font-family: var(--plain-display); font-size: clamp(29px,3.4vw,43px); font-weight: 500; }.selection-copy > p:not(.kicker) { max-width: 680px; margin: 26px 0 0; color: #c4d5e2; font-size: 17px; line-height: 1.72; }.selection-copy .terms-note { color: #8faabc; font-size: 13px; }.apply-panel { padding-left: 58px; border-left: 1px solid rgba(255,255,255,.16); }.apply-panel > p { margin: 0 0 28px; color: #9dd6f7; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.light-action { background: #75ceff; border-color: #75ceff; color: #08233a; }.light-secondary { display: table; margin-top: 24px; color: #d3e4ee; border-color: rgba(255,255,255,.3); }

@media (max-width: 1080px) {
  .opportunity-row { grid-template-columns: 54px 1fr 160px 24px; }
  .fellowship-facts { grid-template-columns: repeat(3,1fr); }
  .fellowship-facts div:nth-child(3) { border-right: 0; }
  .fellowship-facts div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .fellowship-facts div:nth-child(4) { grid-column: 1 / 2; }
  .fellowship-facts div:nth-child(5) { grid-column: 2 / 4; }
}
@media (max-width: 820px) {
  .opportunities-hero, .fellowship-hero { min-height: auto; padding-top: 132px; grid-template-columns: 1fr; }
  .opportunities-scaffold, .fellowship-scaffold { position: absolute; right: -80px; top: 185px; width: 290px; opacity: .23; }
  .opportunities-copy, .fellowship-copy { padding-right: 45px; }
  .opportunity-row { grid-template-columns: 42px 1fr 24px; gap: 18px; }
  .opportunity-status { grid-column: 2; grid-row: 2; text-align: left; display: flex; gap: 12px; align-items: center; }.opportunity-status span { margin: 0; }.opportunity-arrow { grid-column: 3; grid-row: 1 / 3; }
  .opportunities-note, .fellowship-overview-grid, .fellowship-experience-grid, .selection-grid { grid-template-columns: 1fr; gap: 42px; }
  .apply-panel { padding: 42px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
}
@media (max-width: 560px) {
  .opportunities-hero { padding: 120px 0 72px; }
  .opportunities-copy, .fellowship-copy { padding-right: 0; }
  .opportunities-copy h1, .fellowship-copy h1 { font-size: 35px; }
  .opportunities-scaffold, .fellowship-scaffold { top: 240px; right: -100px; width: 245px; }
  .current-opportunities, .fellowship-work, .candidate-section { padding: 96px 0 105px; }
  .opportunity-row { min-height: 0; padding: 28px 0; grid-template-columns: 32px 1fr 18px; }.opportunity-main h3 { font-size: 27px; }.opportunity-main > span { line-height: 1.55; }
  .opportunities-note { padding-bottom: 98px; }
  .fellowship-hero { padding: 116px 0 0; }.fellowship-copy { padding-bottom: 58px; }.hero-actions { align-items: flex-start; flex-direction: column; }
  .fellowship-facts { grid-template-columns: 1fr 1fr; }.fellowship-facts div, .fellowship-facts div:nth-child(4), .fellowship-facts div:nth-child(5) { grid-column: auto; border-bottom: 1px solid var(--line); }.fellowship-facts div:nth-child(even) { border-right: 0; }.fellowship-facts div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .fellowship-overview, .fellowship-experience, .selection-section { padding: 94px 0; }
  .workstream { grid-template-columns: 38px 1fr; gap: 12px; }.workstream p { font-size: 14px; }
  .candidate-grid { grid-template-columns: 1fr; }.candidate-grid p { min-height: 92px; }
}
