:root {
  color-scheme: light;
  --blue: #234fa3;
  --blue-deep: #173467;
  --red: #c91f37;
  --ink: #172540;
  --muted: #526079;
  --line: #d7dfec;
  --paper: #f1f5fb;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
.site-header, footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .95rem max(1.25rem, calc((100vw - 1120px) / 2));
}
.site-header { background: white; border-top: 4px solid var(--red); border-bottom: 1px solid var(--line); }
.site-header a { text-decoration: none; }
.brand { color: var(--blue-deep); font-size: 1.2rem; font-weight: 900; letter-spacing: -.03em; }
.brand strong { color: var(--red); }
nav { display: flex; gap: 1.25rem; font-size: .92rem; font-weight: 650; }
main { width: min(1120px, calc(100% - 2.5rem)); margin: 1.6rem auto 2.5rem; }
.intro {
  border-radius: 1.05rem;
  background: linear-gradient(115deg, var(--blue-deep), #2d5aaf);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.3rem;
  padding: clamp(1.4rem, 5vw, 3.5rem);
}
.intro p { max-width: 42rem; margin: .75rem 0 0; line-height: 1.55; }
.intro .season { color: #e3ecff; margin: 0 0 .4rem; font-size: .85rem; font-weight: 750; }
h1 { margin: 0; font-size: clamp(2.35rem, 7vw, 4.3rem); line-height: 1; letter-spacing: -.055em; }
h2 { margin: 0; font-size: 1.33rem; letter-spacing: -.025em; }
h3 { margin: 1.1rem 0 .35rem; font-size: 1.01rem; }
.intro-link.button { background: white; color: var(--blue-deep); flex: none; text-decoration: none; }
.rules { background: #fff; border: 1px solid var(--line); border-radius: .75rem; margin: .9rem 0; }
.rules summary { padding: .85rem 1.1rem; }
.rules ul { margin: 0 1.2rem 1.1rem 0; line-height: 1.55; }
.rules li + li { margin-top: .4rem; }
summary { cursor: pointer; font-weight: 700; }
.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: .95rem; align-items: start; }
.card { background: white; border: 1px solid var(--line); border-radius: .9rem; padding: clamp(.95rem, 2.6vw, 1.5rem); }
.section-heading, .account-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
#count, .help, .account-row, .school-conference, footer { font-size: .88rem; color: var(--muted); }
.filters { display: grid; grid-template-columns: 1.3fr 1fr; gap: .75rem; margin: 1rem 0; }
form { display: grid; gap: .75rem; margin-top: .8rem; }
form p { margin: 0; }
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 650; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-width: 0;
  padding: .58rem .65rem;
  border: 1px solid #a8b6cb;
  border-radius: .42rem;
  background: white;
  font-size: 1rem;
}
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.4; }
.check input { margin: .2rem 0 0; accent-color: var(--blue); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a, button, input, select, textarea, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid #a84c04; }
.button {
  display: inline-block;
  width: fit-content;
  min-height: 40px;
  padding: .55rem .85rem;
  background: var(--blue);
  color: white;
  border: 1px solid transparent;
  border-radius: .42rem;
  font-weight: 700;
  font-size: .9rem;
}
.button:hover:not(:disabled) { filter: brightness(.94); }
.secondary { background: white; color: var(--blue-deep); border-color: #9ab0d8; }
.text-button { border: 0; background: none; color: var(--blue); padding: .35rem 0; text-align: left; }
.text-button:hover { text-decoration: underline; }
.tabs { display: flex; gap: .35rem; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: .65rem .55rem; font-size: .9rem; }
.tabs button[aria-pressed="true"] { color: var(--blue-deep); font-weight: 750; border-bottom-color: var(--red); }
#schools, .plain-list { padding: 0; margin: 0; list-style: none; }
.school, .rank-row, .offer, .notice, .dispute { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.school { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.school strong, .school span { display: block; }
.school .button { max-width: 9.5rem; text-align: center; }
.school-conference { margin-top: .15rem; }
.owner details { padding: .7rem 0; border-top: 1px solid var(--line); }
.account-row { margin: .45rem 0 .95rem; }
#clubs-area { margin-bottom: 1rem; }
#club-summary, .offer { margin-top: .7rem; line-height: 1.45; }
#ranked { padding-left: 1.35rem; margin: .55rem 0; }
.rank-tools { display: flex; flex-wrap: wrap; gap: .65rem; }
.offer { border: 1px solid #d6ad5e; background: #fff9e7; padding: .7rem; border-radius: .45rem; }
.offer p, .dispute p { margin: .3rem 0; }
.offer .button + .button { margin-left: .4rem; }
.notice { font-size: .88rem; }
#message { background: #e2ecfd; color: var(--blue-deep); padding: .75rem 1rem; border-radius: .5rem; }
#message.error { background: #fce7eb; color: #a0192d; }
#action-dialog { border: 1px solid var(--line); border-radius: .8rem; padding: 1.1rem; width: min(28rem, calc(100% - 1.6rem)); }
#action-dialog::backdrop { background: #11254a9e; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .4rem; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 740px) {
  .layout { grid-template-columns: 1fr; }
  .intro { align-items: start; flex-direction: column; }
  main { width: min(100% - 1.25rem, 34rem); margin-top: .7rem; }
  .site-header { padding-inline: .75rem; }
  nav { gap: .55rem; font-size: .8rem; }
  .brand { max-width: 12rem; line-height: 1.1; }
  .filters { grid-template-columns: 1fr; }
}
