/* Base page styles — colors/fonts/radii themselves live in js/tailwind-config.js
   (the Tailwind config), this file is just for things Tailwind utilities
   don't cover directly. */
body {
  background-color: #FAF9F6;
  color: #1a1c1a;
}

/* Sticky footer — without this, a short page (e.g. index.html's Step 1
   festival picker, which has much less content than the old
   product-grid steps) leaves the footer floating wherever the content
   happens to end, with a large blank gap both above and below it
   instead of sitting at the actual bottom of the viewport.

   Scoped to body:has(footer) — ONLY index.html has a <footer>;
   admin.html/reports.html/settings.html don't and never needed this.
   Real bug found 2026-11-03: applying `display:flex` to every page's
   <body> unconditionally turned <main> into a flex item everywhere,
   which broke CSS Grid's auto-fill column calculation inside it on
   the admin pages (a grid nested inside a flex item can lose the
   ability to measure its own available width correctly) — the
   product catalog rendered as a single narrow column instead of
   wrapping into a grid. :has() scoping this to just the one page that
   actually needs it avoids that entirely, instead of trying to patch
   around the interaction on every other page. */
body:has(footer) {
  /* 100vh on iOS Safari is calculated against the LARGEST possible
     viewport (toolbars hidden), not what's actually visible — made
     this work on desktop but not on an actual phone. 100dvh (dynamic
     viewport height) is iOS Safari's own fix, supported since iOS
     15.4 (2022) — listed second so it overrides 100vh in browsers
     that understand it, older/non-mobile browsers keep the fallback. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body:has(footer) > main { flex: 1 0 auto; }
