/* Central City Tix — global navy / gold theme */
:root {
  --bg: #f4efe6;
  --bg-deep: #16233a;
  --bg-band: #e7ecf4;
  --card: #fffdf8;
  --ink: #161e2c;
  --muted: #5c6678;
  --accent: #2b5a8a;
  --accent-ink: #f4efe6;
  --accent2: #2b5a8a;
  --gold: #cea650;
  --warn: #b36a14;
  --danger: #c4473a;
  --line: #e6dccb;
  --shadow: 0 8px 24px rgba(22, 35, 58, 0.08);
  --radius: 14px;
  font-family: "Segoe UI", "Source Sans 3", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 20px 8px; }

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-deep);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav .brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4efe6;
  font-size: 1.15rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav .brand span { color: var(--gold); }
.nav .links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.nav .links > a { color: #e7ecf4; font-weight: 600; font-size: 14px; }
.nav .links > a:hover { color: #fff; text-decoration: none; }
.nav .nav-name { color: #b7c4bc; font-size: 13px; }
.nav .btn.nav-cta {
  padding: 6px 12px;
  font-size: 13px;
  background: var(--gold);
  color: #16233a;
}
.nav .muted { color: #b7c4bc; }
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
}
.nav-burger span,
.nav-burger span:before,
.nav-burger span:after {
  display: block;
  width: 20px;
  height: 2px;
  background: #f4efe6;
  position: relative;
  content: "";
}
.nav-burger span:before { position: absolute; top: -6px; }
.nav-burger span:after { position: absolute; top: 6px; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: #e7ecf4; color: var(--muted); font-size: 12px;
}
.badge.ok { background: #233b60; color: #cfe8d8; }
.badge.warn { background: #3a2a10; color: #f0c98a; }
.nav .badge { align-self: flex-start; width: auto; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
h1,h2,h3 { letter-spacing: -0.02em; margin: 0 0 10px; }
.muted { color: var(--muted); }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; color: var(--accent-ink); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.block { display: block; width: 100%; text-align: center; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(43,90,138,0.35);
  border-color: var(--accent);
}
textarea { min-height: 110px; resize: vertical; }
.flash { padding: 10px 14px; border-radius: 10px; margin: 10px 0; }
.flash.ok { background: #e3f2e9; color: #203f69; }
.flash.error { background: #fde8e6; color: #8a2a22; }
.price { font-size: 1.15rem; font-weight: 800; color: var(--accent); margin: 8px 0 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table.compare { min-width: 520px; }
.fee-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.fee-row.total { font-weight: 800; font-size: 1.1rem; border-bottom: none; padding-top: 12px; }
.tier { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.qr { background: #fff; padding: 8px; border-radius: 8px; display: inline-block; }
.scan-result {
  margin-top: 16px; padding: 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 700;
}
.scan-result.ok { background: #e3f2e9; color: #203f69; }
.scan-result.bad { background: #fde8e6; color: #8a2a22; }
#reader { width: 100%; max-width: 420px; margin: 0 auto; }
.compare th:nth-child(2) { color: var(--accent); }
.save-fig { color: var(--accent); }

.hero { padding: 36px 0 16px; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; max-width: 16ch; }
.hero .lead, .organizer-band .lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }

.search-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr auto;
  gap: 12px;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 22px 0 0;
  box-shadow: var(--shadow);
}
.search-card label { margin-top: 0; }
.search-actions { display: flex; }
.search-actions .btn { white-space: nowrap; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 8px;
}
.events-section { padding-bottom: 20px; }
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 35, 58, 0.12);
}
.event-card-image {
  height: 140px;
  background: #d7cbb6 center/cover no-repeat;
}
.event-flyer {
  aspect-ratio: 17 / 22;
  width: 100%;
  overflow: hidden;
  background: #16233a;
}
.event-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-flyer-large {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.event-flyer-form {
  max-width: 180px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.flyer-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px 14px 18px;
  background:
    linear-gradient(180deg, rgba(22,35,58,0.15), rgba(22,35,58,0.55)),
    linear-gradient(165deg, #2b5a8a 0%, #16233a 48%, #3d4a28 72%, #cea650 140%);
  color: #f4efe6;
  box-sizing: border-box;
}
.flyer-ph-brand {
  margin: 0 auto auto 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 0.9;
}
.flyer-ph-brand span { color: var(--gold); }
.flyer-ph-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.flyer-ph-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #e7ecf4;
  opacity: 0.92;
}
.event-card-body { padding: 14px 14px 16px; }
.event-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.event-date { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.event-venue { margin: 0; color: var(--ink); }
.event-org { margin: 4px 0 0; font-size: 13px; }

.organizer-band {
  margin: 36px -20px 0;
  padding: 36px 20px 20px;
  background: var(--bg-band);
  border-top: 1px solid #d5e0d6;
  border-radius: 24px 24px 0 0;
}
.organizer-band .lead { margin-bottom: 16px; }
.fee-form { background: var(--card); }
.fee-table-card { overflow: hidden; }

.portal-page { padding-top: 16px; max-width: 640px; }
.portal-page .lead { color: var(--muted); }

.site-footer {
  margin-top: 36px;
  padding: 22px 20px 28px;
  border-top: 1px solid var(--line);
  background: #efe8db;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  max-width: 1080px;
}
.footer-links a {
  display: inline-block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
}
.footer-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.footer-meta { color: var(--muted); font-size: 12px; margin: 0; }

.event-detail {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 28px;
  align-items: start;
  margin: 12px 0 24px;
}
.event-detail-flyer .event-flyer-large { margin: 0; max-width: none; }
.faq-page { max-width: 720px; padding-top: 12px; }
.faq-page h2 { margin-top: 28px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px 4px;
  margin: 10px 0;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq-item[open] summary:after { content: "–"; }
.faq-item p { margin: 0 0 14px; color: var(--ink); }

@media (max-width: 700px) {
  .event-detail { grid-template-columns: 1fr; }
  .event-detail-flyer { max-width: 280px; margin: 0 auto; }
  .footer-links { gap: 8px; }
}

.check-row {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check-label strong { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-actions { grid-column: 1 / -1; }
  .search-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 700px) {
  .nav-burger { display: flex; margin-left: auto; }
  .nav .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle:checked ~ .links { display: flex; }
  .nav .links > a, .nav .nav-name { padding: 8px 4px; }
  .nav .btn.nav-cta { text-align: center; }
}
@media (max-width: 600px) {
  .hero { padding-top: 24px; }
  .search-card { grid-template-columns: 1fr; }
  .tier { flex-direction: column; align-items: flex-start; }
}

/* External outbound event cards */
.external-head { margin-top: 36px; align-items: flex-start; }
.external-note { margin: 0; max-width: 46ch; font-size: 0.95rem; }
.event-card-external .event-blurb {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.badge.outbound {
  background: #e7ecf4;
  color: var(--accent);
  font-weight: 700;
  margin: 8px 0 0;
}
.flyer-placeholder-external {
  background:
    linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)),
    linear-gradient(165deg, #2b5a8a 0%, #16233a 52%, #3d4a28 78%, #cea650 130%);
}
.flyer-ph-cat {
  margin: 0 auto auto 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.flyer-cat-concert { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #245c4a 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-festival { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #3d5a2a 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-holiday { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #3a2a18 0%, #16233a 50%, #cea650 140%); }
.flyer-cat-theater { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #2a3a4a 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-winery { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #5a2e3a 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-comedy { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #4a3a1a 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-market { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #2e4a3a 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-community { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #2b5a8a 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-dance { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #3a2a4a 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-family { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #233b60 0%, #16233a 55%, #cea650 140%); }
.flyer-cat-sports { background: linear-gradient(180deg, rgba(22,35,58,0.10), rgba(22,35,58,0.62)), linear-gradient(160deg, #1e3a28 0%, #16233a 55%, #cea650 140%); }

.event-card-external .event-flyer,
.event-flyer-ext {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #16233a;
  border-bottom: 1px solid var(--line);
}
.event-card-external .event-flyer img,
.event-flyer-ext img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.flyer-placeholder-external {
  position: relative;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 14px 16px;
  overflow: hidden;
}
.flyer-ph-initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #f4efe6;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}
.flyer-placeholder-external .flyer-ph-cat {
  position: relative;
  z-index: 1;
}
.flyer-placeholder-external .flyer-ph-name,
.flyer-placeholder-external .flyer-ph-meta {
  position: relative;
  z-index: 1;
}
.flyer-placeholder-external .flyer-ph-name {
  font-size: 1.02rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 430px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .event-card-external .event-blurb {
    -webkit-line-clamp: 2;
  }
  .flyer-ph-initials {
    font-size: 3.4rem;
  }
}

/* === Central City Tix brand logo (2026-11-14) === */
.nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 0;
}
.nav .brand-mark {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav .brand-wordmark {
  height: 22px;
  width: auto;
  display: block;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
  text-decoration: none;
  line-height: 0;
}
.footer-brand:hover { text-decoration: none; opacity: 0.92; }
.footer-brand-mark {
  height: 32px;
  width: auto;
  display: block;
}
.footer-brand-wordmark {
  height: 20px;
  width: auto;
  display: block;
}
/* Beat .event-flyer img { width/height:100% } so the mark stays a small corner logo. */
.event-flyer .flyer-ph-logo,
.flyer-placeholder .flyer-ph-logo {
  width: 36px;
  height: 24px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}
@media (max-width: 400px) {
  .nav .brand-mark { height: 36px; }
  .nav .brand-wordmark { height: 18px; }
}

/* legal pages + admin refund */
.legal-page { max-width: 760px; padding-top: 12px; }
.legal-page h2 { margin-top: 30px; font-size: 1.25rem; }
.legal-page p, .legal-page li { line-height: 1.6; }
.legal-page ul { padding-left: 22px; }
.legal-meta { color: var(--muted); font-size: 14px; }
.legal-summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 4px; margin: 14px 0; }

/* logout button in the header: a form button that looks like the other nav links */
.nav .links > form.logout-form { margin: 0; display: inline-flex; }
.nav .links > form.logout-form button.link-btn {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: #e7ecf4; line-height: inherit;
}
.nav .links > form.logout-form button.link-btn:hover { color: #fff; text-decoration: none; }
.nav .links > form.logout-form button.link-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 700px) {
  .nav .links > form.logout-form { display: block; padding: 8px 4px; }
}

/* refund policy: organizer select, event page, order page */
.refund-policy-note { font-size: 14px; margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbf8f0; }
.refund-policy-note strong { color: var(--ink); }
.refund-choice { display: block; font-size: 13px; margin: 4px 0 0; }
.legal-options { display: grid; gap: 12px; margin: 14px 0; }
.legal-options > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
@media (min-width: 700px) { .legal-options { grid-template-columns: 1fr 1fr; } }
