#af-home-preview #af-footer {
  --footer-gutter: clamp(16px, 3.1cqi, 40px);
  --pine: #173e30;
  --rule: #cdd9d0;
  position: relative;
  background: #f6f8f4;
  color: var(--ink);
  border-top: 4px solid var(--pine);
  padding: 0;
}
#af-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 22%;
  height: 4px;
  background: #bada38;
  transform: skewX(-32deg);
  transform-origin: left;
}
#af-footer .footer-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 18px var(--footer-gutter);
  background: white;
  border-bottom: 1px solid var(--rule);
}
#af-footer .footer-brand { display: inline-flex; align-items: center; min-height: 44px; }
#af-footer .footer-brand img { display: block; width: clamp(150px, 18cqi, 212px); height: auto; }
#af-footer .socialbar { display: flex; gap: 4px; width: auto; }
#af-footer .socialbar :is(a, .pending) { width: 40px; height: 40px; border-radius: 50%; }
#af-footer .socialbar a { background: #f1f5f1; }
#af-footer .socialbar a:hover { background: #deebde; }
#af-footer .foot-columns { padding: 24px var(--footer-gutter) 20px; }
#af-footer .foot-columns > div { min-width: 0; }
#af-home-preview #af-footer h3 {
  font: 540 clamp(21px, 2.25cqi, 28px)/1.15 var(--display);
  color: var(--pine);
  margin: 0 0 11px;
}
#af-home-preview #af-footer .small-story {
  font: 490 clamp(17px, 1.5cqi, 20px)/1.18 var(--display);
  border-top: 1px solid var(--rule);
  grid-template-columns: clamp(64px, 6.4cqi, 80px) minmax(0,1fr);
  padding-block: 8px;
}
#af-footer .small-story img { aspect-ratio: 1.65; }
#af-footer .popular {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
#af-footer .popular a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 5px 0;
  font: 490 16px/1.2 var(--display);
}
#af-footer .directory { margin: 8px 0 0; padding: 0; border: 0; }
#af-footer .directory summary {
  display: list-item;
  padding: 10px 2px;
  width: fit-content;
  font: 550 14px/1.4 var(--body);
  color: var(--pine);
}
#af-footer .directory summary::marker { color: #387a51; }
#af-footer .directory > div { margin-block: 0 8px; gap: 0 14px; }
#af-footer .directory a { padding-block: 6px; }
#af-footer .footer-network {
  padding: 18px var(--footer-gutter) 22px;
  border-top: 1px solid var(--rule);
  background: #fff;
}
#af-home-preview #af-network-heading { font-size: 21px; margin-bottom: 12px; }
#af-footer .partner-logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
}
#af-footer .partner-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  min-height: 68px;
  padding: 8px;
  background: #fff;
  border: 1px solid #dbe2dc;
}
#af-footer .partner-logos a:hover { background: #f5f8f4; border-color: #739b80; }
#af-footer .partner-logos img { max-width: min(100%, 120px); width: auto; height: 32px; object-fit: contain; }
#af-footer .partner-logos a:first-child img { height: 23px; }
#af-footer .footer-domain { font: 520 11px/1 var(--body); color: var(--pine); }
#af-footer .contact {
  margin: 0;
  padding: 9px var(--footer-gutter);
  column-gap: 18px;
  background: var(--pine);
  color: #fff;
  font: 460 13px/1.42 var(--body);
}
#af-footer .contact a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; }
#af-footer .footer-contact-label { color: #d4e4d4; }
#af-home-preview #af-footer .totop {
  font: 480 13px/1.4 var(--body);
  min-height: 40px;
  color: white;
}
#af-home-preview #af-footer .totop:hover { color: #d0ed73 !important; }
#af-footer :is(a, button, summary):focus-visible { outline: 2px solid #287146; outline-offset: 2px; }
#af-footer .contact :is(a, button):focus-visible { outline-color: #c6e85d; }
#af-home-preview .float-layer.footer-in-view .floating { visibility: hidden; pointer-events: none; }
@container afPage (max-width: 850px) {
  #af-footer .partner-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #af-footer .partner-logos a:first-child { grid-column: span 2; }
  #af-footer .partner-logos a { min-height: 60px; }
}
@container afPage (max-width: 740px) {
  #af-footer .foot-columns { grid-template-columns: 1fr; gap: 22px; }
}
@container afPage (max-width: 480px) {
  #af-footer .footer-mast { padding-block: 11px; gap: 4px; }
  #af-footer .footer-brand img { width: 120px; }
  #af-footer .socialbar { gap: 1px; }
  #af-footer .socialbar :is(a, .pending) { width: 30px; height: 42px; }
  #af-footer .foot-columns { padding-block: 18px; }
  #af-footer .partner-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #af-footer .partner-logos a:first-child { grid-column: 1 / -1; }
  #af-footer .partner-logos a { min-height: 56px; padding: 6px; }
  #af-footer .partner-logos img { height: 26px; }
  #af-footer .contact { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 0 10px; }
  #af-footer .contact > :nth-child(even) { justify-self: end; }
  #af-home-preview #af-footer .totop { margin: 0; }
}

