/* LUVGolf South Africa - Main Stylesheet */

:root {
  --luv-red: #d8202a;
  --luv-red-dark: #a6151d;
  --luv-grey: #58595b;
  --luv-grey-dark: #333537;
  --luv-grey-light: #ededed;
  --luv-fairway: #1e5b3a;

  --white-1: #fff;
  --white: #ffffff;
  --off-white: #fafaf9;

  --text: #26262a;
  --text-muted: #767679;
  --border: #e2e2e2;

  --shadow: 0 4px 18px rgba(38, 38, 42, 0.08);
  --radius: 6px;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  width: 100%;
}

html,
body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  min-height: 100%;
}

body {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;

  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--luv-red);
  text-decoration: none;
}

a:hover {
  color: var(--luv-red-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02rem;
  color: var(--luv-grey-dark);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
}

/* Container */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 56px);
  padding-right: clamp(16px, 4vw, 56px);
}

/* Edge-to-edge header, footer and admin header */
.topbar .container,
.site-header .container,
.site-footer .container,
.container:has(> .main-nav) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header .container,
.container:has(> .main-nav) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin-right: auto; /* logo hard left */
}

.main-nav {
  flex: 1 1 auto; /* nav takes the remaining space */
  margin-left: auto;
}

.main-nav ul {
  justify-content: flex-end; /* links pushed to the far right */
}

/* Sections */
.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section--grey {
  background: var(--luv-grey-light);
}

.section--dark {
  background: var(--luv-grey-dark);
  color: #f2f2f2;
}

.section--dark h2,
.section--dark h3 {
  color: var(--white-1);
}

/* Eyebrow */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  color: var(--luv-red);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-style: italic;
}

.btn-primary {
  background: var(--luv-red);
  color: var(--white-1);
}

.btn-primary:hover {
  background: var(--luv-red-dark);
  color: var(--white-1);
}

.btn-outline {
  border-color: var(--luv-grey-dark);
  color: var(--luv-grey-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--luv-grey-dark);
  color: var(--white-1);
}

.btn-outline-light {
  border-color: var(--white-1);
  color: var(--white-1);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white-1);
  color: var(--luv-grey-dark);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.8rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: var(--luv-red);
  color: var(--white-1);
}

/* Top Bar */
.topbar {
  background: var(--luv-grey-dark);
  color: #ddd;
  font-size: 0.8rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.topbar a {
  color: #ddd;
}

.topbar a:hover {
  color: var(--white-1);
}

/* Main Header */
.site-header {
  background: var(--white-1);
  border-bottom: 4px solid var(--luv-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding-top: 8px;
  padding-bottom: 8px;
  position: relative;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Desktop Navigation */
.main-nav {
  margin-left: auto;
  min-width: 0;
  flex: 1 1 0;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  row-gap: 2px;
}

.main-nav li {
  flex: 0 0 auto;
}

.main-nav a {
  display: block;
  white-space: nowrap;
  color: var(--luv-grey-dark);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  padding: 8px 8px;
  border-radius: 4px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--luv-red);
  background: var(--luv-grey-light);
}

.main-nav .cta {
  color: var(--white-1);
  background: var(--luv-red);
}

.main-nav .cta:hover {
  color: var(--white-1);
  background: var(--luv-red-dark);
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--luv-grey-dark);
  cursor: pointer;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 1100;
  font-size: 0;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--luv-grey-light);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--luv-red);
  outline-offset: 2px;
}

.navToggle .bar1,
.navToggle .bar2,
.navToggle .bar3 {
  display: block;
  width: 30px;
  height: 4px;
  background-color: #333;
  margin: 3px 0;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.nav-toggle.change .bar1 {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle.change .bar2 {
  opacity: 0;
}

.nav-toggle.change .bar3 {
  transform: translateY(-10px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  color: var(--white-1);
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* Parallax Background Image */
.hero__parallax-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("../public/images/background.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -3;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

/* Hero Overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.28) 100%
  );
  z-index: -2;
  pointer-events: none;
}

.hero .container {
  width: 100%;
  height: 100%;
  padding: 5%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  color: var(--white-1);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 640px;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero p.lead {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 540px;
  color: #f0f0f0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero .btn {
  margin-right: 12px;
  margin-top: 20px;
}

/* Hero Stripe */
.hero-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--luv-red) 0%,
    var(--luv-red) 40%,
    var(--luv-grey-dark) 40%,
    var(--luv-grey-dark) 100%
  );
  z-index: 3;
}

/* Hero Image Variant */
.hero__bg {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero Buttons */
.hero__cta {
  position: absolute;
  right: 4%;
  bottom: 5%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 10;
  max-width: 55%;
}

.hero__cta .btn {
  margin: 0;
  white-space: nowrap;
}

/* Course Photo Background */
.section--photo-bg {
  position: relative;
  background-image:
    linear-gradient(
      180deg,
      rgba(20, 20, 20, 0.55) 0%,
      rgba(20, 20, 22, 0.72) 100%
    ),
    url("../public/images/course-hero.jpeg");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  color: var(--white-1);
}

.section--photo-bg h2,
.section--photo-bg h3 {
  color: var(--white-1);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.section--photo-showcase {
  text-align: center;
  padding: 90px 0;
}

.section--photo-showcase .eyebrow {
  color: var(--white-1);
}

.section--photo-showcase h2 {
  font-style: italic;
  font-size: 2.4rem;
  max-width: 720px;
  margin: 0 auto 16px;
}

.section--photo-showcase p {
  max-width: 620px;
  margin: 0 auto;
  color: #f0f0f0;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Dasboard styling */
.inline-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dash-sidebar a {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dash-sidebar .inline-icon {
  width: 16px;
  height: 16px;
  margin-right: 0;
}

.security-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 400;
}

.security-note .inline-icon {
  width: 15px;
  height: 15px;
  margin-right: 0;
}

/* Cards/Grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid > * {
  min-width: 0;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white-1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 3px solid var(--luv-red);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.card .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.tournament-panel {
  border-top-width: 4px;
  box-shadow: none;
}

.tournament-details-panel {
  border-top: 0;
}

.tournament-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tournament-panels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.9fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .tournament-panels-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tournament-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 22px 28px;
  margin: 0;
}

.tournament-details dt {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tournament-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tournament-page-banner .tournament-breadcrumb {
  position: absolute;
  top: -32px;
  margin: 0;
  color: #f0f0f0;
  font-size: 0.9rem;
}

.tournament-page-banner .container {
  position: relative;
}

.tournament-page-banner .tournament-breadcrumb a {
  color: #ffffff;
}

.tournament-info-table {
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  border-collapse: collapse;
  table-layout: fixed;
}

.tournament-info-table th,
.tournament-info-table td {
  padding: 11px 8px;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tournament-info-table th {
  width: 34%;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: none;
}

.tournament-info-table .tournament-course-label {
  color: var(--luv-red);
}

.tournament-info-table tr:last-child th,
.tournament-info-table tr:last-child td {
  border-bottom: 0;
}

.tournament-description {
  overflow-wrap: anywhere;
}

/* Status Pills */
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--luv-grey-light);
  color: var(--luv-grey-dark);
}

.status-pill.open {
  background: #e7f4ec;
  color: var(--luv-fairway);
}

.status-pill.closed {
  background: #fbe6e6;
  color: var(--luv-red-dark);
}

.status-pill.live {
  background: var(--luv-red);
  color: var(--white-1);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white-1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

thead th {
  background: var(--luv-grey-dark);
  color: var(--white-1);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  font-size: 0.8rem;
}

tbody tr:hover {
  background: var(--luv-grey-light);
}

tbody tr:nth-child(1) td:first-child,
.rank-1 {
  color: var(--luv-red);
  font-weight: 800;
}

/* Forms */
.form-card {
  background: var(--white-1);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
  border-top: 3px solid var(--luv-red);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--luv-grey-dark);
}
.form-group {
  margin-bottom: 18px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white-1);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--luv-red);
  box-shadow: 0 0 0 3px rgba(216, 32, 42, 0.12);
}
textarea {
  min-height: 120px;
  resize: vertical;
}

/* Password Visibility Toggle */
.password-field {
  position: relative;
}

.password-field input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.password-toggle-btn i {
  font-size: 1.05rem;
}

.password-toggle-btn:hover {
  color: var(--luv-red);
}

/* Form Row */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
  min-width: 0;
}

.help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* Rules and Constitution page */
.rules-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Table wrapper with horizontal scrolling */
.rules-table-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    box-sizing: border-box;
}

/* Document table */
.rules-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    table-layout: auto;
    background: #fff;
}

/* Table headings and cells */
.rules-table th,
.rules-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: break-word;
    word-break: normal;
    box-sizing: border-box;
}

/* Table header */
.rules-table th {
    background: #333537;
    color: #fff;
    font-weight: 600;
}

/* Table rows */
.rules-table tbody tr:nth-child(even) {
    background: #f8f8f8;
}

.rules-table tbody tr:hover {
    background: #f1f1f1;
}

/* Action column */
.rules-table th:last-child,
.rules-table td:last-child {
    text-align: center;
}

/* Download buttons */
.rules-table .document-action {
    display: inline-block;
    max-width: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    white-space: nowrap;
    text-decoration: none;
}

/* Tablet layout */
@media (max-width: 768px) {
    .rules-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .rules-table {
        width: 650px;
        min-width: 650px;
        table-layout: auto;
    }

    .rules-table th,
    .rules-table td {
        padding: 12px;
        font-size: 14px;
    }
}

/* Mobile layout */
@media (max-width: 480px) {
    .rules-table-wrapper {
        margin-top: 15px;
        padding-bottom: 5px;
        overscroll-behavior-x: contain;
    }

    .rules-table {
        width: 650px;
        min-width: 650px;
    }

    .rules-table th,
    .rules-table td {
        padding: 10px;
        font-size: 13px;
    }

    .rules-table .document-action {
        padding: 8px 10px;
        font-size: 12px;
    }
}



/* Alerts (.notice = same look, but a permanent message that is never auto-dismissed) */
.alert,
.notice {
  padding: 13px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  border-left: 4px solid;
}

.alert-success {
  background: #e7f4ec;
  border-color: var(--luv-fairway);
  color: #144024;
}

.alert-error {
  background: #fbe6e6;
  border-color: var(--luv-red);
  color: #7a1015;
}

.alert-info,
.notice-info {
  background: #eef2f7;
  border-color: var(--luv-grey);
  color: var(--luv-grey-dark);
}

/* Flash notification: floats over the page so it never pushes content down,
   and fades itself out after 5 seconds (click to dismiss sooner) */
.flash-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 560px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  animation: flash-toast-out 0.4s ease 5s forwards;
}

.flash-toast .alert {
  margin-bottom: 0;
}

@keyframes flash-toast-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Footer */
.site-footer {
  background: var(--luv-grey-dark);
  color: #cfcfd0;
  padding: 56px 0 24px;
  margin-top: 60px;
  flex-shrink: 0;
  width: 100%;
}

.site-footer h4 {
  color: var(--white-1);
  font-size: 1rem;
}

.site-footer a {
  color: #cfcfd0;
}

.site-footer a:hover {
  color: var(--luv-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-bottom {
  border-top: 1px solid #55575a;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #9d9ea0;
}

/* Page Banner */
.page-banner {
  background-image:
    linear-gradient(
      100deg,
      rgba(24, 24, 26, 0.94) 0%,
      rgba(24, 24, 26, 0.88) 45%,
      rgba(24, 24, 26, 0.72) 100%
    ),
    url("../public/images/course-hero.jpeg");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  color: var(--white-1);
  padding: 48px 0;
  border-bottom: 4px solid var(--luv-red);
}

.page-banner h1 {
  color: var(--white-1);
  font-style: italic;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.page-banner p {
  color: #d6d6d6;
  margin: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

/* Sponsors */
.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  justify-content: center;
}

.sponsor-strip img {
  max-height: 60px;
  width: auto;
  filter: grayscale(20%);
  opacity: 0.9;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tabs a {
  padding: 10px 16px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
}

.tabs a.active,
.tabs a:hover {
  color: var(--luv-red);
  border-color: var(--luv-red);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.empty-state .icon img {
  margin: 0 auto;
  max-width: 80px;
  height: auto;
}

/* Order of Merit Badge */
.badge-oom {
  display: inline-block;
  background: var(--luv-red);
  color: var(--white-1);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Dashboard / Admin Shared Layout */
.dash-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dash-sidebar {
  background: var(--white-1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 0;
  position: sticky;
  top: 90px;
}

.dash-sidebar a {
  display: block;
  padding: 11px 20px;
  color: var(--luv-grey-dark);
  font-weight: 600;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}

.dash-sidebar a:hover,
.dash-sidebar a.active {
  background: var(--luv-grey-light);
  border-left-color: var(--luv-red);
  color: var(--luv-red);
}

.dash-sidebar .divider {
  margin: 10px 20px;
  border-top: 1px solid var(--border);
}

/* Stats Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white-1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border-left: 4px solid var(--luv-red);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--luv-grey-dark);
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Action Bar */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.action-bar h1,
.action-bar h2 {
  margin: 0;
}

/* Toolbar Search */
.toolbar-search {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.toolbar-search input {
  min-width: 220px;
}

/* Utility */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-2 {
  margin-top: 20px;
}
.mb-2 {
  margin-bottom: 20px;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

/* Contact Info */
.contact-info {
  padding-left: 200px;
}

.contact-info p {
  overflow-wrap: anywhere; /* stops the long email from running off-screen */
}

/* Profile / key-value tables */
.profile-table {
  width: 100%;
}

.profile-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Undo the leaderboard "rank 1" highlight on the first row */
.profile-table tbody tr:nth-child(1) td:first-child {
  color: var(--text-muted);
  font-weight: 400;
}

.profile-table form {
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .contact-info {
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .contact-info {
    padding: 0 16px;
    text-align: center;
  }
}

/* Responsive to large laptops and small laptops */
@media (max-width: 1100px) {
  .site-header .container {
    min-height: 66px;
    gap: 15px;
  }

  .brand img {
    height: 43px;
  }

  .main-nav {
    display: block;
    margin-left: auto;
    flex: 0 1 auto;
  }

  .main-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex-wrap: nowrap;
  }

  .main-nav li {
    width: auto;
    flex: 0 0 auto;
  }

  .main-nav a {
    display: block;
    width: auto;
    padding: 9px 7px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--luv-red);
    background: var(--luv-grey-light);
  }

  .main-nav .cta {
    width: calc(100% - 30px);
    margin: 10px 15px;
    padding: 13px 20px;
    text-align: center;
    border-radius: 5px;
    border-bottom: none;
    color: var(--white-1);
    background: var(--luv-red);
  }

  .nav-toggle {
    display: none;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
  }
}

/* Hamburger menu for tablets and small laptops */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .bar1,
  .bar2,
  .bar3 {
    display: block;
    width: 30px;
    height: 4px;
    margin: 3px 0;
    background-color: #333;
    border-radius: 2px;
    transition: 0.4s ease;
  }

  .nav-toggle.change .bar1 {
    transform: translateY(10px) rotate(-45deg);
  }
  .nav-toggle.change .bar2 {
    opacity: 0;
  }
  .nav-toggle.change .bar3 {
    transform: translateY(-10px) rotate(45deg);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-left: 0;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    aspect-ratio: 1536 / 1024;
  }

  .hero__parallax-bg {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero .container {
    padding: 5%;
  }

  .hero h1 {
    font-size: clamp(1, 8rem, 5vw, 2.8rem);
  }

  .hero p.lead {
    font-size: 1rem;
  }

  .hero__cta {
    right: 4%;
    bottom: 5%;
    max-width: 60%;
    gap: 7px;
  }

  .hero__cta .btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-card {
    max-width: 100%;
  }
}

/* Phones */
@media (max-width: 700px) {
  .topbar {
    font-size: 0.72rem;
  }

  .topbar .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  /* Header */

  .site-header {
    position: relative;
    z-index: 1001;
  }

  .site-header .container {
    min-height: 60px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand img {
    height: 38px;
    max-width: 180px;
  }

  .nav-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .nav-toggle:hover {
    background: var(--luv-grey-light);
  }

  .bar1,
  .bar2,
  .bar3 {
    display: block;
    width: 30px;
    height: 4px;
    margin: 3px 0;
    background-color: #333;
    border-radius: 2px;
    transition: 0.4s ease;
  }

  .nav-toggle.change .bar1 {
    transform: translateY(10px) rotate(-45deg);
  }

  .nav-toggle.change .bar2 {
    opacity: 0;
  }

  .nav-toggle.change .bar3 {
    transform: translateY(-10px) rotate(45deg);
  }

  /* Mobile Menu */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    width: 100%;
    aspect-ratio: 1536 / 1024;
    min-height: 0;
  }

  .hero__parallax-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.16) 50%,
      rgba(0, 0, 0, 0.3) 100%
    );
  }

  .hero .container {
    width: 100%;
    height: 100%;
    padding: 5%;
  }

  .hero p.lead {
    font-size: 0.85rem;
    max-width: 75%;
  }

  .hero .btn {
    margin-top: 10px;
    margin-right: 6px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .hero__cta {
    right: 4%;
    bottom: 4%;
    max-width: 70%;
    gap: 5px;
  }

  .hero__cta .btn {
    padding: 6px 10px;
    font-size: 0.68rem;
  }

  /* Sections */
  .section {
    padding: 48px 0;
  }

  .section--tight {
    padding: 30px 0;
  }

  .section--photo-showcase {
    padding: 56px 0;
  }

  .section--photo-showcase h2 {
    font-size: 1.7rem;
  }

  /* headings */
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Cards */
  .card img {
    height: 190px;
  }

  /* Forms */
  .form-card {
    padding: 22px 18px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Tables */
  .table-wrap {
    border-radius: 4px;
  }

  table {
    min-width: 600px;
  }

  /* Page Banner */
  .page-banner {
    padding: 36px 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Dashboard */
  .state-cards {
    grid-template-columns: 1fr 1fr;
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-search {
    width: 100%;
  }

  .toolbar-search input {
    min-width: 0;
    width: 100%;
  }

  .profile-table {
    min-width: 0; /* cancels the 600px table rule */
  }

  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .profile-table td {
    border-bottom: 0;
    padding: 2px 0;
  }

  .profile-table td:first-child {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .profile-table select {
    max-width: 100%;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Header */
  .site-header .container {
    min-height: 56px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand img {
    height: 34px;
    max-width: 160px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .bar1,
  .bar2,
  .bar3 {
    width: 27px;
    height: 4px;
  }

  /* Mobile Navigation */
  .main-nav {
    max-height: calc(100vh - 56px);
  }

  .main-nav a {
    padding: 13px 16px;
    font-size: 0.86rem;
  }

  /* Hero */
  .hero {
    aspect-ratio: 1536 / 1024;
  }

  .hero__parallax-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
  }

  .hero .container {
    padding: 4%;
  }

  .hero h1 {
    font-size: clamp(1.3rem, 7vw, 1.9rem);
  }

  .hero p.lead {
    font-size: 0.72rem;
    max-width: 70%;
  }

  .hero .btn {
    padding: 7px 10px;
    font-size: 0.65rem;
    margin-top: 5px;
    margin-right: 3px;
  }

  .hero__cta {
    right: 3%;
    bottom: 4%;
    max-width: 70%;
    gap: 4%;
  }

  .hero__cta .btn {
    padding: 5px 8px;
    font-size: 0.58rem;
  }

  /* Forms */
  .form-card {
    padding: 18px 14px;
  }

  /* Statistics */
  .stat-cards {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer {
    padding: 42px 0 20px;
  }
}

/* Very Small Phones */
@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand img {
    height: 31px;
    max-width: 145px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .main-nav {
    max-height: calc(100vh - 56px);
  }

  .main-nav a {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 0.65rem;
  }

  .hero__cta {
    right: 3%;
    bottom: 3%;
    max-width: 72%;
    gap: 3px;
  }

  .hero__cta .btn {
    padding: 4px 7px;
    font-size: 0.52rem;
  }
}

/* Accessibility */
.nav-toggle:focus-visible,
.main-nav a:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(216, 32, 42, 0.35);
  outline-offset: 2px;
}

/* Tournament Calendar */
.tournament-calendar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tournament-calendar-heading h2 {
  margin-bottom: 0;
}

.tournament-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tournament-filter {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--luv-grey-dark);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 12px 7px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.tournament-filter:hover,
.tournament-filter.is-active {
  color: var(--luv-red-dark);
}

.tournament-filter.is-active {
  border-bottom-color: var(--luv-red);
}

.tournament-filter:focus-visible {
  border-bottom-color: var(--luv-red);
  color: var(--luv-red-dark);
  outline: none;
}

.grid.tournament-calendar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tournament-calendar-card {
  min-height: 360px;
}

.tournament-calendar-card .card-body {
  padding: 28px;
  overflow-wrap: anywhere;
}

.tournament-calendar-card h3 {
  margin: 18px 0 8px;
  font-size: 1.65rem;
  line-height: 1.15;
}

.tournament-calendar-card .status-pill {
  display: block;
  width: 100%;
  text-align: center;
}

.tournament-calendar-card .meta {
  margin-bottom: 14px;
}

.tournament-calendar-card .btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

.tournament-calendar-card[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .grid.tournament-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tournament-calendar-heading {
    align-items: flex-start;
  }

  .tournament-filters {
    width: 100%;
  }

  .tournament-filter {
    flex: 1 1 auto;
  }

  .grid.tournament-calendar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tournament-calendar-card {
    min-height: 320px;
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__parallax-bg {
    transform: none !important;
  }
}
