.author-header {
  --author-accent: var(--theme-author-accent, var(--color-cat-n1, var(--theme-button-primary-bg)));
  --author-accent-contrast: var(--theme-author-accent-text, var(--theme-button-primary-color, var(--bs-body-bg)));
  --author-bg: var(--theme-author-bg, var(--bs-body-bg));
  --author-ink: var(--theme-author-text, var(--theme-module-text, var(--bs-body-color)));
  --author-muted: var(--theme-author-muted, color-mix(in srgb, var(--author-ink) 62%, transparent));
  --author-line: var(--theme-author-border, var(--theme-module-border, var(--bs-border-color)));
  --author-border-top: var(--theme-author-border-top, var(--author-line));
  --author-border-top-width: var(--theme-author-border-top-width, 1px);
  --author-border-bottom: var(--theme-author-border-bottom, var(--author-line));
  --author-border-bottom-width: var(--theme-author-border-bottom-width, 1px);
  --author-card: var(--theme-author-bg, var(--theme-card-bg, var(--theme-surface-elevated, var(--bs-body-bg))));
  --author-card-radius: var(--theme-author-radius, var(--theme-card-radius, 2rem));
  --author-card-shadow: var(--theme-author-shadow, var(--theme-card-shadow, 0 26px 80px rgba(0, 0, 0, .08)));
  --author-avatar-bg: var(--theme-author-avatar-bg, color-mix(in srgb, var(--author-accent) 16%, var(--author-card)));
  --author-avatar-size: var(--theme-author-avatar-size, 220px);
  --author-avatar-border: var(--theme-author-avatar-border, color-mix(in srgb, var(--author-ink) 18%, transparent));
  --author-avatar-shadow: var(--theme-author-avatar-shadow, 0 28px 70px rgba(0, 0, 0, .14));
  --author-badge-bg: var(--theme-author-badge-bg, color-mix(in srgb, var(--author-accent) 28%, transparent));
  --author-badge-text: var(--theme-author-badge-text, var(--author-ink));
  --author-badge-border: var(--theme-author-badge-border, color-mix(in srgb, var(--author-accent) 58%, var(--author-ink) 18%));
  --author-badge-radius: var(--theme-author-badge-radius, 999px);
  --author-kpi-bg: var(--theme-author-kpi-bg, var(--author-card));
  --author-kpi-text: var(--theme-author-kpi-text, var(--author-ink));
  --author-kpi-muted: var(--theme-author-kpi-muted, var(--author-muted));
  --author-kpi-border-color: var(--theme-author-kpi-border, var(--author-line));
  --author-kpi-radius: var(--theme-author-kpi-radius, calc(var(--author-card-radius) - .95rem));
  --author-kpi-shadow: var(--theme-author-kpi-shadow, none);
  --author-social-bg: var(--theme-author-social-bg, color-mix(in srgb, var(--author-card) 74%, transparent));
  --author-social-text: var(--theme-author-social-text, var(--author-ink));
  --author-social-border: var(--theme-author-social-border, var(--author-line));
  --author-social-hover-bg: var(--theme-author-social-hover-bg, var(--author-accent));
  --author-social-hover-text: var(--theme-author-social-hover-text, var(--author-accent-contrast));
  --author-social-hover-border: var(--theme-author-social-hover-border, var(--author-accent));
  color: var(--author-ink);
  margin: 0;
  background: var(--author-bg);
  border-top: var(--author-border-top-width) solid var(--author-border-top);
  border-bottom: var(--author-border-bottom-width) solid var(--author-border-bottom);
  box-shadow: var(--author-card-shadow);
  overflow-x: clip;
}

.author-header--surface-full_width:not(.author-header--v3) {
  position: relative;
  z-index: 0;
  padding-block: clamp(.95rem, 2.2vw, 2.35rem);
}

.author-header--surface-full_width.author-header--v1,
.author-header--surface-full_width.author-header--v2,
.author-header--surface-full_width.author-header--v4,
.author-header--surface-full_width.author-header--v5 {
  padding-block: clamp(.95rem, 2.2vw, 2.35rem);
}

.author-header--surface-full_width .author-header__split,
.author-header--surface-full_width .author-header__panel--center,
.author-header--surface-full_width .author-header__compact,
.author-header--surface-full_width .author-header__editorial {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.author-header--surface-full_width .author-header__panel--center::before,
.author-header--surface-full_width .author-header__panel--center::after {
  content: none;
}

.author-header--surface-card .author-header__split,
.author-header--surface-card .author-header__panel--center,
.author-header--surface-card .author-header__compact,
.author-header--surface-card .author-header__editorial {
  border: 1px solid var(--author-line);
  border-radius: var(--author-card-radius);
  background:
    radial-gradient(circle at 6% 0%, color-mix(in srgb, var(--author-accent) 13%, transparent), transparent 34%),
    var(--author-bg);
  box-shadow: var(--author-card-shadow);
}

.author-header--surface-card .author-header__panel--center::before,
.author-header--surface-card .author-header__panel--center::after {
  content: "";
}

.author-header__kicker {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .75rem;
  color: var(--author-muted);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.author-header__breadcrumb {
  margin-bottom: .8rem;
}

.author-header__breadcrumb-nav {
  margin: 0;
}

.author-header__breadcrumb-nav .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: 0;
  background: transparent;
}

.author-header__breadcrumb-nav .breadcrumb li {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: 0;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.author-header__breadcrumb-nav .breadcrumb li::after {
  content: none;
}

.author-header__breadcrumb-nav .breadcrumb li + li::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  color: color-mix(in srgb, var(--author-ink) 42%, transparent);
  transform: rotate(45deg);
}

.author-header__breadcrumb-nav a,
.author-header__breadcrumb-nav li,
.author-header__breadcrumb-nav .breadcrumb-current {
  color: color-mix(in srgb, var(--author-ink) 74%, transparent);
}

.author-header__breadcrumb-nav a {
  text-decoration: none;
  font-weight: 750;
  padding: 0;
  border-radius: 0;
}

.author-header__breadcrumb-nav a:hover {
  color: var(--author-ink);
}

@media (max-width: 1200px) {
  .author-header__breadcrumb-nav .breadcrumb {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .author-header__breadcrumb-nav .breadcrumb li[aria-current="page"] {
    min-width: 0;
  }

  .author-header__breadcrumb-nav .breadcrumb-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.author-header__rule {
  display: inline-block;
  width: 78px;
  height: 2px;
  border-radius: 999px;
  background: var(--author-accent);
}

.author-header__title {
  margin: 0;
  color: var(--author-ink);
  font-size: clamp(2.35rem, 6vw, 5.75rem);
  line-height: .9;
  font-weight: 950;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.author-header__page {
  display: inline-flex;
  vertical-align: middle;
  margin-left: .45rem;
  padding: .28rem .5rem;
  border-radius: 999px;
  background: var(--author-accent);
  color: var(--author-accent-contrast);
  font-size: clamp(.85rem, 1.2vw, 1rem);
  letter-spacing: 0;
  line-height: 1;
}

.author-header__bio {
  max-width: 760px;
  margin: 1.1rem 0 0;
  color: var(--author-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.72;
  font-weight: 650;
}

.author-header__avatar-wrap {
  position: relative;
  width: var(--author-avatar-size, 220px);
  max-width: min(100%, var(--author-avatar-size, 220px));
  aspect-ratio: 1;
  margin: 0;
  border-radius: var(--author-card-radius);
  background: var(--author-avatar-bg);
  isolation: isolate;
}

.author-header__avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--author-accent) 58%, transparent);
  border-radius: inherit;
  transform: rotate(-3deg);
}

.author-header__avatar-wrap--circle,
.author-header--avatar-circle .author-header__avatar-wrap {
  border-radius: 50%;
}

.author-header__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  border: 1px solid var(--author-avatar-border);
  box-shadow: var(--author-avatar-shadow);
}

.author-header__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--author-accent);
  color: var(--author-accent-contrast);
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.author-header__badges,
.author-header__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
}

.author-header__badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .42rem .72rem;
  border: 1px solid var(--author-badge-border);
  border-radius: var(--author-badge-radius);
  background: var(--author-badge-bg);
  color: var(--author-badge-text);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.author-header__badge--ghost {
  background: transparent;
  color: var(--author-badge-text);
  border-color: var(--author-badge-border);
}

.author-header__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--author-social-border);
  border-radius: 50%;
  color: var(--author-social-text);
  background: var(--author-social-bg);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.author-header__socials a:hover,
.author-header__socials a:focus {
  transform: translateY(-2px);
  border-color: var(--author-social-hover-border);
  background: var(--author-social-hover-bg);
  color: var(--author-social-hover-text);
}

.author-header__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.35rem;
  width: 100%;
}

.author-header__stat {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--author-kpi-border-color);
  border-radius: var(--author-kpi-radius);
  background: var(--author-kpi-bg);
  box-shadow: var(--author-kpi-shadow);
  position: relative;
}

.author-header__stat i {
  color: var(--author-accent);
  font-size: 1.8rem;
  position: absolute;
  top: 1.5rem;
  right: 1rem;
}

.author-header__stat strong {
  display: block;
  color: var(--author-kpi-text);
  margin-bottom: .5rem;
  font-size: clamp(1.05rem, 1.9vw, 1.1rem);
  line-height: 1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.author-header__stat span {
  display: block;
  margin-top: .35rem;
  color: var(--author-kpi-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.author-header--v1 {
  padding-block: clamp(.65rem, 1.6vw, 1.6rem);
}

.author-header--v1 .author-header__breadcrumb {
  margin-bottom: .35rem;
}

.author-header__split {
  position: relative;
  padding: clamp(.85rem, 1.8vw, 1.55rem);
}

.author-header--v1 .author-header__avatar-wrap {
  width: min(100%, var(--author-avatar-size, 220px));
  margin-inline: auto;
}

.author-header--v2 {
  padding-block: clamp(.75rem, 1.8vw, 1.8rem);
  text-align: center;
}

.author-header__panel--center {
  position: relative;
  padding: clamp(1rem, 2.4vw, 2.4rem);
  overflow: hidden;
}

.author-header__panel--center::before,
.author-header__panel--center::after {
  content: none;
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--author-accent) 20%, transparent);
  filter: blur(4px);
  opacity: .72;
}

.author-header__panel--center::before {
  width: 180px;
  height: 180px;
  top: -70px;
  left: 8%;
}

.author-header__panel--center::after {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -120px;
}

.author-header--v2 .author-header__avatar-wrap {
  margin: 0 auto 1.55rem;
}

.author-header--v2 .author-header__bio {
  margin-inline: auto;
}

.author-header--v2 .author-header__badges,
.author-header--v2 .author-header__socials {
  justify-content: center;
}

.author-header--v3 {
  padding-block: 0;
}

.author-header__wide {
  padding-block: clamp(.85rem, 1.8vw, 1.8rem);
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--author-accent) 32%, var(--author-bg) 68%) 0%, color-mix(in srgb, var(--author-accent) 12%, var(--author-bg)) 48%, var(--author-bg) 100%);
}

.author-header--v3 .author-header__title {
  color: var(--author-ink);
}

.author-header__side-card {
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid var(--author-line);
  border-radius: var(--author-card-radius);
  background: color-mix(in srgb, var(--author-card) 72%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
}

.author-header__side-card .author-header__avatar-wrap {
  margin-inline: auto;
}

.author-header__side-card .author-header__stats {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.author-header--v4 {
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
}

.author-header__compact {
  padding: clamp(1rem, 2.2vw, 1.55rem);
}

.author-header--v4 .author-header__title {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.author-header__compact-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.author-header--v4 .author-header__avatar-wrap {
  width: min(100%, var(--author-avatar-size, 220px));
  margin-inline: auto;
}

.author-header--v4 .author-header__stats {
  margin-top: 0;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.author-header--v5 {
  padding-block: clamp(.75rem, 1.8vw, 1.8rem);
}

.author-header__editorial {
  padding: clamp(.9rem, 1.8vw, 1.55rem);
}

.author-header__editorial-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.author-header__editorial-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-header__editorial-media .author-header__avatar-wrap {
  width: min(100%, var(--author-avatar-size, 220px));
  margin-inline: auto;
}

.author-header__editorial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-header__editorial-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.author-header__editorial-stats .author-header__stats {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.author-header--v5 .author-header__title {
  font-size: clamp(2.2rem, 5vw, 5.1rem);
}

html[data-bs-theme="dark"] .author-header,
html.dark .author-header {
  --author-ink: var(--theme-author-text, var(--theme-module-text, var(--bs-body-color)));
  --author-muted: var(--theme-author-muted, color-mix(in srgb, var(--author-ink) 68%, transparent));
  --author-card: var(--theme-author-bg, var(--theme-card-bg, var(--theme-surface-elevated, var(--bs-body-bg))));
  --author-line: var(--theme-author-border, var(--theme-module-border, var(--bs-border-color)));
}

html[data-bs-theme="dark"] .author-header--surface-full_width:not(.author-header--v3),
html.dark .author-header--surface-full_width:not(.author-header--v3) {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--author-accent) 18%, var(--bs-body-bg) 82%) 0%, color-mix(in srgb, var(--author-accent) 7%, var(--bs-body-bg)) 48%, var(--bs-body-bg) 100%);
}

html[data-bs-theme="dark"] .author-header--surface-card .author-header__split,
html[data-bs-theme="dark"] .author-header--surface-card .author-header__panel--center,
html[data-bs-theme="dark"] .author-header--surface-card .author-header__compact,
html[data-bs-theme="dark"] .author-header--surface-card .author-header__editorial,
html.dark .author-header--surface-card .author-header__split,
html.dark .author-header--surface-card .author-header__panel--center,
html.dark .author-header--surface-card .author-header__compact,
html.dark .author-header--surface-card .author-header__editorial {
  background:
    radial-gradient(circle at 6% 0%, color-mix(in srgb, var(--author-accent) 12%, transparent), transparent 34%),
    var(--author-bg);
  box-shadow: var(--author-card-shadow);
}

html[data-bs-theme="dark"] .author-header__badge,
html.dark .author-header__badge {
  color: var(--author-ink);
}

html[data-bs-theme="dark"] .author-header--v3 .author-header__title,
html.dark .author-header--v3 .author-header__title {
  color: var(--author-ink);
}

html[data-bs-theme="dark"] .author-header__wide,
html.dark .author-header__wide {
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--author-accent) 28%, var(--bs-body-bg) 72%) 0%, color-mix(in srgb, var(--author-accent) 10%, var(--bs-body-bg)) 48%, var(--bs-body-bg) 100%);
}

html[data-bs-theme="dark"] .author-header__side-card,
html.dark .author-header__side-card {
  border-color: var(--author-line);
  background: color-mix(in srgb, var(--author-card) 72%, transparent);
}

@media (max-width: 1199.98px) {
  .author-header__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-header__editorial-stats .author-header__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .author-header__title {
    font-size: clamp(2rem, 13vw, 3.35rem);
    letter-spacing: -.05em;
  }

  .author-header__avatar-wrap {
    width: min(100%, var(--author-avatar-size, 220px));
  }

  .author-header__editorial,
  .author-header__split {
    border-radius: min(var(--author-card-radius), 1.35rem);
  }

  .author-header__editorial-media,
  .author-header__compact {
    justify-content: center;
    text-align: center;
  }

  .author-header__compact .author-header__badges,
  .author-header__compact .author-header__socials,
  .author-header__editorial .author-header__badges,
  .author-header__editorial .author-header__socials {
    justify-content: center;
  }

  .author-header__stats,
  .author-header__side-card .author-header__stats,
  .author-header__editorial-stats .author-header__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .author-header__stats,
  .author-header__side-card .author-header__stats,
  .author-header__editorial-stats .author-header__stats {
    grid-template-columns: 1fr;
  }
}
