/* ═══════════════════════════════════════════
   APEC — Empowering Asian Pacific Communities
   UC Riverside Student Organization
   ═══════════════════════════════════════════ */

/* :::SECTION:Design Tokens::: */
:root {
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-white);
  background: var(--wp--preset--color--c-navy);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--wp--preset--color--c-teal);
  color: var(--wp--preset--color--c-navy);
}

/* :::SECTION:Scroll Animations::: */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

.js .animate-on-scroll {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.js .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.js .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.js .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.js .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* :::SECTION:Sticky Header::: */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 31, 55, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 31, 55, 0.95);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  max-width: 1400px;
  margin: 0 auto;
}

.hero-logo-group {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wp--preset--color--c-blue) 0%, var(--wp--preset--color--c-teal) 100%);
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--lg);
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--c-navy);
  font-weight: 900;
}

.hero-logo-name {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--xl);
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--c-white-pure);
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--40);
}

.hero-nav-link {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: var(--wp--preset--color--c-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.hero-nav-link:hover,
.hero-nav-link:focus {
  color: var(--wp--preset--color--c-blue);
}

.hero-join-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-body);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  color: var(--wp--preset--color--c-navy);
  background: var(--wp--preset--color--c-teal);
  border: none;
  padding: 0.625rem var(--wp--preset--spacing--30);
  border-radius: 100px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.hero-join-btn:hover,
.hero-join-btn:focus {
  background: var(--wp--preset--color--c-teal-light);
  transform: scale(1.04);
}

.hero-join-btn::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-color: var(--wp--preset--color--c-navy);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}

@media (max-width: 768px) {
  .header-inner {
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
  }
  .hero-nav-link {
    display: none;
  }
  .hero-nav {
    gap: var(--wp--preset--spacing--30);
  }
}

@media (max-width: 480px) {
  .hero-logo-name {
    font-size: var(--wp--preset--font-size--base);
  }
}

/* :::SECTION:Hero::: */
.hero {
  display: grid;
  grid-template-rows: auto auto;
  gap: var(--wp--preset--spacing--50);
  min-height: 75vh;
  background-color: var(--wp--preset--color--c-navy);
  font-family: var(--font-body);
  color: var(--wp--preset--color--c-white);
  overflow: clip;
  position: relative;
}

/* Subtle noise texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
}

/* Ambient gradient glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(74, 184, 214, 0.08) 0%, rgba(14, 168, 154, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 0;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) 0;
  z-index: 5;
}

/* Image strip */
.hero-image-strip {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto var(--wp--preset--spacing--30);
  height: clamp(160px, 22vw, 280px);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  animation: heroImageReveal 1s ease-out 0.3s both;
}
.hero-image-strip::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
  background:
    linear-gradient(to right, var(--wp--preset--color--c-navy) 0%, transparent 15%, transparent 85%, var(--wp--preset--color--c-navy) 100%),
    linear-gradient(to bottom, rgba(12, 31, 55, 0.15) 0%, rgba(12, 31, 55, 0.35) 100%);
  border-radius: 20px;
}
.hero-image-badge {
      z-index: 2;
      display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  background: rgba(12, 31, 55, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: var(--wp--preset--color--c-blue);
  animation: heroFadeUp 0.8s ease-out 1s both;
}

.hero-image-badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--wp--preset--color--c-teal);
  border-radius: 50%;
  animation: heroPulse 2s ease-in-out infinite;
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  color: var(--wp--preset--color--c-white-pure);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-line-1 {
  display: block;
  animation: heroLineSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-line-2 {
  display: block;
  color: var(--wp--preset--color--c-blue);
  animation: heroLineSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-line-3 {
  display: block;
  animation: heroLineSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

/* Bottom row */
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--wp--preset--spacing--40);
  max-width: 1200px;
  margin: var(--wp--preset--spacing--50) auto 0;
  width: 100%;
  animation: heroFadeUp 0.8s ease-out 0.9s both;
}

.hero-description {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--wp--preset--color--c-muted);
  max-width: 340px;
}

.hero-description strong {
  color: var(--wp--preset--color--c-white);
  font-weight: 600;
}

.hero-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  padding-top: var(--wp--preset--spacing--20);
}

.hero-cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--2xl);
  color: var(--wp--preset--color--c-navy);
  background: var(--wp--preset--color--c-white-pure);
  text-decoration: none;
  padding: 0.85rem var(--wp--preset--spacing--50);
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 0 rgba(74, 184, 214, 0);
}

.hero-cta-main:hover,
.hero-cta-main:focus {
  background: var(--wp--preset--color--c-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 184, 214, 0.3);
}

.hero-cta-sub {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-muted);
  font-weight: 500;
}

.hero-event-card {
  justify-self: end;
  max-width: 280px;
  background: rgba(19, 45, 79, 0.6);
  border: 1px solid rgba(74, 184, 214, 0.12);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--30);
  backdrop-filter: blur(6px);
}

.hero-event-label {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--c-teal);
  margin-bottom: var(--wp--preset--spacing--20);
}

.hero-event-title {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  color: var(--wp--preset--color--c-white-pure);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.hero-event-meta {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.5;
}

/* Marquee strip */
.hero-marquee {
  overflow: hidden;
  background: var(--wp--preset--color--c-teal);
  padding: var(--wp--preset--spacing--20) 0;
  z-index: 10;
  align-self: end;
}
.hero-marquee-track {
      display: flex;
      gap: var(--wp--preset--spacing--40);
      white-space: nowrap;
      animation: heroMarquee 20s linear infinite;
      width: max-content;
    }

.hero-marquee-item {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wp--preset--color--c-navy);
padding: 0;
      display: inline-flex;
      align-items: center;
      gap: var(--wp--preset--spacing--40);
    }
    
    .hero-marquee-item::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--wp--preset--color--c-navy);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero animations */
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroLineSlide {
  from { opacity: 0; transform: translateY(40px) skewY(2deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

@keyframes heroImageReveal {
  from { opacity: 0; transform: scale(1.06); clip-path: inset(8% 8% 8% 8% round 20px); }
  to { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0 round 20px); }
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes heroMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero responsive — Tablet */
@media (max-width: 1024px) {
  .hero {
    --font-size-display: clamp(2.8rem, 8vw, 5.5rem);
  }

  .hero-content {
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) 0;
  }

  .hero-bottom {
    grid-template-columns: 1fr 1fr;
    gap: var(--wp--preset--spacing--30);
  }

  .hero-cta-area {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero-description {
    max-width: none;
  }

  .hero-event-card {
    justify-self: start;
    max-width: none;
  }
}

/* Hero responsive — Mobile */
@media (max-width: 768px) {
  .hero {
    --font-size-display: clamp(2.4rem, 11vw, 4rem);
    gap: var(--wp--preset--spacing--40);
  }

  .hero-content {
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 0;
  }

  .hero-image-strip {
    height: 140px;
    border-radius: 14px;
  }

  .hero-image-strip::after {
    background:
      linear-gradient(to right, var(--wp--preset--color--c-navy) 0%, transparent 10%, transparent 90%, var(--wp--preset--color--c-navy) 100%),
      linear-gradient(to bottom, rgba(12, 31, 55, 0.1) 0%, rgba(12, 31, 55, 0.4) 100%);
    border-radius: 14px;
  }

  .hero-headline {
    line-height: 0.95;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
    margin-top: var(--wp--preset--spacing--40);
    text-align: center;
  }

  .hero-description {
    max-width: none;
    text-align: center;
    order: 2;
  }

  .hero-cta-area {
    order: 1;
  }

  .hero-cta-main {
    font-size: var(--wp--preset--font-size--xl);
    padding: 0.75rem var(--wp--preset--spacing--40);
  }

  .hero-event-card {
    order: 3;
    justify-self: center;
    text-align: left;
    max-width: 320px;
    width: 100%;
  }

  .hero-image-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    --font-size-display: clamp(2rem, 12vw, 3rem);
  }
}


/* :::SECTION:Shared Components::: */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--wp--preset--color--c-teal);
  margin-bottom: var(--wp--preset--spacing--30);
}


/* :::SECTION:About::: */
.about {
  background: var(--wp--preset--color--c-navy-mid);
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  overflow: clip;
}

.about::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(14, 168, 154, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-intro {
  max-width: 900px;
  margin: 0 auto var(--wp--preset--spacing--60);
  text-align: center;
}

.about-headline {
  font-family: var(--font-body);
  font-size: var(--wp--preset--font-size--huge);
  font-weight: 700;
  line-height: 1.2;
  color: var(--wp--preset--color--c-white-pure);
}

.about-headline em {
  font-style: normal;
  color: var(--wp--preset--color--c-blue);
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--40);
  max-width: 1100px;
  margin: 0 auto var(--wp--preset--spacing--60);
  align-items: stretch;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

.about-text p {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.75;
}

.about-image {
  border-radius: 20px;
  min-height: 320px;
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(74, 184, 214, 0.15);
  pointer-events: none;
}

/* Unity Points */
.unity-section {
  max-width: 1100px;
  margin: 0 auto;
}

.unity-heading {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--3xl);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--c-white-pure);
  margin-bottom: var(--wp--preset--spacing--50);
  text-align: center;
}

.unity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wp--preset--spacing--30);
}

.unity-card {
  background: rgba(12, 31, 55, 0.5);
  border: 1px solid rgba(74, 184, 214, 0.08);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.unity-card:hover {
  border-color: rgba(14, 168, 154, 0.3);
  transform: translateY(-4px);
}

.unity-number {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--display);
  line-height: 0.85;
  color: rgba(74, 184, 214, 0.08);
  display: block;
  margin-bottom: var(--wp--preset--spacing--20);
  letter-spacing: -0.04em;
}

.unity-title {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--c-white-pure);
  margin-bottom: var(--wp--preset--spacing--20);
  line-height: 1.2;
}

.unity-desc {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .unity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  .about-body {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 240px;
    order: -1;
  }

  .about-headline {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .unity-grid {
    grid-template-columns: 1fr;
  }

  .unity-number {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}


/* :::SECTION:Resources::: */
.resources {
  background: var(--wp--preset--color--c-navy);
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  overflow: clip;
}

.resources::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 45%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(30, 91, 168, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.resources-header {
  max-width: 700px;
  margin: 0 auto var(--wp--preset--spacing--60);
  text-align: center;
}

.resources-headline {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--huge);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--c-white-pure);
  line-height: 1.1;
  margin-bottom: var(--wp--preset--spacing--30);
}

.resources-sub {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.6;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--40);
  max-width: 1100px;
  margin: 0 auto;
}

.resource-card {
  background: rgba(19, 45, 79, 0.5);
  border: 1px solid rgba(74, 184, 214, 0.08);
  border-radius: 20px;
  padding: var(--wp--preset--spacing--40);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.3s ease;
  backdrop-filter: blur(6px);
}

.resource-card:hover {
  transform: translateY(-6px);
}

.resource-card--lgbtq:hover { border-color: rgba(74, 184, 214, 0.4); }
.resource-card--mental:hover { border-color: rgba(14, 168, 154, 0.4); }
.resource-card--ice:hover { border-color: rgba(30, 91, 168, 0.4); }

.resource-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.resource-card--lgbtq .resource-card-accent { background: var(--wp--preset--color--c-blue); }
.resource-card--mental .resource-card-accent { background: var(--wp--preset--color--c-teal); }
.resource-card--ice .resource-card-accent { background: var(--wp--preset--color--c-royal); }

/* Resource card icons via CSS masks */
.resource-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: var(--wp--preset--spacing--30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-card-icon::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.resource-icon--lgbtq {
  background: rgba(74, 184, 214, 0.15);
}
.resource-icon--lgbtq::before {
  background-color: var(--wp--preset--color--c-blue);
  mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
  -webkit-mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.resource-icon--mental {
  background: rgba(14, 168, 154, 0.15);
}
.resource-icon--mental::before {
  background-color: var(--wp--preset--color--c-teal);
  mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
  -webkit-mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}

.resource-icon--ice {
  background: rgba(30, 91, 168, 0.15);
}
.resource-icon--ice::before {
  background-color: var(--wp--preset--color--c-royal);
  mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  -webkit-mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.resource-card-title {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--c-white-pure);
  margin-bottom: var(--wp--preset--spacing--20);
  line-height: 1.2;
}

.resource-card-desc {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.65;
  margin-bottom: var(--wp--preset--spacing--30);
}

.resource-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.resource-links li {
  position: relative;
  padding-left: var(--wp--preset--spacing--30);
}

.resource-links li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wp--preset--color--c-teal);
  opacity: 0.5;
}

.resource-links a {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-blue);
  transition: color 0.2s ease;
  line-height: 1.6;
}

.resource-links a:hover,
.resource-links a:focus {
  color: var(--wp--preset--color--c-teal-light);
}

@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .resources {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  .resources-headline {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}


/* :::SECTION:Events::: */
.events {
  background: var(--wp--preset--color--c-teal);
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
}

.events::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

.events-top {
  max-width: 1100px;
  margin: 0 auto var(--wp--preset--spacing--50);
}

.events-headline {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--huge);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--c-navy);
  line-height: 1.1;
}

.events-headline-accent {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: var(--wp--preset--color--c-navy);
  opacity: 0.2;
}

.events-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--40);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.event-featured {
  background: var(--wp--preset--color--c-navy);
  border-radius: 20px;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
  position: relative;
  overflow: hidden;
}

.event-featured::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(74, 184, 214, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.event-featured-badge {
  display: inline-block;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--c-navy);
  background: var(--wp--preset--color--c-teal);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: var(--wp--preset--spacing--30);
}

.event-featured-title {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--3xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--c-white-pure);
  margin-bottom: var(--wp--preset--spacing--20);
  line-height: 1.1;
}

.event-featured-detail {
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.65;
  margin-bottom: var(--wp--preset--spacing--40);
  max-width: 380px;
}

.event-featured-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: var(--wp--preset--spacing--40);
}

.event-meta-item {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: var(--wp--preset--color--c-white);
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
}

.event-meta-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wp--preset--color--c-blue);
  flex-shrink: 0;
}

.event-rsvp-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-navy);
  background: var(--wp--preset--color--c-white-pure);
  text-decoration: none;
  padding: 0.7rem var(--wp--preset--spacing--40);
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
}

.event-rsvp-btn:hover,
.event-rsvp-btn:focus {
  background: var(--wp--preset--color--c-blue);
  transform: translateY(-2px);
}

/* Event list */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

.event-item {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  background: rgba(12, 31, 55, 0.85);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  transition: transform 0.3s ease, background 0.3s ease;
}

.event-item:hover {
  transform: translateX(6px);
  background: rgba(12, 31, 55, 0.95);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  flex-shrink: 0;
}

.event-date-month {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--c-teal);
  line-height: 1;
}

.event-date-day {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--3xl);
  color: var(--wp--preset--color--c-white-pure);
  line-height: 1;
}

.event-info-title {
  font-family: var(--font-body);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  color: var(--wp--preset--color--c-white-pure);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.event-info-meta {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-muted);
}

@media (max-width: 1024px) {
  .events-layout {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .events {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  .events-headline {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .events-headline-accent {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .event-featured {
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
  }

  .event-item {
    padding: var(--wp--preset--spacing--30);
  }
}


/* :::SECTION:Community::: */
.community {
  background: var(--wp--preset--color--c-navy-mid);
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  overflow: clip;
}

.community::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(74, 184, 214, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.community-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--wp--preset--spacing--60);
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.community-headline {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--huge);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--c-white-pure);
  line-height: 1.1;
  margin-bottom: var(--wp--preset--spacing--30);
}

.community-desc {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.65;
  margin-bottom: var(--wp--preset--spacing--40);
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-white-pure);
  background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
  padding: 0.75rem var(--wp--preset--spacing--40);
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.instagram-btn:hover,
.instagram-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.instagram-icon {
  width: 22px;
  height: 22px;
  display: block;
  background-color: var(--wp--preset--color--c-white-pure);
  mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}

/* Instagram posts grid */
.community-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--30);
}

.insta-post {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.insta-post:hover {
  transform: scale(1.04);
}

.insta-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 55, 0.2);
  transition: background 0.3s ease;
  pointer-events: none;
}

.insta-post:hover .insta-post-overlay {
  background: rgba(14, 168, 154, 0.25);
}

@media (max-width: 1024px) {
  .community-inner {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--50);
    text-align: center;
  }

  .community-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .community {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  .community-headline {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .community-posts {
    gap: var(--wp--preset--spacing--20);
  }
}

@media (max-width: 480px) {
  .community-posts {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* :::SECTION:Join::: */
.join {
  background: var(--wp--preset--color--c-navy);
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  overflow: clip;
}

.join::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(14, 168, 154, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.join-header {
  max-width: 700px;
  margin: 0 auto var(--wp--preset--spacing--50);
  text-align: center;
}

.join-headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--wp--preset--color--c-white-pure);
  line-height: 0.95;
  margin-bottom: var(--wp--preset--spacing--30);
}

.join-headline-sm {
  display: block;
  font-size: var(--wp--preset--font-size--3xl);
  color: var(--wp--preset--color--c-muted);
  letter-spacing: 0.08em;
}

.join-headline-lg {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--c-teal);
}

.join-desc {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

.join-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(19, 45, 79, 0.5);
  border: 1px solid rgba(74, 184, 214, 0.1);
  border-radius: 24px;
  padding: var(--wp--preset--spacing--20);
  overflow: hidden;
}

.join-iframe {
  width: 100%;
  min-height: 900px;
  border: none;
  border-radius: 20px;
  background: var(--wp--preset--color--c-white-pure);
}

@media (max-width: 768px) {
  .join {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  .join-headline-lg {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .join-iframe {
    min-height: 1000px;
  }
}


/* :::SECTION:Footer::: */
.site-footer {
  background: #081627;
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40) 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(74, 184, 214, 0.2), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--wp--preset--spacing--60);
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: var(--wp--preset--spacing--60);
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--3xl);
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--c-white-pure);
  display: block;
  margin-bottom: var(--wp--preset--spacing--20);
}

.footer-tagline {
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.5;
  max-width: 280px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--40);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--c-white-pure);
  margin-bottom: var(--wp--preset--spacing--30);
}

.footer-link {
  display: block;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-muted);
  line-height: 1.8;
  transition: color 0.25s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--wp--preset--color--c-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(139, 164, 191, 0.1);
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  text-align: center;
}

.footer-copy {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--50);
  }

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

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }
}




/* Navigation: site-header is on wp:navigation, which handles its own flex layout */
/* The wp:navigation block with className="site-header header-inner" gets both classes */

:root :where(.site-header) {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

:root :where(.site-header.is-scrolled) {
  background: rgba(12, 31, 55, 0.95);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

:root :where(.header-inner) {
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  max-width: 1400px;
  margin: 0 auto;
}

/* Navigation gap */
:root :where(.site-header .wp-block-navigation__responsive-container-content) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--40);
}

.editor-styles-wrapper .site-header .wp-block-navigation__container {
  display: flex !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .site-header .wp-block-navigation__responsive-container-content {
  display: flex !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .site-header .wp-block-navigation-item + .wp-block-navigation-item {
  margin-left: var(--wp--preset--spacing--40) !important;
}

/* Navigation list bullet reset */
.wp-block-navigation ul,
.wp-block-navigation li,
.wp-block-navigation__container,
.wp-block-navigation-item {
  list-style: none;
  list-style-type: none;
}

/* Hero logo group - site title in nav */
:root :where(.hero-logo-group) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
}

/* Navigation link dual-targeting */
.hero-nav-link,
.wp-block-navigation.site-header .hero-nav-link .wp-block-navigation-item__content {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: var(--wp--preset--color--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.hero-nav-link:hover,
.hero-nav-link:focus,
.wp-block-navigation.site-header .hero-nav-link .wp-block-navigation-item__content:hover,
.wp-block-navigation.site-header .hero-nav-link .wp-block-navigation-item__content:focus {
  color: var(--wp--preset--color--c-blue);
}

/* Hero join button in nav - wrapper reset */
.wp-block-button.hero-join-btn {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Hero join button - inner link styling */
.wp-block-button.hero-join-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-body);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  color: var(--wp--preset--color--c-navy);
  background: var(--wp--preset--color--c-teal);
  border: none;
  padding: 0.625rem var(--wp--preset--spacing--30);
  border-radius: 100px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.wp-block-button.hero-join-btn .wp-block-button__link:hover,
.wp-block-button.hero-join-btn .wp-block-button__link:focus {
  background: var(--wp--preset--color--c-teal-light);
  transform: scale(1.04);
}

/* Arrow pseudo-element: remove from wrapper, apply to inner link */
.wp-block-button.hero-join-btn::after {
  content: none;
}

.wp-block-button.hero-join-btn .wp-block-button__link::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-color: var(--wp--preset--color--c-navy);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}

/* Mobile hamburger button */
@media (max-width: 768px) {
  :root :where(.header-inner) {
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
  }

  .site-header .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    z-index: 110;
    background: transparent;
    border: none;
  }

  .site-header .wp-block-navigation__responsive-container-open svg {
    width: 24px;
    height: 24px;
    fill: var(--wp--preset--color--c-white-pure);
  }

  /* Hide nav links on mobile (they appear in the overlay) */
  .hero-nav-link .wp-block-navigation-item__content {
    font-size: var(--wp--preset--font-size--small);
  }
}

/* Mobile menu theming */
:root :where(.site-header) {
  --mobile-nav-background: var(--wp--preset--color--c-navy);
  --mobile-nav-text: var(--wp--preset--color--c-white-pure);
  --mobile-nav-font-size: var(--wp--preset--font-size--2xl);
  --mobile-nav-gap: 1.5rem;
}



/* Hero section pseudo-elements need z-index context */
:root :where(.hero) {
  position: relative;
  overflow: clip;
}

/* Hero content layout */
:root :where(.hero-content) {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 0;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) 0;
  z-index: 5;
  position: relative;
}

/* Hero image strip */
:root :where(.hero-image-strip) {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto var(--wp--preset--spacing--30);
  height: clamp(160px, 22vw, 280px);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  animation: heroImageReveal 1s ease-out 0.3s both;
}
:root :where(.hero-image-strip)::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
  background:
    linear-gradient(to right, var(--wp--preset--color--c-navy) 0%, transparent 15%, transparent 85%, var(--wp--preset--color--c-navy) 100%),
    linear-gradient(to bottom, rgba(12, 31, 55, 0.15) 0%, rgba(12, 31, 55, 0.35) 100%);
  border-radius: 20px;
      pointer-events: none;
    }
    
    :root :where(.hero-image-strip) .wp-block-cover__inner-container {
      z-index: 2;
    }
    
    /* Hero image badge */
:root :where(.hero-image-badge) {
      z-index: 2;
      display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  background: rgba(12, 31, 55, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: var(--wp--preset--color--c-blue);
  animation: heroFadeUp 0.8s ease-out 1s both;
}

:root :where(.hero-image-badge)::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--wp--preset--color--c-teal);
  border-radius: 50%;
  animation: heroPulse 2s ease-in-out infinite;
}

/* Hero headline */
:root :where(.hero-headline) {
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

:root :where(.hero-line-1) {
  display: block;
  animation: heroLineSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

:root :where(.hero-line-2) {
  display: block;
  color: var(--wp--preset--color--c-blue);
  animation: heroLineSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

:root :where(.hero-line-3) {
  display: block;
  animation: heroLineSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

/* Hero bottom row */
:root :where(.hero-bottom) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--wp--preset--spacing--40);
  max-width: 1200px;
  margin: var(--wp--preset--spacing--50) auto 0;
  width: 100%;
  animation: heroFadeUp 0.8s ease-out 0.9s both;
}

:root :where(.hero-description) {
  max-width: 340px;
}

:root :where(.hero-description) strong {
  color: var(--wp--preset--color--c-white);
  font-weight: 600;
}

:root :where(.hero-cta-area) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  padding-top: var(--wp--preset--spacing--20);
}

/* Hero CTA main button - wrapper reset */
.wp-block-button.hero-cta-main {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Hero CTA main button - inner link */
.wp-block-button.hero-cta-main .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--2xl);
  color: var(--wp--preset--color--c-navy);
  background: var(--wp--preset--color--c-white-pure);
  text-decoration: none;
  padding: 0.85rem var(--wp--preset--spacing--50);
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  /* Derived from --c-blue (#4AB8D6) */
  box-shadow: 0 0 0 0 rgba(74, 184, 214, 0);
}

.wp-block-button.hero-cta-main .wp-block-button__link:hover,
.wp-block-button.hero-cta-main .wp-block-button__link:focus {
  background: var(--wp--preset--color--c-blue);
  transform: translateY(-2px);
  /* Derived from --c-blue (#4AB8D6) */
  box-shadow: 0 8px 30px rgba(74, 184, 214, 0.3);
}

/* Center CTA buttons */
:root :where(.hero-cta-area .wp-block-buttons) {
  justify-content: center;
}

/* Hero event card */
:root :where(.hero-event-card) {
  justify-self: end;
  max-width: 280px;
  /* Derived from --c-navy-mid (#132D4F) */
  background: rgba(19, 45, 79, 0.6);
  /* Derived from --c-blue (#4AB8D6) */
  border: 1px solid rgba(74, 184, 214, 0.12);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--30);
  backdrop-filter: blur(6px);
}

:root :where(.hero-event-label) {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--wp--preset--spacing--20);
}

.editor-styles-wrapper .hero-event-label {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

:root :where(.hero-event-title) {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.editor-styles-wrapper .hero-event-title {
  margin-bottom: 0.3rem !important;
}

:root :where(.hero-event-meta) {
  line-height: 1.5;
}

/* Marquee strip */
:root :where(.hero-marquee) {
  overflow: hidden;
  padding: var(--wp--preset--spacing--20) 0;
  z-index: 10;
  align-self: end;
}
:root :where(.hero-marquee-track) {
      display: flex;
      gap: var(--wp--preset--spacing--40);
      white-space: nowrap;
      animation: heroMarquee 20s linear infinite;
      width: max-content;
    }

:root :where(.hero-marquee-item) {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wp--preset--color--c-navy);
padding: 0;
      display: inline-flex;
      align-items: center;
      gap: var(--wp--preset--spacing--40);
    }
    
    :root :where(.hero-marquee-item)::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--wp--preset--color--c-navy);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero responsive — Tablet */
@media (max-width: 1024px) {
  :root :where(.hero-content) {
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) 0;
  }

  :root :where(.hero-bottom) {
    grid-template-columns: 1fr 1fr;
    gap: var(--wp--preset--spacing--30);
  }

  :root :where(.hero-cta-area) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  :root :where(.hero-description) {
    max-width: none;
  }

  :root :where(.hero-event-card) {
    justify-self: start;
    max-width: none;
  }
}

/* Hero responsive — Mobile */
@media (max-width: 768px) {
  :root :where(.hero-content) {
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 0;
  }

  :root :where(.hero-image-strip) {
    height: 140px;
    border-radius: 14px;
  }

  :root :where(.hero-image-strip)::after {
    background:
      linear-gradient(to right, var(--wp--preset--color--c-navy) 0%, transparent 10%, transparent 90%, var(--wp--preset--color--c-navy) 100%),
      linear-gradient(to bottom, rgba(12, 31, 55, 0.1) 0%, rgba(12, 31, 55, 0.4) 100%);
    border-radius: 14px;
  }

  :root :where(.hero-headline) {
    line-height: 0.95;
  }

  :root :where(.hero-bottom) {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
    margin-top: var(--wp--preset--spacing--40);
    text-align: center;
  }

  :root :where(.hero-description) {
    max-width: none;
    text-align: center;
    order: 2;
  }

  :root :where(.hero-cta-area) {
    order: 1;
  }

  .wp-block-button.hero-cta-main .wp-block-button__link {
    font-size: var(--wp--preset--font-size--xl);
    padding: 0.75rem var(--wp--preset--spacing--40);
  }

  :root :where(.hero-event-card) {
    order: 3;
    justify-self: center;
    text-align: left;
    max-width: 320px;
    width: 100%;
  }

  :root :where(.hero-image-badge) {
    display: none;
  }
}



:root :where(.about) {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  overflow: clip;
}

:root :where(.about)::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50%;
  height: 60%;
  /* Derived from --c-teal (#0EA89A) */
  background: radial-gradient(ellipse, rgba(14, 168, 154, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

:root :where(.about-intro) {
  max-width: 900px;
  margin: 0 auto var(--wp--preset--spacing--60);
  text-align: center;
}

.editor-styles-wrapper .about-intro {
  margin-bottom: var(--wp--preset--spacing--60) !important;
}

:root :where(.about-headline) {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
}

:root :where(.about-headline) em {
  font-style: normal;
  color: var(--wp--preset--color--c-blue);
}

:root :where(.about-body) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--40);
  max-width: 1100px;
  margin: 0 auto var(--wp--preset--spacing--60);
  align-items: stretch;
}

.editor-styles-wrapper .about-body {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--wp--preset--spacing--40) !important;
  margin-bottom: var(--wp--preset--spacing--60) !important;
}

.editor-styles-wrapper .about-body > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.about-text) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .about-text {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--30) !important;
}

:root :where(.about-text) p {
  line-height: 1.75;
}

:root :where(.about-image) {
  border-radius: 20px;
  min-height: 320px;
  position: relative;
}

:root :where(.about-image)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  /* Derived from --c-blue (#4AB8D6) */
  border: 1px solid rgba(74, 184, 214, 0.15);
  pointer-events: none;
}

/* Unity section */
:root :where(.unity-section) {
  max-width: 1100px;
  margin: 0 auto;
}

:root :where(.unity-heading) {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--wp--preset--spacing--50);
}

.editor-styles-wrapper .unity-heading {
  margin-bottom: var(--wp--preset--spacing--50) !important;
}

:root :where(.unity-grid) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .unity-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .unity-grid > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.unity-card) {
  /* Derived from --c-navy (#0C1F37) */
  background: rgba(12, 31, 55, 0.5);
  /* Derived from --c-blue (#4AB8D6) */
  border: 1px solid rgba(74, 184, 214, 0.08);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

:root :where(.unity-card):hover {
  /* Derived from --c-teal (#0EA89A) */
  border-color: rgba(14, 168, 154, 0.3);
  transform: translateY(-4px);
}

:root :where(.unity-number) {
  line-height: 0.85;
  /* Derived from --c-blue (#4AB8D6) */
  color: rgba(74, 184, 214, 0.08);
  display: block;
  margin-bottom: var(--wp--preset--spacing--20);
  letter-spacing: -0.04em;
}

.editor-styles-wrapper .unity-number {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

:root :where(.unity-title) {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--wp--preset--spacing--20);
  line-height: 1.2;
}

.editor-styles-wrapper .unity-title {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

:root :where(.unity-desc) {
  line-height: 1.6;
}

@media (max-width: 1024px) {
  :root :where(.unity-grid) {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-styles-wrapper .unity-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  :root :where(.about) {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  :root :where(.about-body) {
    grid-template-columns: 1fr;
  }

  .editor-styles-wrapper .about-body {
    grid-template-columns: 1fr !important;
  }

  :root :where(.about-image) {
    min-height: 240px;
    order: -1;
  }

  :root :where(.about-headline) {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  :root :where(.unity-grid) {
    grid-template-columns: 1fr;
  }

  .editor-styles-wrapper .unity-grid {
    grid-template-columns: 1fr !important;
  }

  :root :where(.unity-number) {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}



:root :where(.resources) {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  overflow: clip;
}

:root :where(.resources)::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 45%;
  height: 50%;
  /* Derived from --c-royal (#1E5BA8) */
  background: radial-gradient(ellipse, rgba(30, 91, 168, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

:root :where(.resources-header) {
  max-width: 700px;
  margin: 0 auto var(--wp--preset--spacing--60);
  text-align: center;
}

.editor-styles-wrapper .resources-header {
  margin-bottom: var(--wp--preset--spacing--60) !important;
}

:root :where(.resources-headline) {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .resources-headline {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

:root :where(.resources-sub) {
  line-height: 1.6;
}

:root :where(.resources-grid) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--40);
  max-width: 1100px;
  margin: 0 auto;
}

.editor-styles-wrapper .resources-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .resources-grid > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.resource-card) {
  /* Derived from --c-navy-mid (#132D4F) */
  background: rgba(19, 45, 79, 0.5);
  /* Derived from --c-blue (#4AB8D6) */
  border: 1px solid rgba(74, 184, 214, 0.08);
  border-radius: 20px;
  padding: var(--wp--preset--spacing--40);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.3s ease;
  backdrop-filter: blur(6px);
}

:root :where(.resource-card):hover {
  transform: translateY(-6px);
}

/* Derived from --c-blue (#4AB8D6) */
:root :where(.resource-card--lgbtq):hover { border-color: rgba(74, 184, 214, 0.4); }
/* Derived from --c-teal (#0EA89A) */
:root :where(.resource-card--mental):hover { border-color: rgba(14, 168, 154, 0.4); }
/* Derived from --c-royal (#1E5BA8) */
:root :where(.resource-card--ice):hover { border-color: rgba(30, 91, 168, 0.4); }

/* Resource card accent bars */
:root :where(.resource-card-accent) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.editor-styles-wrapper .resource-card-accent {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

:root :where(.resource-card--lgbtq .resource-card-accent) { background: var(--wp--preset--color--c-blue); }
:root :where(.resource-card--mental .resource-card-accent) { background: var(--wp--preset--color--c-teal); }
:root :where(.resource-card--ice .resource-card-accent) { background: var(--wp--preset--color--c-royal); }

/* Resource card icons */
:root :where(.resource-card-icon) {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: var(--wp--preset--spacing--30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-styles-wrapper .resource-card-icon {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

:root :where(.resource-card-icon)::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* Derived from --c-blue (#4AB8D6) */
:root :where(.resource-icon--lgbtq) {
  background: rgba(74, 184, 214, 0.15);
}
:root :where(.resource-icon--lgbtq)::before {
  background-color: var(--wp--preset--color--c-blue);
  mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
  -webkit-mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

/* Derived from --c-teal (#0EA89A) */
:root :where(.resource-icon--mental) {
  background: rgba(14, 168, 154, 0.15);
}
:root :where(.resource-icon--mental)::before {
  background-color: var(--wp--preset--color--c-teal);
  mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
  -webkit-mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}

/* Derived from --c-royal (#1E5BA8) */
:root :where(.resource-icon--ice) {
  background: rgba(30, 91, 168, 0.15);
}
:root :where(.resource-icon--ice)::before {
  background-color: var(--wp--preset--color--c-royal);
  mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  -webkit-mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

:root :where(.resource-card-title) {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--wp--preset--spacing--20);
  line-height: 1.2;
}

.editor-styles-wrapper .resource-card-title {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

:root :where(.resource-card-desc) {
  line-height: 1.65;
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .resource-card-desc {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

:root :where(.resource-links) {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}

.editor-styles-wrapper .resource-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

:root :where(.resource-links) li {
  position: relative;
  padding-left: var(--wp--preset--spacing--30);
  list-style: none;
}

:root :where(.resource-links) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wp--preset--color--c-teal);
  opacity: 0.5;
}

:root :where(.resource-links) a {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--c-blue);
  transition: color 0.2s ease;
  line-height: 1.6;
}

:root :where(.resource-links) a:hover,
:root :where(.resource-links) a:focus {
  color: var(--wp--preset--color--c-teal-light);
}

@media (max-width: 1024px) {
  :root :where(.resources-grid) {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .editor-styles-wrapper .resources-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  :root :where(.resources) {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  :root :where(.resources-headline) {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}



:root :where(.events) {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
}

:root :where(.events)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

:root :where(.events-top) {
  max-width: 1100px;
  margin: 0 auto var(--wp--preset--spacing--50);
}

.editor-styles-wrapper .events-top {
  margin-bottom: var(--wp--preset--spacing--50) !important;
}

:root :where(.events-headline) {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--c-navy);
  line-height: 1.1;
}

:root :where(.events-headline-accent) {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: var(--wp--preset--color--c-navy);
  opacity: 0.2;
}

:root :where(.events-layout) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--40);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.editor-styles-wrapper .events-layout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .events-layout > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.event-featured) {
  background: var(--wp--preset--color--c-navy);
  border-radius: 20px;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
  position: relative;
  overflow: hidden;
}

:root :where(.event-featured)::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  /* Derived from --c-blue (#4AB8D6) */
  background: radial-gradient(circle, rgba(74, 184, 214, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

:root :where(.event-featured-badge) {
  display: inline-block;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--c-navy);
  background: var(--wp--preset--color--c-teal);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .event-featured-badge {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

:root :where(.event-featured-title) {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--wp--preset--spacing--20);
  line-height: 1.1;
}

.editor-styles-wrapper .event-featured-title {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

:root :where(.event-featured-detail) {
  line-height: 1.65;
  margin-bottom: var(--wp--preset--spacing--40);
  max-width: 380px;
  color: var(--wp--preset--color--c-muted);
}

.editor-styles-wrapper .event-featured-detail {
  margin-bottom: var(--wp--preset--spacing--40) !important;
}

:root :where(.event-featured-meta) {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: var(--wp--preset--spacing--40);
}

.editor-styles-wrapper .event-featured-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.3rem !important;
  margin-bottom: var(--wp--preset--spacing--40) !important;
}

:root :where(.event-meta-item) {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: var(--wp--preset--color--c-white);
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
}

:root :where(.event-meta-item)::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wp--preset--color--c-blue);
  flex-shrink: 0;
}

/* RSVP button - wrapper reset */
.wp-block-button.event-rsvp-btn {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* RSVP button - inner link */
.wp-block-button.event-rsvp-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--c-navy);
  background: var(--wp--preset--color--c-white-pure);
  text-decoration: none;
  padding: 0.7rem var(--wp--preset--spacing--40);
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
}

.wp-block-button.event-rsvp-btn .wp-block-button__link:hover,
.wp-block-button.event-rsvp-btn .wp-block-button__link:focus {
  background: var(--wp--preset--color--c-blue);
  transform: translateY(-2px);
}

/* Event list */
:root :where(.events-list) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .events-list {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .events-list > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.event-item) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  /* Derived from --c-navy (#0C1F37) */
  background: rgba(12, 31, 55, 0.85);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  transition: transform 0.3s ease, background 0.3s ease;
}

.editor-styles-wrapper .event-item {
  display: flex !important;
  align-items: center !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .event-item > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.event-item):hover {
  transform: translateX(6px);
  /* Derived from --c-navy (#0C1F37) */
  background: rgba(12, 31, 55, 0.95);
}

:root :where(.event-date) {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  flex-shrink: 0;
}

:root :where(.event-date-month) {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--c-teal);
  line-height: 1;
}

:root :where(.event-date-day) {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--3xl);
  color: var(--wp--preset--color--c-white-pure);
  line-height: 1;
}

:root :where(.event-info-title) {
  font-family: var(--font-body);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  color: var(--wp--preset--color--c-white-pure);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.editor-styles-wrapper .event-info-title {
  margin-bottom: 0.15rem !important;
}

:root :where(.event-info-meta) {
  color: var(--wp--preset--color--c-muted);
}

@media (max-width: 1024px) {
  :root :where(.events-layout) {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .editor-styles-wrapper .events-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  :root :where(.events) {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  :root :where(.events-headline) {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  :root :where(.events-headline-accent) {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  :root :where(.event-featured) {
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
  }

  :root :where(.event-item) {
    padding: var(--wp--preset--spacing--30);
  }
}



:root :where(.community) {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  overflow: clip;
}

:root :where(.community)::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  /* Derived from --c-blue (#4AB8D6) */
  background: radial-gradient(ellipse, rgba(74, 184, 214, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

:root :where(.community-inner) {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--wp--preset--spacing--60);
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.editor-styles-wrapper .community-inner {
  display: grid !important;
  grid-template-columns: 1fr 1.5fr !important;
  gap: var(--wp--preset--spacing--60) !important;
}

.editor-styles-wrapper .community-inner > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.community-headline) {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .community-headline {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

:root :where(.community-desc) {
  line-height: 1.65;
  margin-bottom: var(--wp--preset--spacing--40);
}

.editor-styles-wrapper .community-desc {
  margin-bottom: var(--wp--preset--spacing--40) !important;
}

/* Instagram button - wrapper reset */
.wp-block-button.instagram-btn {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Instagram button - inner link */
.wp-block-button.instagram-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--c-white-pure);
  background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
  padding: 0.75rem var(--wp--preset--spacing--40);
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.wp-block-button.instagram-btn .wp-block-button__link:hover,
.wp-block-button.instagram-btn .wp-block-button__link:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

:root :where(.instagram-icon) {
  width: 22px;
  height: 22px;
  display: block;
  background-color: var(--wp--preset--color--c-white-pure);
  mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}

/* Instagram posts grid */
:root :where(.community-posts) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .community-posts {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--wp--preset--spacing--30) !important;
}

.editor-styles-wrapper .community-posts > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.insta-post) {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

:root :where(.insta-post):hover {
  transform: scale(1.04);
}

:root :where(.insta-post-overlay) {
  position: absolute;
  inset: 0;
  /* Derived from --c-navy (#0C1F37) */
  background: rgba(12, 31, 55, 0.2);
  transition: background 0.3s ease;
  pointer-events: none;
}

.editor-styles-wrapper .insta-post-overlay {
  position: absolute !important;
}

:root :where(.insta-post):hover :where(.insta-post-overlay) {
  /* Derived from --c-teal (#0EA89A) */
  background: rgba(14, 168, 154, 0.25);
}

@media (max-width: 1024px) {
  :root :where(.community-inner) {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--50);
    text-align: center;
  }

  .editor-styles-wrapper .community-inner {
    grid-template-columns: 1fr !important;
    gap: var(--wp--preset--spacing--50) !important;
  }

  :root :where(.community-text) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root :where(.community) {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  :root :where(.community-headline) {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  :root :where(.community-posts) {
    gap: var(--wp--preset--spacing--20);
  }
}



:root :where(.join) {
  padding: var(--wp--preset--spacing--65) var(--wp--preset--spacing--40);
  position: relative;
  overflow: clip;
}

:root :where(.join)::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40%;
  /* Derived from --c-teal (#0EA89A) */
  background: radial-gradient(ellipse, rgba(14, 168, 154, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

:root :where(.join-header) {
  max-width: 700px;
  margin: 0 auto var(--wp--preset--spacing--50);
  text-align: center;
}

.editor-styles-wrapper .join-header {
  margin-bottom: var(--wp--preset--spacing--50) !important;
}

:root :where(.join-headline) {
  text-transform: uppercase;
  color: var(--wp--preset--color--c-white-pure);
  line-height: 0.95;
  margin-bottom: var(--wp--preset--spacing--30);
}

.editor-styles-wrapper .join-headline {
  margin-bottom: var(--wp--preset--spacing--30) !important;
}

:root :where(.join-headline-sm) {
  display: block;
  font-size: var(--wp--preset--font-size--3xl);
  color: var(--wp--preset--color--c-muted);
  letter-spacing: 0.08em;
}

:root :where(.join-headline-lg) {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--c-teal);
}

:root :where(.join-desc) {
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

:root :where(.join-form-wrap) {
  max-width: 720px;
  margin: 0 auto;
  /* Derived from --c-navy-mid (#132D4F) */
  background: rgba(19, 45, 79, 0.5);
  /* Derived from --c-blue (#4AB8D6) */
  border: 1px solid rgba(74, 184, 214, 0.1);
  border-radius: 24px;
  padding: var(--wp--preset--spacing--20);
  overflow: hidden;
}

:root :where(.join-iframe) {
  width: 100%;
  min-height: 900px;
  border: none;
  border-radius: 20px;
  background: var(--wp--preset--color--c-white-pure);
}

@media (max-width: 768px) {
  :root :where(.join) {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  }

  :root :where(.join-headline-lg) {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  :root :where(.join-iframe) {
    min-height: 1000px;
  }
}



:root :where(.site-footer) {
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40) 0;
  position: relative;
}

:root :where(.site-footer)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  /* Derived from --c-blue (#4AB8D6) */
  background: linear-gradient(to right, transparent, rgba(74, 184, 214, 0.2), transparent);
}

:root :where(.footer-inner) {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--wp--preset--spacing--60);
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: var(--wp--preset--spacing--60);
}

.editor-styles-wrapper .footer-inner {
  display: grid !important;
  grid-template-columns: 1.5fr 2fr !important;
  gap: var(--wp--preset--spacing--60) !important;
}

.editor-styles-wrapper .footer-inner > .block-editor-block-list__block {
  margin: 0 !important;
}

:root :where(.footer-logo-name) {
  display: block;
  margin-bottom: var(--wp--preset--spacing--20);
}

.editor-styles-wrapper .footer-logo-name {
  margin-bottom: var(--wp--preset--spacing--20) !important;
}

:root :where(.footer-logo-name) a {
  color: inherit;
  text-decoration: none;
}

:root :where(.footer-tagline) {
  line-

/* WordPress Admin Bar Offset */
.admin-bar .nav,
.admin-bar [class*="nav"][style*="position: fixed"],
.admin-bar [class*="header"][style*="position: fixed"] {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .nav,
  .admin-bar [class*="nav"][style*="position: fixed"],
  .admin-bar [class*="header"][style*="position: fixed"] {
    top: 46px;
  }
}

/* Reset paragraph wrapper styles for inline content converted to wp:paragraph */
:where(.wp-block-paragraph) {
  margin: 0;
}

/* Reset WordPress button line-height to match original CSS */
.wp-block-button__link {
  line-height: normal;
}

/* CRITICAL: Reset WordPress button wrappers to prevent double styling. */
.wp-block-button {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin: 0;
  box-shadow: none !important;
}

/* Navigation link styling - remove default underlines in nav contexts */
:where([class*="nav"] a),
:where([class*="nav"] .wp-block-paragraph a),
:where([class*="-link-wrapper"] a) {
  text-decoration: none;
}

/* Reset paragraph margins inside navigation */
:where([class*="nav"] .wp-block-paragraph) {
  margin: 0;
}

/* Editor-specific: override WordPress editor link styles */
.editor-styles-wrapper [class*="nav"] a,
.editor-styles-wrapper [class*="-link-wrapper"] a {
  text-decoration: none;
}

/* wp:navigation block resets */
:where(.wp-block-navigation),
:where(.wp-block-navigation-item__content) {
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}

:where(.wp-block-navigation__container) {
  padding: 0;
}

/* Spacer inside navigation */
:where(.wp-block-navigation .wp-block-spacer) {
  flex-grow: 1;
  height: 0 !important;
  min-height: 0 !important;
}

/* Reset responsive container */
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Desktop navigation layout */
.wp-block-navigation__responsive-container-content {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  overflow: visible;
}

/* Gap between nav items */
:where(.wp-block-navigation .wp-block-navigation__container) {
  gap: var(--nav-gap, 1.5rem);
}

/* Nav containers must shrink to fit */
.wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
  flex-shrink: 1;
  min-width: 0;
}

:where(.wp-block-navigation__responsive-container-content > .wp-block-navigation__container) {
  display: flex;
  align-items: center;
}

/* CRITICAL: Reset inner UL elements */
.wp-block-navigation__container {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.wp-block-navigation__responsive-container-content > * {
  flex-shrink: 0;
}

:where(.wp-block-navigation .wp-block-search) {
  flex-shrink: 0;
}

.wp-block-navigation .wp-block-site-title {
  margin: 0;
}

.wp-block-navigation .wp-block-site-title a {
  text-decoration: none;
  color: inherit;
}

.wp-block-navigation .wp-block-navigation-item__content {
  display: inline;
  white-space: nowrap;
}

/* wp:navigation mobile menu defaults */
.wp-block-navigation__responsive-container-open {
  background: transparent;
  border: none;
  color: inherit;
}

/* Mobile menu overlay: explicit viewport dimensions needed because parent transforms
   (e.g. on sticky headers) create new containing blocks, breaking position:fixed */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--mobile-nav-background, #1a1a1a);
  color: var(--mobile-nav-text, #ffffff);
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  padding: var(--mobile-nav-padding, 1.5rem); /* Ensure close button has breathing room */
  box-sizing: border-box;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: var(--mobile-nav-font-size, 1.5rem);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--mobile-nav-gap, 1.5rem);
}

/* Mobile menu: override desktop justification for centered mobile layout */
/* WordPress sets --navigation-layout-justification-setting from block attributes (e.g. justifyContent:"right") */
/* which bleeds into mobile menu. Reset the variable so WordPress's own CSS uses center alignment. */
.wp-block-navigation__responsive-container.is-menu-open {
  --navigation-layout-justification-setting: center;
  --navigation-layout-justify: center;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  flex-direction: column;
  align-items: center;
  gap: var(--mobile-nav-gap, 1.5rem);
}

/* Mobile menu z-index fix: When header and content are siblings with same z-index,
   content paints above header due to DOM order. Elevate only the template part containing
   the open navigation menu. Use :has() for precise targeting without affecting other elements. */
.wp-block-template-part:has(.wp-block-navigation .is-menu-open),
header:has(.wp-block-navigation .is-menu-open) {
  z-index: 100001;
  position: relative;
}


/* Editor-specific fixes */
.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item {
  margin: 0;
}


/* Editor navigation structure fix - ensure flex display is applied */
/* Gap values should come from theme-specific CSS adjustments, not here */
.editor-styles-wrapper .wp-block-navigation__container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

.editor-styles-wrapper .wp-block-navigation__responsive-container-content {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

/* Overlay header — transparent nav overlaying the hero section.
 * Uses CSS Grid overlap so header and hero share the same grid row.
 * No height assumptions needed.
 *
 * Frontend only — in the editor the header stacks normally above the hero,
 * which is fine for editing. The overlay is a visual presentation concern. */

/* Frontend: header in page content (homepage) */
body:not(.wp-admin) .wp-block-post-content:has(> .overlay-header) {
  display: grid !important;
  grid-template-columns: 1fr;
}
body:not(.wp-admin) .wp-block-post-content > .overlay-header {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
body:not(.wp-admin) .wp-block-post-content > .overlay-header + * {
  grid-column: 1;
  grid-row: 1;
}

/* Frontend: header in template (sub-pages) */
body:not(.wp-admin):has(> .wp-site-blocks > .overlay-header) .wp-site-blocks {
  display: grid !important;
  grid-template-columns: 1fr;
}
body:not(.wp-admin) .wp-site-blocks > .overlay-header {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
body:not(.wp-admin) .wp-site-blocks > .overlay-header + * {
  grid-column: 1;
  grid-row: 1;
}

/* Overlay header shared styles */
.overlay-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent !important;
  transition: background-color 0.3s ease;
}
/* Scroll state: JS adds is-scrolled class when user scrolls past hero */
.overlay-header.is-scrolled {
  background-color: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Admin bar offset for sticky overlay header */
.admin-bar .overlay-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .overlay-header {
    top: 46px;
  }
}

/* Sticky header support for non-overlay headers.
 * Many HTML sites use position:sticky on nav elements. In WordPress the header
 * template-part wrapper (<header>) needs the sticky positioning, not inner elements. */
header.wp-block-template-part:has([class*="nav"][style*="position: sticky"]),
header.wp-block-template-part:has([class*="nav"][style*="position:sticky"]),
header.wp-block-template-part:has([class*="header"][style*="position: sticky"]),
header.wp-block-template-part:has([class*="header"][style*="position:sticky"]) {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Admin bar offset for sticky template-part headers */
.admin-bar header.wp-block-template-part[style*="sticky"],
.admin-bar header.wp-block-template-part:has([style*="sticky"]) {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar header.wp-block-template-part[style*="sticky"],
  .admin-bar header.wp-block-template-part:has([style*="sticky"]) {
    top: 46px;
  }
}

/* Header slot placeholder must remain in normal flow to preserve CSS Grid
 * row structure inside the hero section. The slot occupies the first grid row
 * (where the nav originally was) so the spacer and content rows stay correct. */
:root :where(.miles-header-slot) {
  display: block !important;
  pointer-events: none;
}


/* WordPress Admin Bar Offset (auto-generated for fixed/sticky elements) */
.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px !important;
  }
}

/* ===========================================
   RESPONSIVE UTILITY CLASSES (Miles Utilities)
   Reusable helpers for common responsive patterns
   =========================================== */

/* Flex row that stacks vertically on mobile */
.miles-row-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--40, 1.5rem);
}

@media (max-width: 781px) {
  .miles-row-stack {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Reverse order on mobile (image above text, etc.) */
@media (max-width: 781px) {
  .miles-swap-order {
    flex-direction: column-reverse;
  }
}

/* Sticky positioning with admin bar offset */
.miles-sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar .miles-sticky-top {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .miles-sticky-top {
    top: 46px;
  }
}

/* Prevent flex item from shrinking */
.miles-no-shrink {
  flex-shrink: 0;
}

/* Flex utilities for alignment */
.miles-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Hide visually but keep accessible */
.miles-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;
}

/* Editor button group gap fix: WordPress editor adds margins to button wrappers
   which breaks custom gap values. Reset wrapper margins so CSS gap works.
   Only target horizontal (default) layout — respect vertical if user changes it. */
.editor-styles-wrapper .wp-block-buttons:not(.is-vertical):not(.is-layout-flow) {
  display: flex !important;
  flex-wrap: wrap !important;
}

.editor-styles-wrapper .wp-block-buttons > .block-editor-block-list__block {
  margin: 0 !important;
}


}
