/* Internal linking — contextual links, end-of-article related block,
   and the FAQ page's reverse "Related guides" block. */

/* Contextual in-body links: underlined, accent on hover (distinct from CTAs). */
.te-article-body a.te-ilink,
.te-faq__a a.te-ilink {
  color: var(--te-ink-strong, var(--te-ink));
  text-decoration: underline;
  text-decoration-color: var(--te-accent-tint-border, var(--te-border));
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: var(--te-hover-transition, color .15s ease);
}
.te-article-body a.te-ilink:hover,
.te-faq__a a.te-ilink:hover {
  color: var(--te-accent);
  text-decoration-color: currentColor;
}

/* ---- End-of-article related block ---- */
.te-related {
  border-top: 1px solid var(--te-divider, var(--te-border));
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(36px, 4.5vw, 56px);
}
.te-related__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--te-gutter, 24px);
  display: grid;
  gap: clamp(36px, 5vw, 60px);
}
.te-related__h {
  font-family: var(--te-font-display);
  font-weight: 700;
  font-size: var(--te-fs-24, 24px);
  line-height: 1.2;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.te-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 30px 26px;
}

/* Related questions list */
.te-related__faqs { max-width: 820px; }
.te-related__faqlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--te-border);
}
.te-related__faqlist li { border-bottom: 1px solid var(--te-border); }
.te-related__faqlist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  color: var(--te-ink);
  font-size: var(--te-fs-17, 17px);
  line-height: 1.4;
  transition: var(--te-hover-transition, color .15s ease);
}
.te-related__faqlist a:hover { color: var(--te-accent); }
.te-related__q { font-weight: 500; }
.te-related__arrow {
  flex: none;
  color: var(--te-label);
  font-size: 20px;
  transition: transform .15s ease, color .15s ease;
}
.te-related__faqlist a:hover .te-related__arrow {
  transform: translateX(3px);
  color: var(--te-accent);
}
.te-related__all {
  display: inline-block;
  margin-top: 18px;
  color: var(--te-accent);
  font-weight: 600;
  font-size: var(--te-fs-15, 15px);
}
.te-related__all:hover { color: var(--te-accent-hover, var(--te-accent)); }

/* ---- FAQ page: reverse "Related guides" ---- */
.te-faq-guides {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--te-divider, var(--te-border));
}
.te-faq-guides__h {
  font-family: var(--te-font-display);
  font-weight: 700;
  font-size: var(--te-fs-22, 22px);
  line-height: 1.2;
  margin: 0 0 22px;
}
.te-faq-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 30px 26px;
}

/* Keep deep-linked FAQ answers clear of the sticky header when scrolled to. */
.te-faq__item { scroll-margin-top: 96px; }
