.team-detail-page {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-site);
}

.lawyer-profile {
  padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 8vw, 120px);
  background: var(--color-bg-muted);
}

.lawyer-profile__back,
.lawyer-profile-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: var(--font-size-ui);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.lawyer-profile__back {
  margin-bottom: clamp(26px, 3vw, 42px);
}

.lawyer-profile__back i,
.lawyer-profile-footer i {
  color: var(--color-secondary);
  font-size: 20px;
}

.lawyer-profile__back:hover,
.lawyer-profile-footer a:hover {
  color: var(--color-secondary);
  transform: translateX(-3px);
}

.lawyer-profile__back:focus-visible,
.lawyer-profile-footer a:focus-visible {
  outline: 3px solid var(--color-focus) !important;
  outline-offset: 4px;
}

.lawyer-profile__card {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-elevated);
  box-shadow: 0 28px 70px var(--color-shadow);
}

.lawyer-profile__portrait {
  position: relative;
  min-height: 590px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-bg-dark), var(--color-bg-dark-alt));
}

.lawyer-profile__portrait::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(var(--brand-aubergine-rgb), 0.22));
  content: '';
  pointer-events: none;
}

.lawyer-profile__portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
  object-position: center top;
}

.lawyer-profile__portrait.is-fallback img {
  object-position: center;
}

.lawyer-profile__portrait.is-empty img {
  display: none;
}

.lawyer-profile__portrait-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(var(--brand-white-rgb), 0.35);
  border-radius: 50%;
  color: var(--color-text-inverse);
  transform: translate(-50%, -50%);
}

.lawyer-profile__portrait-mark i {
  font-size: 42px;
}

.lawyer-profile__summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(54px, 6vw, 96px);
}

.lawyer-profile__eyebrow,
.lawyer-biography__heading p {
  margin: 0 0 18px;
  color: var(--color-secondary);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.lawyer-profile__summary h1 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.16;
}

.lawyer-profile__rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: clamp(24px, 3vw, 36px) 0 clamp(30px, 4vw, 46px);
  background: var(--color-accent);
}

.lawyer-profile__facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.lawyer-profile__fact {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 19px 0;
  border-top: 1px solid var(--color-border);
}

.lawyer-profile__fact:last-child {
  border-bottom: 1px solid var(--color-border);
}

.lawyer-profile__fact[data-team-value=''] {
  display: none;
}

.lawyer-profile__fact dt,
.lawyer-profile__fact dd {
  margin: 0;
  font-size: var(--font-size-body);
  line-height: 1.75;
}

.lawyer-profile__fact dt {
  color: var(--color-text-subtle);
  font-weight: 500;
}

.lawyer-profile__fact dd {
  min-width: 0;
  color: var(--color-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lawyer-biography {
  padding: clamp(78px, 9vw, 138px) 0;
  background: var(--color-bg);
}

.lawyer-biography__layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(54px, 7vw, 108px);
  align-items: start;
}

.lawyer-biography__heading {
  position: sticky;
  top: 126px;
}

.lawyer-biography__heading h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--font-size-heading-2);
  font-weight: 600;
  line-height: 1.25;
}

.lawyer-biography__content {
  min-width: 0;
  color: var(--color-text-muted);
  font-family: var(--font-family-site) !important;
  font-size: var(--font-size-body);
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.lawyer-biography__content > :first-child {
  margin-top: 0 !important;
}

.lawyer-biography__content > :last-child {
  margin-bottom: 0 !important;
}

.lawyer-biography__content p,
.lawyer-biography__content li,
.lawyer-biography__content span,
.lawyer-biography__content div {
  color: inherit !important;
  font-family: var(--font-family-site) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.lawyer-biography__content p {
  margin: 0 0 22px;
  text-align: justify;
}

.lawyer-biography__content h1,
.lawyer-biography__content h2,
.lawyer-biography__content h3,
.lawyer-biography__content h4 {
  margin: clamp(42px, 6vw, 72px) 0 22px !important;
  padding: 0 0 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--color-border) !important;
  color: var(--color-primary) !important;
  font-family: var(--font-family-site) !important;
  font-size: var(--font-size-heading-3) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

.lawyer-biography__content ul,
.lawyer-biography__content ol {
  margin: 0 0 26px;
  padding-left: 1.3em;
}

.lawyer-biography__content li + li {
  margin-top: 8px;
}

.lawyer-biography__content .lawyer-biography__technical-fields {
  margin: 0 0 26px;
  text-align: left;
}

.lawyer-biography__content .lawyer-biography__section-intro {
  margin-bottom: 22px;
  color: var(--color-text) !important;
  font-weight: 600;
  text-align: left;
}

.lawyer-biography__content .lawyer-biography__list {
  display: grid;
  gap: 0;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.lawyer-biography__content .lawyer-biography__list li {
  position: relative;
  margin: 0;
  padding: 13px 0 13px 24px;
  border-top: 1px solid var(--color-border);
}

.lawyer-biography__content .lawyer-biography__list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.lawyer-biography__content .lawyer-biography__list li::before {
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
  content: '';
}

.lawyer-biography__content img,
.lawyer-biography__content table,
.lawyer-biography__content video,
.lawyer-biography__content iframe {
  max-width: 100% !important;
}

.lawyer-biography__content img {
  height: auto !important;
}

.lawyer-profile-footer {
  padding: 0 0 clamp(74px, 8vw, 118px);
  background: var(--color-bg);
}

@media (max-width: 991px) {
  .lawyer-profile__card {
    grid-template-columns: minmax(250px, 0.86fr) minmax(0, 1.14fr);
    min-height: 500px;
  }

  .lawyer-profile__portrait,
  .lawyer-profile__portrait img {
    min-height: 500px;
  }

  .lawyer-profile__summary {
    padding: 46px;
  }

  .lawyer-profile__fact {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .lawyer-biography__layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .lawyer-biography__heading {
    position: static;
  }
}

@media (max-width: 767px) {
  .lawyer-profile {
    padding-top: 48px;
  }

  .lawyer-profile__card {
    grid-template-columns: 1fr;
  }

  .lawyer-profile__portrait,
  .lawyer-profile__portrait img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .lawyer-profile__summary {
    padding: clamp(34px, 9vw, 50px) clamp(24px, 7vw, 38px) clamp(42px, 10vw, 58px);
  }

  .lawyer-profile__summary h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .lawyer-profile__fact {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 17px 0;
  }

  .lawyer-profile__fact dt,
  .lawyer-profile__fact dd {
    line-height: 1.65;
  }

  .lawyer-biography__layout {
    gap: 32px;
  }

  .lawyer-biography__content p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lawyer-profile__back,
  .lawyer-profile-footer a {
    transition: none;
  }
}

/* Editorial hierarchy and real list markers, scoped to lawyer biographies. */
.lawyer-profile__fact--specialty dd {
  font-weight: 400;
}

.lawyer-biography__content {
  line-height: 1.7;
}

.lawyer-biography__content h2 {
  font-size: 24px !important;
}

.lawyer-biography__content h3,
.lawyer-biography__content h4 {
  margin-top: 30px !important;
  font-size: 20px !important;
}

.lawyer-biography__content ul {
  display: block;
  list-style: disc outside;
  padding-left: 1.3em;
}

.lawyer-biography__content ol {
  list-style: decimal outside;
}

.lawyer-biography__content li,
.lawyer-biography__content .lawyer-biography__list li {
  display: list-item;
  padding: 0;
  border: 0;
}

.lawyer-biography__content li + li {
  margin-top: 8px;
}

.lawyer-biography__content li::marker {
  color: var(--color-accent);
}

.lawyer-biography__content li p {
  margin: 0;
  text-align: left;
}

.lawyer-biography__content .lawyer-biography__list li:last-child {
  border: 0;
}

.lawyer-biography__content .lawyer-biography__list li::before {
  content: none;
}

@media (max-width: 767px) {
  .lawyer-biography__content h2 { font-size: 22px !important; }
  .lawyer-biography__content h3,
  .lawyer-biography__content h4 { font-size: 18px !important; }
}

/* Public contact fields remain within the profile facts column. */
.lawyer-profile__fact--contact a {
  color: var(--color-link);
  font-weight: 400;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lawyer-profile__fact--contact a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}
