@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");
:root {
  --bg: #0b0f0d;
  --surface: #121815;
  --surface2: #18211c;
  --line: #26342b;
  --text: #f4f7f5;
  --muted: #aab6af;
  --green: #57e329;
  --green2: #28b84a;
  --gold: #f2c94c;
  --danger: #ff6257;
  --max: 1520px;
  --page-gutter: clamp(24px, 2vw, 32px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(var(--max), calc(100% - var(--page-gutter) - var(--page-gutter)));
  margin: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 15, 13, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--green);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 1.25rem;
}
.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav a {
  font-weight: 700;
  color: #dce4df;
  font-size: 0.93rem;
}
.nav a:hover,
.nav a.active {
  color: var(--green);
}
.nav-stats {
  position: relative;
}
.nav-stats-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dce4df;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-stats-toggle:hover,
.nav-stats-toggle.active,
.nav-stats-toggle[aria-expanded="true"] {
  color: var(--green);
}
.nav-stats-toggle:focus-visible,
.nav-stats-menu a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.nav-stats-toggle span {
  font-size: 0.8em;
  transition: transform 0.2s;
}
.nav-stats-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}
.nav-stats-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: -14px;
  z-index: 50;
  display: grid;
  gap: 2px;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101a13;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.nav-stats-menu[hidden] {
  display: none;
}
.nav-stats-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.nav-stats-menu a:hover,
.nav-stats-menu a:focus-visible {
  background: var(--surface2);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: white;
  border-radius: 8px;
  padding: 8px 10px;
}
.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(5, 9, 6, 0.95) 0%,
      rgba(5, 9, 6, 0.75) 52%,
      rgba(5, 9, 6, 0.35) 100%
    ),
    url("https://ayotek.blob.core.windows.net/ufsl-website/assets/pexels-football-wife-577822-1618200.jpg") center/cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 0;
}
.eyebrow {
  font-family: "Barlow Condensed";
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  font-weight: 700;
}
.hero h1,
.page-hero h1 {
  font-family: "Barlow Condensed";
  font-size: clamp(3.4rem, 8vw, 6.9rem);
  line-height: 0.86;
  text-transform: uppercase;
  margin: 0.18em 0 0.25em;
  letter-spacing: -0.025em;
}
.hero h1 span {
  color: var(--green);
}
.hero p {
  font-size: 1.12rem;
  color: #d1dad4;
  max-width: 650px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--surface2);
}
.btn.primary {
  background: var(--green);
  color: #071006;
  border-color: var(--green);
}
.btn:hover {
  transform: translateY(-1px);
}
.notice {
  background: #101712;
  border-bottom: 1px solid var(--line);
}
.notice .container {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  color: #d7e1db;
  font-size: 0.92rem;
}
.section {
  padding: 72px 0;
}
.section.alt {
  background: #0f1512;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}
.section-title h2 {
  font-family: "Barlow Condensed";
  font-size: 2.7rem;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.section-title p {
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: linear-gradient(180deg, #151d18, #101511);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.stat-card strong {
  display: block;
  font-family: "Barlow Condensed";
  font-size: 2.6rem;
  line-height: 1;
  color: var(--green);
}
.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}
.record-card h3 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed";
  font-size: 1.55rem;
  text-transform: uppercase;
}
.record-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.record-line:first-of-type {
  border-top: 0;
}
.almanac-statistics-heading {
  align-items: end;
}
.almanac-statistics-heading p {
  max-width: 520px;
  margin: 0;
  font-size: 0.9rem;
}
.almanac-statistics-table {
  min-width: 920px;
}
.almanac-statistics-table th {
  padding: 0;
}
.almanac-sort {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
.almanac-sort:hover,
.almanac-sort:focus-visible {
  color: var(--green);
}
.almanac-sort:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
}
.almanac-active-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(87, 227, 41, 0.4);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.almanac-statistics-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.muted {
  color: var(--muted);
}
.page-hero {
  padding: 76px 0 48px;
  background:
    radial-gradient(circle at 80% 20%, #1e4226 0, transparent 30%), #0d120f;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}
.page-hero p {
  max-width: 760px;
  color: var(--muted);
}
.page-hero-copy {
  min-width: 0;
}
.page-hero .container.split {
  max-width: 1120px;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.page-hero-media {
  width: 100%;
  max-height: 280px;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101612;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.select {
  background: #111813;
  color: white;
  border: 1px solid var(--line);
  padding: 11px 13px;
  border-radius: 9px;
  font-weight: 700;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101612;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: "Barlow Condensed";
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #172019;
  color: #e9f0ec;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #151e18;
}
.rank-1 td:first-child {
  color: var(--gold);
  font-weight: 800;
}
.rank-2 td:first-child,
.rank-3 td:first-child {
  font-weight: 800;
}
.champion {
  border-color: #4a4524;
  background: linear-gradient(135deg, #1b1b11, #111713);
}
.champion .trophy {
  font-size: 2.4rem;
}
.champion h3 {
  font-family: "Barlow Condensed";
  font-size: 2rem;
  margin: 0.2rem 0;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.member-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.member-section-heading h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.7rem;
  line-height: 1;
  text-transform: uppercase;
}
.member-section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}
.member-section + .member-section {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.member-card-active {
  border-color: rgba(87, 227, 41, 0.42);
  box-shadow: inset 0 3px 0 rgba(87, 227, 41, 0.7);
}
.member-card-active .badge {
  border-color: rgba(87, 227, 41, 0.35);
}
.member-card h3 {
  margin: 0;
  font-family: "Barlow Condensed";
  font-size: 1.55rem;
}
.member-team-history {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.member-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.member-team-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.member-team-name {
  min-width: 0;
  color: #c4cec8;
  font-size: 0.9rem;
  font-weight: 600;
}
.member-team-years {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1c2a20;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}
.form-shell {
  max-width: 760px;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.registration-intro {
  margin-bottom: 28px;
}

.registration-intro h2,
.registration-sidebar h2 {
  margin: 0.2em 0 0.45em;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.registration-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.registration-acknowledgment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 20px 0;
  color: #c4cec8;
}

.registration-acknowledgment input {
  margin-top: 4px;
}

.registration-submit-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.registration-sidebar {
  position: sticky;
  top: 118px;
}

.registration-detail {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.registration-detail:first-of-type {
  border-top: 0;
}

.registration-detail strong {
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-detail span,
.registration-detail a {
  color: #c4cec8;
}

.registration-detail a:hover {
  color: var(--green);
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.contact-location-section {
  padding-top: 0;
}
.contact-location {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}
.contact-map {
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  border: 0;
}
.contact-details h2 {
  margin: 0.2em 0 0.7em;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}
.contact-details dl,
.contact-details dd {
  margin: 0;
}
.contact-details dl > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.contact-details dt {
  margin-bottom: 3px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-details dd,
.contact-details address {
  color: var(--text);
  font-style: normal;
}
.contact-details a:hover {
  color: var(--green);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: #0f1512;
  color: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.closed {
  padding: 22px;
  border: 1px solid #664a26;
  background: #241a10;
  border-radius: 12px;
  color: #f6d59b;
}
.terms h2,
.terms h3 {
  font-family: "Barlow Condensed";
  text-transform: uppercase;
  margin-top: 34px;
}
.terms p,
.terms li {
  color: #c4cec8;
}
.footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copyright {
  text-align: center;
}
.small {
  font-size: 0.86rem;
}
.empty {
  color: var(--muted);
  padding: 22px;
  text-align: center;
}
.feature-image {
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
  background: url("https://ayotek.blob.core.windows.net/ufsl-website/assets/pexels-pixabay-163362.jpg") center/cover;
}
.news-featured {
  padding: clamp(28px, 5vw, 52px);
  border-color: rgba(87, 227, 41, 0.42);
  background:
    radial-gradient(circle at 88% 15%, rgba(87, 227, 41, 0.14), transparent 34%),
    linear-gradient(135deg, #17231a, #101511);
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.news-meta time {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.news-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.news-card h2 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.news-featured h2 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}
.news-card p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
}
.news-card .btn {
  margin-top: auto;
}
.news-list-title {
  margin-top: 56px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-history-heading {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  margin: 0.2em 0;
}

.home-recent-champions {
  grid-column: span 2;
}

.home-recent-champions-heading {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  margin-top: 0;
  text-transform: uppercase;
}

.home-news-section { background: linear-gradient(180deg, rgba(24, 34, 27, 0.72), rgba(12, 17, 14, 0)); }
.home-news-title-action { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.home-news-title-action p { max-width: 380px; margin: 0; }
.home-news-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 20px; }
.home-news-featured { display: flex; min-height: 360px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(28px, 5vw, 52px); border: 1px solid rgba(87, 227, 41, 0.4); border-radius: 16px; background: radial-gradient(circle at 90% 12%, rgba(87, 227, 41, 0.18), transparent 34%), linear-gradient(135deg, #1b2b20, #101511 76%); }
.home-news-featured h3, .home-news-card h3 { margin: 0 0 12px; font-family: "Barlow Condensed", sans-serif; line-height: 0.98; text-transform: uppercase; }
.home-news-featured h3 { max-width: 800px; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.home-news-featured p, .home-news-card p { margin: 0 0 22px; color: var(--muted); }
.home-news-recent { display: grid; gap: 14px; }
.home-news-card { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px; }
.home-news-card .news-meta { width: 100%; margin-bottom: 9px; }
.home-news-card h3 { font-size: 1.55rem; }
.home-news-card p { margin-bottom: 14px; font-size: 0.91rem; }
.home-news-card a:not(.btn) { margin-top: auto; color: var(--green); font-size: 0.9rem; font-weight: 700; }
.home-news-card a:not(.btn):hover { color: var(--text); }
.article-hero {
  padding: 72px 0 58px;
  background:
    radial-gradient(circle at 82% 16%, rgba(87, 227, 41, 0.18), transparent 32%),
    #0d120f;
  border-bottom: 1px solid var(--line);
}
.article-shell {
  max-width: 850px;
}
.article-back {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--green);
  font-weight: 700;
}
.article-back:hover {
  color: var(--text);
}
.article-hero h1,
.article-error h1 {
  margin: 0.2em 0 0.2em;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.92;
  text-transform: uppercase;
}
.article-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: #cbd5cf;
  font-size: 1.15rem;
}
.article-body section + section {
  margin-top: 42px;
}
.article-body h2 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.25rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.article-body p {
  color: #c4cec8;
  font-size: 1.03rem;
}
.article-body > .btn {
  margin-top: 42px;
}
.article-error {
  text-align: center;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #0f1512;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
  }
  .nav.open {
    display: flex;
  }
  .nav-stats-menu {
    position: static;
    min-width: 0;
    margin: 10px 0 2px;
    border-left: 2px solid var(--green);
    border-radius: 0 10px 10px 0;
    box-shadow: none;
  }
  .grid-3,
  .grid-4,
  .member-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .page-hero .container.split {
    grid-template-columns: 1fr;
  }
  .page-hero-media {
    height: 200px;
    max-height: none;
    aspect-ratio: auto;
  }
  .hero {
    min-height: 540px;
  }
  .section {
    padding: 54px 0;
  }
  .home-news-layout { grid-template-columns: 1fr; }
  .home-news-recent { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .registration-layout {
    grid-template-columns: 1fr;
  }

  .registration-sidebar {
    position: static;
  }
}
@media (max-width: 600px) {
  .member-section-heading {
    display: block;
  }
  .member-section-heading p {
    margin-top: 8px;
  }
  .member-section + .member-section {
    margin-top: 48px;
    padding-top: 48px;
  }
  .member-team-row {
    gap: 10px;
  }
  .grid-3,
  .grid-4,
  .member-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .home-news-title-action { display: block; }
  .home-news-title-action .btn { margin-top: 16px; }
  .home-news-recent { grid-template-columns: 1fr; }
  .article-hero {
    padding: 52px 0 42px;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .section-title {
    display: block;
  }
  .section-title p {
    margin-top: 10px;
  }
  .container {
    width: min(var(--max), calc(100% - 22px));
  }
  .brand {
    font-size: 1.25rem;
  }
  .nav-wrap {
    height: 68px;
  }

  .registration-name-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact league lockup used in the footer. */
.nav-wrap {
  height: auto;
  min-height: 96px;
}
.brand {
  gap: 16px;
}
.header-logo {
  flex: 0 0 auto;
  width: 78px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(87, 227, 41, 0.12));
}
.header-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.header-brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.header-brand-name strong {
  font-weight: 800;
  color: var(--text);
}
.header-brand-name > span {
  color: var(--green);
}
.header-brand-copy small {
  margin-top: 7px;
  padding-left: 2px;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}
@media (max-width: 1150px) and (min-width: 901px) {
  .nav-wrap {
    min-height: 82px;
  }
  .brand {
    gap: 12px;
  }
  .header-logo {
    width: 54px;
    max-height: 50px;
  }
  .header-brand-name {
    font-size: 1.08rem;
    letter-spacing: 0.02em;
  }
  .header-brand-copy small {
    font-size: 0.55rem;
    margin-top: 5px;
    padding-left: 1px;
  }
}
@media (max-width: 900px) {
  .contact-location {
    grid-template-columns: 1fr;
  }
  .nav-wrap {
    min-height: 82px;
  }
  .brand {
    gap: 12px;
  }
  .header-logo {
    width: 60px;
    max-height: 56px;
  }
  .header-brand-name {
    font-size: 1.35rem;
  }
  .header-brand-copy small {
    font-size: 0.62rem;
    margin-top: 5px;
    padding-left: 1px;
  }
}
@media (max-width: 600px) {
  .nav-wrap {
    min-height: 72px;
  }
  .header-logo {
    width: 48px;
    max-height: 44px;
  }
  .header-brand-name {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
  }
  .header-brand-copy small {
    font-size: 0.48rem;
    margin-top: 4px;
  }
  .brand {
    gap: 9px;
  }
}

.footer-wrap {
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 64px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(87, 227, 41, 0.14));
}
.footer-brand-copy {
  display: grid;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 1;
}
.footer-brand-copy strong {
  font-size: 1.25rem;
  letter-spacing: 0.055em;
  color: var(--text);
}
.footer-brand-copy span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green);
}
.footer-brand-copy small {
  margin-top: 6px;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.league-records-section {
  background: #0b100d;
}

.league-records-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.league-record-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.league-record-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(91, 236, 49, 0.05);
  pointer-events: none;
}

.league-record-card .eyebrow {
  margin-bottom: 14px;
}

.league-record-card strong {
  display: block;
  position: relative;
  z-index: 1;
  font-family: "Barlow Condensed";
  font-size: 1.8rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.league-record-value {
  position: relative;
  z-index: 1;
  margin: 14px 0 8px;
  color: var(--green);
  font-family: "Barlow Condensed";
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.league-record-year {
  font-size: 2.8rem;
}

@media (max-width: 1000px) {
  .league-records-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .league-records-grid {
    grid-template-columns: 1fr;
  }
}


/* Historical dashboards retain the shared page width and readable table text. */
.history-table-grid,
.season-standings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px 24px;
}
.statistics-table-panel {
  min-width: 0;
}
@media (min-width: 1024px) {
  .statistics-page .section {
    padding: 32px 0;
  }
  .statistics-page .section-title {
    margin-bottom: 18px;
  }
  .statistics-table-panel .section-title h2 {
    font-size: 2rem;
    line-height: 1.1;
  }
  .history-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .history-table-weekly,
  .history-table-full {
    grid-column: 1 / -1;
  }
  .history-table-annual table {
    min-width: 360px;
  }
  .history-table-weekly table {
    min-width: 560px;
  }
  .history-table-grid th,
  .history-table-grid td,
  .season-standings-grid th,
  .season-standings-grid td {
    padding: 10px 12px;
  }
}
@media (min-width: 1440px) {
  .history-table-weekly {
    grid-column: auto;
  }
  .season-standings-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  #final-table table {
    min-width: 360px;
  }
}

/* Shared optional portraits for Almanac leaders, records and season champions. */
.almanac-has-portrait {
  --almanac-portrait-size: 112px;
  position: relative;
  padding-right: calc(var(--almanac-portrait-size) + 40px);
  min-height: calc((var(--almanac-portrait-size) + 6px) * var(--almanac-portrait-count, 1) + 34px);
  overflow-wrap: anywhere;
}
.league-record-card.almanac-has-portrait { min-height: 210px; }
.almanac-has-portrait::after { display: none; }
.almanac-member-portraits {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.almanac-member-portrait {
  display: block;
  width: var(--almanac-portrait-size);
  height: var(--almanac-portrait-size);
  border-radius: 50%;
  border: 1px solid rgba(91, 236, 49, .25);
  box-shadow: 0 0 18px rgba(91, 236, 49, .08);
  object-fit: cover;
  object-position: 50% 25%;
}
#season-champion.almanac-has-portrait { --almanac-portrait-size: 140px; }
@media (max-width: 600px) {
  .almanac-has-portrait { --almanac-portrait-size: 96px; }
  #season-champion.almanac-has-portrait { --almanac-portrait-size: 112px; }
}

/* Reserve readable text columns beside the larger optional portraits. */
.all-time-leaders:has(.almanac-has-portrait) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.league-records-grid:has(.almanac-has-portrait) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
@media (max-width: 600px) {
  .league-record-card.almanac-has-portrait .league-record-value {
    font-size: 2rem;
    white-space: nowrap;
  }
}

/* Member cards share the approved right-side portrait treatment. */
.member-card.almanac-has-portrait .member-team-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.member-card.almanac-has-portrait .badge { white-space: normal; }
#latest-champion.almanac-has-portrait { --almanac-portrait-size: 140px; }
@media (max-width: 600px) {
  #latest-champion.almanac-has-portrait { --almanac-portrait-size: 112px; }
}

/* Five equal record cards fit on wide desktops; narrower screens retain wrapping. */
@media (min-width: 1400px) {
  .league-records-grid:has(.almanac-has-portrait) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .league-record-card { padding: 16px; min-height: 210px; }
  .league-record-card.almanac-has-portrait { --almanac-portrait-size: clamp(96px, 7vw, 114px); padding-right: calc(var(--almanac-portrait-size) + 30px); min-height: 210px; }
  .league-record-card .almanac-member-portraits { right: 16px; }
  .league-record-card .eyebrow { font-size: .7rem; margin-bottom: 10px; }
  .league-record-card strong { font-size: 1.4rem; }
  .league-record-card .league-record-value { font-size: 2.25rem; white-space: nowrap; margin: 12px 0 8px; }
  .league-record-card .muted { font-size: .8rem; }
}
/* Optional news imagery keeps the no-image feature's existing background. */
.home-news-featured { overflow: hidden; }
.home-news-featured-copy { min-width: 0; }
.home-news-featured-with-image, .news-featured-with-image { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; align-items: stretch; }
:is(.home-news-featured-with-image, .news-featured-with-image) .home-news-featured-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 1; padding: clamp(24px, 3vw, 40px); }
.home-news-featured-with-image h3 { font-size: clamp(2rem, 2.7vw, 2.6rem); }
.home-news-featured-media { grid-column: 2; grid-row: 1; position: relative; min-height: 340px; }
.home-news-featured-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.home-news-featured-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #17231b, transparent 28%); pointer-events: none; }
@media (max-width: 900px) {
  .home-news-featured-with-image, .news-featured-with-image { grid-template-columns: minmax(0, 1fr); }
  .home-news-featured-with-image .home-news-featured-copy { grid-row: 1; }
  .home-news-featured-media { grid-column: 1; grid-row: 2; height: 280px; min-height: 0; }
  .home-news-featured-media::after { background: linear-gradient(180deg, #17231b, transparent 20%); }
}

/* Record review: vertical portraits above the original decorative green circles. */
.league-record-card.almanac-has-portrait {
  display: flex; flex-direction: column; justify-content: center;
  padding-right: calc(var(--almanac-portrait-size) + 30px);
}
.league-record-card::after { display: block; z-index: 0; }
.league-record-card > :not(.almanac-member-portraits) { position: relative; z-index: 2; }
.league-record-card .almanac-member-portraits { right: 14px; z-index: 1; }
.league-record-card .almanac-member-portrait {
  height: auto; aspect-ratio: 3 / 4; border-radius: 10px;
}
/* Keep the optional news image in an explicit visible media layer. */
.home-news-featured-media { overflow: hidden; isolation: isolate; }
.home-news-featured-media img { inset: 0; z-index: 0; opacity: 1; visibility: visible; }
.home-news-featured-media::after { z-index: 1; background: linear-gradient(90deg, rgba(23,35,27,.65), transparent 16%); }
@media (max-width: 900px) {
  .home-news-featured-media::after { background: linear-gradient(180deg, rgba(23,35,27,.65), transparent 16%); }
}

.news-featured-with-image { overflow: hidden; }
.news-featured-with-image h2 { font-size: clamp(2rem, 2.7vw, 2.6rem); }
