/* ==========================================================================
   Lectures & Gatherings Schedule
   Palette: dark purple / light purple / brown on cream
   Font: MADE Tommy (licensed font — see @font-face block below; falls
   back to system sans-serif until the font files are added).

   NOTE: every selector below is scoped under .lgs-wrap (e.g.
   ".lgs-wrap .lgs-tab" rather than just ".lgs-tab"). This is deliberate —
   it raises the specificity above typical theme rules like
   ".entry-content h3" or a global "button" style, which is what was
   causing the theme's own orange button/heading colors to bleed through
   instead of ours.
   ========================================================================== */

/*
 * MADE Tommy is a paid/licensed font, not on Google Fonts, so it can't be
 * enqueued from a CDN. To activate it:
 *   1. Add your licensed .woff2 (and .woff) files to this plugin's
 *      assets/fonts/ folder, e.g. assets/fonts/MadeTommy-Regular.woff2
 *   2. Uncomment the @font-face rules below and adjust the filenames/weights
 *      to match what you have.
 * Until then, the --lgs-font-head / --lgs-font-body stacks fall back to
 * clean system fonts so the layout still looks right.
 */
/*
@font-face {
  font-family: 'MADE Tommy';
  src: url('fonts/MadeTommy-Regular.woff2') format('woff2'),
       url('fonts/MadeTommy-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Tommy';
  src: url('fonts/MadeTommy-Medium.woff2') format('woff2'),
       url('fonts/MadeTommy-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Tommy';
  src: url('fonts/MadeTommy-Bold.woff2') format('woff2'),
       url('fonts/MadeTommy-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

.lgs-wrap {
  --lgs-purple-900: #372f74; /* dark purple — headings, active tab, title */
  --lgs-purple-700: #403ba3; /* light purple — links, secondary accents */
  --lgs-purple-100: #ebe9f7; /* soft purple tint — inactive tab bg, time chip */
  --lgs-brown-500: #ba7b26;  /* brown — tag, price badge, dot, accent line */
  --lgs-brown-100: #f1e2c9;  /* soft brown tint for hover / border accents */
  --lgs-cream: #fff5e5;
  --lgs-cream-dark: #fbead2;
  --lgs-ink: #2a2540;
  --lgs-ink-soft: #6a6488;
  --lgs-address: #55507a;   /* darker than ink-soft so it reads clearly on cream */
  --lgs-border: #ecdcc2;
  --lgs-radius: 18px;
  --lgs-font-head: 'MADE Tommy', Georgia, 'Times New Roman', serif;
  --lgs-font-body: 'MADE Tommy', 'Helvetica Neue', Arial, sans-serif;

  max-width: 900px;
  margin: 0 auto;
  padding: 56px 20px 72px;
  font-family: var(--lgs-font-body);
  color: var(--lgs-ink);
  background: var(--lgs-cream);
  box-sizing: border-box;
  width: 100%;
}
.lgs-wrap *,
.lgs-wrap *::before,
.lgs-wrap *::after {
  box-sizing: inherit;
}

/* Highlighted phrases inside descriptions */
.lgs-wrap strong {
  color: var(--lgs-purple-900) !important;
  font-weight: 700;
}

/* Header */
.lgs-wrap .lgs-header {
  text-align: center;
  margin-bottom: 40px;
}
.lgs-wrap .lgs-heading {
  margin: 0;
  font-family: var(--lgs-font-head);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--lgs-purple-900) !important;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lgs-wrap .lgs-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--lgs-brown-500);
  border-radius: 999px;
}
.lgs-wrap .lgs-subheading {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--lgs-ink-soft) !important;
  line-height: 1.6;
}

/* Tabs */
.lgs-wrap .lgs-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  margin: 0 0 36px;
  background: #ffffff;
  border: 1px solid var(--lgs-border);
  border-radius: 999px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(55, 47, 116, 0.05);
  list-style: none;
}
.lgs-wrap .lgs-tabs::-webkit-scrollbar {
  display: none;
}
.lgs-wrap .lgs-tab {
  flex: 1 1 auto;
  -webkit-appearance: none;
  appearance: none;
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none;
  cursor: pointer;
  padding: 12px 20px;
  margin: 0;
  border-radius: 999px;
  font-family: var(--lgs-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lgs-purple-900) !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.lgs-wrap .lgs-tab:hover {
  background: var(--lgs-purple-100) !important;
  color: var(--lgs-purple-900) !important;
}
.lgs-wrap .lgs-tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(64, 59, 163, 0.35) !important;
}
.lgs-wrap .lgs-tab.is-active {
  color: #ffffff !important;
  background: var(--lgs-purple-900) !important;
  box-shadow: 0 4px 14px rgba(55, 47, 116, 0.28) !important;
}
.lgs-wrap .lgs-tab.is-active:hover {
  background: var(--lgs-purple-900) !important;
  color: #ffffff !important;
}

/* Panels */
.lgs-wrap .lgs-panel {
  display: none;
  flex-direction: column;
  gap: 22px;
}
.lgs-wrap .lgs-panel.is-active {
  display: flex;
}

/* Cards */
.lgs-wrap .lgs-card {
  background: #ffffff !important;
  border: 1px solid #ece4f4;
  border-radius: var(--lgs-radius);
  padding: 30px 32px 30px 30px;
  position: relative;
  box-shadow: 0 2px 12px rgba(55, 47, 116, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  border-left: 4px solid var(--lgs-purple-900);
}
.lgs-wrap .lgs-card:hover {
  box-shadow: 0 14px 34px rgba(55, 47, 116, 0.14);
  transform: translateY(-3px);
  border-color: #e4d8f0;
  border-left-color: var(--lgs-brown-500);
}

.lgs-wrap .lgs-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.lgs-wrap .lgs-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--lgs-font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lgs-purple-700) !important;
  text-transform: uppercase;
  background: var(--lgs-purple-100) !important;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
}
.lgs-wrap .lgs-clock {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--lgs-purple-700);
}
.lgs-wrap .lgs-price {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  background: var(--lgs-brown-500) !important;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lgs-wrap .lgs-title {
  margin: 0 0 4px;
  font-family: var(--lgs-font-head);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 25px);
  color: var(--lgs-purple-900) !important;
  line-height: 1.25;
}
.lgs-wrap .lgs-subtitle {
  margin: 0 0 16px;
  font-size: clamp(13px, 2.5vw, 15px);
  color: var(--lgs-ink-soft) !important;
  font-style: italic;
  line-height: 1.5;
}

.lgs-wrap .lgs-tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1ecf8;
}
.lgs-wrap .lgs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lgs-brown-500);
  display: inline-block;
  flex: 0 0 auto;
}
.lgs-wrap .lgs-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lgs-brown-500) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lgs-wrap .lgs-venue {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
}
.lgs-wrap .lgs-pin {
  margin-right: 5px;
}
.lgs-wrap .lgs-venue-name {
  color: var(--lgs-purple-900) !important;
  font-weight: 700;
}
.lgs-wrap .lgs-address {
  font-size: 13px;
  color: var(--lgs-address) !important;
}

.lgs-wrap .lgs-excerpt {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--lgs-ink) !important;
}
.lgs-wrap .lgs-excerpt:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 640px) {
  .lgs-wrap {
    padding: 36px 14px 52px;
  }
  .lgs-wrap .lgs-tabs {
    justify-content: flex-start;
    border-radius: 16px;
  }
  .lgs-wrap .lgs-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13.5px;
  }
  .lgs-wrap .lgs-card {
    padding: 22px 22px 22px 20px;
  }
  .lgs-wrap .lgs-card-meta {
    justify-content: flex-start;
  }
  .lgs-wrap .lgs-excerpt,
  .lgs-wrap .lgs-venue {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .lgs-wrap {
    padding: 28px 10px 44px;
  }
  .lgs-wrap .lgs-card {
    padding: 18px 18px 18px 16px;
    border-radius: 14px;
  }
  .lgs-wrap .lgs-title {
    font-size: 19px;
  }
  .lgs-wrap .lgs-tab {
    padding: 9px 13px;
    font-size: 13px;
  }
}
