/* ==========================================================================
   Social Widgets — card UI for official Facebook, YouTube & Instagram embeds
   --------------------------------------------------------------------------
   Every selector is prefixed with `sw-` so it will not collide with the host
   site. Customise the look by overriding the tokens on `.sw-root`, e.g.

     .sw-root { --sw-radius: 12px; --sw-body-height: 540px; }

   Themes: add data-sw-theme="light" | "dark" | "auto" to the .sw-root element.
   ========================================================================== */

/* ---------- Design tokens ---------- */

.sw-root {
  --sw-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --sw-surface: #ffffff;
  --sw-surface-muted: #f4f6f9;
  --sw-border: #e4e7ec;
  --sw-text: #0f172a;
  --sw-text-muted: #5b6475;
  --sw-skeleton: #e6e9ef;
  --sw-skeleton-shine: #f3f5f8;

  --sw-success: #15803d;
  --sw-success-soft: rgb(21 128 61 / 0.1);
  --sw-warning: #b45309;
  --sw-warning-soft: rgb(180 83 9 / 0.1);
  --sw-danger: #b91c1c;
  --sw-danger-soft: rgb(185 28 28 / 0.1);
  --sw-focus: #2563eb;

  --sw-radius: 20px;
  --sw-radius-inner: 14px;
  --sw-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 32px -18px rgb(15 23 42 / 0.22);
  --sw-shadow-hover: 0 1px 2px rgb(15 23 42 / 0.06), 0 22px 48px -20px rgb(15 23 42 / 0.32);

  --sw-gap: 24px;
  --sw-min-column: 300px;
  --sw-body-height: 600px;

  font-family: var(--sw-font);
  color: var(--sw-text);
}

.sw-root[data-sw-theme="dark"] {
  --sw-surface: #121826;
  --sw-surface-muted: #0b101b;
  --sw-border: #232b3b;
  --sw-text: #e6e9f0;
  --sw-text-muted: #98a2b3;
  --sw-skeleton: #1c2433;
  --sw-skeleton-shine: #263042;
  --sw-success: #4ade80;
  --sw-success-soft: rgb(74 222 128 / 0.12);
  --sw-warning: #fbbf24;
  --sw-warning-soft: rgb(251 191 36 / 0.12);
  --sw-danger: #f87171;
  --sw-danger-soft: rgb(248 113 113 / 0.12);
  --sw-focus: #60a5fa;
  --sw-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -18px rgb(0 0 0 / 0.6);
  --sw-shadow-hover: 0 1px 2px rgb(0 0 0 / 0.3), 0 22px 48px -20px rgb(0 0 0 / 0.75);
}

@media (prefers-color-scheme: dark) {
  .sw-root[data-sw-theme="auto"] {
    --sw-surface: #121826;
    --sw-surface-muted: #0b101b;
    --sw-border: #232b3b;
    --sw-text: #e6e9f0;
    --sw-text-muted: #98a2b3;
    --sw-skeleton: #1c2433;
    --sw-skeleton-shine: #263042;
    --sw-success: #4ade80;
    --sw-success-soft: rgb(74 222 128 / 0.12);
    --sw-warning: #fbbf24;
    --sw-warning-soft: rgb(251 191 36 / 0.12);
    --sw-danger: #f87171;
    --sw-danger-soft: rgb(248 113 113 / 0.12);
    --sw-focus: #60a5fa;
    --sw-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -18px rgb(0 0 0 / 0.6);
    --sw-shadow-hover: 0 1px 2px rgb(0 0 0 / 0.3), 0 22px 48px -20px rgb(0 0 0 / 0.75);
  }
}

/* ---------- Grid ---------- */

.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--sw-min-column)), 1fr));
  gap: var(--sw-gap);
  align-items: stretch;
}

/* ---------- Card ---------- */

.sw-card {
  /* Brand tokens are set per card by social-widgets.js from the provider theme. */
  --sw-brand: #475569;
  --sw-brand-fill: var(--sw-brand);
  --sw-brand-cta: var(--sw-brand);

  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  overflow: hidden;
  font-family: var(--sw-font);
  color: var(--sw-text);
  text-align: left;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.sw-card:hover {
  box-shadow: var(--sw-shadow-hover);
}

.sw-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--sw-brand-fill);
}

.sw-card,
.sw-card :where([class^="sw-"], [class*=" sw-"]) {
  box-sizing: border-box;
}

.sw-card [hidden] {
  display: none !important;
}

/* Header */

.sw-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
}

.sw-card__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sw-brand-fill);
  color: #fff;
  box-shadow: 0 8px 16px -8px var(--sw-brand);
}

.sw-card__badge svg {
  width: 22px;
  height: 22px;
}

.sw-card__meta {
  flex: 1;
  min-width: 0;
}

.sw-card__title {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--sw-text);
}

.sw-card__handle {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sw-text-muted);
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sw-card__handle:hover {
  color: var(--sw-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sw-card__tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

/* Live status pill */

.sw-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sw-surface-muted);
  font-size: 12px;
  font-weight: 600;
  color: var(--sw-text-muted);
  white-space: nowrap;
}

.sw-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sw-card[data-sw-state="loading"] .sw-status {
  color: var(--sw-warning);
  background: var(--sw-warning-soft);
}

.sw-card[data-sw-state="loading"] .sw-status::before {
  animation: sw-blink 1s ease-in-out infinite;
}

.sw-card[data-sw-state="ready"] .sw-status {
  color: var(--sw-success);
  background: var(--sw-success-soft);
}

.sw-card[data-sw-state="ready"] .sw-status::before {
  animation: sw-pulse 2s ease-out infinite;
}

.sw-card[data-sw-state="error"] .sw-status {
  color: var(--sw-danger);
  background: var(--sw-danger-soft);
}

/* Icon button (reload) */

.sw-icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--sw-border);
  border-radius: 9px;
  background: var(--sw-surface);
  color: var(--sw-text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.4s ease;
}

.sw-icon-btn svg {
  width: 15px;
  height: 15px;
}

.sw-icon-btn:hover {
  color: var(--sw-text);
  background: var(--sw-surface-muted);
}

.sw-icon-btn:active svg {
  transform: rotate(90deg);
}

.sw-card[data-sw-state="idle"] .sw-icon-btn,
.sw-card[data-sw-state="consent"] .sw-icon-btn,
.sw-card[data-sw-state="loading"] .sw-icon-btn {
  visibility: hidden;
}

/* Body: embed + skeleton + notice are stacked in the same box */

.sw-card__body {
  position: relative;
  height: var(--sw-body-height);
  margin: 0 16px;
  overflow: hidden;
  border-radius: var(--sw-radius-inner);
  background: var(--sw-surface-muted);
  isolation: isolate;
}

.sw-card__embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.sw-card__embed--scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sw-card[data-sw-state="ready"] .sw-card__embed {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

/* Skeleton loader */

.sw-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.sw-card:not([data-sw-state="idle"]):not([data-sw-state="loading"]) .sw-skeleton {
  opacity: 0;
  visibility: hidden;
}

.sw-skeleton i,
.sw-yt__ghost i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--sw-skeleton) 0%, var(--sw-skeleton-shine) 50%, var(--sw-skeleton) 100%);
  background-size: 200% 100%;
  animation: sw-shimmer 1.4s ease-in-out infinite;
}

.sw-skeleton__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sw-skeleton__lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.sw-skeleton .sw-skeleton__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.sw-skeleton .sw-skeleton__media {
  flex: none;
  height: 38%;
  border-radius: 12px;
}

.sw-skeleton .sw-skeleton__line--lg { width: 92%; }
.sw-skeleton .sw-skeleton__line--md { width: 70%; }
.sw-skeleton .sw-skeleton__line--sm { width: 42%; }

.sw-skeleton__tiles {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 0;
}

.sw-skeleton .sw-skeleton__tiles i {
  height: 100%;
  min-height: 60px;
  border-radius: 10px;
}

/* Notice overlay (consent + error) */

.sw-notice {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 24px;
  background: var(--sw-surface-muted);
  text-align: center;
}

.sw-card[data-sw-state="consent"] .sw-notice,
.sw-card[data-sw-state="error"] .sw-notice {
  display: flex;
}

.sw-notice__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border: 1px solid var(--sw-border);
  border-radius: 16px;
  background: var(--sw-surface);
  color: var(--sw-text-muted);
}

.sw-card[data-sw-state="error"] .sw-notice__icon {
  color: var(--sw-danger);
}

.sw-notice__icon svg {
  width: 24px;
  height: 24px;
}

.sw-notice__title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--sw-text);
}

.sw-notice__text {
  max-width: 34ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--sw-text-muted);
}

.sw-notice__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sw-notice__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.sw-notice__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--sw-text-muted);
  cursor: pointer;
}

.sw-notice__remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--sw-brand);
}

/* Footer + buttons */

.sw-card__foot {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 16px 20px 20px;
}

.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--sw-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sw-btn:active {
  transform: translateY(1px);
}

.sw-btn__icon {
  display: inline-grid;
  place-items: center;
}

.sw-btn__icon svg {
  width: 16px;
  height: 16px;
}

.sw-btn--primary {
  background: var(--sw-brand-cta);
  color: #fff;
}

.sw-card__foot .sw-btn--primary {
  flex: 1;
}

.sw-btn--primary:hover {
  color: #fff;
  filter: brightness(1.08) saturate(1.05);
}

.sw-btn--ghost {
  border-color: var(--sw-border);
  background: var(--sw-surface);
  color: var(--sw-text);
}

.sw-btn--ghost:hover {
  color: var(--sw-text);
  background: var(--sw-surface-muted);
}

.sw-card :where(a, button, input):focus-visible {
  outline: 2px solid var(--sw-focus);
  outline-offset: 2px;
}

/* ---------- Facebook ---------- */

.sw-card--facebook .sw-card__embed {
  text-align: center;
}

/* Graph API feed (api/facebook-feed.php) */
.sw-fb {
  min-height: 100%;
  background: var(--sw-surface);
  text-align: left;
}

.sw-fb__page {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sw-border);
  background: var(--sw-surface);
}

.sw-fb__avatar {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--sw-surface-muted);
  color: var(--sw-brand);
  object-fit: cover;
}

.sw-fb__avatar svg {
  width: 60%;
  height: 60%;
}

.sw-fb__avatar--lg {
  width: 48px;
  height: 48px;
}

.sw-fb__avatar--sm {
  width: 36px;
  height: 36px;
}

.sw-fb__page-meta,
.sw-fb__post-meta {
  min-width: 0;
}

.sw-fb__page-name {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--sw-text);
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sw-fb__followers {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--sw-text-muted);
}

.sw-fb__posts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sw-fb__post {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sw-border);
}

.sw-fb__post:last-child {
  border-bottom: 0;
}

.sw-fb__post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sw-fb__post-author {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sw-text);
}

.sw-fb__time {
  font-size: 12px;
  color: var(--sw-text-muted);
  text-decoration: none;
}

.sw-fb__page-name:hover,
.sw-fb__time:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sw-fb__text {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sw-text);
  white-space: pre-line;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.sw-fb__media {
  position: relative;
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sw-surface-muted);
}

.sw-fb__media img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.sw-fb__play {
  position: absolute;
  inset: 0;
  display: grid;
  width: 52px;
  height: 52px;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
}

.sw-fb__play svg {
  width: 22px;
  height: 22px;
}

.sw-fb__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sw-text-muted);
  text-decoration: none;
}

.sw-fb__open:hover {
  color: var(--sw-text);
}

.sw-fb__open .sw-btn__icon svg {
  width: 13px;
  height: 13px;
}

.sw-fb__empty {
  margin: 0;
  padding: 24px 16px;
  font-size: 13px;
  color: var(--sw-text-muted);
}

/* The SDK sizes the plugin from this box, so it must span the card (the plugin caps at 500px). */
.sw-card--facebook .fb-page {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.sw-card--facebook .fb-page > span,
.sw-card--facebook .fb-page iframe {
  max-width: 100%;
}

/* ---------- YouTube ---------- */

.sw-yt {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sw-yt__player {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* data-sw-show-player="false": keep the player alive (it reports the video list) but off-screen.
   Kept at a normal size because YouTube's player refuses to run when it is tiny. */
.sw-yt__player--hidden {
  position: absolute;
  top: 0;
  left: -10000px;
  width: 320px;
  height: 200px;
  aspect-ratio: auto;
  pointer-events: none;
}

.sw-yt__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Channel bar: YouTube's Subscribe button (avatar, name, live subscriber count) + optional stats */
.sw-yt__channel {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sw-border);
  background: var(--sw-surface);
}

.sw-yt__subscribe {
  display: grid;
  min-width: 0;
  min-height: 48px;
}

/* A refreshed button renders on top of the current one until it has loaded. */
.sw-yt__subscribe > * {
  grid-area: 1 / 1;
}

.sw-yt__stats {
  display: flex;
  gap: 16px;
  margin-left: auto;
  text-align: right;
}

.sw-yt__stat strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sw-text);
}

.sw-yt__stat span {
  font-size: 11.5px;
  color: var(--sw-text-muted);
}

.sw-yt__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 6px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sw-text-muted);
}

.sw-yt__head a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sw-text-muted);
  text-decoration: none;
}

.sw-yt__head a:hover {
  color: var(--sw-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sw-yt__list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0 8px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
}

.sw-yt__item,
.sw-yt__ghost {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 7px 6px;
  border-radius: 10px;
}

.sw-yt__item {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sw-yt__item:hover,
.sw-yt__item[aria-current="true"] {
  background: var(--sw-surface);
}

.sw-yt__item[aria-current="true"] {
  box-shadow: inset 0 0 0 1px var(--sw-border);
}

.sw-yt__thumb {
  position: relative;
  flex: none;
  width: 116px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sw-skeleton);
}

.sw-yt__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sw-yt__playing {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
}

.sw-yt__playing svg {
  width: 22px;
  height: 22px;
}

.sw-yt__item[aria-current="true"] .sw-yt__playing {
  display: grid;
}

.sw-yt__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sw-yt__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  color: var(--sw-text);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sw-yt__tag {
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sw-brand-cta);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #fff;
}

.sw-yt__ghost .sw-yt__thumb {
  height: auto;
  border-radius: 8px;
}

.sw-yt__ghost .sw-yt__text i:last-child {
  width: 55%;
}

.sw-yt__empty {
  padding: 18px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sw-text-muted);
}

/* ---------- Instagram ---------- */

.sw-card--instagram .sw-card__embed {
  background: var(--sw-surface);
}

.sw-ig__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 12px 12px;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-text-muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sw-ig__more:hover {
  color: var(--sw-text);
  background: var(--sw-surface-muted);
}

.sw-ig__more .sw-btn__icon svg {
  width: 14px;
  height: 14px;
}

/* embed.js writes inline sizing (min-width: 326px, borders); let it fit the card instead. */
.sw-card--instagram .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 540px !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .sw-root {
    --sw-gap: 16px;
    --sw-radius: 16px;
    --sw-body-height: 540px;
  }

  .sw-card__head {
    padding: 18px 16px 14px;
  }

  .sw-card__body {
    margin: 0 12px;
  }

  .sw-card__foot {
    padding: 14px 16px 16px;
  }

  .sw-yt__thumb {
    width: 104px;
  }
}

/* ---------- Motion ---------- */

@keyframes sw-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes sw-pulse {
  0% { box-shadow: 0 0 0 0 currentColor; }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes sw-blink {
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-card,
  .sw-card :where([class^="sw-"], [class*=" sw-"]),
  .sw-card :where([class^="sw-"], [class*=" sw-"])::before {
    animation: none !important;
    transition: none !important;
  }
}
