/* Hallmark pre-emit critique: P4 H5 E4 S4 R5 V4.
   Shared footer refinement; existing Inter and yellow brand system.
   The conversion band is a separate sibling on explicitly selected routes. */
@layer components {
:where(footer.sf, .sf-band) {
  --sf-ink: var(--site-color-ink);
  --sf-body: var(--site-color-secondary);
  --sf-paper: var(--site-color-paper);
  --sf-strong: var(--site-color-footer-strong);
  --sf-yellow: var(--site-color-accent);
  --sf-rule: var(--site-color-ink-16);
  --sf-tilt: 0px; /* Flat top edge; the polygon rules stay as a single switch. */
  display: block;
  margin: 0;
  padding: 0;
  background: var(--sf-paper);
  color: var(--sf-ink);
  font-family: var(--type-font-text);
  font-size: var(--type-body-size);
  line-height: var(--type-line-body);
}
:where(footer.sf, .sf-band) :where(h2, p, ul) { margin: 0; padding: 0; }
:where(footer.sf) ul { list-style: none; }
:where(footer.sf, .sf-band) a { color: inherit; text-decoration: none; }
:is(footer.sf, .sf-band) a:focus-visible { outline: var(--site-focus-ring); outline-offset: var(--site-space-2); border-radius: var(--site-radius-tight); }
:is(footer.sf, .sf-band) ::selection { background: var(--sf-ink); color: var(--sf-paper); }
.sf-inner { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* Keep the closing statement and actions together without competing with the hero. */
.sf-band .sf-inner {
  display: grid;
  /* The detail column hugs its content so its right edge meets the container edge. */
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--site-space-64);
  align-items: start;
}
.sf-band {
  padding: calc(var(--sf-tilt) + var(--site-space-48)) 0 var(--site-space-48);
  background: var(--sf-yellow);
  clip-path: polygon(0 var(--sf-tilt), 100% 0, 100% 100%, 0 100%);
}
/* Continue the preceding neutral surface underneath the angled yellow edge. */
body.page-id-26536 { --sf-band-surface: var(--site-color-footer-band); }
body.page-id-26536 .sf-band {
  position: relative;
  isolation: isolate;
  clip-path: none;
  background: var(--sf-band-surface);
}
body.page-id-26536 .sf-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sf-yellow);
  clip-path: polygon(0 var(--sf-tilt), 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.sf-social svg { display: block; flex: none; width: 16px; height: 16px; fill: currentColor; }
.sf-band .sf-band-title {
  /* Optical top alignment: lifts the title's cap line to the lead's cap line. */
  margin-top: -.12em;
  min-width: 0;
  max-width: 18ch;
  color: var(--sf-ink);
  font-family: var(--type-font-text);
  font-size: var(--type-heading-1-size);
  font-style: normal;
  font-weight: var(--type-heading-1-weight);
  line-height: var(--type-heading-1-line);
  letter-spacing: var(--type-heading-1-track);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.sf-band-lead { max-width: 36ch; color: var(--sf-ink); font-size: var(--type-body-size); line-height: var(--type-line-body); }
.sf-band-actions { display: flex; flex-wrap: wrap; gap: var(--site-space-12); margin-top: var(--site-space-24); }
/* SITE-BUTTON-01: on the yellow band the shared buttons switch to charcoal for contrast. */
.sf-band .site-button-primary { --site-button-bg: var(--sf-ink); --site-button-ink: var(--sf-paper); --site-button-line: var(--sf-ink); background-image: none; transition: none; }
.sf-band .site-button-primary:is(:hover, :active, :focus-visible):not(:disabled) { background-color: var(--sf-strong); border-color: var(--sf-strong); color: var(--sf-paper); }
/* The secondary keeps the shared hover: a soft outline that turns charcoal. */
.sf-band .site-button-secondary { --site-button-line: var(--site-color-ink-32); }

/* Navigation */
footer.sf { border-top: 1px solid var(--sf-rule); }
.sf-band + footer.sf { border-top: 0; }
.sf-main {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--site-space-64);
  padding: var(--site-space-56) 0 var(--site-space-48);
}
.sf-logo { display: inline-block; }
.sf-logo img { display: block; width: var(--header-logo, 132px); height: auto; border-radius: 0; }
.sf-brand p { max-width: 28ch; margin-top: var(--site-space-8); color: var(--sf-body); font-size: var(--type-body-sm-size); }
.sf-social { display: flex; flex-wrap: wrap; gap: var(--site-space-8); margin-top: var(--site-space-24); }
/* Icon-only buttons: the label stays as the accessible name but is not shown. */
.sf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--sf-rule);
  border-radius: var(--site-radius-control);
  color: var(--sf-ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.sf-social svg { width: 18px; height: 18px; }
/* Touch keeps 44px targets. */
@media (pointer: coarse) { .sf-social a { width: 44px; height: 44px; } .sf-social svg { width: 20px; height: 20px; } }
.sf-social span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sf-social a:is(:hover, :active) { text-decoration: none; border-color: var(--site-color-ink-32); background: var(--site-color-ink-16); }
footer.sf .sf-social a:focus-visible { outline: var(--site-focus-ring); outline-offset: var(--site-space-2); text-decoration: none; }
.sf-nav { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: var(--site-space-32); }
footer.sf .sf-heading { color: var(--sf-ink); font-family: var(--type-font-text); font-size: var(--type-body-sm-size); font-style: normal; font-weight: var(--type-weight-semibold); line-height: var(--type-line-body); letter-spacing: 0; }
.sf-group ul { display: grid; margin-top: var(--site-space-16); }
.sf-group li { display: flex; }
.sf-group a, .sf-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--site-space-8) 0; font-weight: var(--type-weight-regular); white-space: nowrap; }
.sf-group a { color: var(--sf-body); font-size: var(--type-body-sm-size); font-weight: var(--type-weight-regular); }
/* Mouse users get a compact list; touch keeps 44px targets. */
@media (pointer: fine) { .sf-group a { min-height: 32px; padding: var(--site-space-4) 0; } }
.sf-group a:is(:hover, :active, :focus-visible) { color: var(--sf-ink); }
.sf-group a:is(:hover, :active), .sf-legal a:is(:hover, :active) {
  text-decoration: underline;
  text-decoration-color: var(--sf-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Bottom row */
.sf-bottom {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: var(--site-space-12) var(--site-space-32);
  padding: var(--site-space-20) 0 var(--site-space-28);
  border-top: 1px solid var(--sf-rule);
  color: var(--sf-body);
  font-size: var(--type-body-sm-size);
}
.sf-legal { display: flex; flex-wrap: wrap; gap: var(--site-space-8) var(--site-space-24); }
.sf-legal a { color: var(--sf-body); }
.sf-legal a:hover { color: var(--sf-ink); }
.sf-badges { display: flex; flex-wrap: wrap; gap: var(--site-space-12); justify-self: end; }
.sf-badges a { display: inline-flex; align-items: center; min-height: 44px; }
.sf-badges img { display: block; width: auto; max-width: 100%; height: 32px; border-radius: 0; }

/* Keep the page utility clear of the screen edge and footer links. */
.back-to-top {
  --top-inset: var(--site-space-24);
  --top-ink: var(--site-color-ink);
  --top-paper: var(--site-color-paper);
  position: fixed;
  right: max(var(--top-inset), env(safe-area-inset-right));
  bottom: max(var(--top-inset), env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius:var(--site-radius-circle);
  background: var(--top-paper);
  color: var(--top-ink);
  line-height: 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: none;
}
.back-to-top.active { right: max(var(--top-inset), env(safe-area-inset-right)); visibility: visible; opacity: 1; pointer-events: auto; }
.public-page:has(.static-search-results:not(:empty)) .back-to-top { visibility: hidden; opacity: 0; pointer-events: none; }
.back-to-top:is(:hover, :active) { background: var(--top-paper); transform: none; }
.back-to-top { z-index: 30; }
.back-to-top svg { display: block; width: 16px; height: 16px; }
.back-to-top .back-to-top-arrow { width: 24px; height: 24px; }
.back-to-top .back-to-top-progress { position: absolute; inset: 0; width: 50px; height: 50px; pointer-events: none; }
.back-to-top-track { stroke: var(--site-color-ink-24); stroke-width: 1px; }
[data-site-progress-ring] { stroke: var(--header-accent); stroke-width: 2px; stroke-dasharray: 100; stroke-dashoffset: 100; }
.back-to-top:focus-visible { outline: var(--site-focus-ring); outline-offset: var(--site-space-2); }
@media print { .back-to-top { display: none; } }
@media (min-width: 1100px) {
  .sf-bottom { padding-inline-end: var(--site-space-72); }
}
@media (max-width: 1099px) {
  .sf-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .sf-badges { grid-column: 1 / -1; justify-self: start; }
}
/* Side by side, lift the logo so its wordmark cap line meets the column headings' cap line. */
@media (min-width: 900px) {
  .sf-logo { margin-top: calc(-1 * var(--site-space-4)); }
}
@media (max-width: 899px) {
  .sf-band .sf-inner { grid-template-columns: minmax(0, 1fr); gap: var(--site-space-24); }
  .sf-band .sf-band-title { margin-top: 0; }
  .sf-main { grid-template-columns: minmax(0, 1fr); gap: var(--site-space-32); padding: var(--site-space-40) 0 var(--site-space-32); }
}
@media (max-width: 639px) {
  .sf-band { padding: calc(var(--sf-tilt) + var(--site-space-40)) 0 var(--site-space-40); }
}
@media (max-width: 599px) {
  .back-to-top { --top-inset: var(--site-space-16); }
  .sf-inner { width: calc(100% - 40px); }
  .sf-band-actions { align-items: stretch; flex-direction: column; }
  .sf-band-actions a { width: 100%; }
  .sf-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--site-space-24); }
  .sf-group:first-child { grid-column: 1 / -1; }
  .sf-group:first-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--site-space-24); }
  .sf-group:first-child li:last-child { grid-column: 1 / -1; }
  .sf-bottom { grid-template-columns: minmax(0, 1fr); gap: var(--site-space-12); padding-bottom: 88px; } /* clears the fixed back-to-top button */
  .sf-badges { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  :is(footer.sf, .sf-band) a { transition: none; }
}
}

/* SITE-THEME-08: old public-page roles, without inheriting global theme p/a rules. */
@layer components {
  body.public-page:not(.product-page):not(.download-page):not([data-docs-page]) footer.sf :is(.sf-copy, .sf-brand p),
  body.legacy-product-page footer.sf :is(.sf-copy, .sf-brand p) {
    font-family: var(--type-font-text); font-weight: var(--type-weight-regular); line-height: var(--type-line-body);
  }
  body.public-page:not(.product-page):not(.download-page):not([data-docs-page]) footer.sf .sf-copy,
  body.legacy-product-page footer.sf .sf-copy {
    color: var(--sf-preserved-copy, var(--sf-ink));
    font-size: var(--type-body-sm-size);
  }
  body.public-page:not(.product-page):not(.download-page):not([data-docs-page]) footer.sf .sf-legal a,
  body.legacy-product-page footer.sf .sf-legal a {
    font-size: var(--type-body-sm-size); line-height: var(--type-line-body);
  }
  body.public-page:not(.product-page):not(.download-page):not([data-docs-page]) footer.sf .sf-group a,
  body.legacy-product-page footer.sf .sf-group a { line-height: var(--type-line-body); }
  body[data-page-layout="contact-us"] footer.sf { --sf-preserved-copy: var(--site-color-footer-copy); }
}
