/* Sector career pages — extends redesign tokens (navy / champagne / ivory). */

.rx--sector {
  --sx-navy: var(--navy, #0b1f33);
  --sx-gold: var(--gold, #c6a65a);
  --sx-ivory: var(--ivory, #f7f4ee);
  --sx-ink: var(--ink, #1a2430);
  --sx-muted: var(--muted, #5a6570);
  --sx-line: var(--line, rgba(11, 31, 51, 0.12));
}

.sx-hero {
  position: relative;
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(198, 166, 90, 0.18), transparent 55%),
    linear-gradient(165deg, #071523 0%, #0b1f33 48%, #122a40 100%);
  color: #f4f1ea;
  overflow: hidden;
}

.sx-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 166, 90, 0.55), transparent);
}

.sx-hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.sx-hero__copy .rx-kicker {
  color: var(--sx-gold);
}

.sx-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 1rem;
  color: #fff;
  max-width: 18ch;
}

.sx-intro {
  color: rgba(244, 241, 234, 0.88);
  max-width: 42rem;
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.sx-hero .rx-btn--ghost {
  color: #f4f1ea;
  border-color: rgba(244, 241, 234, 0.35);
}

.sx-hero .rx-btn--ghost:hover,
.sx-hero .rx-btn--ghost:focus-visible {
  border-color: var(--sx-gold);
  color: #fff;
}

.sx-hero__media {
  border-radius: 0;
  overflow: hidden;
  min-height: 220px;
  background: #0a1826;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sx-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 460px;
  object-fit: cover;
}

.sx-prose p {
  max-width: 46rem;
  color: var(--sx-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.sx-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.sx-roles li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.55rem;
  border-left: 2px solid var(--sx-gold);
  background: linear-gradient(90deg, rgba(198, 166, 90, 0.08), transparent 70%);
  color: var(--sx-ink);
  font-weight: 500;
}

.sx-req-grid {
  display: grid;
  gap: 1.25rem;
}

.sx-req {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--sx-line);
}

.sx-req h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--sx-navy);
}

.sx-req ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--sx-muted);
  line-height: 1.6;
}

.sx-req li + li {
  margin-top: 0.35rem;
}

.sx-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sx;
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.sx-checklist li {
  counter-increment: sx;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--sx-ink);
  line-height: 1.55;
}

.sx-checklist li::before {
  content: counter(sx, decimal-leading-zero);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sx-gold);
  line-height: 1.35;
}

.sx-cta {
  background:
    linear-gradient(135deg, rgba(11, 31, 51, 0.97), rgba(18, 42, 64, 0.95)),
    var(--sx-navy);
  color: #f4f1ea;
}

.sx-cta__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.sx-cta h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0.25rem 0 0.75rem;
  color: #fff;
}

.sx-cta p {
  color: rgba(244, 241, 234, 0.85);
  max-width: 36rem;
  margin: 0;
}

.sx-cta .rx-kicker {
  color: var(--sx-gold);
}

.sx-cta .rx-btn--ghost {
  color: #f4f1ea;
  border-color: rgba(244, 241, 234, 0.35);
}

/* Capture fisheries vessel editorial */
.sx-vessels .rx-section__head {
  margin-bottom: 1.75rem;
}

.sx-vessel-list {
  display: grid;
  gap: 1.75rem;
}

.sx-vessel {
  display: grid;
  gap: 1.1rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--sx-line);
}

.sx-vessel:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sx-vessel__media,
.sx-vessel__panel {
  min-height: 200px;
  overflow: hidden;
  background: #0b1f33;
}

.sx-vessel__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 320px;
  object-fit: cover;
}

.sx-vessel__panel {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #0b1f33 0%, #16324a 55%, #0f2436 100%);
  border: 1px solid rgba(198, 166, 90, 0.28);
}

.sx-vessel__panel span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--sx-gold);
  text-align: center;
  padding: 1.25rem;
  max-width: 18ch;
  line-height: 1.25;
}

.sx-vessel__body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--sx-navy);
}

.sx-vessel__body p {
  margin: 0 0 0.75rem;
  color: var(--sx-muted);
  line-height: 1.65;
  max-width: 44rem;
}

.sx-vessel__env {
  padding-top: 0.35rem;
  border-top: 1px solid var(--sx-line);
  font-style: italic;
  color: var(--sx-ink) !important;
}

/* Index: clickable sector media + explore link */
.rx-job {
  position: relative;
}

.rx-job__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.rx-job__link:hover h3,
.rx-job__link:focus-visible h3 {
  color: var(--navy, #0b1f33);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.rx-job__link:focus-visible {
  outline: 2px solid var(--gold, #c6a65a);
  outline-offset: 3px;
}

.rx-job__link img,
.rx-job__link .rx-card__fallback {
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.rx-job__link:hover img,
.rx-job__link:focus-visible img {
  transform: scale(1.02);
}

.rx-job__explore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy, #0b1f33);
  text-decoration: none;
  border-bottom: 1px solid var(--gold, #c6a65a);
}

.rx-job__explore:hover,
.rx-job__explore:focus-visible {
  color: #071523;
  border-bottom-color: #071523;
}

@media (min-width: 720px) {
  .sx-roles {
    grid-template-columns: 1fr 1fr;
  }
  .sx-req-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
  .sx-cta__inner {
    grid-template-columns: 1.4fr auto;
  }
}

@media (min-width: 900px) {
  .sx-hero {
    padding: 3.5rem 0 4rem;
  }
  .sx-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
  .sx-hero__media img {
    min-height: 380px;
  }
  .sx-vessel {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 1.75rem;
    align-items: start;
  }
  .sx-vessel:nth-child(even) .sx-vessel__media,
  .sx-vessel:nth-child(even) .sx-vessel__panel {
    order: 2;
  }
  .sx-req-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 719px) {
  .sx-hero {
    padding: 1.75rem 0 2.25rem;
  }
  .sx-hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-job__link img {
    transition: none;
  }
}
