:root {
  --ink: #101724;
  --muted: #6e7787;
  --navy: #18243a;
  --navy-2: #22304d;
  --red: #d61f32;
  --red-dark: #a61527;
  --gold: #d7b66a;
  --paper: #f6f7f9;
  --line: #e4e7ed;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(11, 19, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main section[id] {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.brand,
.site-nav,
.button,
.hero h1,
.quick-panel,
.next-match,
.countdown,
.section-kicker,
.eyebrow,
.intro h2,
.section-head h2,
.contact h2,
.day-tabs button,
.schedule-row strong,
.table-head span,
.format-grid h3,
.download-card h3,
.download-card a {
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, Helvetica, sans-serif;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 18px clamp(22px, 4.8vw, 76px);
  color: var(--white);
  background: rgba(12, 19, 32, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
  line-height: 1.05;
}

.brand strong {
  font-size: clamp(18px, 1.6vw, 25px);
}

.brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 154px clamp(22px, 7vw, 118px) 138px;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 15, 27, 0.96) 0%, rgba(12, 19, 32, 0.88) 38%, rgba(12, 19, 32, 0.38) 72%, rgba(12, 19, 32, 0.70) 100%),
    url("assets/contact-t20-bg.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 132px;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 16, 28, 0.74), transparent);
}

.hero-content {
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.intro h2,
.contact h2 {
  margin: 0;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(58px, 8vw, 136px);
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(20px, 1.8vw, 27px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border: 2px solid currentColor;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.button.compact {
  min-height: 50px;
  padding: 0 20px;
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.red {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.quick-panel {
  position: absolute;
  right: clamp(22px, 5.4vw, 92px);
  bottom: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  min-width: min(620px, calc(100% - 44px));
  color: var(--white);
  clip-path: polygon(3.5% 0, 100% 0, 96.5% 100%, 0% 100%);
  background: var(--red);
  box-shadow: var(--shadow);
}

.quick-panel div {
  padding: 28px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.quick-panel div:first-child {
  padding-left: clamp(42px, 4vw, 62px);
}

.quick-panel span,
.quick-panel strong {
  display: block;
}

.quick-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 800;
  text-transform: uppercase;
}

.quick-panel strong {
  margin-top: 4px;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1;
}

.match-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.2fr);
  color: var(--white);
  background: linear-gradient(115deg, var(--navy) 0 48%, var(--red) 48% 100%);
}

.next-match {
  padding: 38px clamp(22px, 7vw, 118px);
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.next-match span,
.next-match strong,
.next-match small {
  display: block;
}

.next-match span {
  color: var(--red);
  font-size: clamp(15px, 0.9vw, 18px);
  font-weight: 900;
  text-transform: uppercase;
}

.next-match strong {
  margin-top: 8px;
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1.05;
  text-transform: uppercase;
}

.next-match small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 1vw, 19px);
  font-weight: 700;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 30px clamp(36px, 6vw, 112px) 30px clamp(118px, 8vw, 168px);
  gap: 18px;
}

.countdown div {
  text-align: center;
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-size: clamp(38px, 4.8vw, 82px);
  line-height: 1;
}

.countdown span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(16px, 1vw, 20px);
  font-weight: 800;
  text-transform: uppercase;
}

.section-pad {
  padding: clamp(78px, 8.6vw, 136px) clamp(22px, 6.8vw, 118px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 96px);
}

.intro > * {
  min-width: 0;
}

.poster-frame {
  width: min(100%, 520px);
  justify-self: center;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0e6f88, var(--navy) 55%, var(--red-dark));
  box-shadow: var(--shadow);
}

.poster-frame img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  box-shadow: 0 16px 32px rgba(11, 19, 32, 0.22);
}

.intro h2,
.section-head h2,
.contact h2 {
  font-size: clamp(44px, 5.6vw, 86px);
}

.intro p {
  max-width: 800px;
  color: var(--muted);
  font-size: 21px;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.event-details div {
  padding: 18px;
  border-left: 4px solid var(--red);
  background: var(--paper);
}

.event-details span,
.event-details strong,
.event-details p {
  display: block;
}

.event-details span {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-details strong {
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.event-details strong a {
  color: inherit;
  text-decoration-color: rgba(214, 31, 50, 0.45);
  text-underline-offset: 4px;
}

.event-details p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.sponsor-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(2, minmax(120px, 0.9fr));
  gap: 12px;
  margin-top: 16px;
}

.sponsor-logo {
  display: grid;
  grid-template-rows: 80px auto auto;
  place-items: center;
  min-height: 164px;
  padding: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(11, 19, 32, 0.06);
  text-align: center;
}

.sponsor-logo img {
  width: min(100%, 180px);
  height: 74px;
  object-fit: contain;
}

.sponsor-logo-wide img {
  width: min(100%, 240px);
  height: 64px;
}

.sponsor-logo strong,
.sponsor-logo span {
  display: block;
}

.sponsor-logo strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.sponsor-logo span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.stat-row div {
  padding: 22px;
  border-left: 4px solid var(--red);
  background: var(--paper);
}

.stat-row strong,
.stat-row span {
  display: block;
}

.stat-row strong {
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1;
}

.stat-row span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.program,
.downloads {
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.notice {
  max-width: 1120px;
  margin-bottom: 28px;
  padding: 22px 24px;
  color: #4f596a;
  background: var(--white);
  border-left: 4px solid var(--gold);
  font-size: 22px;
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.day-tabs button {
  min-width: 92px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.day-tabs button.active {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.schedule-table {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(11, 19, 32, 0.08);
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(160px, 0.35fr) minmax(420px, 1.6fr);
  align-items: center;
  min-height: 86px;
  border-top: 1px solid var(--line);
}

.schedule-row:first-child {
  border-top: 0;
}

.schedule-row > * {
  padding: 22px 26px;
}

.schedule-row span {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.35;
}

.schedule-row strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.35;
}

.schedule-row strong small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.table-head {
  min-height: 70px;
  color: var(--white);
  background: var(--navy);
  text-transform: uppercase;
}

.table-head span {
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.schedule-row.is-hidden {
  display: none;
}

.format {
  background: var(--white);
}

.wdf-mark {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.format-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.format-grid article,
.download-card {
  min-height: 280px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.format-grid article {
  border-top: 4px solid var(--red);
}

.format-grid h3,
.download-card h3 {
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.08;
  text-transform: uppercase;
}

.format-grid p,
.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 24px rgba(11, 19, 32, 0.06);
}

.file-type {
  align-self: flex-start;
  padding: 6px 10px;
  color: var(--white);
  background: var(--navy);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.download-card a {
  margin-top: auto;
  color: var(--red-dark);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.download-card a:hover {
  text-decoration: underline;
}

.submission {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  padding: 26px;
  font-size: 22px;
  color: var(--white);
  background: var(--navy);
}

.submission a {
  color: var(--gold);
  font-weight: 900;
}

.contact {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 21, 35, 0.96), rgba(13, 21, 35, 0.70) 46%, rgba(13, 21, 35, 0.46)),
    url("assets/contact-t20-bg.png") center right / cover no-repeat;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  max-width: 1420px;
  margin: 0 auto;
}

.contact p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 21px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(22px, 6.8vw, 118px);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  background: #0c1320;
}

.site-footer a {
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1050px) {
  .format-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-panel {
    position: static;
    margin-top: 42px;
    clip-path: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    max-width: 190px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 22px 24px;
    background: rgba(12, 19, 32, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .hero {
    min-height: 76vh;
    padding-top: 112px;
    padding-bottom: 54px;
  }

  .quick-panel {
    grid-template-columns: repeat(3, 1fr);
    min-width: 0;
    width: 100%;
  }

  .quick-panel div {
    padding: 16px 14px;
  }

  .quick-panel div:first-child {
    padding-left: 14px;
  }

  .match-strip,
  .intro,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    max-width: 460px;
  }

  .next-match {
    clip-path: none;
  }

  .countdown {
    padding: 24px 18px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .schedule-row > * {
    padding: 2px 16px;
  }

  .table-head {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .button,
  .contact-panel .button {
    width: 100%;
  }

  .quick-panel {
    clip-path: none;
  }

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

  .intro h2 {
    font-size: 40px;
  }

  .stat-row,
  .event-details,
  .sponsor-strip,
  .format-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-logo {
    min-height: 150px;
  }

  .poster-frame {
    padding: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
