/*
 * "Powered by Spritz My Duck" credit. Loaded by the site layout (after clone.css) and the
 * blog layout; markup in src/components/ui/SmdPowered.astro.
 */
.smd-powered {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
}

.smd-powered .smd-powered__divider {
  opacity: 0.5;
}

.smd-powered .smd-powered__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.smd-powered .smd-powered__link:hover,
.smd-powered .smd-powered__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* One white SVG: a solid silhouette (brightness(0)) at reduced opacity on light, as is on dark. */
.smd-powered img.smd-powered__icon {
  display: block;
  width: auto;
  height: 18px;
  max-width: none;
  filter: brightness(0);
  opacity: 0.55;
}

html.dark-mode .smd-powered img.smd-powered__icon {
  filter: none;
  opacity: 1;
}

/* Below this width the credit drops to its own line instead of overflowing. */
@media (max-width: 699px) {
  .smd-powered {
    display: flex;
    margin: 8px 0 0;
  }

  .smd-powered .smd-powered__divider {
    display: none;
  }

  /* Footer's <br> after the credit would add an empty line. */
  .smd-powered + br {
    display: none;
  }
}

.copyright-notice .smd-powered {
  justify-content: center;
}
