/* ===== Cosmos link component system: approved consistency pass ===== */
:root{
  --link-focus: #34d9d0;
  --link-dark: #102a43;
  --link-hover: #087f8c;
  --link-light: #f5fbfc;
}

/* Shared focus treatment */
a:focus-visible,
button:focus-visible{
  outline: 3px solid var(--link-focus) !important;
  outline-offset: 3px !important;
  border-radius: 2px;
}

/* Primary and secondary buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: var(--strong);
  cursor: pointer;
  font-weight: 750 !important;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease !important;
}
.btn-primary{
  background: var(--navy, #102a43) !important;
  border-color: var(--navy, #102a43) !important;
  color: #fff !important;
}
.btn-primary:hover{
  background: var(--cyan, #34d9d0) !important;
  border-color: var(--cyan, #34d9d0) !important;
  color: var(--navy, #102a43) !important;
  transform: translateY(-1px);
}
.btn-secondary{
  background: transparent !important;
  border-color: var(--navy, #102a43) !important;
  color: var(--navy, #102a43) !important;
}
.btn-secondary:hover{
  background: rgba(52,217,208,.10) !important;
  border-color: var(--cyan, #34d9d0) !important;
  color: var(--navy, #102a43) !important;
  transform: translateY(-1px);
}

/* Standalone text links */
.text-link{
  display: inline-flex !important;
  align-items: center;
  gap: .42rem !important;
  width: fit-content;
  color: var(--navy, #102a43) !important;
  font-weight: 700 !important;
  line-height: 1.35;
  text-decoration: none !important;
  border-bottom: 2px solid var(--cyan, #34d9d0) !important;
  padding-bottom: .12rem;
  transition: color .18s ease, border-color .18s ease !important;
}
.text-link:hover,
.text-link:focus-visible{
  color: var(--link-hover) !important;
  border-bottom-color: currentColor !important;
}
.text-link-arrow{
  display: inline-block;
  flex: 0 0 auto;
  transition: transform .18s ease;
}
.text-link:hover .text-link-arrow,
.text-link:focus-visible .text-link-arrow{
  transform: translateX(4px);
}
.text-link-down:hover .text-link-arrow,
.text-link-down:focus-visible .text-link-arrow{
  transform: translateY(3px);
}

/* Plain links inside editorial/legal content */
.prose a:not(.btn):not(.text-link):not(.card-link),
.legal-body a:not(.btn):not(.text-link),
.editorial-copy a:not(.btn):not(.text-link),
.marketing-consent a,
.help a,
.breadcrumbs a{
  color: var(--navy, #102a43) !important;
  font-weight: 600;
  text-decoration-line: underline !important;
  text-decoration-color: var(--cyan, #34d9d0) !important;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.prose a:not(.btn):not(.text-link):not(.card-link):hover,
.legal-body a:not(.btn):not(.text-link):hover,
.editorial-copy a:not(.btn):not(.text-link):hover,
.marketing-consent a:hover,
.help a:hover,
.breadcrumbs a:hover{
  color: var(--link-hover) !important;
  text-decoration-color: currentColor !important;
}

/* Full-card links */
.card-link{
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.card-link:hover{
  transform: translateY(-2px) !important;
}
.card-link:focus-visible{
  outline: 3px solid var(--link-focus) !important;
  outline-offset: 4px !important;
  box-shadow: none !important;
}
.card-link .text-link,
.card-link .card-cta{
  border-bottom: 0 !important;
  text-decoration: none !important;
}
.card-link:hover .text-link-arrow,
.card-link:focus-visible .text-link-arrow{
  transform: translateX(4px);
}

/* Dark-section link behavior */
.dark-section .text-link,
.transition-band .text-link,
.section-dark .text-link,
footer .text-link{
  color: var(--link-light) !important;
  border-bottom-color: var(--cyan, #34d9d0) !important;
}
.dark-section .text-link:hover,
.transition-band .text-link:hover,
.section-dark .text-link:hover,
footer .text-link:hover{
  color: #fff !important;
  border-bottom-color: #fff !important;
}
.dark-section a:focus-visible,
.transition-band a:focus-visible,
.section-dark a:focus-visible,
footer a:focus-visible{
  outline-color: var(--cyan, #34d9d0) !important;
}

/* Footer navigation and legal links */
footer .footer-link{
  display: block;
  width: fit-content;
  color: rgba(255,255,255,.76) !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
footer .footer-link:hover{
  color: #fff !important;
  border-bottom-color: var(--cyan, #34d9d0);
}
footer .footer-legal-link{
  display: inline !important;
  color: rgba(255,255,255,.76) !important;
  font-weight: 600;
  text-decoration-line: underline !important;
  text-decoration-color: rgba(52,217,208,.75) !important;
  text-underline-offset: .2em;
}
footer .footer-legal-link:hover{
  color: #fff !important;
  text-decoration-color: #fff !important;
}

/* External links */
.external-link .external-link-icon{
  display: inline-block;
  margin-left: .22em;
  transition: transform .18s ease;
}
.external-link:hover .external-link-icon,
.external-link:focus-visible .external-link-icon{
  transform: translate(2px,-2px);
}

/* Keep anchored headings clear of the sticky header */
[id]{ scroll-margin-top: 7rem; }

@media (prefers-reduced-motion: reduce){
  .btn,.text-link,.text-link-arrow,.card-link,.external-link-icon{transition:none !important;}
  .btn:hover,.card-link:hover,.text-link:hover .text-link-arrow,.external-link:hover .external-link-icon{transform:none !important;}
}
