/* Share button (features.shareButton) — loaded only when the flag is on, so style.css and every
   page built without the flag stay byte-identical. Everything is drawn from style.css's tokens, so
   light and dark need no rules of their own. */

/* The nav button: the theme toggle's height, border and surface, as a labelled pill beside it. */
.share-btn { font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1;
  height: 40px; padding: 0 16px 0 13px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--surface); color: inherit; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
/* The button is in the HTML hidden and share.js shows it: without the script it would do nothing. */
.share-btn[hidden] { display: none; }
.share-btn:hover { border-color: var(--clover); }
.share-btn svg { width: 16px; height: 16px; flex: none; }
.share-btn.done { border-color: var(--clover); color: var(--clover-deep); }
/* Phones. The brand, this and the theme toggle share one 68px row, and at 360px wide that leaves the
   button about 70px (measured with the wordmark in DejaVu Sans, wider than a phone's own font). So the
   row is tightened on its right, then the button gives up its icon, and on the few screens narrower
   still its label — never a second row. share.js says "Copied" here rather than "Link copied". */
@media (max-width: 480px) {
  .nav .wrap { gap: 8px; padding-right: 16px; }
  .nav .nav-spacer { display: none; }
  .nav .share-btn { margin-left: auto; padding: 0 11px 0 9px; gap: 6px; justify-content: center; }
  .nav .share-btn.done svg { display: none; }
}
@media (max-width: 380px) {
  .nav .wrap { gap: 6px; }
  .nav .share-btn { font-size: 13px; padding: 0 9px; }
  .nav .share-btn svg { display: none; }
  .nav .share-btn.done { font-size: 12px; padding: 0 8px; }
}
@media (max-width: 350px) {
  .nav .wrap { padding: 0 12px 0 16px; }
  .nav .share-btn, .nav .share-btn.done { width: 40px; padding: 0; }
  .nav .share-btn svg, .nav .share-btn.done svg { display: block; }
  .nav .share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav .share-btn.done { background: var(--clover); color: var(--surface); }
}

/* The prompt after a thumbs-up: the feedback card's place, size and manners (style.css .fb). */
.share-card { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: min(330px, calc(100vw - 36px));
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 14px 18px 18px; color: var(--ink);
  opacity: 0; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease; }
.share-card.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .share-card { transition: none; } }
.share-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.share-card-q { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.3; }
.share-card-x { border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1;
  color: var(--ink-soft); padding: 0 0 6px 10px; margin: -4px -4px 0 0; }
.share-card-x:hover { color: var(--ink); }
.share-card .share-btn { margin-top: 12px; }
@media (max-width: 560px) { .share-card { right: 12px; left: 12px; bottom: 12px; width: auto; } }
