.cp-hero {
  --ink: #11182c;
  --ice: #9ee6ef;
  color: #fff;
  background: radial-gradient(ellipse at 75% 35%, #163a4b 0%, transparent 42%), radial-gradient(ellipse at 24% 25%, #18253a, transparent 54%), #080e1a;
  font-family: "Arial", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  overflow: hidden;
  border-bottom: 1px solid #425669;
}
.cp-hero *, .cp-hero *::after, .cp-hero *::before { box-sizing: border-box; }
.cp-hero .cp-grid {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 76px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: calc(clamp(430px, 42vw, 570px) + 60px);
}
.cp-hero .cp-grid:not(:has(.cp-portrait)) { grid-template-columns: 1fr; }
.cp-bio { align-self: center; min-width: 0; padding: 54px 0; z-index: 1; overflow-wrap: anywhere; }
.cp-label { font-weight: 700; letter-spacing: .12em; }
.cp-kind {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  color: #b8eff3;
  background: #233b4a;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: .045em;
}
.cp-leagues { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-kind[data-league] { color: #101824; }
.cp-kind[data-league="1"] { background: #eca647; }
.cp-kind[data-league="2"] { background: #de6252; }
.cp-hero #cp-name { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; font-family: inherit; font-size: clamp(50px, 7.2vw, 98px); font-weight: 800; line-height: 1.12; letter-spacing: .015em; color: white; margin: 18px 0 6px; padding: 0; border: 0; }
.cp-hero .cp-latin { margin: 0; font: italic 700 clamp(18px, 2.1vw, 30px)/1.25 Arial, sans-serif; text-transform: uppercase; letter-spacing: .085em; color: var(--ice); }
.cp-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 25px 0 0; }
.cp-position { border: 1px solid #90a9bb; border-radius: 3px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
.cp-role { white-space: pre-wrap; font-size: 17px; font-weight: 600; }
.cp-teams { display: grid; justify-items: start; gap: 8px; border-top: 1px solid #536174; margin: 64px 0 0; padding: 17px 0 0; max-width: 430px; }
.cp-label { color: #c0ccda; font-size: 12px; }
.cp-hero .cp-team { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 42px; color: #fff; text-decoration: none; font-size: clamp(18px, 2vw, 24px); font-weight: bold; }
.cp-hero .cp-team:hover, .cp-hero .cp-team:focus-visible, .cp-bio > a { color: var(--ice); text-decoration: underline; }
.cp-teams { width: 100%; gap: 14px; }
.cp-assignment { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; width: 100%; align-items: baseline; }
.cp-assignment + .cp-assignment { border-top: 1px solid #384b61; padding-top: 14px; }
.cp-division { min-width: 2em; color: #ecac59; font-weight: 700; font-size: 14px; }
.cp-division[data-league="2"] { color: #e78971; }
.cp-affiliation-info { min-width: 0; display: grid; justify-items: start; gap: 4px; }
.cp-affiliation-info:only-child { grid-column: 1 / -1; }
.cp-affiliation-info .cp-team { display: block; min-height: 0; line-height: 1.35; }
.cp-affiliation-info .cp-role { color: #ced6df; font-size: 16px; line-height: 1.55; }
.cp-portrait { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; align-self: stretch; isolation: isolate; clip-path: inset(0 -100vw); }
.cp-backdrop {
  position: absolute;
  top: 46%; left: 55%;
  width: 182%; max-width: none; height: 115%;
  object-fit: contain; object-position: center;
  transform: translate(-50%, -50%);
  filter: grayscale(1) contrast(.7) brightness(.86);
  mix-blend-mode: luminosity; opacity: .17;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 85%, transparent);
}
.cp-photo {
  position: relative; display: block; flex: none; width: 100%; height: auto; max-height: none;
  filter: drop-shadow(0 0 1px #90ddeb99) drop-shadow(-10px 12px 20px #020c1790);
}
body.core-person-profile:has(.cp-hero) { background-color: #080e1a; }
.core-person-profile .cp-hero ~ .personal-detail {
  box-sizing: border-box; width: min(calc(100% - 48px), 1040px); margin: 0 auto; padding: clamp(24px, 4vw, 44px) 0;
  color: #c2d1db; font: inherit; text-align: left;
}
.core-person-profile .cp-hero ~ .personal-detail > .detail {
  background: transparent; margin: 0; padding: 0;
  font-size: 15px; line-height: 1.75; overflow-wrap: anywhere;
}
.core-person-profile .cp-hero ~ .personal-detail > .detail:not([hidden]) ~ .detail { margin-top: 20px; padding-top: 16px; border-top: 1px solid #29394d; }
.core-person-profile .cp-hero ~ .personal-detail .cp-card-title {
  border: 0; padding: 0; margin: 0 0 2px; color: #e2eaf0;
  font-family: inherit; font-size: 18px; line-height: 1.6; font-weight: 700;
}
.core-person-profile .cp-hero ~ .personal-detail a { color: #a5ccf4; }
.core-person-profile .cp-hero ~ .personal-detail p { margin: 0; white-space: pre-line; }
.core-person-profile .cp-hero ~ .personal-detail img { max-width: 100%; height: auto; }
.core-person-profile .cp-hero ~ .personal-detail:not(:has(.detail:not([hidden]))) { display: none; }
@media (max-width: 650px) {
  .cp-hero .cp-grid { grid-template-columns: 1fr; padding: 0; min-height: auto; }
  .cp-portrait { grid-row: 1; align-self: end; border-bottom: 1px solid #425669; }
  .cp-backdrop { width: 154%; }
  .cp-bio { padding: 26px 24px 32px; }
  .cp-hero #cp-name { margin-top: 10px; font-size: clamp(46px, 12.6vw, 64px); }
  .cp-roles { margin-top: 17px; }
  .cp-teams { margin-top: 36px; }
}


@media (prefers-reduced-motion: no-preference) {
  .cp-portrait { animation: cp-portrait-in 720ms 100ms cubic-bezier(.16, 1, .3, 1) both; }
  .cp-bio { animation: cp-bio-in 540ms 260ms ease-out both; }
}
@keyframes cp-portrait-in {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}
@keyframes cp-bio-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.core-person-profile .cp-gallery {
  width: min(calc(100% - 48px), 1040px);
  margin: clamp(24px, 4vw, 48px) auto;
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
}
.core-person-profile .cp-gallery:empty { display: none; }
.cp-gallery-row { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: inherit; }
.cp-gallery-tile {
  position: relative; display: block; padding: 0; border: 0; border-radius: 4px;
  overflow: hidden; background: #131c2a; aspect-ratio: 3 / 2; cursor: zoom-in;
}
.cp-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-gallery-row:only-child > :only-child { width: min(100%, 680px); justify-self: center; }
.cp-gallery-featured { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.cp-gallery-featured > :first-child { grid-row: span 2; }
.cp-gallery-featured > :nth-child(n+2) { aspect-ratio: auto; min-height: 0; }
.cp-gallery-featured img { position: absolute; inset: 0; }
.cp-gallery-tile:focus-visible, .cp-photo-dialog button:focus-visible { outline: 2px solid #b4e8ef; outline-offset: 3px; }
html:has(.cp-photo-dialog[open]) { overflow: hidden; }
dialog.cp-photo-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent;
  max-width: calc(100vw - 32px); max-height: 88vh; max-height: 88dvh;
}
.cp-photo-dialog::backdrop { background: rgb(7 13 25 / 92%); }
.cp-photo-dialog img { display: block; max-width: 100%; max-height: 88vh; max-height: 88dvh; object-fit: contain; }
.cp-photo-dialog button {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0;
  background: #101827; color: white; border: 1px solid #8b99a9; border-radius: 50%;
  font: 26px/1 sans-serif; cursor: pointer;
}
@media (max-width: 650px) {
  .core-person-profile .cp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-gallery-row { display: contents; }
  .cp-gallery-row:first-child > :first-child { grid-column: span 2; }
  .cp-gallery-featured > .cp-gallery-tile { aspect-ratio: 3 / 2; grid-row: auto; }
  .cp-gallery[data-even] .cp-gallery-row:last-child > :last-child { grid-column: span 2; }
}
