/* /weekend — this weekend in Lambton County.
   The weekend guide sits in the /free family: warm paper ground, white cards
   on soft hairlines, deep forest green for every heading and action, a serif
   for the headlines and 'Inter' for everything a parent taps. Mobile first:
   one column, thumb-sized controls, a sticky day picker under the shared
   header; three columns and a wide newsletter band on desktop.

   The shared header, footer and mobile bar come from nav-footer.css and are
   deliberately not touched here; page rules for them are what broke the
   mobile bar before (see CLAUDE.md).

   Sponsor slots: both sections ship with the hidden attribute and
   /assets/js/sponsor-spots.js reveals them only when Airtable has an active
   sponsor for the Weekend page. The :empty / .is-empty rules below are a
   second guard, so an unsponsored weekend never shows a band, a border or a
   gap. */

.weekend-page {
  /* Crisp white and soft blue (owner, 19 September 2026): ink headings, a
     slate blue for eyebrows and chips, the pale cool blue for every tint,
     and the deep green kept for buttons and links only. */
  --sp-green: #356382;
  --sp-surface: #ffffff;
  --sp-paper: #fbfcfb;
  --sp-sage-mist: #e6eef3;
  /* Lighter than the resting colour on purpose: iOS keeps :hover after a
     tap and a darker tapped button reads as broken (see CLAUDE.md). */
  --sp-green-hover: #3c7194;
  --sp-sage: #35576b;
  --sp-sage-border: #cfdbe3;
  --sp-ink: #22312b;
  --sp-ink-muted: #55635c;
  --sp-muted: #55635c;
  --sp-line: #e3e8e4;
  --sp-cream: #f2f5f3;
  --wk-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wk-serif: "Inter", Georgia, "Times New Roman", serif;
  --wk-radius-sm: 8px;
  --wk-radius-md: 16px;
  --wk-radius-lg: 22px;
  /* Controls are soft rectangles, never full pills: the owner finds a
     fully rounded, solid-green pill cartoonish (19 September 2026). */
  --wk-radius-control: 10px;
  --wk-control: 44px;
  /* Height of the sticky shared header the filter bar sits beneath. */
  --wk-header: 76px;

  margin: 0;
  background: var(--sp-paper);
  color: var(--sp-ink);
  font-family: var(--wk-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.weekend-page *, .weekend-page *::before, .weekend-page *::after { box-sizing: border-box; }
.weekend-page button, .weekend-page input { font: inherit; }
.weekend-page button, .weekend-page a { -webkit-tap-highlight-color: transparent; }
.weekend-page [hidden] { display: none !important; }
.weekend-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wk-shell :is(a, button):focus-visible { outline: 2px solid var(--sp-green); outline-offset: 3px; }

.wk-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--page-pad, 1.6rem); }

/* Hero ---------------------------------------------------------------------- */
.wk-hero { padding: 32px 0 20px; }
.wk-kicker, .wk-section-kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sp-sage);
}
.wk-kicker::before, .wk-section-kicker::before { content: ''; flex: none; width: 18px; height: 2px; background: currentColor; }
.wk-section-kicker { color: var(--sp-sage); margin-bottom: 8px; }
.wk-title {
  margin: 0 0 12px;
  font-family: var(--wk-serif);
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--sp-ink);
  text-wrap: balance;
}
.wk-lead { max-width: 62ch; margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: var(--sp-ink-muted); }
/* The dates, as a line of text: no badge, no pill, no count beside it. */
.wk-range { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--sp-ink); }

/* Sponsor slots ------------------------------------------------------------- */
/* Never show an empty band: hidden until sponsor-spots.js fills it, and no
   box at all if it is filled with nothing. */
.wk-sponsors:empty, .wk-sponsors.is-empty, .wk-sponsors[hidden] {
  display: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
}

/* Premier: one white card under the hero with up to two logo slots. */
.wk-premier-sponsors { margin-top: 22px; padding: 18px 20px; background: var(--sp-surface); border: 1px solid var(--sp-sage-border); border-radius: var(--wk-radius-md); }
.wk-premier-sponsors .pb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.wk-premier-sponsors .pb-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-sage); }
/* Desktop: the two logo cards sit side by side after the label. */
@media (min-width: 701px) {
}

/* Community: a hairline band above the footer, six tiles at most. */
.wk-community-sponsors { padding: 22px var(--page-pad, 1.6rem) 26px; border-top: 1px solid var(--sp-line); background: rgba(255, 255, 255, .55); }
.wk-community-sponsors .csx-head { max-width: 1240px; margin: 0 auto 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-sage); }
.wk-community-sponsors .csx-join { display: inline-flex; align-items: center; max-width: 1240px; margin: 8px auto 0; min-height: var(--wk-control); font-size: 13.5px; font-weight: 700; color: var(--sp-green); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 981px) { .wk-community-sponsors .csx-join { display: flex; } }

/* Filter pills --------------------------------------------------------------- */
.wk-filters {
  position: sticky; top: var(--wk-header); z-index: 20;
  padding: 12px 0;
  background: var(--sp-paper);
  border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line);
}
.wk-filters-scroll { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 var(--page-pad, 1.6rem); }
.wk-filters-scroll::-webkit-scrollbar { display: none; }
.wk-pill-group { display: flex; flex: none; gap: 8px; }
.wk-pill-sep { flex: none; width: 1px; height: 24px; margin: 0 4px; background: var(--sp-line); }
.wk-pill {
  flex: none; white-space: nowrap;
  min-height: var(--wk-control); padding: 0 16px;
  border: 1px solid var(--sp-line); border-radius: var(--wk-radius-control);
  background: var(--sp-surface); color: var(--sp-ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.wk-pill .wk-pill-n { margin-left: 6px; font-weight: 700; color: var(--sp-muted); }
/* Selected: still white, drawn in green rather than filled with it. */
.wk-pill.is-active { background: var(--sp-sage-mist); border-color: var(--sp-sage-border); color: var(--sp-ink); font-weight: 700; }
.wk-pill.is-active .wk-pill-n { color: var(--sp-ink); }
@media (min-width: 981px) {
  .wk-filters-scroll { justify-content: center; }
}

/* Sections ------------------------------------------------------------------- */
.wk-main { padding: 26px 0 48px; }
.wk-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin: 0 0 16px; }
.wk-section-heading { min-width: 0; max-width: 62ch; }
.wk-section-title { margin: 0; font-family: var(--wk-serif); font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--sp-ink); text-wrap: balance; }
.wk-section-sub { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--sp-ink-muted); }
.wk-status { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--sp-muted); }
.wk-status.is-error { color: #b3261e; }

.wk-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.wk-grid:empty { display: none; }
@media (min-width: 601px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .wk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.wk-empty { margin: 0 0 4px; padding: 26px 20px; background: var(--sp-surface); border: 1px dashed var(--sp-line); border-radius: var(--wk-radius-md); font-size: 15px; line-height: 1.55; color: var(--sp-ink-muted); text-align: center; }
.wk-feed-links { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 0; }
.wk-link { display: inline-flex; align-items: center; min-height: var(--wk-control); font-size: 14px; font-weight: 700; color: var(--sp-green); text-decoration: underline; text-underline-offset: 3px; }
.wk-link-quiet { color: var(--sp-sage); }
@media (min-width: 701px) { .wk-feed-links { flex-direction: row; flex-wrap: wrap; gap: 4px 28px; } }

.wk-standbys { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--sp-line); }

/* Cards ---------------------------------------------------------------------- */
.wk-card {
  display: flex; flex-direction: column;
  padding: 18px 18px 16px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line); border-radius: var(--wk-radius-md);
  box-shadow: 0 1px 2px rgba(42, 38, 34, .04), 0 2px 10px rgba(42, 38, 34, .03);
}
.wk-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.wk-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.wk-chip-day { background: var(--sp-sage-mist); border: 1px solid var(--sp-sage-border); color: var(--sp-sage); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.wk-card-when { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--sp-ink); overflow-wrap: anywhere; }
.wk-chip-now { background: var(--sp-sage-mist); color: var(--sp-sage); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.wk-cost { margin-left: auto; padding: 4px 9px; border-radius: 6px; background: var(--sp-cream); font-size: 12px; font-weight: 700; color: var(--sp-ink-muted); white-space: nowrap; }
.wk-cost-free { background: #e6eef3; color: #35576b; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.wk-card-title { margin: 0 0 8px; font-family: var(--wk-serif); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--sp-ink); text-wrap: balance; overflow-wrap: anywhere; }
.wk-card-title a { color: inherit; text-decoration: none; }
.wk-card-title a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.wk-card-desc { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--sp-ink-muted); }
.wk-card-where { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--sp-ink-muted); overflow-wrap: anywhere; }
.wk-pin { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--sp-sage); }
.wk-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.wk-tag { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--sp-cream); font-size: 12px; font-weight: 600; color: var(--sp-ink-muted); }
.wk-tag-cat { background: var(--sp-sage-mist); color: var(--sp-sage); }
.wk-tag-indoor { background: #e6eff6; color: #1b4f6f; }
.wk-tag-outdoor { background: #e2eee4; color: #1e5a33; }
.wk-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 4px; }
.wk-card-link { display: inline-flex; align-items: center; min-height: var(--wk-control); font-size: 14px; font-weight: 700; color: var(--sp-green); text-decoration: underline; text-underline-offset: 3px; }
.wk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--wk-control); padding: 0 18px;
  border: 1px solid var(--sp-green); border-radius: var(--wk-radius-sm);
  background: var(--sp-green); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.wk-btn:hover { background: var(--sp-green-hover); border-color: var(--sp-green-hover); }
@media (max-width: 600px) { .wk-card-actions .wk-btn { flex: 1 1 auto; } }

/* FAQ -------------------------------------------------------------------------- */
.wk-faq { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--sp-line); }
.wk-faq-list { display: flex; flex-direction: column; gap: 10px; }
.wk-faq-item {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line); border-radius: var(--wk-radius-md);
  box-shadow: 0 1px 2px rgba(42, 38, 34, .04), 0 2px 10px rgba(42, 38, 34, .03);
}
.wk-faq-item[open] { border-color: var(--sp-sage-border); }
.wk-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: var(--wk-control); padding: 14px 18px;
  list-style: none; cursor: pointer;
  font-family: var(--wk-serif); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em;
  color: var(--sp-ink);
}
.wk-faq-q::-webkit-details-marker { display: none; }
.wk-faq-q:focus-visible { outline: 2px solid var(--sp-green); outline-offset: -4px; border-radius: var(--wk-radius-md); }
.wk-faq-chev { flex: none; width: 20px; height: 20px; color: var(--sp-sage); transition: transform .2s ease; }
.wk-faq-item[open] .wk-faq-chev { transform: rotate(180deg); }
.wk-faq-a { padding: 0 18px 16px; font-size: 15px; line-height: 1.6; color: var(--sp-ink-muted); }
.wk-faq-a p { margin: 0 0 8px; }
.wk-faq-a p:last-child { margin-bottom: 0; }
.wk-faq-a a { color: var(--sp-green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (min-width: 981px) {
  .wk-faq-list { max-width: 820px; }
  .wk-faq-q { padding: 16px 22px; font-size: 19px; }
  .wk-faq-a { padding: 0 22px 18px; }
}

/* Newsletter ------------------------------------------------------------------ */
.wk-newsletter {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  margin-top: 36px; padding: 26px 20px;
  background: var(--sp-sage-mist); color: var(--sp-ink);
  border: 1px solid var(--sp-sage-border);
  border-radius: var(--wk-radius-lg);
  scroll-margin-top: calc(var(--wk-header) + 16px);
}
.wk-nl-kicker { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-sage); }
.wk-nl-title { margin: 0 0 10px; font-family: var(--wk-serif); font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--sp-ink); text-wrap: balance; }
.wk-nl-sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--sp-ink-muted); max-width: 46ch; }
.wk-nl-form { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--sp-surface); color: var(--sp-ink); border-radius: var(--wk-radius-md); }
.wk-nl-form .beehiiv-native-wrap { min-height: 0; }
.wk-nl-form .beehiiv-native-wrap:empty { display: none; }
.wk-nl-form .beehiiv-native-wrap iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.wk-nl-fallback { display: inline-flex; align-items: center; min-height: var(--wk-control); font-size: 14px; font-weight: 700; color: var(--sp-green); text-decoration: underline; text-underline-offset: 3px; }
.wk-nl-form noscript a { display: inline-flex; align-items: center; min-height: var(--wk-control); font-size: 14px; font-weight: 700; color: var(--sp-green); }
@media (min-width: 981px) {
  .wk-newsletter { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 36px; padding: 40px 44px; }
}
