/* Final footer layout guard. Kept separate so browsers receive a fresh URL after fixes. */
.site-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  column-gap: 24px !important;
  row-gap: 18px !important;
}

.site-footer > div:first-child {
  flex: 1 1 360px !important;
  width: auto !important;
  min-width: 260px !important;
}

.site-footer > div:first-child p {
  width: auto !important;
  max-width: 42rem !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.site-footer nav {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

.site-footer .footer-socials,
.site-footer > span:last-child {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

.site-footer > span:last-child {
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .site-footer {
    align-items: flex-start !important;
    row-gap: 20px !important;
  }

  .site-footer > div:first-child,
  .site-footer nav,
  .site-footer .footer-socials,
  .site-footer > span:last-child {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .site-footer nav,
  .site-footer .footer-socials {
    justify-content: flex-start !important;
  }
}

/* Design 22 contrast guard: keep small labels readable on both ink and paper. */
html[data-et-design="22"] .age-panel .eyebrow {
  color: var(--design-accent-text) !important;
}

html[data-et-design="22"] .et2-desk-links a {
  color: var(--et-text) !important;
}

html[data-et-design="22"] .et2-desk-links strong {
  color: var(--et-text) !important;
}

html[data-et-design="22"] .et2-desk-links small {
  color: color-mix(in srgb, var(--et-secondary) 82%, white) !important;
}

html[data-et-design="22"] .et2-desk-links span {
  color: color-mix(in srgb, var(--et-primary) 50%, white) !important;
}

html[data-et-design="22"] .et2-desk-member {
  color: var(--design-ink) !important;
}

html[data-et-design="22"] .et2-desk-member span {
  color: var(--design-highlight-text) !important;
}

html[data-et-design="22"] .et2-desk-member b {
  color: var(--design-accent-text) !important;
}

html[data-et-design="22"] .et2-membership-stamp {
  color: var(--design-ink) !important;
}

html[data-et-design="22"] .et2-lead-caption b {
  color: color-mix(in srgb, var(--et-primary) 70%, white) !important;
}

html[data-et-design="22"] :is(a, button):focus-visible {
  outline: 3px solid var(--design-accent-text);
  outline-offset: 3px;
}

/* Inner pages use a full-width footer, with a centered content measure.
   Do not combine a capped outer width with viewport-sized padding. */
body:not(.et12-home) .site-footer {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding: 32px max(24px, calc((100% - 1380px) / 2));
}

body:not(.et12-home) .site-footer > div:first-child {
  min-width: 0 !important;
}

body:not(.et12-home) .site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body:not(.et12-home) .site-footer .footer-social {
  min-height: 44px;
}

@media (max-width: 760px) {
  body:not(.et12-home) .site-footer {
    padding: 28px 20px;
  }
}

