/* ══════════════════════════════════════════════════════════
   Nov 15, 2026: Careers page, Francis's markup (notes 20 to 22, 29 to 35).
   Markup is applied to the live page-careers.php by host/nov15/careers.py.
   New classes are prefixed cr15-; the only existing selector touched is .cr-hero.cr-hero--text.
   ══════════════════════════════════════════════════════════ */

/* Notes 21, 29: hero is text only, one column */
.cr-hero.cr-hero--text {
  grid-template-columns: 1fr;
  max-width: 1280px;
}
.cr-hero.cr-hero--text .cr-intro { max-width: 620px; }

/* Notes 22, 34, 35: roles. Title + intro left, framed photo grid right */
.cr15-roles {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 96px) clamp(24px, 5vw, 80px);
  border-top: 0.5px solid rgba(2, 30, 66, 0.12);
}
.cr15-roles-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.cr15-roles .cr15-roles-eyebrow {
  text-align: left;
  margin-bottom: clamp(16px, 2.5vh, 28px);
}
.cr15-roles .cr15-roles-title { text-align: left; }
.cr15-roles .cr15-roles-intro {
  text-align: left;
  max-width: 460px;
  margin: 0;
}

/* Note 30: tidy photo grid inside a frame (replaces the staggered collage) */
.cr15-frame {
  border: 1px solid var(--color-navy, #021E42);
  padding: clamp(10px, 1.2vw, 16px);
  background: #fff;
  box-sizing: border-box;
  width: 100%;
}
.cr15-frame-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 0.8vw, 10px);
}
.cr15-frame-cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eae7e0;
}
.cr15-frame-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Roles by region */
.cr15-regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 7vh, 88px);
}
.cr15-region {
  border-top: 2px solid var(--color-orange, #FF6423);
  padding-top: clamp(18px, 2.5vh, 28px);
}
.cr15-region-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cr15-region-list li {
  font-family: var(--font-primary), 'trade-gothic-next', Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.4;
  font-weight: 300;
  color: var(--color-navy, #021E42);
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(2, 30, 66, 0.12);
}
.cr15-region-list li:last-child { border-bottom: 0; }

/* Open positions: the listed opening sits tight above the "View all" portal card */
.cr-open .cr-portal.cr15-opening { margin-bottom: 16px; }
.cr-open .cr-portal.cr15-opening:hover { border-color: var(--color-orange, #FF6423); }

@media (max-width: 900px) {
  .cr15-roles-head { grid-template-columns: 1fr; }
  .cr15-frame { max-width: 480px; margin: 0 auto; }
  .cr15-regions { grid-template-columns: 1fr; gap: 32px; }
  /* keep the opening as a row on phones: title left, arrow right */
  .cr-open .cr-portal.cr15-opening { flex-direction: row; align-items: center; }
}
