.bio-safe-html,
.bio-vcard,
.bio-action,
.bio-audio,
.bio-document,
.bio-service-card,
.bio-service-embed,
.bio-rss {
  background: var(--bio-surface);
  border-radius: var(--bio-radius);
  box-shadow: var(--bio-shadow);
  color: var(--bio-fg);
}

.bio-safe-html { line-height: 1.7; padding: 18px; }
.bio-safe-html > :first-child { margin-top: 0; }
.bio-safe-html > :last-child { margin-bottom: 0; }
.bio-safe-html a { color: var(--bio-accent); font-weight: 700; }
.bio-safe-html blockquote { border-left: 4px solid var(--bio-accent); color: var(--bio-muted); margin-left: 0; padding-left: 14px; }
.bio-safe-html code { background: color-mix(in srgb, var(--bio-fg) 8%, transparent); border-radius: 5px; padding: 2px 5px; }

.bio-vcard,
.bio-document {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  padding: 16px 18px;
}

.bio-vcard > span,
.bio-document > span {
  align-items: center;
  background: var(--bio-accent);
  border-radius: 999px;
  color: var(--bio-accent-contrast);
  display: inline-flex;
  font-size: .9375rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.bio-vcard div,
.bio-document div { display: grid; gap: 3px; }
.bio-vcard small,
.bio-document small { color: var(--bio-muted); }
.bio-vcard a,
.bio-document a { color: var(--bio-accent); font-weight: 800; text-decoration: none; }

.bio-action,
.bio-service-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
  text-decoration: none;
  transition: transform .18s ease;
}

.bio-action:hover,
.bio-service-card:hover { transform: translateY(-2px); }
.bio-action > span,
.bio-service-card > span { display: grid; gap: 4px; }
.bio-action small,
.bio-service-card small { color: var(--bio-accent); font-size: .9375rem; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.bio-action strong,
.bio-service-card strong { color: var(--bio-fg); font-size: 1.04rem; }
.bio-action em,
.bio-service-card em { color: var(--bio-muted); font-size: .9375rem; font-style: normal; }
.bio-action > b,
.bio-service-card > b { color: var(--bio-accent); font-size: 1.4rem; }

.bio-audio { padding: 16px; }
.bio-audio figcaption { font-weight: 800; margin-bottom: 10px; }
.bio-audio audio { display: block; width: 100%; }

.bio-service-embed { margin: 0; overflow: hidden; }
.bio-service-embed iframe { background: #fff; border: 0; display: block; height: var(--bio-embed-height); max-height: 80vh; width: 100%; }
.bio-service-embed figcaption { color: var(--bio-muted); font-size: .9375rem; padding: 9px 13px; }

.bio-rss { padding: 18px; }
.bio-rss header { align-items: center; display: flex; gap: 9px; }
.bio-rss header > span { background: var(--bio-accent); border-radius: 5px; color: var(--bio-accent-contrast); font-size: .9375rem; font-weight: 900; padding: 4px 6px; }
.bio-rss h3 { margin: 0; }
.bio-rss ol { display: grid; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; }
.bio-rss li a { border-top: 1px solid color-mix(in srgb, var(--bio-fg) 12%, transparent); color: var(--bio-fg); display: grid; gap: 4px; padding-top: 10px; text-decoration: none; }
.bio-rss li span { color: var(--bio-muted); font-size: .9375rem; }
.bio-rss time { color: var(--bio-muted); font-size: .9375rem; }
.bio-rss-cards ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bio-rss-cards li a { border: 1px solid color-mix(in srgb, var(--bio-fg) 14%, transparent); border-radius: calc(var(--bio-radius) * .65); height: 100%; padding: 13px; }

.bio-template-campaign .bio-link,
.bio-template-campaign .bio-action { border-left: 5px solid var(--bio-accent); }
.bio-template-white_label .bio-section { border-bottom: 1px solid color-mix(in srgb, var(--bio-fg) 12%, transparent); padding-bottom: 24px; }
.bio-template-commerce .bio-commerce,
.bio-template-commerce .bio-action { outline: 2px solid color-mix(in srgb, var(--bio-accent) 24%, transparent); }
.bio-template-event .bio-countdown { font-size: 1.1rem; }

@media (max-width: 560px) {
  .bio-vcard,
  .bio-document { grid-template-columns: auto 1fr; }
  .bio-vcard a,
  .bio-document a { grid-column: 1 / -1; text-align: center; }
  .bio-rss-cards ol { grid-template-columns: 1fr; }
  .bio-service-embed iframe { height: min(var(--bio-embed-height), 68vh); }
}

@media (prefers-reduced-motion: reduce) {
  .bio-action,
  .bio-service-card { transition: none; }
}
