/* Townline Events Calendar + What's On widget. Light pages use ink on cream.
   Dark hosts (Townline home, WCN if dark) use gold/cream on navy — never blue on dark. */
:root {
  --tl-cal-ink: #1c140c;
  --tl-cal-muted: #5c5144;
  --tl-cal-cream: #f7f1e6;
  --tl-cal-paper: #fffdf8;
  --tl-cal-gold: #8a6a2a;
  --tl-cal-gold2: #c99a3e;
  --tl-cal-line: rgba(44,35,28,.14);
  --tl-cal-navy: #0b1a2c;
}
.tl-wo, .tl-cal { color: var(--tl-cal-ink); }
.tl-wo a, .tl-cal a { color: var(--tl-cal-gold); text-decoration: none; }
.tl-wo a:hover, .tl-cal a:hover { text-decoration: underline; }
.tl-wo { margin: 0 0 28px; }
.tl-wo-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.tl-wo-head h2, .tl-cal h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; }
.tl-wo-kicker, .tl-cal-kicker {
  font: 700 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: .18em; text-transform: uppercase; color: var(--tl-cal-gold); margin: 0 0 6px;
}
.tl-wo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tl-wo-card, .tl-cal-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--tl-cal-paper); border: 1px solid var(--tl-cal-line);
  border-radius: 16px; padding: 14px 16px; color: inherit; text-decoration: none;
}
.tl-wo-card:hover, .tl-cal-card:hover { text-decoration: none; border-color: var(--tl-cal-gold2); }
.tl-wo-card b, .tl-cal-card b { font-size: 16px; line-height: 1.3; color: var(--tl-cal-ink); }
.tl-wo-card small, .tl-cal-card small, .tl-wo-note, .tl-cal-note { color: var(--tl-cal-muted); font-size: 13px; }
.tl-wo-go, .tl-cal-go { margin-top: auto; font-weight: 800; font-size: 13px; color: var(--tl-cal-gold); }
.tl-wo-specials { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.tl-wo-special {
  background: #fffaf1; border: 1px solid var(--tl-cal-gold2); border-radius: 14px;
  padding: 12px 14px; color: var(--tl-cal-ink); text-decoration: none;
}
.tl-wo-special:hover { text-decoration: none; }
.tl-wo-special b { display: block; margin: 2px 0 6px; }
.tl-wo-empty { padding: 16px; border-radius: 14px; background: var(--tl-cal-paper); border: 1px solid var(--tl-cal-line); }

/* Dark host (Townline home) */
.tl-wo-dark, .tl-wo-dark .tl-wo-card b, .tl-wo-dark .tl-wo-special, .tl-wo-dark .tl-wo-special b { color: #f7f1e6; }
.tl-wo-dark .tl-wo-card, .tl-wo-dark .tl-wo-special, .tl-wo-dark .tl-wo-empty {
  background: #0e1f33; border-color: rgba(230,196,110,.25); color: #f7f1e6;
}
.tl-wo-dark .tl-wo-kicker, .tl-wo-dark a, .tl-wo-dark .tl-wo-go { color: #e6c46e; }
.tl-wo-dark .tl-wo-card small, .tl-wo-dark .tl-wo-note { color: #d4c6b0; }
.tl-wo-dark h2 { color: #f7f1e6; }

/* Full calendar page */
body.tl-cal-page { margin: 0; background: var(--tl-cal-cream); color: var(--tl-cal-ink); font: 16px/1.5 Inter, system-ui, sans-serif; }
.tl-cal-wrap { width: min(1120px, 92vw); margin: 0 auto; }
.tl-cal-top { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tl-cal-top img { height: 44px; width: auto; }
.tl-cal-top nav { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.tl-cal-hero { padding: 12px 0 28px; }
.tl-cal-hero h1 { font: 700 clamp(36px, 6vw, 64px)/1.05 "Playfair Display", Georgia, serif; margin: 0 0 12px; }
.tl-cal-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.tl-cal-filters select, .tl-cal-filters input[type="search"] {
  font: inherit; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--tl-cal-line);
  background: var(--tl-cal-paper); color: var(--tl-cal-ink);
}
.tl-cal-chip, .tl-cal-toggle button {
  border: 1px solid var(--tl-cal-line); background: var(--tl-cal-paper); color: var(--tl-cal-ink);
  border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.tl-cal-chip.is-on, .tl-cal-toggle button.is-on { background: #2c231c; color: #fffdf8; border-color: #2c231c; }
.tl-cal-month-nav { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.tl-cal-month-nav h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; }
.tl-cal-month-nav button { border: 1px solid var(--tl-cal-line); background: var(--tl-cal-paper); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; color: var(--tl-cal-ink); }
.tl-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tl-cal-dow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tl-cal-muted); padding: 4px; }
.tl-cal-day { min-height: 92px; background: var(--tl-cal-paper); border: 1px solid var(--tl-cal-line); border-radius: 10px; padding: 6px; font-size: 12px; }
.tl-cal-day.is-today { border-color: var(--tl-cal-gold2); box-shadow: inset 0 0 0 1px var(--tl-cal-gold2); }
.tl-cal-day.is-muted { opacity: .45; }
.tl-cal-day b { display: block; margin-bottom: 4px; }
.tl-cal-day a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 2px; color: var(--tl-cal-ink); }
.tl-cal-list { display: flex; flex-direction: column; gap: 10px; }
.tl-cal-card { padding: 16px 18px; }
.tl-cal-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--tl-cal-muted); }
.tl-cal-cat { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tl-cal-gold); }
.tl-cal-foot { padding: 36px 0 64px; color: var(--tl-cal-muted); font-size: 13px; border-top: 1px solid var(--tl-cal-line); margin-top: 36px; }
@media (max-width: 720px) {
  .tl-cal-grid { grid-template-columns: 1fr; }
  .tl-cal-dow { display: none; }
  .tl-cal-day { min-height: 0; }
}
