/* She floating share (2026-11-20)
 * A single quiet control above PAGE TOP, opening a bottom sheet on phones
 * and a small dialog on desktop. Matches the footer bar / PAGE TOP styling.
 */

.she-share-float {
  position: fixed;
  right: 8px;
  bottom: 117px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #efe0e6;
  border-radius: 50%;
  background: rgba(255, 251, 252, .96);
  color: #bd8fa6;
  box-shadow: 0 6px 18px rgba(120, 90, 105, .12);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .18s ease, border-color .18s ease,
    color .18s ease, transform .18s ease;
}

.she-share-float svg {
  display: block;
  width: 20px;
  height: 20px;
}

.she-share-float:hover {
  border-color: #e4c9d6;
  background: #fdf3f7;
  color: #a96f8d;
}

.she-share-float:active { transform: scale(.96); }

.she-share-float:focus-visible {
  outline: 2px solid #c18aa8;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .she-share-float { bottom: 60px; }
}

/* The floating control replaces the in-article panel once JS is ready. */
.she-share-ready #single_share_bottom.she-share-panel { display: none !important; }

/* -------------------------------------------------------------------------
 * Sheet
 * ---------------------------------------------------------------------- */
.she-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.she-share-sheet[hidden] { display: none; }

.she-share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59, 40, 51, .34);
  opacity: 0;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity .2s ease;
}

.she-share-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: #fffbfc;
  box-shadow: 0 -14px 44px rgba(70, 50, 62, .2);
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.2, .7, .3, 1);
}

.she-share-sheet.is-open .she-share-sheet__backdrop { opacity: 1; }
.she-share-sheet.is-open .she-share-sheet__panel { transform: none; }

.she-share-sheet__handle {
  display: block;
  width: 34px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background: #ecdde4;
}

.she-share-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.she-share-sheet__title {
  margin: 0;
  color: #594c54;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
}

.she-share-sheet__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -10px -10px -10px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #9c8b93;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.she-share-sheet__close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.she-share-sheet__close:hover {
  background: #f7edf2;
  color: #8a536d;
}

.she-share-sheet__close:focus-visible {
  outline: 2px solid #c18aa8;
  outline-offset: 2px;
}

.she-share-sheet__list {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.she-share-sheet__list > li {
  flex: 1 1 0;
  min-width: 0;
}

.she-share-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #6f636a;
  font: inherit;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.she-share-target__label { white-space: nowrap; }

.she-share-target__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  border: 1px solid #eee4e8;
  border-radius: 50%;
  background: #fff;
  color: #6f636a;
  transition: background-color .18s ease, border-color .18s ease,
    color .18s ease, transform .18s ease;
}

.she-share-target svg {
  display: block;
  width: 19px;
  height: 19px;
}

.she-share-target:hover .she-share-target__icon,
.she-share-target:focus-visible .she-share-target__icon {
  border-color: #e3c8d5;
  background: #fdf5f8;
  color: #a96f8d;
  transform: translateY(-1px);
}

.she-share-target:focus-visible { outline: 0; }

.she-share-target:focus-visible .she-share-target__icon {
  outline: 2px solid #c18aa8;
  outline-offset: 2px;
}

.she-share-sheet__more {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #f1e6eb;
  background: none;
  color: #a96f8d;
  font: inherit;
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.she-share-sheet__more[hidden] { display: none; }

.she-share-sheet__more:hover { color: #8a536d; }

.she-share-sheet__more:focus-visible {
  outline: 2px solid #c18aa8;
  outline-offset: 2px;
}

.she-share-sheet__note {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #9a8a92;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 768px) {
  .she-share-sheet {
    align-items: center;
    padding: 24px;
  }

  .she-share-sheet__panel {
    max-width: 380px;
    padding: 22px;
    border-radius: 16px;
    transform: translateY(10px) scale(.985);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
  }

  .she-share-sheet.is-open .she-share-sheet__panel {
    transform: none;
    opacity: 1;
  }

  .she-share-sheet__handle { display: none; }
  .she-share-sheet__title { font-size: 13px; }
}

@media (max-width: 359px) {
  .she-share-sheet__list { gap: 6px; }
  .she-share-target { font-size: 9.5px; }
  .she-share-target__prefix { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .she-share-float,
  .she-share-sheet__backdrop,
  .she-share-sheet__panel,
  .she-share-target__icon,
  .she-share-sheet__close { transition: none; }
}
