/* F5 pages on the main site's stylesheet (scripts/build-f5-pages.py,
   layout(full=True)): loaded after styles.min.*.css. Hand-written, not generated.
   The first block is a plain-template rule these pages still need
   (f5-plain.css is not loaded here); the rest is /careers/. The skip link's
   style is shared by every page in site-fixes.css (.skip-link, A11Y-008/009). */

/* The footer's crisis notice (from f5-plain.css) */
.footer .f5-footer__crisis-bar { max-width: 1200px; margin: 0 auto; padding: 32px 24px 0; }
.footer .f5-footer__crisis { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 10px; color: #fff; }
.footer .f5-footer__crisis a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ── /careers/ ─────────────────────────────────────────────────────────── */

#how-to-apply { scroll-margin-top: calc(var(--nav-height, 72px) + 16px); }
.btn .ph-icon { font-size: 1.1em; }
.btn:has(.ph-icon) { display: inline-flex; align-items: center; gap: var(--space-2, 0.5rem); }
.careers-center { text-align: center; }

/* Hero: text beside a framed photo */
.careers-hero__grid {
  max-width: var(--container-max, 1200px);
  margin-inline: auto;
  display: grid;
  gap: var(--space-12, 3rem);
  align-items: center;
}
.careers-hero__label {
  margin: 0 0 var(--space-4, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-on-dark, #E9C46A);
}
.careers-hero__heading { margin-bottom: var(--space-5, 1.25rem); }
.careers-hero__sub { max-width: 34rem; }
.careers-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4, 1rem); margin-top: var(--space-8, 2rem); }
/* The main stylesheet's .btn--secondary is green on green here; outline it in white. */
.careers-hero .btn--secondary { color: var(--clr-white, #fff); border-color: rgba(255, 255, 255, 0.7); }
.careers-hero .btn--secondary:hover,
.careers-hero .btn--secondary:focus-visible { background: var(--clr-white, #fff); border-color: var(--clr-white, #fff); color: var(--clr-dark, #0A4F3E); }

.careers-hero__media { position: relative; margin: 0 var(--space-4, 1rem) var(--space-4, 1rem) 0; }
.careers-hero__media::before {
  content: "";
  position: absolute; inset: var(--space-6, 1.5rem) calc(-1 * var(--space-4, 1rem)) calc(-1 * var(--space-4, 1rem)) var(--space-6, 1.5rem);
  border: 2px solid var(--color-accent-on-dark, #E9C46A);
  border-radius: 28px;
  opacity: 0.6;
}
.careers-hero__media img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 65% center;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.careers-hero__badge {
  position: absolute; left: calc(-1 * var(--space-4, 1rem)); bottom: var(--space-8, 2rem);
  display: inline-flex; align-items: center; gap: var(--space-2, 0.5rem);
  margin: 0;
  padding: var(--space-3, 0.75rem) var(--space-5, 1.25rem);
  background: var(--clr-white, #fff);
  color: var(--clr-dark, #0A4F3E);
  font-weight: 700;
  font-size: var(--font-size-sm, 0.875rem);
  border-radius: var(--radius-full, 9999px);
  box-shadow: var(--shadow-lg);
}
.careers-hero__badge .ph-icon { color: var(--clr-green, #0C7E66); font-size: 1.25rem; }

@media (min-width: 960px) {
  .careers-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16, 4rem); }
}
@media (max-width: 959px) {
  .careers-hero__content { text-align: center; }
  .careers-hero__sub { margin-inline: auto; }
  .careers-hero__actions { justify-content: center; }
  .careers-hero__media { max-width: 560px; margin-inline: auto; width: calc(100% - var(--space-4, 1rem)); }
  .careers-hero__badge { left: var(--space-4, 1rem); }
}

/* Why ReiSpace: one row of four on wide screens */
/* The main .pillars grid is 6 columns with each card spanning 2; this one is a plain 1/2/4. */
.pillars.careers-why { grid-template-columns: 1fr; margin-top: var(--space-10, 2.5rem); }
.pillars.careers-why > * { grid-column: auto; }
@media (min-width: 640px) { .pillars.careers-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pillars.careers-why { grid-template-columns: repeat(4, 1fr); } }
.careers-why__item { height: 100%; }

/* Two ways to join: photo cards */
.careers-paths {
  display: grid;
  gap: var(--space-8, 2rem);
  margin-top: var(--space-10, 2.5rem);
}
@media (min-width: 860px) { .careers-paths { grid-template-columns: 1fr 1fr; } }
.careers-path {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--clr-white, #fff);
  border: 1px solid var(--clr-gray-200, #E5E7EB);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast, 150ms ease), transform var(--transition-fast, 150ms ease);
}
.careers-path__media { aspect-ratio: 16 / 9; overflow: hidden; }
.careers-path__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.careers-path__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-8, 2rem); }
.careers-path__body .participation-card__tag { align-self: flex-start; }
.careers-path__heading {
  margin: 0 0 var(--space-3, 0.75rem);
  font-size: var(--font-size-2xl, 1.5rem);
  color: var(--clr-dark, #0A4F3E);
}
.careers-path__body > p { margin: 0 0 var(--space-5, 1.25rem); color: var(--clr-gray-600, #4B5563); line-height: 1.7; }
.careers-path__points { display: grid; gap: var(--space-2, 0.5rem); margin: 0 0 var(--space-6, 1.5rem); padding: 0; list-style: none; }
.careers-path__points li { display: flex; align-items: center; gap: var(--space-2, 0.5rem); font-weight: 500; color: var(--clr-gray-800, #1F2933); }
.careers-path__points .ph-icon { color: var(--clr-green, #0C7E66); font-size: 1.2rem; }
.careers-path__link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: var(--space-2, 0.5rem);
  font-weight: 700;
  color: var(--clr-green, #0C7E66);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.careers-path__link .ph-icon { transition: transform var(--transition-fast, 150ms ease); }
.careers-path__link:hover { color: var(--clr-dark, #0A4F3E); }
.careers-path__link:hover .ph-icon { transform: translateX(3px); }

/* How to apply: steps and the closing call to action */
.careers-apply__inner { max-width: 960px; }
.careers-apply__intro {
  max-width: 40rem; margin: var(--space-4, 1rem) auto 0;
  text-align: center; font-size: var(--font-size-lg, 1.125rem); line-height: 1.7;
}
.careers-steps {
  display: grid; gap: var(--space-6, 1.5rem);
  margin: var(--space-10, 2.5rem) 0 0; padding: 0; list-style: none;
}
@media (min-width: 720px) { .careers-steps { grid-template-columns: 1fr 1fr; } }
.careers-step {
  display: flex; gap: var(--space-5, 1.25rem); align-items: flex-start;
  padding: var(--space-6, 1.5rem) var(--space-8, 2rem);
  background: var(--clr-white, #fff);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-sm);
}
.careers-step__number {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-green, #0C7E66); color: var(--clr-white, #fff);
  font-family: var(--font-heading, inherit); font-weight: 700; font-size: var(--font-size-lg, 1.125rem);
}
.careers-step__heading {
  display: flex; align-items: center; gap: var(--space-2, 0.5rem);
  margin: var(--space-2, 0.5rem) 0 var(--space-2, 0.5rem);
  font-size: var(--font-size-lg, 1.125rem); color: var(--clr-dark, #0A4F3E);
}
.careers-step__heading .ph-icon { color: var(--clr-green, #0C7E66); }
.careers-step p { margin: 0; color: var(--clr-gray-600, #4B5563); line-height: 1.6; }
.careers-step a { color: var(--clr-green, #0C7E66); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

.careers-apply__cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-4, 1rem); margin-top: var(--space-10, 2.5rem); }
.careers-note {
  display: flex; gap: var(--space-2, 0.5rem); align-items: flex-start; justify-content: center;
  margin: 0; text-align: center;
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--clr-gray-600, #4B5563);
}
.careers-note .ph-icon { flex-shrink: 0; margin-top: 2px; color: var(--clr-green, #0C7E66); }

@media (prefers-reduced-motion: reduce) {
  .careers-path, .careers-path:hover, .careers-path:focus-within,
  .careers-path__media img, .careers-path:hover .careers-path__media img,
  .careers-path__link .ph-icon { transition: none; transform: none; }
}

/* ── /platform/get-the-app/ (redesign, 17 Nov 2026) ───────────────────────── */
/* Hero: text and store badges beside one phone showing the supplied app screenshot (phones only). */
.app-hero__grid {
  max-width: var(--container-max, 1200px);
  margin-inline: auto;
  display: grid;
  gap: var(--space-12, 3rem);
  align-items: center;
}
.app-hero__label {
  margin: 0 0 var(--space-4, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-on-dark, #DBB86E);
}
.app-hero__heading { margin-bottom: var(--space-5, 1.25rem); }
.app-hero__sub { max-width: 34rem; }
/* Store badges: the official App Store and Google Play artwork, the same height side by side. Without
   their URLs they are plain images (no link, no focus stop); the release notice follows them. */
.app-hero__stores {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4, 1rem);
  margin-top: var(--space-8, 2rem);
}
.app-hero__badges { --badge-h: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4, 1rem); }
.app-hero__badge { display: block; width: auto; height: var(--badge-h); max-width: none; }
/* Google's files include clear space (EN: 41 px around a 564x168 badge in 646x250; FR: 29 px above and
   below a 646x192 badge). Scale them so the visible badge is --badge-h tall, and cancel the clear space. */
.app-hero__badge--google-play-en { height: calc(var(--badge-h) * 250 / 168); margin: calc(var(--badge-h) * -41 / 168); }
.app-hero__badge--google-play-fr { height: calc(var(--badge-h) * 250 / 192); margin: calc(var(--badge-h) * -29 / 192) 0; }
.app-hero__badge-link { display: block; border-radius: var(--radius-md, 8px); }
.app-hero__release {
  margin: 0;
  color: var(--color-text-on-dark, #F7F7F5);
  font-size: var(--font-size-base, 1rem);
  font-style: italic;
  line-height: 1.5;
}
.app-hero .btn--secondary { color: var(--clr-white, #fff); border-color: rgba(255, 255, 255, 0.7); }

/* One phone: the unaltered screenshot (921x2000) under a device frame with a transparent screen
   (phone-frame.webp, 720x1484). The screenshot's box covers the frame's screen opening, rounded so
   its corners stay inside the device; the bezel hides its outer 1-2 px. */
.app-hero__media { display: flex; justify-content: center; }
.app-phone {
  position: relative;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 720 / 1484;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.35)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}
.app-phone__screen {
  position: absolute;
  left: 4.106%;
  top: 1.315%;
  width: 92.058%;
  height: auto;
  max-width: none;
  border-radius: 14.7% / 6.78%; /* just inside the frame's rounded screen corners */
}
.app-phone__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
@media (min-width: 960px) {
  .app-hero__grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-16, 4rem); }
}
@media (max-width: 959px) {
  .app-hero__content { text-align: center; }
  .app-hero__sub { margin-inline: auto; }
  .app-hero__stores { align-items: center; }
  .app-hero__badges { justify-content: center; }
  .app-phone { max-width: min(300px, 76vw); }
}
@media (max-width: 479px) {
  .app-hero__badges { --badge-h: 48px; gap: var(--space-3, 0.75rem); }
}

/* Guest access: warm cream section (the site's --bg-section-warm). */
.app-guest { background: var(--bg-section-warm, #F8F3EA); color: var(--text-on-gold-wash, #1F2933); }
.app-guest__text,
.app-help__text {
  max-width: 40rem;
  margin: 0 auto;
  font-size: var(--font-size-lg, 1.125rem);
  line-height: var(--leading-relaxed, 1.7);
  color: var(--clr-gray-600, #4B5563);
}

/* Help: Support and the legal pages as the site's buttons. */
.app-help__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4, 1rem); margin-top: var(--space-8, 2rem); }
.app-help__android { margin-top: var(--space-8, 2rem); text-align: left; }
