.sanctuary-chapters {
  color-scheme: dark;
  background: #192b24;
  color: #faf7ec;
  padding-inline: clamp(.4rem, 3.5vw, 3.5rem);
}
.sanctuary-chapters[hidden] { display: none; }
.sanctuary-chapter-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 72rem);
  margin-inline: auto;
}
.sanctuary-chapter-list button {
  appearance: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.6rem, 1.4vw, 1.25rem);
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: .65rem .2rem;
  color: #bac8bb;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: 500 clamp(.8rem, 1.4vw, 1.05rem)/1.2 var(--body, Arial, sans-serif);
  cursor: pointer;
}
.sanctuary-chapter-list button::after {
  position: absolute;
  inset: auto 6% 0;
  height: 2px;
  background: transparent;
  content: "";
}
.sanctuary-chapter-list button:is(:hover, :focus-visible, [aria-pressed="true"]) { color: #fff9eb; }
.sanctuary-chapter-list button[aria-pressed="true"]::after { background: #d7b57a; }
.sanctuary-chapter-list button:focus-visible { outline: 2px solid #d7b57a; outline-offset: -4px; }
.sanctuary-estates-profile .sanctuary-hero .hero-image .sanctuary-chapter-still {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--model-framing, 50%);
  pointer-events: none;
}
.sanctuary-estates-profile .sanctuary-hero .hero-image .sanctuary-chapter-still[hidden] { display: none; }
@media (max-width: 380px) {
  .sanctuary-chapters { padding-inline: .25rem; }
  .sanctuary-chapter-list button { padding-inline: 0; }
}
@media (min-width: 700px) {
  .sanctuary-chapter-list button { min-height: 66px; }
  .sanctuary-chapter-list button::before {
    content: "";
    flex: none;
    width: clamp(3.5rem, 5.4vw, 5.1rem);
    aspect-ratio: 16 / 9;
    background: center / cover no-repeat var(--model-photo);
    opacity: .72;
  }
  .sanctuary-chapter-list button:is(:hover, :focus-visible, [aria-pressed="true"])::before { opacity: 1; }
}
@media (forced-colors: active) {
  .sanctuary-chapter-list button[aria-pressed="true"] { border-bottom: 3px solid Highlight; }
}
