:root {
  --navy: #0f2747;
  --navy-2: #1a3a66;
  --sky: #7fb2e0;
  --sky-soft: #e8f1fa;
  --ink: #14202e;
  --muted: #5b6878;
  --line: #dde4ec;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --win: #1d7a46;
  --loss: #a23434;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
h1, h2, h3 { font-family: Oswald, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0; }
a { color: var(--navy-2); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.draft { background: #ffd84d; color: #3a2f00; text-align: center; padding: 6px 16px; font-size: 14px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: Oswald, sans-serif; font-size: 20px; text-transform: uppercase; }
.brand b { color: var(--sky); font-weight: 500; }
.crest { height: 40px; width: auto; }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.topbar nav a:hover { color: var(--sky); }
.nav-cta { background: var(--sky); color: var(--navy) !important; padding: 7px 14px; border-radius: 4px; font-weight: 600 !important; }

/* Hero */
.hero { position: relative; height: min(78vh, 640px); overflow: hidden; background: var(--navy); }
/* Photo is wider than the hero and anchored left, which pushes the player (right of centre in the
   shot) toward the right edge; the gradient darkens the left side so the text stays readable. */
.hero > img { position: absolute; top: 0; left: 14%; width: 128%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,39,71,.92) 0%, rgba(15,39,71,.78) 38%, rgba(15,39,71,.25) 72%, rgba(15,39,71,.1) 100%); }
.hero-text { z-index: 1; }
/* Layers, bottom to top: photo, white top fade, navy side fade, cut-out player, text.
   The navy sits above the white so the left side stays solid navy. */
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.8) 35%, rgba(255,255,255,.35) 70%, rgba(255,255,255,0) 100%); }
.hero::after { z-index: 2; }
/* Cut-out of the player, sized and positioned exactly like the photo (it shares the .hero > img
   rules), drawn above both fades so only the background fades. */
.hero > img.hero-player { z-index: 3; opacity: 1; }
.hero-text { z-index: 4; }
@media (min-width: 1400px) {
  .hero > img { left: auto; right: -8%; width: 72%; object-position: 50% 24%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
  .hero::after { background: linear-gradient(90deg, rgba(15,39,71,.85) 0%, rgba(15,39,71,.6) 45%, rgba(15,39,71,.15) 80%, rgba(15,39,71,.05) 100%); }
}
.hero-text { position: absolute; inset: auto 0 0 0; padding: 48px 24px; max-width: 1040px; margin: 0 auto; color: #fff;
  display: flex; align-items: flex-end; gap: 36px; }
.hero-logo { width: clamp(150px, 24vw, 270px); height: auto; flex-shrink: 0; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); }
/* LOYOLA / FLYERS / LACROSSE sticker with Snoopy (image; source in Logo Stuff) */
.sticker { margin: 10px 0 6px; line-height: 0; }
.sticker img { width: clamp(300px, 60vw, 820px); max-width: 100%; height: auto; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--sky); font-weight: 600; }
.season { margin: 10px 0 0; font-size: 18px; }
.next-game { margin-top: 24px; display: inline-block; background: rgba(15,39,71,.88); border-left: 4px solid var(--sky); padding: 12px 18px; }
.next-game:empty { display: none; }
.next-game small { display: block; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); font-size: 12px; font-weight: 600; }
.next-game strong { font-family: Oswald, sans-serif; font-size: 22px; text-transform: uppercase; }

/* Instagram link in the header nav */
.topbar nav .ig-link { display: inline-flex; align-items: center; gap: 8px; }
.topbar nav .ig-link[hidden] { display: none; }
.ig-link svg { width: 26px; height: 26px; flex-shrink: 0; transition: transform .15s; }
.brand, .topbar nav a { white-space: nowrap; }
@media (max-width: 1100px) { .ig-link .ig-handle { display: none; } }   /* icon only when the menu gets tight */
.ig-link:hover svg { transform: scale(1.08); }

/* Sections */
.band { padding: 72px 0; }
.band.alt { background: var(--bg-alt); }
.band.navy { background: var(--navy); color: #fff; }
.band.navy a { color: var(--sky); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 5vw, 44px); }
.sub, .record { margin: 0; color: var(--muted); }
.navy .sub { color: #c8d8ea; flex-basis: 100%; }
.record { font-family: Oswald, sans-serif; font-size: 22px; color: var(--navy); }

/* Schedule */
.filters { display: flex; gap: 8px; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.games { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.game { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.game.past { color: var(--muted); }
.date { text-align: center; font-family: Oswald, sans-serif; text-transform: uppercase; line-height: 1; }
.date .mo { font-size: 13px; color: var(--muted); }
.date .dy { font-size: 30px; color: var(--navy); }
.date.tbd .dy { font-size: 22px; color: var(--muted); }
.opp { font-weight: 600; font-size: 17px; }
.opp .vs { color: var(--muted); font-weight: 400; margin-right: 4px; }
.meta { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; margin-right: 6px; background: var(--sky-soft); color: var(--navy-2); }
.tag.Home { background: var(--navy); color: #fff; }
.result { font-family: Oswald, sans-serif; font-size: 20px; text-align: right; white-space: nowrap; }
.result.W { color: var(--win); }
.result.L { color: var(--loss); }
.result .t { font-family: Inter, sans-serif; font-size: 14px; color: var(--muted); }

[hidden] { display: none !important; }
.more { display: block; margin: 18px auto 0; background: #fff; color: var(--navy); border: 2px solid var(--navy);
  border-radius: 999px; padding: 9px 22px; font: 600 15px Inter, sans-serif; cursor: pointer; }
.more:hover { background: var(--navy); color: #fff; }

.venue { font-size: 13px; color: var(--muted); margin-top: 4px; }
.venue-name { color: var(--ink); font-weight: 500; }
.venue a { color: var(--navy-2); }

/* Tickets */
.result { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tix { display: inline-block; font: 600 13px Inter, sans-serif; color: var(--navy); background: var(--sky-soft);
  border: 1px solid var(--sky); border-radius: 999px; padding: 4px 12px; text-decoration: none; white-space: nowrap; }
.tix:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.tix-cta { margin-left: auto; align-self: center; font-weight: 600; font-size: 15px; color: #fff; background: var(--navy);
  border-radius: 4px; padding: 9px 16px; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; }
.tix-cta img { height: 18px; width: auto; display: block; }
.tix-cta:hover { background: var(--navy-2); }

/* Roster */
.table-scroll { overflow-x: auto; }
.roster { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.roster th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--navy); padding: 10px 14px; }
.roster td { padding: 11px 14px; border-top: 1px solid var(--line); }
.roster td:first-child { font-weight: 500; }
.roster .jersey { width: 110px; }
.roster td.jersey { font-family: Oswald, sans-serif; font-size: 20px; color: var(--navy); }
.roster tbody tr:nth-child(even) { background: var(--bg-alt); }
.roster .tbd { font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); }
.roster-count { margin: -8px 0 14px; color: var(--muted); font-size: 14px; }
.roster-names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.roster-names li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sky); padding: 10px 14px; }
.roster-names b { font-weight: 600; color: var(--navy); }
.coaches-title { margin: 40px 0 12px; font-size: 22px; }
.coaches-title.first { margin-top: 0; }
.coaches { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.coaches li { background: #fff; border: 1px solid var(--line); padding: 12px 18px; }
.coaches span { display: block; font-size: 13px; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Power rankings */
.rankings-band { border-top: 1px solid var(--line); }
.league-badge img { height: 46px; width: auto; display: block; }
.rankings-band .sub { margin: -12px 0 16px; font-weight: 600; color: var(--navy); }
.rank-table { width: 100%; max-width: 720px; border-collapse: collapse; border: 1px solid var(--line); }
.rank-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--navy); padding: 10px 14px; }
.rank-table td { padding: 10px 14px; border-top: 1px solid var(--line); }
.rank-table td:first-child { font-family: Oswald, sans-serif; font-size: 18px; color: var(--navy); width: 48px; }
.rank-table td:last-child, .rank-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.rank-table tr.us { background: var(--sky-soft) !important; font-weight: 700; box-shadow: inset 4px 0 0 var(--navy); }
.rank-table .loading { color: var(--muted); text-align: center; padding: 22px; }
.source { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Affiliated sites */
/* Equal-size cards in one row on computers; on smaller screens two per row with any odd one centred */
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.links .link-card { flex: 0 0 calc((100% - 64px) / 5); min-width: 0; }
@media (max-width: 900px) { .links { gap: 12px; } .links .link-card { flex-basis: calc((100% - 12px) / 2); padding: 16px; } }
.link-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 20px;
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--sky); transform: translateY(-2px); }
.link-card b { font-family: Oswald, sans-serif; font-size: 20px; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.link-card span { color: var(--muted); font-size: 14px; }
.link-card small { color: var(--navy-2); font-weight: 600; margin-top: auto; }
.link-card img { height: 72px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; }
.link-card.featured { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.link-card.featured img { height: 70px; width: auto; max-width: 100%; }
.link-card.featured small { margin: 0 0 0 auto; }

/* Player stats */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 24px; }
.leaders:empty { display: none; }
.leader { border: 1px solid var(--line); border-top: 4px solid var(--sky); padding: 14px 16px; background: #fff; }
.leader h3 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.leader ol { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.leader li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.leader li:first-child { font-weight: 600; }
.leader li strong { font-family: Oswald, sans-serif; font-size: 17px; color: var(--navy); }
.stats-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.stats-table th { background: var(--navy); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  padding: 9px 8px; text-align: right; white-space: nowrap; }
.stats-table th:nth-child(-n+2), .stats-table td:nth-child(-n+2) { text-align: left; }
.stats-table th.sortable { cursor: pointer; user-select: none; }
.stats-table th.desc::after { content: " ▼"; font-size: 9px; }
.stats-table th.asc::after { content: " ▲"; font-size: 9px; }
.stats-table td { padding: 9px 8px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.stats-table td:first-child { color: var(--navy); font-weight: 600; width: 40px; }
.stats-table .player-row { cursor: pointer; }
.stats-table .player-row:hover, .stats-table .player-row.open { background: var(--sky-soft); }
.stats-table .chev { display: inline-block; width: 14px; color: var(--muted); transition: transform .15s; }
.stats-table .player-row.open .chev { transform: rotate(90deg); }
.stats-table .game-log > td { padding: 0 0 10px; background: var(--sky-soft); }
.stats-table .game-log table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats-table .game-log th { background: transparent; color: var(--muted); padding: 6px 8px; }
.stats-table .game-log td { border-top: 1px solid var(--line); padding: 6px 8px; }
.stats-table .loading { text-align: center; color: var(--muted); }

/* Honors */
.honors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.honor { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 18px 20px; }
.honor h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.honor ul { list-style: none; margin: 0; padding: 0; }
.honor li { padding: 3px 0; font-weight: 500; }

/* Sponsors */
.sponsor-tier { margin-bottom: 36px; }
.sponsor-tier h3 { font-size: 16px; color: var(--muted); border-bottom: 2px solid var(--sky); padding-bottom: 6px; margin-bottom: 16px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.logos.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sponsor { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
  border: 1px solid var(--line); padding: 20px; min-height: 120px; text-decoration: none; color: var(--ink); }
a.sponsor:hover { border-color: var(--sky); }
.sponsor img { max-width: 100%; max-height: 90px; object-fit: contain; }
.sponsor b { font-size: 16px; }
.sponsor small { color: var(--muted); }
.names { columns: 3 200px; padding: 0; list-style: none; margin: 0; }
.names li { padding: 4px 0; }
.empty { border: 2px dashed var(--line); padding: 32px; text-align: center; color: var(--muted); }
.empty a { font-weight: 600; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.tier { background: var(--navy-2); border-top: 4px solid var(--sky); padding: 22px 20px; }
.tier .amt { font-family: Oswald, sans-serif; font-size: 40px; line-height: 1; }
.tier h3 { font-size: 18px; color: var(--sky); margin: 6px 0 14px; }
.tier ul { margin: 0; padding-left: 18px; font-size: 14px; color: #dbe6f2; }
.tier li { margin-bottom: 6px; }
.how { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-bottom: 32px; }
.how h3 { font-size: 20px; margin-bottom: 10px; }
.how ol { padding-left: 20px; margin: 0; }
.how li { margin-bottom: 8px; }
.fine p { font-size: 14px; color: #c8d8ea; margin: 0; }
.btn { display: inline-block; background: var(--sky); color: var(--navy) !important; font-weight: 600; text-decoration: none; padding: 12px 24px; border-radius: 4px; }
.btn:hover { background: #fff; }

/* Footer */
.footer { background: #0a1b33; color: #b9c8da; padding: 28px 0; font-size: 14px; }
.footer p { margin: 4px 0; }
.footer a { color: var(--sky); }

@media (max-width: 860px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .topbar nav { gap: 14px; width: 100%; overflow-x: auto; }
  .topbar nav a { font-size: 14px; white-space: nowrap; }
  .topbar nav a[href="#sponsors"] { display: none; }
  .hide-sm { display: none; }
  .ig-link .ig-handle { display: none; }   /* icon only on phones */
  .league-badge img { height: 34px; }
  .rank-table { font-size: 14px; }
  .rank-table th { font-size: 10px; letter-spacing: .04em; padding: 8px 6px; }
  .rank-table td { padding: 8px 6px; white-space: nowrap; }
  .rank-table td:first-child { width: 30px; font-size: 16px; }
  .link-card.featured small { margin: 0; }
  .hero { height: auto; }
  .hero > img { left: 0; width: 100%; object-position: 68% 30%; opacity: .6; -webkit-mask-image: none; mask-image: none; }
  .hero > img.hero-player { display: none; }   /* text covers the player on phones; keep the photo dimmed */
  .hero-text > div { max-width: 100%; }
  .sticker img { width: 100%; }
  .eyebrow { letter-spacing: .08em; color: var(--navy); }   /* sits inside the white top fade on phones */
  .hero::after { background: linear-gradient(180deg, rgba(15,39,71,.2) 0%, rgba(15,39,71,.75) 60%, rgba(15,39,71,.9) 100%); }
  .hero-text { position: relative; padding: 40px 16px 32px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-logo { width: 140px; }
  .band { padding: 48px 0; }
  .game { grid-template-columns: 52px 1fr; }
  .result { grid-column: 2; text-align: left; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .tix-cta { margin-left: 0; }
  .tiers { grid-template-columns: 1fr; }
}
