:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #419545;
  --accent-strong: #419545;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 45%, #eef1f8 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  color: var(--text);
}

.nav-toggle-icon {
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle-label {
  font-size: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subnav {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.subnav::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .subnav,
.nav-item:focus-within .subnav {
  display: flex;
}

.subnav a {
  color: var(--text);
  font-weight: 500;
}

.subnav a:hover {
  color: var(--accent-strong);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent-strong);
  font-weight: 700;
}

.subnav a.active {
  color: var(--accent-strong);
  font-weight: 700;
}

.hero {
  padding: 96px 0 64px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0 0 16px;
  line-height: 1.05;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 48ch;
}

.cta-row {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
}

.page {
  padding: 64px 0 96px;
}

.page h1 {
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.page p a:not(.button),
.page li a:not(.button) {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  font-weight: 600;
}

.page p a:not(.button):hover,
.page li a:not(.button):hover {
  text-decoration-thickness: 2px;
}

.page p a:not(.button):focus-visible,
.page li a:not(.button):focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-align: center;
  max-height: 500px;
}

.board-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  margin: 0;
}

.card-image {
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 12px;
  background: #f3f4f6;
}

.callers-grid {
  display: flex;
  justify-content: center;
}

.callers-grid .board-card {
  width: fit-content;
  max-width: 360px;
}

.callers-grid .card-image img {
  width: auto;
  max-width: 360px;
  max-height: 260px;
  height: auto;
}

.board-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.contact-detail {
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--text);
}

.news-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.news-card h2 {
  margin: 8px 0 8px;
  font-size: 20px;
}

.news-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.news-actions {
  margin-top: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  aspect-ratio: 4 / 3;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.03);
}

.gallery-lightbox {
  border: none;
  border-radius: 16px;
  padding: 14px 14px 10px;
  max-width: min(92vw, 980px);
  width: 92vw;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
}

.gallery-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.65);
}

.gallery-lightbox img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.gallery-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.gallery-nav,
.gallery-close {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.gallery-close {
  margin-left: auto;
}

.gallery-caption {
  margin: 10px 2px 2px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 22px 0 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.footer-inner a {
  color: var(--muted);
  font-weight: 500;
}

.footer-inner a:hover {
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

th {
  background: #f3f4f6;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 8px;
}

.badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.badge.no-dance {
  background: #dbeafe;
  color: #1e40af;
}

tr.is-cancelled td {
  color: #991b1b;
}

tr.is-no-dance td {
  color: #1e40af;
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-text {
    font-size: 15px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    display: none;
  }

  .site-nav.open .nav-links {
    display: flex;
  }

  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .subnav {
    position: static;
    display: flex;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border);
    background: #f9fafb;
  }

  .nav-links > a,
  .nav-item > a,
  .subnav a {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .subnav a {
    background: transparent;
    border: none;
    padding: 6px 8px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 12px;
  }

  td {
    border: none;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
    flex: 0 0 auto;
  }

  table {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .board-grid:not(.callers-grid) .card-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }

  .board-grid:not(.callers-grid) .card-image {
    background: transparent;
  }

  .board-card {
    max-height: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-lightbox {
    width: 96vw;
    max-width: 96vw;
    padding: 10px;
  }
}
