:root {

  --green-dark: #0b3920;
  --green-main: #1f6d39;
  --green-light: #2d8a4f;

  --gold: #c6a55c;

  --cream: #faf7f2;

  --text-main: #13311f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  margin: 0;

  font-family: "Merriweather", serif;

  color: var(--text-main);

  display: flex;
  flex-direction: column;

  min-height: 100vh;

  background:
    radial-gradient(circle at top, #f8faf8, #ffffff 40%);
}

/* HEADER */

header {

  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 1rem;

  background:
    linear-gradient(
      135deg,
      var(--green-dark),
      var(--green-main)
    );

  margin-bottom: 1rem;

  position: relative;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.12);
}

.logo {

  height: 140px;
  width: auto;

  filter:
    drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* NAV */

.nav-content {

  display: flex;

  justify-content: center;

  gap: 30px;

  padding-bottom: 1rem;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.nav-content a {

  color: #ffffff;

  text-decoration: none;

  font-size: 14px;

  position: relative;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.nav-content a::after {

  content: "";

  position: absolute;

  left: 0;
  bottom: -4px;

  width: 0;
  height: 2px;

  background: var(--gold);

  transition: width 0.25s ease;
}

.nav-content a:hover::after {
  width: 100%;
}

.nav-content a:hover {
  color: var(--gold);
}

/* HAMBURGER */

.menu-toggle {

  display: none;

  position: absolute;

  right: 20px;
  top: 25px;

  font-size: 28px;

  color: white;

  cursor: pointer;
}

/* RESULTS SECTIONS */

.subtitle {
  text-align: center;

  font-size: 12px;

  opacity: 0.6;

  margin: 10px;

  display: none;
}

.results-section {

  width: 100%;

  padding:
    clamp(2rem, 5vw, 3rem)
    clamp(1rem, 3vw, 2rem);
}

.results-section:nth-of-type(even) {
  background: #fcfcfa;
}

.results-section h2 {

  margin: 0 0 3rem 0;

  font-size:
    clamp(1.9rem, 4vw, 2.7rem);

  color: var(--green-dark);

  text-align: center;

  letter-spacing: -0.03em;

  font-weight: 800;

  position: relative;
}

.results-section h2::after {

  content: "";

  width: 80px;
  height: 3px;

  background: var(--gold);

  display: block;

  margin: 14px auto 0;

  border-radius: 999px;
}

.results-container {

  max-width: 850px;

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  gap: 1.2rem;
}

/* RESULT CARD */

.result-bar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: clamp(1rem, 3vw, 1.5rem);

  padding:
    clamp(1.1rem, 2vw, 1.5rem);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8faf8
    );

  border:
    1px solid rgba(31, 109, 57, 0.12);

  border-left:
    5px solid var(--green-main);

  border-radius: 18px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;

  cursor: pointer;

  box-shadow:
    0 2px 6px rgba(0,0,0,0.04),
    0 8px 24px rgba(31,109,57,0.08);
}

@media (hover: hover) and (pointer: fine) {

  .result-bar:hover {

    transform: translateY(-3px);

    border-color:
      rgba(31,109,57,0.3);

    box-shadow:
      0 10px 30px rgba(31,109,57,0.14);
  }
}

.result-bar:active {
  transform: scale(0.985);
}

/* RESULT TEXT */

.result-year {

  font-weight: 800;

  font-size:
    clamp(1.3rem, 3vw, 1.8rem);

  color: var(--green-dark);

  min-width: 80px;
}

.result-location {

  font-size:
    clamp(1.2rem, 3vw, 1.6rem);

  color: var(--green-dark);

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  text-align: left;

  margin-left: 5em;

  flex: 1;
}

.result-champion-content {

  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 0.35rem;

  text-align: right;
}

.result-champion {

  font-size: 0.8rem;

  color: var(--gold);

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.14em;
}

.result-name {

  font-size:
    clamp(1rem, 2vw, 1.15rem);

  color: var(--green-main);

  font-weight: 700;
}

/* DROPDOWN TABLES */
/* KEEPING ORIGINAL DISPLAY TOGGLE SYSTEM */

.dropdown-tables {

  margin-top: 1rem;

  padding: 1rem;

  background: #fcfcfb;

  border: 1px solid rgba(0,0,0,0.06);

  border-radius: 16px;

  box-shadow:
    0 4px 16px rgba(0,0,0,0.05);

  overflow-x: auto;
}

/* TABLES */

.dropdown-tables table {

  width: 100%;

  border-collapse: collapse;

  min-width: 600px;
}

.dropdown-tables th,
.dropdown-tables td {

  border: 1px solid rgba(0,0,0,0.08);

  padding: 12px;

  text-align: center;
}

.dropdown-tables th {

  background: #f4f6f3;

  color: var(--green-dark);

  font-weight: 700;
}

.dropdown-tables tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.025);
}

tbody td:first-child,
thead th:first-child {
  min-width: 120px;
}

/* LINKS */

th a {

  color: inherit;

  text-decoration: none;

  font-weight: 600;

  position: relative;
  
  
}

th a::after {

  content: "";

  position: absolute;

  left: 0;
  bottom: -2px;

  width: 0;
  height: 2px;

  background-color: currentColor;

  transition: width 0.3s ease;
}

th a:hover::after {
  width: 100%;
}

th a:hover {
  color: var(--gold);
}

td a {

  color: inherit;

  text-decoration: none;
}

td a:hover {

  text-decoration: underline;

  color: var(--gold);
}

/* MOBILE */

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-content {

    display: none;

    flex-direction: column;

    gap: 16px;

    width: 100%;

    text-align: center;

    padding:
      1rem
      0
      1.5rem;
  }

  .nav-content.active {
    display: flex;
  }

  .logo {
    height: 100px;
  }

  .result-bar {

    flex-direction: column;

    align-items: flex-start;

    gap: 0.8rem;
  }

  .result-location {
    text-align: left;
    margin-left: 0;
  }

  .result-champion-content {

    align-items: flex-start;

    text-align: left;
  }

  .dropdown-tables table {
    min-width: 500px;
  }

  .subtitle {
    display: block;
  }
  
  th a {
    text-decoration: underline;
  }

}

