/* RESET & FOUNDATIONS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --midnight: #0B1F33;
  --chalk: #F8F6F0;
  --cobalt: #2F6BFF;
  --coral: #FF6F61;
  --pale-blue: #DDE8F7;
  --graphite: #28323D;
  --border-width: 3px;
  --comic-shadow: 4px 4px 0px var(--midnight);
  --comic-shadow-hover: 2px 2px 0px var(--midnight);
}

body {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  background-color: var(--chalk);
  color: var(--midnight);
  line-height: 1.5;
  padding-bottom: 60px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background-color: var(--pale-blue);
  padding: 0.5rem 1rem;
  border: var(--border-width) solid var(--midnight);
  box-shadow: var(--comic-shadow);
  display: inline-block;
  transform: rotate(-1deg);
  border-radius: 8px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

a {
  color: var(--cobalt);
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

/* ACCESSIBILITY & UTILITIES */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.focus-ring:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

/* TOP BAR & HEADER */
.top-bar {
  background-color: var(--midnight);
  color: var(--chalk);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  border-bottom: var(--border-width) solid var(--midnight);
}

.site-header {
  background-color: var(--chalk);
  border-bottom: var(--border-width) solid var(--midnight);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--midnight);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.brand-logo .logo-box {
  background-color: var(--coral);
  color: var(--chalk);
  font-size: 1.15rem;
  padding: 0.15rem 0.45rem;
  border: var(--border-width) solid var(--midnight);
  border-radius: 5px;
  transform: rotate(-3deg);
  display: inline-block;
  line-height: 1;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  color: var(--midnight);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: var(--border-width) solid transparent;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--pale-blue);
  border-color: var(--midnight);
  text-decoration: none;
}

/* MOBILE NAV */
.menu-toggle {
  display: none;
  background-color: var(--cobalt);
  color: var(--chalk);
  border: var(--border-width) solid var(--midnight);
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--midnight);
}

.menu-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* DATE BAND & HERO */
.hero-section {
  background-color: var(--pale-blue);
  border-bottom: var(--border-width) solid var(--midnight);
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background-color: var(--coral);
  opacity: 0.2;
  border-radius: 50%;
}

.hero-badge {
  background-color: var(--midnight);
  color: var(--chalk);
  padding: 0.4rem 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--midnight);
  line-height: 1;
  margin-bottom: 1.5rem;
  transform: skewX(-3deg);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  font-weight: bold;
  color: var(--graphite);
}

.date-band {
  background-color: var(--coral);
  color: var(--midnight);
  border-bottom: var(--border-width) solid var(--midnight);
  padding: 0.75rem 1rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CORE CONTAINERS */
.main-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.cutoff-notice {
  background-color: var(--chalk);
  border: var(--border-width) solid var(--midnight);
  box-shadow: var(--comic-shadow);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cutoff-icon {
  font-size: 2rem;
  background-color: var(--coral);
  padding: 0.5rem;
  border: var(--border-width) solid var(--midnight);
  border-radius: 8px;
  line-height: 1;
}

.cutoff-text h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cutoff-text p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--graphite);
}

/* TRANSIT BOARD MATCHDAY CHAPTERS */
.chapter-container {
  margin-bottom: 4rem;
}

.chapter-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.fixture-lanes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* POSTER STRIP FIXTURES */
.fixture-strip {
  background-color: var(--chalk);
  border: var(--border-width) solid var(--midnight);
  border-radius: 12px;
  box-shadow: var(--comic-shadow);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.fixture-strip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--midnight);
}

.group-pill {
  background-color: var(--midnight);
  color: var(--chalk);
  font-weight: 900;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  min-width: 90px;
  text-align: center;
  border: var(--border-width) solid var(--midnight);
  box-shadow: 2px 2px 0px var(--coral);
}

.teams-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.team-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 40%;
}

.team-box.home {
  justify-content: flex-end;
}

.team-box.away {
  justify-content: flex-start;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vs-badge {
  background-color: var(--coral);
  color: var(--midnight);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border: 2px solid var(--midnight);
  border-radius: 4px;
  transform: rotate(-5deg);
}

.match-stats-pane {
  display: flex;
  gap: 1rem;
  background-color: var(--pale-blue);
  border: var(--border-width) solid var(--midnight);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--graphite);
}

.stat-val {
  font-size: 1rem;
  font-weight: 900;
}

/* DECISION BOARD */
.decision-board-wrapper {
  background-color: var(--midnight);
  color: var(--chalk);
  border: var(--border-width) solid var(--midnight);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 4rem;
  box-shadow: var(--comic-shadow);
}

.decision-board-wrapper h2 {
  background-color: var(--coral);
  color: var(--midnight);
  border-color: var(--midnight);
  margin-bottom: 2rem;
}

.decision-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.decision-strip {
  background-color: var(--graphite);
  border: 2px solid var(--chalk);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr;
  align-items: center;
  gap: 1.5rem;
}

.decision-teams {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--chalk);
  text-transform: uppercase;
}

.decision-data-block {
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: var(--pale-blue);
}

.decision-fact {
  font-size: 0.95rem;
  border-left: 3px solid var(--coral);
  padding-left: 1rem;
  line-height: 1.4;
}

/* GROUP POSITION GUIDE & INFO SECTION */
.info-block {
  background-color: var(--pale-blue);
  border: var(--border-width) solid var(--midnight);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 4rem;
  box-shadow: var(--comic-shadow);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-column h3 {
  border-bottom: 3px solid var(--midnight);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* STACKED STANDINGS (GROUP CONTEXT PAGE) */
.group-strips-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.group-card {
  background-color: var(--chalk);
  border: var(--border-width) solid var(--midnight);
  border-radius: 16px;
  box-shadow: var(--comic-shadow);
  padding: 1.5rem;
}

.group-title-banner {
  background-color: var(--cobalt);
  color: var(--chalk);
  font-size: 1.5rem;
  font-weight: 900;
  padding: 0.5rem 1.5rem;
  border: var(--border-width) solid var(--midnight);
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1.5rem;
  transform: rotate(-1deg);
}

.stacked-table {
  width: 100%;
  border-collapse: collapse;
}

.stacked-table th {
  background-color: var(--midnight);
  color: var(--chalk);
  padding: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-align: center;
}

.stacked-table th.text-left, .stacked-table td.text-left {
  text-align: left;
}

.stacked-table td {
  padding: 0.75rem;
  border-bottom: 2px solid var(--midnight);
  font-weight: bold;
  text-align: center;
}

.stacked-table tr:last-child td {
  border-bottom: none;
}

.stacked-table tr:nth-child(even) {
  background-color: rgba(47, 107, 255, 0.05);
}

/* FORM STYLING (CONTACT) */
.contact-form {
  background-color: var(--chalk);
  border: var(--border-width) solid var(--midnight);
  border-radius: 16px;
  box-shadow: var(--comic-shadow);
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem;
  border: var(--border-width) solid var(--midnight);
  border-radius: 8px;
  background-color: var(--chalk);
  font-family: inherit;
  font-weight: bold;
  color: var(--midnight);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 2px 2px 0px var(--midnight);
}

.btn-submit {
  background-color: var(--coral);
  color: var(--midnight);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: var(--border-width) solid var(--midnight);
  border-radius: 8px;
  box-shadow: var(--comic-shadow);
  cursor: pointer;
  transition: all 0.1s ease;
  width: 100%;
}

.btn-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--midnight);
}

.btn-submit:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--midnight);
}

/* LEGAL PAGES & REGULAR CONTENT LAYOUT */
.legal-layout {
  background-color: var(--chalk);
  border: var(--border-width) solid var(--midnight);
  border-radius: 16px;
  box-shadow: var(--comic-shadow);
  padding: 3rem;
  margin: 3rem auto;
  max-width: 900px;
}

.legal-layout h1 {
  border-bottom: var(--border-width) solid var(--midnight);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.legal-layout h2 {
  font-size: 1.5rem;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  transform: none;
  border-bottom: 2px solid var(--midnight);
  display: block;
  border-radius: 0;
  margin: 2rem 0 1rem 0;
}

.legal-layout ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-layout li {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--midnight);
  color: var(--chalk);
  border-top: var(--border-width) solid var(--midnight);
  padding: 1.5rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 25px rgba(0,0,0,0.3);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  font-size: 0.95rem;
  font-weight: bold;
}

.cookie-text a {
  color: var(--coral);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: var(--border-width) solid var(--midnight);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--midnight);
}

.cookie-btn.accept {
  background-color: var(--coral);
  color: var(--midnight);
}

.cookie-btn.reject {
  background-color: var(--pale-blue);
  color: var(--midnight);
}

.cookie-btn.manage {
  background-color: var(--chalk);
  color: var(--midnight);
}

.cookie-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--midnight);
}

/* SITE FOOTER */
.site-footer {
  background-color: var(--midnight);
  color: var(--chalk);
  border-top: var(--border-width) solid var(--midnight);
  padding: 4rem 1rem 2rem 1rem;
  margin-top: 6rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 2px solid rgba(248, 246, 240, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-address {
  font-style: normal;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--pale-blue);
  line-height: 1.6;
}

.footer-links-col h5 {
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--coral);
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col li {
  margin-bottom: 0.75rem;
}

.footer-links-col a {
  color: var(--chalk);
  font-weight: bold;
}

.footer-links-col a:hover {
  color: var(--pale-blue);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--pale-blue);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
  .header-container, .main-container, .cookie-container, .footer-grid, .footer-bottom {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .decision-strip {
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
  }
  .decision-fact {
    grid-column: span 2;
    border-left: none;
    border-top: 3px solid var(--coral);
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--chalk);
    border-bottom: var(--border-width) solid var(--midnight);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .nav-menu.active {
    display: flex;
  }
  .fixture-strip {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.25rem;
  }
  .teams-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }
  .team-box {
    width: 100%;
    justify-content: center !important;
  }
  .match-stats-pane {
    justify-content: center;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cookie-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .legal-layout {
    padding: 1.5rem;
  }
  .decision-strip {
    grid-template-columns: 1fr;
  }
  .decision-fact {
    grid-column: span 1;
  }
}