body:has(.photo-preview[open]) { overflow: hidden; }
.detail-band { padding-top: var(--detail-first-gap); }
.detail-band + .detail-band { padding-top: var(--detail-section-gap); }
.detail-band:last-child { padding-bottom: var(--detail-bottom-gap); }
.detail-width { --content-max: clamp(1100px, calc(165px + 65vw), 2280px); }
.detail-heading-row { display: grid; justify-items: center; gap: 12px; margin-bottom: 20px; text-align: center; }
.detail-band h2 { font-size: var(--detail-section-size); }
:is(.members-body, .staff-body) .detail-heading-row h2 { font-size: clamp(1.875rem, 2.9vw, 2.5rem); }
.media-card-copy h3 { font-size: var(--preview-card-title-size); }
.member-profile h2 { font-size: var(--detail-item-size); }
.detail-end { margin-top: clamp(24px, 4vw, 44px); text-align: center; }

[data-theme="news"] body { background: var(--pattern-grid), color-mix(in srgb, var(--home-news-base) 18%, white); }
[data-theme="members"] body { background: var(--pattern-stripes), color-mix(in srgb, var(--home-members-base) 22%, white); }
[data-theme="guidelines"] body { background: var(--pattern-checks), color-mix(in srgb, var(--home-guidelines-base) 38%, white); }
[data-theme="media"] body { background: var(--pattern-argyle), color-mix(in srgb, var(--home-media-base) 21%, white); }

.mode-switch, .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mode-switch { justify-content: center; }
.news-pagination { margin-top: 20px; }
.news-pagination a[aria-current="page"] { font-weight: 900; }
.mode-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--preview-white);
  font-size: var(--text-label);
  font-weight: 700;
  text-decoration: none;
}


.empty-panel, .reading-panel {
  background: var(--color-plain);
  border-radius: var(--preview-card-radius);
}
.empty-panel { display: grid; justify-items: center; gap: 14px; padding: clamp(20px, 4vw, 48px); text-align: center; }
.press-empty { padding-block: clamp(13px, 2vw, 24px); }
.reading-panel { max-width: 850px; padding: clamp(18px, 4vw, 48px); }
@media (min-width: 1600px) {
  .reading-panel { max-width: clamp(850px, calc(440px + 25vw), 1100px); }
}
.content-note { color: var(--color-muted); font-size: var(--text-label); font-weight: 700; }
.news-list, .roster, .media-card-list { margin: 0; padding: 0; list-style: none; }
.card-rows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}
.card-rows > li {
  flex: 0 0 min(var(--card-max, 100%), calc((100% - (var(--card-columns) - 1) * var(--card-gap)) / var(--card-columns)));
  min-width: 0;
}
.news-list { --card-columns: 3; --card-gap: clamp(12px, 2vw, 24px); margin-top: 10px; }
.article-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 24px;
  border-radius: var(--radius-panel);
}
.news-list time, .article-heading time { font-family: var(--font-latin); font-weight: 800; }
.news-body .reading-panel > .rule-text { max-width: 40em; margin-inline: auto; text-align: center; }
.article-heading { display: grid; justify-items: center; gap: 8px; margin-bottom: 24px; text-align: center; }
.article-heading h1 { font-size: var(--detail-section-size); text-wrap: balance; overflow-wrap: anywhere; }

.roster { --card-columns: 4; --card-gap: clamp(12px, 2.2vw, 26px); }
.roster:not(.roster-list) { --card-max: 335px; }
.roster-link { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-panel); background: transparent; color: var(--color-brand); text-decoration: none; }
.roster-card-face { position: relative; display: block; border-radius: inherit; pointer-events: none; }
.roster-photo {
  position: relative;
  aspect-ratio: 725 / 1024;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--pattern-dots), var(--portrait-color);
}
.roster-image { display: block; width: 100%; height: 100%; min-height: 0; }
.roster-image img { width: 100%; height: 100%; object-fit: cover; }
.roster-photo .roster-image .roster-placeholder { padding: 10% 12% 16%; object-fit: contain; object-position: center; transform: none; }
.roster-name {
  display: block;
  font: 900 clamp(1rem, 2vw, 1.4rem) / 1.4 var(--font-display);
  text-align: center;
  overflow-wrap: anywhere;
}
.roster:not(.roster-list) .roster-name {
  position: absolute;
  inset-inline: 8px;
  bottom: 10px;
  color: #fff;
  text-shadow: 0 1px 2px #281036, 0 0 6px #281036d9;
}
.roster-list { --card-columns: 2; }
.roster-list .roster-card-face { display: grid; grid-template-columns: clamp(76px, 13vw, 145px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px; background: var(--preview-white); }
.roster-list .roster-photo { aspect-ratio: 1; }
.roster-list .roster-name { padding: 0; text-align: start; }
.member-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.profile-visual { display: grid; place-items: center; }
.profile-visual > .roster-photo { width: min(100%, clamp(422px, 30vw, 620px), calc((100dvh - 92px) * 725 / 1024)); }
.profile-copy { display: grid; align-content: center; gap: 16px; text-align: center; }
.profile-heading h1 { padding-inline: 52px; font-size: clamp(1.8rem, 3.5vw, 3.25rem); overflow-wrap: anywhere; }
.profile-heading::after { content: ''; display: block; width: min(82%, 28rem); height: 1px; margin: 10px auto 0; background: var(--preview-card-border); }
.profile-bio p { max-width: 38em; margin-inline: auto; }
.profile-copy > :is(.profile-links, .profile-video) { display: grid; gap: 8px; padding-top: 8px; }
.profile-links h2 { font-family: var(--font-latin); letter-spacing: .05em; }
.profile-links .detail-actions { justify-content: center; }
.profile-links .return-link { min-inline-size: var(--top-control-height); }
.profile-video .video-cover { width: min(100%, 34rem); margin-inline: auto; overflow: hidden; border-radius: var(--radius-panel); }

.rule-text { overflow-wrap: anywhere; }
.guidelines-body .rule-text { text-align: center; }
.rule-text p + p, .rule-text ul + p { margin-top: .85em; }
.rule-section { padding-block: 20px; }
.rule-section + .rule-section { border-top: 1px solid var(--preview-card-divider); }
.rule-section h2 { margin-bottom: .7em; text-align: center; }
.rule-section ul { max-width: 33rem; margin-inline: auto; padding-inline-start: 1.25em; text-align: start; }
.rule-section li + li { margin-top: .45em; }

.media-carousel .rail {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: var(--card);
  justify-content: safe center;
}

@media (width > 1024px), (width > 850px) and (orientation: landscape) {
  .media-carousel .rail { grid-auto-columns: min(620px, calc((100% - 2 * var(--gap)) / 3)); }
}
.media-carousel #article-gallery {
  grid-template-rows: auto;
  grid-auto-columns: clamp(228px, 66vw, 342px);
}
@media (width > 1024px), (width > 850px) and (orientation: landscape) {
  .media-carousel #article-gallery { grid-auto-columns: min(380px, calc((100% - 2.65 * var(--gap)) / 3.3)); }
}
@media (max-width: 850px), (max-width: 1024px) and (orientation: portrait) {
  .media-carousel :is(#article-gallery, #video-gallery) + .rail-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
  }
}
.gallery-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.media-card-list { --card-columns: 3; --card-gap: clamp(12px, 2vw, 24px); }
.video-band .media-card-list > li:only-child {
  flex-basis: min(100%, clamp(600px, 46vw, 840px));
}
#videos-title, #press-title { scroll-margin-block-start: 112px; }
.media-demo-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-demo-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 33px;
  border-radius: 9px;
  background: #4c205f;
  color: #fff;
}
.media-demo-play::before {
  content: "";
  width: 12px;
  height: 14px;
  margin-inline-start: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.video-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--home-photo-dark); }
.video-cover > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-video-screen { overflow: hidden; border-radius: 4px; background: var(--home-photo-dark); }
.media-video-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--color-brand);
  font-size: .875rem;
}
.media-video-caption span { flex: none; }
.media-video:focus-within .video-cover.preview-zoom-image { scale: 1; }
.media-card-copy { display: grid; justify-items: center; gap: 6px; padding: 12px; text-align: center; }
.media-article { height: 100%; }
.media-article :is(a, .media-article-example) { display: block; height: 100%; color: inherit; text-decoration: none; }
.media-article-face { height: 100%; pointer-events: none; }
.media-article a:is(:hover, :focus-visible) h3 { text-decoration: underline; }
.photo-control { width: 44px; height: 44px; border: 0; color: inherit; background: var(--preview-white); border-radius: var(--radius-panel); font-size: 1.2rem; }

.photo-control:focus-visible { outline-color: var(--color-focus); }

@media (max-width: 850px), (max-width: 1024px) and (orientation: portrait) {
  .member-profile { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .profile-copy { gap: 14px; }
  .profile-heading h1 { padding-inline: 0; text-wrap: balance; }
  .profile-visual > .roster-photo { width: min(100%, 290px, max(150px, calc((100dvh - 170px) * 725 / 1024))); }
  .profile-bio { text-wrap: pretty; }
  .profile-copy > :is(.profile-links, .profile-video) { padding-top: 0; }
  .profile-links .detail-actions { gap: 10px; }
}

@media (700px < width <= 850px), (850px < width <= 1024px) and (orientation: portrait) {
  .profile-visual > .roster-photo { width: min(100%, 350px, max(150px, calc((100dvh - 170px) * 725 / 1024))); }
}

@media (max-width: 850px), (max-width: 1024px) and (orientation: portrait) {
  .news-list, .roster-list, .media-card-list { --card-columns: 1; }
  .roster:not(.roster-list) { --card-columns: 2; }
  .roster:not(.roster-list) .roster-name { inset-inline: 5px; bottom: 8px; z-index: 1; }
  .roster:not(.roster-list) .roster-photo::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    border-radius: inherit;
    background: linear-gradient(transparent, #281036b3);
  }
  .mode-switch a { min-inline-size: 44px; justify-content: center; }
  .news-list .news-card .news-copy strong {
    display: block;
    font-size: clamp(1rem, 3.8vw, 1.1875rem);
    overflow: visible;
  }
  .news-body .reading-panel > .rule-text,
  .guidelines-body .rule-section > p { text-align: start; }
  .article-heading, .article-photo { margin-bottom: 16px; }
  .article-heading h2 { text-wrap: balance; overflow-wrap: anywhere; }
  .rule-section ul { padding-inline-start: 1.15em; }
}
@media (min-width: 2200px) {
  .roster:not(.roster-list) { --card-columns: 5; --card-gap: 30px; }
}
@media (min-width: 3000px) {
  .roster:not(.roster-list) { --card-columns: 6; --card-gap: 32px; }
}
