:root {
  --rose: #8f2043;
  --rose-dark: #6f1632;
  --rose-soft: #f2e8ec;
  --rose-tint: #fbf4f7;
  --ink: #242027;
  --muted: #665d68;
  --line: #e5dde2;
  --bg: #faf8f9;
}

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

body.site-body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--rose-dark);
}

a:hover {
  color: var(--rose);
}

.text-rose {
  color: var(--rose) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header .nav-link {
  color: var(--ink);
  font-weight: 600;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--rose);
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-spinner {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid rgba(143, 32, 67, 0.26);
  outline-offset: 2px;
}

.btn-sm {
  padding: 0.45rem 0.78rem;
  font-size: 0.88rem;
}

.btn-utility {
  border-radius: 10px;
}

.btn-primary {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}

.btn-ghost,
.btn-outline-primary {
  background: #fff;
  color: var(--rose-dark);
  border-color: #c7afba;
}

.btn-ghost:hover,
.btn-outline-primary:hover {
  background: var(--rose-soft);
  color: var(--rose-dark);
  border-color: #b899a8;
}

.hero,
.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 3rem 1rem;
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero .lede {
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.section.alt-section,
.about-section,
.events-section,
.articles-section,
.faqs-gallery,
.credits-page {
  background: var(--rose-tint);
  border-radius: 0.65rem;
  border: 1px solid #efe4e9;
  padding: 1.35rem;
}

.section + .section {
  margin-top: 1rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #eadde3;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.muted,
.text-muted {
  color: var(--muted) !important;
}

.social-grid,
.event-grid,
.articles-grid {
  display: grid;
  gap: 1.45rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.social-card,
.event-card,
.article-card,
.poll-card,
.credits-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 1px 0 rgba(36, 32, 39, 0.04);
}

.card-body {
  padding: 1rem 1.1rem;
}

.article-card,
.event-card,
.social-card,
.poll-card {
  padding: 1.05rem 1.15rem;
}

.article-card h3,
.event-card h3,
.social-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #efe5e9;
}

.article-card p,
.event-card p,
.social-card p,
.poll-card p {
  margin-bottom: 0.65rem;
}

.poll-description p {
  margin: 0 0 0.75rem;
}

.poll-description ul,
.poll-description ol {
  margin: 0.65rem 0 1rem 1.2rem;
  padding-left: 1rem;
}

.poll-description ul {
  list-style: disc;
}

.poll-description ul ul {
  list-style: circle;
}

.poll-description ul ul ul {
  list-style: square;
}

.poll-description ol {
  list-style: decimal;
}

.poll-description ol ol {
  list-style: lower-alpha;
}

.poll-description ol ol ol {
  list-style: lower-roman;
}

.poll-description li {
  margin: 0.22rem 0;
}

.poll-card-linkable {
  position: relative;
}

.poll-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.poll-card-link-action {
  position: relative;
  z-index: 3;
}

.meta {
  color: #6f6571;
  font-size: 0.92rem;
}

.event-date-badge,
.pill,
.badge-ok,
.badge-muted {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border:1px var(--rose-dark) dashed;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 5px;

  color: var(--rose-dark);
}

.flash,
.notice,
.alert {
  border-radius: 0.4rem;
}

.flash-ok,
.notice-ok,
.alert-success {
  background: #e7f5ea;
  color: #1f5b2d;
}

.flash-error,
.notice-error,
.alert-danger {
  background: #fce9ea;
  color: #84253e;
}

form label {
  font-weight: 600;
}

form .form-control,
form .form-select,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="password"],
form textarea,
form select {
  border-radius: 0.4rem;
  border: 1px solid #cebcc5;
  width: 100%;
  padding: 0.55rem 0.66rem;
  background: #fff;
  color: var(--ink);
}

form .form-control:focus,
form .form-select:focus,
form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 0.2rem rgba(143, 32, 67, 0.15);
  outline: none;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.34rem;
  font-weight: 700;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--rose);
}

.poll-option-box {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
}

.poll-options {
  display: grid;
  gap: 0.6rem;
}

.poll-form {
  display: grid;
  gap: 0.75rem;
}

.poll-option {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
}

.poll-card-closed {
  background: #faf4f6;
  border-color: #e7d7de;
}

.poll-panel-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.poll-panel-switch .btn.is-active {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

.poll-panel {
  display: none;
}

.poll-panel.is-active {
  display: block;
}

.polls-masonry {
  column-gap: 1rem;
  column-count: 1;
}

.polls-masonry-item {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
}

@media (min-width: 900px) {
  .polls-masonry {
    column-count: 2;
  }
}

@media (min-width: 1240px) {
  .polls-masonry {
    column-count: 3;
  }
}

.poll-progress {
  height: 0.55rem;
  border-radius: 999px;
  background: #ede5ea;
  overflow: hidden;
}

.poll-progress span {
  display: block;
  height: 100%;
  background: var(--rose);
}

.credits-page .card {
  border: 0;
  background: transparent;
}

footer {
  margin-top: 3rem;
  background: #1f1a22;
  color: #efe9ed;
  padding: 2rem 0;
}

footer a {
  color: #f3c8d7;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner,
.toast {
  box-shadow: none;
  border: 2px solid var(--line);
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .site-header .navbar-brand span.fw-bold {
    font-size: 1rem;
  }
}

/* Bulma migration: navbar + utility bridge for legacy Bootstrap-style classes in templates. */
.container-xl {
  width: min(1120px, 100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

.site-header .navbar {
  background: #fff;
  box-shadow: none;
}

.site-header .navbar .container-xl {
  display: flex;
  align-items: center;
  width: 100%;
}

.site-header .navbar-brand {
  align-items: center;
}

.site-header .brand-link {
  padding-left: 0;
}

.bg-white { background: #fff !important; }
.bg-light { background: #f8f9fa !important; }
.bg-primary { background: var(--rose) !important; }
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--rose) !important; }
.text-center { text-align: center !important; }
.border-0 { border: 0 !important; }
.border-bottom { border-bottom: 1px solid var(--line) !important; }
.shadow-sm { box-shadow: 0 8px 22px rgba(36, 32, 39, 0.08) !important; }
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }
.small { font-size: 0.875rem !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }

.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex: 1 1 auto !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.g-3 { gap: 0.75rem !important; }
.g-4 { gap: 1rem !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.vstack {
  display: flex !important;
  flex-direction: column !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.row > [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1024px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}

.progress {
  width: 100%;
  background: #ece5ea;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--rose);
}

.list-group {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.list-group-flush {
  border-radius: 0;
}

.list-group-item {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem;
}

.list-group-item:last-child {
  border-bottom: 0;
}

.alert {
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
}

.alert-danger {
  background: #fce9ea;
  color: #84253e;
}

.alert-success {
  background: #e7f5ea;
  color: #1f5b2d;
}

.alert-info {
  background: #edf5ff;
  color: #1f4f89;
}

@media (min-width: 768px) {
  .d-md-inline { display: inline !important; }
}

@media (min-width: 1024px) {
  .d-lg-none { display: none !important; }
  .d-lg-flex { display: flex !important; }
  .align-items-lg-center { align-items: center !important; }
  .justify-content-lg-between { justify-content: space-between !important; }
}

/* Main-layout parity: navbar collapse + desktop form optimization without Bootstrap JS. */
.site-header .navbar {
  padding: 0.75rem 0;
}

.site-header .navbar .container-xl {
  flex-wrap: wrap;
}

.site-header .navbar-brand {
  margin-right: auto;
}

.site-header .navbar-toggler {
  border: 1px solid #d6ccd2;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
}

.site-header .navbar-toggler-icon {
  width: 1.1rem;
  height: 1rem;
  display: block;
  background:
    linear-gradient(currentColor, currentColor) center 2px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center calc(100% - 2px) / 100% 2px no-repeat;
}

.site-header .navbar-collapse {
  width: 100%;
}

.site-header .navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-item {
  margin: 0;
}

@media (max-width: 991px) {
  .site-header .navbar-collapse {
    display: none;
    padding-top: 0.65rem;
  }

  .site-header .navbar-collapse.show {
    display: block;
  }

  .site-header .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-header .navbar-nav .nav-link {
    padding: 0.55rem 0.2rem;
  }
}

@media (min-width: 992px) {
  .site-header .navbar-toggler {
    display: none;
  }

  .site-header .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }

  .site-header .navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
  }

  .site-header .navbar-nav .nav-link {
    padding: 0.35rem 0.45rem;
  }

  form .form-control,
  form .form-select,
  form textarea,
  form select {
    padding: 0.62rem 0.74rem;
  }

  #membership .card,
  #email-request.card {
    border-radius: 0.7rem;
  }

  .row.justify-content-center .col-lg-8 {
    max-width: 860px;
  }
}

/* Final nav padding fix: target actual markup nav.navbar.container-xl */
.site-header .navbar.container-xl {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: min(1120px, 100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.site-header .navbar-brand {
  padding: 0;
  margin-right: auto;
}

.site-header .navbar-brand .nav-link,
.site-header .navbar-brand a {
  padding: 0;
}

.site-header .navbar-collapse {
  padding-top: 0.15rem;
}

@media (max-width: 991px) {
  .site-header .navbar-collapse.show {
    padding-top: 0.65rem;
    padding-bottom: 0.4rem;
  }

  .site-header .navbar-nav .nav-link {
    padding: 0.52rem 0.15rem;
  }
}

@media (min-width: 992px) {
  .site-header .navbar-collapse {
    padding-top: 0;
  }

  .site-header .navbar-nav {
    gap: 0.25rem;
  }

  .site-header .navbar-nav .nav-link {
    padding: 0.34rem 0.5rem;
  }
}
