/* Public Share Button v1.1 */
.dh-share-slot {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  z-index: 12;
}

.dh-share-slot--report {
  position: absolute;
  top: 24px;
  right: 26px;
}

.example-top {
  position: relative;
}

.example-top .dh-share-slot--report + .badge-row,
.example-top .badge-row:has(+ .dh-share-slot--report) {
  padding-right: 8.5rem;
}

.dh-share-slot--content,
.dh-share-slot--index {
  margin: 0 0 1rem;
}

.dh-share-slot--glossary-term {
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: .35rem;
}

.glossary-term-hero--enhanced {
  position: relative;
}

.content-show-enhanced .dh-share-slot--content {
  float: right;
  margin-left: 1rem;
}

.dh-public-share {
  position: relative;
  color: var(--text, #1d1d1f);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dh-public-share__button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(229,224,216,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #1d1d1f;
  padding: .62rem .9rem;
  font: inherit;
  font-weight: 760;
  box-shadow: 0 12px 28px rgba(29,29,31,.08);
  cursor: pointer;
}

.dh-public-share__button:hover,
.dh-public-share__button[aria-expanded="true"] {
  border-color: rgba(47,111,100,.38);
  color: #22534b;
  transform: translateY(-1px);
}

.dh-public-share__button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dh-public-share__popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(430px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--border, #e5e0d8);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 64px rgba(29,29,31,.14);
  z-index: 60;
}

.dh-public-share__popover::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 32px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--border, #e5e0d8);
  border-top: 1px solid var(--border, #e5e0d8);
}

.dh-public-share__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.dh-public-share__head strong {
  font-size: 1rem;
  letter-spacing: -.02em;
}

.dh-public-share__head button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border, #e5e0d8);
  border-radius: 50%;
  background: #fff;
  color: var(--muted, #68707d);
  cursor: pointer;
}

.dh-public-share__options {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.dh-public-share__option {
  min-width: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border, #e5e0d8);
  border-radius: 12px;
  background: #fbfaf6;
  color: #1d1d1f;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.dh-public-share__option:first-child {
  background: #e9f2ef;
  border-color: #cfddd8;
  color: #22534b;
}

.dh-public-share__option:hover,
.dh-public-share__option:focus-visible {
  outline: none;
  border-color: rgba(47,111,100,.45);
  color: #22534b;
  transform: translateY(-1px);
}

.dh-public-share__option i,
.dh-public-share__option svg {
  width: 22px;
  height: 22px;
  display: block;
  font-size: 1.25rem;
}

.dh-public-share__preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--border, #e5e0d8);
  border-radius: 15px;
  background: #fff;
}

.dh-public-share__preview-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e5e0;
  border-radius: 14px;
  background: #e9f2ef;
  color: #22534b;
}

.dh-public-share__preview strong,
.dh-public-share__preview em,
.dh-public-share__preview small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-public-share__preview strong {
  margin: 0 0 4px;
  font-size: .95rem;
  line-height: 1.18;
  letter-spacing: -.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dh-public-share__preview em {
  color: var(--muted, #68707d);
  font-style: normal;
  font-size: .82rem;
  line-height: 1.33;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dh-public-share__preview small {
  margin-top: 7px;
  color: #22534b;
  font-weight: 720;
  white-space: nowrap;
}

.dh-public-share__note {
  margin: 12px 0 0;
  color: var(--muted, #68707d);
  font-size: .8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dh-public-share__toast {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  padding: .5rem .7rem;
  border-radius: 999px;
  background: #22534b;
  color: #fff;
  font-size: .82rem;
  font-weight: 760;
  box-shadow: 0 14px 32px rgba(29,29,31,.18);
}

.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;
}

@media (max-width: 760px) {
  .dh-share-slot--report {
    position: static;
    justify-content: flex-start;
    margin: .75rem 0 1rem;
  }

  .example-top .dh-share-slot--report + .badge-row,
  .example-top .badge-row:has(+ .dh-share-slot--report) {
    padding-right: 0;
  }

  .content-show-enhanced .dh-share-slot--content {
    float: none;
    justify-content: flex-start;
    margin-left: 0;
  }

  .dh-public-share__popover {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 32px));
  }

  .dh-public-share__popover::before {
    left: 26px;
    right: auto;
  }

  .dh-public-share__options {
    grid-template-columns: repeat(4, 44px);
  }
}
