html:has(#cheer-finder) { scroll-behavior: auto; }

/* The cheer collection pairs its stadium panorama with a searchable index. */
.cheer-cover {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: end;
    min-height: clamp(215px, 26vw, 306px);
    background: #102338;
    color: white;
    border-radius: 8px;
}
.cheer-cover > img, .cheer-cover::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.cheer-cover > img { z-index: -2; object-fit: cover; object-position: 65% center; }
.cheer-cover::after {
    content: '';
    z-index: -1;
    background: linear-gradient(75deg, #07192bef 0%, #07192baa 37%, transparent 80%);
}
.cover-type { padding: clamp(20px, 4vw, 48px); }
.cover-type > a { color: #fff; font-size: .85rem; text-underline-offset: 4px; }
.cover-type h1 { margin: 14px 0 4px; font: 500 clamp(3rem, 7vw, 6rem)/.98 var(--serif); letter-spacing: -.045em; color: white; }
.cover-type h1 em { color: #bce5ff; font-weight: inherit; }
.cover-type p { margin: 8px 0 0; font-size: clamp(.92rem, 1.7vw, 1.13rem); }
.cover-credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 5px 12px; background: #0a1c30ed; font-size: .74rem; }
.cover-credit a { color: #e8f3ff; }
.cheer-discovery { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: clamp(18px, 3.5vw, 48px); margin: 32px 0 20px; scroll-margin-top: 18px; }
.cheer-search-panel { min-width: 0; margin: 0; }
.cheer-search-panel h2 { margin: 0 0 14px; padding: 0; border: 0; font: 500 clamp(1.95rem, 4.3vw, 3.35rem)/1.08 var(--serif); letter-spacing: -.036em; }
#cheer-finder label, .cheer-browse h3, .voice-head { font: 650 .74rem/1.35 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
#cheer-finder label { color: var(--muted); }
.cheer-query { margin-top: 6px; display: flex; align-items: center; padding: 5px; border: 1.5px solid var(--accent); border-radius: 8px; background: var(--card); }
.cheer-query:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.cheer-query input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 9px; font: 1.05rem/1.4 var(--sans); }
.cheer-query button, .cheer-selects button { font: 650 .9rem var(--sans); border: 0; border-radius: 5px; background: #173f61; color: #fff; min-height: 44px; padding: 0 18px; cursor: pointer; }
.cheer-query button:hover, .cheer-selects button:hover { background: #275f86; }
#cheer-preview { border: 1px solid var(--hair); border-radius: 8px; background: var(--card); margin-top: 8px; padding: 6px 12px; }
#cheer-preview p { margin: 5px 0; color: var(--muted); font-size: .82rem; }
#cheer-preview ul { list-style: none; margin: 0; padding: 0; }
#cheer-preview a { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
#cheer-preview a:is(:hover,:focus) strong { text-decoration: underline; color: var(--accent); }
#cheer-preview small { color: var(--muted); }
#cheer-preview .find-quotations { color: var(--accent); font-size: .87rem; text-decoration: underline; }
.cheer-refine { margin: 5px 0 12px; }
.cheer-refine summary { cursor: pointer; padding: 10px 0; color: var(--accent); font-size: .9rem; }
.cheer-selects { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 16px; align-items: end; }
.cheer-selects select { display: block; width: 100%; margin-top: 6px; min-height: 44px; font: .9rem var(--sans); border: 1px solid var(--hair); border-radius: 4px; background: var(--card); color: var(--ink); }
.cheer-browse { border-top: 1px solid var(--hair); }
.cheer-browse h3 { margin: 14px 0 5px; color: var(--muted); }
.cheer-browse > div { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.cheer-browse a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 8px; border: 1px solid var(--hair); border-radius: 4px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .85rem; }
.cheer-browse a span { color: var(--muted); font-size: .77rem; font-variant-numeric: tabular-nums; }
.cheer-browse a:hover { border-color: var(--accent); }
.cheer-browse a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cheer-browse a.on span { color: inherit; }
.cheer-voice { position: relative; border-top: 5px solid #87c8f6; border-radius: 3px 3px 8px 8px; background: #112d46; color: #fff; padding: clamp(20px, 3vw, 36px); scroll-margin-top: 16px; }
.voice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #b5dfff; }
.voice-entry { margin: 22px 0 0; }
.voice-entry blockquote { padding: 0; margin: 0 0 18px; border: 0; color: #fff; font: 400 clamp(1.5rem, 2.6vw, 2.25rem)/1.15 var(--serif); letter-spacing: -.021em; }
.voice-entry blockquote::before, .voice-entry blockquote::after { content: none; }
.voice-entry figcaption { display: grid; gap: 2px; font-size: .88rem; }
.voice-entry figcaption a, .voice-shuffle { color: #c5e6ff; }
.voice-entry figcaption a { font-size: .82rem; }
.voice-shuffle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 14px; min-height: 44px; border: 1px solid #7191ab; border-radius: 22px; color: #fff; text-decoration: none; font: 500 .88rem var(--sans); letter-spacing: normal; text-transform: none; }
.voice-shuffle:hover { background: #274d6b; }
.cheer-summary { margin: 1.5rem 0 0; border-top: 1px solid var(--hair); padding-top: 14px; color: var(--muted); }
@media (max-width: 48rem) {
    .cheer-discovery { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .cheer-browse > div { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
    .cheer-browse a { flex: none; min-height: 44px; }
    .cheer-browse a:focus-visible { outline-offset: -3px; }
    .cover-type { padding-bottom: 44px; }
}
@media (max-width: 28rem) {
    .cover-type h1 { font-size: 3.05rem; }
    .cheer-query button { padding-inline: 12px; }
}

.cover-type .cover-photos { display: inline-block; margin-top: 7px; color: #e2f4ff; }
.cheer-photos { margin: 32px 0; border-block: 1px solid var(--hair); padding: 20px 0 24px; scroll-margin-top: 16px; }
.cheer-photos h2 { margin: 0 0 16px; padding: 0; border: 0; }
.cheer-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.cheer-photo-grid figure { min-width: 0; margin: 0; }
.cheer-photo-link { display: block; color: var(--ink); text-decoration: none; }
.cheer-photo-link img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.cheer-photo-link span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 9px 0 4px; font: 600 clamp(1.04rem, 1.7vw, 1.36rem)/1.2 var(--serif); }
.cheer-photo-link b { color: var(--accent); font: normal .9rem var(--sans); }
.cheer-photo-link:is(:hover,:focus-visible) span { color: var(--accent); text-decoration: underline; }
.cheer-photo-grid figcaption { color: var(--muted); font: .84rem/1.46 var(--sans); }
.gallery-credits { margin-top: 1rem; }
.gallery-credits ul { padding-left: 1.1rem; margin: .3rem 0; }
@media (max-width: 44rem) {
    .cheer-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}
