:root {
  color-scheme: light;
  --ink: #23221f;
  --ink-strong: #10100e;
  --muted: #6b6a63;
  --line: #dedbd2;
  --panel: #ffffff;
  --panel-strong: #f6f5f0;
  --page: #f8f7f2;
  --navy: #343430;
  --accent: #111111;
  --accent-strong: #000000;
  --accent-pink: #3f3f3a;
  --accent-soft: #eeece4;
  --gold: #8b7a45;
  --warn: #8a5a17;
  --success: #0f6b4f;
  --success-soft: #e7f3ed;
  --shadow: 0 18px 54px rgba(23, 22, 18, 0.1);
  --tight-shadow: 0 8px 24px rgba(23, 22, 18, 0.08);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(240px, 560px) auto;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(248, 247, 242, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: 218px;
  height: auto;
}

.top-search input {
  height: 44px;
  border-color: var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.top-search input::placeholder,
input::placeholder {
  color: #77776f;
}

.account-nav {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.account-action {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--ink-strong);
  color: #fff;
  box-shadow: var(--tight-shadow);
}

.account-action:hover {
  background: #2a2a27;
  color: #fff;
}

.profile-button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
}

.profile-button span[aria-hidden="true"] {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 760;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
  background: linear-gradient(180deg, #fff 0%, #f8f7f2 100%);
}

.hero-photo {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 300px;
  opacity: 0.16;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), #fff 82%),
    url("https://images.unsplash.com/photo-1461896836934-ffe607ba8211?auto=format&fit=crop&w=1800&q=82") center 42% / cover;
  filter: grayscale(1) saturate(0.25);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 66px) clamp(16px, 4vw, 32px) clamp(34px, 5vw, 60px);
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  animation: rise-in 420ms ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 860px;
  color: var(--ink-strong);
  font-size: clamp(2.75rem, 6vw, 4.8rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--ink-strong);
}

h2 {
  color: var(--ink-strong);
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 720;
  line-height: 1.06;
}

h3 {
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 700;
}

.hero-copy p:last-child {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.5;
}

.panel {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.find-panel {
  width: min(100%, 920px);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
  animation: rise-in 520ms 80ms ease both;
}

.section-heading,
.results-header,
.actions,
.mark-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  align-items: start;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading p,
.results-header span,
.meta {
  color: var(--muted);
}

.section-heading p {
  margin-top: 6px;
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > span {
  color: var(--ink-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field.compact {
  width: 210px;
  flex: 0 0 210px;
}

.field.compact.division-filter {
  width: 284px;
  flex-basis: 284px;
}

input,
select {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink-strong);
  padding: 0 14px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

input:hover,
select:hover {
  border-color: #c8c4ba;
  background: #fff;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(139, 122, 69, 0.24);
  outline-offset: 2px;
}

input:focus,
select:focus {
  border-color: #a99a68;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 122, 69, 0.1);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.segmented.three {
  grid-template-columns: repeat(3, 1fr);
}

.segmented.four {
  grid-template-columns: repeat(4, 1fr);
}

.segmented label {
  min-width: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label span {
  display: grid;
  min-height: 54px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.segmented label span:hover {
  background: #fff;
  color: var(--ink-strong);
}

.segmented label:last-child span {
  border-right: 0;
}

.segmented input:checked + span {
  background: var(--ink-strong);
  color: #fff;
}

.segmented input:focus-visible + span {
  outline: 3px solid rgba(15, 15, 15, 0.14);
  outline-offset: -3px;
}

.mark-rows {
  display: grid;
  gap: 14px;
}

.mark-row {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.8fr);
  gap: 16px;
}

.field.has-error input {
  border-color: #d94d4d;
  background: #fff8f8;
  box-shadow: 0 0 0 4px rgba(217, 77, 77, 0.1);
}

.row-error {
  grid-column: 1 / -1;
  min-height: 18px;
  margin-top: -8px;
  color: #b83232;
  font-size: 0.84rem;
  font-weight: 650;
}

.actions {
  justify-content: center;
  margin-top: 24px;
}

button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--ink-strong);
  color: white;
  cursor: pointer;
  font-weight: 650;
  padding: 0 22px;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

button:hover {
  background: #2a2a27;
  box-shadow: var(--tight-shadow);
  transform: translateY(-1px);
}

button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-strong);
}

button.secondary:hover {
  background: var(--accent-soft);
  box-shadow: none;
}

.results-header {
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.results-header span {
  font-size: 0.9rem;
  font-weight: 650;
}

.results {
  min-height: 0;
}

.empty {
  display: block;
  color: var(--muted);
  padding: 2px 0;
  text-align: left;
}

.recruitment-band {
  display: grid;
  gap: 22px;
  justify-items: center;
  width: min(100% - 32px, 860px);
  margin: clamp(24px, 5vw, 58px) auto 0;
  border: 1px solid #25241f;
  border-radius: 8px;
  background: linear-gradient(180deg, #151512 0%, #10100e 100%);
  color: #fff;
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
  box-shadow: var(--tight-shadow);
}

.recruitment-band .eyebrow {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.76);
}

.recruitment-band h2 {
  color: #fff;
}

.browse-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 10px;
  width: min(100%, 620px);
}

.browse-strip button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #fff;
  color: var(--ink-strong);
  box-shadow: none;
}

.browse-strip button:hover {
  background: #efeee9;
  box-shadow: none;
}

.workspace {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) clamp(16px, 4vw, 32px) 56px;
}

.school-panel {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.school-name {
  color: var(--ink-strong);
  font-weight: 650;
}

.school-cell,
.school-option-main,
.selected-school-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.school-logo-frame {
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.school-logo-frame.small {
  width: 30px;
  height: 30px;
}

.school-logo-frame.large {
  width: 44px;
  height: 44px;
}

.school-logo-frame img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.school-logo-frame.fallback {
  background: var(--accent-soft);
  color: var(--ink-strong);
  font-size: 0.72rem;
  font-weight: 650;
}

.school-option-main > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--ink-strong);
  font-size: 0.76rem;
  font-weight: 650;
  padding: 2px 9px;
}

.pill.warning {
  background: #fff0d8;
  color: var(--warn);
}

.school-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.school-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.school-option:hover {
  background: var(--panel-strong);
  border-color: #c8c4ba;
  box-shadow: var(--tight-shadow);
}

.view-button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.match-list {
  display: grid;
  gap: 14px;
}

.match-grid {
  display: grid;
  gap: 10px;
}

.match-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.match-card:hover {
  border-color: #c8c4ba;
  box-shadow: var(--tight-shadow);
  transform: translateY(-1px);
}

.match-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.fit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--ink-strong);
  font-size: 0.74rem;
  font-weight: 650;
  padding: 3px 10px;
}

.fit-pill.strong {
  background: var(--success-soft);
  color: var(--success);
}

.fit-pill.partial {
  background: #fff4d8;
  color: var(--warn);
}

.fit-pill.near {
  background: var(--accent-soft);
  color: var(--ink-strong);
}

.match-score {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.match-details {
  display: grid;
  gap: 7px;
}

.match-detail {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 0.9fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
  min-height: 36px;
  border-top: 1px solid #ece9e1;
  color: var(--ink);
  font-size: 0.9rem;
}

.match-detail:first-child {
  border-top: 0;
}

.match-detail span {
  color: var(--ink-strong);
  font-weight: 650;
}

.match-detail strong {
  font-weight: 650;
}

.match-detail em {
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
}

.match-card .view-button {
  justify-self: end;
}

.coach-summary {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.coach-contact {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.coach-contact strong {
  color: var(--ink-strong);
  font-size: 0.9rem;
}

.coach-contact span {
  color: var(--ink);
  font-weight: 650;
}

.coach-contact em {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-style: normal;
  font-weight: 650;
}

.coach-contact a,
.empty-contact a {
  color: var(--accent);
  text-decoration: none;
}

.coach-contact a:hover,
.empty-contact a:hover {
  text-decoration: underline;
}

.empty-contact {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.small-table {
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.result-signup {
  display: grid;
  gap: 16px;
  margin-top: 4px;
  border: 1px solid #cfcfc7;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: clamp(16px, 3vw, 22px);
}

.result-signup-copy {
  display: grid;
  gap: 6px;
}

.result-signup .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.result-signup h3,
.result-signup .field > span {
  color: #fff;
}

.result-signup p:last-child,
.signup-status {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.4;
}

.signup-fields {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.result-signup input {
  border-color: rgba(255, 255, 255, 0.22);
  background: #fff;
}

.result-signup button {
  min-width: 152px;
  background: #fff;
  color: var(--ink-strong);
}

.result-signup button:hover {
  background: #efeee9;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.signup-status {
  min-height: 20px;
  font-weight: 650;
}

.signup-status[data-state="success"] {
  color: #bdebd5;
}

.signup-status[data-state="error"] {
  color: #ffd0d0;
}

.signup-status[data-state="pending"] {
  color: #fff;
}

.seo-content {
  border-top: 1px solid rgba(15, 15, 15, 0.06);
  background: #fff;
}

.seo-content-inner {
  display: grid;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 82px) clamp(16px, 4vw, 32px);
}

.seo-content h2 {
  max-width: 720px;
  margin-bottom: 12px;
}

.seo-content p {
  max-width: 780px;
  color: var(--muted);
}

.seo-content a {
  color: var(--ink-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.seo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.seo-stats div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.seo-stats dt {
  color: var(--ink-strong);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 760;
  line-height: 1;
}

.seo-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.seo-columns h3 {
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .top-search {
    order: 3;
    grid-column: 1 / -1;
  }

  .account-nav {
    justify-content: end;
  }

  .browse-strip {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
  }

  .signup-fields {
    grid-template-columns: 1fr 1fr;
  }

  .result-signup button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .seo-stats,
  .seo-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 8px;
  }

  .site-logo {
    width: 196px;
  }

  .account-nav {
    position: absolute;
    top: 10px;
    right: 16px;
  }

  .top-search {
    grid-column: 1;
  }

  .hero-photo {
    height: 210px;
  }

  .hero-grid {
    padding-top: 30px;
  }

  h1 {
    max-width: min(100%, 320px);
    font-size: clamp(1.95rem, 8vw, 2.35rem);
    line-height: 1.05;
    text-wrap: balance;
  }

  .hero-copy p:last-child,
  .section-heading p {
    max-width: 100%;
  }

  .find-panel {
    width: 100%;
    max-width: calc(100vw - 32px);
    border-radius: 8px;
    padding: 20px;
  }

  .section-heading {
    display: grid;
  }

  .field.compact,
  .field.compact.division-filter {
    width: 100%;
    flex-basis: auto;
  }

  .mark-row {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .match-card-top,
  .match-detail {
    grid-template-columns: 1fr;
  }

  .match-card-top {
    display: grid;
  }

  .match-card .view-button {
    justify-self: stretch;
  }

  .signup-fields {
    grid-template-columns: 1fr;
  }

  .browse-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  table {
    font-size: 0.86rem;
  }

  th,
  td {
    padding: 9px 7px;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
