@font-face {
  font-family: "Tektur";
  src: url("/fonts/tektur-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tektur";
  src: url("/fonts/tektur-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tektur";
  src: url("/fonts/tektur-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --blue: #0054a6;
  --navy: #1b3f7a;
  --light-blue: #3e7fc4;
  --silver: #b8bbc0;
  --grey: #8f9399;
  --ink: #142a43;
  --muted: #657382;
  --line: #d7e0e9;
  --paper: #f4f7fb;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Tektur, Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
body::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(90deg, var(--blue) 0 38%, #fff 38% 48%, var(--navy) 48% 78%, var(--silver) 78% 100%);
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}
.crest {
  width: 52px;
  height: 62px;
  object-fit: contain;
}
.brand strong {
  display: block;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}
.brand span {
  display: block;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.nav-links a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}
.hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(110deg, rgba(27, 63, 122, 0.95), rgba(0, 84, 166, 0.82) 47%, rgba(20, 42, 67, 0.38)),
    url("/images/wrfc-crest.png") right 7vw center / min(360px, 46vw) no-repeat,
    var(--navy);
  color: #fff;
}
.hero-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 64px 0 50px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #dfe8f4;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}
.hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: #edf4fb;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.button.secondary {
  background: #fff;
  color: var(--blue);
}
.button.dark {
  border-color: #fff;
  background: #fff;
  color: var(--navy);
}
.button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.page {
  width: min(1180px, calc(100% - 28px));
  margin: 34px auto 56px;
}
.band { padding: 36px 0; }
.section-title {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(20, 42, 67, 0.08);
}
.card h2,
.panel h2,
.card h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}
.card p,
.panel p {
  margin: 0 0 12px;
  color: var(--muted);
}
.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}
.link-list a:hover { border-color: var(--blue); background: #f7fbff; }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.team-tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.team-tabs button.active,
.team-tabs button:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.fixture-list { display: grid; gap: 10px; }
.fixture {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  min-width: 0;
}
.fixture-date {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
}
.fixture-teams {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.fixture-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.score {
  min-width: 54px;
  border-radius: 6px;
  padding: 7px 8px;
  background: #eef5fc;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}
.table-wrap {
  max-width: 100%;
  overflow-x: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  font-size: 0.92rem;
  table-layout: fixed;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  overflow-wrap: anywhere;
}
th {
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
}
td.numeric,
th.numeric { text-align: right; }
.official-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.official {
  min-height: 230px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(0, 84, 166, 0), rgba(27, 63, 122, 0.92)),
    #dce6f2;
  color: #fff;
}
.photo-placeholder {
  width: 72px;
  height: 72px;
  border: 2px solid #fff;
  border-radius: 50%;
  margin-bottom: 48px;
  background: rgba(255,255,255,0.28);
}
.official h2 { color: #fff; }
.site-footer { background: var(--navy); color: #fff; }
.footer-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner a { color: #fff; font-weight: 700; }
.muted { color: var(--muted); }
.update-note {
  margin: 22px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.empty {
  border: 1px dashed var(--silver);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  color: var(--muted);
}
@media (max-width: 900px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .nav-links { margin-left: 0; justify-content: flex-start; }
  .grid, .two-col, .official-grid { grid-template-columns: 1fr; }
  .hero { min-height: 370px; background-size: 230px; background-position: right -40px center; }
  .fixture {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .fixture-date { grid-column: 1 / -1; }
  .score { justify-self: end; }
}
@media (max-width: 540px) {
  .nav-links { gap: 4px; }
  .nav-links a { padding: 8px 6px; font-size: 0.76rem; }
  .brand strong { font-size: 1rem; }
  .crest { width: 44px; height: 54px; }
  .page { margin-top: 22px; }
  .panel,
  .card { padding: 14px; }
  .team-tabs { gap: 6px; }
  .team-tabs button { padding: 8px 9px; font-size: 0.8rem; }
  .fixture {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .score {
    justify-self: start;
    min-width: 48px;
    padding: 6px 7px;
  }
  table { font-size: 0.76rem; }
  th, td { padding: 7px 4px; }
  th:nth-child(5),
  td:nth-child(5),
  th:nth-child(6),
  td:nth-child(6),
  th:nth-child(7),
  td:nth-child(7) {
    display: none;
  }
}
