:root {
  --jobs-panel: #140d1d;
  --jobs-panel-raised: #1b1226;
  --jobs-panel-deep: #0d0813;
  --jobs-border: #352445;
  --jobs-border-strong: #5c3d75;
  --jobs-purple: #b96cff;
  --jobs-purple-soft: #d8b4fe;
  --jobs-gold: #ffad35;
  --jobs-muted: rgba(255, 255, 255, .68);
}

body.jobs-page {
  background:
    linear-gradient(180deg, rgba(22, 13, 38, .72), rgba(8, 4, 14, .92)),
    url("/assets/images/brand/myteria-bg.webp") center top / cover no-repeat;
  background-attachment: scroll;
}

.jobs-page .page-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  min-height: 100%;
  height: auto !important;
  overflow: hidden;
  opacity: .34;
  filter: saturate(.8) brightness(.76);
}

.jobs-page .page-bg .blob {
  position: absolute !important;
  transform: none !important;
  opacity: .38;
}

.jobs-page .page-bg .blob.-a {
  width: min(44vw, 620px);
  top: -140px;
  right: -220px;
}

.jobs-page .page-bg .blob.-b {
  width: min(38vw, 520px);
  top: 620px;
  left: -220px;
}

.jobs-page .page-bg .blob.-c {
  display: block;
  width: min(34vw, 470px);
  right: -170px;
  bottom: 120px;
  top: auto;
}

.jobs-page .page-main {
  padding-top: 56px;
}

.jobs-page .page-shell {
  width: min(1320px, 100%);
}

.jobs-page .page-nav {
  margin-bottom: 34px !important;
}

.jobs-masthead {
  display: block;
  margin-bottom: 30px;
}

.jobs-brand-heading {
  width: 100%;
  min-width: 0;
  min-height: 246px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding: clamp(28px, 4vw, 48px);
  border: 2px solid var(--jobs-border);
  border-bottom-color: #08050c;
  border-radius: 18px;
  background: var(--jobs-panel-raised);
  box-shadow: 0 8px 0 #08050c, 0 22px 44px rgba(0, 0, 0, .30);
}

.jobs-wordmark {
  display: block;
  width: min(100%, 500px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .35));
}

.jobs-title-block {
  min-width: 0;
  padding-left: clamp(24px, 4vw, 50px);
  border-left: 2px solid rgba(255, 255, 255, .08);
}

.jobs-eyebrow,
.card-kicker {
  margin: 0 0 9px;
  color: var(--jobs-gold);
  font-size: .74rem;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jobs-title-block h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: .88;
  letter-spacing: -.065em;
  text-transform: uppercase;
  font-weight: 950;
}

.jobs-title-block > p:last-child {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--jobs-muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.jobs-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(250px, .58fr);
  gap: 18px;
  margin-bottom: 52px;
}

.jobs-info-card {
  min-width: 0;
  min-height: 258px;
  padding: clamp(26px, 3vw, 38px);
  border: 2px solid var(--jobs-border);
  border-bottom-color: #08050c;
  border-radius: 16px;
  background: var(--jobs-panel);
  box-shadow: 0 7px 0 #08050c, 0 20px 38px rgba(0, 0, 0, .28);
}

.jobs-info-card h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 950;
}

.jobs-info-card p,
.jobs-info-card li {
  color: var(--jobs-muted);
  font-size: .97rem;
  line-height: 1.68;
}

.jobs-info-card p {
  margin: 0;
}

.jobs-info-card p + p {
  margin-top: 14px;
}

.jobs-info-card ul {
  margin: 0;
  padding-left: 20px;
}

.jobs-info-card li + li {
  margin-top: 6px;
}

.jobs-discord-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: #181126;
}

.discord-cta {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 18px;
  border: 2px solid #a9c1f3;
  border-bottom-color: #334b86;
  border-radius: 7px;
  background: #86a6e5;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .22);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22), inset 0 -5px 0 rgba(37, 59, 112, .25), 0 7px 0 #263963;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.discord-cta img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.discord-cta:hover,
.discord-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22), inset 0 -5px 0 rgba(37, 59, 112, .25), 0 9px 0 #263963;
}

.discord-cta:active {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), inset 0 -3px 0 rgba(37, 59, 112, .25), 0 3px 0 #263963;
}

.discord-arrow {
  margin-left: auto;
  font-size: 1rem;
}

.jobs-openings {
  padding: clamp(28px, 4vw, 46px);
  border: 2px solid var(--jobs-border);
  border-bottom-color: #08050c;
  border-radius: 18px;
  background: var(--jobs-panel-deep);
  box-shadow: 0 8px 0 #050307, 0 24px 50px rgba(0, 0, 0, .32);
}

.jobs-openings-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(255, 255, 255, .07);
}

.jobs-openings-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 950;
}

.jobs-openings-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--jobs-muted);
  line-height: 1.6;
}

.job-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.job-row {
  min-width: 0;
  min-height: 154px;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.job-row summary {
  position: relative;
  min-height: 154px;
  height: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 14px 16px;
  padding: 22px;
  overflow: hidden;
  list-style: none;
  cursor: pointer;
  color: #fff;
  border: 2px solid #3b2a4b;
  border-bottom-color: #08050c;
  border-radius: 14px;
  background: #191022;
  box-shadow: inset 0 2px 0 #2a1b38, inset 0 -5px 0 #09050d, 0 7px 0 #060308;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.job-row summary::-webkit-details-marker {
  display: none;
}

.job-row summary::before {
  content: "Volunteer role";
  grid-column: 2;
  grid-row: 2;
  color: rgba(255, 255, 255, .46);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.job-row summary::after {
  content: "View";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  color: var(--jobs-purple-soft);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.job-row summary:hover,
.job-row summary:focus-visible {
  transform: translateY(-2px);
  background: #20152b;
  border-color: #65427f;
  border-bottom-color: #08050c;
  box-shadow: inset 0 2px 0 #332242, inset 0 -5px 0 #09050d, 0 9px 0 #060308;
}

.job-row summary:active {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 #261a31, inset 0 -4px 0 #09050d, 0 3px 0 #060308;
}

.role-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #76509a;
  border-bottom-color: #21102f;
  border-radius: 13px;
  background: #42245e;
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(18, 7, 28, .40);
}

.role-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.role-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.24;
  font-weight: 950;
  letter-spacing: -.018em;
}

.jobs-page.js-job-modal-ready .job-list .job-detail {
  display: none;
}

.job-detail {
  padding: 26px;
  border: 2px solid var(--jobs-border);
  border-top: 0;
  background: var(--jobs-panel);
}

.job-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}

.job-detail h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.job-detail ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, .76);
  line-height: 1.68;
}

.job-detail li + li {
  margin-top: 7px;
}

.job-apply {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, .07);
}

.job-apply p {
  margin: 0;
  color: var(--jobs-muted);
  font-size: .9rem;
}

.apply-button {
  min-width: 170px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 2px solid #d5a1ff;
  border-bottom-color: #4b2070;
  border-radius: 7px;
  background: #a957e4;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .24);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .18), inset 0 -5px 0 rgba(70, 20, 105, .28), 0 7px 0 #321346;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.apply-button:hover,
.apply-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .18), inset 0 -5px 0 rgba(70, 20, 105, .28), 0 9px 0 #321346;
}

.apply-button:active {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), inset 0 -3px 0 rgba(70, 20, 105, .28), 0 3px 0 #321346;
}

.jobs-page #jobRoleModal.modal-overlay {
  padding: 24px;
  background: rgba(4, 2, 7, .88);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.jobs-page #jobRoleModal .job-role-modal {
  position: relative;
  width: min(1040px, calc(100vw - 48px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: auto;
  border: 2px solid #4b3260;
  border-bottom-color: #07040a;
  border-radius: 18px;
  background: #110a18;
  box-shadow: 0 10px 0 #050207, 0 34px 90px rgba(0, 0, 0, .68);
}

.job-modal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 500px;
}

.job-modal-role {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 32px;
  border-right: 2px solid #31203f;
  background: #1a1024;
}

.job-modal-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border: 2px solid #8b5ab1;
  border-bottom-color: #281137;
  border-radius: 18px;
  background: #4a2868;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .12), inset 0 -6px 0 rgba(18, 7, 28, .40), 0 8px 0 #0a050e;
  color: #fff;
}

.job-modal-icon .role-icon {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.job-modal-icon svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.job-modal-role h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 950;
}

.job-modal-role .modal-subtitle {
  margin-top: 12px;
  color: var(--jobs-purple-soft);
  font-weight: 850;
}

.job-modal-updated {
  margin: auto 0 0;
  padding-top: 28px;
  color: rgba(255, 255, 255, .54);
  font-size: .86rem;
  line-height: 1.5;
}

.job-modal-content {
  padding: clamp(32px, 5vw, 52px);
  background: #110a18;
}

.job-modal-content .job-detail {
  display: block !important;
  padding: 0;
  border: 0;
  background: transparent;
}

.job-modal-content .job-detail-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4vw, 48px);
}

.job-modal-content .job-detail h3 {
  margin-bottom: 17px;
  font-size: 1.15rem;
}

.job-modal-content .job-apply {
  justify-content: flex-end;
}

.job-modal-content .job-apply p {
  display: none;
}

.job-modal-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #49315c;
  border-radius: 9px;
  background: #24172f;
  color: #fff;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #07040a;
}

.job-modal-close:hover,
.job-modal-close:focus-visible {
  background: #30203d;
}

@media (max-width: 1080px) {
  .jobs-brand-heading {
    min-height: 220px;
  }

  .jobs-brand-heading {
    grid-template-columns: minmax(240px, .85fr) minmax(300px, 1.15fr);
    gap: 28px;
  }

  .jobs-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-discord-card {
    grid-column: 1 / -1;
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }

  .jobs-discord-card > div {
    max-width: 720px;
  }

  .discord-cta {
    min-width: 250px;
  }

  .job-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .jobs-page .page-main {
    padding-top: 42px;
  }

  .jobs-brand-heading {
    min-height: 0;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .jobs-wordmark {
    width: min(90%, 440px);
  }

  .jobs-title-block {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 2px solid rgba(255, 255, 255, .08);
  }

  .jobs-title-block > p:last-child {
    margin-inline: auto;
  }

  .jobs-info-grid {
    grid-template-columns: 1fr;
  }

  .jobs-info-card {
    min-height: 0;
  }

  .jobs-discord-card {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .discord-cta {
    width: 100%;
    min-width: 0;
  }

  .jobs-openings-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .job-modal-layout {
    grid-template-columns: 1fr;
  }

  .job-modal-role {
    min-height: 0;
    padding: 30px;
    border-right: 0;
    border-bottom: 2px solid #31203f;
  }

  .job-modal-icon {
    width: 78px;
    height: 78px;
    margin-bottom: 22px;
  }

  .job-modal-icon svg {
    width: 40px;
    height: 40px;
  }

  .job-modal-updated {
    margin-top: 18px;
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .jobs-page .page-main {
    padding-inline: 12px;
  }

  .jobs-brand-heading,
  .jobs-info-card,
  .jobs-openings {
    border-radius: 14px;
  }

  .jobs-brand-heading {
    padding: 26px 20px 30px;
  }

  .jobs-title-block h1 {
    font-size: clamp(3.5rem, 20vw, 5.2rem);
  }

  .jobs-info-card,
  .jobs-openings {
    padding: 24px 20px;
  }

  .job-list {
    grid-template-columns: 1fr;
  }

  .job-row,
  .job-row summary {
    min-height: 132px;
  }

  .job-row summary {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 18px;
  }

  .job-row summary::after {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .job-row summary::before {
    display: none;
  }

  .role-icon {
    width: 50px;
    height: 50px;
  }

  .role-icon svg {
    width: 24px;
    height: 24px;
  }

  .jobs-page #jobRoleModal.modal-overlay {
    padding: 10px;
  }

  .jobs-page #jobRoleModal .job-role-modal {
    width: calc(100vw - 20px);
    max-height: 92vh;
    border-radius: 14px;
  }

  .job-modal-role,
  .job-modal-content {
    padding: 26px 20px;
  }

  .job-modal-content .job-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .job-apply {
    align-items: stretch;
    flex-direction: column;
  }

  .apply-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-row summary,
  .discord-cta,
  .apply-button {
    transition: none !important;
    transform: none !important;
  }
}

.jobs-category-marker {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
