.person-hero {
  display: flow-root;
  padding: 0;
  margin: 0 0 1.75rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.person-photo {
  float: left;
  width: 40%;
  aspect-ratio: 2 / 3;
  margin: 0 1.5rem 1rem 0;
  border-radius: var(--radius);
  background-color: #2a2420;
  background-repeat: no-repeat;
  border: 0;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
.person-photo:not(.is-placeholder) {
  background-position: center 18%;
  background-size: cover;
}
.person-photo.is-placeholder {
  background-color: #241f1b;
  background-image: url('/img/thumbnails.webp?v=6');
  background-repeat: no-repeat;
  background-size: 880%;
}
.person-meta {
  display: contents;
}
/* Keep share top-right of the title without a flex BFC (that drops under the photo). */
.title-share-row {
  position: relative;
  display: block;
  margin: 0 0 0.45rem;
  padding-right: 4.5rem;
}
.title-share-row h1 {
  margin: 0;
}
.title-share-row .share-wrap {
  position: absolute;
  top: 0.2rem;
  right: 0;
}
.person-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}
.person-roles {
  margin: 0 0 0.35rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.person-social {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
}
.person-social a {
  color: var(--accent-2);
}
.person-aka {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.person-vitals {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0.9;
}
.person-lede {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.person-bio {
  border: 0;
  margin: 0.35rem 0 0.75rem;
  padding: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}
.person-bio-h {
  /* First section heading stays in the text column beside the photo. */
  display: inline-block;
  max-width: 100%;
  margin: 1.25rem 0 0.45rem;
  padding: 0 0 0.28rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--accent-2);
  border-bottom: 2px solid var(--accent);
}
.person-bio-h:first-child {
  margin-top: 0.65rem;
}
/* Later sections (Personal life / …) drop below the floated photo. */
.person-bio-h ~ .person-bio-h {
  display: block;
  clear: left;
  width: fit-content;
}
.person-bio p {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
}
.person-bio p:last-child {
  margin-bottom: 0;
}
.person-bio-source {
  margin: 1.5rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  font-size: 0.85rem;
  line-height: 1.35;
  clear: both;
  color: var(--muted);
}
.person-bio-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.person-bio-source a:hover {
  text-decoration: underline;
}
.person-hero .data-sources {
  clear: both;
  margin-top: 0.35rem;
}
.person-page .section-head {
  margin-bottom: 1.15rem;
}
#person-shows-ssr[hidden],
#person-shows[hidden],
.person-social[hidden],
.person-roles[hidden],
.person-vitals[hidden],
.person-bio[hidden],
.person-empty[hidden] {
  display: none !important;
}
/* Build live filmography off-screen while SSR grid stays visible — then swap. */
#person-shows.is-hydrating {
  position: absolute;
  left: 0;
  right: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}
.person-page {
  position: relative;
}
.person-film-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.person-film-title {
  min-width: 0;
  flex: 1 1 12rem;
}
.person-film-title h2 {
  margin: 0 0 0.25rem;
}
.person-role-filter {
  display: inline-flex;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
}
.person-role-filter select {
  height: var(--ctrl-h, 2.4rem);
  min-width: 10.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.person-role-filter select option {
  background: var(--bg-elev);
  color: var(--ink);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.person-empty {
  margin: 0.5rem 0 0;
}

@media (max-width: 800px) {
  .person-hero {
    margin: 0 0 1.35rem;
  }
  .person-photo {
    float: none;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 0.9rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border: 0;
  }
  .person-hero h1 {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
  }
  .person-bio-h ~ .person-bio-h {
    clear: none;
  }
  #person-shows .credit-expand-arrow {
    margin-left: 0.55rem;
  }
  #person-shows .credit-expand-body,
  #person-shows .credit-expand-loading {
    border-radius: 0;
  }
}
@media (max-width: 560px) {
  .person-photo {
    float: none;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 0.85rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}
