/* ==========================================================================
   HARBORLIGHT CHURCH — CORE STYLESHEET
   Design system: tokens, layout primitives, and shared components.
   Signature motif: the "horizon arc" — a gold-to-teal gradient arc used
   as hero backdrop, section divider, and footer mark throughout the site.
   ========================================================================== */

/* -------------------------------- Fonts -------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&display=swap');

/* ------------------------------ CSS Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  background: var(--bg, #FAF8F4);
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

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

/* ------------------------------ Design Tokens ---------------------------- */
:root {
  /* Brand palette */
  --ink: #12151C;            /* deep navy-charcoal */
  --ink-soft: #262B38;
  --paper: #FAF8F4;           /* warm paper */
  --paper-soft: #F1EDE4;
  --gold: #E5A736;            /* primary accent — dawn light */
  --gold-soft: #F4CE8C;
  --teal: #1C6B5A;             /* secondary accent — harbor water */
  --teal-soft: #3E9483;
  --slate: #5B6472;            /* neutral mid-tone */
  --slate-soft: #8A93A0;
  --coral: #D96C4E;            /* sparing tertiary — used only for alerts/highlights */

  /* Semantic (light mode default) */
  --bg: var(--paper);
  --bg-alt: var(--paper-soft);
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.6);
  --text: var(--ink);
  --text-muted: var(--slate);
  --border: rgba(18, 21, 28, 0.1);
  --accent: var(--gold);
  --accent-2: var(--teal);
  --focus-ring: #1C6B5A;
  --shadow-sm: 0 2px 8px rgba(18, 21, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 21, 28, 0.08);
  --shadow-lg: 0 24px 48px rgba(18, 21, 28, 0.14);
  --gradient-horizon: linear-gradient(90deg, var(--gold) 0%, #EFC066 35%, var(--teal-soft) 70%, var(--teal) 100%);
  --gradient-hero-light: radial-gradient(ellipse 90% 70% at 50% 115%, rgba(229, 167, 54, 0.35) 0%, rgba(229, 167, 54, 0) 60%),
                          linear-gradient(180deg, #171B26 0%, #1E2431 55%, #24304A 100%);

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);
  --step-5: clamp(3rem, 2.2rem + 3.6vw, 5rem);

  /* Layout */
  --container-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --nav-h: 80px;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg: #12151C;
  --bg-alt: #181C25;
  --surface: #1D222C;
  --surface-glass: rgba(29, 34, 44, 0.55);
  --text: #F3F1EC;
  --text-muted: #A7AEBB;
  --border: rgba(255, 255, 255, 0.1);
  --accent: var(--gold);
  --accent-2: var(--teal-soft);
  --focus-ring: var(--gold);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 56px rgba(0, 0, 0, 0.55);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

/* ------------------------------ Typography -------------------------------- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 700; font-family: var(--font-body); }
p { color: var(--text-muted); }
.lead { font-size: var(--step-1); color: var(--text-muted); max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
[data-theme="dark"] .eyebrow { color: var(--gold); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient-horizon);
  border-radius: 2px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* -------------------------------- Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container-w); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.text-center { margin-inline: auto; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.6rem; }
.gap-md { gap: 1.25rem; }
.gap-lg { gap: 2rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step--1);
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-horizon);
  color: #171308;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-secondary {
  background: var(--ink);
  color: #fff;
}
[data-theme="dark"] .btn-secondary { background: var(--surface); border-color: var(--border); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--accent-2);
  padding-inline: 0.5rem;
}
[data-theme="dark"] .btn-ghost { color: var(--gold); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: var(--step--1); }
.btn-block { width: 100%; }

/* -------------------------------- Navbar ----------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient-horizon);
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.35rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gradient-horizon);
  border-radius: 2px;
}

.nav-more { position: relative; }
.nav-more-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.25rem;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-more:hover .nav-more-panel,
.nav-more:focus-within .nav-more-panel,
.nav-more.is-open .nav-more-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-more-panel a { display: block; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); font-weight: 600; }
.nav-more-panel a:hover { background: var(--bg-alt); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 400;
  padding: 1.5rem 1.25rem 3rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a {
  display: block;
  padding: 0.95rem 0.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer .btn { margin-top: 1.5rem; }

/* -------------------------------- Hero -------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #F3F1EC;
  background: var(--gradient-hero-light);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}
.hero-arc {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 160%;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: var(--gradient-horizon);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 8vw, 6rem);
  width: 100%;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}
.chip-glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  color: #fff;
  min-width: 160px;
}
.chip-glass .chip-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; }
.chip-glass .chip-value { font-size: 1.15rem; font-weight: 700; margin-top: 0.15rem; }

/* Page (interior) hero — smaller, for non-home pages */
.page-hero {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 7rem) clamp(3rem, 6vw, 4.5rem);
  background: var(--gradient-hero-light);
  color: #fff;
  overflow: hidden;
}
.page-hero .hero-arc { bottom: -70%; opacity: 0.45; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,0.8); max-width: 60ch; }

/* -------------------------------- Arc Divider -------------------------------- */
.arc-divider {
  position: relative;
  height: 64px;
  background: var(--gradient-horizon);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  margin-bottom: -1px;
}
.arc-divider.flip { border-radius: 0 0 50% 50% / 0 0 100% 100%; margin-top: -1px; margin-bottom: 0; }
.arc-divider.small { height: 34px; }

/* -------------------------------- Cards -------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-horizon);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  color: #171308;
}
.card-icon svg { width: 26px; height: 26px; }

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
}

.card-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.card:hover .card-img img { transform: scale(1.05); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* -------------------------------- Forms --------------------------------------- */
.form-grid { display: grid; gap: 1.25rem; }
.form-row-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field .req { color: var(--coral); }
.field input, .field select, .field textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(28, 107, 90, 0.15);
  outline: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--coral);
}
.field-error {
  color: var(--coral);
  font-size: 0.82rem;
  display: none;
}
.field.has-error .field-error { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-row input { margin-top: 0.3rem; }

.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.form-status.is-success { display: block; background: rgba(28,107,90,0.12); color: var(--teal); }
[data-theme="dark"] .form-status.is-success { color: var(--teal-soft); }
.form-status.is-error { display: block; background: rgba(217,108,78,0.12); color: var(--coral); }

fieldset { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; }
legend { font-weight: 700; padding-inline: 0.5rem; }

/* -------------------------------- Footer --------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding-top: 0;
}
.site-footer .arc-divider { margin-bottom: 0; }
.footer-main { padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--gold); }

.social-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gradient-horizon); border-color: transparent; }
.social-row svg { width: 17px; height: 17px; }

.newsletter-mini { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-mini input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.newsletter-mini input::placeholder { color: rgba(255,255,255,0.5); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.25rem; }

/* -------------------------------- Back to top --------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-horizon);
  color: #171308;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 300;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* -------------------------------- Misc components ------------------------------ */
.divider { height: 1px; background: var(--border); border: none; }

.avatar { border-radius: 50%; object-fit: cover; }

.avatar-initials {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-horizon);
  color: #171308;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  flex-shrink: 0;
}
.avatar-tile {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--gradient-horizon);
  color: #171308;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem);
}
.avatar-tile.alt { background: linear-gradient(135deg, var(--teal) 0%, var(--ink) 100%); color: #F3F1EC; }
.avatar-tile.alt2 { background: linear-gradient(135deg, var(--gold-soft) 0%, var(--coral) 100%); color: #171308; }

.map-placeholder {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 30% 30%, rgba(229,167,54,0.25), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(28,107,90,0.35), transparent 55%),
    var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
}
.map-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,100,114,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,100,114,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-placeholder .card-icon { position: relative; margin-bottom: 0; }
.map-placeholder p { position: relative; max-width: 32ch; }

.badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding-inline: 0.3rem;
  background: var(--coral); color: #fff; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
}

.skeleton { background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%); background-size: 200% 100%; animation: skeleton-shine 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-shine { to { background-position: -200% 0; } }

.table-responsive { overflow-x: auto; }

/* -------------------------------- Carousel ------------------------------------- */
.carousel-viewport { position: relative; min-height: 1px; }
.carousel-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.carousel-arrow:hover { border-color: var(--accent-2); }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); border: none; padding: 0;
}
.carousel-dots button.active { background: var(--gradient-horizon); width: 22px; border-radius: 999px; }

/* -------------------------------- Filters / view toggle -------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-bar button {
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: 0.85rem; color: var(--text-muted);
}
.filter-bar button.active { background: var(--gradient-horizon); color: #171308; border-color: transparent; }

.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; }
.view-toggle button { padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }
.view-toggle button.active { background: var(--ink); color: #fff; }
[data-theme="dark"] .view-toggle button.active { background: var(--gradient-horizon); color: #171308; }

/* -------------------------------- Calendar --------------------------------------- */
.calendar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-alt); }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays { margin-bottom: 0.5rem; text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 0.9rem; position: relative; }
.cal-day.is-today { background: var(--bg-alt); font-weight: 700; }
.cal-day.has-event::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* -------------------------------- Countdown --------------------------------------- */
.countdown { display: flex; gap: 0.9rem; }
.countdown-unit { text-align: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm); padding: 0.75rem 1rem; min-width: 68px; }
.countdown-unit strong { display: block; font-size: 1.6rem; font-family: var(--font-display); }
.countdown-unit span.cd-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.countdown.on-surface .countdown-unit { background: var(--bg-alt); border-color: var(--border); color: var(--text); }
