/* «Download» and «Share» icons of the aqqqulaq.com dashboards (share.js), like Our World in Data: two quiet icons, a short menu
   next to them that never leaves the screen, the embed code in a panel. Uses the site's tokens with fallbacks:
   --ink, --muted, --line, --accent, --surface/--solid. Prices and the parliament carry the same rules in their own CSS. */
.shareBox { position: relative; }
.shareBar { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-height: 44px; }
.shareAnchor { position: relative; }
.shareIcon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px;
  background: none; color: var(--muted, #9baac2); cursor: pointer; padding: 0; }
.shareIcon[aria-expanded="true"] { background: var(--control, rgba(127,127,127,.14)); border-color: var(--line, rgba(127,127,127,.3)); color: var(--ink, inherit); }
@media (hover: hover) { .shareIcon:hover { color: var(--ink, inherit); background: var(--control, rgba(127,127,127,.14)); } }
.shareMenu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 60; min-width: 230px; max-width: min(300px, calc(100vw - 40px)); padding: 6px;
  background: var(--solid, var(--surface, #0f1828)); border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.shareBox.down .shareMenu { bottom: auto; top: calc(100% + 6px); }
.shareMenuHead { margin: 4px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted, #9baac2); }
.shareItem { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none;
  color: var(--ink, inherit); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.shareItem svg { flex: none; color: var(--muted, #9baac2); }
@media (hover: hover) { .shareItem:hover { background: var(--control, rgba(127,127,127,.14)); } }
.shareItem:focus-visible, .shareIcon:focus-visible { outline: 2px solid var(--accent, #81bceb); outline-offset: 1px; }
.shareStatus { position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 61; padding: 5px 10px; border-radius: 10px; background: var(--solid, var(--surface, #0f1828));
  border: 1px solid var(--line, rgba(127,127,127,.3)); font-size: 13px; color: var(--ink, inherit); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.shareStatus.on { opacity: 1; }
.shareBox.down .shareStatus { bottom: auto; top: calc(100% + 4px); }
.shareEmbed { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 14px; background: var(--solid, var(--surface, #0f1828));
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(520px, calc(100vw - 40px)); }
.shareEmbedHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.shareHint { margin: 0; font-size: 13px; color: var(--muted, #9baac2); }
.shareClose { flex: none; width: 44px; height: 44px; margin: -10px -10px 0 0; border: 0; background: none; color: var(--muted, #9baac2); font-size: 22px; cursor: pointer; }
.shareEmbed textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--line, rgba(127,127,127,.3)); background: transparent; color: var(--ink, inherit);
  box-sizing: border-box; border-radius: 10px; padding: 10px 12px; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.shareTools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.shareCopy { min-height: 44px; padding: 0 16px; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 12px; background: var(--selected, transparent);
  color: var(--selected-ink, var(--ink, inherit)); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shareManual { width: 100%; margin-top: 8px; min-height: 44px; font-size: 16px; box-sizing: border-box; }
@media (pointer: coarse) { .shareItem.wide { display: none; } }
