* { box-sizing: border-box; }
:root {
  --opp-magenta: #ff00c1;
  --opp-violet: #9600ff;
  --opp-indigo: #4900ff;
  --opp-blue: #00b8ff;
  --opp-aqua: #00fff9;
}
body { margin: 0; background: #fff; color: #111; font: 20px/1.25 var(--site-font); }
header { background: #fff; padding: .85rem 1rem; }
body > header > nav { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; width: 100%; max-width: none; margin: 0; justify-content: flex-start; }
body > header > nav > a { display: inline-block; flex: 0 0 auto; background: transparent !important; color: var(--opp-indigo) !important; padding: 0 !important; font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 700; text-decoration: underline; text-underline-offset: .16em; }
body.opportunities-page > header > nav > a.contact-nav-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  padding: 0 !important;
  font-weight: 700 !important;
  text-decoration: underline;
  transform: none;
}
main { width: 100%; margin: 0; padding: 0 0 6rem; }
.opportunities-hero {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  min-height: 3.9rem;
  padding: .2rem clamp(.75rem, 2vw, 1.5rem);
  isolation: isolate;
  background: #fff;
  border-bottom: 2px solid var(--opp-indigo);
}
.opportunities-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--opp-magenta) 0%, var(--opp-magenta) 2%, var(--opp-violet) 14%, var(--opp-indigo) 28%, var(--opp-blue) 42%, var(--opp-aqua) 50%, var(--opp-blue) 58%, var(--opp-indigo) 72%, var(--opp-violet) 86%, var(--opp-magenta) 98%, var(--opp-magenta) 100%);
  background-size: 600px 100%;
  background-repeat: repeat-x;
  opacity: .46;
  animation: opportunity-header-roll 30s linear infinite;
}
.hero-title, .opportunities-hero .retro-donation { position: relative; z-index: 1; }
.hero-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .8rem; min-width: 0; }
h1 { margin: 0; font-size: clamp(1.2rem, 2.6vw, 2rem); line-height: 1; letter-spacing: -.055em; text-transform: uppercase; }
.opportunities-hero p { margin: 0; font-size: clamp(.8rem, 1.2vw, 1rem); font-weight: 700; }
.opportunities-hero .retro-donation { position: static; z-index: auto; display: flex; flex: 0 0 auto; align-items: center; justify-items: initial; gap: .6rem; }
.opportunities-hero .donate-button {
  display: grid;
  place-items: center;
  width: 78px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  animation: none;
  cursor: pointer;
}
.opportunities-hero .donate-button img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  transform-origin: 50% 72%;
}
.opportunities-hero .donate-button:hover img { transform: translateY(-2px); }
.opportunities-hero .donate-button.is-pressed img { animation: donate-press 520ms cubic-bezier(.2,.8,.2,1); }
.opportunities-hero .retro-donation #donation-status { max-width: 12rem; padding: .18rem .3rem; background: rgba(0, 255, 249, .35); color: #111; font-size: .78rem; line-height: 1.15; }
.filters { display: grid; grid-template-columns: minmax(13rem, .7fr) minmax(14rem, .8fr) minmax(17rem, 1.2fr); align-items: end; gap: .7rem 1rem; padding: 1rem; background: linear-gradient(115deg, rgba(255,0,193,.07), rgba(150,0,255,.07), rgba(73,0,255,.07), rgba(0,184,255,.07), rgba(0,255,249,.07)); border-bottom: 2px solid var(--opp-indigo); }
label { display: grid; gap: .35rem; min-width: 0; font-size: .9rem; font-weight: 800; }
select, input { width: 100%; min-height: 46px; font: inherit; max-width: none; padding: .55rem .65rem; border: 2px solid var(--opp-indigo); border-radius: 0; background: #fff; color: #080808; }
#status { margin: 0; padding: .5rem 1rem; font-size: .9rem; font-weight: 700; }
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
li { position: relative; isolation: isolate; overflow: hidden; padding: .85rem 1rem 1.2rem; background-color: #fff; color: #111; }
li h3 { margin: .15rem 0 .4rem; font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.25; }
li p { margin: 0 0 .35rem; }
li .deadline { font-weight: 400; }
li .salary-range { margin-top: .45rem; color: var(--opp-indigo); font-weight: 800; }
li a { color: var(--opp-indigo); font-weight: 700; text-underline-offset: .15em; }
li a:hover { color: var(--opp-violet); }
.opportunities-hero .donate-button:focus-visible { outline: 3px solid var(--opp-magenta); outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--opp-magenta); outline-offset: 3px; }
select, input { accent-color: var(--opp-magenta); }
@media (max-width: 720px) {
  .filters { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .opportunities-hero { align-items: center; }
  .hero-title { display: flex; gap: .15rem .45rem; }
  h1 { max-width: 11rem; font-size: clamp(1.15rem, 5.4vw, 1.55rem); line-height: 1.02; }
  .opportunities-hero .donate-button { width: 68px; }
  .opportunities-hero .retro-donation { flex-direction: column; align-items: flex-end; gap: .2rem; }
  .opportunities-hero .retro-donation #donation-status { max-width: 9rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .opportunities-hero::before, #calls li { animation: none; }
  .opportunities-hero .donate-button.is-pressed img { animation: none; }
}

#category-controls, #calls { display: grid; gap: 1rem; }
#category-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#calls { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
#category-controls button { text-align: left; font-family: inherit; border: 0; color: inherit; }

#category-controls button::before { content: "▸ "; }
#category-controls button[aria-expanded="true"]::before { content: "▾ "; }
#category-controls button { cursor: pointer; font-weight: 700; margin: 0; padding: .75rem 1rem; min-height: 3.3rem; background: linear-gradient(90deg, rgba(255,0,193,.16), rgba(150,0,255,.16), rgba(73,0,255,.16), rgba(0,184,255,.16), rgba(0,255,249,.16)); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.2; overflow-wrap: anywhere; }
#calls li { overflow-wrap: anywhere;
  background-image: linear-gradient(90deg, rgba(255,0,193,.21) 0%, rgba(255,0,193,.21) 2%, rgba(150,0,255,.21) 14%, rgba(73,0,255,.21) 28%, rgba(0,184,255,.21) 42%, rgba(0,255,249,.21) 50%, rgba(0,184,255,.21) 58%, rgba(73,0,255,.21) 72%, rgba(150,0,255,.21) 86%, rgba(255,0,193,.21) 98%, rgba(255,0,193,.21) 100%);
  background-size: 600px 100%;
  background-repeat: repeat-x;
  animation: opportunity-shuttle 30s linear infinite;
}

#calls .empty-column { margin: 0; padding: 0 1rem 1rem; }
@keyframes opportunity-shuttle {
  from { background-position: 0 0; }
  to { background-position: 600px 0; }
}
@keyframes opportunity-header-roll {
  from { background-position: 600px 0; }
  to { background-position: 0 0; }
}
@keyframes donate-press {
  0% { transform: translateY(0) scale(1); }
  28% { transform: translateY(7px) scale(.94); }
  54% { transform: translateY(-2px) scale(1.02); }
  76% { transform: translateY(1px) scale(.99); }
  100% { transform: translateY(0) scale(1); }
}

@media (pointer: fine) {
  body, body a, body button, body select, body input { cursor: crosshair !important; }
}
.cursor-trail-dot {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform, opacity;
  transition: opacity 140ms linear;
}
.cursor-trail-dot.is-visible { opacity: var(--trail-opacity, .7); }
.cursor-trail-dot-1 { background: var(--opp-magenta); }
.cursor-trail-dot-2 { background: var(--opp-violet); width: 7px; height: 7px; }
.cursor-trail-dot-3 { background: var(--opp-indigo); width: 6px; height: 6px; }
.cursor-trail-dot-4 { background: var(--opp-blue); width: 5px; height: 5px; }
.cursor-trail-dot-5 { background: var(--opp-aqua); width: 4px; height: 4px; }
@media (prefers-reduced-motion: reduce) {
  .cursor-trail-dot { display: none; }
}

/* Light blue and turquoise waves. */
:root {
  --opp-magenta: #92bbf2;
  --opp-violet: #ffffff;
  --opp-indigo: #69dcd1;
  --opp-blue: #ffffff;
  --opp-aqua: #69dcd1;
}
header {
  background: var(--opp-aqua);
  color: #111;
}
body > header > nav > a {
  color: #111 !important;
}
.opportunities-hero {
  background: #fff;
  border-bottom-color: #111;
}
.opportunities-hero::before {
  background-image: linear-gradient(90deg, #92bbf2 0%, #92bbf2 36%, #fff 47%, #69dcd1 50%, #fff 53%, #92bbf2 64%, #92bbf2 100%);
  opacity: .66;
  animation-duration: 52s;
}
.opportunities-hero .retro-donation #donation-status {
  background: rgba(146, 187, 242, .78);
  color: #111;
}
.filters {
  background: linear-gradient(115deg, rgba(146, 187, 242, .12), rgba(255,255,255,.74), rgba(105,220,209,.14));
  border-bottom-color: #111;
}
#category-controls button {
  background: linear-gradient(90deg, rgba(146,187,242,.88), rgba(255,255,255,.95), rgba(105,220,209,.76));
  color: #111;
  border-bottom: 3px solid #111;
}
#calls li {
  background-color: #fff;
  background-image: linear-gradient(90deg, rgba(146,187,242,.22) 0%, rgba(146,187,242,.22) 22%, rgba(255,255,255,.28) 42%, rgba(105,220,209,.23) 50%, rgba(255,255,255,.28) 58%, rgba(146,187,242,.22) 78%, rgba(146,187,242,.22) 100%);
  color: #111;
}
#calls li:nth-child(3n + 2) {
  animation-duration: 39s;
  animation-delay: -13s;
}
#calls li:nth-child(3n) {
  animation-duration: 47s;
  animation-delay: -24s;
}
#calls li::before {
  background-image: linear-gradient(90deg, #92bbf2 0%, #92bbf2 36%, #fff 47%, #69dcd1 50%, #fff 53%, #92bbf2 64%, #92bbf2 100%);
}
#calls li .salary-range,
#calls li a { color: #154774; }
#calls li a:hover { color: #111; }
:focus-visible {
  outline-color: #346999;
}
@media (prefers-reduced-motion: reduce) {
  .opportunities-hero::before,
  #calls li,
  #calls li::before { animation: none; }
}

#category-controls button[aria-expanded="false"] { background: #eef4fa; }

.opportunity-effects { position: fixed; inset: 0; z-index: 900; overflow: hidden; pointer-events: none; }
.falling-invader {
  position: absolute;
  left: clamp(0px, var(--invader-x, 50vw), calc(100vw - 35px));
  top: 0;
  width: 33px;
  height: 24px;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(11,52,85,.8));
  animation: invader-drop var(--invader-duration, 5s) steps(30, end) forwards;
}
.falling-invader-path {
  display: block;
  width: 33px;
  height: 24px;
  translate: 0 0;
  animation: invader-bounce var(--bounce-duration, .85s) steps(1, end) infinite alternate;
}
.falling-invader-frame {
  display: grid;
  width: 33px;
  height: 24px;
  grid-template-columns: repeat(11, 3px);
  grid-template-rows: repeat(8, 3px);
  animation: invader-facing var(--bounce-duration, .85s) steps(1, end) infinite alternate,
    invader-march .24s steps(2, end) infinite;
}
.invader-pixel { background: #163d6b; }
.invader-pixel-cyan { background: #e9fffc; box-shadow: 0 0 3px #e9fffc; }
@keyframes invader-drop {
  0% { opacity: 1; transform: translate3d(0, 12vh, 0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, calc(100vh + 42px), 0); }
}
@keyframes invader-bounce {
  from { translate: 0 0; }
  to { translate: var(--bounce-distance, 48px) 0; }
}
@keyframes invader-facing {
  from { transform: scaleX(1); }
  to { transform: scaleX(-1); }
}
@keyframes invader-march {
  0% { translate: -1px 0; }
  100% { translate: 1px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .falling-invader { top: auto; bottom: 1rem; left: auto; right: 1rem; opacity: 1; }
  .falling-invader, .falling-invader-path, .falling-invader-frame { animation: none; }
}
