
footer.ifix-site-footer {
  --foot-base: #f4f6f9;
  --foot-panel: #fff;
  --foot-ink: #171d28;
  --foot-muted: #4c5665;
  --foot-line: #d5dce5;
  --foot-accent: #a71d48;
  --foot-motto: #006b75;
  --foot-space: clamp(16px, 2.3vw, 36px);
  display: block !important;
  position: static !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 44px) clamp(12px, 2vw, 32px) !important;
  background: var(--foot-base) !important;
  color: var(--foot-ink) !important;
  font: 400 15px/1.5 Inter, system-ui, sans-serif;
  text-align: start;
}
[data-theme="dark"] footer.ifix-site-footer {
  --foot-base: #0b0d10;
  --foot-panel: #141518;
  --foot-ink: #f4f4f6;
  --foot-muted: #c7cbd2;
  --foot-line: #3f444c;
  --foot-accent: #ff82a8;
  --foot-motto: #67e3ed;
}
.ifix-site-footer *, .ifix-site-footer *::before, .ifix-site-footer *::after { box-sizing: border-box; }
.ifx-foot-panel {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 var(--foot-space);
  border: 1px solid var(--foot-line);
  border-radius: 20px;
  background: linear-gradient(135deg,var(--foot-panel),var(--foot-base) 160%);
}
.ifix-site-footer a { color: inherit; text-decoration: none; }
.ifix-site-footer a:hover, .ifix-site-footer button:hover { text-decoration: underline; text-underline-offset: 4px; }
.ifix-site-footer :is(a,button):focus-visible { outline: 2px solid var(--foot-accent); outline-offset: 4px; border-radius: 3px; }
.ifx-foot-top, .ifx-foot-groups, .ifx-foot-providers, .ifx-foot-note {
  padding-block: var(--foot-space);
  border-bottom: 1px solid var(--foot-line);
}
.ifx-foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
  align-items: center;
  gap: clamp(16px, 2.3vw, 44px);
}
.ifx-foot-identity, .ifx-foot-partner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; min-width: 0; }
.ifx-foot-identity img, .ifx-foot-partner img { display: block; height: auto; max-width: 100%; }
.ifx-foot-identity img { width: clamp(132px, 12vw, 194px); }
.ifx-foot-partner img { width: clamp(120px, 10vw, 164px); border-radius: 8px; background: white; }
.ifx-foot-identity > span { color: var(--foot-motto); font-size: 13px; font-weight: 750; letter-spacing: .09em; white-space: nowrap; }
.ifx-foot-partner > span { color: var(--foot-muted); font-size: 14px; }
.ifx-foot-stats { margin: 0; padding-inline-start: clamp(14px, 2vw, 30px); border-inline-start: 1px solid var(--foot-line); font-size: 13px; }
.ifx-foot-stats div { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.ifx-foot-stats div + div { margin-top: 5px; }
.ifx-foot-stats dd { margin: 0; font-weight: 700; }
.ifx-foot-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px clamp(14px,3vw,48px); }
.ifx-foot-groups h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: inherit; font: 700 clamp(16px,1.45vw,22px)/1.25 Inter,system-ui,sans-serif; letter-spacing: -.02em; }
.ifx-foot-groups h2 svg { width: 23px; height: 23px; flex: 0 0 23px; color: var(--foot-accent); }
.ifx-foot-groups ul { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ifx-foot-groups a { display: inline-block; min-height: 28px; padding-block: 3px; overflow-wrap: anywhere; }
.ifx-foot-groups li:last-child a, .ifx-foot-providers a:last-child { color: var(--foot-accent); font-weight: 650; }
.ifx-foot-providers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(14px, 2vw, 32px); padding-block: clamp(12px, 1.35vw, 20px); }
.ifx-foot-providers a { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; white-space: nowrap; }
.ifx-foot-providers img { width: 22px; height: 22px; object-fit: contain; }
.ifx-foot-providers a:last-child { margin-inline-start: auto; }
.ifx-foot-note { margin: 0; color: var(--foot-muted); font-size: 13px; padding-block: clamp(14px, 1.7vw, 24px); }
.ifx-foot-note a { text-decoration: underline; text-underline-offset: 3px; }
.ifx-foot-bottom, .ifx-foot-utilities { display: flex; align-items: center; flex-wrap: wrap; gap: 8px clamp(12px, 2vw, 28px); }
.ifx-foot-bottom { justify-content: space-between; padding-block: clamp(14px,1.75vw,24px); font-size: 13px; color: var(--foot-muted); }
.ifx-foot-utilities button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ifx-foot-utilities :is(a,button) { min-height: 28px; display: inline-flex; align-items: center; }
@media (max-width: 1000px) {
  .ifx-foot-top { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ifx-foot-stats { grid-column: 1/-1; border-inline-start: 0; padding-inline-start: 0; display: flex; flex-wrap: wrap; gap: 5px 18px; }
  .ifx-foot-stats div + div { margin-top: 0; }
  .ifx-foot-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ifx-foot-providers a:last-child { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  footer.ifix-site-footer { font-size: 14px; }
  .ifx-foot-top { gap: 15px; }
  .ifx-foot-identity, .ifx-foot-partner { gap: 6px; }
  .ifx-foot-partner > span, .ifx-foot-identity > span { font-size: 12px; white-space: normal; }
  .ifx-foot-groups h2 { gap: 6px; }
  .ifx-foot-groups h2 svg { flex-basis: 18px; width: 18px; height: 18px; }
  .ifx-foot-groups a { min-height: 32px; }
  .ifx-foot-stats { display: grid; }
  .ifx-foot-utilities :is(a,button) { min-height: 32px; }
}

/* Keep page-level typography and card rules outside the footer. */
footer.ifix-site-footer .ifx-foot-groups > section {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
footer.ifix-site-footer .ifx-foot-groups h2 {
  font: 700 clamp(16px,1.45vw,22px)/1.25 Inter,system-ui,sans-serif !important;
}
footer.ifix-site-footer .ifx-foot-groups li {
  font: inherit !important;
  line-height: 1.5 !important;
}
footer.ifix-site-footer .ifx-foot-note {
  font: 400 13px/1.55 Inter,system-ui,sans-serif !important;
}

/* Repair content is capped at 1480px, but its footer follows the viewport. */
html:has(> body.repair-detail-view > footer.ifix-site-footer) {
  container: ifix-guide-viewport / inline-size;
}
@container ifix-guide-viewport (min-width: 0px) {
  body.repair-detail-view > footer.ifix-site-footer {
    width: 100cqw !important;
  }
}

html:root:root body footer.ifix-site-footer a { color: inherit !important; }
html:root:root body footer.ifix-site-footer :is(.ifx-foot-groups li:last-child a, .ifx-foot-providers a:last-child) {
  color: var(--foot-accent) !important;
}
@media (min-width: 1350px) {
  footer.ifix-site-footer .ifx-foot-providers { justify-content: space-between; }
  footer.ifix-site-footer .ifx-foot-providers a:last-child { margin-inline-start: 0; }
}

/* The page footer follows the content column and scrolls with the document. */
body > footer.ifix-site-footer {
  --footer-sidebar-offset: 0px;
  width: calc(100% - var(--footer-sidebar-offset)) !important;
  margin: clamp(24px, 3vw, 44px) 0 0 var(--footer-sidebar-offset) !important;
  padding-block-start: 0 !important;
}
@media (min-width: 721px) {
  body:not(.growth-nav-collapsed):has(.common-sidebar) > footer.ifix-site-footer {
    --footer-sidebar-offset: var(--nav-width, var(--sidebar, 200px));
  }
  body:has(.shell.shell-collapsed > .common-sidebar) > footer.ifix-site-footer {
    --footer-sidebar-offset: 76px;
  }
}
@media (min-width: 1000px) {
  body:has(.shell.shell-collapsed > .common-sidebar) > footer.ifix-site-footer {
    --footer-sidebar-offset: 72px;
  }
}
@container ifix-guide-viewport (min-width: 0px) {
  body.repair-detail-view > footer.ifix-site-footer {
    width: calc(100cqw - var(--footer-sidebar-offset)) !important;
  }
}

/* Older standalone guide uses its own 192px desktop navigation rail. */
@media (min-width: 761px) {
  body:not(.growth-nav-collapsed):has(> .growth-sidebar:not(.common-sidebar)) > footer.ifix-site-footer {
    --footer-sidebar-offset: 192px;
  }
}
