/* End-of-content actions: Share + Back to top; Share opens popover menu above the Share button. */

.actions-bar {
  box-sizing: border-box;
  width: 100%;
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.actions-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.actions-bar__share-anchor {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.actions-bar__btn {
  box-sizing: border-box;
  font: inherit;
  cursor: pointer;
}

/**
 * Figma Story-Lab Bar (node 269:242): pill height 44px, radius full pill, 1px black stroke,
 * label Inter Tight Regular 14px / 1.4, fill #00274d, white fill, icon+label gap 16px, buttons gap 8px.
 */
.actions-bar__btn--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 9999px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #00274d;
  font-family: var(--muse-font-family-default, Inter, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.actions-bar__btn--pill:hover {
  background: rgba(0, 0, 0, 0.03);
}

.actions-bar__btn--pill:focus-visible {
  outline: 2px solid #00274d;
  outline-offset: 2px;
}

/**
 * JS toggles `hidden` on Back to top; `.actions-bar__btn--pill { display: inline-flex }` wins over the UA
 * [hidden] rule — mirror `.actions-bar__share-menu[hidden]`.
 */
.actions-bar__btn--pill[hidden] {
  display: none !important;
}

.actions-bar__btn-lead {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.actions-bar__btn-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.actions-bar__btn-icon--lg {
  width: 24px;
  height: 24px;
}

.actions-bar__btn-label {
  white-space: nowrap;
}

/** Smaller outlined pills (QR modal) — same language as Share / Back to top, scaled down. */
.actions-bar__btn--pill.actions-bar__btn--pill-sm {
  min-height: 36px;
  padding: 0 20px;
  font-size: 13px;
}

/**
 * Share menu — Figma Story-Lab “Share popup” (node 270:462): w 211px, p 16px, radius 8px,
 * shadow 0 4px 12px rgba(0,0,0,0.08), column gap 12px, row gap 16px, 36px icons, label CiscoSans 14 black.
 */
.actions-bar__share-menu {
  box-sizing: border-box;
  position: absolute;
  right: 0;
  bottom: 100%;
  z-index: 20;
  margin-bottom: 8px;
  width: 211px;
  max-width: calc(100vw - 2rem);
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.actions-bar__share-menu[hidden] {
  display: none !important;
}

/** Narrow screens: menu was right-aligned to the pill and overflowed left; center over the Share button. */
@media (max-width: 500px) {
  .actions-bar__share-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

.actions-bar__share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actions-bar__share-list li {
  margin: 0;
  padding: 0;
}

.actions-bar__share-row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: #000000;
  font-family: var(--muse-font-family-default, Inter, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.actions-bar__share-row:hover,
.actions-bar__share-row:focus-visible {
  outline: none;
  opacity: 0.92;
}

.actions-bar__share-row:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(10, 96, 255, 0.35);
}


.actions-bar__share-row-icon {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions-bar__share-row-icon img {
  display: block;
  max-width: 100%;
  height: auto;
}

.actions-bar__share-row-icon--circle {
  border-radius: 24px;
  background: #ffffff;
}

.actions-bar__share-row-label {
  flex: 1 1 auto;
  min-width: 0;
}

/**
 * QR modal — neutral defaults; microsites theme via e.g. .actions-bar--story-toolbar in actions-bar-theme-*.css.
 */
.article-body__media-lightbox-dialog.actions-bar__sheet--qr {
  width: min(96vw, 420px);
}

.article-body__media-lightbox-dialog.actions-bar__sheet--qr .actions-bar__qr-body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
  text-align: center;
}

.actions-bar__qr-svg-frame {
  box-sizing: border-box;
  width: 300px;
  height: 300px;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions-bar__qr-svg-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

.actions-bar__qr-instruction {
  margin: 0;
  max-width: 254px;
  font-family: var(--muse-font-family-default, Inter, system-ui, sans-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #1b1c1d;
}

.actions-bar__qr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.actions-bar__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: #5c5c6f;
}
