/* === FILE: assets/css/pages/careers.css ===
   Careers hub — job openings listed on one page, each highlighted
   when it's the active listing (menu click + scroll-spy, mirroring
   the Fleet page). Inherits the shared internal-page template
   (page-hero, section, cta-banner) from demo-flight.css.
   ============================================================ */

@import url('demo-flight.css');

.page-hero { background: var(--color-primary); }

/* Centered section header (eyebrow comes from demo-flight.css). */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--color-primary);
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

/* ─── JOB LIST ───────────────────────────────────────────────── */
.career-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
}

/* ─── JOB CARD ───────────────────────────────────────────────── */
.career-item {
  position: relative;
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 10px);
  box-shadow: 0 12px 32px -24px rgba(17, 24, 39, .2);
  scroll-margin-top: 130px;
  transition: border-color 350ms ease, box-shadow 350ms ease, background-color 350ms ease, transform 350ms ease;
}
@media (min-width: 720px) { .career-item { padding: 2.5rem; } }

/* Active listing — menu-click (:target fallback) or scroll-spy
   (.is-active). Accent border + tinted wash + lift. */
.career-item.is-active,
html:not(.has-scrollspy) .career-item:target {
  border-color: transparent;
  background: color-mix(in srgb, var(--color-accent) 5%, var(--color-bg));
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--color-accent) 62%, transparent),
    0 28px 64px -30px rgba(17, 24, 39, .34);
  transform: translateY(-2px);
}

/* "Now Viewing" pill — hidden until the card is active. */
.career-active-tag {
  display: none;
  align-items: center;
  gap: .5rem;
  width: max-content;
  margin-bottom: 1rem;
  padding: .35rem .8rem .35rem .65rem;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 38%, transparent);
  border-radius: 999px;
}
.career-item.is-active .career-active-tag,
html:not(.has-scrollspy) .career-item:target .career-active-tag { display: inline-flex; }
.career-active-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-accent);
  animation: career-dot-pulse 1.8s ease-out infinite;
}
@keyframes career-dot-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.career-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 720px) {
  .career-head { flex-direction: row; align-items: center; justify-content: space-between; }
}

.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .85rem;
}
.career-tag {
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .3rem .7rem;
}
.career-tag--dept {
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.career-tag--open {
  color: #0a7d3c;
  background: rgba(16, 161, 79, .12);
  border: 1px solid rgba(16, 161, 79, .35);
}

.career-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.4vw + 1rem, 1.875rem);
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.career-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.career-meta li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: var(--color-text-muted);
}
.career-meta svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-accent); }

.career-apply { flex-shrink: 0; align-self: flex-start; }
@media (min-width: 720px) { .career-apply { align-self: center; } }

/* ─── BODY ───────────────────────────────────────────────────── */
.career-logo {
  display: block;
  width: auto;
  max-width: 260px;
  height: auto;
  margin: 0 0 1.5rem;
}

.career-lede {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-secondary, var(--color-text-muted));
  margin: 0 0 1.75rem;
}

.career-section { margin: 0 0 1.75rem; }
.career-section:last-child { margin-bottom: 0; }
.career-section h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--color-primary);
  margin: 0 0 .85rem;
  padding-left: 1rem;
  position: relative;
}
.career-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  width: 4px;
  height: 1em;
  background: var(--color-accent);
  border-radius: 2px;
}
.career-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.career-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}
.career-checklist li {
  position: relative;
  padding-left: 1.85rem;
  font-size: .975rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.career-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .75rem no-repeat,
    var(--color-accent);
}

/* ─── CLOSING NOTE ───────────────────────────────────────────── */
.career-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: .95rem;
  margin: 2.5rem auto 0;
  max-width: 620px;
}

@media (prefers-reduced-motion: reduce) {
  .career-item { transition: none; }
  .career-active-dot { animation: none; }
}
