/* =====================================================
   Guinness Premiership — Main Stylesheet
   ===================================================== */

/* ---- Reset & Custom Properties ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-guinness:     #003366;   /* Deep navy — Guinness Premiership primary */
  --color-guinness-mid: #00509e;
  --color-guinness-lt:  #d4e4f7;
  --color-gold:         #c9a84c;
  --color-gold-dark:    #a07828;
  --color-dark:         #111827;
  --color-mid:          #374151;
  --color-muted:        #6b7280;
  --color-border:       #e5e7eb;
  --color-bg:           #f8f9fc;
  --color-white:        #ffffff;
  --color-qual:         #16a34a;   /* Top 4 green */
  --color-rel:          #dc2626;   /* Relegation red */

  --font-heading: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);

  --transition: 200ms ease;
  --max-width: 1200px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-guinness-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }
a:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; border-radius: 2px; }

ul { list-style: none; }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-guinness);
  color: var(--color-white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---- Screen-reader only ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}
.btn-primary:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: var(--color-white); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-guinness); }
.btn-full { width: 100%; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header { background: var(--color-guinness); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-lg); overflow: visible; }

/* Top bar */
.header-top {
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
}
.sponsor-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}
.sponsor-label { font-weight: 600; color: var(--color-gold); text-transform: uppercase; letter-spacing: .05em; }
.sponsor-item {
  color: rgba(255,255,255,.75);
  padding: 0 .5rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.sponsor-item:last-child { border-right: none; }
.utility-nav { display: flex; gap: 1rem; }
.utility-nav a { color: rgba(255,255,255,.7); font-size: .8rem; transition: color var(--transition); }
.utility-nav a:hover { color: var(--color-gold); }

/* Main header row */
.header-main { padding: .75rem 0; }
.header-main-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

/* Logo */
.site-logo { text-decoration: none; flex-shrink: 0; }
.logo-badge {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-guinness {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: .12em;
}
.logo-premiership {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: .06em;
  line-height: 1.05;
}
.logo-rugby {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .2em;
}

/* Primary nav */
.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  gap: .25rem;
}
.primary-nav a {
  display: block;
  padding: .5rem .85rem;
  color: rgba(255,255,255,.85);
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(255,255,255,.12);
  color: var(--color-gold);
}

/* Mobile toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.mobile-nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Club bar */
.club-bar {
  background: var(--color-guinness-mid);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: .4rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.club-bar::-webkit-scrollbar { display: none; }
.club-logos {
  display: flex;
  gap: .5rem;
  min-width: max-content;
}
.club-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.club-logo-link:hover { background: rgba(255,255,255,.15); }
.club-initial {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: .02em;
}
.club-name-short {
  font-size: .6rem;
  color: rgba(255,255,255,.7);
  text-align: center;
  max-width: 52px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-guinness) 0%, var(--color-guinness-mid) 60%, #1a6bb5 100%);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .75rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.hero-desc {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
  backdrop-filter: blur(4px);
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
  margin-top: .25rem;
}

/* =====================================================
   CONTENT GRID
   ===================================================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 2.5rem 0 3rem;
}
.content-primary { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.content-sidebar { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

/* Section blocks */
.section-block {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-block { border-top: 4px solid var(--color-guinness); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem .75rem;
  border-bottom: 2px solid var(--color-guinness);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-guinness);
}
.report-article .section-title { text-transform: none; letter-spacing: 0; font-size: 1.45rem; line-height: 1.25; }
.section-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color var(--transition);
}
.section-link:hover { color: var(--color-gold-dark); }

/* =====================================================
   NEWS
   ===================================================== */
.news-list { padding: .5rem 0; }
.news-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.news-card:last-child { border-bottom: none; }
.news-card:hover { background: #f0f4ff; }
.news-card-body { flex: 1; min-width: 0; }
.news-date {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}
.news-headline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .4rem;
}
.news-headline a { color: var(--color-dark); }
.news-headline a:hover { color: var(--color-guinness-mid); }
.news-summary {
  font-size: .85rem;
  color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-read-more {
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-guinness-mid);
  white-space: nowrap;
  margin-top: .25rem;
}
.news-read-more:hover { color: var(--color-gold-dark); }

/* =====================================================
   FIXTURES / RESULTS TABLES
   ===================================================== */
.fixtures-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fixtures-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.fixtures-table thead tr {
  background: var(--color-guinness);
  color: var(--color-white);
}
.fixtures-table th {
  padding: .6rem .9rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fixtures-table td {
  padding: .55rem .9rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.fixtures-table tr.row-even { background: var(--color-white); }
.fixtures-table tr.row-odd  { background: #f9fafb; }
.fixtures-table tr:hover td { background: #eef2ff; }

.score-col { text-align: center; }
.meta-col  { color: var(--color-muted); font-size: .8rem; }
.versus    { color: var(--color-muted); font-size: .8rem; }

.score-result { font-size: .95rem; color: var(--color-dark); }
.team-home.winner, .team-away.winner { font-weight: 700; color: var(--color-guinness); }

.tv-tag {
  background: var(--color-guinness-mid);
  color: var(--color-white);
  font-size: .68rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.report-link {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* =====================================================
   LEAGUE TABLE
   ===================================================== */
.table-wrap { overflow-x: auto; padding-bottom: .5rem; }
.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.league-table thead tr {
  background: var(--color-guinness);
  color: var(--color-white);
}
.league-table th {
  padding: .5rem .65rem;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.league-table td {
  padding: .45rem .65rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.league-table tr:hover td { background: #eef2ff; }

.col-pos  { width: 28px; text-align: center; font-weight: 700; color: var(--color-muted); }
.col-team { font-weight: 500; }
.col-stat { width: 28px; text-align: center; color: var(--color-muted); }
.col-pts  { width: 36px; text-align: center; }
.col-pts strong { color: var(--color-guinness); font-weight: 800; font-size: .95rem; }

/* Zone highlights */
.qualification-zone td:first-child { border-left: 3px solid var(--color-qual); }
.relegation-zone td:first-child    { border-left: 3px solid var(--color-rel); }

.table-legend {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .73rem;
  color: var(--color-muted);
  padding: .6rem 1rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.legend-key {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  margin-left: .75rem;
}
.legend-key.qual { background: var(--color-qual); }
.legend-key.rel  { background: var(--color-rel); }

/* =====================================================
   SIDEBAR BLOCKS
   ===================================================== */
.tickets-block,
.about-block {
  padding: 1.25rem;
}
.about-block .btn-outline {
  color: var(--color-guinness);
  border-color: var(--color-guinness);
}
.about-block .btn-outline:hover {
  background: var(--color-guinness);
  color: var(--color-white);
}
.tickets-block h2,
.about-block h2 {
  margin-bottom: .75rem;
}
.tickets-block p,
.about-block p {
  font-size: .9rem;
  color: var(--color-mid);
  line-height: 1.6;
  margin-bottom: .75rem;
}
.tickets-block { background: linear-gradient(135deg, var(--color-guinness) 0%, var(--color-guinness-mid) 100%); }
.tickets-block .section-title { color: var(--color-white); }
.tickets-block p { color: rgba(255,255,255,.8); }
.tickets-block .btn-primary { margin-top: .5rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 0;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {}
.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.footer-logo .logo-guinness  { font-family: var(--font-heading); font-size: .85rem; font-weight: 800; letter-spacing: .12em; color: var(--color-gold); }
.footer-logo .logo-premiership { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; color: var(--color-white); line-height: 1; }
.footer-brand p { font-size: .875rem; line-height: 1.65; margin-bottom: .75rem; }
.copyright { font-size: .75rem; color: rgba(255,255,255,.4); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.footer-nav-col h3 {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-gold);
  margin-bottom: .75rem;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav-col a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-nav-col a:hover { color: var(--color-white); }

.footer-bottom {
  text-align: center;
  padding: 1rem;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* =====================================================
   RESPONSIVE — Tablet (≤ 900px)
   ===================================================== */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: row;
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-top { display: none; }
}

/* =====================================================
   RESPONSIVE — Mobile (≤ 640px)
   ===================================================== */
@media (max-width: 640px) {
  .mobile-nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.25rem;
    right: -1.25rem;
    background: var(--color-guinness);
    border-top: 2px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a {
    padding: .9rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1rem;
  }

  .hero { padding: 2rem 0; }
  .hero-stats { flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 80px; padding: .75rem 1rem; }
  .stat-number { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .content-sidebar { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: repeat(2, 1fr); }

  .news-card { flex-direction: column; }
  .news-read-more { align-self: flex-start; }

  .fixtures-table th,
  .fixtures-table td { padding: .5rem .6rem; font-size: .8rem; }

  .meta-col { display: none; }
  .section-header { flex-wrap: wrap; gap: .5rem; }
}

/* =====================================================
   RESPONSIVE — Extra small (≤ 380px)
   ===================================================== */
@media (max-width: 380px) {
  .logo-premiership { font-size: 1.35rem; }
  .hero-title { font-size: 1.8rem; }
  .stat-card { padding: .6rem .75rem; }
  .stat-number { font-size: 1.5rem; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-header, .hero, .site-footer, .skip-link,
  .tickets-block, .btn { display: none !important; }
  body { color: #000; background: #fff; }
  .content-grid { grid-template-columns: 1fr; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; }
}

/* =====================================================
   MATCH REPORT
   ===================================================== */

/* Breadcrumb bar */
.breadcrumb-bar {
  background: var(--color-dark);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  list-style: none;
  font-size: .8rem;
  flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: '/'; color: rgba(255,255,255,.3); }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb li[aria-current="page"] { color: rgba(255,255,255,.4); }

/* Match header scoreline */
.match-header {
  background: linear-gradient(135deg, var(--color-guinness) 0%, #00356e 100%);
  padding: 1.75rem 0 2rem;
  position: relative;
}
.match-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-gold);
}
.match-meta-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.match-divider { opacity: .4; }
.match-season { color: rgba(255,255,255,.6); }

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  text-align: left;
}
.team-block.team-away {
  align-items: flex-end;
  text-align: right;
}

.team-badge {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-initials {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: .05em;
}
.is-winner .team-badge {
  border-color: var(--color-gold);
  background: rgba(201,168,76,.15);
}
.team-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: .02em;
}
.is-winner .team-name { color: var(--color-gold); }
.is-winner .score-home,
.is-winner .score-away { color: var(--color-gold); }

.team-scorers-summary {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  width: 100%;
}
.scorer-item { white-space: nowrap; }

.score-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding-top: .5rem;
}
.score-main {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.score-home,
.score-away {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
}
.score-sep {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: rgba(255,255,255,.4);
  line-height: 1;
}
.score-ht {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.score-venue {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.score-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}

/* Report layout grid */
.report-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.report-primary { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.report-sidebar  { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

/* Article */
.report-headline {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: none;
  line-height: 1.25;
  color: var(--color-dark);
}
.report-article-body { padding: 1.25rem; }
.report-standfirst {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-mid);
  border-left: 4px solid var(--color-guinness);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.report-article-body p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--color-mid);
  margin-bottom: .9rem;
}
.report-article-body p:last-child { margin-bottom: 0; }

/* Points table */
.points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.points-team { padding: 1rem; }
.points-team + .points-team { border-left: 1px solid var(--color-border); }
.points-team-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-guinness);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}
.points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.points-table th {
  background: var(--color-guinness);
  color: var(--color-white);
  padding: .35rem .5rem;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
}
.points-table th:first-child { text-align: left; }
.points-table td {
  padding: .35rem .5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.points-table td:first-child { text-align: left; }
.points-table tbody tr:nth-child(even):not(.points-total-row) { background: #f9fafb; }
.points-table tbody tr:hover:not(.points-total-row) { background: #eef3fb; }
.points-total-row td { font-weight: 700; background: var(--color-guinness-lt); border-top: 2px solid var(--color-guinness); }
.points-total-row td:first-child { color: var(--color-guinness); }

/* Lineups */
.lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.lineup-team { padding: 1rem; }
.lineup-team + .lineup-team { border-left: 1px solid var(--color-border); }
.lineup-team-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-guinness);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}
.lineup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.lineup-table th {
  background: var(--color-guinness);
  color: var(--color-white);
  padding: .35rem .5rem;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: left;
}
.lineup-table td {
  padding: .32rem .5rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.lineup-table tbody tr:nth-child(even):not(.is-sub) { background: #f9fafb; }
.lineup-table tbody tr:hover { background: #eef3fb; }
.col-num { width: 28px; text-align: center; color: var(--color-muted); font-weight: 700; }
.is-sub td { background: #f0f0f0; font-style: italic; color: var(--color-muted); }
.sub-name em { color: var(--color-muted); font-style: italic; }
.scoring-badge {
  font-size: .72rem;
  font-weight: 700;
  background: var(--color-guinness-lt);
  color: var(--color-guinness);
  padding: .1rem .35rem;
  border-radius: 3px;
  white-space: nowrap;
}
.player-scoring { white-space: nowrap; }

/* Sidebar blocks */
.match-info-list {
  padding: .75rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem 1rem;
  font-size: .85rem;
}
.match-info-list dt {
  font-weight: 700;
  color: var(--color-muted);
  white-space: nowrap;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
}
.match-info-list dd { color: var(--color-dark); padding-bottom: .3rem; border-bottom: 1px solid var(--color-border); }
.match-info-list dt { padding-bottom: .3rem; border-bottom: 1px solid var(--color-border); }

.scoring-key-list {
  padding: .75rem 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .85rem;
  color: var(--color-mid);
}
.key-icon {
  display: inline-block;
  width: 20px;
  color: var(--color-guinness);
  font-size: .9rem;
}

.next-fixtures { padding: .75rem 1rem; display: flex; flex-direction: column; gap: .75rem; }
.next-fixture-item { border-left: 3px solid var(--color-guinness-mid); padding-left: .75rem; }
.next-fixture-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  margin-bottom: .2rem;
}
.next-fixture-match {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.next-fixture-match:hover { color: var(--color-guinness-mid); }
.next-fixture-date {
  font-size: .75rem;
  font-weight: 400;
  color: var(--color-muted);
}

.sidebar-cta { padding: 0 0 .5rem; }
.sidebar-cta .btn-outline {
  color: var(--color-guinness);
  border-color: var(--color-guinness);
}
.sidebar-cta .btn-outline:hover {
  background: var(--color-guinness);
  color: var(--color-white);
}

/* ---- Report Responsive ---- */
@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .sidebar-cta { grid-column: 1 / -1; }
  .scoreline { grid-template-columns: 1fr auto 1fr; gap: 1rem; }
  .score-home, .score-away { font-size: 2.8rem; }
}

@media (max-width: 640px) {
  .scoreline {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    text-align: center;
  }
  .score-centre { order: -1; }
  .team-block.team-home { order: 1; align-items: center; text-align: center; }
  .team-block.team-away { order: 2; align-items: center; text-align: center; }
  .score-home, .score-away { font-size: 2.5rem; }
  .team-scorers-summary { display: none; }
  .points-grid,
  .lineup-grid { grid-template-columns: 1fr; }
  .points-team + .points-team,
  .lineup-team + .lineup-team { border-left: none; border-top: 1px solid var(--color-border); }
  .report-sidebar { grid-template-columns: 1fr; }
}

/* =====================================================
   PLAYER PROFILE
   ===================================================== */

/* Player Hero */
.player-hero {
  background: linear-gradient(135deg, var(--color-guinness) 0%, #00356e 100%);
  padding: 2rem 0 2.5rem;
  position: relative;
}
.player-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-gold);
}
.player-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

/* Avatar */
.player-avatar {
  position: relative;
  flex-shrink: 0;
}
.player-avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 3px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-avatar-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
}
.player-club-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 34px;
  height: 34px;
  background: var(--color-guinness-mid);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: .6rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: .02em;
}

/* Identity */
.player-identity { min-width: 0; }
.player-hero-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}
.player-position-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
}
.player-nationality {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.player-name {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: .5rem;
}
.player-name-first {
  display: block;
  font-size: 1.2rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}
.player-name-last {
  display: block;
  font-size: 2.6rem;
  color: var(--color-white);
  letter-spacing: .02em;
}
.player-club-line {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.player-club-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.player-club-link:hover { color: var(--color-gold); }
.player-season-badge {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  letter-spacing: .05em;
}

/* Hero stats */
.player-hero-stats {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.player-stat-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: .85rem 1.1rem;
  text-align: center;
  min-width: 72px;
  backdrop-filter: blur(4px);
}
.player-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
}
.player-stat-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
}

/* Player content grid */
.player-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.player-primary { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.player-sidebar  { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

/* Bio */
.player-bio-body { padding: 1.25rem; }
.player-bio-body p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--color-mid);
  margin-bottom: .9rem;
}
.player-bio-body p:last-child { margin-bottom: 0; }

/* Stats table */
.player-stats-table-wrap { padding: .5rem 0; }
.player-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.player-stats-table th {
  background: var(--color-guinness);
  color: var(--color-white);
  padding: .4rem 1rem;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: left;
}
.player-stats-table td {
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-dark);
}
.player-stats-table td:first-child { color: var(--color-muted); font-weight: 600; }
.player-stats-table tbody tr:nth-child(even):not(.stats-total-row) { background: #f9fafb; }
.player-stats-table tbody tr:hover:not(.stats-total-row) { background: #eef3fb; }
.stats-total-row td { background: var(--color-guinness-lt); border-top: 2px solid var(--color-guinness); font-weight: 700; }
.stats-total-row td:first-child { color: var(--color-guinness); }

/* Career table */
.career-table-wrap { padding: .5rem 0; }
.career-international { border-top: 1px solid var(--color-border); padding-top: 1rem; margin-top: .5rem; }
.career-subheading {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  padding: .25rem 1rem .5rem;
}
.career-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.career-table th {
  background: var(--color-guinness);
  color: var(--color-white);
  padding: .4rem 1rem;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: left;
}
.career-table th:not(:first-child) { text-align: center; }
.career-table td {
  padding: .45rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.career-table td:not(:first-child) { text-align: center; }
.career-table tbody tr:nth-child(even) { background: #f9fafb; }
.career-table tbody tr:hover { background: #eef3fb; }

/* Sidebar info */
.player-info-list {
  padding: .75rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem .75rem;
  font-size: .85rem;
}
.player-info-list dt {
  font-weight: 700;
  color: var(--color-muted);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}
.player-info-list dd {
  color: var(--color-dark);
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--color-border);
}

/* Notable list */
.player-notable-list {
  padding: .75rem 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.player-notable-list li {
  font-size: .85rem;
  color: var(--color-mid);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.player-notable-list li::before {
  content: '▲';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: .6rem;
  top: .3rem;
}

/* Responsive */
@media (max-width: 900px) {
  .player-hero-inner { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .player-hero-stats { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .player-grid { grid-template-columns: 1fr; }
  .player-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .sidebar-cta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .player-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .player-avatar { margin: 0 auto; }
  .player-hero-meta { justify-content: center; }
  .player-club-line { justify-content: center; }
  .player-hero-stats { justify-content: center; }
  .player-name-last { font-size: 2rem; }
  .player-sidebar { grid-template-columns: 1fr; }
}

/* =====================================================
   CLUBS PAGE  (10818_437.php)
   ===================================================== */

/* Hero */
.clubs-hero {
  background: linear-gradient(135deg, var(--color-guinness) 0%, #00356e 100%);
  padding: 2.5rem 0 3rem;
  position: relative;
}
.clubs-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-gold);
}
.clubs-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.clubs-hero-eyebrow {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .5rem;
}
.clubs-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.clubs-hero-desc {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  max-width: 580px;
  line-height: 1.65;
}
.clubs-hero-stat {
  flex-shrink: 0;
  text-align: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  backdrop-filter: blur(4px);
}
.clubs-hero-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
}
.clubs-hero-stat-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  margin-top: .35rem;
  line-height: 1.3;
}

/* Clubs section wrapper */
.clubs-section {
  padding: 2.5rem 0 3.5rem;
}

/* Grid — 3 columns */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
}

/* Club card */
.club-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.club-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.club-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Badge */
.club-card-badge {
  background: linear-gradient(135deg, var(--color-guinness) 0%, var(--color-guinness-mid) 100%);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.club-card-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3C/g%3E%3C/svg%3E") center/40px;
}
.club-card-initials {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: .08em;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.club-card:hover .club-card-badge {
  background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
}
.club-card:hover .club-card-initials { color: var(--color-dark); text-shadow: none; }

/* Body */
.club-card-body {
  padding: 1.1rem 1.25rem .75rem;
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}
.club-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-guinness);
  letter-spacing: .02em;
  margin-bottom: .3rem;
  line-height: 1.2;
}
.club-card:hover .club-card-name { color: var(--color-gold-dark); }
.club-card-ground {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: .25rem;
}
.club-card-ground svg { flex-shrink: 0; color: var(--color-guinness-mid); }
.club-card-colours {
  font-size: .75rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Meta row */
.club-card-meta {
  display: flex;
  gap: 0;
  background: var(--color-bg);
}
.club-card-meta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .6rem .5rem;
  border-right: 1px solid var(--color-border);
}
.club-card-meta-item:last-child { border-right: none; }
.club-meta-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
}
.club-meta-value {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 800;
  color: var(--color-guinness);
  margin-top: .1rem;
}

/* CTA */
.club-card-cta {
  display: block;
  padding: .7rem 1.25rem;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-guinness-mid);
  transition: background var(--transition), color var(--transition);
}
.club-card:hover .club-card-cta {
  background: var(--color-guinness);
  color: var(--color-white);
}

/* Responsive */
@media (max-width: 900px) {
  .clubs-grid { grid-template-columns: repeat(2, 1fr); }
  .clubs-hero-inner { flex-direction: column; align-items: flex-start; }
  .clubs-hero-stat { align-self: flex-start; }
}
@media (max-width: 540px) {
  .clubs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT / HISTORY PAGE
   ============================================================ */

/* Hero */
.history-hero {
  background: linear-gradient(135deg, var(--color-navy) 60%, #1a3a6e 100%);
  color: var(--color-white);
  padding: 3rem 0 2.5rem;
  border-bottom: 4px solid var(--color-guinness);
}
.history-hero-inner { max-width: 860px; }
.history-hero-label {
  font-family: var(--font-heading);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-guinness);
  margin-bottom: .5rem;
  display: block;
}
.history-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.history-hero-standfirst {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
}

/* Era pill nav in hero */
.history-era-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.era-pill {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 20px;
  padding: .3em .85em;
  font-size: .8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}
.era-pill:hover {
  background: var(--color-guinness);
  border-color: var(--color-guinness);
  color: #fff;
}
.era-pill-years {
  font-weight: 400;
  opacity: .75;
  font-size: .75em;
}

/* Stats bar */
.history-stats-bar {
  background: var(--color-guinness);
  color: #fff;
  padding: .9rem 0;
}
.history-stats-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.hstat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.hstat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
}

/* Layout: sidebar + main */
.history-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
}

/* Sidebar */
.history-sidebar {
  position: sticky;
  top: 80px;
}
.history-side-nav {
  background: var(--color-light);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.side-nav-title {
  font-family: var(--font-heading);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-white);
  background: var(--color-navy);
  padding: .6rem 1rem;
  margin: 0;
}
.history-side-nav ul {
  list-style: none;
  margin: 0; padding: 0;
}
.history-side-nav li {
  border-bottom: 1px solid var(--color-border);
}
.history-side-nav li:last-child { border-bottom: none; }
.history-side-nav a {
  display: flex;
  flex-direction: column;
  padding: .55rem 1rem;
  color: var(--color-navy);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.history-side-nav a:hover {
  background: var(--color-guinness);
  color: #fff;
}
.snav-era {
  font-weight: 600;
  font-size: .8rem;
  line-height: 1.3;
}
.snav-years {
  font-size: .7rem;
  color: var(--color-muted);
  line-height: 1.2;
}
.history-side-nav a:hover .snav-years { color: rgba(255,255,255,.75); }

.history-quick-links {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}
.history-quick-links h3 {
  font-family: var(--font-heading);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
  margin: 0 0 .6rem;
}
.history-quick-links ul {
  list-style: none; margin: 0; padding: 0;
}
.history-quick-links a {
  color: var(--color-guinness-mid);
  text-decoration: none;
  font-size: .85rem;
  display: block;
  padding: .2rem 0;
}
.history-quick-links a:hover { text-decoration: underline; }

/* Era sections */
.era-section {
  margin-bottom: 3rem;
}
.era-header {
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
}
.era-header-inner { display: flex; flex-direction: column; gap: .3rem; }
.era-badge {
  font-size: .72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}
.era-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

/* Era-specific colours */
.era-courage   { background: linear-gradient(135deg, #1c4f8c, #2d72d2); color: #fff; }
.era-allied    { background: linear-gradient(135deg, #0d5e3a, #1a8c59); color: #fff; }
.era-zurich    { background: linear-gradient(135deg, #003366, #005599); color: #fff; }
.era-guinness  { background: linear-gradient(135deg, #0a2340, #1b4b82); color: #fff; border-top: 4px solid var(--color-guinness); }

.era-intro {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding: 0 .25rem;
}

/* Seasons table */
.era-seasons-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.era-seasons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 620px;
}
.era-seasons-table thead tr {
  background: var(--color-navy);
  color: #fff;
}
.era-seasons-table th {
  padding: .6rem .85rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.era-seasons-table td {
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.45;
}
.era-seasons-table tbody tr:nth-child(even) { background: var(--color-light); }
.era-seasons-table tbody tr:hover { background: rgba(200, 160, 40, .08); }
.era-seasons-table tbody tr:last-child td { border-bottom: none; }
.era-seasons-table .current-season td {
  background: rgba(200, 160, 40, .15) !important;
}
.era-seasons-table .current-season .season-year {
  font-weight: 700;
  color: var(--color-guinness-mid);
}
.season-year { font-weight: 600; white-space: nowrap; }
.season-champs strong { color: var(--color-navy); }
.season-notes { color: var(--color-muted); font-size: .8rem; }
.season-rel   { color: #c0392b; font-size: .82rem; }
.season-pro   { color: #1a6b2f; font-size: .82rem; }

/* Professionalism block */
.history-aside-block {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-guinness);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.history-aside-block h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0 0 .85rem;
}
.history-aside-block p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: .75rem;
}
.history-aside-block p:last-child { margin-bottom: 0; }

/* Back to top */
.back-to-top-wrap { text-align: center; padding: 1.5rem 0 .5rem; }
.btn-back-top {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  padding: .45rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: .8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.btn-back-top:hover { background: var(--color-guinness); }

/* Responsive */
@media (max-width: 900px) {
  .history-layout { grid-template-columns: 1fr; }
  .history-sidebar { position: static; }
}
@media (max-width: 640px) {
  .history-stats-inner { gap: 1rem; }
  .hstat-num { font-size: 1.4rem; }
  .history-era-nav { gap: .35rem; }
  .era-pill { font-size: .72rem; padding: .25em .65em; }
}

/* ============================================================
   MATCH CENTRE / FIXTURES PAGE
   ============================================================ */

/* Hero */
.mc-hero {
  background: linear-gradient(135deg, var(--color-navy) 55%, #1a4080 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  border-bottom: 4px solid var(--color-guinness);
}
.mc-hero-inner { max-width: 700px; }
.mc-hero-label {
  font-family: var(--font-heading);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-guinness);
  display: block;
  margin-bottom: .4rem;
}
.mc-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 .5rem;
  line-height: 1.05;
}
.mc-hero-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* Layout */
.mc-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}

/* Sidebar */
.mc-sidebar { position: sticky; top: 80px; }
.mc-season-box,
.mc-quick-links {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.mc-box-title,
.mc-quick-links h3 {
  font-family: var(--font-heading);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  background: var(--color-navy);
  padding: .5rem .85rem;
  margin: 0;
}
.mc-season-list {
  list-style: none; margin: 0; padding: 0;
}
.mc-season-list li {
  border-bottom: 1px solid var(--color-border);
}
.mc-season-list li:last-child { border-bottom: none; }
.mc-season-list a {
  display: block;
  padding: .4rem .85rem;
  font-size: .8rem;
  color: var(--color-navy);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.mc-season-list a:hover,
.mc-season-list li.active a {
  background: var(--color-guinness);
  color: #fff;
}
.mc-season-list li.active a { font-weight: 700; }
.mc-quick-links ul {
  list-style: none; margin: 0; padding: .5rem 0;
}
.mc-quick-links a {
  display: block;
  padding: .3rem .85rem;
  font-size: .82rem;
  color: var(--color-guinness-mid);
  text-decoration: none;
}
.mc-quick-links a:hover { text-decoration: underline; }

/* Section titles */
.mc-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--color-guinness);
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.mc-section-season {
  font-size: .75rem;
  font-weight: 400;
  color: var(--color-muted);
  text-transform: none;
}

/* League Table */
.mc-table-section { margin-bottom: 2.5rem; }
.mc-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: .6rem;
}
.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 560px;
}
.mc-table thead tr {
  background: var(--color-navy);
  color: #fff;
}
.mc-table th {
  padding: .5rem .6rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mc-table th.col-team { text-align: left; }
.mc-table td {
  padding: .45rem .6rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  vertical-align: middle;
}
.mc-table tbody tr:last-child td { border-bottom: none; }
.mc-table tbody tr:nth-child(even) { background: var(--color-light); }
.mc-table tbody tr:hover { background: rgba(200,160,40,.07); }

/* Playoff zone */
.mc-table tr.playoff-zone td { border-left: 3px solid var(--color-guinness); }
.mc-table tr.playoff-zone td:first-child { padding-left: calc(.6rem - 3px); }
.mc-table tr.champion { background: rgba(200,160,40,.12) !important; font-weight: 600; }
.mc-table tr.relegated-zone td { border-left: 3px solid #c0392b; }

.col-pos { width: 42px; font-weight: 600; }
.col-team { text-align: left !important; min-width: 140px; }
.col-pts strong { color: var(--color-navy); font-size: .9rem; }

.team-link { display: flex; align-items: center; gap: .4rem; text-decoration: none; color: inherit; }
.team-initials {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .3rem;
  border-radius: 2px;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.team-name-full { font-size: .82rem; }

.table-note {
  display: inline-block;
  font-size: .6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 2px;
  padding: .1rem .25rem;
  margin-left: .2rem;
  text-transform: uppercase;
  vertical-align: middle;
}
.table-note-c  { background: var(--color-guinness); color: #fff; }
.table-note-f  { background: var(--color-navy); color: #fff; }
.table-note-sf { background: #4a7ec7; color: #fff; }
.table-note-r  { background: #c0392b; color: #fff; }

.table-key {
  font-size: .75rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.key-item { display: flex; align-items: center; gap: .3rem; }
.key-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 1px;
}
.playoff  .key-swatch  { background: var(--color-guinness); }
.relegated .key-swatch { background: #c0392b; }

/* Fixtures */
.mc-fixtures-section { margin-bottom: 2rem; }

.fixtures-col-header {
  display: grid;
  grid-template-columns: 56px 44px 1fr 80px 1fr 140px;
  gap: 0 .5rem;
  padding: .4rem .75rem;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: var(--radius) var(--radius) 0 0;
}

.round-block {
  border: 1px solid var(--color-border);
  border-top: none;
  margin-bottom: 0;
}
.round-block:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.round-block + .round-block { border-top: none; }
.round-block:first-of-type { border-top: 1px solid var(--color-border); }

.round-final  { border-top: 3px solid var(--color-guinness) !important; }
.round-semi   { border-top: 2px solid #4a7ec7 !important; }

.round-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  background: #f0f3f7;
  border-bottom: 1px solid var(--color-border);
}
.round-name {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-navy);
}
.round-dates {
  font-size: .72rem;
  color: var(--color-muted);
}
.round-final .round-header  { background: rgba(200,160,40,.12); }
.round-final .round-name    { color: var(--color-guinness-mid); }
.round-semi  .round-header  { background: rgba(74,126,199,.08); }

.fixture-row {
  display: grid;
  grid-template-columns: 56px 44px 1fr 80px 1fr 140px;
  gap: 0 .5rem;
  align-items: center;
  padding: .45rem .75rem;
  font-size: .82rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.fixture-row:last-child { border-bottom: none; }
.fixture-row:hover { background: rgba(200,160,40,.06); }
.fixture-row.has-result { }

.fix-col-date  { font-size: .75rem; color: var(--color-muted); white-space: nowrap; }
.fix-col-comp  { font-size: .68rem; text-align: center; color: var(--color-muted); }
.fix-col-home  { text-align: right; font-size: .82rem; color: var(--color-text); }
.fix-col-away  { text-align: left;  font-size: .82rem; color: var(--color-text); }
.fix-col-home.winner,
.fix-col-away.winner { font-weight: 700; color: var(--color-navy); }
.fix-col-venue { font-size: .72rem; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fix-col-score {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}
.score-home, .score-away { display: inline-block; min-width: 22px; }
.score-winner { color: var(--color-guinness-mid); }
.score-sep { color: var(--color-muted); margin: 0 2px; }
.score-tbd { color: var(--color-muted); font-size: .8rem; font-weight: 400; }

.fixtures-footer-note {
  font-size: .75rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: .75rem;
  margin-top: 1rem;
}
.fixtures-copyright { margin-top: .25rem; }

/* Responsive */
@media (max-width: 900px) {
  .mc-layout { grid-template-columns: 1fr; }
  .mc-sidebar { position: static; }
  .fixtures-col-header,
  .fixture-row {
    grid-template-columns: 52px 36px 1fr 70px 1fr;
  }
  .fix-col-venue { display: none; }
  .fixtures-col-header span:last-child { display: none; }
}
@media (max-width: 580px) {
  .fixtures-col-header,
  .fixture-row {
    grid-template-columns: 44px 30px 1fr 64px 1fr;
    font-size: .75rem;
    padding: .4rem .5rem;
  }
  .mc-table .hide-sm { display: none; }
}

/* ============================================================
   NEWS ARTICLE PAGE
   ============================================================ */
.news-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.news-category-tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 3px;
  margin-bottom: .85rem;
}
.news-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .85rem;
  color: #fff;
  max-width: 860px;
}
.news-standfirst {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 820px;
  margin: 0 0 1.25rem;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.news-meta span {
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* Layout */
.news-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  align-items: start;
}
.news-article-body {
  min-width: 0;
}
.news-article-body p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--color-text);
  margin: 0 0 1.35rem;
}
.news-article-body p:first-child::first-letter {
  float: left;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: .85;
  color: var(--color-primary);
  margin: .05em .12em 0 0;
  font-family: Georgia, serif;
}

/* Tags */
.news-tags {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.news-tags-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: .25rem;
}
.news-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  font-size: .78rem;
  font-weight: 500;
  padding: .25rem .65rem;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

/* Sidebar */
.news-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.news-sidebar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.sidebar-card-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 .85rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--color-primary);
}
.sidebar-season-info p {
  font-size: .87rem;
  margin: 0 0 .3rem;
  color: var(--color-text);
}
.sidebar-standings {
  margin: .85rem 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  font-size: .82rem;
}
.sidebar-standings-header {
  display: flex;
  justify-content: space-between;
  background: #f8f9fa;
  padding: .35rem .7rem;
  font-weight: 700;
  color: var(--color-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.sidebar-standings-row {
  display: flex;
  justify-content: space-between;
  padding: .35rem .7rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}
.sidebar-standings-top {
  color: var(--color-primary);
  font-weight: 600;
}
.sidebar-link {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: .75rem;
}
.sidebar-link:hover { text-decoration: underline; }
.sidebar-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.sidebar-related-list li a {
  font-size: .85rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding-left: .75rem;
  border-left: 3px solid var(--color-border);
  transition: border-color .2s, color .2s;
}
.sidebar-related-list li a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.sidebar-quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.sidebar-quick-links li a {
  font-size: .85rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.sidebar-quick-links li a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .news-article-layout {
    grid-template-columns: 1fr;
  }
  .news-sidebar {
    position: static;
  }
}
@media (max-width: 580px) {
  .news-hero { padding: 1.75rem 0 1.5rem; }
  .news-article-body p:first-child::first-letter {
    font-size: 2.8rem;
  }
}

/* ============================================================
   LEAGUE TABLE PAGE
   ============================================================ */
.table-page { background: #f5f5f0; }

.table-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a6b 60%, #1b5e20 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.table-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.table-hero-title .sponsor-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.table-hero-title .season-tag {
  font-size: 1.2rem;
  font-weight: 600;
  color: #c8e6c9;
}

.table-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  padding: 2rem 1rem 3rem;
  align-items: start;
}

/* Season selector */
.season-selector-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}
.selector-label { font-size: 0.8rem; font-weight: 600; color: #555; white-space: nowrap; }
.season-pills { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.season-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #f0f0f0;
  color: #444;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: background 0.15s, color 0.15s;
}
.season-pill:hover { background: #1a3a6b; color: #fff; border-color: #1a3a6b; }
.season-pill.active { background: #1a3a6b; color: #fff; border-color: #1a3a6b; }
.season-pill.disabled { color: #bbb; border-color: #eee; cursor: default; }

/* Final info bar */
.final-info-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff9e6;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.final-badge {
  background: #f9a825;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.final-detail { flex: 1; }
.final-detail strong { font-size: 0.95rem; display: block; }
.final-venue { font-size: 0.78rem; color: #777; }
.champion-badge { text-align: right; }
.champion-label { display: block; font-size: 0.68rem; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.champion-name { font-size: 0.9rem; font-weight: 700; color: #1b5e20; }

/* The league table */
.league-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.league-table thead tr { background: #1a3a6b; color: #fff; }
.league-table thead th {
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}
.league-table .col-team { text-align: left; min-width: 160px; }
.league-table .col-pos { width: 36px; }
.league-table .col-pts { font-weight: 700; color: #1a3a6b; background: #e8effc; }
.league-table thead .col-pts { background: rgba(255,255,255,0.15); color: #fff; }

.league-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.12s; }
.league-table tbody tr:hover { background: #f7faff; }
.league-table tbody td { padding: 0.55rem 0.5rem; text-align: center; }
.league-table tbody .col-team { text-align: left; padding-left: 0.75rem; }
.team-name { font-weight: 600; font-size: 0.88rem; }

.league-table .playoff-zone { background: #f0fff4; }
.league-table .relegation-zone { background: #fff5f5; }
.league-table .col-pd { font-weight: 600; }
.pd-pos { color: #2e7d32; }
.pd-neg { color: #c62828; }
.col-pts { font-weight: 700; }

.row-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.tag-champion  { background: #f9a825; color: #fff; }
.tag-finalist  { background: #78909c; color: #fff; }
.tag-semi      { background: #90a4ae; color: #fff; }
.tag-relegated { background: #e53935; color: #fff; }
.tag-note      { background: #9e9e9e; color: #fff; }

/* Legend */
.table-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 0.75rem;
  align-items: center;
}
.legend-item { display: flex; align-items: center; gap: 0.35rem; }
.legend-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
}
.playoff-dot { background: #c8e6c9; border: 1px solid #81c784; }
.relegation-dot { background: #ffcdd2; border: 1px solid #e57373; }

.table-notes {
  font-size: 0.78rem;
  color: #777;
  font-style: italic;
  margin-bottom: 1rem;
}

.table-rules {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
}
.table-rules h3 { font-size: 0.9rem; margin-bottom: 0.6rem; color: #1a3a6b; }
.table-rules ul { padding-left: 1.25rem; margin: 0; }
.table-rules li { margin-bottom: 0.3rem; line-height: 1.5; }

/* Season summary sidebar */
.season-summary-dl { font-size: 0.82rem; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.75rem; }
.season-summary-dl dt { font-weight: 600; color: #555; }
.season-summary-dl dd { margin: 0; }
.summary-champion { font-weight: 700; color: #1b5e20; }

/* Top scorer sidebar */
.scorer-item { padding: 0.4rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.82rem; }
.scorer-item:last-child { border: none; }
.scorer-name { display: block; font-weight: 600; }
.scorer-team { display: block; color: #777; font-size: 0.78rem; }
.scorer-stat { display: block; color: #1a3a6b; font-size: 0.78rem; }
.scorer-na { font-size: 0.82rem; color: #888; }

@media (max-width: 920px) {
  .table-layout { grid-template-columns: 1fr; }
  .table-sidebar { order: -1; }
  .final-info-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 580px) {
  .table-hero { padding: 1.5rem 0 1.25rem; }
  .table-hero-title { font-size: 1.4rem; }
  .league-table { font-size: 0.75rem; }
  .col-pd, .league-table th:nth-child(9) { display: none; }
}

/* ============================================================
   REFEREES PAGE
   ============================================================ */
.referees-page { background: #f5f5f0; }

.referees-hero {
  background: linear-gradient(135deg, #1a237e 0%, #283593 60%, #1565c0 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.referees-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}
.referees-hero-sub {
  font-size: 1rem;
  color: #b0bec5;
  margin: 0;
}

.referees-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  padding: 2rem 1rem 3rem;
  align-items: start;
}

.eru-intro {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
}
.eru-intro h2 { font-size: 1.1rem; color: #1a237e; margin-bottom: 0.75rem; }
.eru-intro p { margin-bottom: 0.75rem; }
.eru-intro p:last-child { margin: 0; }

/* Referees grid */
.referees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.referee-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.referee-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.referee-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #e8eaf6, #f5f5f0);
  border-bottom: 1px solid #e8eaf6;
}
.referee-icon {
  color: #1a237e;
  opacity: 0.6;
  flex-shrink: 0;
}
.referee-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a237e;
  margin: 0 0 0.2rem;
}
.referee-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #455a64;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.referee-region {
  display: block;
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.1rem;
}
.referee-card-body { padding: 1rem 1.25rem; }
.referee-bio { font-size: 0.82rem; line-height: 1.6; color: #444; margin: 0 0 0.6rem; }
.referee-notable {
  font-size: 0.78rem;
  color: #555;
  background: #f5f5f0;
  border-left: 3px solid #1a237e;
  padding: 0.4rem 0.6rem;
  border-radius: 0 4px 4px 0;
}
.notable-label { font-weight: 700; color: #1a237e; margin-right: 0.3rem; }

/* Become ref CTA */
.become-ref-cta {
  background: linear-gradient(135deg, #1a237e, #283593);
  color: #fff;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  text-align: center;
}
.become-ref-cta h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.become-ref-cta p { font-size: 0.85rem; color: #b0bec5; margin-bottom: 1rem; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #1a237e;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}
.cta-btn:hover { background: #e8eaf6; }

/* ERU facts sidebar */
.eru-facts { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; }
.eru-facts li { padding: 0.35rem 0; border-bottom: 1px solid #f0f0f0; line-height: 1.4; }
.eru-facts li:last-child { border: none; }
.eru-facts strong { font-size: 1rem; color: #1a237e; }

@media (max-width: 920px) {
  .referees-layout { grid-template-columns: 1fr; }
  .referees-sidebar { order: -1; }
}
@media (max-width: 620px) {
  .referees-grid { grid-template-columns: 1fr; }
  .referees-hero-title { font-size: 1.5rem; }
}
