/* Shared site footer. Loaded from the footer partial. Matches the previous inline styles and computed layout. */

#rd-preferred-source,
#rd-preferred-source *,
#rd-preferred-source *::before,
#rd-preferred-source *::after,
#site-footer,
#site-footer *,
#site-footer *::before,
#site-footer *::after {
  box-sizing: border-box;
}

section#rd-preferred-source {
  width: 100%;
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 1.25rem;
}

.ftr-top #rd-preferred-source {
  order: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  flex: none;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
}

.ftr-top > :first-child {
  order: 2;
}

.ftr-top .ftr-socials {
  order: 3;
}

.ftr-pref-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rd-radius-lg);
  padding: 1.25rem;
}

#rd-preferred-source .ftr-pref-card {
  width: min(100%, 50rem);
  max-width: 50rem !important;
  margin-inline: auto !important;
}

#rd-preferred-source .ftr-pref-card > a.btn {
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  max-width: none;
  white-space: nowrap;
}

.ftr-pref-copy {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.ftr-g {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--paper);
  box-shadow: var(--shadow-ring);
}

.ftr-g img {
  display: block;
  width: 20px;
  height: 20px;
}

#rd-preferred-source h2,
#rd-preferred-source h6 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

#rd-preferred-source p {
  margin: 0.25rem 0 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

#site-footer {
  max-width: 100%;
  overflow-x: clip;
  background: var(--wash);
  color: var(--ink);
}

#site-footer img {
  max-width: 100%;
  height: auto;
}

#site-footer li,
#site-footer a,
#site-footer details,
#site-footer summary {
  min-width: 0;
  max-width: 100%;
}

#site-footer .ftr-contact > p,
#site-footer .ftr-legal > p,
#site-footer .ftr-intro p,
#site-footer .ftr-ask {
  margin: 0;
}

#site-footer a:focus-visible,
#site-footer summary:focus-visible {
  outline: 2px solid var(--tw-theme-anchor-default-color);
  outline-offset: 4px;
  border-radius: var(--radius-focus);
}

#site-footer summary::-webkit-details-marker {
  display: none;
}

.ftr-shell {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.ftr-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem;
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 2rem;
}

.ftr-logo {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}

#site-footer .ftr-logo img {
  display: block;
  width: auto;
  height: 1rem;
  max-width: none;
}

#site-footer .ftr-tag {
  margin: 0.75rem 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.ftr-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ftr-social {
  --ftr-icon: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-ring);
  text-decoration: none;
  transition: background-color 200ms var(--rd-easing-standard), color 200ms var(--rd-easing-standard);
}

.ftr-social::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--ftr-icon) center / contain no-repeat;
  mask: var(--ftr-icon) center / contain no-repeat;
}

.ftr-social:hover {
  background: var(--tw-theme-primary-color);
  color: var(--paper);
}

.ftr-social-fb { --ftr-icon: url("../icons/footer/facebook.svg"); }
.ftr-social-x { --ftr-icon: url("../icons/footer/x.svg"); }
.ftr-social-in { --ftr-icon: url("../icons/footer/linkedin.svg"); }
.ftr-social-ig { --ftr-icon: url("../icons/footer/instagram.svg"); }

.ftr-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
  row-gap: 0;
  padding: 0.5rem 0 1.5rem;
}

.ftr-nav > details {
  border-bottom: 1px solid var(--color-border-strong);
}

.ftr-nav > details:last-child {
  border-bottom: 0;
}

.ftr-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  margin: 0;
  padding: 1.125rem 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: default;
}

.ftr-summary h6 {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.ftr-intro {
  padding-bottom: 0.5rem;
}

.ftr-intro p,
.ftr-muted {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.ftr-ext-wrap {
  margin-top: 0.375rem;
}

.ftr-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--tw-theme-anchor-default-color);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.ftr-ext svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 300ms cubic-bezier(0, 0, 0.2, 1);
}

.ftr-ext:hover svg {
  transform: translate(0.125rem, -0.125rem);
}

.ftr-nav > details > ul {
  margin: 0.25rem 0 0;
  padding: 0 0 1.25rem;
  list-style: none;
}

.ftr-suite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.75rem;
}

.ftr-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ftr-link {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 200ms var(--rd-easing-standard);
}

.ftr-link:hover {
  color: var(--ink);
}

.ftr-certs {
  border-top: 1px solid var(--color-border-strong);
  padding: 2.25rem 0 2.5rem;
}

#site-footer .ftr-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ftr-kicker span {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
}

.ftr-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ftr-partner {
  display: block;
  text-decoration: none;
}

.ftr-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  padding: 0 1rem;
  border-radius: var(--rd-radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-badge);
  transition: transform 300ms cubic-bezier(0, 0, 0.2, 1);
}

.ftr-badge img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

a.ftr-partner:hover .ftr-badge {
  transform: translateY(-2px);
}

.ftr-note {
  display: block;
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
  transition: color 200ms var(--rd-easing-standard);
}

a.ftr-partner:hover .ftr-note {
  color: var(--ink);
}

.ftr-contact,
.ftr-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border-strong);
  color: var(--ink-2);
}

.ftr-contact {
  padding: 1.25rem 0;
  font-size: 12px;
  line-height: 1.6;
}

.ftr-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  max-width: 100%;
}

.ftr-mail {
  color: var(--tw-theme-anchor-default-color);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.ftr-mail:hover {
  text-decoration: underline;
}

.ftr-tel {
  color: var(--color-text-secondary);
  text-decoration: none;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.ftr-tel:hover,
.ftr-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.ftr-dot {
  color: var(--ink-3);
}

.ftr-legal {
  padding-top: 1rem;
  font-size: 11px;
  line-height: 1.5;
}

.ftr-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.ftr-legal a {
  color: var(--color-text-secondary);
  text-decoration: none;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .ftr-pref-card {
    flex-direction: row;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .ftr-partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  section#rd-preferred-source {
    padding: 2rem;
  }

  .ftr-top {
    align-items: stretch;
  }

  .ftr-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 2rem;
    padding: 2.25rem 0 2.5rem;
  }

  .ftr-nav > details {
    border-bottom: 0;
  }

  .ftr-nav > details:first-child {
    grid-column: span 2;
  }

  .ftr-summary {
    min-height: 0;
    padding: 0;
    pointer-events: none;
  }

  .ftr-intro {
    padding-top: 1rem;
    padding-bottom: 0;
  }

  #site-footer .ftr-nav > details > .ftr-list {
    padding: 1rem 0 0;
  }

  #site-footer .ftr-suite {
    padding: 0;
  }

  .ftr-link {
    display: inline;
    padding: 0;
  }

  .ftr-legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .ftr-top {
    display: grid;
    grid-template-columns: 1fr min(50rem, calc(100% - 40rem)) 1fr;
    align-items: center;
    column-gap: 2rem;
    row-gap: 1.5rem;
  }

  .ftr-top > :first-child {
    order: 1;
    justify-self: start;
  }

  .ftr-top #rd-preferred-source {
    order: 2;
    justify-self: center;
    width: 100%;
  }

  .ftr-top .ftr-socials {
    order: 3;
    justify-self: end;
  }

  .ftr-nav {
    column-gap: 3rem;
  }

  .ftr-contact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1280px) {
  .ftr-partners {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
