/*
  Dependency chain: jobs/index.html -> this focused presentation layer ->
  shared public-content.css. The root Pages origin owns /jobs/; no Worker or
  application route participates in this public listing.
*/

.jobs-page {
  --jobs-kicker-color: #ffb58a;
  --jobs-section-title-color: #ffe29a;
  --jobs-subtitle-color: #a7f7ee;
  overflow-wrap: anywhere;
}

.jobs-page .section-kicker {
  color: var(--jobs-kicker-color);
  font-size: 0.875rem;
  line-height: 1.35;
}

.jobs-hero h1 {
  color: var(--jobs-section-title-color);
}

.jobs-hero .page-lede {
  color: var(--jobs-subtitle-color);
  font-weight: 600;
}

.jobs-page .content-section h2 {
  color: var(--jobs-section-title-color);
  font-weight: 800;
}

.jobs-page .content-section h2::after {
  display: block;
  width: min(4.5rem, 30%);
  height: 4px;
  margin-top: 0.65rem;
  background: currentColor;
  content: "";
}

.jobs-page .content-section h3 {
  padding-left: 0.65rem;
  color: var(--jobs-subtitle-color);
  border-left: 3px solid currentColor;
  font-weight: 800;
}

.jobs-page main [id] {
  scroll-margin-top: 5rem;
}

.jobs-top-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.jobs-top-links > .jobs-primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration-color: rgba(255, 215, 160, 0.55);
}

.jobs-top-links > .jobs-primary-link:hover,
.jobs-top-links > .jobs-primary-link:focus-visible,
.jobs-top-links > .jobs-primary-link[aria-current="page"] {
  color: var(--gold);
}

.jobs-hero-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.jobs-hero-rates span {
  display: inline-flex;
  flex-direction: column;
  min-width: 190px;
  padding: 0.75rem 0.9rem;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(8, 27, 71, 0.25);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.jobs-hero-rates strong {
  color: #fff;
  font-size: 1.15rem;
}

.jobs-role-note,
.jobs-verified {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.jobs-role-note {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.jobs-housing-notice .wrap,
.jobs-employment-note .wrap {
  max-width: 1120px;
}

.jobs-housing-notice h2,
.jobs-housing-notice p,
.jobs-employment-note h2,
.jobs-employment-note p {
  max-width: 900px;
}

.jobs-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.jobs-jump-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.jobs-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0 0;
}

.jobs-facts > div {
  min-width: 0;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.jobs-facts dt {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.jobs-facts dd {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.jobs-rate-note,
.jobs-schedule,
.jobs-approval-note,
.jobs-fee-note,
.jobs-duty-block {
  max-width: 900px;
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  background: rgba(8, 27, 71, 0.24);
  border-left: 4px solid var(--gold);
}

.jobs-rate-note h3,
.jobs-schedule h3,
.jobs-approval-note h3,
.jobs-fee-note h3,
.jobs-duty-block h3 {
  margin-top: 0;
}

.jobs-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin-top: 1.3rem;
}

.jobs-card {
  min-width: 0;
  padding: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.jobs-card h3 {
  margin-top: 0;
}

.jobs-card p,
.jobs-card ul {
  margin-top: 0.8rem;
}

.jobs-privacy-link {
  max-width: 900px;
  margin-top: 1.25rem !important;
  padding-left: 1rem;
  border-left: 4px solid var(--coral);
}

.jobs-quote {
  padding-left: 0.9rem;
  color: #fff !important;
  border-left: 3px solid var(--coral);
  font-weight: 800;
}

.jobs-photo-gallery {
  max-width: 980px;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 2px solid rgba(255, 226, 154, 0.65);
}

.jobs-photo-gallery > h3 {
  margin-top: 0;
}

.jobs-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.jobs-photo-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(8, 27, 71, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.jobs-photo-link {
  position: relative;
  display: block;
  min-height: 44px;
  color: #fff;
  background: #081b47;
  text-decoration: none;
}

.jobs-photo-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.jobs-photo-open {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  color: #fff;
  background: rgba(8, 27, 71, 0.94);
  border: 2px solid #fff;
  border-radius: 4px;
  font-weight: 800;
}

.jobs-photo-link:hover .jobs-photo-open,
.jobs-photo-link:focus-visible .jobs-photo-open {
  color: #102e55;
  background: #fff;
}

.jobs-photo-link:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -4px;
}

.jobs-photo-card figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.jobs-photo-card figcaption strong {
  color: var(--jobs-subtitle-color);
  font-size: 1.05rem;
}

.jobs-photo-card figcaption strong,
.jobs-photo-card figcaption span {
  overflow-wrap: normal;
  word-break: normal;
}

.jobs-lightbox-open {
  overflow: hidden;
}

.jobs-lightbox:not([open]) {
  display: none;
}

.jobs-lightbox {
  width: min(920px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #fff;
  background: #102e55;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(3, 10, 28, 0.65);
}

.jobs-lightbox::backdrop {
  background: rgba(3, 10, 28, 0.88);
}

.jobs-lightbox-panel {
  min-width: 0;
  padding: 1rem;
}

.jobs-lightbox-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.jobs-lightbox-header > div {
  min-width: 0;
}

.jobs-lightbox-kicker {
  margin: 0 0 0.35rem;
  color: var(--jobs-kicker-color);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.jobs-lightbox h2 {
  color: var(--jobs-section-title-color);
  font-size: 1.55rem;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
}

.jobs-lightbox [data-jobs-lightbox-subtitle] {
  margin: 0.45rem 0 0;
  color: var(--jobs-subtitle-color);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.jobs-lightbox-close {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  color: #102e55;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.jobs-lightbox-close:hover,
.jobs-lightbox-close:focus-visible {
  color: #fff;
  background: #174b7d;
}

.jobs-lightbox-close:focus-visible {
  outline: 3px solid var(--jobs-section-title-color);
  outline-offset: 3px;
}

.jobs-lightbox-figure {
  display: grid;
  margin: 0;
  place-items: center;
}

.jobs-lightbox-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 12rem;
  max-height: max(12rem, calc(100vh - 12rem));
  max-height: max(12rem, calc(100dvh - 12rem));
  object-fit: contain;
  background: #081b47;
}

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

.jobs-process {
  max-width: 940px !important;
  padding-left: 2.15rem !important;
  counter-reset: jobs-step;
  list-style: none;
}

.jobs-process li {
  position: relative;
  min-height: 2.2rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  counter-increment: jobs-step;
}

.jobs-process li::before {
  position: absolute;
  top: 0.72rem;
  left: -2.15rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: #243833;
  background: var(--gold);
  border-radius: 50%;
  content: counter(jobs-step);
  font-size: 0.82rem;
  font-weight: 800;
}

.jobs-apply-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 2rem;
  align-items: end;
}

.jobs-apply-card .actions {
  display: grid;
  grid-template-columns: 1fr;
}

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

@media (max-width: 900px) {
  .jobs-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-apply-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@media (max-height: 420px) {
  .jobs-photo-open {
    position: static;
    width: 100%;
    min-height: 44px;
    border-radius: 0;
  }

  .jobs-lightbox {
    width: min(920px, calc(100vw - 1rem));
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .jobs-lightbox-panel {
    padding: 0.5rem;
  }

  .jobs-lightbox-header {
    display: grid;
    grid-template-areas:
      "title close"
      "subtitle subtitle";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.5rem;
  }

  .jobs-lightbox-header > div {
    display: contents;
  }

  .jobs-lightbox-kicker {
    display: none;
  }

  .jobs-lightbox h2 {
    grid-area: title;
  }

  .jobs-lightbox [data-jobs-lightbox-subtitle] {
    grid-area: subtitle;
    margin-top: 0;
  }

  .jobs-lightbox-close {
    grid-area: close;
  }
}

@media (max-width: 620px) {
  .jobs-top-links {
    gap: 0.35rem 0.75rem;
  }

  .jobs-hero-rates,
  .jobs-facts,
  .jobs-columns,
  .jobs-list-columns {
    grid-template-columns: 1fr;
  }

  .jobs-hero-rates {
    display: grid;
  }

  .jobs-hero-rates span {
    min-width: 0;
  }

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

  .jobs-lightbox {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .jobs-lightbox-panel {
    padding: 0.75rem;
  }

  .jobs-lightbox-header {
    flex-direction: column-reverse;
  }

  .jobs-lightbox-kicker {
    display: none;
  }

  .jobs-lightbox-close {
    align-self: flex-end;
  }

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

@media (max-width: 620px) and (max-height: 420px) {
  .jobs-lightbox-header {
    grid-template-areas:
      "close"
      "title"
      "subtitle";
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-lightbox-close {
    justify-self: end;
  }
}

@media (max-width: 380px) {
  .jobs-page .content-section {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .jobs-page .content-section > .wrap {
    width: min(1120px, calc(100% - 1rem));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .jobs-top-links {
    justify-content: flex-start;
  }

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

  .jobs-photo-open {
    position: static;
    width: 100%;
    justify-content: center;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .jobs-photo-card figcaption {
    padding: 0.5rem;
  }
}
