/* Northstar footer structure — SourceRx tokens */

.ns-footer {
  --ns-footer-ink: var(--pine, #0E3B36);
  --ns-footer-muted: var(--moss, #3C5C56);
  --ns-footer-faint: #7a8f8a;
  --ns-footer-line: var(--line, #D5E0DC);
  --ns-footer-canvas: #ffffff;
  --ns-footer-accent: var(--coral, #FF7A59);

  background: var(--ns-footer-canvas);
  color: var(--ns-footer-ink);
  border-top: 1px solid var(--ns-footer-line);
  margin-top: 0;
  overflow-x: clip;
}

.ns-footer__wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.ns-footer__top {
  padding-top: clamp(2rem, 6vw, 5.5rem);
  padding-bottom: 0.25rem;
}

.ns-footer__bottom {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.ns-footer__brand {
  max-width: 22rem;
}

.ns-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  color: var(--ns-footer-ink);
  text-decoration: none;
}

.ns-footer__logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
}

.ns-footer__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.ns-footer__logo-name {
  font-family: var(--display, Sora, system-ui, sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.ns-footer__logo-tagline {
  font-family: var(--font, Figtree, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ns-footer-faint);
  line-height: 1.3;
}

.ns-footer__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ns-footer-muted);
}

.ns-footer__accordions {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  border-top: 1px solid var(--ns-footer-line);
}

.ns-footer-acc {
  border-bottom: 1px solid var(--ns-footer-line);
}

.ns-footer-acc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  min-height: 3rem;
  font-family: var(--font, Figtree, system-ui, sans-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ns-footer-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ns-footer-acc__summary::-webkit-details-marker {
  display: none;
}

.ns-footer-acc__chev {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--ns-footer-faint);
  transition: transform 0.2s ease;
}

.ns-footer-acc[open] .ns-footer-acc__chev {
  transform: rotate(180deg);
}

.ns-footer__links {
  list-style: none;
  margin: 0;
  padding: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ns-footer__links a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ns-footer-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ns-footer__links a:hover,
.ns-footer__links a:focus-visible {
  color: var(--ns-footer-ink);
}

.ns-footer__columns {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 1.5rem 2rem;
}

.ns-footer__col-title {
  margin: 0 0 1rem;
  font-family: var(--font, Figtree, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ns-footer-faint);
}

.ns-footer__columns .ns-footer__links {
  padding: 0;
  gap: 0.15rem;
}

.ns-footer__columns .ns-footer__links a {
  padding: 0.35rem 0;
  min-height: 0;
  font-size: 0.875rem;
}

.ns-footer-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ns-footer-line);
  align-items: start;
  justify-items: center;
}

.ns-footer-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
  max-width: 11rem;
  color: inherit;
  text-decoration: none;
}

.ns-footer-trust__item--link:hover .ns-footer-trust__title {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ns-footer-accent);
}

.ns-footer-trust__mark {
  display: block;
  width: 3rem;
  height: 3rem;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--ns-footer-line),
    0 6px 16px rgba(14, 59, 54, 0.05);
}

.ns-footer-trust__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.ns-footer-trust__kicker {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ns-footer-faint);
  line-height: 1.25;
}

.ns-footer-trust__title {
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ns-footer-ink);
}

.ns-footer-trust__sub {
  display: inline;
  font-weight: 500;
  font-size: inherit;
  color: var(--ns-footer-muted);
}

.ns-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ns-footer-line);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ns-footer-faint);
}

.ns-footer-legal__copy {
  display: grid;
  gap: 0.3rem;
}

.ns-footer-legal__copy p {
  margin: 0;
  line-height: 1.45;
}

.ns-footer-legal__address {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  margin: 0;
  font-style: normal;
  color: var(--ns-footer-faint);
}

.ns-footer-legal__address strong {
  font-family: var(--display, Sora, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ns-footer-ink);
  margin-bottom: 0.15rem;
}

.ns-footer-legal__address span {
  font-size: 0.75rem;
  line-height: 1.45;
}

.ns-footer-legal__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  margin-top: 0.35rem;
}

.ns-footer-legal__contact a {
  color: var(--ns-footer-muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.ns-footer-legal__contact a:hover {
  color: var(--ns-footer-ink);
}

@media (max-width: 900px) {
  .ns-footer__wrap {
    width: calc(100% - 1.5rem);
  }

  .ns-footer__top {
    padding-top: 1.75rem;
    display: block;
  }

  .ns-footer__brand {
    max-width: none;
  }

  .ns-footer__desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    max-width: 34ch;
  }

  .ns-footer__accordions {
    display: flex;
    margin-top: 1.25rem;
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .ns-footer__columns {
    display: none !important;
  }

  .ns-footer-acc__summary {
    padding: 0.95rem 0;
    font-size: 0.9375rem;
  }

  .ns-footer__links a {
    padding: 0.4rem 0;
    font-size: 0.875rem;
    min-height: 0;
  }

  .ns-footer-trust {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.85rem 0.4rem !important;
    margin-top: 1.35rem;
    padding-top: 1.35rem;
  }

  .ns-footer-trust__item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: none;
    width: 100%;
    gap: 0.5rem;
  }

  .ns-footer-trust__mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .ns-footer-trust__kicker {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .ns-footer-trust__title {
    font-size: 0.6875rem;
    line-height: 1.25;
  }

  .ns-footer-trust__sub {
    display: block;
    font-size: 0.625rem;
  }

  .ns-footer-legal {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    gap: 0.9rem;
    text-align: center;
    align-items: center;
  }

  .ns-footer-legal__address {
    justify-items: center;
    text-align: center;
  }

  .ns-footer-legal__contact {
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .ns-footer__wrap {
    width: min(72rem, calc(100% - 4rem));
  }

  .ns-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 2.65fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }

  .ns-footer__brand {
    max-width: 26rem;
  }

  .ns-footer__accordions {
    display: none !important;
  }

  .ns-footer__columns {
    display: grid;
  }

  .ns-footer-trust {
    margin-top: 2.5rem;
    padding-top: 2.25rem;
    gap: 1.5rem 2rem;
  }

  .ns-footer-trust__mark {
    width: 4rem;
    height: 4rem;
  }

  .ns-footer-trust__kicker {
    font-size: 0.625rem;
  }

  .ns-footer-trust__title {
    font-size: 0.875rem;
  }

  .ns-footer-legal {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
    text-align: left;
    gap: 1.5rem 2.5rem;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
  }

  .ns-footer-legal__copy {
    text-align: left;
  }

  .ns-footer-legal__address {
    justify-items: end;
    text-align: right;
  }

  .ns-footer-legal__contact {
    justify-content: flex-end;
  }
}

@media (min-width: 1100px) {
  .ns-footer__columns {
    gap: 2rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-footer-acc__chev {
    transition: none;
  }
}
.ns-footer__logo .brand-capsule{width:1.85rem;height:1.85rem}
.ns-footer__logo svg{display:block}
