@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* Thor Student Club — Design System */

/* ─── Tokens ───────────────────────────────────────────────── */
:root {
  --navy:        #1a2236;
  --navy-mid:    #243047;
  --gold:        #c9a96e;
  --gold-light:  #e2c99a;
  --gold-dark:   #b89557;
  --cream:       #faf7f2;
  --cream-dark:  #f0ebe0;
  --text:        #1a2236;
  --text-muted:  #6b7280;
  --white:       #ffffff;
  --border:      #e5dfd4;
  --red:         #dc2626;
  --green:       #16a34a;
  --radius:      10px;
  --shadow-sm:   0 1px 4px rgba(26,34,54,.07);
  --shadow-md:   0 4px 16px rgba(26,34,54,.10);
  --shadow-lg:   0 12px 40px rgba(26,34,54,.14);
  --transition:  0.25s cubic-bezier(.4,0,.2,1);
  --font-display: Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; transition: color var(--transition); }
ul  { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section { padding: 2rem 0; }

.main-content {
  min-height: calc(100vh - 68px - 200px);
  width: 100%;
  max-width: 100%;
}

/* ─── Header & Nav ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,34,54,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,169,110,.2);
  width: 100%;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding-top: 0;
  padding-bottom: 0;
  flex-wrap: nowrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.nav-links .nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: .45rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.user-info {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  white-space: nowrap;
}

/* Hamburger button — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Nav Dropdowns (desktop) ──────────────────────────────── */
.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: .7;
}

.nav-submenu-toggle { display: none; }

@media (min-width: 901px) {
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--navy);
    border: 1px solid rgba(201,169,110,.2);
    border-radius: 6px;
    list-style: none;
    padding: .4rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu li a {
    display: block;
    padding: .55rem 1.1rem;
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .2s, background .2s;
    white-space: nowrap;
  }

  .dropdown-menu li a:hover {
    color: var(--gold);
    background: rgba(255,255,255,.06);
  }

  .dropdown-menu li .nav-logout-form {
    margin: 0;
  }

  .dropdown-menu li .nav-logout-form button {
    display: block;
    width: 100%;
    padding: .55rem 1.1rem;
    border: 0;
    color: rgba(255,255,255,.8);
    background: transparent;
    font: inherit;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
  }

  .dropdown-menu li .nav-logout-form button:hover {
    color: var(--gold);
    background: rgba(255,255,255,.06);
  }
}

/* ─── Mobile nav ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .3s ease;
    border-bottom: 1px solid rgba(201,169,110,.2);
    z-index: 99;
  }

  .nav-links.active {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
  }

  .nav-links a,
  .nav-links .nav-cta,
  .nav-links .user-info {
    padding: .75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    white-space: nowrap;
    display: block;
    text-align: left;
  }

  .nav-links .nav-cta {
    background: transparent;
    border-radius: 0;
    color: var(--gold);
  }

  .nav-dropdown { display: block; width: 100%; }

  .nav-dropdown .nav-dropdown-toggle {
    display: block;
    padding: .75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
  }

  .nav-dropdown .nav-dropdown-toggle::after { display: none; }

  .nav-dropdown .nav-submenu-toggle {
    position: absolute;
    top: .35rem;
    right: 1rem;
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(201,169,110,.3);
    border-radius: 6px;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
  }

  .nav-dropdown .nav-submenu-toggle:hover,
  .nav-dropdown .nav-submenu-toggle:focus-visible {
    background: rgba(201,169,110,.12);
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  .nav-dropdown.open .nav-submenu-toggle { transform: rotate(180deg); }

  .nav-dropdown .nav-dropdown-toggle:hover { color: var(--gold); }

  .dropdown-menu {
    display: none;
    list-style: none;
    background: rgba(0,0,0,.18);
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .nav-dropdown.open > .dropdown-menu { display: block; }

  .dropdown-menu li a {
    display: block;
    padding: .6rem 1.5rem .6rem 2.2rem;
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: .04em;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .2s;
  }

  .dropdown-menu li a:hover { color: var(--gold); }
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .6rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary   { background: var(--gold); color: var(--navy); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-danger    { background: var(--red);  color: var(--white); }
.btn-success   { background: var(--green); color: var(--white); }

.btn-primary:hover   { background: var(--gold-dark);  color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary:hover { background: var(--navy-mid);   transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-danger:hover    { background: #b91c1c; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-success:hover   { background: #15803d; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* Used on dark (hero) backgrounds */
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-dark {
  background: transparent;
  border: 2px solid #212529;
  color: #212529;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: #212529;
  color: var(--white);
}
.btn-outline-dark:disabled { opacity: .6; cursor: not-allowed; }

.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }

/* ─── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  color: var(--navy);
  font-size: .9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}

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

/* Login / register card */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 440px;
  margin: 0 auto;
}
.form-card h2 { text-align: center; margin-bottom: 2rem; }

.form-submit {
  width: 100%;
  margin-top: .5rem;
  text-align: center;
  padding: .8rem;
}

.form-footer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.form-footer a { color: var(--gold); font-weight: 600; }
.form-footer a:hover { color: var(--navy); }

/* ─── Tables ───────────────────────────────────────────────── */
.table-container,
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

thead,
.data-table thead { background: var(--navy); color: var(--white); }

thead th,
.data-table thead th {
  padding: .9rem 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

tbody tr,
.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.data-table tbody tr:last-child { border-bottom: none; }

tbody tr:hover,
.data-table tbody tr:hover { background: var(--cream); }

tbody td { padding: .9rem 1rem; color: var(--text); font-size: .9rem; }
.data-table td { padding: .85rem 1.2rem; color: var(--text-muted); font-size: .93rem; }
.data-table td:first-child { color: var(--text); font-weight: 500; }

tbody td .btn { margin-right: .5rem; margin-bottom: .3rem; }

/* ─── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card h3 { margin-bottom: 1rem; }

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

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

.staff-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.staff-section,
.staff-attention {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.staff-section h2,
.staff-attention h2 {
  margin-bottom: .4rem;
  font-size: 1.35rem;
}

.staff-section nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-top: .4rem;
}

.staff-section nav a,
.staff-attention > a,
.staff-history-link a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .2em;
}

.staff-history-link { margin-bottom: 1rem; }

.staff-attention {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--gold-dark);
}

.staff-attention ul {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}

.staff-attention > a {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 600px) {
  .staff-attention { grid-template-columns: 1fr; }
  .staff-attention > a { grid-column: 1; grid-row: auto; }
}

.card-date {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.card-link:hover { color: var(--gold); }

.event-location {
  margin: .4rem 0 0;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.event-card-footer .card-link { margin-top: .5rem; }

.event-card-thumbnail {
  width: 120px;
  height: 80px;
  flex: 0 0 120px;
  border: 1px solid var(--border);
  border-radius: 6px;
  object-fit: cover;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(201,169,110,.18) 0%, transparent 60%),
    linear-gradient(160deg, #1a2236 0%, #243047 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero p  { color: rgba(255,255,255,.8); font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; }
.hero .btn { margin: .5rem; }

.hero-inner { position: relative; }

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding: .3rem .9rem;
  border: 1px solid rgba(201,169,110,.4);
  border-radius: 100px;
}

.hero .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 2.4rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Section header ───────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 3.5rem; }

.section-head .eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}

.section-head h2 { margin-bottom: .8rem; }
.section-head p  { max-width: 560px; margin: 0 auto; font-size: 1.05rem; color: var(--text-muted); }

.section-divider {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-title-block { text-align: center; margin-bottom: 3rem; }
.section-title-block h2 { font-family: var(--font-display); color: var(--navy); }
.section-title-block .gold-bar {
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: .8rem auto 0;
}

/* ─── Quote band ───────────────────────────────────────────── */
.quote-band {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--navy);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Features strip ───────────────────────────────────────── */
.features { background: var(--navy); color: var(--white); padding: 4rem 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature-item .icon  { font-size: 2rem; margin-bottom: .8rem; }
.feature-item h3     { color: var(--gold); font-size: 1.05rem; margin-bottom: .4rem; }
.feature-item p      { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 0; }

/* ─── Timeline ─────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.timeline-item:hover { box-shadow: var(--shadow-md); }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
}

.timeline-year {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}

/* ─── Song / Lyrics ────────────────────────────────────────── */
.song-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

.song-meta span {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,169,110,.1);
  padding: .3rem .8rem;
  border-radius: 100px;
}

.lyrics-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  white-space: pre-wrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ─── A-Z filter buttons ───────────────────────────────────── */
.az-filter-btn {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: .45rem 1.2rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.az-filter-btn:hover  { border-color: var(--gold); color: var(--gold); }
.az-filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ─── Year headings ────────────────────────────────────────── */
.year-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: .4rem;
  margin-bottom: 1.8rem;
}

/* ─── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: 7px;
  margin-bottom: 1.2rem;
  font-size: .9rem;
  font-weight: 500;
  transition: opacity .3s ease;
}
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ─── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h2 { margin-bottom: 1.5rem; }

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* ─── Search widget ────────────────────────────────────────── */
.search-field { position: relative; }

.search-results {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  list-style: none;
}

.search-results li {
  padding: .5rem .9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.search-results li:hover { background: var(--cream); }
.search-selected { margin-top: .4rem; font-size: .85rem; color: var(--text-muted); }
.peter-picker .search-selected { display: flex; flex-wrap: wrap; gap: .4rem; }
.peter-picker-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--navy);
}
.peter-picker-note { display: block; margin-top: .35rem; color: var(--text-muted); }

/* ─── Event ribbon ─────────────────────────────────────────── */
.event-ribbon {
  position: absolute;
  top: 18px;
  right: -38px;
  width: 140px;
  padding: .45rem 0;
  background: linear-gradient(#2563eb 0%, #2563eb 50%, #facc15 50%, #facc15 100%);
  color: white;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  z-index: 5;
}

.event-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* ─── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ─── Error / 404 ──────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: .35;
  margin-bottom: .5rem;
}

/* ─── Utility ──────────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex          { display: flex; }
.flex-wrap     { flex-wrap: wrap; }
.gap-1         { gap: .5rem; }
.gap-2         { gap: 1rem; }
.justify-between { justify-content: space-between; }
.items-center  { align-items: center; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: .8rem; }
.footer-brand p { font-size: .9rem; max-width: 280px; line-height: 1.6; color: rgba(255,255,255,.6); }

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a  { font-size: .9rem; color: rgba(255,255,255,.6); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3rem; }

  table { font-size: .85rem; }
  thead th, tbody td { padding: .7rem .6rem; }

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

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  .modal-box { padding: 1.5rem; }
  .form-card { padding: 1.5rem; }
  .lyrics-block { padding: 1.5rem; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}
