/* D-309 (owner 11-19, switch ui.listen_share): Listen + Share on story pages — neutral outline pills (not gold, not teal),
   icon + word; desktop at the right end of the meta line, phones their own row above "The Brief"; mirrored in Arabic.
   Loaded only when the switch is ON. */
.stools { display: inline-flex; align-items: center; gap: 8px; }
.stools-d { margin-inline-start: auto; }
.stool { padding: 6px 13px; font-size: 12.5px; cursor: pointer; color: var(--dim); }
.stool:hover, .stool:focus-visible { color: var(--text); border-color: var(--text); }
.stool[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
.stool .sti { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stool .sti path:first-child { fill: currentColor; stroke: none; }
.stool[data-share] .sti path:first-child { fill: none; stroke: currentColor; }
.stool[data-share] .sti circle { fill: none; }
[dir="rtl"] .stool .sti { transform: scaleX(-1); }
.stools-row { display: none; }
@media (max-width: 1023px) {
  .stools-row { display: flex; margin-block: 0 14px; }
  .stools-row .stools { flex-wrap: wrap; }
}

/* the Share window: a small centred box on computers, a sheet from the bottom on phones */
.sharedlg { border: 1px solid var(--line); border-radius: var(--r-l, 14px); padding: 0; width: min(420px, calc(100vw - 32px));
  background: var(--surface, var(--bg)); color: var(--text); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.sharedlg::backdrop { background: rgba(10,10,10,.45); }
.sharedlg .sd-in { padding: 16px 18px 18px; }
.sharedlg .sd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sharedlg .sd-k { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
[dir="rtl"] .sharedlg .sd-k { letter-spacing: 0; }
.sharedlg .sd-x { border: 0; background: transparent; color: var(--dim); font-size: 1rem; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.sharedlg .sd-x:hover { background: var(--surface-2); color: var(--text); }
.sharedlg .sd-h { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 8px 0 14px; }
.sharedlg .sd-link { display: flex; gap: 8px; align-items: center; margin-block-end: 16px; }
.sharedlg .sd-link input { flex: 1; min-width: 0; font: inherit; font-size: 13px; color: var(--dim); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 12px; direction: ltr; }
.sharedlg .sd-link .pill { padding: 7px 14px; cursor: pointer; }
.sharedlg .sd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.sharedlg .sd-t { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim);
  text-decoration: none; border: 0; background: transparent; padding: 0; cursor: pointer; font-family: inherit; }
.sharedlg .sd-t[hidden], .stool[hidden] { display: none; }
.sharedlg .sd-t:hover .sd-ic, .sharedlg .sd-t:focus-visible .sd-ic { border-color: var(--text); color: var(--text); }
.sharedlg .sd-ic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 15px; color: var(--text); direction: ltr; }
/* owner 11-19: the real brand icons (Simple Icons, CC0), all in ONE site colour */
.sharedlg .sd-ic svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 620px) {
  .sharedlg[open] { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; border-inline: 0; border-block-end: 0;
    padding-bottom: env(safe-area-inset-bottom); animation: sd-up .18s ease-out; }
  @keyframes sd-up { from { transform: translateY(30%); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* the Listening bar: bottom of the screen; on phones just above the gold bar (.cta-dock) */
.lbar { position: fixed; z-index: 56; inset-inline: 0; margin-inline: auto; bottom: 18px; width: max-content; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); box-shadow: 0 8px 26px rgba(0,0,0,.18); font-size: 13px; }
[dir="rtl"] .lbar { padding: 6px 14px 6px 8px; }
.lbar[hidden] { display: none; }
.lbar .lb-k { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); }
.lbar .lb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); animation: lb-pulse 1.4s ease-in-out infinite; }
@keyframes lb-pulse { 50% { opacity: .3; } }
.lbar .pill { padding: 5px 12px; font-size: 12px; cursor: pointer; }
@media (max-width: 1023px) {
  body.story-detail .lbar { bottom: calc(86px + env(safe-area-inset-bottom)); }   /* just above the gold bar */
}
