.has-person-profile .title-block {
  opacity: 0 !important;
}
.person-profile {
  position: fixed;
  z-index: 6;
  right: clamp(24px, 3.4vw, 54px);
  bottom: 92px;
  width: clamp(254px, 26vw, 318px);
  --profile-max-height: min(314px, 36dvh);
  overflow: hidden;
  border: 1px solid #d7dec137;
  border-radius: 12px;
  color: var(--paper);
  background: #10150ed4;
  box-shadow: 0 9px 28px #0004;
}
.person-profile-optics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(132deg, #d3e2c415, transparent 57%, #7891600c);
}
.person-profile-content {
  position: relative;
  max-height: var(--profile-max-height);
  padding: 12px 13px 11px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.person-profile-content:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -3px;
  border-radius: inherit;
}
@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .person-profile {
    background: #10150e90;
    -webkit-backdrop-filter: blur(5px) saturate(1.1);
    backdrop-filter: blur(5px) saturate(1.1);
    backdrop-filter: var(--liquid-refraction, url('#resin-refraction')) blur(3px) saturate(1.1);
  }
}
html[data-theme='day'] .person-profile {
  border-color: #5363454d;
  background-color: #faf9ecc7;
  box-shadow: 0 9px 28px #2f3b251b;
}
html[data-theme='day'] .person-profile-optics {
  background: linear-gradient(132deg, #fff7, transparent 57%, #657e3920);
}
.person-profile-kicker,
.person-profile-status {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 1.4px;
  margin: 0;
}
.person-profile-status {
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.5;
}
.person-profile-header.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: start;
}
.person-profile-header.has-photo .person-profile-kicker,
.person-profile-header.has-photo .person-profile-name {
  grid-column: 1;
}
.person-profile-photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: clamp(64px, 6.4vw, 86px);
  margin: 0;
}
.person-profile-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 5px;
  user-select: none;
}
.person-profile-photo-label {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.25;
  color: var(--muted);
}
.person-profile-name {
  font-size: clamp(23px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 5px 0 8px;
  overflow-wrap: anywhere;
}
.person-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 0 10px;
}
.person-profile-detail {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}
.person-profile-location-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 0 0 8px;
}
.person-profile-media {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--paper);
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
}
.person-profile-media:hover {
  border-color: var(--accent);
  color: var(--paper);
}
.person-profile-media:focus-visible {
  outline-offset: 2px;
}
.person-profile-media-arrow {
  color: var(--accent);
}
.person-material-nav {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}
.person-material-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--paper);
  pointer-events: auto;
  box-shadow: 0 2px 12px #0005;
}
.person-material-arrow.previous { left: -48px; }
.person-material-arrow.next { right: -48px; }
.person-material-arrow::before {
  content: '';
  width: 0;
  height: 0;
  border: 6px solid transparent;
}
.person-material-arrow.previous::before { border-right: 8px solid currentColor; margin-left: -6px; }
.person-material-arrow.next::before { border-left: 8px solid currentColor; margin-right: -6px; }
.person-material-arrow:disabled { opacity: .34; cursor: default; }
.person-material-arrow:enabled:is(:hover, :focus-visible) {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 850px) {
  .person-material-arrow.previous { left: -8px; }
  .person-material-arrow.next { right: -8px; }
}
.person-profile-bio {
  color: var(--paper);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
  margin: 0 0 10px;
}
.has-person-profile #context {
  padding: 4px 7px;
}
.has-person-profile #context > div {
  display: none;
}
@media(max-width:650px) {
  .has-person-profile #gesture-hint { visibility: hidden; }
  .person-profile {
    right: 18px;
    bottom: max(79px, calc(68px + env(safe-area-inset-bottom, 0px)));
    left: 72px;
    width: auto;
    --profile-max-height: clamp(104px, 18dvh, 140px);
  }
  .person-profile-content { padding: 9px 10px; }
  .person-profile-name {
    font-size: 21px;
    margin: 4px 0 5px;
  }
  .person-profile-photo { width: 56px; }
  .person-profile-meta { margin-bottom: 5px; }
  .person-profile-bio {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 0;
  }
  .has-person-profile #context {
    left: 18px;
    bottom: max(80px, calc(69px + env(safe-area-inset-bottom, 0px)));
    transform: none;
  }
}
@media(max-height:520px) and (min-aspect-ratio:5/4) {
  .person-profile {
    right: 18px;
    bottom: 66px;
    left: auto;
    width: clamp(214px, 25vw, 240px);
    --profile-max-height: min(166px, 43dvh);
  }
  .person-profile-name { font-size: 21px; }
  .person-profile-photo { width: 51px; }
  .person-profile-bio { font-size: 11px; }
}
