/* Original agency artwork. Scoped to the consumer-resource strip. */
.footer .footer-logos.agency-logos {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: center !important;
  justify-items: stretch !important;
  padding-top: 20px;
}
.footer .agency-logos .govlogo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 88px;
  padding: 12px;
  box-sizing: border-box;
  opacity: 1;
}
.footer .agency-logos .govlogo img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.footer .agency-logos .agency-cfpb,
.footer .agency-logos .agency-ftc {
  background: #fff;
  border-radius: 10px;
  height: 68px;
}
.footer .agency-logos .agency-fdic img { max-width: 152px; }
.footer .agency-logos .agency-ncua { gap: 10px; }
.footer .agency-logos .agency-ncua img { min-width: 0; }
.footer .agency-logos .agency-ncua .agency-seal { width: 54px; height: 54px; flex: 0 0 54px; }
@media (max-width: 800px) {
  .footer .footer-logos.agency-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (max-width: 480px) {
  .footer .agency-logos .govlogo { height: 74px; padding: 8px; }
  .footer .agency-logos .agency-cfpb,
  .footer .agency-logos .agency-ftc { height: 58px; }
  .footer .agency-logos .agency-fdic img { max-width: 122px; }
  .footer .agency-logos .agency-ncua { gap: 6px; padding: 4px; }
  .footer .agency-logos .agency-ncua .agency-seal { width: 36px; height: 36px; flex-basis: 36px; }
}

/* Compact source-routing block: agency mark -> internal source record -> official page. */
.footer .agency-resources {
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer .agency-resources__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 11px;
}
.footer .agency-resources__intro > div > span {
  display: block;
  margin-bottom: 4px;
  color: #e8c86f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.footer .agency-resources__intro p {
  max-width: 760px;
  margin: 0;
  color: #cce1d8;
  font-size: 11px;
  line-height: 1.5;
}
.footer .agency-resources__intro > a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  color: #e8d08b;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.footer .agency-resources .footer-logos.agency-logos {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding-top: 0;
}
.footer .agency-resources .agency-logos .govlogo {
  display: flex;
  height: 67px;
  min-height: 67px;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  color: #d5e8df;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.footer .agency-resources .agency-logos .agency-cfpb,
.footer .agency-resources .agency-logos .agency-ftc {
  height: 67px;
  color: #23483b;
  background: #fff;
}
.footer .agency-resources .agency-logos .govlogo:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 200, 111, .78);
  background-color: rgba(255, 255, 255, .075);
}
.footer .agency-resources .agency-logos .agency-cfpb:hover,
.footer .agency-resources .agency-logos .agency-ftc:hover { background-color: #fffdf7; }
.footer .agency-resources .agency-logos .govlogo:focus-visible,
.footer .agency-resources__intro > a:focus-visible {
  outline: 3px solid #e8c86f;
  outline-offset: 3px;
}
.footer .agency-resources .agency-logos .govlogo > img {
  width: auto;
  max-width: min(88%, 190px);
  height: 30px;
  object-fit: contain;
}
.footer .agency-resources .agency-logos .agency-fdic > img { max-width: 112px; }
.footer .agency-resources .agency-logos .govlogo > span:last-child {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer .agency-resources .agency-ncua__logos {
  display: flex;
  min-width: 0;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.footer .agency-resources .agency-logos .agency-ncua__logos img {
  display: block;
  width: auto;
  max-width: 145px;
  height: 27px;
  object-fit: contain;
}
.footer .agency-resources .agency-logos .agency-ncua__logos .agency-seal {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
}

.source-directory-group--guidance {
  margin: 0 0 34px;
  padding: 25px;
  scroll-margin-top: 100px;
  border: 1px solid rgba(192, 151, 55, .42);
  border-radius: 20px;
  background: linear-gradient(145deg, #fffdf7, #f4faf6);
  box-shadow: 0 12px 30px rgba(5, 57, 43, .06);
}
.source-directory-group--guidance > .eyebrow { color: #8b681d; }
.source-directory-group--guidance > h2 {
  margin: 7px 0 8px;
  color: #073d31;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.source-directory-group--guidance > p {
  max-width: 860px;
  margin: 0 0 20px;
  color: #566f65;
  font-size: 14px;
  line-height: 1.6;
}
.source-directory-list--guidance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-directory-list--guidance .source-directory-item {
  grid-template-columns: 1fr;
  align-content: start;
}
.source-directory-list--guidance .source-directory-item > a {
  width: 100%;
  align-self: end;
  text-align: left;
}

@media (max-width: 800px) {
  .footer .agency-resources__intro { grid-template-columns: 1fr; gap: 5px; }
  .footer .agency-resources .footer-logos.agency-logos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .source-directory-list--guidance { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer .agency-resources { padding-top: 14px; }
  .footer .agency-resources__intro { margin-bottom: 8px; }
  .footer .agency-resources__intro p { font-size: 10px; }
  .footer .agency-resources .footer-logos.agency-logos { gap: 7px !important; }
  .footer .agency-resources .agency-logos .govlogo,
  .footer .agency-resources .agency-logos .agency-cfpb,
  .footer .agency-resources .agency-logos .agency-ftc { height: 60px; min-height: 60px; padding: 7px 6px; }
  .footer .agency-resources .agency-logos .govlogo > img { height: 25px; max-width: 92%; }
  .footer .agency-resources .agency-logos .agency-fdic > img { max-width: 96px; }
  .footer .agency-resources .agency-logos .govlogo > span:last-child { font-size: 7.5px; }
  .footer .agency-resources .agency-ncua__logos { height: 25px; gap: 4px; }
  .footer .agency-resources .agency-logos .agency-ncua__logos img { max-width: 100px; height: 23px; }
  .footer .agency-resources .agency-logos .agency-ncua__logos .agency-seal { width: 24px; height: 24px; flex-basis: 24px; }
  .source-directory-group--guidance { padding: 20px 16px; border-radius: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer .agency-resources .agency-logos .govlogo { transition: none; }
}

/* Logos-only footer strip: compact marks with no visible explanatory copy. */
.footer .agency-resources--logos-only {
  padding-top: 10px;
  padding-bottom: 2px;
}
.footer .agency-resources--logos-only .footer-logos.agency-logos {
  width: min(100%, 760px);
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.footer .agency-resources--logos-only .agency-logos .govlogo,
.footer .agency-resources--logos-only .agency-logos .agency-cfpb,
.footer .agency-resources--logos-only .agency-logos .agency-ftc {
  height: 50px;
  min-height: 50px;
  flex-direction: row;
  gap: 0;
  padding: 7px 10px;
  border-radius: 9px;
}
.footer .agency-resources--logos-only .agency-logos .govlogo > img {
  width: auto;
  max-width: min(88%, 150px);
  height: 27px;
}
.footer .agency-resources--logos-only .agency-logos .agency-fdic > img { max-width: 92px; }
.footer .agency-resources--logos-only .agency-logos .agency-ncua > span.agency-ncua__logos:last-child {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 29px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: visible;
  white-space: normal;
}
.footer .agency-resources--logos-only .agency-logos .agency-ncua__logos img {
  max-width: 112px;
  height: 25px;
}
.footer .agency-resources--logos-only .agency-logos .agency-ncua__logos .agency-seal {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}
@media (max-width: 800px) {
  .footer .agency-resources--logos-only .footer-logos.agency-logos {
    width: min(100%, 370px);
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
}
@media (max-width: 480px) {
  .footer .agency-resources--logos-only { padding-top: 8px; }
  .footer .agency-resources--logos-only .agency-logos .govlogo,
  .footer .agency-resources--logos-only .agency-logos .agency-cfpb,
  .footer .agency-resources--logos-only .agency-logos .agency-ftc {
    height: 46px;
    min-height: 46px;
    padding: 6px 8px;
  }
  .footer .agency-resources--logos-only .agency-logos .govlogo > img { height: 24px; }
  .footer .agency-resources--logos-only .agency-logos .agency-fdic > img { max-width: 82px; }
  .footer .agency-resources--logos-only .agency-logos .agency-ncua > span.agency-ncua__logos:last-child { height: 25px; }
  .footer .agency-resources--logos-only .agency-logos .agency-ncua__logos img { max-width: 115px; height: 22px; }
  .footer .agency-resources--logos-only .agency-logos .agency-ncua__logos .agency-seal { width: 22px; height: 22px; flex-basis: 22px; }
}
