/* Cross-Links Section — Related Procedures & Further Reading
   Matches the luxury pill aesthetic from the homepage procedure links.
   Mobile-first with distinct desktop and mobile UX. */

.cross-links {
  padding: 60px 20px;
  background: linear-gradient(180deg, #f8f8f8 0%, #f1f0ee 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cross-links__inner {
  max-width: 820px;
  margin: 0 auto;
}

/* — Heading — */
.cross-links__heading {
  font-family: var(--ff_head, 'Cormorant Garamond', Georgia, serif);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--coal, #2a2a2a);
  margin: 0 0 28px;
  line-height: 1.3;
}

.cross-links__heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--coal, #2a2a2a);
  margin: 14px auto 0;
  opacity: 0.3;
}

/* — Pill Container — */
.cross-links__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* — Pill Link — */
.cross-links__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  color: var(--coal, #2a2a2a);
  text-decoration: none;
  font-family: var(--ff_nav, Raleway, Europa, Arial, sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cross-links__pill:hover,
.cross-links__pill:focus-visible {
  background: var(--coal, #2a2a2a);
  color: #fff;
  border-color: var(--coal, #2a2a2a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 42, 42, 0.18);
  text-decoration: none;
}

.cross-links__pill:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(42, 42, 42, 0.15);
  transition-duration: 0.08s;
}

/* — Sub-heading (Further Reading) — */
.cross-links__subheading {
  font-family: var(--ff_nav, Raleway, Europa, Arial, sans-serif);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--chalice, #a1a1a1);
  margin: 32px 0 16px;
  line-height: 1;
}

/* — Blog Links — */
.cross-links__reads {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.cross-links__read {
  position: relative;
}

.cross-links__read + .cross-links__read::before {
  content: '\00b7';
  position: absolute;
  left: -13px;
  color: var(--silver, #ccc);
  font-size: 18px;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cross-links__read a {
  color: var(--gray, #848484);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  line-height: 2;
}

.cross-links__read a:hover,
.cross-links__read a:focus-visible {
  color: var(--coal, #2a2a2a);
  text-decoration: none;
}

/* ————————————————————————————————————————
   Desktop (769px+)
   Generous spacing, centered elegance
   ———————————————————————————————————————— */
@media (min-width: 769px) {
  .cross-links {
    padding: 70px 40px;
  }

  .cross-links__pills {
    gap: 12px;
  }

  .cross-links__pill {
    padding: 12px 26px;
    font-size: 14px;
  }

  .cross-links__reads {
    gap: 6px 24px;
  }

  .cross-links__read a {
    font-size: 14px;
  }
}

/* ————————————————————————————————————————
   Mobile (<=768px)
   Horizontal scroll strip for pills — distinct UX
   ———————————————————————————————————————— */
@media (max-width: 768px) {
  .cross-links {
    padding: 44px 0 44px;
  }

  .cross-links__inner {
    max-width: 100%;
  }

  .cross-links__heading {
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .cross-links__pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 20px 12px;
    gap: 8px;
    /* Fade edges hint there's more to scroll */
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }

  .cross-links__pills::-webkit-scrollbar {
    display: none;
  }

  .cross-links__pills > li {
    scroll-snap-align: start;
  }

  .cross-links__pill {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 48px; /* Touch target */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  .cross-links__subheading {
    padding: 0 20px;
    margin: 24px 0 12px;
  }

  .cross-links__reads {
    padding: 0 20px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cross-links {
    padding: 36px 0;
  }

  .cross-links__pill {
    padding: 11px 18px;
    font-size: 13px;
  }
}
