/* ==========================================================================
   ClubCMS - Base Stylesheet
   Shared reset, utilities, grid, typography scale, and button base styles.
   Loaded by ALL themes before theme-specific main.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Custom Properties (WCAG-safe defaults)
   -------------------------------------------------------------------------- */
:root {
  --color-border: rgba(0, 0, 0, 0.35);
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Status / feedback palette */
  --color-success-bg: #ecfdf5;
  --color-success-border: #a7f3d0;
  --color-success: #065f46;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fde68a;
  --color-warning: #92400e;
  --color-error-bg: #fef2f2;
  --color-error-border: #fecaca;
  --color-error: #991b1b;
  --color-info-bg: #eff6ff;
  --color-info-border: #bfdbfe;
  --color-info: #1e40af;
}

/* --------------------------------------------------------------------------
   1. CSS Reset (Modern Minimal)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --------------------------------------------------------------------------
   2. Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary, #111);
  color: var(--color-surface, #fff);
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* GitHub "Fork me" ribbon — diagonal corner (top-right) */
.github-ribbon {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  width: 150px;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
}
.github-ribbon span {
  pointer-events: auto;
  position: absolute;
  display: block;
  width: 225px;
  padding: 6px 0;
  background: #24292f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  top: 42px;
  right: -48px;
  transform: rotate(45deg);
}
.github-ribbon:hover span,
.github-ribbon:focus span {
  background: #444d56;
  color: #fff;
}
@media (max-width: 767px) {
  .github-ribbon { display: none; }
}

/* PWA install banner (structural — dark bg for visibility) */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  background: #1a1a2e;
  color: #f0f0f0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  font-size: .95rem;
  line-height: 1.4;
}
.pwa-install-banner[hidden],
.pwa-install-btn[hidden] {
  display: none !important;
}
.pwa-install-msg { flex: 1; }
.pwa-install-btn {
  white-space: nowrap;
  padding: .55rem 1.2rem;
  border-radius: 6px;
  border: 2px solid #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  background: #fff;
  color: #1a1a2e;
  transition: background .15s, color .15s;
}
.pwa-install-btn:hover,
.pwa-install-btn:focus-visible {
  background: transparent;
  color: #fff;
}
.pwa-install-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  padding: .5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-install-dismiss:hover,
.pwa-install-dismiss:active { color: #fff; }

/* Push subscription status */
.push-status {
  font-size: .9rem;
  padding: .35rem .75rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: .5rem;
}
.push-status--active {
  background: #d4edda;
  color: #155724;
}
.push-status--inactive {
  background: #f8d7da;
  color: #721c24;
}
.dark-mode .push-status--active { background: #1e3a2a; color: #a3d9b1; }
.dark-mode .push-status--inactive { background: #3a1e1e; color: #d9a3a3; }

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

:focus-visible {
  outline: 3px solid var(--color-focus-ring, var(--color-accent, #0066FF));
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 102, 255, 0.18);
}

/* --------------------------------------------------------------------------
   3. 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;
  }
}

/* --------------------------------------------------------------------------
   4. Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 720px;
}

.container--wide {
  max-width: 1400px;
}

/* --------------------------------------------------------------------------
   5. Grid Utilities
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--grid-gap, 2rem);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min, 280px), 1fr));
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   6. Flexbox Utilities
   -------------------------------------------------------------------------- */
.flex {
  display: flex;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--col {
  flex-direction: column;
}

.flex--center {
  justify-content: center;
  align-items: center;
}

.flex--between {
  justify-content: space-between;
  align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }

/* --------------------------------------------------------------------------
   7. Typography Scale
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-text-primary, #111);
}

h2, .h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-primary, #111);
}

h3, .h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-text-primary, #111);
}

h4, .h4 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text-primary, #111);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   8. Text Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-muted {
  color: var(--color-text-muted, #666);
}

.text-primary-color {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   9. Spacing Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

.py-1 { padding-block: 0.5rem; }
.py-2 { padding-block: 1rem; }
.py-3 { padding-block: 1.5rem; }
.py-4 { padding-block: 2rem; }
.py-6 { padding-block: 3rem; }
.py-8 { padding-block: 4rem; }
.py-12 { padding-block: 6rem; }
.py-16 { padding-block: 8rem; }

.px-2 { padding-inline: 1rem; }
.px-3 { padding-inline: 1.5rem; }
.px-4 { padding-inline: 2rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* --------------------------------------------------------------------------
   10. Button Base
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
}

.btn:focus-visible {
  outline: 3px solid var(--color-focus-ring, var(--color-accent, #0066FF));
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 102, 255, 0.18);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. Form Base (see section 18 for full form utilities)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints (media query reference)
   --bp-sm: 576px   (small phones landscape)
   --bp-md: 768px   (tablets)
   --bp-lg: 1024px  (small desktops)
   --bp-xl: 1200px  (large desktops)
   --bp-xxl: 1400px (wide screens)
   -------------------------------------------------------------------------- */

/* Mobile-first show/hide */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: initial;
  }
  .hide-desktop {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   13. Aspect Ratio Helpers
   -------------------------------------------------------------------------- */
.aspect-16-9 {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   14. Rich Text Defaults (Wagtail RichTextBlock output)
   -------------------------------------------------------------------------- */
.rich-text p {
  margin-bottom: 1em;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.rich-text ul {
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text li {
  margin-bottom: 0.25em;
}

.rich-text a {
  color: var(--color-accent, #0066FF);
  text-decoration: underline;
}

.rich-text a:hover {
  text-decoration: none;
}

.rich-text blockquote {
  border-left: 4px solid var(--color-secondary, #ccc);
  padding-left: 1rem;
  margin: 1em 0;
  font-style: italic;
  color: var(--color-text-muted, #666);
}

.rich-text img {
  border-radius: 4px;
  margin: 1em 0;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   15. Page Layout Defaults
   -------------------------------------------------------------------------- */
.page-content {
  min-height: 50vh;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--color-text-muted, #666);
  max-width: 600px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   16. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted, #666);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__link {
  color: var(--color-text-muted, #666);
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
  color: var(--color-primary, #333);
  text-decoration: underline;
}

.breadcrumbs__separator {
  margin: 0 0.4rem;
  opacity: 0.5;
  user-select: none;
}

.breadcrumbs__current {
  color: var(--color-text-primary, #222);
  font-weight: 600;
}

.dark-mode .breadcrumbs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Footer (structural)
   -------------------------------------------------------------------------- */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__list li {
  padding: 0.25rem 0;
}
.site-footer__address {
  font-style: normal;
}
.site-footer__address p {
  margin: 0 0 0.5rem;
}
.site-footer__label {
  font-weight: 600;
  display: block;
}
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.site-footer__social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.site-footer__social a i {
  line-height: 1;
}
.site-footer__icon {
  width: 1.1em;
  margin-right: 0.5rem;
  color: inherit;
  opacity: 0.7;
}
.site-footer__feeds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.site-footer__feeds a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.site-footer__feeds a:hover {
  opacity: 1;
}
.site-footer__about {
  margin-bottom: 0.5rem;
}
.site-footer__about p {
  margin: 0;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__bottom p {
  margin: 0;
}
.site-footer__github {
  margin-left: 1rem;
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
}
.site-footer__github:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   17. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .site-nav,
  .site-footer,
  .skip-link,
  .btn,
  .block-newsletter-signup,
  .block-map {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* --------------------------------------------------------------------------
   WCAG 2.2 — prefers-color-scheme
   Applies color-scheme hint when OS-level dark mode is active.
   Theme main.css files define the actual dark palette via .dark-mode.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   WCAG 2.2 — prefers-contrast: more
   Enhances borders, outlines, and focus rings for high contrast preference.
   -------------------------------------------------------------------------- */
@media (prefers-contrast: more) {
  :root {
    --border-width: 2px;
  }
  *:focus-visible {
    outline-width: 3px !important;
    outline-offset: 2px !important;
  }
  .btn {
    border-width: 2px;
    font-weight: 700;
  }
  .site-nav__links a {
    border-bottom: 2px solid transparent;
  }
  .site-nav__links a:hover,
  .site-nav__links a.active {
    border-bottom-color: currentColor;
  }
  .block-card {
    border: 2px solid currentColor;
  }
}

/* --------------------------------------------------------------------------
   WCAG 2.2 — Target Size (Level AAA: 44×44px)
   -------------------------------------------------------------------------- */
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-nav__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav__toggle {
  min-height: 44px;
  min-width: 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Hamburger → X animation when open */
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile Navigation Panel
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .site-nav .container {
    flex-wrap: wrap;
  }
  .site-nav__links {
    display: none;
    width: 100%;
    order: 3;
  }
  .site-nav__links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    animation: navSlideDown 0.25s ease-out;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .site-nav__links.open > a,
  .site-nav__links.open > .site-nav__dropdown,
  .site-nav__links.open > .site-nav__search,
  .site-nav__links.open > .site-nav__user,
  .site-nav__links.open > .site-nav__lang {
    width: 100%;
  }
  .site-nav__links.open > a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  }
  .site-nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  }
  .site-nav .site-nav__dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 1rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: 0;
  }
  .site-nav .site-nav__dropdown-menu a {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    opacity: 0.85;
  }
  .site-nav .site-nav__lang-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    min-width: 0;
  }
  .site-nav__user {
    margin-left: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    margin-top: 0.5rem;
  }
  .site-nav__user-menu {
    right: auto;
    left: 0;
  }
  .site-nav__cta {
    display: inline-flex;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }
  .site-nav__lang {
    margin-left: 0;
    padding-top: 0.5rem;
  }
  .site-nav__search {
    margin-top: 0.5rem;
    margin-left: 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Language Switcher  (structural only — visual overrides in each theme)
   -------------------------------------------------------------------------- */
.site-nav__lang {
  position: relative;
  margin-left: 0.75rem;
}
.site-nav__lang-toggle {
  background: none;
  border: 1px solid transparent;
  color: inherit;
  cursor: pointer;
  min-height: 36px;
  padding: 0.25rem 0.625rem;
  font: inherit;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
/* a11y — visible focus fallback (themes may override outline style) */
.site-nav__lang-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.site-nav__lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  min-width: 140px;
  z-index: 100;
  border-radius: 4px;
}
.site-nav__lang-menu.open {
  display: block;
}
.site-nav__lang-menu li { margin: 0; }
.site-nav__lang-menu .site-nav__lang-link {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0.5rem 1rem;
  text-align: left;
  text-decoration: none;
  font-size: 0.85rem;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
/* a11y — focus fallback */
.site-nav__lang-menu .site-nav__lang-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.site-nav__lang-menu .site-nav__lang-link.active {
  font-weight: 700;
}
.site-nav__lang-menu .site-nav__lang-link--unavailable {
  opacity: 0.45;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Navbar Compact Search
   -------------------------------------------------------------------------- */
.site-nav__search {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
}

.site-nav__search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0.45rem;
  border-radius: var(--radius-sm, 4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  transition: color 0.2s, background 0.2s;
}

.site-nav__search-toggle:hover,
.site-nav__search-toggle:focus-visible {
  color: var(--color-primary, #333);
  background: rgba(128, 128, 128, 0.08);
}

/* When open, hide the standalone toggle icon (form has its own submit) */
.site-nav__search.open .site-nav__search-toggle {
  display: none;
}

.site-nav__search-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__search-form[hidden] {
  display: none;
}

.site-nav__search-input {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--color-border, #ccc);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.85rem;
  width: 200px;
  max-width: 35vw;
  background: var(--color-surface, #fff);
  color: var(--color-text, #222);
  transition: border-color 0.2s, width 0.3s;
}

.site-nav__search-input:focus {
  outline: none;
  border-color: var(--color-primary, #333);
  width: 240px;
}

.site-nav__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #333);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 4px);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  min-height: 34px;
  min-width: 34px;
  transition: opacity 0.2s;
}

.site-nav__search-submit:hover {
  opacity: 0.85;
}

/* Dark mode */
.dark-mode .site-nav__search-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dark-mode .site-nav__search-input:focus {
  border-color: var(--color-primary, #60a5fa);
}

/* Mobile: full-width search when open */
@media (max-width: 767px) {
  .site-nav__search {
    margin-left: auto;
  }
  .site-nav__search.open {
    position: static;
  }
  .site-nav__search-form:not([hidden]) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    background: var(--color-surface, #fff);
    border-bottom: 1px solid var(--color-border, #ddd);
    z-index: 100;
  }
  .site-nav__search-input {
    flex: 1;
    width: auto;
    max-width: none;
  }
  .site-nav__search-input:focus {
    width: auto;
  }
}

/* Messages container */
.messages-container {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm, 4px);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.message--success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border); }
.message--error   { background: var(--color-error-bg);   color: var(--color-error);   border: 1px solid var(--color-error-border); }
.message--warning { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid var(--color-warning-border); }
.message--info    { background: var(--color-info-bg);    color: var(--color-info);    border: 1px solid var(--color-info-border); }

/* ==========================================================================
   Home — Structural shell only
   Theme files own the visual language.
   ========================================================================== */
.page-home__hero {
  position: relative;
}

.page-home__hero-media {
  position: absolute;
  inset: 0;
}

.page-home__hero .block-hero-banner__overlay {
  display: flex;
  align-items: center;
}

.page-home__hero-inner {
  width: 100%;
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(4rem, 10vh, 7rem);
}

.page-home__hero-panel {
  width: min(100%, 48rem);
}

.page-home__spotlight {
  position: relative;
}

.page-home__spotlight-container {
  position: relative;
}

.home-body__intro {
  margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.page-home__spotlight-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-home__spotlight-copy {
  min-width: 0;
}

.page-home__spotlight-copy-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.page-home__spotlight-copy-text {
  display: grid;
  gap: 1.25rem;
}

.page-home__spotlight-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home__spotlight-logo img {
  max-width: clamp(120px, 18vw, 260px);
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.page-home__spotlight-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.page-home__spotlight-copy-inner,
.page-home__spotlight-stats,
.page-home__spotlight-cta {
  position: relative;
}

.page-home__spotlight-copy-text > :first-child {
  margin-top: 0;
}

.page-home__spotlight-copy-text > :last-child {
  margin-bottom: 0;
}

.page-home__spotlight-copy-text h2,
.page-home__spotlight-copy-text h3 {
  margin: 0;
}

.page-home__spotlight-copy-text h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1;
}

.page-home__spotlight-copy-text p {
  margin: 0;
  max-width: 62ch;
}

.page-home__spotlight-copy-text p:first-of-type {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
  font-weight: 500;
  max-width: 54ch;
}

.page-home__spotlight-stats,
.page-home__spotlight-cta {
  min-width: 0;
}

.page-home__spotlight-stats,
.page-home__spotlight-cta {
  display: grid;
  gap: 1rem;
}

.page-home__spotlight-stats-title,
.page-home__spotlight-cta-title,
.page-home__spotlight-stat-value,
.page-home__spotlight-stat-label {
  margin: 0;
}

.page-home__spotlight-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.page-home__spotlight-stat {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.page-home__spotlight-stat-value {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.page-home__spotlight-stat-label {
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-home__spotlight-cta-inner {
  display: grid;
  gap: 1rem;
}

.page-home__spotlight-cta-text > :first-child {
  margin-top: 0;
}

.page-home__spotlight-cta-text > :last-child {
  margin-bottom: 0;
}

.page-home__spotlight-cta-button {
  justify-self: start;
}

.page-home__section,
.home-events,
.home-partners {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.page-home__section-inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.page-home__section-head,
.home-events__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.page-home__section-head--centered {
  justify-content: center;
}

.page-home__section-copy {
  display: grid;
  gap: 0.5rem;
}

.page-home__section-kicker,
.home-events__label,
.home-partners__label,
.page-home__section-title,
.home-events__title,
.home-partners__title,
.page-home__card-title,
.home-events__card-title,
.home-partners__placeholder-name,
.page-home__card-text,
.home-events__card-text,
.page-home__card-meta,
.home-events__card-date,
.home-partners__placeholder-cat {
  margin: 0;
}

.page-home__viewall,
.home-events__viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
}

.page-home__cards,
.home-events__grid,
.home-partners__grid {
  display: grid;
  gap: 1.5rem;
}

.home-events__grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-partners__grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.page-home__card,
.home-events__card,
.home-partners__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-home__card-media,
.home-events__card-image {
  overflow: hidden;
}

.page-home__card-media img,
.home-events__card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home__card-body {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.home-partners__card {
  text-decoration: none;
  overflow: hidden;
}

.home-partners__card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.25em;
  padding: 1rem;
  background: var(--color-surface-alt, #f5f5f5);
}

.home-partners__logo {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.home-partners__card-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5em;
  height: 3.5em;
  border-radius: 50%;
  background: var(--color-primary, #333);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.home-partners__card-info {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
}

.home-partners__card-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.home-partners__card-category {
  margin: 0;
  font-size: 0.72rem;
  color: var(--color-text-muted, #777);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-home__section-head--partners {
  display: flex;
  justify-content: center;
  text-align: center;
  position: relative;
}

.home-partners__viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .page-home__hero-inner {
    padding-top: 5rem;
    padding-bottom: 4.5rem;
  }

  .page-home__spotlight-copy-inner {
    grid-template-columns: 1fr;
  }

  .page-home__spotlight-logo {
    justify-content: center;
  }

  .page-home__spotlight-logo img {
    max-width: 160px;
  }

  .page-home__spotlight-bottom {
    grid-template-columns: 1fr;
  }

  .page-home__spotlight-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home__section-head,
  .home-events__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home__section-head--partners {
    flex-direction: column;
    align-items: center;
  }

  .home-partners__viewall {
    position: static;
    transform: none;
  }

  .home-partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .page-home__spotlight-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Events & News — Shared Structural Layout
   Uses only --color-* variables (defined by every theme).
   Theme files override borders, radii, shadows, transitions as needed.
   ========================================================================== */

/* --- Hero (events / news index pages) --- */
.page-events__hero,
.page-news-index__hero {
  background: var(--color-primary);
  padding: 5rem 0 3rem;
  text-align: center;
}

.page-events__hero-title,
.page-news-index__hero-title {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-events__hero-subtitle,
.page-news-index__hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Index Pages (listings) --- */
.page-events,
.page-news-index,
.page-about,
.page-gallery,
.page-board,
.page-privacy,
.page-transparency,
.page-press,
.page-contact,
.page-newsletter,
.page-partners,
.page-partner,
.page-membership-plans,
.page-verification,
.page-unsubscribe,
.page-federation,
.page-search,
.page-notification-history,
.page-notification-prefs,
.page-upload,
.page-my-uploads,
.page-moderation {
  padding: 4rem 0;
}

.page-events__header,
.page-news-index__header,
.page-about__header,
.page-gallery__header,
.page-board__header,
.page-privacy__header,
.page-transparency__header,
.page-press__header,
.page-contact__header,
.page-newsletter__header,
.page-partners__header,
.page-partner__header,
.page-membership-plans__header,
.page-verification__header,
.page-unsubscribe__header,
.page-federation__header,
.page-mutual-aid__header,
.page-search__header,
.page-notification-history__header,
.page-notification-prefs__header,
.page-upload__header,
.page-my-uploads__header,
.page-moderation__header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-events__title,
.page-news-index__title,
.page-about__title,
.page-gallery__title,
.page-board__title,
.page-privacy__title,
.page-transparency__title,
.page-press__title,
.page-contact__title,
.page-newsletter__title,
.page-partners__title,
.page-partner__title,
.page-membership-plans__title,
.page-verification__title,
.page-unsubscribe__title,
.page-federation__title,
.page-mutual-aid__title,
.page-search__title,
.page-notification-history__title,
.page-notification-prefs__title,
.page-upload__title,
.page-my-uploads__title,
.page-moderation__title {
  margin-bottom: 0.5rem;
}

.page-events__intro,
.page-news-index__intro,
.page-about__intro,
.page-gallery__intro,
.page-board__intro,
.page-transparency__intro,
.page-press__intro,
.page-contact__intro,
.page-newsletter__intro,
.page-partners__intro,
.page-partner__intro,
.page-membership-plans__intro,
.page-federation__intro,
.page-mutual-aid__intro {
  max-width: 700px;
  margin: 1rem auto 2.5rem;
  color: var(--color-text-muted);
}

/* Shared shell used by page headers across templates.
   Themes define typography, alignment, and accents. */
.page-shell__header {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.page-shell__title {
  margin: 0;
}

.page-shell__intro {
  margin: 0;
  max-width: 46rem;
}

.page-shell__intro > :first-child {
  margin-top: 0;
}

.page-shell__intro > :last-child {
  margin-bottom: 0;
}

/* These page families keep only structural defaults here.
   Theme files own alignment, typography, and color. */
.page-about__header,
.page-events__header,
.page-news-index__header,
.page-gallery__header {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  text-align: inherit;
}

.page-about__title,
.page-events__title,
.page-news-index__title,
.page-gallery__title {
  margin: 0;
}

.page-about__intro,
.page-events__intro,
.page-news-index__intro,
.page-gallery__intro {
  max-width: 46rem;
  margin: 0;
  color: inherit;
}

.page-about__layout {
  display: grid;
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .page-about__layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  }
}

.page-about__main,
.page-about__sidebar {
  min-width: 0;
}

.page-about__main {
  display: grid;
  gap: 2rem;
}

.page-about__prose > :is(h2, h3, h4, h5, h6, p, ul, ol, blockquote) {
  max-width: 42rem;
}

.page-about__prose > :is(ul, ol) {
  padding-left: 1.5rem;
}

.page-about__prose > :last-child {
  margin-bottom: 0;
}

.page-about__subpages-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Toggle (events only) */
.page-events__toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.page-events__toggle .btn {
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.page-events__toggle .btn[data-active] {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-secondary);
}

.page-events__toggle .btn:hover {
  color: var(--color-text-primary);
  transform: none;
}

/* Category filters */
.page-events__filters,
.page-news-index__filters,
.page-partners__filters {
  margin-bottom: 2rem;
}

.page-events__filter-list,
.page-news-index__filter-list,
.page-partners__filter-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-events__filter-link,
.page-news-index__filter-link,
.page-partners__filter-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 4px;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.page-events__filter-link:hover,
.page-events__filter-link[data-active],
.page-news-index__filter-link:hover,
.page-news-index__filter-link[data-active],
.page-partners__filter-link:hover,
.page-partners__filter-link[data-active] {
  color: #fff;
  border-color: var(--color-secondary);
  background: var(--color-secondary);
}

/* Search/filter form (federation events, etc.) */
.page-events__filter-group {
  flex: 1;
  min-width: 0;
}

.page-events__filter-group:last-child {
  flex: 0 0 auto;
}

/* Grid */
.page-events__grid,
.page-news-index__grid,
.page-partners__grid,
.page-federation__grid,
.page-gallery__albums {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .page-events__grid,
  .page-news-index__grid,
  .page-partners__grid,
  .page-federation__grid,
  .page-gallery__albums {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-events__grid,
  .page-news-index__grid,
  .page-partners__grid,
  .page-federation__grid,
  .page-gallery__albums {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Cards (shared between events, news & partners) --- */
.event-card,
.news-card,
.partner-card,
.federation-club-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-alt);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.event-card:hover,
.news-card:hover,
.partner-card:hover,
.federation-club-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.event-card__image,
.news-card__image {
  position: relative;
  overflow: hidden;
}

.event-card__image img,
.news-card__image img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card__image img,
.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.partner-card__visual {
  position: relative;
  overflow: hidden;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card__visual-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.partner-card__logo-img {
  max-width: 70%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.partner-card__initial {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  letter-spacing: -0.05em;
  line-height: 1;
}

/* Corner dots — comic-style rivets */
.partner-card__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  z-index: 2;
}
.partner-card__dot--tl { top: 8px; left: 8px; }
.partner-card__dot--tr { top: 8px; right: 8px; }
.partner-card__dot--bl { bottom: 8px; left: 8px; }
.partner-card__dot--br { bottom: 8px; right: 8px; }

/* Starburst badge for featured */
.partner-card__starburst {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-secondary, #f59e0b);
  color: var(--color-primary, #1a1a2e);
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 3;
  animation: partner-pulse 2s ease-in-out infinite;
}

@keyframes partner-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Category ribbon */
.partner-card__ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  z-index: 2;
}

.event-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  z-index: 1;
}

.event-card__badge[data-variant="open"] {
  background: var(--color-secondary);
  color: #fff;
}

.event-card__badge[data-variant="past"] {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.event-card__content,
.news-card__content,
.partner-card__content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.event-card__category,
.news-card__category,
.partner-card__category {
  display: inline-block;
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* Top meta row: category pill + date */
.event-card__top-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.event-card__category-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-secondary);
}

.event-card__top-meta .event-card__date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Card footer: location + CTA */
.event-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
}

.event-card__footer .event-card__location {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.event-card__cta {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-button-text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.event-card__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-card__cta--secondary {
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}

.event-card__cta--secondary:hover {
  background: var(--color-secondary);
  color: var(--color-button-text, #fff);
}

.event-card__title,
.news-card__title,
.partner-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.event-card__title a,
.news-card__title a,
.partner-card__title a {
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.event-card:hover .event-card__title a,
.news-card:hover .news-card__title a,
.partner-card:hover .partner-card__title a {
  color: var(--color-secondary);
}

.event-card__meta,
.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.event-card__date,
.event-card__location,
.news-card__date,
.news-card__author,
.news-card__reading-time {
  margin: 0;
}

.event-card__excerpt,
.news-card__excerpt,
.partner-card__excerpt {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.partner-card__city {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.event-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.page-events__empty,
.page-news-index__empty,
.page-gallery__empty,
.page-partners__empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-muted);
}

/* --- Federation page structural --- */
.page-federation__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}
.page-federation__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-federation__stat-number {
  display: block;
  line-height: 1;
}
.page-federation__stat-label {
  display: block;
}
.page-federation__section {
  margin-bottom: 3rem;
}
.page-federation__section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.page-federation__cta {
  text-align: center;
  margin-bottom: 3rem;
}
.federation-club-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  overflow: hidden;
}
.federation-club-card__logo img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  padding: 1rem;
}
.federation-club-card__logo--placeholder {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}
.federation-club-card__content {
  padding: 1rem 1.25rem;
}
.federation-club-card__name {
  margin: 0 0 0.25rem 0;
}
.federation-club-card__city {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.federation-club-card__code {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.federation-club-card__description {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.federation-club-card__stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.federation-club-card__stat {
  display: inline-flex;
  align-items: center;
}
.federation-club-card__actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
}
.federation-club-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.federation-club-card__link:hover {
  color: var(--color-secondary);
}

/* --- Event detail (federation + local detail pages) --- */
.event-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.event-detail__breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.event-detail__breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.event-detail__header {
  margin-bottom: 2rem;
}

.event-detail__title {
  margin-bottom: 0.5rem;
}

.event-detail__status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-detail__status--eventscheduled { background: #d1fae5; color: #065f46; }
.event-detail__status--eventcancelled { background: #fee2e2; color: #991b1b; }
.event-detail__status--eventpostponed { background: #fef3c7; color: #92400e; }
.event-detail__status--eventmovedonline { background: #dbeafe; color: #1e40af; }

.event-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.event-detail__meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-detail__image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md, 0.5rem);
  margin-bottom: 1.5rem;
}

.event-detail__body {
  line-height: 1.7;
  margin-bottom: 2rem;
}

.event-detail__location {
  background: var(--color-surface-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md, 0.5rem);
  margin-bottom: 2rem;
}

.event-detail__external-link {
  margin-bottom: 2rem;
}

.event-detail__divider {
  border: none;
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
  margin: 2rem 0;
}

/* --- Interest section --- */
.interest-section__counts {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.interest-section__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.interest-section__btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm, 0.375rem);
  cursor: pointer;
  font-size: 0.875rem;
  background: transparent;
  border: 2px solid var(--color-border, rgba(0,0,0,0.15));
  color: inherit;
  transition: all 0.2s ease;
}

.interest-section__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.interest-section__btn--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.interest-section__btn--remove {
  border-color: #ef4444;
  color: #ef4444;
}

.interest-section__btn--remove:hover {
  background: #ef4444;
  color: #fff;
}

.interest-section__notice {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* --- Comments section --- */
.comments-section__notice {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.comments-section__list {
  margin-bottom: 2rem;
}

.comments-section__item {
  padding: 1rem;
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  border-radius: var(--radius-sm, 0.375rem);
  margin-bottom: 0.75rem;
}

.comments-section__item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comments-section__author {
  font-size: 0.9rem;
}

.comments-section__date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.comments-section__body {
  margin: 0;
  line-height: 1.5;
}

.comments-section__delete-form {
  margin-top: 0.5rem;
}

.comments-section__delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.comments-section__delete-btn:hover {
  text-decoration: underline;
}

.comments-section__empty {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.comments-section__form {
  margin-top: 1rem;
}

.comments-section__form .form-group {
  margin-bottom: 0.75rem;
}

/* --- Content body (shared for pages with StreamField body) --- */
.page-about__body,
.page-board__body,
.page-privacy__body,
.page-transparency__body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- FAQ accordion block --- */
.block-faq {
  max-width: 800px;
  margin: 0 auto;
}

.block-faq__title {
  text-align: center;
  margin-bottom: 2rem;
}

.block-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.block-faq__item {
  border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
}

.block-faq__item:first-child {
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
}

.block-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

/* Remove default marker */
.block-faq__question::-webkit-details-marker {
  display: none;
}

.block-faq__question::marker {
  content: "";
}

/* Chevron indicator */
.block-faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s ease;
}

.block-faq__item[open] > .block-faq__question::after {
  transform: rotate(180deg);
}

.block-faq__answer {
  padding: 0 0.5rem 1.5rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.block-faq__answer p {
  margin: 0 0 0.75rem;
}

.block-faq__answer p:last-child {
  margin-bottom: 0;
}

/* Dark mode */
.dark-mode .block-faq__item {
  border-color: rgba(255,255,255,0.1);
}

/* StreamField blocks: add spacing between real block wrappers, not raw rich text
   nodes. Rich text paragraphs/headings keep their own typography rhythm. */
.page-about__body > :where(section, article, aside, nav, figure, details, div[class]),
.page-board__body > :where(section, article, aside, nav, figure, details, div[class]),
.page-privacy__body > :where(section, article, aside, nav, figure, details, div[class]),
.page-transparency__body > :where(section, article, aside, nav, figure, details, div[class]),
.page-news-detail__body > :where(section, article, aside, nav, figure, details, div[class]),
.page-event-detail__body > :where(section, article, aside, nav, figure, details, div[class]) {
  margin-bottom: 2rem;
}

.page-about__body > :where(section, article, aside, nav, figure, details, div[class]):last-child,
.page-board__body > :where(section, article, aside, nav, figure, details, div[class]):last-child,
.page-privacy__body > :where(section, article, aside, nav, figure, details, div[class]):last-child,
.page-transparency__body > :where(section, article, aside, nav, figure, details, div[class]):last-child,
.page-news-detail__body > :where(section, article, aside, nav, figure, details, div[class]):last-child,
.page-event-detail__body > :where(section, article, aside, nav, figure, details, div[class]):last-child {
  margin-bottom: 0;
}

.page-about__cover {
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: 8px;
}

.page-about__cover-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-privacy__updated {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* --- Contact / Newsletter Page layout (structural only — aesthetics in each theme) --- */
.page-contact__field-row,
.page-newsletter__field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .page-contact__field-row,
  .page-newsletter__field-row {
    grid-template-columns: 1fr 1fr;
  }
  .page-contact__field-row .page-contact__field,
  .page-newsletter__field-row .page-newsletter__field {
    margin-bottom: 0;
  }
}

/* Safety-net: bare inputs inside form fields inherit themed styling */
.page-contact__field input[type="text"],
.page-contact__field input[type="email"],
.page-contact__field input[type="password"],
.page-contact__field input[type="number"],
.page-contact__field input[type="tel"],
.page-contact__field input[type="url"],
.page-contact__field input[type="search"],
.page-contact__field input[type="date"],
.page-contact__field select,
.page-contact__field textarea,
.page-newsletter__field input[type="text"],
.page-newsletter__field input[type="email"],
.page-newsletter__field input[type="password"],
.page-newsletter__field input[type="number"],
.page-newsletter__field input[type="tel"],
.page-newsletter__field input[type="url"],
.page-newsletter__field input[type="search"],
.page-newsletter__field input[type="date"],
.page-newsletter__field select,
.page-newsletter__field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-surface-alt, #fff);
  border: 1px solid var(--color-border, rgba(128, 128, 128, 0.25));
  border-radius: var(--radius-sm, 4px);
  color: var(--color-text-primary, #111);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__field input:focus,
.page-contact__field select:focus,
.page-contact__field textarea:focus,
.page-newsletter__field input:focus,
.page-newsletter__field select:focus,
.page-newsletter__field textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1d4ed8);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Fieldset reset for form contexts */
.page-contact__fieldset,
.page-newsletter__fieldset {
  border: none !important;
  padding: 0;
  margin: 1rem 0;
}

/* Checkbox group inside forms (Django CheckboxSelectMultiple structure) */
.page-contact__checkbox-group,
.page-newsletter__checkbox-group {
  margin-top: 0.5rem;
}

.page-contact__checkbox-group > div,
.page-newsletter__checkbox-group > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-contact__checkbox-group > div > div,
.page-newsletter__checkbox-group > div > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-contact__checkbox-group > div > div label,
.page-newsletter__checkbox-group > div > div label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary, #111);
  cursor: pointer;
}

.page-contact__checkbox-group input[type="checkbox"],
.page-newsletter__checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-accent, #0066FF);
  cursor: pointer;
}

/* Help text in forms */
.page-contact__help-text,
.page-newsletter__help-text {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted, #6b7280);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* --- Newsletter Archive / Detail (structural only — aesthetics in each theme) --- */
.newsletter-archive__categories {
  display: flex;
  flex-wrap: wrap;
}

.newsletter-archive__item-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.newsletter-detail__body {
  max-width: 640px;
  margin: 0 auto;
}

/* --- Press Page sections --- */
.page-press__contact,
.page-press__releases,
.page-press__assets {
  margin-bottom: 3rem;
}

.page-press__section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary, #333);
}

.page-press__contact-card {
  padding: 1.5rem 2rem;
  background: var(--color-surface-alt, #f8f9fa);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
}

.page-press__contact-card p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.page-press__contact-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.page-press__contact-email a,
.page-press__contact-phone a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-press__contact-email a:hover,
.page-press__contact-phone a:hover {
  color: var(--color-secondary);
}

/* Press releases list */
.page-press__releases-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.press-release-card {
  background: var(--color-surface-alt, #f8f9fa);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.press-release-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.press-release-card__header {
  padding: 1.5rem 2rem 0;
}

.press-release-card__date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.press-release-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.press-release-card__body {
  padding: 1rem 2rem;
  line-height: 1.7;
  color: var(--color-text-primary);
}

.press-release-card__body p {
  margin-bottom: 0.75rem;
}

.press-release-card__download {
  padding: 0 2rem 1.5rem;
}

/* Brand assets grid */
.page-press__assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .page-press__assets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-press__assets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.brand-asset-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-alt, #f8f9fa);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.brand-asset-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.brand-asset-card__preview {
  overflow: hidden;
}

.brand-asset-card__preview img {
  width: 100%;
  height: 12rem;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s ease;
}

.brand-asset-card:hover .brand-asset-card__preview img {
  transform: scale(1.05);
}

.brand-asset-card__content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.brand-asset-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.brand-asset-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.brand-asset-card__description {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.brand-asset-card .btn {
  align-self: flex-start;
}

/* --- Partner detail layout (mirrors event detail) --- */
.page-partner__header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.page-partner__sidebar-logo {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.page-partner__sidebar-logo img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.page-partner__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  background: var(--color-secondary);
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-partner__category {
  display: inline-block;
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.page-partner__hero {
  margin: 0 0 2rem;
}

.page-partner__hero-image {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.page-partner__layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .page-partner__layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-partner__layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.page-partner__main {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-partner__body {
  line-height: 1.8;
  color: var(--color-text-primary);
}

.page-partner__body p {
  margin-bottom: 1em;
}

.page-partner__body ul,
.page-partner__body ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.page-partner__body ul {
  list-style: disc;
}

.page-partner__body ol {
  list-style: decimal;
}

.page-partner__body li {
  margin-bottom: 0.35em;
  line-height: 1.7;
}

.page-partner__sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-partner__info-card {
  background: var(--color-surface-alt);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  padding: 2rem;
}

.page-partner__info-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.page-partner__info-item {
  margin-bottom: 1.5rem;
}

.page-partner__info-item:last-child {
  margin-bottom: 0;
}

.page-partner__info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}

.page-partner__info-value {
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-partner__info-value a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-partner__info-value a:hover {
  color: var(--color-secondary);
}

.page-partner__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-partner__social-link {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 4px;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.page-partner__social-link:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* Partner detail — map */
.page-partner__map-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.page-partner__map-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.page-partner__map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  z-index: 1;
}

@media (max-width: 768px) {
  .page-partner__map {
    height: 280px;
  }
}

/* --- Detail Pages (shared between event detail & news detail) --- */
.page-event-detail,
.page-news-detail {
  padding: 0 0 4rem;
}

.page-event-detail__cover,
.page-news-detail__cover {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.page-event-detail__cover-image,
.page-news-detail__cover-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-event-detail__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

.page-event-detail__header,
.page-news-detail__header {
  margin-bottom: 2rem;
}

.page-event-detail__category,
.page-news-detail__category {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.page-event-detail__category,
.page-news-detail__category a {
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-event-detail__title,
.page-news-detail__title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.page-event-detail__intro,
.page-news-detail__intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.page-event-detail__layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .page-event-detail__layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-event-detail__layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.page-event-detail__main {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-event-detail__sidebar {
  min-width: 0;
}

.page-event-detail__body,
.page-news-detail__body {
  line-height: 1.8;
  color: var(--color-text-primary);
}

/* Content body typography — ensures lists and paragraphs render
   correctly even when the .rich-text wrapper is absent or nested. */
.page-event-detail__body p,
.page-news-detail__body p,
.page-about__body p,
.page-board__body p,
.page-privacy__body p,
.page-transparency__body p {
  margin-bottom: 1em;
}

.page-event-detail__body ul,
.page-event-detail__body ol,
.page-news-detail__body ul,
.page-news-detail__body ol,
.page-about__body ul,
.page-about__body ol,
.page-board__body ul,
.page-board__body ol,
.page-privacy__body ul,
.page-privacy__body ol,
.page-transparency__body ul,
.page-transparency__body ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.page-event-detail__body ul,
.page-news-detail__body ul,
.page-about__body ul,
.page-board__body ul,
.page-privacy__body ul,
.page-transparency__body ul {
  list-style: disc;
}

.page-event-detail__body ol,
.page-news-detail__body ol,
.page-about__body ol,
.page-board__body ol,
.page-privacy__body ol,
.page-transparency__body ol {
  list-style: decimal;
}

.page-event-detail__body li,
.page-news-detail__body li,
.page-about__body li,
.page-board__body li,
.page-privacy__body li,
.page-transparency__body li {
  margin-bottom: 0.35em;
  line-height: 1.7;
}

.page-event-detail__body h2,
.page-event-detail__body h3,
.page-event-detail__body h4,
.page-news-detail__body h2,
.page-news-detail__body h3,
.page-news-detail__body h4,
.page-about__body h2,
.page-about__body h3,
.page-about__body h4,
.page-board__body h2,
.page-board__body h3,
.page-board__body h4,
.page-transparency__body h2,
.page-transparency__body h3,
.page-transparency__body h4,
.page-privacy__body h2,
.page-privacy__body h3,
.page-privacy__body h4 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-text-primary);
}

.page-transparency__body h2:first-child,
.page-privacy__body h2:first-child {
  margin-top: 0;
}

.page-event-detail__body blockquote,
.page-news-detail__body blockquote,
.page-about__body blockquote,
.page-board__body blockquote {
  border-left: 4px solid var(--color-secondary, #ccc);
  padding-left: 1rem;
  margin: 1em 0;
  font-style: italic;
  color: var(--color-text-muted, #666);
}

.page-news-detail__body {
  max-width: 800px;
}

/* Event sidebar info card */
.page-event-detail__info-card {
  background: var(--color-surface-alt);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  padding: 2rem;
}

.page-event-detail__info-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.page-event-detail__info-item {
  margin-bottom: 1.5rem;
}

.page-event-detail__info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}

.page-event-detail__info-value {
  font-size: 0.95rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-event-detail__price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-secondary);
}

.page-event-detail__status[data-status="open"] {
  color: #22C55E;
  font-weight: 600;
}

.page-event-detail__status[data-status="closed"] {
  color: var(--color-secondary);
  font-weight: 600;
}

.page-event-detail__status[data-status="past"] {
  color: var(--color-text-muted);
}

.page-event-detail__register {
  margin-top: 1.5rem;
}

.page-event-detail__register .btn {
  width: 100%;
}

/* Favorite toggle button */
.page-event-detail__favorite {
  margin-top: 1rem;
}
.page-event-detail__favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}
.page-event-detail__favorite-icon {
  flex-shrink: 0;
}
.page-event-detail__favorite-btn--active .page-event-detail__favorite-icon {
  /* transform/transition themed in each main.css */
}

/* Add to calendar button */
.page-event-detail__calendar {
  margin-top: 1rem;
}
.page-event-detail__ics-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}
.page-event-detail__ics-icon {
  flex-shrink: 0;
}

/* "You are registered" badge — layout only, themed in each main.css */
.page-event-detail__registered-badge {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.page-event-detail__my-regs-link {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  text-decoration: none;
}
.page-event-detail__my-regs-link:hover {
  text-decoration: underline;
}

/* Tags (shared) */
.page-event-detail__tags,
.page-news-detail__tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.page-event-detail__tags-label,
.page-news-detail__tags-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.page-event-detail__tags-list,
.page-news-detail__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}

.page-event-detail__tag,
.page-news-detail__tag {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 4px;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.page-event-detail__tag:hover,
.page-news-detail__tag:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* Event detail — map */
.page-event-detail__map-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.page-event-detail__map-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.page-event-detail__map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  z-index: 1;
}

@media (max-width: 768px) {
  .page-event-detail__map {
    height: 280px;
  }
}

/* News navigation (prev/next) */
.page-news-detail__nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.page-news-detail__nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.page-news-detail__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: color 0.3s ease;
}

.page-news-detail__nav-link[data-direction="next"] {
  text-align: right;
  margin-left: auto;
}

.page-news-detail__nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.page-news-detail__nav-title {
  font-weight: 700;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.page-news-detail__nav-link:hover .page-news-detail__nav-title {
  color: var(--color-secondary);
}

/* ==========================================================================
   Event Registration Page
   ========================================================================== */

/* --- Page title --- */
.register-title {
  margin-top: 4rem;
  margin-bottom: 2.5rem;
}

/* --- Event summary card --- */
.register-summary {
  background: var(--color-surface-alt, #f9f9f9);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.register-summary__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.register-summary__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.register-summary__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted, #666);
}

.register-summary__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Pricing card --- */
.register-pricing {
  background: var(--color-surface-alt, #f9f9f9);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.register-pricing__heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.register-pricing__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.register-pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.register-pricing__row--discount {
  color: #22C55E;
}

.register-pricing__row--total {
  border-top: 2px solid rgba(128, 128, 128, 0.2);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

/* --- Fieldsets --- */
.register-fieldset {
  border: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.register-fieldset__legend {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
  width: 100%;
  display: block;
}

/* --- Form label row (label + help button) --- */
.form-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.form-required {
  color: #EF4444;
  font-weight: 700;
}

/* --- Help button (?) --- */
.field-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-muted, #666);
  background: var(--color-surface-alt, #f0f0f0);
  border: 1px solid var(--color-text-muted, #ccc);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.field-help-btn:hover,
.field-help-btn:focus-visible {
  color: #fff;
  background: var(--color-accent, #0066FF);
  border-color: var(--color-accent, #0066FF);
}

/* --- Help modal --- */
.field-help-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.field-help-modal[hidden] {
  display: none;
}

.field-help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.field-help-modal__content {
  position: relative;
  background: var(--color-surface, #fff);
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: helpModalIn 0.2s ease-out;
}

@keyframes helpModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.field-help-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted, #666);
  border-radius: 4px;
  transition: background 0.15s;
}

.field-help-modal__close:hover {
  background: rgba(128, 128, 128, 0.1);
}

#field-help-modal-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-primary, #222);
  white-space: pre-line;
}

/* --- Checkbox (form-check) --- */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--color-accent, #0066FF);
  cursor: pointer;
}

.form-check label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary, #111);
  cursor: pointer;
}

.form-check .field-help-btn {
  margin-left: 0.25rem;
  margin-top: 0.1rem;
}

/* --- Form errors --- */
.form-errors {
  list-style: none;
  padding: 0;
  margin: 0.375rem 0 0;
}

.form-errors li {
  font-size: 0.8rem;
  font-weight: 600;
  color: #EF4444;
}

.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea,
.form-group--error input,
.form-group--error select,
.form-group--error textarea {
  border-color: #d32f2f;
}

/* --- Alert banners --- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 0.5rem;
}

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* --- Passenger fields container --- */
.register-passenger-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 128, 128, 0.1);
}

/* --- WCAG form classes (GAP-13) — see section 18 for canonical form rules --- */

/* --- WCAG help text (GAP-11) --- */
.form-help-text {
  font-size: 0.8rem;
  color: var(--color-text-muted, #666);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

/* --- Pre-submit summary (GAP-16) --- */
.register-summary-review {
  background: var(--color-surface-alt, #f0f9ff);
  border: 1px solid var(--color-border, #bfdbfe);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  display: none;
}
.register-summary-review.visible { display: block; }
.register-summary-review h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--color-text-primary);
}
.register-summary-review dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}
.register-summary-review dt { font-weight: 600; color: var(--color-text-muted); }
.register-summary-review dd { margin: 0; }

/* --- Form: ensure Django-rendered inputs inherit base styles --- */
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="number"],
.register-form input[type="date"],
.register-form input[type="url"],
.register-form select,
.register-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--color-border, rgba(0, 0, 0, 0.35));
  border-radius: var(--radius-sm, 4px);
  background: var(--color-surface-alt, #fff);
  color: var(--color-text-primary, #111);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  border-color: var(--color-primary, #1d4ed8);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.register-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* --- Submit button --- */
.register-form .btn--block {
  margin-top: 2rem;
  margin-bottom: 4rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.register-form .form-group {
  margin-bottom: 1.5rem;
}

/* --- Dark mode overrides --- */
.dark-mode .register-summary,
.dark-mode .register-pricing {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .alert-error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: #FCA5A5;
}

.dark-mode .field-help-modal__content {
  background: var(--color-surface, #1a1a1a);
}

.dark-mode .field-help-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Dark mode: auth form inputs */
.dark-mode .auth-card input[type="text"],
.dark-mode .auth-card input[type="email"],
.dark-mode .auth-card input[type="password"],
.dark-mode .auth-card input[type="number"],
.dark-mode .auth-card input[type="tel"],
.dark-mode .auth-card input[type="url"],
.dark-mode .auth-card select,
.dark-mode .auth-card textarea,
.dark-mode .form-input,
.dark-mode .form-select,
.dark-mode .form-textarea {
  background: var(--color-surface-alt, #1a1a1a);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-text-primary, #e5e5e5);
}
.dark-mode .auth-card input:focus,
.dark-mode .auth-card select:focus,
.dark-mode .auth-card textarea:focus,
.dark-mode .form-input:focus,
.dark-mode .form-select:focus,
.dark-mode .form-textarea:focus {
  border-color: var(--color-accent, #60a5fa);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

/* --------------------------------------------------------------------------
   Dropdown Menus (shared structure)
   -------------------------------------------------------------------------- */
.site-nav__dropdown {
  position: relative;
}
.site-nav__dropdown-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0;
}
.site-nav__dropdown-arrow {
  font-size: 0.6em;
  transition: transform 0.2s;
}
.site-nav__dropdown.open .site-nav__dropdown-arrow {
  transform: rotate(180deg);
}
.site-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  min-width: 200px;
  z-index: 1001;
}
.site-nav__dropdown.open .site-nav__dropdown-menu {
  display: block;
}
.site-nav__dropdown-menu a {
  display: flex;
  padding: 0.5rem 1rem;
  color: inherit;
  transition: background 0.15s;
  min-height: 40px;
  align-items: center;
}
.site-nav__dropdown-divider {
  height: 0;
  margin: 0.25rem 0;
}

/* User menu (right-aligned) */
.site-nav__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-nav__user-menu {
  right: 0;
  left: auto;
}
.site-nav__user-toggle {
  font-weight: 600;
  font-size: 0.875rem;
}
.site-nav__user-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.site-nav__login {
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Mobile: accordion-style dropdowns — see "Mobile Navigation Panel" block above */

/* --------------------------------------------------------------------------
   Auth Pages (signup, login, password reset)
   -------------------------------------------------------------------------- */
.auth-container {
  max-width: 480px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.auth-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  border-radius: var(--radius-md, 8px);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Fallback for allauth pages that pass through the layout chain
   without an explicit .auth-container wrapper (e.g. password_reset_done,
   account_inactive). body.page-auth is set by allauth/layouts/base.html. */
.page-auth #main-content:not(:has(.auth-container)) {
  max-width: 480px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.page-auth #main-content:not(:has(.auth-container)) h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.auth-subtitle {
  color: var(--color-text-muted, #666);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, #666);
}
.auth-switch a {
  color: var(--color-primary, #1d4ed8);
  font-weight: 600;
}

/* Signup CTA box on login page */
.auth-signup-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.1));
  text-align: center;
}
.auth-signup-cta p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted, #666);
}
.auth-signup-cta .btn {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Membership Pricing Cards
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.pricing-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  border-radius: var(--radius-md, 8px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.pricing-card--active {
  border-color: var(--color-primary, #1d4ed8);
  box-shadow: 0 0 0 2px var(--color-primary, #1d4ed8);
}
.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pricing-card__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary, #1d4ed8);
  margin-bottom: 1rem;
}
.pricing-card__price small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted, #666);
}
.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted, #666);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.pricing-card__features {
  flex: 1;
  margin-bottom: 1.5rem;
}
.pricing-card__features li {
  padding: 0.25rem 0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-card__features li::before {
  content: "\2713";
  color: var(--color-accent, #22c55e);
  font-weight: 700;
}
.pricing-card__badge {
  display: inline-block;
  background: var(--color-primary, #1d4ed8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm, 4px);
  margin-bottom: 0.75rem;
}

.page-membership-plans__empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--color-text-muted);
}

.page-membership-plans__footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Form Utilities (canonical — WCAG 2.2 SC 1.4.11 compliant borders)
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-primary, #111);
}
.form-group .required {
  color: #d32f2f;
  margin-left: 0.125rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 2px solid var(--color-border, rgba(0, 0, 0, 0.35));
  border-radius: var(--radius-sm, 4px);
  background: var(--color-surface-alt, #fff);
  color: var(--color-text-primary, #111);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1d4ed8);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
.form-check-input {
  margin-right: 0.5rem;
}
.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #666);
}
.form-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #d32f2f;
  font-weight: 500;
}
.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
  border-color: #d32f2f;
}

/* --------------------------------------------------------------------------
   Auth Forms — style Django-rendered inputs (allauth outputs bare <input>)
   WCAG 2.2 SC 1.4.11: non-text contrast >= 3:1
   -------------------------------------------------------------------------- */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="number"],
.auth-card input[type="tel"],
.auth-card input[type="url"],
.auth-card select,
.auth-card textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 2px solid var(--color-border, rgba(0, 0, 0, 0.35));
  border-radius: var(--radius-sm, 4px);
  background: var(--color-surface-alt, #fff);
  color: var(--color-text-primary, #111);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1d4ed8);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

/* --------------------------------------------------------------------------
   Button Variants
   -------------------------------------------------------------------------- */
.btn-primary,
.btn--primary {
  background: var(--color-primary, #1d4ed8);
  color: #fff;
  border: 2px solid var(--color-primary, #1d4ed8);
}
.btn-primary:hover,
.btn--primary:hover {
  background: var(--color-accent, #0066FF);
  border-color: var(--color-accent, #0066FF);
  color: #fff;
}

.btn-outline,
.btn--outline {
  background: transparent;
  color: var(--color-primary, #1d4ed8);
  border: 2px solid var(--color-primary, #1d4ed8);
}
.btn-outline:hover,
.btn--outline:hover {
  background: var(--color-primary, #1d4ed8);
  color: #fff;
}

/* Alias for Bootstrap convention */
.btn-block {
  width: 100%;
}

/* Pricing card button overrides for visibility */
.pricing-card .btn {
  margin-top: auto;
}
.pricing-card .btn-primary,
.pricing-card .btn--primary {
  background: var(--color-accent, #22c55e);
  border-color: var(--color-accent, #22c55e);
  color: #fff;
}
.pricing-card .btn-primary:hover,
.pricing-card .btn--primary:hover {
  background: var(--color-primary, #1d4ed8);
  border-color: var(--color-primary, #1d4ed8);
}
.pricing-card .btn-outline,
.pricing-card .btn--outline {
  background: transparent;
  color: var(--color-text-primary, #111);
  border: 2px solid var(--color-border, rgba(0,0,0,0.35));
}
.pricing-card .btn-outline:hover,
.pricing-card .btn--outline:hover {
  background: var(--color-surface-alt, #f5f5f5);
  border-color: var(--color-primary, #1d4ed8);
  color: var(--color-primary, #1d4ed8);
}

/* --------------------------------------------------------------------------
   Theme Switcher
   -------------------------------------------------------------------------- */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
}

.theme-switcher__label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
}

.theme-switcher__icon {
  font-size: 14px;
  flex-shrink: 0;
}

.theme-switcher__select {
  position: relative;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: rgba(128, 128, 128, 0.15);
  color: inherit;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  appearance: none;
  opacity: 0.8;
  transition: opacity 0.2s, border-color 0.2s;
}

/* Pure CSS dropdown arrow (supports currentColor) */
.theme-switcher__select-wrapper {
  position: relative;
  display: inline-block;
}

.theme-switcher__select-wrapper::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  pointer-events: none;
}

.theme-switcher__select:hover,
.theme-switcher__select:focus {
  opacity: 1;
  outline: none;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.pagination__item {
  display: inline-block;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-primary, #111);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-sm, 4px);
  transition: all 0.2s;
  text-decoration: none;
}

.pagination__link:hover {
  border-color: var(--color-primary, #1d4ed8);
  color: var(--color-primary, #1d4ed8);
}

.pagination__item--active .pagination__link,
.pagination__link--current {
  background: var(--color-primary, #1d4ed8);
  border-color: var(--color-primary, #1d4ed8);
  color: #fff;
  font-weight: 600;
}

.pagination__item--disabled .pagination__link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination__ellipsis {
  padding: 0 0.5rem;
  color: var(--color-text-muted, #666);
}

.pagination__info {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #666);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Account Card Page
   -------------------------------------------------------------------------- */
.page-card {
  padding: 4rem 0;
}

.page-card__header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-card__title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text-primary, #111);
  margin: 0 0 0.5rem;
}

.page-card__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted, #666);
  margin: 0;
}

/* Card Content Wrapper (groups digital card + actions) */
.page-card__content {
  max-width: 640px;
  margin: 0 auto 3rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Membership Card (Digital Card Display) */
.membership-card {
  background: linear-gradient(135deg, var(--color-primary, #1d4ed8), var(--color-secondary, #7c3aed));
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.membership-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.membership-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.membership-card__logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.membership-card__type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

.membership-card__body {
  position: relative;
  z-index: 1;
}

.membership-card__member-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.membership-card__number {
  font-family: 'Courier New', monospace;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.membership-card__dates {
  display: flex;
  gap: 2rem;
  font-size: 0.75rem;
}

.membership-card__date-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.membership-card__date-value {
  font-size: 0.875rem;
  font-weight: 600;
}

.membership-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.membership-card__qr {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: var(--radius-sm, 4px);
  padding: 4px;
}

.membership-card__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.membership-card__barcode {
  background: #fff;
  border-radius: var(--radius-sm, 4px);
  padding: 4px 8px;
  max-width: 200px;
}

.membership-card__barcode img {
  width: 100%;
  height: auto;
  display: block;
}

/* No Card State */
.page-card__no-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-lg, 16px);
  margin: 0 auto 3rem;
  max-width: 640px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.page-card__no-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.page-card__no-card-text {
  font-size: 1.125rem;
  color: var(--color-text-muted, #666);
  margin: 0 0 0.5rem;
}

.page-card__no-card-text--muted {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #888);
}

/* Available Plans Section */
.page-card__plans {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.page-card__plans-title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text-primary, #111);
}

/* Card Actions */
.membership-card__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.membership-card__actions .btn {
  min-width: 140px;
}

/* Responsive: membership card */
@media (max-width: 520px) {
  .page-card__content {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  .membership-card {
    padding: 1.25rem;
  }
  .membership-card__logo {
    font-size: 1.125rem;
  }
  .membership-card__member-name {
    font-size: 1.125rem;
  }
  .membership-card__number {
    font-size: 0.9375rem;
  }
  .membership-card__dates {
    flex-direction: column;
    gap: 0.75rem;
  }
  .membership-card__footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .membership-card__actions .btn {
    min-width: 0;
    flex: 1;
  }
  .page-card__title {
    font-size: 1.75rem;
  }
  .page-card__no-card {
    padding: 2rem 1rem;
  }
}

/* Dark mode: card page */
.dark-mode .page-card__content {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.dark-mode .page-card__title,
.dark-mode .page-card__plans-title {
  color: var(--color-text-primary);
}

.dark-mode .page-card__no-card {
  background: var(--color-surface-alt);
}

.dark-mode .page-card__no-card-icon {
  color: var(--color-text-muted);
}

.dark-mode .pricing-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.dark-mode .pricing-card__name {
  color: var(--color-text-primary);
}

.dark-mode .pricing-card__price {
  color: var(--color-text-primary);
}

.dark-mode .pricing-card__badge {
  background: var(--color-primary);
}

.dark-mode .page-card__subtitle {
  color: var(--color-text-muted);
}

.dark-mode .pricing-card__desc {
  color: var(--color-text-muted);
}

.dark-mode .pricing-card__features li {
  color: var(--color-text-primary);
}

.dark-mode .request-banner {
  background: var(--color-surface-alt);
  border-color: var(--color-border);
}

/* --------------------------------------------------------------------------
   Request Banners (card page)
   -------------------------------------------------------------------------- */
.request-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
}

.request-banner--pending {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: var(--color-warning);
}

.request-banner--pending .request-banner__link {
  color: var(--color-warning);
}

.request-banner--approved {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: var(--color-success);
}

.request-banner--approved .request-banner__link {
  color: var(--color-success);
}

.request-banner--rejected {
  background: var(--color-error-bg);
  border-color: var(--color-error-border);
  color: var(--color-error);
}

.request-banner--rejected .request-banner__link {
  color: var(--color-error);
}

.request-banner__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.125rem;
}

.request-banner__body {
  flex: 1;
  min-width: 0;
}

.request-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.request-banner__meta {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

.request-banner__reason {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
}

.request-banner__link {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.request-banner__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Request Cards (list page)
   -------------------------------------------------------------------------- */
.page-requests {
  padding: 4rem 0;
}

.page-requests__header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-requests__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text-primary, #111);
}

.page-requests__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted, #666);
  margin: 0;
}

.page-requests__section {
  margin-bottom: 2.5rem;
}

.page-requests__section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text-primary, #111);
}

.request-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.request-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.request-card:focus-visible {
  outline: 2px solid var(--color-primary, #3b82f6);
  outline-offset: 2px;
}

.request-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.request-card__product {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-primary, #111);
}

.request-card__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.request-card__price {
  font-weight: 600;
}

.request-card__price small {
  font-weight: 400;
  opacity: 0.7;
}

.request-card__date {
  color: var(--color-text-muted, #666);
}

.request-card__notes {
  width: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted, #666);
}

.request-card__arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted, #999);
}

.page-requests__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.page-requests__empty-icon {
  display: block;
  color: var(--color-text-muted, #999);
  margin-bottom: 1rem;
}

.page-requests__empty-text {
  font-size: 1rem;
  color: var(--color-text-muted, #666);
  margin: 0 0 1.5rem;
}

.page-requests__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Request Detail Page
   -------------------------------------------------------------------------- */
.page-request-detail__container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-request-detail__header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-request-detail__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text-primary, #111);
}

.page-request-detail__subtitle {
  color: var(--color-text-muted, #666);
  margin: 0;
}

/* Stepper */
.request-stepper {
  margin-bottom: 2.5rem;
}

.request-stepper__list {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.request-stepper__list::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-surface-alt, #E5E7EB);
  z-index: 0;
}

.request-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.request-stepper__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.request-stepper__dot {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-surface-alt, #D1D5DB);
}

.request-stepper__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted, #666);
}

.request-stepper__date {
  font-size: 0.75rem;
  color: var(--color-text-muted, #999);
}

.request-stepper__step--done .request-stepper__label {
  color: var(--color-text-primary, #111);
}

.request-stepper__step--current .request-stepper__label {
  color: var(--color-primary, #3b82f6);
}

.request-stepper__step--current .request-stepper__dot {
  border-color: var(--color-primary, #3b82f6);
}

/* Detail card */
.request-detail-card {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.request-detail-card__product-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.request-detail-card__product-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.request-detail-card__product-price small {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.7;
}

.request-detail-card__product-desc {
  margin: 0;
  color: var(--color-text-muted, #666);
  font-size: 0.9rem;
}

/* Info dl */
.request-detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.request-detail-info__row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.request-detail-info__row dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted, #666);
}

.request-detail-info__row dd {
  margin: 0;
  font-size: 0.95rem;
}

.request-detail-info__row--full {
  grid-column: 1 / -1;
}

.request-detail-info__admin-notes {
  font-style: italic;
}

/* Actions */
.request-detail-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 520px) {
  .request-stepper__list {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .request-stepper__list::before {
    top: 0;
    bottom: 0;
    left: 15px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .request-stepper__step {
    flex-direction: row;
    gap: 0.75rem;
    text-align: left;
  }
  .request-detail-info {
    grid-template-columns: 1fr;
  }
}

/* Dark mode */
.dark-mode .page-requests__title,
.dark-mode .page-requests__section-title,
.dark-mode .page-request-detail__title {
  color: var(--color-text-primary, #f1f1f1);
}

.dark-mode .request-card__product {
  color: var(--color-text-primary, #f1f1f1);
}

.dark-mode .request-detail-card__product-name {
  color: var(--color-text-primary, #f1f1f1);
}

.dark-mode .request-stepper__step--done .request-stepper__label {
  color: var(--color-text-primary, #f1f1f1);
}

/* --------------------------------------------------------------------------
   Status Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}
.badge--warning {
  background: #FEF3C7;
  color: #92400E;
}
.badge--success {
  background: #D1FAE5;
  color: #065F46;
}
.badge--danger {
  background: #FEE2E2;
  color: #991B1B;
}
.badge--muted {
  background: #E5E7EB;
  color: #374151;
}

/* Contribution status badges */
.badge--pending {
  background: #FEF3C7;
  color: #92400E;
}
.badge--approved {
  background: #D1FAE5;
  color: #065F46;
}
.badge--rejected {
  background: #FEE2E2;
  color: #991B1B;
}

/* Contribution type badges */
.badge--story {
  background: #DBEAFE;
  color: #1E40AF;
}
.badge--proposal {
  background: #EDE9FE;
  color: #5B21B6;
}
.badge--announcement {
  background: #FEF3C7;
  color: #78350F;
}

/* --------------------------------------------------------------------------
   Contributions Page
   -------------------------------------------------------------------------- */
.page-contributions {
  padding: 4rem 0;
}

.page-contributions__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3rem;
}

.page-contributions__header--centered {
  justify-content: center;
  text-align: center;
}

.page-contributions__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary, #111);
  margin: 0 0 0.25rem;
}

.page-contributions__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted, #666);
  margin: 0;
}

/* Contribution card list */
.contributions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contribution-card {
  padding: 1.25rem 1.5rem;
  position: relative;
}

.contribution-card:focus-within {
  outline: 2px solid var(--color-primary, #3b82f6);
  outline-offset: 2px;
}

.contribution-card--approved {
  border-left: 3px solid #059669;
}

.contribution-card--rejected {
  border-left: 3px solid #DC2626;
}

.contribution-card--pending {
  border-left: 3px solid #D97706;
}

.contribution-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contribution-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary, #111);
  margin: 0 0 0.5rem;
}

.contribution-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #555);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.contribution-card__footer {
  display: flex;
  align-items: center;
}

.contribution-card__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #888);
}

.contribution-card__note {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, #555);
}

/* Submit type selector grid */
.submit-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.submit-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid var(--color-surface-alt, #e5e7eb);
  border-radius: 12px;
  background: var(--color-surface, #fff);
  color: var(--color-text-primary, #1a1a2e);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.submit-type-card:hover,
.submit-type-card:focus-visible {
  border-color: var(--color-primary, #c0392b);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.submit-type-card:focus-visible {
  outline: 3px solid var(--color-primary, #c0392b);
  outline-offset: 2px;
}

.submit-type-card__icon {
  margin-bottom: 1rem;
  color: var(--color-primary, #c0392b);
}

.submit-type-card__title {
  font-family: var(--font-heading, inherit);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.submit-type-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted, #666);
  margin: 0;
  line-height: 1.5;
}

.form-actions--centered {
  justify-content: center;
}

.dark-mode .submit-type-card {
  background: var(--color-surface, #1e1e2e);
  border-color: var(--color-surface-alt, #333);
}

.dark-mode .submit-type-card:hover,
.dark-mode .submit-type-card:focus-visible {
  border-color: var(--color-primary, #e74c3c);
}

/* Contribution form */
.contribution-form {
  padding: 2rem;
}

/* Form actions (shared) */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

/* Empty state (shared) */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.empty-state__icon {
  color: var(--color-text-muted, #999);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.empty-state__text {
  font-size: 1.125rem;
  color: var(--color-text-muted, #666);
  margin: 0 0 1.5rem;
}

/* Responsive: contributions */
@media (max-width: 520px) {
  .page-contributions__header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .page-contributions__title {
    font-size: 1.5rem;
  }
  .contribution-form {
    padding: 1.25rem;
  }
  .form-actions {
    flex-direction: column;
  }
}

/* Dark mode: contributions */
.dark-mode .page-contributions__title {
  color: var(--color-text-primary, #f1f1f1);
}

.dark-mode .contribution-card {
  background: var(--color-surface, rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .contribution-card__title {
  color: var(--color-text-primary, #f1f1f1);
}

.dark-mode .contribution-card__note {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .contribution-form {
  background: var(--color-surface, rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .empty-state {
  background: var(--color-surface-alt, rgba(255, 255, 255, 0.05));
}

.dark-mode .badge--pending {
  background: rgba(217, 119, 6, 0.15);
  color: #FCD34D;
}
.dark-mode .badge--approved {
  background: rgba(5, 150, 105, 0.15);
  color: #6EE7B7;
}
.dark-mode .badge--rejected {
  background: rgba(220, 38, 38, 0.15);
  color: #FCA5A5;
}
.dark-mode .badge--story {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
}
.dark-mode .badge--proposal {
  background: rgba(139, 92, 246, 0.15);
  color: #C4B5FD;
}
.dark-mode .badge--announcement {
  background: rgba(217, 119, 6, 0.15);
  color: #FCD34D;
}

/* --------------------------------------------------------------------------
   Data Tables
   -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
}
.data-table th {
  font-weight: 600;
  background: var(--color-surface-alt, #f9fafb);
}
.data-table tbody tr:hover {
  background: var(--color-surface-alt, #f9fafb);
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   Notification Preferences Page (structural only — aesthetics in each theme)
   -------------------------------------------------------------------------- */
.page-notification-prefs__form {
  display: flex;
  flex-direction: column;
}

.page-notification-prefs__fieldset {
  border: none;
  margin: 0;
}

.page-notification-prefs__legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.page-notification-prefs__legend-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.page-notification-prefs__fields {
  display: flex;
  flex-direction: column;
}

.page-notification-prefs__actions {
  display: flex;
}

.page-notification-prefs__submit {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: none;
}

.page-notification-prefs__submit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .page-notification-prefs__actions { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Notification History Page (structural only — aesthetics in each theme)
   -------------------------------------------------------------------------- */
.page-notification-history__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.page-notification-history__item {
  list-style: none;
}

.page-notification-history__panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
}

.page-notification-history__channel-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-notification-history__content {
  min-width: 0;
}

.page-notification-history__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.page-notification-history__time {
  white-space: nowrap;
  flex-shrink: 0;
}

.page-notification-history__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 600px) {
  .page-notification-history__panel {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Payment Pages (page-payment)
   -------------------------------------------------------------------------- */
.page-payment {
  padding: 4rem 0;
  min-height: 60vh;
}

.page-payment .container {
  max-width: 640px;
}

.page-payment__header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-payment__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
}

.page-payment__summary {
  background: var(--color-surface-alt, #f9fafb);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.page-payment__event-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.page-payment__event-date {
  color: var(--color-text-muted, #6b7280);
  font-size: 0.9375rem;
  margin: 0;
}

.page-payment__details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
  font-size: 0.9375rem;
}

.page-payment__details dt {
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
}

.page-payment__details dd {
  margin: 0;
}

.page-payment__amount {
  font-size: 1.125rem;
  color: var(--color-accent, #e02547);
}

/* Payment provider buttons */
.page-payment__providers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.page-payment__provider-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-alt, #f9fafb);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.page-payment__provider-btn:hover {
  border-color: var(--color-primary, #3b82f6);
}

.page-payment__provider-icon {
  flex-shrink: 0;
  color: var(--color-text-muted, #6b7280);
}

.page-payment__provider-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text, #1f2937);
}

.page-payment__provider-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6b7280);
  margin-top: 0.125rem;
}

/* Bank transfer details */
.page-payment__bank-details {
  background: var(--color-surface-alt, #f9fafb);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  padding: 2rem;
  margin-bottom: 2rem;
}

.page-payment__bank-heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
}

.page-payment__bank-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.5rem 0;
  font-size: 0.9375rem;
}

.page-payment__bank-info dt {
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
}

.page-payment__bank-info dd {
  margin: 0;
  word-break: break-all;
}

.page-payment__iban {
  font-family: monospace;
  letter-spacing: 0.08em;
}

.page-payment__reference {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-payment__reference-code {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.05);
}

.page-payment__copy-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
}

.page-payment__extra-instructions {
  padding: 1rem 0;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  color: var(--color-text-muted, #6b7280);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Alerts within payment pages */
.page-payment__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.page-payment__alert svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.page-payment__alert p {
  margin: 0;
}

/* Footer / back link */
.page-payment__footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
}

.page-payment__footer--actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.page-payment__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-text-muted, #6b7280);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.page-payment__back-link:hover {
  color: var(--color-primary, #3b82f6);
}

/* Dark mode fallback */
.dark-mode .page-payment__summary,
.dark-mode .page-payment__bank-details {
  background: var(--color-surface-alt, #1e293b);
}

.dark-mode .page-payment__reference-code {
  background: rgba(255, 255, 255, 0.08);
}

.dark-mode .page-payment__provider-btn {
  background: var(--color-surface-alt, #1e293b);
}

.dark-mode .page-payment__provider-name {
  color: var(--color-text-primary, #fff);
}

/* --------------------------------------------------------------------------
   My Events Page (page-my-events)
   -------------------------------------------------------------------------- */
.page-my-events {
  padding: 4rem 0;
}

.page-my-events__header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-my-events__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary, #111);
}

.page-my-events__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.page-my-events__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text, #1f2937);
  background: var(--color-surface-alt, #f9fafb);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  transition: all 0.2s ease;
}

.page-my-events__nav-link:hover {
  background: var(--color-surface, #fff);
  border-color: var(--color-primary, #3b82f6);
  color: var(--color-primary, #3b82f6);
}

.page-my-events__nav-link--active {
  background: var(--color-primary, #3b82f6);
  border-color: var(--color-primary, #3b82f6);
  color: #fff;
}

.page-my-events__nav-link--active:hover {
  background: var(--color-primary, #3b82f6);
  color: #fff;
}

.page-my-events__nav-icon {
  flex-shrink: 0;
}

.page-my-events__map {
  background: var(--color-surface-alt, #f9fafb);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  padding: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-my-events__map-placeholder {
  color: var(--color-text-muted, #6b7280);
  margin: 0;
}

.page-my-events__year-group {
  margin-bottom: 2.5rem;
}

.page-my-events__year-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border, rgba(0, 0, 0, 0.1));
}

.page-my-events__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .page-my-events__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-my-events__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-my-events__item {
  display: flex;
}

.page-my-events__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-my-events__card:hover {
  border-color: var(--color-primary, #3b82f6);
}

.page-my-events__card--past {
  opacity: 0.8;
}

.page-my-events__card-header {
  margin-bottom: 0.75rem;
}

.page-my-events__card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.page-my-events__card-link {
  color: inherit;
  text-decoration: none;
}

.page-my-events__card-link:hover {
  color: var(--color-primary, #3b82f6);
  text-decoration: underline;
}

.page-my-events__card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: auto;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
}

.page-my-events__card-date,
.page-my-events__card-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-my-events__meta-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.page-my-events__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
}

.page-my-events__action-form {
  margin: 0;
}

.page-my-events__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-my-events__btn--outline {
  background: transparent;
  border-color: var(--color-border, rgba(0, 0, 0, 0.2));
  color: var(--color-text, #1f2937);
}

.page-my-events__btn--outline:hover {
  background: var(--color-surface-alt, #f9fafb);
  border-color: var(--color-primary, #3b82f6);
  color: var(--color-primary, #3b82f6);
}

.page-my-events__btn--primary {
  background: var(--color-primary, #3b82f6);
  border-color: var(--color-primary, #3b82f6);
  color: #fff;
}

.page-my-events__btn--primary:hover {
  background: var(--color-primary-dark, #2563eb);
  border-color: var(--color-primary-dark, #2563eb);
}

.page-my-events__btn-icon {
  flex-shrink: 0;
}

.page-my-events__btn:focus-visible {
  outline: 2px solid var(--color-primary, #3b82f6);
  outline-offset: 2px;
}

.page-my-events__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
}

.page-my-events__pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-primary, #3b82f6);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  transition: all 0.2s ease;
}

.page-my-events__pagination-link:hover {
  background: var(--color-primary, #3b82f6);
  border-color: var(--color-primary, #3b82f6);
  color: #fff;
}

.page-my-events__pagination-info {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
}

.page-my-events__empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-surface-alt, #f9fafb);
}

.page-my-events__empty-icon {
  color: var(--color-text-muted, #6b7280);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.page-my-events__empty-text {
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 1.5rem 0;
}

/* Focus-visible */
.page-my-events__nav-link:focus-visible,
.page-my-events__pagination-link:focus-visible {
  outline: 2px solid var(--color-primary, #3b82f6);
  outline-offset: 2px;
}

.page-my-events__card-link:focus-visible {
  outline: 2px solid var(--color-primary, #3b82f6);
  outline-offset: 2px;
  text-decoration: underline;
}

/* Dark mode */
.dark-mode .page-my-events__title {
  color: var(--color-text-primary, #f1f1f1);
}

.dark-mode .page-my-events__nav-link {
  color: var(--color-text-primary, #e5e7eb);
  background: var(--color-surface-alt, rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .page-my-events__nav-link:hover {
  background: var(--color-surface, rgba(255, 255, 255, 0.1));
}

.dark-mode .page-my-events__nav-link--active {
  color: #fff;
}

.dark-mode .page-my-events__map {
  background: var(--color-surface-alt, rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .page-my-events__year-title {
  color: var(--color-text-primary, #f1f1f1);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .page-my-events__card {
  background: var(--color-surface, rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .page-my-events__card-title {
  color: var(--color-text-primary, #f1f1f1);
}

.dark-mode .page-my-events__card-meta {
  color: var(--color-text-muted, #9ca3af);
}

.dark-mode .page-my-events__card-actions {
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .page-my-events__btn--outline {
  color: var(--color-text-primary, #e5e7eb);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .page-my-events__btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .page-my-events__pagination-link {
  color: var(--color-primary, #3b82f6);
  background: var(--color-surface, rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .page-my-events__pagination-info {
  color: var(--color-text-muted, #9ca3af);
}

.dark-mode .page-my-events__empty {
  background: var(--color-surface-alt, rgba(255, 255, 255, 0.05));
}

.dark-mode .page-my-events__empty-icon {
  color: var(--color-text-muted, #9ca3af);
}

@media (prefers-reduced-motion: reduce) {
  .page-my-events__nav-link,
  .page-my-events__card,
  .page-my-events__btn,
  .page-my-events__pagination-link {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Helper Detail (Mutual Aid)
   -------------------------------------------------------------------------- */
.helper-detail {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.helper-detail .breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.helper-detail .breadcrumb a {
  color: var(--color-primary, #1e40af);
  text-decoration: none;
}

/* Emergency banner */
.helper-detail__emergency {
  background: #fef2f2;
  border: 2px solid #dc2626;
  border-radius: var(--radius-md, 8px);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.helper-detail__emergency h2 {
  color: #991b1b;
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}
.helper-detail__emergency p {
  color: #7f1d1d;
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
}
.helper-detail__emergency-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Call / action buttons */
.helper-detail__call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm, 4px);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.helper-detail__call-btn--emergency {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.helper-detail__call-btn--emergency:hover {
  background: #b91c1c;
}
.helper-detail__call-btn--primary {
  background: var(--color-primary, #1e40af);
  color: #fff;
  border-color: var(--color-primary, #1e40af);
}
.helper-detail__call-btn--primary:hover {
  opacity: 0.9;
}
.helper-detail__call-btn--whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.helper-detail__call-btn--whatsapp:hover {
  background: #1da851;
}

/* Club contacts */
.helper-detail__club-contacts {
  background: var(--color-surface-alt, #f8f9fa);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.helper-detail__club-contacts h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
}
.helper-detail__club-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.helper-detail__club-contact:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.helper-detail__club-contact-name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.helper-detail__club-contact-name small {
  font-weight: 400;
  color: var(--color-text-muted, #6b7280);
}

/* Restricted view (non-members) */
.helper-detail__restricted {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.helper-detail__restricted h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
}
.helper-detail__restricted p {
  margin: 0 0 1rem 0;
  color: var(--color-text-muted, #6b7280);
}
.helper-detail__steps {
  margin-bottom: 1.5rem;
}
.helper-detail__steps h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}
.helper-detail__steps ol {
  padding-left: 1.5rem;
  margin: 0;
}
.helper-detail__steps ol li {
  padding: 0.25rem 0;
  line-height: 1.5;
}

/* Profile header */
.helper-detail__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.helper-detail__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}
.helper-detail__header h1 {
  margin: 0 0 0.25rem 0;
}
.helper-detail__meta {
  color: var(--color-text-muted, #6b7280);
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.helper-detail__radius-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Quick actions */
.helper-detail__quick-actions {
  background: var(--color-surface-alt, #f8f9fa);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.helper-detail__quick-actions h2 {
  width: 100%;
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
}

/* Info sections */
.helper-detail__info-section {
  background: var(--color-surface-alt, #f8f9fa);
  padding: 1.25rem;
  border-radius: var(--radius-md, 8px);
  margin-bottom: 1.5rem;
}
.helper-detail__info-section h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
}
.helper-detail__info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.helper-detail__info-row:last-child {
  border-bottom: none;
}
.helper-detail__info-label {
  font-weight: 600;
  font-size: 0.9rem;
}
.helper-detail__info-value {
  font-size: 0.9rem;
}

/* Guidance section */
.helper-detail__guidance {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md, 8px);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.helper-detail__guidance h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: #1e40af;
}
.helper-detail__guidance ol {
  padding-left: 1.5rem;
  margin: 0;
}
.helper-detail__guidance ol li {
  padding: 0.375rem 0;
  line-height: 1.5;
}

/* Actions row */
.helper-detail__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Dark mode */
.dark-mode .helper-detail__emergency {
  background: #450a0a;
  border-color: #991b1b;
}
.dark-mode .helper-detail__emergency h2 {
  color: #fca5a5;
}
.dark-mode .helper-detail__emergency p {
  color: #fecaca;
}
.dark-mode .helper-detail__guidance {
  background: #1e3a5f;
  border-color: #2563eb;
}
.dark-mode .helper-detail__guidance h3 {
  color: #93c5fd;
}
.dark-mode .helper-detail__radius-badge {
  background: #1e3a5f;
  color: #93c5fd;
}
.dark-mode .event-detail__status--eventscheduled { background: #064e3b; color: #6ee7b7; }
.dark-mode .event-detail__status--eventcancelled { background: #7f1d1d; color: #fca5a5; }
.dark-mode .event-detail__status--eventpostponed { background: #78350f; color: #fcd34d; }
.dark-mode .event-detail__status--eventmovedonline { background: #1e3a5f; color: #93c5fd; }
.dark-mode .comments-section__item {
  border-color: rgba(255,255,255,0.1);
}
.dark-mode .interest-section__btn {
  border-color: rgba(255,255,255,0.15);
}
.dark-mode .comments-section__delete-btn {
  color: #f87171;
}
.dark-mode .interest-section__btn--remove {
  border-color: #f87171;
  color: #f87171;
}

@media (max-width: 480px) {
  .helper-detail__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .helper-detail__meta {
    justify-content: center;
  }
  .helper-detail__emergency-numbers {
    flex-direction: column;
  }
  .helper-detail__call-btn {
    justify-content: center;
    width: 100%;
  }
  .helper-detail__quick-actions {
    flex-direction: column;
  }
  .helper-detail__quick-actions .btn,
  .helper-detail__quick-actions .helper-detail__call-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Geocoder Widget — structural layout
   -------------------------------------------------------------------------- */
.geocoder {
  position: relative;
  margin-bottom: 1rem;
}
.geocoder__search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.geocoder__search-input {
  flex: 1;
  min-width: 0;
}
.geocoder__locate-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
}
.geocoder__locate-btn svg {
  display: block;
}
.geocoder__suggestions {
  position: absolute;
  z-index: 1000;
  left: 0;
  right: 0;
  max-height: 14rem;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0,0,0,0.2));
  border-radius: var(--radius-sm, 4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.geocoder__suggestion {
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
}
.geocoder__suggestion:last-child {
  border-bottom: none;
}
.geocoder__suggestion:hover,
.geocoder__suggestion:focus {
  background: var(--color-surface-alt, #f5f5f5);
  outline: none;
}
.geocoder__status {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #666);
  min-height: 1.25rem;
  padding: 0.25rem 0;
}
.geocoder__map {
  height: 300px;
  border-radius: var(--radius-sm, 4px);
  border: 1px solid var(--color-border, rgba(0,0,0,0.15));
  margin-bottom: 0.5rem;
  z-index: 1;
}
.geocoder__manual-toggle {
  display: inline-block;
  background: none;
  border: none;
  color: var(--color-primary, #1a73e8);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.25rem 0;
  text-decoration: underline;
  margin-bottom: 0.5rem;
}
.geocoder__manual-toggle:hover {
  opacity: 0.8;
}
.geocoder__manual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.geocoder__manual-field .form-label {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}
.geocoder__coord-input {
  font-variant-numeric: tabular-nums;
}

/* Dark mode */
.dark-mode .geocoder__suggestions {
  background: var(--color-surface, #1e1e1e);
  border-color: var(--color-border, rgba(255,255,255,0.15));
}
.dark-mode .geocoder__suggestion:hover,
.dark-mode .geocoder__suggestion:focus {
  background: var(--color-surface-alt, #2a2a2a);
}
.dark-mode .geocoder__map {
  border-color: var(--color-border, rgba(255,255,255,0.15));
}

@media (max-width: 480px) {
  .geocoder__manual-row {
    grid-template-columns: 1fr;
  }
  .geocoder__map {
    height: 220px;
  }
}

/* --------------------------------------------------------------------------
   Mutual Aid Page — search, map, grid, cards, emergency
   -------------------------------------------------------------------------- */
.aid-page__title {
  margin-bottom: 0.5rem;
}
.aid-page__intro {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Search bar */
.aid-search {
  position: relative;
  margin-bottom: 1.5rem;
}
.aid-search__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.aid-search__input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.aid-search__input {
  width: 100%;
}
.aid-search__locate-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
}
.aid-search__locate-btn svg {
  display: block;
}
.aid-search__radius {
  flex-shrink: 0;
}
.aid-search__radius-select {
  min-width: 90px;
  height: 100%;
}
.aid-search__submit {
  flex-shrink: 0;
}
.aid-search__status {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #666);
  min-height: 1.25rem;
  padding: 0.25rem 0;
}
.aid-search__suggestions {
  position: absolute;
  z-index: 1000;
  left: 0;
  right: 0;
  max-height: 14rem;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0,0,0,0.2));
  border-radius: var(--radius-sm, 4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.aid-search__suggestion {
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
}
.aid-search__suggestion:last-child {
  border-bottom: none;
}
.aid-search__suggestion:hover,
.aid-search__suggestion:focus {
  background: var(--color-surface-alt, #f5f5f5);
  outline: none;
}
.aid-search__results-summary {
  font-size: 0.9375rem;
  color: var(--color-text-primary, #1f2937);
  background: var(--color-surface-alt, #f0f4f8);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-sm, 6px);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.aid-search__clear {
  margin-left: auto;
  font-size: 0.8125rem;
}

/* Map */
.aid-map {
  height: 400px;
  border-radius: var(--radius-sm, 4px);
  border: 1px solid var(--color-border, rgba(0,0,0,0.15));
  margin-bottom: 1.5rem;
  z-index: 1;
}

/* Helpers grid */
.aid-grid__heading {
  margin-bottom: 1rem;
}
.aid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.aid-grid .aid-card {
  display: flex;
  flex-direction: column;
}
.aid-grid__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted, #6b7280);
}

/* Card */
.aid-card {
  position: relative;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-sm, 8px);
  padding: 1.25rem;
  background: var(--color-surface, #fff);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.aid-card--link {
  cursor: pointer;
}
.aid-card--link:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-color: var(--color-primary, #1a73e8);
  transform: translateY(-2px);
}
.aid-card--link:has(.aid-card__title-link:focus-visible) {
  outline: 2px solid var(--color-primary, #1a73e8);
  outline-offset: 2px;
}
.aid-card__title-link {
  text-decoration: none;
  color: inherit;
}
.aid-card__title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.aid-card__title-link:focus-visible {
  outline: none;
}
.aid-card__action-link {
  position: relative;
  z-index: 1;
}
.aid-card--federated {
  border-left: 3px solid #f57c00;
}
.aid-card__source-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f57c00;
  background: rgba(245,124,0,0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.aid-card__name {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}
.aid-card__icon {
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.aid-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 0.75rem;
}
.aid-card__city {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.aid-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: var(--color-surface-alt, #dbeafe);
  color: var(--color-primary, #1e40af);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.aid-card__distance {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.aid-card__notes {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted, #6b7280);
}
.aid-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.aid-card__detail-label {
  pointer-events: none;
}
.btn--sm {
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
}

/* Emergency contacts */
.aid-emergency {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm, 8px);
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.aid-emergency__title {
  color: #991b1b;
  margin-top: 0;
}
.aid-emergency__item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #fecaca;
}
.aid-emergency__item:last-child {
  border-bottom: none;
}
.aid-emergency__phone {
  font-weight: 600;
}

/* Pagination */
.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pagination-nav a,
.pagination-nav span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border, #ccc);
  border-radius: var(--radius-sm, 4px);
  text-decoration: none;
  font-size: 0.875rem;
}
.pagination-nav .current {
  background: var(--color-primary, #1e40af);
  color: #fff;
  border-color: var(--color-primary, #1e40af);
}

/* Dark mode */
/* Dark mode — aid cards & search */
.dark-mode .aid-card {
  background: var(--color-surface, #1e1e1e);
  border-color: var(--color-border, rgba(255,255,255,0.15));
}
.dark-mode .aid-card--link:hover {
  border-color: var(--color-primary, #60a5fa);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.dark-mode .aid-card--federated {
  border-left-color: #f57c00;
}
.dark-mode .aid-card__badge {
  background: rgba(21,101,192,0.25);
  color: #93c5fd;
}
.dark-mode .aid-card__distance {
  background: rgba(46,125,50,0.25);
  color: #81c784;
}
.dark-mode .aid-card__source-badge {
  background: rgba(245,124,0,0.2);
  color: #ffb74d;
}
.dark-mode .aid-card__icon {
  opacity: 0.7;
}
.dark-mode .aid-emergency {
  background: rgba(254,202,202,0.08);
  border-color: rgba(254,202,202,0.2);
}
.dark-mode .aid-emergency__title {
  color: #ef9a9a;
}
.dark-mode .aid-emergency__phone {
  color: #ef9a9a;
}
.dark-mode .aid-search__results-summary {
  background: var(--color-surface-alt, #2a2a2a);
  border-color: var(--color-border, rgba(255,255,255,0.15));
  color: var(--color-text-primary, #e5e7eb);
}
.dark-mode .aid-search__suggestions {
  background: var(--color-surface, #1e1e1e);
  border-color: var(--color-border, rgba(255,255,255,0.15));
}
.dark-mode .aid-search__suggestion:hover,
.dark-mode .aid-search__suggestion:focus {
  background: var(--color-surface-alt, #2a2a2a);
}
.dark-mode .aid-map {
  border-color: var(--color-border, rgba(255,255,255,0.15));
}

/* Dark mode — helper detail page */
.dark-mode .helper-detail__emergency {
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.4);
}
.dark-mode .helper-detail__emergency h2 {
  color: #fca5a5;
}
.dark-mode .helper-detail__emergency p {
  color: #fca5a5;
}
.dark-mode .helper-detail__call-btn--emergency {
  background: #b91c1c;
  border-color: #b91c1c;
}
.dark-mode .helper-detail__club-contacts {
  background: var(--color-surface-alt, #2a2a2a);
  border-color: var(--color-border, rgba(255,255,255,0.15));
}
.dark-mode .helper-detail__club-contact {
  border-bottom-color: var(--color-border, rgba(255,255,255,0.1));
}
.dark-mode .helper-detail__restricted {
  background: var(--color-surface, #1e1e1e);
  border-color: var(--color-border, rgba(255,255,255,0.15));
}
.dark-mode .helper-detail__radius-badge {
  background: rgba(21,101,192,0.25);
  color: #93c5fd;
}
.dark-mode .helper-detail__quick-actions {
  background: var(--color-surface-alt, #2a2a2a);
  border-color: var(--color-border, rgba(255,255,255,0.15));
}
.dark-mode .helper-detail__info-section {
  background: var(--color-surface-alt, #2a2a2a);
}
.dark-mode .helper-detail__info-row {
  border-bottom-color: var(--color-border, rgba(255,255,255,0.1));
}
.dark-mode .helper-detail__guidance {
  background: rgba(30,64,175,0.1);
  border-color: rgba(96,165,250,0.3);
}
.dark-mode .helper-detail__guidance h3 {
  color: #93c5fd;
}

/* Map popup */
.aid-popup {
  min-width: 180px;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.aid-popup__name {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}
.aid-popup__meta {
  color: var(--color-text-muted, #666);
  margin-bottom: 0.25rem;
}
.aid-popup__notes {
  font-size: 0.75rem;
  color: var(--color-text-muted, #888);
  margin-bottom: 0.375rem;
}
.aid-popup__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #f57c00;
  background: rgba(245,124,0,0.1);
  padding: 0.0625rem 0.375rem;
  border-radius: 9999px;
  margin-bottom: 0.375rem;
}
.aid-popup__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.375rem;
  padding-top: 0.375rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.aid-popup__link {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary, #1565c0);
}
.aid-popup__link:hover {
  text-decoration: underline;
}
.aid-popup__link--primary {
  color: #fff;
  background: var(--color-primary, #1565c0);
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-sm, 4px);
}
.aid-popup__link--primary:hover {
  opacity: 0.9;
  text-decoration: none;
}

@media (max-width: 640px) {
  .aid-search__row {
    flex-direction: column;
  }
  .aid-search__radius-select {
    width: 100%;
  }
  .aid-map {
    height: 280px;
  }
  .aid-grid {
    grid-template-columns: 1fr;
  }
}


/* =====================================================================
   PLACES — Index, Detail, Cards, Routes
   ===================================================================== */

/* --- Places Index --- */
.page-places {
  padding: 3rem 0 4rem;
}

.page-places__header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-places__title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-places__intro {
  max-width: 720px;
  margin-inline: auto;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.page-places__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.page-places__filters .btn--active {
  background: var(--color-secondary);
  color: var(--color-primary);
  pointer-events: none;
}

.page-places__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .page-places__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-places__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-places__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem 0;
}


/* --- Place Card (shared pattern with event-card, news-card) --- */
.place-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-alt);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.place-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.place-card:has(.place-card__link:focus-visible) {
  outline: 3px solid var(--color-accent, #0066FF);
  outline-offset: 2px;
}

.place-card__link:focus-visible {
  outline: none;
}

.place-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.place-card__image {
  position: relative;
  overflow: hidden;
}

.place-card__image img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.place-card:hover .place-card__image img {
  transform: scale(1.05);
}

.place-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  z-index: 1;
  background: var(--color-secondary);
  color: #fff;
}

.place-card__content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.place-card__category {
  display: inline-block;
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.place-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  color: var(--color-text-primary);
}

.place-card__city {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.place-card__city i {
  margin-right: 0.25rem;
}

.place-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: auto;
}


/* --- Place Detail --- */
.page-place-detail {
  padding: 0 0 4rem;
}

.page-place-detail__cover {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.page-place-detail__cover-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-place-detail__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

.page-place-detail__header {
  margin-bottom: 2rem;
}

.page-place-detail__category {
  display: inline-block;
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.page-place-detail__title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-place-detail__intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.page-place-detail__layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .page-place-detail__layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-place-detail__layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.page-place-detail__main {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-place-detail__sidebar {
  min-width: 0;
}

.page-place-detail__map-section {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.page-place-detail__body {
  line-height: 1.8;
  color: var(--color-text-primary);
}

/* Info card — reuses event detail info card pattern */
.page-place-detail__info-card {
  background: var(--color-surface-alt);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
  padding: 2rem;
}

.page-place-detail__info-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.page-place-detail__info-item {
  margin-bottom: 1.5rem;
}

.page-place-detail__info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}

.page-place-detail__info-label i {
  margin-right: 0.35rem;
}

.page-place-detail__info-value {
  font-size: 0.95rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-place-detail__info-value a {
  color: var(--color-accent);
}

/* Gallery grid */
.page-place-detail__gallery {
  margin-top: 2.5rem;
}

.page-place-detail__gallery h2 {
  margin-bottom: 1.25rem;
}

.page-place-detail__gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .page-place-detail__gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-place-detail__gallery-item {
  border-radius: 8px;
  overflow: hidden;
}

.page-place-detail__gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.page-place-detail__gallery-item:hover img {
  transform: scale(1.05);
}

.page-place-detail__gallery-item:focus-within {
  outline: 3px solid var(--color-accent, #0066FF);
  outline-offset: 2px;
}

.page-place-detail__gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
}

/* Tags */
.page-place-detail__tags {
  margin-top: 1.5rem;
}

.page-place-detail__tags-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.page-place-detail__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.page-place-detail__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.1);
  color: var(--color-text-muted);
}


/* --- Route Detail --- */
.page-route-detail {
  padding: 0 0 4rem;
}

.page-route-detail__cover {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.page-route-detail__cover-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-route-detail__header {
  margin-bottom: 2rem;
}

.page-route-detail__title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-route-detail__intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.page-route-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-alt);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 8px;
}

.page-route-detail__meta-item {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-route-detail__meta-item i {
  color: var(--color-secondary);
}

.page-route-detail__difficulty[data-level="easy"] {
  color: #22C55E;
  font-weight: 600;
}
.page-route-detail__difficulty[data-level="medium"] {
  color: var(--color-secondary);
  font-weight: 600;
}
.page-route-detail__difficulty[data-level="hard"] {
  color: #EF4444;
  font-weight: 600;
}

.page-route-detail__body {
  line-height: 1.8;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
}

.page-route-detail__stops {
  margin-bottom: 2rem;
}

.page-route-detail__stops h2 {
  margin-bottom: 1rem;
}

.page-route-detail__stops-list {
  padding-left: 1.5rem;
}

.page-route-detail__stop-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  line-height: 1.5;
}

.page-route-detail__stop-item a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.page-route-detail__stop-item a:hover {
  text-decoration: underline;
}

.page-route-detail__stop-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.page-route-detail__download {
  margin-top: 2rem;
}

.page-route-detail__download .btn i {
  margin-right: 0.5rem;
}


/* --- Map Widget (shared Leaflet) --- */
#place-map {
  border: 1px solid rgba(128, 128, 128, 0.15);
  z-index: 0;
}

#place-map .leaflet-popup-content a {
  color: var(--color-accent);
  font-weight: 600;
}

/* --- Unsubscribe Page --- */
.page-unsubscribe__container {
  max-width: 600px;
  margin: 0 auto;
}
.page-unsubscribe__body {
  margin-top: 1.5rem;
}
.page-unsubscribe__form {
  margin: 1.5rem 0;
}
.page-unsubscribe__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.page-unsubscribe__alert p {
  margin: 0;
}

/* --- Verification Page --- */
.page-verification__container {
  max-width: 600px;
  margin: 0 auto;
}
.page-verification__description {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}
.page-verification__form-wrapper {
  margin-top: 2rem;
}
.page-verification__field {
  margin-bottom: 1.25rem;
}
.page-verification__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.page-verification__help {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.page-verification__errors {
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.page-verification__errors ul {
  margin: 0;
  padding-left: 1.25rem;
}
.page-verification__actions {
  margin-top: 1.5rem;
}
.page-verification__submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
