/* FireCMS2 — public design system */
:root[data-theme="light"],
.theme-light {
  --surface-0: #f4f6f9;
  --surface-1: #ffffff;
  --surface-2: #eef1f6;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #c81e1e;
  --accent-hover: #a01818;
  --accent-soft: rgba(200, 30, 30, 0.08);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --header-bg: rgba(255, 255, 255, 0.82);
  --hero-gradient: linear-gradient(135deg, #1e293b 0%, #334155 45%, #450a0a 100%);
  --focus-ring: 0 0 0 3px rgba(200, 30, 30, 0.35);
}

:root[data-theme="dark"],
.theme-dark {
  --surface-0: #0c0f14;
  --surface-1: #151a22;
  --surface-2: #1c2330;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #f87171;
  --accent-hover: #fca5a5;
  --accent-soft: rgba(248, 113, 113, 0.12);
  --border: rgba(241, 245, 249, 0.08);
  --border-strong: rgba(241, 245, 249, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(21, 26, 34, 0.88);
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #450a0a 100%);
  --focus-ring: 0 0 0 3px rgba(248, 113, 113, 0.4);
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --space: clamp(1rem, 4vw, 2rem);
  --content-max: 72rem;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--surface-0);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space);
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__bar {
  box-shadow: var(--shadow-sm);
}

.site-header--has-banner {
  position: relative;
  border-bottom: none;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: 150px;
}
.site-header__banner-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.site-header__banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.site-header__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.78), rgba(15,23,42,0.60));
}
.site-header--has-banner .site-header__inner {
  padding-top: 0;
  padding-bottom: 0;
  height: 100%;
  position: relative;
  z-index: 2;
}
.site-header--has-banner::before,
.site-header--has-banner::after {
  display: none;
}
.site-header--has-banner .site-header__bar {
  background: transparent;
  border-bottom: 1px solid rgba(15,23,42,0.55);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.site-header--has-banner .site-header__title,
.site-header--has-banner .site-header__mission,
.site-header--has-banner .logo,
.site-header--has-banner .main-nav__link,
.site-header--has-banner .site-header__inner {
  color: #f9fafb;
}
.site-header--has-banner .main-nav__link.is-active {
  background: rgba(15,23,42,0.35);
}
.site-header--has-banner .main-nav__link:hover {
  background: rgba(15,23,42,0.3);
}

.site-header--has-banner .main-nav {
  background: transparent;
  border-top-color: rgba(249, 250, 251, 0.35);
}

.site-header--has-banner .main-nav__inner {
  background: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1rem var(--space);
}

.site-header__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo {
  display: inline-block;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}
.logo:hover {
  color: var(--accent);
}

.tagline {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 28ch;
}

.site-header__logo-link {
  display: block;
  flex-shrink: 0;
}
.site-header__logo-image {
  display: block;
  width: auto;
  height: 56px;
  max-height: 64px;
  object-fit: contain;
}

.site-header--has-banner .site-header__logo-image--toolbar {
  height: auto;
  max-height: 92px;
}

.site-header__brand--toolbar .site-header__title--toolbar {
  font-size: 1.05rem;
  line-height: 1.1;
}

.site-header__text--toolbar .site-header__mission--toolbar {
  font-size: 0.85rem;
}

.site-header__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.site-header__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-header__mission {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, transform 0.15s;
}
.theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border);
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.theme-toggle__icon {
  grid-area: 1 / 1;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.85;
}
:root[data-theme="light"] .theme-toggle__icon--moon,
.theme-light .theme-toggle__icon--moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle__icon--sun,
.theme-dark .theme-toggle__icon--sun {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  border-top: 1px solid var(--border);
  background: var(--surface-1);
}

.main-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.65rem var(--space) 0.85rem;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s;
}
.main-nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
}
.main-nav__link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.main-nav__link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.main-nav__cta {
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    inset: 0 0 0 0;
    top: 0;
    padding-top: 5.5rem;
    border-top: none;
    background: var(--surface-1);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s;
    z-index: 999;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .site-header--has-banner .main-nav {
    background: rgba(15, 23, 42, 0.92);
    border-top-color: rgba(249, 250, 251, 0.35);
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .main-nav__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--space) 2rem;
    gap: 0.35rem;
  }
  .main-nav__link {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }
  .main-nav__cta {
  }
  .site-header {
    z-index: 1001;
  }
}

/* ——— Main menu: left sidebar layout ——— */
body.nav-layout-left {
  display: flex;
  flex-direction: column;
}

.nav-layout-left .public-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.nav-layout-left .site-sidebar {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 14%, var(--surface-1)), var(--surface-1) 22%, var(--surface-0));
  border-bottom: 1px solid var(--border);
}

.nav-layout-left .site-sidebar__logo {
  display: block;
  margin-bottom: 0.25rem;
}

.nav-layout-left .site-sidebar__tagline {
  margin-bottom: 0.75rem;
}

.site-sidebar__logo-image-link {
  display: block;
  margin-bottom: 0.75rem;
}
.site-sidebar__logo-image {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.nav-layout-left .main-nav--sidebar {
  border: none;
  background: transparent;
}

.nav-layout-left .main-nav--sidebar .main-nav__inner {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0.2rem;
}

.nav-layout-left .main-nav--sidebar .main-nav__link {
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.nav-layout-left .main-nav--sidebar .main-nav__cta {
  margin-left: 0;
  margin-top: 0.65rem;
  justify-content: center;
}

.nav-layout-left .site-sidebar__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.1rem 1.35rem;
  gap: 0.75rem;
}

.nav-layout-left .site-sidebar__theme {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.site-sidebar__heading {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-layout-left .site-header--left-toolbar {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-layout-left .site-header--left-toolbar .site-header__inner {
  max-width: none;
  margin: 0;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-layout-left .site-header__toolbar-logo {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-layout-left .theme-toggle--toolbar {
  flex-shrink: 0;
}

.sidebar-backdrop {
  display: none;
}

@media (min-width: 769px) {
  .nav-layout-left .public-shell {
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100vh - 0px);
  }

  .nav-layout-left .site-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: min(17.5rem, 32vw);
    flex-shrink: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    border-bottom: none;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 20;
    transform: none !important;
    visibility: visible !important;
  }

  .nav-layout-left .site-sidebar.is-open {
    transform: none !important;
  }

  .nav-layout-left .public-shell__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .nav-layout-left .site-header--left-toolbar {
    display: none;
  }

  /* If a header banner is enabled, don't hide the left toolbar header */
  .nav-layout-left .site-header--left-toolbar.site-header--has-banner {
    display: block;
  }

  .nav-layout-left .sidebar-backdrop {
    display: none !important;
  }

  .nav-layout-left .site-sidebar__theme {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-layout-left .public-shell {
    min-height: 100vh;
  }

  .nav-layout-left .site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(18rem, 88vw);
    max-height: none;
    height: 100%;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    visibility: visible;
    box-shadow: var(--shadow-lg);
    border-right: 1px solid var(--border);
  }

  .nav-layout-left .site-sidebar.is-open {
    transform: translateX(0);
  }

  .nav-layout-left .public-shell__main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
  }

  .nav-layout-left .site-header--left-toolbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  :root[data-theme="dark"] .sidebar-backdrop {
    background: rgba(0, 0, 0, 0.55);
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .nav-layout-left .site-sidebar__theme {
    display: none;
  }
}

.nav-layout-left .site-main {
  flex: 1;
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  min-height: 55vh;
  padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(3rem, 8vw, 5rem);
}

.site-main__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Page title */
.page-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.page-lead {
  margin: -0.5rem 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 50ch;
}

/* Home hero */
.home-hero {
  position: relative;
  margin: calc(-1 * clamp(1.5rem, 5vw, 3rem)) calc(-1 * var(--space)) 2.5rem;
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--space);
  background: var(--hero-gradient);
  color: #f8fafc;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(248, 113, 113, 0.15), transparent 50%);
  pointer-events: none;
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}
.home-hero__label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.home-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}
.home-hero__tagline {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.88;
  line-height: 1.5;
}

/* Cards */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  transition: box-shadow 0.25s var(--ease), border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card--prose {
  margin-bottom: 2rem;
}

/* Prose / page body */
.page-body,
.news-single .body {
  font-size: 1.0625rem;
  line-height: 1.75;
}
.page-body h1,
.news-single h1 {
  margin-top: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-body h2,
.news-single .body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.page-body h3,
.news-single .body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.page-body p,
.news-single .body p {
  margin: 0 0 1rem;
}
.page-body a,
.news-single .body a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}
.page-body a:hover,
.news-single .body a:hover {
  color: var(--accent-hover);
}
.page-body ul,
.page-body ol,
.news-single .body ul,
.news-single .body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.page-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

/* Section */
.section {
  margin-top: 2.5rem;
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.section__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* News grid */
.news-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.news-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
}
.news-card__link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--accent);
}
.news-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.news-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}
.news-card__link:hover .news-card__title {
  color: var(--accent);
}

.news-list--simple {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-list--simple li {
  border-bottom: 1px solid var(--border);
}
.news-list--simple li:last-child {
  border-bottom: none;
}
.news-list--simple a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.news-list--simple a:hover {
  color: var(--accent);
}
.news-list--simple .meta {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* News single */
.news-single {
  max-width: 48rem;
}
.news-single .meta {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 999px;
}
.news-single .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Calendar */
.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.calendar-toolbar__month {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.calendar-toolbar__nav {
  display: flex;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.15s;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--surface-0);
  border-color: var(--border-strong);
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  align-items: start;
}
.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.event-card__date span:first-child {
  font-size: 1.35rem;
}
.event-card__date span:last-child {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.event-card__body strong {
  display: inline;
  font-size: 1.05rem;
  margin-right: 0.35rem;
}
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm, 4px);
  vertical-align: middle;
}
.badge--members {
  background: color-mix(in srgb, var(--accent, #c41e3a) 18%, transparent);
  color: var(--accent, #c41e3a);
  border: 1px solid color-mix(in srgb, var(--accent, #c41e3a) 35%, transparent);
}
.event-card__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.event-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Month grid calendar */
.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.calendar-grid th,
.calendar-grid td {
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
}
.calendar-grid th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-muted);
}
.calendar-grid__day {
  min-width: 2.2rem;
  min-height: 2.2rem;
}
.calendar-grid__day--muted {
  color: var(--text-muted);
  opacity: 0.5;
}
.calendar-grid__day--has-events {
  position: relative;
  font-weight: 700;
  color: var(--accent);
}
.calendar-grid__day--has-events::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.3rem;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 999px;
  background: var(--accent);
}

/* Galleries */
.gallery-index {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links page */
.links-group {
  margin-bottom: 1.25rem;
}
.links-group__title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}
.links-group__description {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 2.5rem;
}
.links-list__item {
  break-inside: avoid;
  margin: 0.1rem 0;
}
.links-list__item a {
  color: var(--accent);
  text-decoration: none;
}
.links-list__item a:hover,
.links-list__item a:focus-visible {
  text-decoration: underline;
}
@media (min-width: 900px) {
  .links-list {
    columns: 2;
  }
}
.gallery-tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-tile a {
  display: block;
  padding: 1.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-1);
  min-height: 6rem;
  align-content: center;
}
.gallery-tile a:hover {
  color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.gallery-grid figure:hover {
  box-shadow: var(--shadow-md);
}
.gallery-grid a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.gallery-grid figure:hover img {
  transform: scale(1.04);
}
.gallery-grid figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.video-embed {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.video-embed h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.video-embed iframe {
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius-sm);
}

/* Forms */
.form-card {
  max-width: 32rem;
  margin-top: 0.5rem;
}
.custom-form .field {
  margin-bottom: 1.25rem;
}
.custom-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.custom-form input,
.custom-form textarea,
.custom-form select {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.custom-form button[type="submit"],
.form-stack button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
}
.custom-form button[type="submit"]:hover,
.form-stack button[type="submit"]:hover {
  background: var(--accent-hover);
}
.custom-form button[type="submit"]:focus-visible,
.form-stack button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.form-stack label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.form-stack input[type="email"],
.form-stack input[type="text"] {
  width: 100%;
  max-width: 24rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

/* Alerts */
.err {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
  font-weight: 600;
}
.theme-dark .err {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}
.ok {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  font-weight: 600;
}
.theme-dark .ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
}

/* Empty / message */
.empty-state,
.message-block {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
}
.empty-state a:not(.btn),
.message-block a {
  color: var(--accent);
  font-weight: 600;
}
.empty-state .btn {
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space);
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  align-items: start;
}
.site-footer__name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.site-footer__copy {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 36ch;
}
.site-footer__contact p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.site-footer__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.site-footer__contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.site-footer__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-body img,
.news-single .body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
