/* ==========================================================================
   Share buttons (includes/share.blade.php) and social brand colours
   Every page. Brand colours are the networks' own; X is black (white in
   dark mode, per X's own guidance for dark backgrounds).
   ========================================================================== */

.shx { --x: #000000; }
[data-mode="dark"] .shx { --x: #ffffff; }

.shx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shx-list li { margin: 0; padding: 0; }
.shx-list li[hidden] { display: none; }

.shx-btn {
  --brand: var(--d-blue);
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--d-line); border-radius: 10px; background: var(--d-card);
  color: var(--brand); font-size: 16px; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.shx-btn svg { width: 15px; height: 15px; fill: currentColor; }
.shx-btn:hover, .shx-btn:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); text-decoration: none; }
.shx-btn:focus-visible { outline: none; box-shadow: var(--d-focus); }

.shx-btn--linkedin { --brand: #0a66c2; }
.shx-btn--x        { --brand: var(--x); }
.shx-btn--facebook { --brand: #1877f2; }
.shx-btn--whatsapp { --brand: #25d366; }
.shx-btn--email,
.shx-btn--copy,
.shx-btn--native   { --brand: var(--d-blue); }
.shx-btn--whatsapp:hover, .shx-btn--whatsapp:focus-visible { color: #fff; }
[data-mode="dark"] .shx-btn--x:hover, [data-mode="dark"] .shx-btn--x:focus-visible { color: #000; }
.shx-btn--copy.is-done { --brand: #1e7d46; background: var(--brand); border-color: var(--brand); color: #fff; }
.shx-btn--copy.is-done i::before { content: "\f00c"; }   /* tick while "Link copied" shows */

.shx-status { margin: 8px 0 0; min-height: 1em; font-size: 12.5px; color: var(--d-muted); }
.shx-status:empty { margin: 0; min-height: 0; }

@media (prefers-reduced-motion: reduce) { .shx-btn { transition: none; } .shx-btn:hover { transform: none; } }

/* --- X brand colour in the theme's follow icons (page sidebars) ---------- */
/* The theme colours these with the old Twitter blue; X is black. */
.social-icon-style-1 a.x, .social-icon-style-2 a.x, .social-icon-style-3 a.x { background-color: #000; }
.social-icon-style-1 a.x:hover, .social-icon-style-2 a.x:hover, .social-icon-style-3 a.x:hover { background-color: #2b2b2b; }
[data-mode="dark"] .social-icon-style-1 a.x { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }

/* Header top bar: with all five accounts the social icons no longer fit beside
   search, display, accessibility, staff login and language on a phone. They
   are in the footer on every page, so the top bar drops them (and the
   separator before them) below 576px. */
@media (max-width: 575px) {
  .top-header-area .icon-social-very-small,
  .top-header-area .separator-line-verticle-extra-small:has(+ .icon-social-very-small) { display: none !important; }
}
