/* MicCheckCT branding: change colors and fonts here, in one place. */
:root {
  /* Brand kit colors */
  --brand-black: #181818;
  --brand-cream: #F5F1E8;
  --brand-blue: #2677B9;
  --brand-sky: #42B6E8;
  --brand-amber: #F2B544;
  --brand-white: #FFFFFF;

  /* Where each color is used */
  --bg: var(--brand-black);
  --panel: #222222;
  --border: #333333;
  --border-strong: #4D4D4D;
  --text: var(--brand-cream);
  --text-2: #D8D3C8;
  --text-3: #ADA89E;
  --text-4: #8C887F;
  --accent: var(--brand-amber);       /* highlight background: the selected filter (never text) */
  --accent-hover: #F7C96F;
  --link: var(--brand-sky);           /* links and the tagline */
  --link-hover: #73CBF0;
  --primary: var(--brand-sky);        /* buttons */
  --primary-hover: #73CBF0;
  --on-primary: var(--brand-black);   /* white on light blue is too faint to read */
  --rule: var(--brand-sky);           /* divider line under town and date headings */

  /* Brand kit fonts */
  --font-heading: "League Spartan", "Arial", sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  /* DM Serif Display is part of the kit too; it only appears inside the logo file */

  --gutter: 24px;
  --touch: 44px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.accent { color: var(--link); } /* colored text is always the light blue */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Buttons: blue pill */
.button {
  display: inline-flex; align-items: center; min-height: var(--touch);
  padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--primary-hover); color: var(--on-primary); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-top: 16px; padding-bottom: 16px;
}

/* Logo: Ellen's logo file (logo.svg), tagline included */
.logo { display: inline-flex; align-items: center; min-height: var(--touch); }
.logo-img { display: block; height: 64px; width: auto; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: var(--touch);
  padding: 0 14px; color: var(--text); text-decoration: none; font-weight: 500;
}
.nav-link:hover { color: var(--link); }
.nav .button { margin-left: 8px; }

/* Hero and pickers */
.hero { padding-top: 52px; padding-bottom: 28px; }
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-3);
}
h1 {
  margin: 0; max-width: 980px;
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(40px, 6.2vw, 80px); line-height: 1; letter-spacing: -0.5px;
}
.pickers { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-town { flex: 1 1 240px; max-width: 320px; }
.field-radius { flex: 0 1 180px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field select {
  height: 52px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--text);
  font: inherit; font-size: 16px; font-weight: 500;
}

.search { margin-top: 32px; max-width: 512px; display: flex; flex-direction: column; gap: 6px; }
.search label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.search-row { display: flex; gap: 8px; }
.search input {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--text);
  font: inherit; font-size: 16px;
}
.search input::placeholder { color: var(--text-4); }
.search .button { min-height: 52px; }

.link-button {
  min-height: var(--touch); margin-top: 4px; padding: 0; border: 0; background: none;
  color: var(--link); font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: underline; cursor: pointer;
}
.link-button:hover { color: var(--link-hover); }

.pills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-height: var(--touch); padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--border-strong); background: transparent; color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.pill:hover { border-color: var(--text-3); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--brand-black); }

.summary { margin: 18px 0 0; font-size: 15px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.remember { margin: 6px 0 0; font-size: 14px; color: var(--text-4); }

/* Results: listings plus side panel */
.results {
  padding-top: 8px; padding-bottom: 80px;
  display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start;
}
.listings { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }

.town-group { margin-bottom: 44px; }
.town-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 4px 14px; flex-wrap: wrap;
  border-bottom: 2px solid var(--rule); padding-bottom: 10px;
}
.town-head h2 {
  margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 38px;
  line-height: 1; letter-spacing: -0.3px;
}
.town-meta { font-size: 14px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }

.listing {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.listing-when { flex: 0 0 112px; font-size: 14px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; }
.listing-time.tba { color: var(--text-3); }
.listing-what { flex: 1 1 260px; min-width: 0; }
/* Event and venue names: Montserrat capitals, per the brand kit */
.listing-what h3 {
  margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.listing-what h3 a { color: inherit; text-decoration: none; }
.listing-what h3 a:hover { color: var(--link); text-decoration: underline; }
.listing-where { margin: 4px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-2); }
.listing-note { color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
.dot { color: var(--text-4); }

.tag {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.tag-live { background: var(--brand-sky); color: var(--brand-black); }
.tag-open { background: transparent; color: var(--link); border: 1.5px solid var(--link); padding: 4.5px 10.5px; }
.tag-karaoke { background: var(--brand-blue); color: var(--brand-white); }

.notice { border: 1px dashed var(--border-strong); border-radius: 16px; padding: 28px; }
.notice-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.notice p:last-child { margin-bottom: 0; }
.notice-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.notice .button { margin-top: 16px; }

.more {
  min-height: var(--touch); width: 100%; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--border-strong); background: transparent; color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer;
}
.more:hover { border-color: var(--link); color: var(--link); }
.more:disabled { opacity: 0.6; cursor: wait; }

/* Side panels */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.panel h2 { margin: 0 0 8px; font-family: var(--font-heading); font-weight: 700; font-size: 28px; line-height: 1.1; }
.panel > p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
#regulars > p { margin-bottom: 14px; }
.panel-note { margin: 12px 0 0; font-size: 14px; color: var(--text-3); }
.regulars { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.regulars li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.4; }
.regulars-when { color: var(--text-3); white-space: nowrap; font-weight: 500; }
.regulars-empty { color: var(--text-3); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: center; font-size: 14px; color: var(--text-3);
}
.footer-inner a { display: inline-block; padding: 13px 0; }

/* Phones */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 36px; }
  .logo-img { height: 52px; }
  .nav { margin-left: -14px; }
  .nav .button { margin-left: 4px; }
  .field-town { max-width: none; }
  .town-head h2 { font-size: 32px; }
  .listing { position: relative; }
  .listing-when { flex-basis: 100%; display: flex; gap: 10px; min-height: 30px; align-items: center; padding-right: 120px; }
  .listing .tag { position: absolute; top: 16px; right: 0; }
}
