.bm-author-page,
.bm-author-page *,
.bm-author-page *::before,
.bm-author-page *::after {
  box-sizing: border-box;
}

body.bm-author-collection-page main.wp-block-group {
  min-height: 0 !important;
}

body.bm-author-collection-page main.wp-block-group.alignwide.has-global-padding {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding-top: clamp(22px, 3vw, 42px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.bm-author-collection-page main.wp-block-group.alignwide.has-global-padding > .taxonomy-category,
body.bm-author-collection-page main.wp-block-group.alignwide.has-global-padding > .wp-block-post-title,
body.bm-author-collection-page main.wp-block-group.alignwide.has-global-padding > .wp-block-separator,
body.bm-author-collection-page .wp-block-post-featured-image,
body.bm-author-collection-page .wp-block-post-navigation-link,
body.bm-author-collection-page .post-navigation,
body.bm-author-collection-page nav.navigation.post-navigation,
body.bm-author-collection-page .entry-meta,
body.bm-author-collection-page .post-meta,
body.bm-author-collection-page .bm-related-section,
body.bm-author-collection-page [data-bm-reader-panel],
body.bm-author-collection-page .bm-reader-shell,
body.bm-author-collection-page .bm-reading-tools {
  display: none !important;
}

.bm-author-page {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 0 0 clamp(64px, 7vw, 96px);
  color: #142d68;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bm-author-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  gap: 56px;
  align-items: center;
  width: calc(100% - 48px);
  max-width: 1180px;
  min-height: clamp(440px, 35vw, 560px);
  margin: 40px auto clamp(48px, 5vw, 70px);
  padding: 56px 64px;
  overflow: hidden;
  border: 1px solid #f0dfca;
  border-radius: 28px;
  background:
    radial-gradient(circle at 56% 28%, rgba(255, 255, 255, 0.88) 0 18%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 22% 42%, rgba(255, 214, 142, 0.34) 0 4px, transparent 5px),
    linear-gradient(135deg, #fffdf7 0%, #fff8ee 54%, #fff2e5 100%);
}

.bm-author-page--no-portrait .bm-author-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.bm-author-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 24% 26%, rgba(255, 204, 103, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 76%, rgba(255, 98, 93, 0.15) 0 5px, transparent 6px),
    radial-gradient(circle at 86% 34%, rgba(96, 179, 183, 0.16) 0 6px, transparent 7px);
}

.bm-author-hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.bm-author-hero__badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
  padding: 0 20px;
  border: 1px solid rgba(255, 63, 70, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #ff3f46;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bm-author-hero__title {
  max-width: 760px;
  margin: 0;
  color: #142d68;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.bm-author-hero__text {
  max-width: 650px;
  margin: 24px 0 0;
  color: #3f4b68;
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.55;
}

.bm-author-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.bm-author-hero__meta span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(19, 36, 95, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #33466f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.bm-author-hero__media {
  display: flex;
  width: 100%;
  min-width: 0;
  height: clamp(320px, 32vw, 460px);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: clamp(18px, 2.6vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(240, 223, 202, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.bm-author-hero__portrait {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bm-author-bio,
.bm-author-works,
.bm-other-authors {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin-inline: auto;
}

.bm-author-bio {
  margin-bottom: clamp(44px, 5vw, 68px);
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(18, 45, 96, 0.08);
  border-radius: 22px;
  background: #ffffff;
}

.bm-author-bio__title {
  margin: 0 0 14px;
  color: #142d68;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.bm-author-bio__text {
  color: #465372;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.68;
}

.bm-author-bio__text p {
  margin: 0 0 1em;
}

.bm-author-bio__text p:last-child {
  margin-bottom: 0;
}

.bm-author-works__intro {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.bm-author-works__eyebrow,
.bm-other-authors__eyebrow {
  margin: 0 0 10px;
  color: #ff625d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bm-author-works__title,
.bm-other-authors__title {
  margin: 0;
  color: #142d68;
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.bm-author-works__description {
  max-width: 700px;
  margin: 16px 0 0;
  color: #5a6684;
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}

.bm-author-work-group {
  padding: clamp(28px, 3.6vw, 42px) 0;
  border-top: 1px solid #edf0f5;
}

.bm-author-work-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.bm-author-work-group__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.bm-author-work-group__title {
  margin: 0;
  color: #142d68;
  font-size: clamp(26px, 2.25vw, 34px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.bm-author-work-group__description {
  max-width: 760px;
  margin: 8px 0 0;
  color: #667085;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.bm-author-work-group__count {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #e1e7f0;
  border-radius: 999px;
  color: #65708d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bm-author-work-grid,
.bm-other-authors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.bm-author-work-card,
.bm-other-authors-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(135px, 40%) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(18, 45, 96, 0.08);
  border-radius: 18px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(18, 45, 96, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bm-author-work-card:hover,
.bm-author-work-card:focus-visible,
.bm-other-authors-card:hover,
.bm-other-authors-card:focus-visible {
  border-color: rgba(255, 98, 93, 0.34);
  box-shadow: 0 14px 34px rgba(18, 45, 96, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

.bm-author-work-card:focus-visible,
.bm-other-authors-card:focus-visible {
  outline: 3px solid rgba(255, 98, 93, 0.3);
  outline-offset: 3px;
}

.bm-author-work-card__media,
.bm-other-authors-card__media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  overflow: hidden;
  background: #f5efe6;
}

.bm-author-work-card__image,
.bm-other-authors-card__image {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 190px;
  object-fit: cover;
}

.bm-author-work-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 98, 93, 0.16) 0 32px, transparent 33px),
    linear-gradient(135deg, #fff5e7 0%, #eef5ff 100%);
}

.bm-author-work-card__body,
.bm-other-authors-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 22px 58px;
}

.bm-author-work-card__category,
.bm-other-authors-card__label {
  margin-bottom: 12px;
  color: #ff625d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bm-author-work-card__title,
.bm-other-authors-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  color: #102d68;
  font-size: clamp(19px, 1.45vw, 23px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.018em;
  overflow-wrap: break-word;
}

.bm-author-work-card__arrow,
.bm-other-authors-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffc2b0;
  border-radius: 999px;
  background: #ff625d;
  color: #ffffff;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.bm-author-work-card__arrow svg,
.bm-other-authors-card__arrow svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bm-author-work-card:hover .bm-author-work-card__arrow,
.bm-author-work-card:focus-visible .bm-author-work-card__arrow,
.bm-other-authors-card:hover .bm-other-authors-card__arrow,
.bm-other-authors-card:focus-visible .bm-other-authors-card__arrow {
  border-color: #e94e49;
  background: #e94e49;
  transform: translateX(2px);
}

.bm-author-empty {
  margin: 0;
  padding: 26px 28px;
  border: 1px dashed rgba(20, 45, 104, 0.2);
  border-radius: 18px;
  background: #ffffff;
  color: #5a6684;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

.bm-other-authors {
  margin-top: clamp(50px, 6vw, 82px);
  padding-top: clamp(34px, 4vw, 46px);
  border-top: 1px solid #edf0f5;
}

.bm-other-authors__header {
  margin-bottom: 24px;
}

@media (max-width: 1050px) {
  .bm-author-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    min-height: 0;
  }

  .bm-author-hero__media {
    height: clamp(330px, 54vw, 520px);
  }

  .bm-author-work-grid,
  .bm-other-authors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.bm-author-collection-page main.wp-block-group.alignwide.has-global-padding {
    padding-top: 16px !important;
  }

  .bm-author-page {
    padding-bottom: 54px;
  }

  .bm-author-hero,
  .bm-author-bio,
  .bm-author-works,
  .bm-other-authors {
    width: calc(100% - 28px);
  }

  .bm-author-hero {
    margin-top: 24px;
    padding: 28px 22px 26px;
    border-radius: 22px;
    gap: 26px;
  }

  .bm-author-hero__badge {
    min-height: 32px;
    margin-bottom: 18px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .bm-author-hero__title {
    font-size: clamp(38px, 13vw, 54px);
    line-height: 1.02;
  }

  .bm-author-hero__text {
    font-size: 17px;
  }

  .bm-author-hero__meta span {
    min-height: 36px;
    font-size: 12px;
  }

  .bm-author-hero__media {
    height: 330px;
    padding: 14px;
    border-radius: 18px;
  }

  .bm-author-bio {
    padding: 22px;
  }

  .bm-author-works__title,
  .bm-other-authors__title {
    font-size: 31px;
  }

  .bm-author-work-group__header {
    display: block;
  }

  .bm-author-work-group__count {
    margin-top: 14px;
  }

  .bm-author-work-grid,
  .bm-other-authors__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .bm-author-work-card,
  .bm-other-authors-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 154px;
    border-radius: 15px;
  }

  .bm-author-work-card__media,
  .bm-author-work-card__image,
  .bm-author-work-card__placeholder,
  .bm-other-authors-card__media,
  .bm-other-authors-card__image {
    width: 112px;
    height: 154px !important;
    min-height: 154px;
  }

  .bm-author-work-card__body,
  .bm-other-authors-card__body {
    padding: 17px 15px 48px;
  }

  .bm-author-work-card__category,
  .bm-other-authors-card__label {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .bm-author-work-card__title,
  .bm-other-authors-card__title {
    font-size: 17px;
    line-height: 1.22;
  }

  .bm-author-work-card__arrow,
  .bm-other-authors-card__arrow {
    right: 13px;
    bottom: 12px;
    width: 34px;
    height: 34px;
  }
}
