/* Author / people profile pages (/company/team/<slug>/).
 *
 * The representative profile layout is reused wholesale - same hero, same
 * facts strip, same body grid - so a person page and a representative page
 * read as one family. Only the two things a person page has and a company
 * page does not are defined here: the portrait that replaces the decorative
 * grid panel in the hero, and the credential list in the body.
 *
 * Kept out of inner.css on purpose: that file is linked by several hundred
 * pages and every one of them would need its ?v= bumped for a rule that
 * only three pages use.
 */

.author-hero .rep-profile-visual {
  padding: 0;
  background-image: none;
  background-color: #1a1a19;
  display: block;
}

/* The circle flourish belongs to the representative pages; behind a
 * photograph it reads as a lens flare. */
.author-hero .rep-profile-visual:before { content: none; }

.author-portrait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
  object-position: 50% 22%;
}

.author-credentials {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.author-credentials li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.author-credentials span {
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--orange);
}

.author-credentials strong {
  font: 600 1.05rem/1.35 var(--display);
}

.author-body h3 {
  font: 600 clamp(1.3rem, 1.9vw, 1.6rem)/1.15 var(--display);
  letter-spacing: -.03em;
  margin: 46px 0 14px;
}

.author-body h3:first-child { margin-top: 0; }

/* The byline sits under an article headline, so it stays quiet: one line,
 * the link carrying the only colour. */
.author-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .95rem;
  margin: 0;
}

.author-byline img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  flex: none;
}

.author-byline a {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.author-byline em {
  font-style: normal;
  opacity: .62;
}

/* The link from a team card on /contact/ through to the profile page.
 * .portrait-card a+a greys out every link after the first, which is right
 * for a phone number and wrong for a navigation link, so this overrides it.
 * On the accent cards the background is already orange, so the link takes
 * the ink colour instead. */
.portrait-card a.profile-link {
  color: var(--orange);
  font-weight: 700;
  margin-top: 7px;
}

.portrait-card.accent a.profile-link { color: var(--ink); }

@media (max-width: 950px) {
  .author-portrait { min-height: 460px; }
}

@media (max-width: 680px) {
  .author-portrait { min-height: 380px; }
  .author-credentials li { grid-template-columns: 1fr; gap: 6px; }
}
