/* One footer for every claracareers.com page: the landing page, /match and
   /apply, role pages and guides. Markup: backend/careers_footer.py, mirrored
   in index.html and match.html. Each page brings its own base stylesheet, so
   every rule is scoped under .site-footer and outranks bare element rules
   (h2, a, a:hover, :focus-visible) whatever order the sheets load in. */
.site-footer {
  --cf-navy: #011131;
  --cf-lavender: #aac2fe;
  --cf-text: rgba(255, 255, 255, 0.74);
  --cf-muted: rgba(255, 255, 255, 0.58);
  --cf-rule: rgba(170, 194, 254, 0.18);
  --cf-gutter: 40px;
  margin-top: auto; /* index and /match: body is a flex column */
  padding: 72px max(var(--cf-gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--cf-gutter), env(safe-area-inset-left, 0px));
  background: var(--cf-navy);
  color: var(--cf-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }
.site-footer .cf-inner,
.site-footer .cf-base { width: 100%; max-width: 1120px; margin-inline: auto; }
.site-footer .cf-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
  gap: 48px 72px;
}

/* ── Brand ── */
.site-footer .cf-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}
.site-footer .cf-logo img { display: block; width: auto; height: 24px; filter: brightness(0) invert(1); }
.site-footer .cf-logo span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.site-footer .cf-tagline {
  max-width: 30ch;
  margin: 14px 0 0;
  color: var(--cf-text);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Link columns ── */
.site-footer .cf-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
}
.site-footer .cf-title {
  margin: 0 0 10px;
  color: var(--cf-lavender);
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.site-footer .cf-col ul { margin: 0; padding: 0; list-style: none; }
.site-footer .cf-col li { margin: 0; padding: 0; }
.site-footer .cf-col a,
.site-footer .cf-base a {
  display: inline-block;
  padding: 5px 0;
  color: var(--cf-text);
  font-weight: 500;
  line-height: 22px;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  border-radius: 4px;
}
.site-footer .cf-col a:hover,
.site-footer .cf-base a:hover,
.site-footer .cf-col a[aria-current] { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.55); }
.site-footer .cf-col a[aria-current] { font-weight: 600; }
/* The arrow sits outside the translated label. It stays inline (no break
   opportunity before it), so a wrapping label never strands it on its own line. */
.site-footer .cf-ext {
  margin-left: 4px;
  color: var(--cf-lavender);
  font-size: 12px;
  line-height: 1;
}
.site-footer .cf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Base row ── */
.site-footer .cf-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--cf-rule);
  color: var(--cf-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Inverse focus ring: lavender on navy, never the page's blue ring. */
.site-footer a:focus-visible {
  outline: 2px solid var(--cf-lavender);
  outline-offset: 3px;
  box-shadow: none;
  color: #fff;
}

/* Keyboard focus gets the same underline as hover, so the ring and the
   underline agree on which link is active. */
.site-footer .cf-col a:focus-visible,
.site-footer .cf-base a:focus-visible { text-decoration-color: rgba(255, 255, 255, 0.55); }

/* The underline slides up into place on hover or focus (--m-out comes from
   /portal/motion.css where a page loads it; ease-out otherwise). */
@media (prefers-reduced-motion: no-preference) {
  .site-footer .cf-col a,
  .site-footer .cf-base a { transition: color 0.18s var(--m-out, ease-out), text-decoration-color 0.18s var(--m-out, ease-out), text-underline-offset 0.18s var(--m-out, ease-out), outline-offset 0.18s var(--m-out, ease-out); }
  .site-footer .cf-col a:not(:hover):not(:focus-visible) { text-underline-offset: 7px; }
  .site-footer .cf-logo { transition: outline-offset 0.18s var(--m-out, ease-out); }
  .site-footer .cf-logo img { transition: opacity 0.18s var(--m-out, ease-out); }
  .site-footer .cf-logo:hover img { opacity: 0.86; }
}

/* Tablets: brand row across the top, four columns below. */
@media (max-width: 960px) {
  .site-footer { --cf-gutter: 32px; padding-top: 56px; }
  .site-footer .cf-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .site-footer .cf-tagline { max-width: 46ch; }
}
/* Phones: two columns, 44px tap targets. */
@media (max-width: 720px) {
  .site-footer { --cf-gutter: 20px; padding-top: 48px; }
  .site-footer .cf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .site-footer .cf-title { margin-bottom: 4px; }
  .site-footer .cf-base { margin-top: 40px; }
}
@media (max-width: 720px), (pointer: coarse) {
  .site-footer .cf-col a { padding-block: 11px; min-width: 44px; }
}

/* Same-site page changes (another guide, a language, a role, home) crossfade
   instead of flashing white. Root only: nothing flies across the screen.
   This is the only @view-transition opt-in on claracareers.com: every careers
   page links this sheet in its <head>, so both sides of a navigation opt in
   even when a page's own stylesheet isn't cached yet. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: 200ms; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
}
