/* What every page in the new design shares (design tokens v2, /tokens-v2.css): the page, the header with the
   wordmark, Events, Flyers, Places, search and Buzz It, buttons, the footer and the short notice page. Event pages
   (event-page.css) and town pages (town-page.css) add their own. */
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; color: var(--ink) !important; font-size: 19px; font-weight: 650; letter-spacing: -0.03em; text-decoration: none; }
.brand span { background: var(--buzz-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-head nav { display: flex; gap: 2px; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-head nav a:hover { background: var(--fill); color: var(--ink); }
/* Search everything (services/search.js), on every page and size. */
.head-search { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink-2); }
.head-search:hover { background: var(--fill); color: var(--ink); }
.head-search svg { width: 20px; height: 20px; }
.buzz { display: inline-flex; align-items: center; min-height: 40px; margin-left: 4px; padding: 0 16px; border-radius: 999px; background: var(--buzz); color: #ffffff !important; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.buzz:hover { filter: brightness(1.08); }
/* On a phone the tab bar (tab-bar.css) has the sections and Buzz It, so the header keeps the wordmark, and the page
   leaves room at the bottom for the bar. */
@media (max-width: 760px), (max-width: 940px) and (max-height: 500px) {
  .site-head nav, .site-head .buzz { display: none; }
  body { padding-bottom: var(--tab-bar, 0px); }
}
@media (max-width: 520px) {
  .buzz { padding: 0 14px; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px;
  background: var(--fill); color: var(--ink) !important; font: 600 15px/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--fill-2); }
.button.primary { background: var(--ink); color: var(--on-ink) !important; }
.button.primary:hover { filter: brightness(1.12); }

/* Footer and the short notice page (404, 410) */
.notice-page { max-width: 640px; padding-block: clamp(40px, 10vw, 96px); display: grid; gap: 14px; justify-items: center; text-align: center; }
.notice-page p { color: var(--ink-2); }
.site-foot { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 6px; padding-block: 24px 36px; }
.site-foot a { color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .button, .buzz { transition: background-color 0.15s ease, filter 0.15s ease; }
}
/* The footer's links to the privacy policy and terms of use. */
.site-foot .legal { font-size: 14px; }

/* A member's badge (owner decisions 2026-10-14, plan P13): beside their name on comments and photos, or as the name
   itself when they keep theirs private. Trusted members in the brand's purple, contributors in gold. */
.member-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1.6; vertical-align: 1px; white-space: nowrap; }
.member-badge.is-trusted { background: rgba(89, 38, 166, 0.12); color: #4a1f8c; }
.member-badge.is-contributor { background: rgba(214, 150, 20, 0.16); color: #7a4f00; }
@media (prefers-color-scheme: dark) {
  .member-badge.is-trusted { background: rgba(196, 177, 255, 0.16); color: #d6c8ff; }
  .member-badge.is-contributor { background: rgba(243, 181, 107, 0.16); color: #f3c98b; }
}
/* On a page in its flyer's color (light on dark). */
.is-tinted .member-badge.is-trusted, .is-tinted .member-badge.is-contributor { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
