/* HDS Social Prime: reading tools, using the HDS Social Share visual preset. */
.hds-sp-back-to-top {
  position: fixed;
  /* Follow the Notifications bell measurements when the plugin is active. */
  --hds-sp-btt-size: var(--hdsn-bell-size, 52px);
  --hds-sp-btt-right: var(--hdsn-bell-right, 18px);
  right: max(var(--hds-sp-btt-right), env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hds-sp-btt-size);
  height: var(--hds-sp-btt-size);
  min-height: var(--hds-sp-btt-size);
  padding: 0;
  /* Subtle 1px gold rim, visually matched to the HDS Notifications bell. */
  border: 1px solid rgb(191 152 53 / 60%);
  box-sizing: border-box;
  border-radius: 5px;
  background: #000000;
  color: #ffffff;
  box-shadow: 0 3px 12px rgb(0 0 0 / 16%);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .15s ease, transform .15s ease;
}
.hds-sp-back-to-top[hidden] { display: none !important; }
/* Override the theme's global button:hover colors at every interaction stage. */
.hds-sp-back-to-top,
.hds-sp-back-to-top:hover,
.hds-sp-back-to-top:focus,
.hds-sp-back-to-top:active {
  color: #ffffff;
  border-color: rgb(191 152 53 / 60%);
}
.hds-sp-back-to-top svg { display: block; width: 26px; height: 26px; pointer-events: none; }
/* A fixed stroke also protects the icon against external button-color rules. */
.hds-sp-back-to-top svg path { stroke: #ffffff; }
/* Defeat generic button:hover even on touch browsers which retain :hover after tapping. */
.hds-sp-back-to-top:hover { background: #000000; }
@media (hover: hover) and (pointer: fine) {
  .hds-sp-back-to-top:hover { background: #474747; transform: translateY(-1px); }
}
@media (hover: none), (pointer: coarse) {
  /* Touch has no persistent hover state. Show a dark pressed state only while held. */
  .hds-sp-back-to-top:hover,
  .hds-sp-back-to-top:focus { background: #000000; transform: none; }
  .hds-sp-back-to-top:active { background: #474747; }
}
.hds-sp-back-to-top:focus-visible {
  outline: 3px solid #bf9835;
  outline-offset: 3px;
}

/* Standard WordPress oEmbed (Classic Editor and Gutenberg) in article bodies. */
.hds-sp-single-article .entry-content .hds-sp-video-embed,
.hds-sp-single-article .entry-content .wp-block-embed.is-type-video,
.hds-sp-single-article .entry-content .wp-block-embed-youtube,
.hds-sp-single-article .entry-content .wp-block-embed-vimeo {
  display: block;
  max-width: 100%;
  width: 100%;
  margin: 22px auto 26px;
}
.hds-sp-single-article .entry-content .hds-sp-video-embed,
.hds-sp-single-article .entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.hds-sp-single-article .entry-content .wp-block-embed-youtube .wp-block-embed__wrapper,
.hds-sp-single-article .entry-content .wp-block-embed-vimeo .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}
/* Prevent WordPress's aspect-ratio placeholder from doubling the container. */
.hds-sp-single-article .entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper::before { content: none; }
.hds-sp-single-article .entry-content .hds-sp-video-embed iframe,
.hds-sp-single-article .entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe,
.hds-sp-single-article .entry-content .wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.hds-sp-single-article .entry-content .wp-block-embed-vimeo .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  border: 0;
}
/* Native oEmbed iframes without a wrapping figure. */
.hds-sp-single-article .entry-content iframe[src*="youtube.com/embed"],
.hds-sp-single-article .entry-content iframe[src*="youtube-nocookie.com/embed"],
.hds-sp-single-article .entry-content iframe[src*="player.vimeo.com/video"] {
  display: block;
  max-width: 100%;
  border: 0;
  border-radius: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .hds-sp-back-to-top { transition: none; }
}
