/* ============================================================================
   ACQUIRY DEAL INTELLIGENCE — YMYL AUTHOR PROFILE v4
   Editorial rule, not a boxed widget. Acquiry tokens; preview fallbacks only.
   Stretches with the article .wrap (--cw), matching endmatter / template edges.
   ========================================================================== */

.di-author-authority{
  margin: 0;
  padding: 0;
  background: transparent;
  width: 100%;
}
.di-author-authority-in,
.wrap.di-author-authority-in,
.di-author-authority > .wrap{
  width: 100%;
  max-width: var(--cw, 1200px);
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  box-sizing: border-box;
}

.author-profile,
.wrap.di-author-authority-in .author-profile,
.di-author-authority .author-profile{
  border-top: 1px solid var(--line, #e3e7ec);
  border-bottom: 1px solid var(--line, #e3e7ec);
  padding: 26px 0 24px;
  background: transparent;
  margin-top: var(--space-5, 4rem);
  margin-bottom: 2rem;
  width: 100%;
  max-width: none;
  color: var(--navy, #101828);
  font-family: var(--sans, "Poppins", "Rubik", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.author-profile .author-header{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 17px;
}

.author-profile .photo{
  box-sizing: border-box;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  min-width: 62px;
  max-width: 62px;
  min-height: 62px;
  max-height: 62px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--soft-2, #e9edf2);
  border: 1px solid var(--line, #dfe4ea);
  position: relative;
  align-self: flex-start;
}
.author-profile .photo img{
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 62px;
  max-height: 62px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 2;
  border-radius: 50%;
}
.author-profile .photo-fallback{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted, #667085);
  letter-spacing: .03em;
  z-index: 1;
  pointer-events: none;
}
.author-profile .photo:has(img[src]) .photo-fallback{
  color: transparent;
}

.author-profile .identity{
  min-width: 0;
}

.author-profile .eyebrow{
  display: block;
  margin: 0 0 5px;
  color: var(--muted, #667085);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.author-profile h3{
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.018em;
  font-family: var(--sans, "Poppins", system-ui, sans-serif);
  color: var(--navy, #101828);
}
.author-profile h3 a{
  color: inherit;
  text-decoration: none;
}
.author-profile h3 a:hover{color: var(--accent, #183b6b)}
.author-profile h3 a:focus-visible{
  outline: 2px solid var(--blue, #086ad8);
  outline-offset: 2px;
}

.author-profile .role{
  margin: 0;
  color: var(--muted, #667085);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
}

.author-profile .bio,
.wrap.di-author-authority-in .author-profile .bio,
.di-author-authority .author-profile .bio{
  margin: 0;
  width: 100%;
  max-width: none;
  color: var(--ink, #344054);
  font-size: 14px;
  line-height: 1.62;
}

.author-profile .links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 17px;
  padding-top: 14px;
  width: 100%;
  border-top: 1px solid var(--line-2, #edf0f3);
}
.author-profile .links a{
  color: var(--accent, #183b6b);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.author-profile .links a:hover,
.author-profile .links a:focus-visible{
  border-color: currentColor;
  outline: none;
}
.author-profile .links a:focus-visible{
  outline: 2px solid var(--blue, #086ad8);
  outline-offset: 3px;
  border-color: transparent;
}
.author-profile .dot{
  color: var(--line, #c2c8d0);
  font-size: 11px;
  user-select: none;
}

@media (max-width: 560px){
  .author-profile,
  .wrap.di-author-authority-in .author-profile,
  .di-author-authority .author-profile{padding: 22px 0 21px; margin-top: 2.5rem}
  .author-profile .author-header{gap: 13px; margin-bottom: 15px}
  .author-profile .photo,
  .author-profile .photo img{
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    min-width: 54px;
    max-width: 54px;
    min-height: 54px;
    max-height: 54px;
  }
  .author-profile h3{font-size: 17px}
  .author-profile .role{font-size: 13px}
  .author-profile .bio{font-size: 14px; line-height: 1.6}
  .author-profile .links{gap: 10px 15px}
  .author-profile .dot{display: none}
  .author-profile .links a{
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }
}

/* Neutralise leftover Stripe .auth chrome if a pack still ships both. */
.di-author-authority .auth-h,
.di-author-authority .auth-grid,
.di-author-authority .auth-ph{display: none !important;}
