/* ============================================
   Regional networking directory: style.css
   Palette tokens come from config/theme.css.
   ============================================ */

/* --- Fonts ---
   Estate typefaces (shared with wingenious.ai, freeaudit.ai, aibreakfastclub.co.uk).
   Loaded from Google Fonts in the <head>; these stacks fall back to system-ui. --- */

/* --- Custom Properties (layout and type; colours in config/theme.css) --- */
:root {
  /* Colours live in config/theme.css (loaded before this file). */

  /* Layout — estate form language: square buttons, 8px cards */
  --container-max: 1200px;
  --radius-card: 8px;
  --radius-badge: 3px;
  --radius-input: 4px;
  --radius-btn: 0;
  --header-height: 64px;
  --eyebrow-tracking: 0.18em;

  /* Typography — estate stacks */
  --font-display: 'Bricolage Grotesque', 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--site-text);
  background-color: var(--site-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--site-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--site-accent-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

fieldset {
  border: 0;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* Skip link — keyboard-only, appears on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background-color: var(--site-accent);
  color: #FFFFFF;
  border-radius: var(--radius-badge);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--site-accent-light);
  outline-offset: 2px;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.anim-delay-1 { animation-delay: 100ms; }
.anim-delay-2 { animation-delay: 200ms; }
.anim-delay-3 { animation-delay: 300ms; }
.anim-delay-4 { animation-delay: 400ms; }

/* --- Buttons — estate form language: square, weighty, lift on hover --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--site-cta);
  color: var(--site-on-cta);
  border-color: var(--site-cta);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--site-cta-hover);
  border-color: var(--site-cta-hover);
  color: var(--site-on-cta);
  transform: translateY(-1px);
}

/* Outline on ink (hero, header, subscribe) */
.hero .btn-outline,
.site-header .btn-outline {
  background-color: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero .btn-outline:hover,
.site-header .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  border-color: var(--site-gold);
  transform: translateY(-1px);
}

/* Outline on paper */
.btn-outline {
  background-color: transparent;
  color: var(--site-accent);
  border-color: var(--site-accent);
}

.btn-outline:hover {
  background-color: var(--site-accent-glow);
  color: var(--site-accent-light);
  border-color: var(--site-accent-light);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  font-size: 16px;
}

/* --- Eyebrow (estate label style) --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--site-gold);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--site-cta);
}

/* --- Header — ink, hairline, blur; 64px like the rest of the estate --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: rgba(var(--site-ink-rgb), 0.86);
  border-bottom: 1px solid var(--site-ink-hairline);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(var(--site-ink-rgb), 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark:hover {
  color: #FFFFFF;
}

/* Brand mark: the regional icon (config: images.mark) rendered in gold via a CSS mask */
.wordmark-mark {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background-color: var(--site-gold);
  -webkit-mask: url("../images/icon.svg") center / contain no-repeat;
  mask: url("../images/icon.svg") center / contain no-repeat;
}

.accent {
  color: var(--site-gold);
}

/* --- Hero: regional photograph (config images.hero) under an ink gradient --- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 88px 0 72px;
  background-color: var(--site-ink);
  color: var(--site-hero-text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: saturate(0.92) contrast(1.02);
}

/* Ink wash: heavy on the left where the copy sits, thin on the right so the
   ridge line still reads; a low red glow bottom-right echoes the estate's
   atmosphere gradients with the palette's accent. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 92% 110%, rgba(var(--site-gold-rgb), 0.22) 0%, transparent 60%),
    linear-gradient(90deg, rgba(var(--site-ink-rgb), 0.94) 0%, rgba(var(--site-ink-rgb), 0.82) 38%, rgba(var(--site-ink-rgb), 0.40) 72%, rgba(var(--site-ink-rgb), 0.20) 100%),
    linear-gradient(180deg, rgba(var(--site-ink-rgb), 0.55) 0%, rgba(var(--site-ink-rgb), 0.10) 40%, rgba(var(--site-ink-rgb), 0.70) 100%);
  pointer-events: none;
}

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--site-hero-text);
  max-width: 760px;
  text-wrap: balance;
}

.hero-title em {
  font-style: normal;
  color: var(--site-gold);
}

.hero-subtitle {
  margin-top: 22px;
  font-size: 18px;
  color: var(--site-hero-muted);
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Stats Bar — ink continues, hairline above, figures in green --- */
.stats-bar {
  position: relative;
  padding: 18px 0;
  background-color: var(--site-ink-soft);
  border-top: 1px solid var(--site-ink-hairline);
  border-bottom: 1px solid var(--site-ink-hairline);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--site-gold);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background-color: var(--site-ink-hairline);
}

/* --- Filter + Events Wrapper (constrains sticky scope) --- */
.filter-events-wrapper {
  position: relative;
}

/* --- Filter Bar --- */
.filter-bar {
  padding: 12px 0;
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  background-color: var(--site-surface);
  border-bottom: 1px solid var(--site-border);
  box-shadow: 0 -1px 0 var(--site-border), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Filter rows — 2-row compact layout */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-row-secondary {
  padding-top: 10px;
}

.search-wrapper {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--site-text-muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 1;
  color: var(--site-text-muted);
  background: var(--site-border);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-clear[hidden] {
  display: none;
}

.search-clear:hover {
  background: var(--site-accent);
  color: #FFFFFF;
}

.search-input {
  width: 100%;
  padding: 10px 34px 10px 36px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--site-text);
  background-color: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-input);
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--site-text-muted);
}

.search-input:focus {
  border-color: var(--site-accent);
  outline: none;
  background-color: var(--site-surface);
}

.results-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--site-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

#month-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.month-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--site-text-muted);
  background-color: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.month-pill-short {
  display: none;
}

.month-pill:hover {
  color: var(--site-text);
  border-color: var(--site-accent);
}

.month-pill[aria-pressed="true"] {
  background-color: var(--site-accent);
  color: #FFFFFF;
  border-color: var(--site-accent);
}

.month-pill:active {
  transform: scale(0.95);
}

/* --- Dropdown Filter Buttons --- */
.filter-dropdowns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-dd {
  position: relative;
}

/* The mobile-only Filters button lives in row 1; hidden on wide screens */
.filter-dd-btn.filters-open,
.search-toggle {
  display: none;
}

.filter-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--site-text-muted);
  background-color: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-dd-btn:hover {
  color: var(--site-text);
  border-color: var(--site-accent);
}

.filter-dd-btn.has-selection {
  color: var(--site-accent);
  background-color: rgba(var(--site-accent-rgb), 0.08);
  border-color: rgba(var(--site-accent-rgb), 0.3);
}

.filter-dd-btn[aria-expanded="true"] {
  color: var(--site-accent);
  border-color: var(--site-accent);
  background-color: var(--site-accent-glow);
}

.filter-dd-chevron {
  transition: transform 0.15s ease;
}

.filter-dd-btn[aria-expanded="true"] .filter-dd-chevron {
  transform: rotate(180deg);
}

.filter-dd-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px;
  background-color: var(--site-accent);
  color: #FFFFFF;
}

/* Dropdown panel — overlays the page under its button; never shifts the results */
.filter-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  max-width: min(360px, calc(100vw - 32px));
  max-height: min(360px, calc(100vh - 220px));
  display: flex;
  flex-direction: column;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px rgba(var(--site-ink-rgb), 0.04), 0 12px 32px -8px rgba(var(--site-ink-rgb), 0.25);
  overflow: hidden;
  animation: ddRevealInline 0.15s ease-out;
}

.filter-dd-panel[hidden] {
  display: none;
}

.filter-dd-options {
  overflow-y: auto;
  overscroll-behavior: contain;
}

@keyframes ddRevealInline {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-dd-search {
  display: block;
  width: calc(100% - 16px);
  margin: 8px 8px 4px;
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--site-text);
  background-color: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: 6px;
}

.filter-dd-search::placeholder {
  color: var(--site-text-muted);
}

.filter-dd-search:focus {
  border-color: var(--site-accent);
  outline: none;
}

.filter-dd-options {
  overflow-y: auto;
  max-height: 240px;
  padding: 4px 0;
}

.filter-dd-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--site-text);
  cursor: pointer;
  transition: background-color 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
}

.filter-dd-option:hover {
  background-color: var(--site-bg);
}

.filter-dd-option input[type="checkbox"] {
  accent-color: var(--site-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.filter-dd-option.dd-hidden {
  display: none;
}

.filter-dd-option.dd-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Area panel: an area row heads a group of its hub towns */
.filter-dd-option.dd-group {
  font-weight: 600;
  margin-top: 4px;
}

.filter-dd-option.dd-group:first-child {
  margin-top: 0;
}

.filter-dd-option.dd-sub {
  padding-left: 34px;
  font-size: 13px;
  color: var(--site-text-muted);
}

.filter-dd-option.dd-sub input:checked + span {
  color: var(--site-text);
}

.filter-sheet .filter-dd-option.dd-sub {
  padding-left: 44px;
  font-size: 14px;
}

/* Active filter chips — inline with dropdowns in row 2 */
.active-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-left: 8px;
  border-left: 1px solid var(--site-border);
  margin-left: 4px;
}

.active-chips[hidden] {
  display: none;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--site-accent);
  background-color: rgba(var(--site-accent-rgb), 0.1);
  border: 1px solid rgba(var(--site-accent-rgb), 0.25);
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.active-chip:hover {
  background-color: rgba(var(--site-accent-rgb), 0.16);
  border-color: rgba(var(--site-accent-rgb), 0.4);
}

.active-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 11px;
  line-height: 1;
  border-radius: 50%;
  color: var(--site-accent);
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.active-chip:hover .active-chip-x {
  opacity: 1;
}

.active-chips-clear {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--site-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}

.active-chips-clear:hover {
  color: var(--site-accent);
}


/* --- Events Section --- */
.events-section {
  padding: 48px 0 80px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Section Divider (between dated & recurring events) --- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 4px;
}

.section-divider-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  color: var(--site-text-muted);
  white-space: nowrap;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--site-border);
}

/* --- Event Card --- */
.event-card {
  background-color: var(--site-surface);
  border: none;
  border-radius: var(--radius-card);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-card);
}

.event-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.event-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-badge);
  white-space: nowrap;
}

.badge-confirmed {
  background-color: rgba(var(--site-confirmed-rgb), 0.12);
  color: var(--site-confirmed);
}

.badge-verified {
  background-color: rgba(var(--site-verified-rgb), 0.10);
  color: var(--site-verified);
}

.badge-likely {
  background-color: rgba(var(--site-likely-rgb), 0.10);
  color: var(--site-likely);
}

.badge-expo {
  background-color: rgba(var(--site-likely-rgb), 0.10);
  color: var(--site-expo);
}

.badge-type {
  background-color: var(--site-badge-neutral);
  color: var(--site-text-muted);
  border: 1px solid var(--site-border);
}

.badge-free {
  background-color: rgba(var(--site-confirmed-rgb), 0.12);
  color: var(--site-free);
}

/* --- Organiser avatar ---
   Fixed size and shape for every organiser, logo or not, so the listing
   reads as one consistent column. */
.event-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.event-head-text {
  min-width: 0; /* let long event names wrap instead of stretching the row */
  flex: 1;
}

.org-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--site-surface);
  border: 1px solid var(--site-border-light);
  /* contain, never cover: a logo must not be cropped */
  object-fit: contain;
  padding: 5px;
  box-sizing: border-box;
}

.org-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--site-accent-dark);
  background: var(--site-surface-alt);
  border-color: var(--site-border);
  user-select: none;
}

/* Stable per-organiser tints, muted enough to sit behind the event name */
.org-avatar-fallback[data-tone="0"] { background: #E4EBEF; color: #2F5265; }
.org-avatar-fallback[data-tone="1"] { background: #E8EAE2; color: #4A5540; }
.org-avatar-fallback[data-tone="2"] { background: #F0E7E2; color: #6B4A3B; }
.org-avatar-fallback[data-tone="3"] { background: #E3E9E7; color: #33564E; }
.org-avatar-fallback[data-tone="4"] { background: #EDE7EF; color: #574361; }
.org-avatar-fallback[data-tone="5"] { background: #EFEAE0; color: #6A5533; }

.event-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--site-heading);
  line-height: 1.3;
  margin-bottom: 4px;
}

.event-organiser {
  font-size: 14px;
  color: var(--site-text-muted);
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .org-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }
  .org-avatar-fallback { font-size: 13px; }
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.event-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 16px;
  font-size: 14px;
  color: var(--site-text-muted);
}

/* Meeting ID / passcode row: the visitor needs to read it, so it is not muted */
.event-detail-join {
  color: var(--site-text);
  line-height: 1.4;
}

.event-detail-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--site-accent);
}

.event-detail-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.event-date {
  font-family: var(--font-mono);
  color: var(--site-accent);
  font-weight: 700;
  font-size: 14px;
}

.event-time {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.event-notes {
  font-size: 13px;
  color: var(--site-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-notes.expanded {
  -webkit-line-clamp: unset;
}

.show-more {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--site-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}

.show-more:hover {
  color: var(--site-accent-light);
}

.event-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--site-border-light);
}

.event-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--site-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-link:hover {
  color: var(--site-accent-light);
}

/* Card fade transition for filtering */
.event-card.fade-out {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.event-card.fade-in {
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--site-text-muted);
  font-size: 16px;
}

.link-button {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--site-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.link-button:hover {
  color: var(--site-accent-light);
}

/* --- Subscribe Section: secondary photograph (config images.secondary) under ink --- */
.subscribe-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 20;
  padding: 88px 0;
  background-color: var(--site-subscribe-bg);
}

.subscribe-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.85);
}

.subscribe-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 8% 100%, rgba(var(--site-gold-rgb), 0.14) 0%, transparent 60%),
    linear-gradient(180deg, rgba(var(--site-ink-rgb), 0.92) 0%, rgba(var(--site-ink-rgb), 0.84) 50%, rgba(var(--site-ink-rgb), 0.94) 100%);
  pointer-events: none;
}

.subscribe-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-inner .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.subscribe-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.subscribe-subtitle {
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.email-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-input);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.email-input:focus {
  border-color: var(--site-gold);
  background-color: rgba(255, 255, 255, 0.09);
  outline: none;
}

.email-input.error {
  border-color: var(--site-cta-hover);
}

.frequency-fieldset {
  text-align: left;
}

.frequency-legend {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.frequency-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frequency-option {
  cursor: pointer;
}

.frequency-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.frequency-pill {
  display: block;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-input);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.frequency-pill:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.frequency-detail {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  margin-left: 8px;
}

.frequency-option input:checked + .frequency-pill {
  border-color: var(--site-gold);
  background-color: rgba(var(--site-gold-rgb), 0.12);
}

.frequency-option input:focus-visible + .frequency-pill {
  outline: 2px solid var(--site-gold);
  outline-offset: 2px;
}

.subscribe-confirmation {
  padding: 32px 0;
}

.confirmation-message {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--site-gold);
  margin-bottom: 8px;
}

.confirmation-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.privacy-note {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Subscribe button states */
.btn-subscribed {
  background-color: var(--site-accent);
  border-color: var(--site-accent);
  color: #FFFFFF;
  box-shadow: none;
  pointer-events: none;
}

/* --- Footer — ink, estate lockup --- */
.site-footer {
  position: relative;
  z-index: 20;
  padding: 0 0 32px;
  background-color: var(--site-footer-bg);
  color: var(--site-footer-text);
  border-top: 1px solid var(--site-ink-hairline);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 0 36px;
  width: 100%;
}

.footer-brand .wordmark {
  font-size: 18px;
  color: #FFFFFF;
  justify-content: center;
}

.footer-tagline {
  font-size: 14px;
  color: var(--site-footer-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-cta {
  font-size: 14px;
  color: var(--site-footer-text);
}

.footer-cta a {
  color: var(--site-gold);
  font-weight: 600;
}

.footer-cta a:hover {
  color: var(--site-gold-light);
}

.footer-credit {
  font-size: 13px;
  color: var(--site-footer-muted);
}

.footer-credit a {
  color: var(--site-footer-text);
}

.footer-credit a:hover {
  color: #FFFFFF;
}

/* Powered by Wingenious — identical lockup to the sister brands */
.wg-lockup {
  width: 100%;
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--site-ink-hairline);
  border-bottom: 1px solid var(--site-ink-hairline);
}

.wg-lockup__powered {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--site-footer-muted);
  margin-bottom: 10px;
}

.wg-lockup__logo {
  display: inline-block;
  width: 132px;
  height: 24px; /* logo aspect ratio 5.605:1 */
  background-color: currentColor;
  -webkit-mask: url(../images/wingenious-logo.svg) center / contain no-repeat;
          mask: url(../images/wingenious-logo.svg) center / contain no-repeat;
}

a.wg-lockup__link {
  display: inline-block;
  color: var(--site-gold);
  text-decoration: none;
  transition: color 0.18s ease;
}

a.wg-lockup__link:hover {
  color: var(--site-gold-light);
}

.wg-lockup__strapline {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--site-footer-muted);
}

.wg-lockup__strapline em {
  color: var(--site-cta-hover);
  font-style: italic;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--site-footer-muted);
}

.footer-legal a {
  color: var(--site-footer-muted);
}

.footer-legal a:hover {
  color: #FFFFFF;
}

.footer-separator {
  opacity: 0.5;
}

.footer-sister {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--site-footer-muted);
  opacity: 0.85;
}

.footer-sister a {
  color: var(--site-footer-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-sister a:hover {
  color: #FFFFFF;
}

/* --- Privacy Page --- */
.privacy-page {
  padding: 100px 0 80px;
}

.privacy-inner {
  max-width: 680px;
  margin: 0 auto;
}

.privacy-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--site-heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.privacy-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--site-text-muted);
  margin-bottom: 40px;
}

.privacy-inner h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--site-heading);
  margin-top: 32px;
  margin-bottom: 12px;
}

.privacy-inner p {
  font-size: 15px;
  color: var(--site-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.privacy-inner ul {
  margin: 0 0 16px 24px;
  font-size: 15px;
  color: var(--site-text);
  line-height: 1.7;
}

.privacy-inner li {
  margin-bottom: 4px;
}

.privacy-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--site-border);
}

/* --- Responsive --- */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .hero {
    padding: 112px 0 88px;
  }

  .stats-inner {
    gap: 48px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .hero {
    padding: 136px 0 104px;
  }

  .event-card {
    padding: 28px 32px;
  }
}

/* Mobile: max 767px */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .hero::before {
    background:
      radial-gradient(60% 40% at 90% 110%, rgba(var(--site-gold-rgb), 0.2) 0%, transparent 60%),
      linear-gradient(180deg, rgba(var(--site-ink-rgb), 0.86) 0%, rgba(var(--site-ink-rgb), 0.78) 60%, rgba(var(--site-ink-rgb), 0.9) 100%);
  }

  .hero-bg {
    object-position: 60% 40%;
  }

  .hero-subtitle br {
    display: none;
  }

  .wordmark {
    font-size: 17px;
    gap: 8px;
  }

  .wordmark-mark {
    width: 18px;
    height: 18px;
  }

  .site-header .btn-sm {
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
  }

  .stat-divider {
    display: none;
  }

  .stat-number {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .results-count {
    display: none;
  }

  .search-wrapper {
    width: 100%;
  }

  .active-chips {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 8px;
  }

  /* Phone: the header scrolls away and the filter bar sticks to the top */
  .site-header {
    position: static;
  }

  .filter-bar {
    top: 0;
    padding: 8px 0;
  }

  /* One row: search icon | month pills (swipe) | Filters | view toggle.
     The search field drops in as a second row only while it is open or
     holds a query. */
  .filter-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--site-text-muted);
    background: var(--site-bg);
    border: 1px solid var(--site-border);
    border-radius: var(--radius-input);
    cursor: pointer;
  }

  .search-toggle[aria-expanded="true"],
  .filter-row.has-query .search-toggle {
    color: var(--site-accent);
    border-color: var(--site-accent);
    background: rgba(var(--site-accent-rgb), 0.08);
  }

  .search-wrapper {
    display: none;
    order: 5;
    flex: 1 0 100%;
    min-width: 0;
  }

  .filter-row.search-open .search-wrapper,
  .filter-row.has-query .search-wrapper {
    display: block;
  }

  .view-toggle {
    order: 4;
    flex-shrink: 0;
  }

  /* 16px stops iOS zooming the page when the field is focused */
  .search-input,
  .filter-dd-search {
    font-size: 16px;
  }

  .filter-dd-btn.filters-open {
    display: inline-flex;
    justify-content: center;
    position: relative;
    order: 3;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .filter-dd-btn.filters-open .filter-dd-count {
    position: absolute;
    top: -6px;
    right: -6px;
    box-shadow: 0 0 0 2px var(--site-surface);
  }

  .view-toggle-label {
    display: none;
  }

  .view-toggle-btn {
    padding: 8px 9px;
  }

  /* Month row: one line, swipes sideways, short names */
  #month-pills {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 0;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  #month-pills::-webkit-scrollbar {
    display: none;
  }

  .month-pill {
    flex: 0 0 auto;
    padding: 8px 12px;
    scroll-snap-align: start;
  }

  .month-pill-long {
    display: none;
  }

  .month-pill-short {
    display: inline;
  }

  /* Per-facet buttons and chips are replaced by the Filters sheet */
  .filter-row-secondary {
    display: none;
  }

  /* --- Filters sheet --- */
  .filter-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(var(--site-ink-rgb), 0.45);
    animation: fadeIn 0.15s ease-out;
  }

  .filter-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    max-height: 80dvh;
    background: var(--site-surface);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(var(--site-ink-rgb), 0.25);
    outline: none;
    animation: calSheetIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .filter-sheet-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--site-border-light);
  }

  .filter-sheet-head .cal-pop-close {
    position: static;
    margin-left: auto;
  }

  .filter-sheet-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--site-heading);
  }

  .filter-sheet-clear {
    padding: 6px 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--site-accent);
    background: none;
    border: none;
    cursor: pointer;
  }

  .filter-sheet-clear[hidden] {
    display: none;
  }

  .filter-sheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 0 8px;
  }

  .filter-sheet-group + .filter-sheet-group {
    border-top: 1px solid var(--site-border-light);
  }

  /* Each facet is a collapsed row; tapping it reveals its options */
  .filter-sheet-group-title {
    margin: 0;
  }

  .filter-sheet-group-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--site-heading);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
  }

  .filter-sheet-group-btn[aria-expanded="true"] {
    background: var(--site-bg);
  }

  .filter-sheet-group-summary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--site-text-muted);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filter-sheet-group-btn.has-selection .filter-sheet-group-summary {
    color: var(--site-accent);
    font-weight: 600;
  }

  .filter-sheet-group-chevron {
    flex-shrink: 0;
    color: var(--site-text-muted);
    transition: transform 0.15s ease;
  }

  .filter-sheet-group-btn[aria-expanded="true"] .filter-sheet-group-chevron {
    transform: rotate(180deg);
  }

  .filter-sheet-group-body[hidden] {
    display: none;
  }

  .filter-sheet-group-body {
    padding-bottom: 6px;
    background: var(--site-bg);
  }

  /* Inside the sheet the panels are plain lists */
  /* The desktop panel clips to 240px and hides overflow; in the sheet the
     whole list must show (the sheet body scrolls), or every organiser past
     the fifth is unreachable. */
  .filter-sheet .filter-dd-panel {
    position: static;
    max-width: none;
    max-height: none;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    overflow: visible;
  }

  .filter-sheet .filter-dd-options {
    overflow: visible;
    max-height: none;
  }

  .filter-sheet .filter-dd-option {
    padding: 12px 16px;
    font-size: 15px;
  }

  .filter-sheet .filter-dd-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .filter-sheet-foot {
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--site-border-light);
    background: var(--site-surface);
  }

  .filter-sheet-apply {
    width: 100%;
    justify-content: center;
  }

  body.filter-sheet-open {
    overflow: hidden;
  }

  .event-card {
    padding: 20px;
  }

  .event-name {
    font-size: 16px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 4px;
  }

  .footer-separator {
    display: none;
  }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .event-card:hover {
    transform: none;
  }
}

/* =====================================================================
   Calendar view, calendar feed and view toggle
   ===================================================================== */

.events-list[hidden],
.calendar-view[hidden],
.cal-other[hidden] {
  display: none;
}

/* --- View toggle (segmented control) --- */
.view-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--site-surface-alt);
  border: 1px solid var(--site-border);
  border-radius: 6px;
  flex-shrink: 0;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--site-text-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.view-toggle-btn:hover {
  color: var(--site-text);
}

.view-toggle-btn[aria-pressed="true"] {
  color: var(--site-heading);
  background: var(--site-surface);
  box-shadow: 0 1px 2px rgba(var(--site-ink-rgb), 0.12), 0 0 0 1px rgba(var(--site-ink-rgb), 0.05);
}

.view-toggle-btn:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 1px;
}

/* --- Calendar toolbar --- */
.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cal-title {
  flex: 1;
  margin: 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--site-heading);
  letter-spacing: -0.01em;
}

.cal-nav,
.cal-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--site-text);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cal-nav:hover,
.cal-today:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
}

.cal-nav:focus-visible,
.cal-today:focus-visible,
.cal-cell:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}

/* --- Month grid --- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--site-border);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cal-head {
  padding: 8px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--site-text-muted);
  background: var(--site-surface-alt);
}

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-height: 108px;
  padding: 8px;
  font-family: var(--font-sans);
  text-align: left;
  color: var(--site-text);
  background: var(--site-surface);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.cal-cell:not(:disabled):hover {
  background: var(--site-accent-glow);
}

.cal-cell--pad {
  background: var(--site-bg);
  cursor: default;
}

.cal-cell--empty {
  cursor: default;
  color: var(--site-text-muted);
}

.cal-cell--past {
  background: var(--site-surface-past);
}

.cal-cell--past .cal-day-num {
  color: var(--site-text-muted);
}

.cal-cell--past .cal-chip {
  opacity: 0.55;
}

.cal-cell--selected,
.cal-cell--selected:not(:disabled):hover {
  background: var(--site-surface);
  box-shadow: inset 0 0 0 2px var(--site-accent);
}

.cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
}

.cal-cell--today .cal-day-num {
  color: #FFFFFF;
  background: var(--site-accent);
}

.cal-chips {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cal-chip {
  display: block;
  padding: 3px 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--site-accent-dark);
  background: rgba(var(--site-accent-rgb), 0.12);
  border-left: 3px solid var(--site-accent);
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-chip--expo {
  color: var(--site-likely);
  background: rgba(var(--site-likely-rgb), 0.12);
  border-left-color: var(--site-expo);
}

.cal-chip--weekly {
  color: var(--site-verified);
  background: rgba(var(--site-verified-rgb), 0.10);
  border-left-color: var(--site-verified);
}

.cal-chip[data-event-id] {
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cal-chip[data-event-id]:hover,
.cal-chip--active {
  background: var(--site-accent);
  color: #FFFFFF;
  transform: translateX(1px);
}

.cal-chip--expo[data-event-id]:hover,
.cal-chip--expo.cal-chip--active {
  background: var(--site-expo);
  color: #FFFFFF;
}

.cal-chip--weekly[data-event-id]:hover,
.cal-chip--weekly.cal-chip--active {
  background: var(--site-verified);
  color: #FFFFFF;
}

.cal-cell--popped {
  box-shadow: inset 0 0 0 2px var(--site-accent);
}

.cal-chip--more {
  color: var(--site-text-muted);
  background: transparent;
  border-left-color: transparent;
  padding-left: 3px;
}

.cal-dots {
  display: none;
  gap: 3px;
  justify-content: center;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--site-accent);
}

.cal-dot.cal-chip--expo { background: var(--site-expo); }
.cal-dot.cal-chip--weekly { background: var(--site-verified); }

/* --- Pop-up event card (desktop popover, mobile bottom sheet) --- */
.cal-pop {
  position: fixed;
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 0;
  background: var(--site-surface);
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px rgba(var(--site-ink-rgb), 0.08), 0 24px 56px -12px rgba(var(--site-ink-rgb), 0.35);
  outline: none;
  animation: calPopIn 0.16s ease-out;
}

.cal-pop[data-side="right"] { transform-origin: left top; }
.cal-pop[data-side="left"]  { transform-origin: right top; }
.cal-pop[data-side="below"] { transform-origin: top center; }

@keyframes calPopIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.cal-pop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--site-surface-alt);
  color: var(--site-text-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cal-pop-close:hover {
  background: var(--site-border);
  color: var(--site-heading);
}

.cal-pop-close:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}

.cal-pop .event-card--pop {
  box-shadow: none;
  transform: none;
  padding-right: 52px;
}

.cal-pop .event-card--pop:hover {
  box-shadow: none;
  transform: none;
}

.cal-pop-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 20px 56px 12px 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--site-heading);
}

.cal-pop-list {
  padding: 0 12px 16px;
}

.cal-pop-list .event-card--pop {
  padding-right: 20px;
  border: 1px solid var(--site-border-light);
}

.cal-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(var(--site-ink-rgb), 0.45);
  animation: fadeIn 0.15s ease-out;
}

.cal-pop--sheet {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: auto;
  max-width: none;
  max-height: 82vh;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  animation: calSheetIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cal-pop--sheet::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--site-border);
}

@keyframes calSheetIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

body.cal-pop-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .cal-pop,
  .cal-pop--sheet,
  .cal-pop-backdrop {
    animation: none;
  }
}

/* --- Legend --- */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--site-text-muted);
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--site-accent);
}

.cal-swatch--expo { background: var(--site-expo); }
.cal-swatch--weekly { background: var(--site-verified); }

/* --- Selected day panel --- */
.cal-day {
  margin-top: 28px;
}

.cal-day-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--site-heading);
}

.cal-day-title-count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--site-text-muted);
}

.cal-day-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--site-text-muted);
  background: var(--site-surface);
  border: 1px dashed var(--site-border);
  border-radius: var(--radius-card);
}

.cal-day-empty p {
  margin: 0;
}

/* --- Recurring events without a fixed weekday --- */
.cal-other {
  margin-top: 28px;
}

.cal-other-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.cal-other-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--site-text-muted);
}

.cal-other-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--site-text-muted);
}

/* One row per group, fixed height, divided not boxed */
.cal-other-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--site-border);
}

.cal-other-list li {
  border-bottom: 1px solid var(--site-border);
}

.cal-other-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.cal-other-list a:hover,
.cal-other-list a:focus-visible {
  background: var(--site-surface);
}

.cal-other-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cal-other-name,
.cal-other-meta,
.cal-other-when {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-other-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--site-heading);
}

.cal-other-meta {
  font-size: 12px;
  color: var(--site-text-muted);
}

.cal-other-when {
  flex: 0 1 auto;
  max-width: 45%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--site-text-muted);
  text-align: right;
}

.cal-other-go {
  flex: 0 0 auto;
  color: var(--site-accent);
  font-size: 14px;
}

@media (max-width: 560px) {
  .cal-other-list a { flex-wrap: wrap; row-gap: 2px; padding: 10px 4px; }
  .cal-other-text { flex-basis: calc(100% - 26px); }
  .cal-other-when { flex-basis: 100%; max-width: none; text-align: left; order: 3; }
  .cal-other-go { order: 2; }
}

/* --- Feed CTA (calendar view) --- */
.feed-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-left: 4px solid var(--site-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.feed-cta-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--site-heading);
}

.feed-cta-sub {
  margin: 0;
  font-size: 14px;
  color: var(--site-text-muted);
}

.feed-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--site-text);
  text-decoration: none;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.feed-btn:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
}

.feed-btn--google {
  color: #FFFFFF;
  background: var(--site-accent);
  border-color: var(--site-accent);
}

.feed-btn--google:hover {
  color: #FFFFFF;
  background: var(--site-accent-light);
}

/* --- Feed block inside the subscribe section (dark) --- */
.subscribe-feed {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--site-ink-hairline);
}

.subscribe-feed-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.subscribe-feed-sub {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--site-hero-muted);
}

.subscribe-feed .feed-btn {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.subscribe-feed .feed-btn:hover {
  border-color: var(--site-gold);
  color: var(--site-gold);
}

.subscribe-feed .feed-btn--google {
  color: var(--site-ink);
  background: var(--site-gold);
  border-color: var(--site-gold);
}

.subscribe-feed .feed-btn--google:hover {
  color: var(--site-ink);
  background: var(--site-gold-light);
}

.footer-feed {
  font-size: 13px;
  color: var(--site-footer-muted);
  margin-bottom: 6px;
}

.footer-feed a {
  color: var(--site-footer-text);
  text-decoration: none;
}

.footer-feed a:hover {
  color: var(--site-gold);
}

/* Provider advert card (footer): config promo.* */
.promo-ad {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 36px;
}

.promo-ad__card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--site-ink-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.promo-ad__card:hover,
.promo-ad__card:focus-visible {
  border-color: var(--site-gold);
  transform: translateY(-1px);
  color: #FFFFFF; /* beats the global a:hover, which is navy and vanishes on the navy card */
}

.promo-ad__card:hover .promo-ad__strap {
  color: var(--site-gold-light);
}

.promo-ad__logo {
  width: 200px;
  height: auto;
  display: block;
  color: #FFFFFF;
}

.promo-ad__logo-mask {
  display: block;
  width: 200px;
  height: 36px;
  background-color: #FFFFFF;
  -webkit-mask: url(../images/wingenious-logo.svg) left center / contain no-repeat;
          mask: url(../images/wingenious-logo.svg) left center / contain no-repeat;
}

.promo-ad__copy {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.promo-ad__strap {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.promo-ad__sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--site-footer-muted);
}

.promo-ad__btn {
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--site-cta);
  color: var(--site-on-cta);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .promo-ad__card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    padding: 18px 20px;
  }

  .promo-ad__logo {
    width: 180px;
  }
}

/* Subscribe form: honeypot (never shown) and filter-scope note */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.subscribe-scope {
  font-size: 13px;
  color: var(--site-text-muted);
  margin: 8px 0 0;
}

.subscribe-scope[hidden] {
  display: none;
}

.subscribe-error {
  font-size: 14px;
  color: var(--site-cta);
  margin: 8px 0 0;
}

/* --- Card additions --- */
.event-footer {
  gap: 12px;
  flex-wrap: wrap;
}

.event-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-weight: 600;
  color: var(--site-text-muted);
}

.event-link-secondary:hover {
  color: var(--site-accent);
}

.event-link-icon {
  display: inline-flex;
}

.event-card--highlight {
  box-shadow: var(--shadow-card-hover);
  animation: cardPulse 1.6s ease-out 1;
}

@keyframes cardPulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--site-accent-rgb), 0.45), var(--shadow-card-hover); }
  100% { box-shadow: 0 0 0 14px rgba(var(--site-accent-rgb), 0), var(--shadow-card-hover); }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .view-toggle {
    order: 3;
    margin-left: auto;
  }

  .results-count {
    margin-left: 0;
  }

  .events-section {
    padding: 20px 0 64px;
  }

  .cal-cell {
    min-height: 56px;
    padding: 6px 2px;
    align-items: center;
  }

  .cal-nav,
  .cal-today {
    min-height: 40px;
  }

  /* Touch targets: 44px minimum on the controls used most */
  .month-pill,
  .filter-dd-btn.filters-open {
    min-height: 40px;
  }

  .view-toggle {
    padding: 2px;
  }

  .view-toggle-btn {
    min-height: 34px;
    padding: 4px 10px;
  }

  .event-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: -10px;
    margin-bottom: -10px;
  }

  .cal-chips {
    display: none;
  }

  .cal-dots {
    display: flex;
  }

  .cal-day-num {
    width: 28px;
    height: 28px;
  }

  .cal-title {
    font-size: 18px;
  }

  .feed-cta {
    padding: 18px 16px;
  }

  .feed-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card--highlight {
    animation: none;
  }
}

/* --- Contact page --- */
.contact-inner {
  max-width: 760px;
}

.contact-inner .eyebrow {
  color: var(--site-accent);
  margin-bottom: 12px;
}

.contact-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--site-text-muted);
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form[hidden],
.contact-done[hidden],
.contact-event[hidden],
.contact-error[hidden] {
  display: none;
}


.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-text-muted);
  margin-bottom: 10px;
}

.contact-optional {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--site-text-muted);
  opacity: 0.8;
}

.contact-select-wrap {
  position: relative;
}

.contact-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--site-text-muted);
  border-bottom: 2px solid var(--site-text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  font-weight: 500;
  color: var(--site-heading);
}

.contact-type-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--site-text-muted);
}

.contact-type-desc:empty {
  display: none;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  min-width: 0;
}

.contact-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--site-text);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-input);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-input:focus {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-glow);
}

.contact-input::placeholder {
  color: var(--site-text-muted);
  opacity: 0.7;
}

.contact-textarea {
  height: auto;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 150px;
}

.contact-event {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--site-surface-alt);
  border-radius: 8px;
}

.contact-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--site-text-muted);
  margin: 0;
}

.contact-hint:empty {
  display: none;
}

.contact-error {
  font-size: 14px;
  color: var(--site-cta);
  margin: 0;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-privacy {
  font-size: 13px;
  color: var(--site-text-muted);
}

.contact-privacy a {
  color: var(--site-accent);
}

.contact-done {
  padding: 24px 0;
}

.contact-done .confirmation-message {
  color: var(--site-accent);
}

.contact-done-note {
  font-size: 15px;
  color: var(--site-text-muted);
}

@media (max-width: 767px) {
  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-lead {
    font-size: 16px;
  }
}

/* --- Subscriber preferences page (subscriber.php) --- */
.prefs-notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid var(--site-border);
  background: var(--site-surface-alt);
  color: var(--site-text);
}
.prefs-notice--ok {
  border-color: rgba(var(--site-accent-rgb), 0.35);
  background: rgba(var(--site-confirmed-rgb), 0.10);
  color: var(--site-accent);
}
.prefs-notice--warn {
  border-color: rgba(var(--site-gold-rgb), 0.3);
  background: rgba(var(--site-likely-rgb), 0.10);
  color: var(--site-likely);
}
.prefs-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.prefs-group .contact-label {
  margin-bottom: 12px;
}
.prefs-group .contact-hint {
  margin-top: 10px;
}
.prefs-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prefs-options--stack {
  flex-direction: column;
  max-width: 440px;
}
.prefs-option {
  position: relative;
  cursor: pointer;
}
.prefs-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.prefs-pill {
  display: block;
  padding: 10px 14px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--site-heading);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-input);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.prefs-pill:hover {
  border-color: var(--site-text-muted);
}
.prefs-detail {
  font-weight: 400;
  color: var(--site-text-muted);
  margin-left: 8px;
}
.prefs-option input:checked + .prefs-pill {
  border-color: var(--site-accent);
  background: rgba(var(--site-confirmed-rgb), 0.10);
  box-shadow: inset 0 0 0 1px var(--site-accent);
}
.prefs-option input:focus-visible + .prefs-pill {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}
.prefs-card {
  margin: 8px 0 28px;
  padding: 20px;
  background: var(--site-surface-alt);
  border-radius: 8px;
}
.prefs-card-title {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--site-heading);
}
.prefs-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--site-accent);
}
.prefs-unsub {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--site-border);
}
.prefs-unsub-text {
  margin: 0;
  font-size: 14px;
  color: var(--site-text-muted);
}
.prefs-unsub-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--site-cta);
  text-decoration: underline;
  cursor: pointer;
}
.prefs-unsub-btn:hover {
  color: var(--site-likely);
}
.prefs-page .contact-lead strong {
  color: var(--site-heading);
}
.prefs-page .contact-actions form {
  margin: 0;
}

/* --- Contact organiser dialog (opened from an event card) --- */
.event-link-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: var(--font-sans);
  background: none;
  border: none;
  cursor: pointer;
}

.org-contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(var(--site-ink-rgb), 0.45);
  animation: fadeIn 0.15s ease-out;
}

.org-contact {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--site-surface);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(var(--site-ink-rgb), 0.3);
  outline: none;
  overflow: hidden;
}

body.org-contact-open {
  overflow: hidden;
}

.org-contact-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--site-border-light);
}

.org-contact-head .cal-pop-close {
  position: static;
  flex-shrink: 0;
  margin-left: auto;
}

.org-contact-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-accent);
}

.org-contact-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--site-heading);
}

.org-contact-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--site-text-muted);
}

.org-contact-form,
.org-contact-done {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px 22px;
  overflow-y: auto;
}

.org-contact-form[hidden],
.org-contact-done[hidden],
.org-contact-error[hidden] {
  display: none;
}

.org-contact-textarea {
  min-height: 120px;
}

.org-contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.org-contact-privacy {
  flex: 1 1 200px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--site-text-muted);
}

.org-contact-privacy a {
  color: var(--site-accent);
}

.org-contact-done .confirmation-message {
  margin: 0;
  color: var(--site-accent);
}

.org-contact-done-note {
  margin: 0;
  font-size: 15px;
  color: var(--site-text-muted);
}

.org-contact-done .btn {
  align-self: flex-start;
}

@media (max-width: 767px) {
  .org-contact {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    transform: none;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    animation: calSheetIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .org-contact-head {
    padding: 16px 16px 12px;
  }

  .org-contact-form,
  .org-contact-done {
    padding: 16px 16px 24px;
  }

  .org-contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
