/* Shared by index.html and the results/<year>.html pages. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  color: #333;
}

/* Navigation */
nav {
  background: #bf5700;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  flex: 0 0 auto;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  flex: 1;
  justify-content: center;
  order: 1;
}

/* Desktop: logo · links · Apply · language. Mobile reorders below. */
.nav-apply {
  order: 2;
  background: white;
  color: #bf5700 !important;
  font-weight: bold;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.nav-apply:hover { opacity: 1 !important; background: #fff3e6; }
nav .lang-toggle { order: 3; background: transparent; color: white; border: 1px solid rgba(255, 255, 255, 0.6); }
nav .lang-toggle:hover { background: rgba(255, 255, 255, 0.15); }
.menu-apply { display: none; }
nav li.nav-admin[hidden] { display: none; }
.nav-admin a { opacity: 0.85; }

nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

nav a:hover {
  opacity: 0.8;
}

.lang-toggle {
  background: white;
  color: #bf5700;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  flex: 0 0 auto;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: #f0f0f0;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Announcement Banner */
.announcement {
  background: #00274c;
  color: white;
  text-align: center;
  padding: 1rem;
  font-weight: 500;
}

/* Cup race (overall standings, generated by scripts/build-results.js) */
.cup-race {
  max-width: 860px;
  /* The hero above has section margin-bottom 4rem; margins collapse, so
     -7rem nets out to the card overlapping the hero by 3rem. */
  margin: -7rem auto 3rem;
  position: relative;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 39, 76, 0.15);
  padding: 1.6rem 1.8rem 1.2rem;
}
.cup-race-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.cup-race-head h2 { font-size: 1.5rem; color: #00274c; margin: 0; }
.cup-race-status { color: #666; font-size: 0.95rem; }
.countdown { color: #bf5700; font-weight: bold; }
.cup-race-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cup-race-table th { text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; font-weight: 600; padding: 0.4rem 0.5rem; border-bottom: 2px solid #eee; }
.cup-race-table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid #f0f0f0; }
.cup-race-table .num { text-align: right; white-space: nowrap; }
.cup-race-table .rank { width: 2rem; color: #888; font-weight: bold; }
.cup-race-table .school-cell { font-weight: 600; width: 50%; }
.cup-race-table .total { font-weight: bold; font-size: 1.1rem; color: #00274c; }
.cup-race-table .tbd { color: #bbb; }
.cup-race-table tr.leader .rank { color: #bf5700; }
.cup-race-table tr.leader .total { color: #bf5700; }
.cup-race-table .bar { display: block !important; height: 6px; background: #f1f1f1; border-radius: 3px; margin-top: 0.35rem; overflow: hidden; }
.cup-race-table .bar span { display: block !important; height: 100%; background: #00274c; border-radius: 3px; }
.cup-race-table tr.leader .bar span { background: #bf5700; }
.cup-race-link { display: inline-block; margin-top: 0.9rem; color: #bf5700; font-weight: bold; text-decoration: none; }
.cup-race-link:hover { text-decoration: underline; }

/* Event card status line */
.event-status { display: inline-block; font-size: 0.85rem; font-weight: bold; padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem; }
.event-status.done { background: #e6f4ea; color: #1e7b34; }
.event-status.next { background: #fff3e6; color: #a04900; }
.event-link { display: inline-block; margin-top: 0.8rem; color: #bf5700; font-weight: bold; text-decoration: none; }
.event-link:hover { text-decoration: underline; }

.announcement a { color: white; font-weight: bold; text-underline-offset: 3px; }

/* Defending champion badge (hero) */
.champion {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 0.7rem 1.4rem 0.7rem 1rem;
  margin-bottom: 2rem;
  color: white;
  text-decoration: none;
  text-align: left;
}
.champion:hover { background: rgba(255, 255, 255, 0.2); }
.champion .cup { font-size: 2.4rem; line-height: 1; }
.champion .label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}
.champion .name { font-size: 1.35rem; font-weight: bold; line-height: 1.25; }
body:not(.korean) .champion .lang-en, body.korean .champion .lang-ko { display: block !important; }

/* Hero Section */
.hero {
  /* The 2026 group photo under a navy-to-orange wash, dark enough for white text */
  background:
    linear-gradient(180deg, rgba(0, 24, 48, 0.82) 0%, rgba(0, 39, 76, 0.62) 45%, rgba(150, 64, 0, 0.82) 100%),
    url('../pic/2026/golf-group.jpg') /* relative to css/ */ center 35% / cover no-repeat;
  background-color: #00274c;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.cta-button {
  display: inline-block;
  background: #bf5700;
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background 0.3s;
  margin: 0.5rem;
}

.cta-button:hover {
  background: #a04900;
}

.cta-button.secondary {
  background: white;
  color: #bf5700;
}

.cta-button.secondary:hover {
  background: #f0f0f0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.container.contact-container {
  padding: 4rem 1rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #bf5700;
  text-align: center;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #00274c;
  text-align: center;
}

/* Event Info Grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Schools Section */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.school-card {
  --c: #00274c;
  background: white;
  padding: 1.8rem 1.4rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #eee;
  border-top: 6px solid var(--c);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.school-card .school-emoji { font-size: 2rem; line-height: 1; margin-bottom: 0.6rem; }
/* --t: text color when the school color is too light to read (Michigan maize) */
.school-card .motto { color: var(--t, var(--c)); font-weight: bold; font-style: italic; margin-bottom: 0.2rem; }
.school-card .record { font-size: 0.92rem; color: #555; }
.school-card .badge { white-space: nowrap; font-size: 0.78rem; }

.school-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #00274c;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.badge.confirmed {
  background: #f1f1f1;
  color: #444;
}

.badge.founding {
  background: #00274c;
  color: white;
}

/* Results Section */
.results-box {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: white;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  align-items: center;
  row-gap: 0.45rem;
}
.result-row.first { box-shadow: inset 4px 0 #bf5700; }
.result-row .score small { font-size: 0.75em; color: #999; font-weight: normal; }
.result-bar { display: block !important; flex-basis: 100%; height: 6px; background: #f1f1f1; border-radius: 3px; overflow: hidden; }
.result-bar > span { display: block !important; height: 100%; border-radius: 3px; }

.result-row .school {
  font-weight: bold;
  font-size: 1.2rem;
}

.result-row .score {
  font-size: 1.5rem;
  color: #bf5700;
}

/* Dropdown Details */
details {
  cursor: pointer;
}

details summary {
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 0;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

details summary:hover {
  background: #f5f5f5;
}

details[open] summary {
  margin-bottom: 1rem;
  border-radius: 8px 8px 0 0;
}

details table {
  font-size: 0.95rem;
  width: 100%;
  border-collapse: collapse;
}

details table th {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 2px solid #bf5700;
  color: #00274c;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

details table th:last-child {
  text-align: right;
}

details table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid #eee;
}

details table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

details table tbody tr:hover {
  background: #f0f0f0;
}

details table tr.winner td {
  background: #fef9f0;
}

details table tr.section-divider td {
  border-top: 2px solid #ddd;
  padding-top: 0.8rem;
}

.rules-block table th:nth-child(even),
.rules-block table td:nth-child(even) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.rules-block table th:nth-child(odd),
.rules-block table td:nth-child(odd) {
  text-align: left;
  font-weight: normal;
}

.rules-block table {
  font-size: 0.85rem;
}

.rules-block table th {
  padding: 0.3rem 0.3rem;
  font-size: 0.75rem;
}

.rules-block table td {
  padding: 0.25rem 0.3rem;
}

/* Results year block */
.results-year {
  margin-top: 2rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
}

.results-year-summary {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  color: #00274c;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  list-style: none;
}

.results-year-summary::-webkit-details-marker {
  display: none;
}

/* Swap glyphs rather than rotating one: some platforms draw these
   triangles as emoji, which do not rotate predictably. */
.results-year-summary .triangle {
  display: inline-block;
  width: 1em;
  margin-right: 0.3rem;
  font-family: Arial, sans-serif;
}
.results-year-summary .triangle::before { content: "▸"; }
.results-year[open] > .results-year-summary .triangle::before { content: "▾"; }

.results-content {
  margin-top: 1.5rem;
}

.results-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.detail-toggle {
  margin-top: 1rem;
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
}
.detail-toggle > summary.detail-toggle-summary {
  padding: 0.9rem 1.1rem;
  background: transparent;
  list-style: none;
}
.detail-toggle > summary.detail-toggle-summary::-webkit-details-marker { display: none; }
.detail-toggle > summary.detail-toggle-summary::after {
  content: "▸";
  margin-left: auto;
  font-family: Arial, sans-serif;
}
.detail-toggle[open] > summary.detail-toggle-summary::after { content: "▾"; }
.detail-toggle[open] > summary.detail-toggle-summary { margin-bottom: 0; border-bottom: 1px solid #eee; }
.detail-toggle > :not(summary) { margin: 0.8rem 1.1rem 1.1rem; }

.detail-toggle-summary {
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #bf5700;
}

.detail-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.detail-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

.detail-card h5 {
  color: #bf5700;
}

.rules-block {
  background: #f9f9f9;
  padding: 1rem;
  margin: 0.5rem 0;
  white-space: pre-line;
}

/* Photo Gallery */
.photo-gallery {
  margin-top: 3rem;
  padding: 2rem 0;
}

.photo-gallery-title {
  text-align: center;
  color: #00274c;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.photo-category {
  margin-bottom: 3rem;
}
.photo-category[hidden] { display: none; }
.photo-more {
  display: block;
  margin: -1rem auto 2rem;
  background: white;
  color: #bf5700;
  border: 2px solid #bf5700;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.photo-more:hover { background: #bf5700; color: white; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #ddd; font-size: 0.92rem; margin-top: 0.7rem; text-align: center; padding: 0 1rem; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, 0.28); outline: none; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.photo-category:last-child {
  margin-bottom: 2rem;
}

.photo-category-title {
  text-align: center;
  color: #bf5700;
  margin-bottom: 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.photo-grid.single {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.photo-grid img:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.16); }
.photo-grid img:focus-visible { outline: 3px solid #bf5700; outline-offset: 3px; }

.photo-grid.single img {
  height: 300px;
}

.trophy-image {
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  justify-self: center;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 2.5rem auto 0;
}
.about-text p { font-size: 1.12rem; color: #444; margin-bottom: 1.1rem; }
.holder {
  display: inline-flex;
  flex-direction: column;
  border-left: 5px solid #bf5700;
  background: #fff7f0;
  padding: 0.8rem 1.2rem;
  border-radius: 0 10px 10px 0;
  margin-top: 0.4rem;
}
.holder > span > span { display: inline; }
.holder-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #a04900; font-weight: bold; }
.holder-name { font-size: 1.3rem; font-weight: 800; color: #00274c; }
.holder-sub { font-size: 0.9rem; color: #666; }

.about-description {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 2rem auto;
}

/* Join Section */
.join-section {
  background: linear-gradient(135deg, #bf5700 0%, #00274c 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 15px;
  margin: 4rem 0;
}

.join-section h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.join-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.school-list {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.school-list p {
  margin: 0.5rem 0;
}

.join-registration {
  font-size: 1.2rem;
  margin-top: 2rem;
}


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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  background: #bf5700;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

button[type="submit"]:hover {
  background: #a04900;
}

.success-message {
  display: none;
  background: #4CAF50;
  color: white;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
}

.contact-subtitle a { color: #bf5700; font-weight: 600; }

.contact-subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.9;
}
.contact-info a { color: #bf5700; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-info a:hover { text-decoration: underline; }

.participation-note {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
}

/* Footer */
footer {
  background: #00274c;
  color: white;
  text-align: center;
  padding: 2rem;
}

footer p + p {
  margin-top: 0.5rem;
}

/* Hide inactive language — inline for spans/links */
.lang-en { display: inline !important; }
.lang-ko { display: none !important; }
body.korean .lang-en { display: none !important; }
body.korean .lang-ko { display: inline !important; }

/* Block-level elements keep block display when visible */
h1.lang-en, h2.lang-en, h3.lang-en, h4.lang-en, h5.lang-en,
p.lang-en, div.lang-en { display: block !important; }
body.korean h1.lang-ko, body.korean h2.lang-ko, body.korean h3.lang-ko,
body.korean h4.lang-ko, body.korean h5.lang-ko,
body.korean p.lang-ko, body.korean div.lang-ko { display: block !important; }

/* CTA buttons need inline-block for proper sizing */
/* Scoped to English mode: unscoped, this (same specificity as
   body.korean .lang-en, but later) kept English buttons visible in Korean. */
body:not(.korean) a.cta-button.lang-en { display: inline-block !important; }
body.korean a.cta-button.lang-ko { display: inline-block !important; }

/* Mobile */
@media (max-width: 768px) {
  nav .container {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
    flex: 0 0 auto;
  }

  nav .logo {
    flex: 1;
    order: 0;
  }

  nav ul {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #a04900;
    margin-top: 0.5rem;
    border-radius: 5px;
    flex: none;
  }

  nav ul.active {
    max-height: 500px;
  }

  nav ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul a {
    display: block;
    padding: 1rem;
  }

  nav .lang-toggle {
    order: 2;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .nav-apply { display: none; }
  .menu-apply { display: block; }
  .menu-apply a { font-weight: bold; }

  .cup-race { margin: -4.5rem 0.75rem 2rem; padding: 1.1rem 0.9rem 0.9rem; }
  .cup-race-head h2 { font-size: 1.25rem; }
  .cup-race-status { font-size: 0.85rem; }
  .cup-race-table th, .cup-race-table td { padding-left: 0.3rem; padding-right: 0.3rem; }
  .cup-race-table td { font-size: 0.92rem; }
  .champion { padding: 0.6rem 1rem 0.6rem 0.8rem; gap: 0.7rem; }
  .champion .cup { font-size: 2rem; }
  .champion .name { font-size: 1.1rem; }

  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .about-text p { font-size: 1rem; text-align: left; }
  .trophy-image { max-width: 240px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1.2rem; transform: none; }

  /* Hero */
  .hero {
    padding: 4rem 1.2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-button {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  /* Global sizing */
  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .container {
    padding: 2.5rem 1rem;
  }

  .container.contact-container {
    padding: 2.5rem 0.8rem;
  }

  section {
    margin-bottom: 2.5rem;
  }

  /* About */
  .about-description {
    font-size: 1rem;
  }

  .trophy-image {
    max-width: 280px;
  }

  /* Event & school grids — single column on small screens */
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .event-card {
    padding: 1.5rem 1rem;
  }

  .schools-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .school-card {
    padding: 1.2rem;
  }

  .school-card h4 {
    font-size: 1.1rem;
  }

  /* Results */
  .results-box {
    padding: 1rem;
  }

  .result-row {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
    padding: 0.8rem;
  }

  .result-row .score {
    font-size: 1.3rem;
  }

  .results-year {
    padding: 1rem;
  }

  .results-year-summary {
    font-size: 1.2rem;
    padding: 0.8rem;
  }

  .detail-toggle {
    margin-top: 0.8rem;
  }

  .detail-toggle-summary {
    font-size: 1rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Results detail tables */
  details table {
    font-size: 0.8rem;
  }

  details table th {
    padding: 0.4rem 0.3rem;
    font-size: 0.7rem;
  }

  details table td {
    padding: 0.35rem 0.3rem;
  }

  /* Scoring tables — scrollable on mobile */
  .rules-block {
    padding: 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rules-block table {
    font-size: 0.75rem;
    min-width: 320px;
  }

  .rules-block table th {
    padding: 0.2rem 0.15rem;
    font-size: 0.65rem;
  }

  .rules-block table td {
    padding: 0.2rem 0.15rem;
  }

  /* Photos */
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .photo-grid img {
    height: 200px;
  }

  .photo-grid.single img {
    height: 220px;
  }

  .photo-gallery-title {
    font-size: 1.3rem;
  }

  /* Join section */
  .join-section {
    padding: 2.5rem 1.2rem;
    margin: 2rem 0;
    border-radius: 10px;
  }

  .join-description {
    font-size: 1rem;
  }

  .join-registration {
    font-size: 1rem;
  }

  /* Contact */
  .contact-subtitle {
    font-size: 0.95rem;
  }

  .contact-info {
    font-size: 0.95rem;
    text-align: center;
  }


  /* Footer */
  footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Announcement */
  .announcement {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }
}

/* ===================================================== Champions (home) */
.section-sub { text-align: center; color: #666; margin: -0.4rem 0 1.6rem; }
.champions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  gap: 1.2rem;
  margin: 0 auto;
}
.champ-card {
  --c: #00274c;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: white;
  border: 1px solid #eee;
  border-top: 6px solid var(--c);
  border-radius: 14px;
  padding: 1.3rem 1.4rem 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  color: #333;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.champ-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); }
.champ-year { font-size: 2.2rem; font-weight: 800; color: #00274c; line-height: 1; }
.champ-edition { font-size: 0.85rem; color: #888; }
.champ-name { font-size: 1.35rem; font-weight: 800; color: #00274c; margin-top: 0.5rem; }
.champ-name.pending { color: #a04900; }
.champ-note { font-size: 0.9rem; color: #666; min-height: 1.2em; }
.champ-scores { list-style: none; margin: 0.6rem 0 0.4rem; padding: 0; border-top: 1px solid #f0f0f0; }
.champ-scores li { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid #f5f5f5; font-size: 0.95rem; }
.champ-scores li:first-child b { color: #bf5700; }
.champ-scores b { font-variant-numeric: tabular-nums; color: #00274c; }
.champ-link { margin-top: auto; padding-top: 0.5rem; color: #bf5700; font-weight: bold; }

/* ============================================== results/<year>.html pages */
.year-hero {
  background: linear-gradient(135deg, #00274c 0%, #3a2a1c 60%, #bf5700 100%);
  color: white;
  text-align: center;
  padding: 2.5rem 16px 5rem;
}
.year-hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 1rem 0 0.3rem; }
.year-edition { opacity: 0.85; font-size: 1rem; }
.year-sub { font-size: 1.15rem; margin-top: 0.6rem; }
.year-sub .countdown { color: #ffd2a6; }
.year-tabs { display: inline-flex; gap: 0.3rem; background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 0.25rem; }
.year-tabs a { color: white; text-decoration: none; font-weight: bold; padding: 0.35rem 1.1rem; border-radius: 999px; }
.year-tabs a[aria-current="page"] { background: white; color: #00274c; }
.year-tabs a:not([aria-current]):hover { background: rgba(255, 255, 255, 0.18); }

.year-main { padding-top: 0; }
.year-standings { margin-top: -3.5rem; margin-bottom: 2.5rem; }
.year-jump { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.year-jump a { font-size: 0.85rem; font-weight: bold; color: #00274c; text-decoration: none; background: #f1f4f8; padding: 0.25rem 0.75rem; border-radius: 999px; }
.year-jump a:hover { background: #e3e9f1; }

.year-section { margin-bottom: 3rem; scroll-margin-top: 5rem; }
.year-section > h2 { font-size: 1.8rem; color: #00274c; text-align: left; margin-bottom: 0.2rem; }
.year-section > h3 { color: #00274c; font-size: 1.1rem; margin: 1.6rem 0 0.6rem; text-align: left; }
.event-meta { color: #777; margin-bottom: 1rem; }
.event-upcoming { background: #fff7f0; border: 1px dashed #e0b48c; border-radius: 12px; padding: 1.4rem; color: #7a4a1e; }

.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.chips button {
  font: inherit; font-size: 0.88rem; cursor: pointer;
  background: white; color: #00274c; border: 1px solid #d5dbe3; border-radius: 999px; padding: 0.3rem 0.85rem;
}
.chips button[aria-pressed="true"] { background: #00274c; color: white; border-color: #00274c; }

.results-table-wrap { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.results-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; padding: 0.7rem 0.8rem; border-bottom: 2px solid #eee; background: white; }
.results-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid #f2f2f2; }
.results-table .num { text-align: right; white-space: nowrap; }
.results-table .rank { width: 2.5rem; color: #888; font-weight: bold; }
.results-table tr.winner td { background: #fff8f0; font-weight: 600; }
.results-table tr[hidden] { display: none; }
.badge-mini { display: inline-block; font-size: 0.72rem; font-weight: bold; background: #fce8f3; color: #a3195b; border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.3rem; vertical-align: 1px; }

.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
.match-card { background: white; border-radius: 12px; padding: 0.9rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.match-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888; font-weight: bold; margin-bottom: 0.5rem; }
.match-team { border-left: 4px solid var(--c); padding: 0.45rem 0.7rem; border-radius: 0 8px 8px 0; background: #fafafa; }
.match-team + .match-team { margin-top: 0.5rem; }
.match-team.won { background: #f3faf5; }
.match-team-head { display: flex; justify-content: space-between; font-weight: bold; color: #00274c; }
.match-team ul { list-style: none; margin: 0.3rem 0 0; padding: 0; font-size: 0.92rem; color: #555; }
.match-team li { display: flex; justify-content: space-between; }
.match-team li span { font-variant-numeric: tabular-nums; }

.year-section .detail-toggle { margin-top: 1.4rem; }
.back-home { text-align: center; margin: 1rem 0 3rem; }
.back-home a { color: #bf5700; font-weight: bold; text-decoration: none; }

@media (max-width: 768px) {
  .year-hero { padding: 1.8rem 16px 4rem; }
  .year-hero h1 { font-size: 1.9rem; }
  .year-sub { font-size: 1rem; }
  .year-standings { margin: -3rem 0 2rem; }
  .year-section > h2 { font-size: 1.45rem; }
  .results-table td, .results-table th { padding: 0.5rem 0.5rem; font-size: 0.9rem; }
  .champ-year { font-size: 1.9rem; }
}

/* ============================================== Who's next? (schools in talks) */
.next-schools { margin-top: 3.5rem; text-align: center; }
.next-schools h3 { color: #00274c; font-size: 1.6rem; margin-bottom: 0.3rem; }
.next-schools > p { color: #666; margin-bottom: 1.8rem; }
.next-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2.2rem; }
.next-school {
  --c: #00274c;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
}
.next-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.7rem;
  background: white;
  border: 4px dashed var(--c);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent);
  margin-bottom: 0.6rem;
  animation: next-pulse 2.6s ease-out infinite;
}
.next-school:nth-child(2) .next-ring { animation-delay: 0.6s; }
.next-school:nth-child(3) .next-ring { animation-delay: 1.2s; }
@keyframes next-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); }
  70% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--c) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.next-name { font-weight: 800; color: #00274c; line-height: 1.25; }
.next-motto { font-size: 0.85rem; font-style: italic; color: var(--c); }
.next-status { margin-top: 0.4rem; font-size: 0.78rem; font-weight: bold; background: #f1f4f8; color: #00274c; border-radius: 999px; padding: 0.15rem 0.7rem; }
.next-you .next-ring { border: 4px solid #bf5700; color: #bf5700; font-size: 2.6rem; font-weight: 300; animation: none; transition: background 0.2s, color 0.2s; }
.next-you:hover .next-ring { background: #bf5700; color: white; }
.next-you .next-status { background: #fff3e6; color: #a04900; }
@media (prefers-reduced-motion: reduce) { .next-ring { animation: none; } }
@media (max-width: 768px) {
  .next-grid { gap: 1.4rem 1rem; }
  .next-school { width: 44%; }
  .next-ring { width: 92px; height: 92px; font-size: 2.2rem; }
}

/* ======================================================= /about (The Cup) */
/* Colors use var(--x, fallback) so this works with or without the
   champion theme variables. */
.about-more { margin: 0.2rem 0 1rem; }
.about-more a { color: var(--primary, #bf5700); font-weight: bold; text-decoration: none; }
.about-more a:hover { text-decoration: underline; }

.about-hero {
  background: radial-gradient(circle at 75% 45%, #3a4a5c 0%, #1b222b 55%, #12171d 100%);
  color: white;
  overflow: hidden;
}
.about-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 16px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3.5rem;
}
.about-hero-text { padding-bottom: 0; }
.about-hero .eyebrow { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; opacity: 0.75; margin-bottom: 0.6rem; }
.about-hero h1 { font-size: 3.4rem; line-height: 1.1; margin-bottom: 0.6rem; }
.about-tagline { font-size: 1.4rem; font-weight: 600; color: #8fd3ff; margin-bottom: 1rem; }
.about-hero-text p:not(.eyebrow):not(.about-tagline) { font-size: 1.08rem; opacity: 0.9; max-width: 34rem; }
/* The studio photo keeps its own backdrop, so frame it rather than blend it */
.about-hero-img { width: 100%; max-width: 380px; height: auto; justify-self: center; display: block; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.about-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.about-jump a { color: white; text-decoration: none; font-weight: 600; font-size: 0.92rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 0.35rem 0.95rem; }
.about-jump a:hover { background: rgba(255, 255, 255, 0.12); }

.about-main { padding-top: 3rem; }
.about-block { margin-bottom: 4.5rem; scroll-margin-top: 5rem; }
.about-block > h2 { text-align: left; color: var(--ink, #00274c); font-size: 2rem; margin-bottom: 1rem; }
.section-lede { color: #555; max-width: 46rem; margin-bottom: 1.4rem; font-size: 1.05rem; }
.about-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
.about-two p { font-size: 1.08rem; color: #444; margin-bottom: 1rem; }
.cup-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 1.4rem; }
.cup-facts div { background: var(--tint, #fff4eb); border-radius: 12px; padding: 0.9rem 0.6rem; text-align: center; }
.cup-facts dt { font-size: 0.78rem; color: #666; text-transform: uppercase; letter-spacing: 0.05em; }
.cup-facts dd { margin: 0; font-size: 2rem; font-weight: 800; color: var(--primary, #bf5700); line-height: 1.2; }
.cup-gallery { grid-template-columns: repeat(3, 1fr) !important; gap: 0.6rem; }
.cup-gallery img { height: 210px; background: #eef0f2; }
.cup-gallery img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; min-height: 430px; }
.photo-credit { font-size: 0.85rem; color: #888; margin-top: 0.6rem; text-align: right; }

/* The 28 plates: four sides of seven, like the trophy itself */
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.plate-side { background: linear-gradient(180deg, #e6f5fd, #d3ecfa); border-radius: 14px; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.45rem; }
.plate-side-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #4a7896; font-weight: bold; text-align: center; margin-bottom: 0.15rem; }
.plate { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(74, 120, 150, 0.18); border-radius: 8px; padding: 0.5rem 0.7rem; min-height: 2.6rem; font-size: 0.88rem; color: #8aa3b5; }
.plate-year { font-variant-numeric: tabular-nums; font-weight: 600; }
.plate-name { font-weight: 800; color: #00274c; text-align: right; }
.plate.filled { background: white; border: 1px solid var(--c); box-shadow: inset 4px 0 var(--c); color: #444; }
.plate.next { background: var(--tint, #fff4eb); border: 1px dashed var(--primary, #bf5700); color: var(--primary-dark, #a04900); }
.plate.next .plate-name { color: var(--primary-dark, #a04900); font-weight: 700; }

/* Artist */
.artist { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.4rem; align-items: start; }
.artist p { font-size: 1.05rem; color: #444; margin-bottom: 1rem; }
.artist-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; }
.artist-links a { color: var(--primary, #bf5700); font-weight: bold; text-decoration: none; }
.artist-links a:hover { text-decoration: underline; }
.artist-highlights { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--primary, #bf5700); }
.artist-highlights li { padding: 0.55rem 0 0.55rem 1.1rem; display: flex; flex-direction: column; }
.artist-highlights b { color: var(--ink, #00274c); font-size: 0.95rem; }
.artist-highlights li > span { color: #555; font-size: 0.95rem; }

/* History */
.timeline { list-style: none; padding: 0; margin: 0 0 2rem; }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eee; }
.tl-year { font-size: 1.6rem; font-weight: 800; color: var(--primary, #bf5700); line-height: 1.2; }
.timeline p { font-size: 1.05rem; color: #444; }
.about-cta { text-align: center; background: var(--tint, #fff4eb); border-radius: 16px; padding: 2rem 1rem; }
.about-cta p { font-size: 1.25rem; font-weight: 700; color: var(--ink, #00274c); margin-bottom: 0.6rem; }

@media (max-width: 768px) {
  .about-hero-inner { grid-template-columns: 1fr; padding-top: 2.2rem; padding-bottom: 2.5rem; text-align: center; gap: 2rem; }
  .about-hero-text { padding-bottom: 0; }
  .about-hero-text p:not(.eyebrow):not(.about-tagline) { margin: 0 auto; }
  .about-jump { justify-content: center; }
  .about-hero h1 { font-size: 2.4rem; }
  .about-hero-img { max-width: 260px; }
  .about-two, .artist { grid-template-columns: 1fr; }
  .cup-facts { grid-template-columns: repeat(2, 1fr); }
  .cup-gallery { grid-template-columns: repeat(2, 1fr) !important; }
  .cup-gallery img { height: 170px; }
  .cup-gallery img:first-child { grid-column: span 2; grid-row: auto; min-height: 0; height: 300px; }
  .plates { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .plate { font-size: 0.8rem; padding: 0.4rem 0.5rem; }
  .timeline li { grid-template-columns: 4rem 1fr; }
  .tl-year { font-size: 1.3rem; }
  .about-block > h2 { font-size: 1.6rem; }
}

/* Founders (/about): compact cards, two per row */
.founders { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1.2rem; }
.founder {
  --c: #00274c;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.2rem;
  align-items: start;
  background: white;
  border-radius: 14px;
  border-top: 4px solid var(--c);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 1.2rem;
}
.founder-photo { width: 110px; height: 110px; object-fit: cover; object-position: center 12%; border-radius: 50%; background: #f2f4f7; }
.founder-role { font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c); }
.founder h3 { font-size: 1.35rem; color: var(--ink, #00274c); text-align: left; margin: 0.1rem 0; }
.founder-title { color: #555; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.founder-bio { font-size: 0.92rem; color: #444; margin-bottom: 0.6rem; }
.founder-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.founder-feats li { font-size: 0.88rem; color: #333; padding-left: 1rem; position: relative; }
.founder-feats li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
@media (max-width: 768px) {
  .founders { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 80px 1fr; gap: 0.9rem; padding: 1rem; }
  .founder-photo { width: 80px; height: 80px; }
}
