/* Maestro Chronicle Studio 1.6 — sharing an entry, in the Chronicle's own voice.
   Quiet until it is wanted: a single line-drawn control at the foot of the
   article, and a small panel that rises over the reading column. */

.chron-share__holder { display: flex; }

.chron-share__open {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid rgba(182, 205, 236, 0.32); border-radius: 999px;
  background: rgba(8, 18, 34, 0.5); color: #cddcf1;
  font: inherit; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.chron-share__open svg { width: 17px; height: 17px; opacity: 0.85; }
.chron-share__open:hover { border-color: rgba(159, 220, 255, 0.6); color: #eaf3ff; background: rgba(18, 38, 66, 0.6); }
.chron-share__open:focus-visible { outline: 2px solid #9fdcff; outline-offset: 3px; }

/* ── The panel ─────────────────────────────────────────────────────── */
.chron-share { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.chron-share[hidden] { display: none; }
.chron-share::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(2, 6, 14, 0.62); backdrop-filter: blur(3px);
}
.chron-share__box {
  position: relative; width: min(420px, 100%);
  padding: 22px 22px 18px;
  border: 1px solid rgba(159, 205, 255, 0.22); border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.97), rgba(6, 14, 27, 0.97));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  color: #e8f1fd;
}
.chron-share__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chron-share__title { margin: 0; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9fdcff; font-weight: 500; }
.chron-share__close {
  display: grid; place-items: center; width: 34px; height: 34px; margin: -6px -6px 0 0;
  border: 0; border-radius: 50%; background: none; color: #9db0c9; cursor: pointer;
}
.chron-share__close svg { width: 18px; height: 18px; }
.chron-share__close:hover { color: #eaf3ff; background: rgba(255, 255, 255, 0.06); }
.chron-share__close:focus-visible { outline: 2px solid #9fdcff; outline-offset: 2px; }

.chron-share__what {
  margin: 10px 0 16px; font-size: 0.98rem; line-height: 1.4; color: #cddcf1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.chron-share__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chron-share__go {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 46px; padding: 10px 14px;
  border: 1px solid transparent; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); color: #e8f1fd;
  font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.chron-share__go:hover { background: rgba(127, 208, 255, 0.12); border-color: rgba(159, 220, 255, 0.4); }
.chron-share__go:focus-visible { outline: 2px solid #9fdcff; outline-offset: 2px; }
.chron-share__icon { display: grid; place-items: center; width: 22px; height: 22px; color: #9fdcff; flex: none; }
.chron-share__icon svg { width: 18px; height: 18px; }

.chron-share__said { margin: 12px 0 0; min-height: 1.2em; font-size: 0.86rem; color: #8ee6bb; }
.chron-share__note { margin: 6px 0 0; font-size: 0.76rem; line-height: 1.45; color: #8496ae; }

@media (max-width: 520px) {
  .chron-share { padding: 0; place-items: end center; }
  .chron-share__box { width: 100%; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .chron-share__go { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .chron-share__open, .chron-share__go { transition: none; }
}
