:root {
  color-scheme: dark;
  --ink: #fafaff;
  --paper: #10132b;
  --panel: #1c203e;
  --line: #373b58;
  --muted: #bac1d9;
  --lavender: #d3cbff;
  --violet: #bdbaff;
  --page-width: 77rem;
  --gutter: clamp(1rem, 3vw, 3.5rem);
}
.masthead { background: var(--paper); border-color: var(--line); }
.hero, .intro {
  background-color: #2344af;
  background-image: linear-gradient(90deg, #132e8f55, transparent 65%), url('./orbital-horizon.webp');
  background-position: center, center 41%;
  background-size: cover;
}
.brand-line { display: flex; align-items: center; gap: .32em; font-size: .84rem; font-weight: 600; line-height: 1.3; color: #fff; }
.openai-mark { width: 1.13em; height: 1.13em; flex: none; filter: invert(1); }
.intro { background-position: center, center 42%; }
.intro h1 { color: white; font-weight: 680; letter-spacing: -.06em; }
.organizer { white-space: nowrap; }
.organizer .openai-mark { vertical-align: -.17em; margin-right: .25em; }
@media (max-width: 640px) { .brand-line { font-size: .77rem; } }

.cheer-home { background: #0f1125; }
.cheer-home .masthead { background: #111328; }
.cheer-home .brand { gap: .55rem; }
.cheer-home .brand strong { font-size: 1.05rem; letter-spacing: -.055em; }
.cheer-home .brand img { object-fit: contain; }
.cheer-home nav a { font-size: .88rem; }
.cheer-home nav [aria-current] { color: white; font-weight: 650; border-bottom: 2px solid #a9aaff; }
.cheer-home .hero {
  margin-top: clamp(.85rem, 1.5vw, 1.35rem);
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  border-radius: 1.1rem;
  background-image: linear-gradient(90deg, #152575db, #2632a366 45%, transparent 80%), url('./orbital-horizon.webp');
  background-position: center, 70% 44%;
}
.poster-copy { max-width: 36rem; }
.poster-copy h1 { margin: .5rem 0 .3rem; font-size: clamp(2.7rem, 4.35vw, 4.25rem); line-height: 1.13; font-weight: 680; letter-spacing: -.065em; }
.poster-copy .lead { margin: 0; color: #e7ecff; font-size: clamp(.9rem, 1.25vw, 1.08rem); }
.directory { display: grid; grid-template-columns: clamp(11.8rem, 17vw, 14rem) minmax(0,1fr); gap: clamp(1.1rem, 2.6vw, 2.6rem); margin-block: clamp(1.35rem, 2.6vw, 2.4rem) 3rem; align-items: start; }
.directory h2 { font-size: clamp(1.35rem, 1.85vw, 1.7rem); line-height: 1.25; letter-spacing: -.05em; }
.directory-nav { position: sticky; top: 1rem; }
.directory-nav .search { width: 100%; gap: .6rem; padding-inline: .7rem; margin-top: .8rem; background: #15182e; border: 1px solid #525a88; border-radius: .65rem; }
.directory-nav .search input { font-size: .9rem; min-height: 2.85rem; padding: .4rem .1rem; }
.directory-nav .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
#clear-search { border: 0; background: transparent; border-radius: .35rem; color: #d7d9f1; font-size: 1.3rem; line-height: 1; padding: .4rem; }
#school-filter { margin-top: 1.25rem; }
#school-filter h3 { margin: 0 0 .5rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.directory-nav .campus-queries { display: grid; gap: .15rem; margin: 0; }
.directory-nav .campus-queries button { display: flex; align-items: center; gap: .55rem; padding: .4rem .55rem; min-height: 2.7rem; border-radius: .55rem; color: #c6cbe2; font-size: .93rem; background: transparent; border: 1px solid transparent; }
.directory-nav .campus-queries button:hover { background: #1c213e; }
.directory-nav .campus-queries button[aria-pressed=true] { background: #282d59; border-color: #5d66a2; color: white; }
.directory-nav .campus-mark, .all-schools { --mark-size: 1.55rem; }
.all-schools { display: inline-grid; place-items: center; width: var(--mark-size); height: var(--mark-size); flex: none; }
.all-schools::before { content: ''; width: .36rem; height: .36rem; background: currentColor; border-radius: .1rem; margin: -.49rem .49rem 0 0; box-shadow: .49rem 0, 0 .49rem, .49rem .49rem; }
.school-count { margin-left: auto; color: #acb2d2; font-size: .8rem; font-variant-numeric: tabular-nums; }
.teams-section { padding: 0; }
.cheer-home .section-head { flex-direction: row; align-items: center; gap: .55rem; border-bottom: 1px solid #353951; padding: 0 .1rem .85rem; margin: 0 0 1rem; }
.cheer-home .section-head > div { gap: .65rem; }
.cheer-home #team-total { font-size: .85rem; }
.cheer-home .preview { margin: 0; border: 1px solid #4f526d; border-radius: .35rem; padding: .12rem .38rem; color: #bec5de; font-size: .73rem; }
.cheer-home .teams { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; align-items: start; }
.cheer-home .team { display: grid; grid-template-columns: 2.4rem minmax(0,1fr) auto; grid-template-rows: auto auto auto; align-items: center; gap: .55rem .55rem; padding: .95rem; border-radius: .85rem; border: 1px solid #343953; background: #1a1e36; }
.cheer-home .team.supported { border-color: #65638f; background: #222440; }
.cheer-home .monogram { width: 2.4rem; }
.cheer-home .monogram .campus-mark { --mark-size: 2.4rem; }
.cheer-home .team h3 { font-size: 1.04rem; line-height: 1.3; }
.cheer-home .count { display: inline-flex; align-items: center; gap: .25rem; color: #a6a6d1; }
.cheer-home .count b { color: #d4d6ea; }
.member-list { grid-column: 1 / -1; min-width: 0; border-bottom: 1px solid #353951; }
.member-list summary { display: inline-block; padding: .36rem .2rem .5rem 0; cursor: pointer; font-size: .83rem; color: var(--muted); }
.member-list summary::-webkit-details-marker { display: none; }
.member-list summary::after { content: ''; display: inline-block; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.18rem) rotate(45deg); margin-left: .4rem; }
.member-list[open] summary::after { transform: rotate(225deg); }
.member-list .team-members { padding-bottom: .6rem; color: #d3d9ef; }
.cheer-home .team-actions { padding-top: 0; gap: .45rem; }
.cheer-home .team-actions button { min-width: 0; padding: .3rem; min-height: 2.6rem; font-size: .84rem; }
.cheer-home .write-message { background: #252a47; border-color: #444b6e; }
.cheer-home .write-message:hover { background: #353953; }
.cheer-home .cheer-button { background: #cac4ff; border-color: #cac4ff; }
.cheer-home .cheer-button:disabled { background: #2b2e4b; color: #cecaec; border-color: #4a4f71; }
.cheer-home :is(.community-notice summary, .member-list summary):focus-visible { outline: 2px solid #b6bbff; outline-offset: 2px; }
.community-notice { border-radius: 0; }
.community-notice summary { width: fit-content; cursor: pointer; font-size: .9rem; color: #c3c9df; }
#reset-search { background: #2b3156; color: white; border: 1px solid #6b71a1; border-radius: .5rem; padding: .6rem 1.1rem; }
.cheer-home dialog { padding: clamp(1.1rem, 3vw, 1.65rem); border-radius: 1.2rem; border-color: #50577d; background: #1a1e37; }
.cheer-home dialog::backdrop { background: #070b1edb; }
.cheer-home dialog h2 { font-size: clamp(1.55rem, 3.8vw, 2.05rem); }
.cheer-home dialog label { font-size: .91rem; }
.cheer-home dialog label small { color: var(--muted); }
.cheer-home dialog :is(input,textarea) { border-color: #515a80; border-radius: .5rem; background: #14172d; }
.cheer-home dialog #posting-rules { margin-top: .8rem; }
.cheer-home dialog .send-message { min-height: 2.9rem; border-radius: .6rem; margin-block: .75rem .3rem; }
.cheer-home dialog :is(.character-count,#posting-rules,.dialog-note) { font-size: .82rem; }
@media (max-width: 1080px) {
  .cheer-home .teams { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .directory { grid-template-columns: minmax(0,1fr); gap: 1.4rem; }
  .directory-nav { position: static; }
  .directory-nav .search { width: min(100%, 27rem); }
  #school-filter { margin-top: .7rem; }
  #school-filter h3 { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .directory-nav .campus-queries { display: flex; flex-wrap: wrap; gap: .35rem; }
  .directory-nav .campus-queries button { background: #1a1d33; border-color: #383c56; padding-inline: .55rem; }
  .school-count { display: none; }
}
@media (max-width: 620px) {
  .cheer-home .frame { width: calc(100% - 1.7rem); }
  .cheer-home .header-row { min-height: 3.25rem; }
  .cheer-home .hero { padding: 1rem; margin-top: .65rem; border-radius: .8rem; background-position: center, 62% 46%; }
  .poster-copy h1 { font-size: clamp(2rem, 8.3vw, 2.85rem); margin-block: .45rem .3rem; }
  .poster-copy .lead { font-size: .84rem; }
  .directory { margin-top: 1.15rem; gap: 1.1rem; }
  .directory h2 { font-size: 1.35rem; }
  .directory-nav .search { width: 100%; margin-top: .45rem; }
  .directory-nav .campus-queries { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .3rem; }
  .directory-nav .campus-queries button { gap: .24rem; padding: .24rem .1rem; min-height: 2.45rem; font-size: .78rem; justify-content: center; }
  .directory-nav :is(.campus-mark,.all-schools) { --mark-size: 1.2rem; }
  .cheer-home .section-head { padding-bottom: .6rem; margin-bottom: .6rem; }
  .cheer-home .teams { grid-template-columns: minmax(0,1fr); gap: .6rem; }
  .cheer-home .team { gap: .35rem .6rem; padding: .75rem .85rem; }
  .cheer-home .team-actions button { min-height: 2.75rem; }
  .cheer-home dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 1rem); margin: auto 0 0; border-radius: 1rem 1rem 0 0; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
}
