/* =====================================================================
   Share row + Google Preferred Sources
   ===================================================================== */

.crh-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin: 26px 0 34px;
  padding: 16px 0;
  border-top: 1px solid var(--crh-line);
  border-bottom: 1px solid var(--crh-line);
}

.crh-share__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--crh-grey);
}

.crh-share__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crh-share__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--crh-line);
  border-radius: 50%;
  background: #fff;
  color: var(--crh-grey);
  cursor: pointer;
  padding: 0;
  transition: transform .16s ease, background-color .16s ease,
              border-color .16s ease, color .16s ease;
}

.crh-share__btn svg { width: 16px; height: 16px; display: block; }

/* Copy button: clipboard by default, clipboard-with-tick on success.
   Both icons are stacked in the same place so the swap cannot shift the
   button's size or nudge its neighbours. */
.crh-share__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.crh-share__icon--done { display: none; }

.crh-share__btn--link.is-copied .crh-share__icon--idle { display: none; }
.crh-share__btn--link.is-copied .crh-share__icon--done { display: flex; }

/* Hold the success colour while the tick is showing, so the confirmation
   does not vanish the moment the pointer moves away. */
.crh-share__btn--link.is-copied {
  background: var(--crh-orange);
  border-color: transparent;
  color: #fff;
}

/* Each network takes its own colour on hover — recognisable without
   painting five brand colours permanently into a healthcare page. */
.crh-share__btn:hover,
.crh-share__btn:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
}

.crh-share__btn--linkedin:hover,
.crh-share__btn--linkedin:focus-visible { background: #0a66c2; }

.crh-share__btn--x:hover,
.crh-share__btn--x:focus-visible { background: #111; }

.crh-share__btn--facebook:hover,
.crh-share__btn--facebook:focus-visible { background: #1877f2; }

.crh-share__btn--email:hover,
.crh-share__btn--email:focus-visible { background: var(--crh-grey); }

.crh-share__btn--link:hover,
.crh-share__btn--link:focus-visible { background: var(--crh-orange); }

/* Copy confirmation, shown by JS. */
.crh-share__copied {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--crh-heading);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.crh-share__btn--link.is-copied .crh-share__copied {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767.98px) {
  .crh-share { gap: 12px; padding: 14px 0; }
  .crh-share__label { width: 100%; }
  .crh-share__btn { width: 42px; height: 42px; }
  .crh-share__btn svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .crh-share__btn { transition: none; }
  .crh-share__btn:hover { transform: none; }
}
