 
@layer site-overrides {
  .page_staff-detail #detail-hero {
    padding-top: calc(var(--header-height-scrolled) + 40px);
  }
  .staff-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 48px;
    padding: 64px;
    background: #f5f3ee;
    border-radius: 12px;
  }
  .staff-profile__number,
  .staff-story__number {
    color: var(--brand-navy);
    font:
      700 20px/1.4 "Josefin Sans",
      sans-serif;
    letter-spacing: 0.12em;
    margin: 0 0 5px;
  }
  .staff-profile__department {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 9px;
    border: 2px solid var(--brand-navy);
    color: var(--brand-navy);
    font-weight: 500;
  }
  .staff-profile h2 {
    margin: 0 0 32px;
    color: var(--brand-navy);
  }
  .staff-profile__name {
    margin: 0 0 8px;
    font-size: var(--text-subsection);
    font-weight: 700;
  }
  .staff-profile__copy > .site-text {
    color: #dc8027;
    margin: 0;
  }
  .staff-profile__mascots {
    position: relative;
    height: 236px;
    isolation: isolate;
  }
  .staff-profile__mascot {
    position: absolute;
    display: block;
    width: 64%;
    height: auto;
    object-fit: contain;
    transform-origin: 50% 90%;
  }
  .staff-profile__mascot:first-child {
    left: -2%;
    top: -30px;
  }
  .staff-profile__mascot:last-child {
    width: 78%;
    right: -58px;
    bottom: -54px;
    z-index: 1;
  }
  .staff-story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 64px;
    margin: 80px 0;
  }
  .staff-story:nth-of-type(odd) .staff-story__visual {
    grid-column: 1;
    grid-row: 1;
  }
  .staff-story:nth-of-type(odd) .staff-story__copy {
    grid-column: 2;
    grid-row: 1;
  }
  .staff-story__visual {
    margin: 0;
  }
  .staff-story__visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .staff-story--portrait .staff-story__visual img {
    max-width: min(100%, 460px);
    max-height: 630px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
  }
  .staff-story__answer + .staff-story__answer {
    margin-top: 40px;
  }
  .staff-story__number {
    color: var(--brand-navy);
    margin-bottom: 5px;
  }
  .staff-story h2 {
    color: var(--brand-navy);
    margin: 0 0 20px;
  }
  .staff-story .site-text {
    margin: 0;
  }
  .staff-day {
    background: #f5f3ee;
    padding: 48px 32px;
    border-radius: 12px;
    margin: 80px 0;
  }
  .staff-day > h2 {
    text-align: center;
    margin: 0 0 48px;
    color: var(--brand-navy);
  }
  .staff-day__timeline {
    display: grid;
    grid-template-columns: repeat(var(--schedule-columns, 6), minmax(0, 1fr));
    padding: 0;
    margin: 0;
    list-style: none;
    row-gap: 32px;
  }
  .staff-day__item {
    display: grid;
    grid-template-rows: auto 24px auto;
    text-align: center;
    align-content: start;
    position: relative;
    padding: 0 8px;
    min-width: 0;
  }
  .staff-day__item::after {
    content: "";
    position: absolute;
    top: 41px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #edc287;
  }
  .staff-day__row-end::after,
  .staff-day__item:last-child::after {
    display: none;
  }
  .staff-day__time {
    font:
      700 24px/30px "Josefin Sans",
      sans-serif;
    color: var(--brand-navy);
  }
  .staff-day__dot {
    background: #ef9c30;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    justify-self: center;
    align-self: center;
    z-index: 1;
  }
  .staff-day__item strong {
    font-size: var(--text-compact);
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .staff-day__photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  .staff-day__photos img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
  }
  .staff-off {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    align-items: start;
    gap: 64px;
    margin: 80px 0;
  }
  .staff-off__copy {
    padding-top: 64px;
  }
  .staff-off h2 {
    color: var(--brand-navy);
    margin: 0 0 24px;
  }
  .staff-off__characters {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1.1;
    justify-self: center;
    isolation: isolate;
  }
  .staff-off__comment {
    position: absolute;
    top: 0;
    left: 4%;
    width: clamp(140px, 12vw, 160px);
    aspect-ratio: 1;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 20px;
    border: 2px solid var(--brand-navy);
    border-radius: 50%;
    color: var(--brand-navy);
    background: white;
    text-align: center;
    font-size: 16px;
    text-wrap: balance;
    font-weight: 700;
    line-height: 1.8;
    z-index: 2;
  }
  .staff-off__cast img {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
    transform-origin: 50% 90%;
  }
  .staff-off__cast img:first-child {
    width: 34%;
    right: 0;
    top: 24%;
  }
  .staff-off__cast img:last-child {
    width: 80%;
    left: 8%;
    bottom: 0;
    z-index: 1;
  }
  .staff-off > img {
    width: 100%;
    max-width: 440px;
    height: auto;
    justify-self: center;
  }
  .staff-profile,
  .staff-off {
    overflow: clip;
  }
  .staff-car-pending img {
    opacity: 0;
  }
  .staff-car-entered img {
    animation: staff-car-arrive 900ms cubic-bezier(0.22, 0.68, 0.3, 1) both;
  }
  .staff-car-entered img:last-child {
    animation-delay: 220ms;
  }
  @keyframes staff-car-arrive {
    0% {
      opacity: 0;
      transform: translateX(120px);
    }
    20% {
      opacity: 1;
    }
    78% {
      transform: translateX(-4px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @media (max-width: 1024px) {
    .staff-profile {
      padding: 40px 24px;
      grid-template-columns: minmax(0, 1fr) 220px;
      gap: 24px;
    }
    .staff-profile__mascots {
      height: 200px;
    }
    .staff-profile__mascot:first-child {
      top: 0;
    }
    .staff-profile__mascot:last-child {
      right: -16px;
      bottom: 0;
    }
    .staff-story,
    .staff-off {
      gap: 32px;
      margin: 56px 0;
    }
    .staff-day {
      padding: 40px 20px;
    }
    .staff-day__item {
      padding: 0 4px;
    }
  }
  @media (max-width: 768px) {
    .staff-off__copy {
      padding-top: 0;
    }
    .staff-off__characters {
      max-width: 360px;
      min-height: 330px;
    }

    .staff-profile {
      display: block;
      position: relative;
      padding: 32px 20px;
    }
    .staff-profile__mascots {
      width: 100%;
      max-width: 280px;
      height: 220px;
      margin: 24px 0 0 auto;
    }
    .staff-profile__mascot:last-child {
      right: -12px;
      bottom: -16px;
    }
    .staff-profile__department {
      font-size: var(--text-compact);
    }
    .staff-story,
    .staff-off {
      grid-template-columns: minmax(0, 1fr);
      gap: 24px;
      margin: 48px 0;
    }
    .staff-story:nth-of-type(odd) .staff-story__visual,
    .staff-story:nth-of-type(odd) .staff-story__copy {
      grid-column: auto;
      grid-row: auto;
    }
    .staff-story--portrait .staff-story__visual img {
      max-width: min(100%, 340px);
    }
    .staff-day {
      margin: 48px 0;
    }
    .staff-day > h2 {
      margin-bottom: 32px;
    }
    .staff-day__timeline {
      display: block;
    }
    .staff-day__item {
      display: grid;
      grid-template-columns: 70px 18px minmax(0, 1fr);
      grid-template-rows: auto;
      align-items: start;
      gap: 8px;
      padding: 0 0 24px;
      text-align: left;
    }
    .staff-day__item::after {
      display: block;
      top: 15px;
      left: 86px;
      width: 2px;
      height: 100%;
    }
    .staff-day__item:last-child::after {
      display: none;
    }
    .staff-day__time {
      font-size: 20px;
    }
    .staff-day__dot {
      margin-top: 9px;
      align-self: start;
    }
    .staff-day__item strong {
      padding-top: 4px;
    }
    .staff-day__photos {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 24px;
    }
    .staff-off > img {
      max-width: 300px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .staff-profile__mascot,
    .staff-off__cast img {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}

.page_staff-detail .sd-related__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 306px));
  justify-content: center;
  gap: 32px;
}
.page_staff-detail .sd-related__list > li { width: 100%; min-width: 0; margin: 0; }
.page_staff-detail .sd-related__list > [hidden] { display: none; }
.page_staff-detail .sd-related__list .sf-card,
.page_staff-detail .sd-related__list .sf-card__photo,
.page_staff-detail .sd-related__list .sf-card__body {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: auto;
}
.page_staff-detail .sd-related__list .sf-card__photo { max-height: none; }
.page_staff-detail .sd-related__more { width: min(100%, 306px); margin-inline: auto; }
@media (min-width: 641px) and (max-width: 1024px) {
  .page_staff-detail .sd-related__list { grid-template-columns: repeat(2, minmax(0, 306px)); }
}
@media (max-width: 640px) {
  .page_staff-detail .sd-related__list { grid-template-columns: minmax(0, 306px); }
}

@media (min-width: 1025px) {
  .page_staff-detail .staff-off__characters {
    display: grid; gap: 16px; width: 100%; max-width: 360px; aspect-ratio: auto;
  }
  .page_staff-detail .staff-off__comment {
    position: relative; inset: auto; justify-self: start; width: 150px; margin: 0 0 0 8%;
  }
  .page_staff-detail .staff-off__cast { position: relative; width: 100%; aspect-ratio: 1.45; }
  .page_staff-detail .staff-off__characters .staff-off__cast > img { scale: 1; }
  .page_staff-detail .staff-off__cast > img:first-child { top: 0; }
}
