/**
 * Bio card – Mobile only (load with media="(max-width: 768px)")
 * Layout: [image + title] then [content] stacked
 */

.dm-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.dm-bio {
  --dm-bio-bg: #ffffff;
  --dm-bio-border: rgba(0,0,0,.10);
  --dm-bio-title: rgba(0,0,0,.92);
  --dm-bio-text: rgba(0,0,0,.78);
  --dm-bio-link: #32beeb !important;

  margin-top: 40px;
  padding: 18px;
  background: var(--dm-bio-bg);
  border: 1px solid var(--dm-bio-border);
  border-radius: 12px;
}

/* Mobile: [avatar + title] row, then [content] – use grid so title sits next to avatar */
.dm-bio__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.dm-bio__header {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
}

.dm-bio__right {
  display: contents;
}

.dm-bio__header .dm-bio__avatarLink {
  flex-shrink: 0;
  width: 72px;
  min-width: 72px;
  min-height: 72px;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.dm-bio__avatarLink img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

.dm-bio__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: center;
  line-height: 1.3;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dm-bio-title);
}

.dm-bio__title a {
  color: var(--dm-bio-link);
  text-decoration: none;
}

.dm-bio__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dm-bio__content {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  width: 100%;
}

.dm-bio__text {
  margin: 0 0 16px 0;
  color: var(--dm-bio-text);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.dm-bio .w-socials {
  margin-top: 12px;
}

.dm-bio .w-socials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dm-bio .w-socials-item {
  display: inline-flex;
}

.dm-bio .w-socials-item-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  transform: translateZ(0);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.dm-bio .w-socials-item-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
  filter: saturate(1.05);
}

.dm-bio .w-socials-item-link:active {
  transform: translateY(0);
}

.dm-bio .w-socials-item-link i,
.dm-bio .w-socials-item-link svg {
  width: 18px;
  height: 18px;
  font-size: 1.125rem;
  display: inline-block;
  line-height: 1;
  color: #fff;
}

.dm-bio .w-socials-item-link svg {
  vertical-align: middle;
}

.dm-bio .w-socials-item-link-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255,255,255,.18);
  transition: opacity .18s ease;
  pointer-events: none;
}

.dm-bio .w-socials-item-link:hover .w-socials-item-link-hover {
  opacity: 1;
}

.dm-bio .w-socials-item.facebook  .w-socials-item-link { background: #1877F2; }
.dm-bio .w-socials-item.twitter   .w-socials-item-link { background: #111111; }
.dm-bio .w-socials-item.linkedin  .w-socials-item-link { background: #0A66C2; }
.dm-bio .w-socials-item.youtube   .w-socials-item-link { background: #FF0000; }
.dm-bio .w-socials-item.instagram .w-socials-item-link {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 25%, #d6249f 55%, #285AEB 85%);
}
.dm-bio .w-socials-item.tiktok    .w-socials-item-link { background: #000000; }

.dm-bio .w-socials-item-link:focus {
  outline: none;
}

.dm-bio .w-socials-item-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(0,0,0,.18), 0 0 0 6px rgba(255,255,255,.85), 0 10px 22px rgba(0,0,0,.10);
}

/* Mobile only: hide widget title */
.widget-title {
  display: none !important;
}

/* Mobile only: no float on this image */
@media (max-width: 768px) {
  img.alignleft.wp-image-275.size-full {
    float: none !important;
  }
}
