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

:root {
  --bg: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --link: #0000cc;
  --link-visited: #a12a2b;
  --link-hover: #0000ff;
  --border: #cccccc;
  --header-bg: #D53839;
  --section-bg: #f6f6f6;
  --input-bg: #ffffff;
  --status-approved: #2e7d32;
  --status-pending: #8a6d00;
  --status-vetoed: #c62828;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #cccccc;
    --text-muted: #999999;
    --link: #6699cc;
    --link-visited: #cc6666;
    --link-hover: #88bbee;
    --border: #444444;
    --header-bg: #a12a2b;
    --section-bg: #222222;
    --input-bg: #2a2a2a;
    --status-approved: #6fbf73;
    --status-pending: #d9b84a;
    --status-vetoed: #ef6b6b;
  }
}


body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 { line-height: 1.3; }
h2 { font-size: 16px; margin-bottom: 8px; }
h3 { font-size: 14px; margin-bottom: 4px; }

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { color: var(--link-hover); }

hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* ---- Site header ---- */

.site-header {
  background: var(--header-bg);
  padding: 8px 15px;
}

.site-header-inner {
  max-width: 750px;
  margin: 0 auto;
}

.site-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}
.site-title:visited { color: #ffffff; }
.site-title:hover { color: #ffcccc; }

/* ---- Nav bar ---- */

.site-nav {
  background: var(--section-bg);
  border-bottom: 1px solid var(--border);
  padding: 6px 15px;
  font-size: 12px;
}

.site-nav-inner {
  max-width: 750px;
  margin: 0 auto;
}

/* The separator is positioned outside the link so the link's underline doesn't run under it. */
.site-nav a { position: relative; margin-right: 4px; }
.site-nav a + a { margin-left: 10px; }
.site-nav a + a::before {
  content: '|';
  position: absolute;
  left: -10px;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 3px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: var(--text);
  margin-bottom: 4px;
}

.nav-links {
  display: inline;
}

/* ---- Page layout ---- */

main {
  flex: 1;
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  padding: 15px 15px 30px;
}

.container { max-width: 750px; margin: 0 auto; }
.container-narrow { max-width: 480px; margin: 0 auto; }

.section-intro {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.page-heading {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ---- Home photo ---- */

.home-photo {
  border: 1px solid var(--border);
  padding: 2px;
  background: var(--bg);
  max-width: 360px;
  margin: 0 auto 12px;
}
.home-photo img { display: block; width: 100%; height: auto; }
.home-photo figcaption {
  padding: 4px 2px 2px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.home-intro { margin-bottom: 12px; }

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 18px;
  border: 1px solid var(--border);
  background: var(--section-bg);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--border); }
.btn:visited { color: var(--text); }

/* ---- Forms ---- */

.form { text-align: left; max-width: 420px; margin: 0 auto; }
.form-group { margin-bottom: 10px; }

.form-group > label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.optional { font-weight: normal; font-style: italic; }

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 4px 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 1px dotted var(--link);
}

.form-group textarea { resize: vertical; min-height: 60px; }
.form-group input[readonly] { background: var(--section-bg); color: var(--text-muted); }

.radio-group { margin-top: 3px; }
.radio-label {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  font-size: 12px; color: var(--text); font-weight: normal;
  margin-bottom: 2px;
}
.radio-label input[type="radio"] { width: auto; }

.form .btn { width: 100%; margin-top: 6px; }

.input-prefix { display: flex; align-items: stretch; }
.input-prefix span {
  display: flex; align-items: center;
  padding: 4px 0 4px 6px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text-muted); font-size: 13px;
}

.confirmation {
  margin-top: 12px; padding: 10px;
  background: var(--section-bg);
  border: 1px solid var(--border);
  font-size: 13px;
}

.hp { position: absolute; left: -9999px; }
.turnstile { margin: 8px 0; }
.form-error { margin-top: 4px; font-style: italic; color: var(--header-bg); }

/* ---- Password ---- */

.show-password { margin-top: 4px; }
.password-help { margin-top: 16px; }

/* ---- IT Support ---- */

.ticket-email-note { margin-top: 8px; }

/* ---- RSVP ---- */

.rsvp-help { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.rsvp-restart { margin-top: 10px; text-align: center; }
.rsvp-person {
  border: 1px solid var(--border);
  background: var(--section-bg);
  padding: 8px 10px;
  margin-bottom: 10px;
}
.rsvp-person-name { font-weight: bold; margin-bottom: 4px; }
.rsvp-person .form-group:last-child { margin-bottom: 0; }

/* ---- Details ---- */

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  text-align: left;
  margin-top: 12px;
}

.detail-card {
  background: var(--section-bg);
  padding: 10px;
  border: 1px solid var(--border);
}

.detail-card h3 { color: var(--link); font-size: 13px; margin-bottom: 4px; }
.detail-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.detail-venue { font-weight: bold; color: var(--text) !important; }
.detail-note { margin-top: 4px; font-style: italic; }

/* ---- Menu ---- */

.menu { max-width: 420px; margin: 0 auto; text-align: left; }
.menu-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.menu-item:first-child { border-top: 1px solid var(--border); }
.menu-item h3 { font-size: 14px; color: var(--text); }
.menu-item p { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.menu-spacer { height: 8px; }

/* ---- Refund ---- */

.refund-choices { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.refund-closed { margin-top: 12px; }

/* ---- Song request ---- */

.song-success { max-width: 420px; margin: 0 auto 12px; }
.song-status { margin: -4px 0 10px; font-size: 12px; font-style: italic; color: var(--text-muted); }
.song-found {
  display: flex; gap: 8px; align-items: center;
  padding: 6px; margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--section-bg);
}
.song-found img { display: block; flex-shrink: 0; }
.song-artist { font-size: 12px; color: var(--text-muted); }
.song-list-section { margin-top: 28px; }
.song-count { font-size: 12px; color: var(--text-muted); }
.song-list-head { margin-top: 6px; padding-bottom: 2px; font-size: 11px; font-weight: bold; color: var(--text-muted); }
.song-art-space { width: 40px; flex-shrink: 0; }
.song-preview-space { width: 48px; flex-shrink: 0; }
.song-list { list-style: none; border-top: 1px solid var(--border); }
.song-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.song-row { display: flex; gap: 8px; align-items: flex-start; }
.song-art { display: block; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--border); }
.song-art-blank { background: var(--section-bg); }
.song-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.song-meta { font-size: 11px; color: var(--text-muted); }
.song-preview-btn { flex-shrink: 0; width: 48px; text-align: right; font-size: 12px; }
.song-status-col { flex-shrink: 0; width: 96px; font-size: 12px; }
.song-status-approved { color: var(--status-approved); }
.song-status-pending { color: var(--status-pending); }
.song-status-vetoed { color: var(--status-vetoed); font-weight: bold; }
.song-disclaimer { margin-top: 8px; font-size: 11px; font-style: italic; color: var(--text-muted); }
.song-player { display: block; width: 100%; height: 80px; border: 0; margin-top: 6px; }

.link-button {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--link); text-decoration: underline;
}
.link-button:hover { color: var(--link-hover); }

/* ---- Flat message ---- */

.flat-message { font-size: 12px; color: var(--text-muted); padding: 30px 0; }

/* ---- Donations ---- */

.donation-grid {
  display: flex; gap: 5px; justify-content: center;
  flex-wrap: wrap; margin-top: 10px;
}

.donation-btn {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px; font-weight: bold;
  padding: 6px 18px;
  background: var(--section-bg);
  border: 1px solid var(--border);
  cursor: pointer; color: var(--text);
}
.donation-btn:hover { border-color: var(--link); }
.donation-btn.selected {
  background: var(--link); color: #fff; border-color: var(--link);
}

.donation-other { max-width: 420px; margin: 8px auto 0; }
.donation-actions { text-align: center; }
.donation-actions .btn { margin-top: 10px; }

/* ---- FAQ ---- */

.faq-list { text-align: left; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
  padding: 8px 0; font-size: 13px; font-weight: bold;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 14px; font-weight: normal;
  color: var(--text-muted); flex-shrink: 0; margin-left: 10px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 0 8px; font-size: 12px; color: var(--text-muted); }

/* ---- Footer ---- */

footer {
  padding: 12px 15px;
  text-align: left;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 11px;
  color: var(--text-muted);
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
}

footer p { margin-bottom: 2px; }
.footer-disclaimer { margin-top: 8px; font-size: 10px; color: var(--border); }
.footer-donotcontact { margin-top: 6px; font-size: 10px; }

/* ---- Mobile ---- */

@media (max-width: 600px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; }
  .nav-links.open { display: block; }
  .nav-links.open a { display: block; padding: 3px 0; }
  .nav-links.open a + a::before { content: none; }
  .nav-links.open a + a { margin-left: 0; }

  .details-grid { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .donation-grid { flex-direction: column; align-items: center; }
  .donation-btn { width: 100%; max-width: 140px; }

}
