/* Prevent the page from scrolling horizontally (caused by 100 vw bands or
   WordPress alignwide breakout CSS on mobile) without breaking position:sticky. */
html {
  overflow-x: clip;
}

.asdfw-shell,
.asdfw-site-main {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
  }

  /* ── 3-Tier layout system ────────────────────────────────────────────────────
     Tier 1 │ Article / reading  width ≈ 75ch (~650 px)
       │ Selector: .asdfw-page-wrap > .wp-block-post-content
       │ Use for: generic pages, blog-like content, long text-heavy articles.
       │ Template: page.html (default fallback)
     ──────────────────────────────────────────────────────────────────────────
     Tier 2 │ Feature-page wide  width = min(1200 px, 100% − 2 rem)
       │ Selector: .asdfw-wide-page-wrap
       │ Use for: Membership, Sponsorship, Events & Activities, About,
       │          Information & Engagement, and comparable landing pages.
       │ Templates: page-membership.html, page-sponsorship.html,
       │            page-about.html, page-information-engagement.html
     ──────────────────────────────────────────────────────────────────────────
     Tier 3 │ Full-bleed         width = 100 vw
       │ Selector: .alignfull / .asdfw-membership-band / home sections
       │ Use for: hero bands, full-width colour sections.
     ──────────────────────────────────────────────────────────────────────────
     NOTE: archive-event.html (Events & Activities) does NOT use post-content;
     it renders via a custom block and therefore was never affected by the
     Tier-1 constraint—making it appear visually wider. Tier-2 pages are now
     aligned to the same 1200 px container width. */

.asdfw-front-page-main,
.asdfw-front-page-wrap {
  width: 100%;
}

.asdfw-site-main--full {
  width: 100%;
  max-width: none;
}

.asdfw-site-main--full > .wp-block-group {
  width: min(1200px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* Tier-2 override: wide-page-wrap is a direct child of asdfw-site-main--full.
   Uses the same 1200 px outer width as the events archive so all feature
   pages align exactly with Events & Activities. */
.asdfw-site-main--full > .asdfw-wide-page-wrap {
  width: min(1200px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* Tier-2 wrapper padding (mirrors asdfw-page-wrap) */
.asdfw-wide-page-wrap {
  --asdfw-readable-width: 88ch;
  --asdfw-feature-section-width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Inner layer (Tier-2): do not force all content through article-width rules.
   Layout-heavy sections stay wide; prose remains readable via selectors below. */
.asdfw-wide-page-wrap > .wp-block-post-content {
  max-width: none;
  width: 100%;
}

/* Some feature page patterns use alignwide + constrained layout; force these
   blocks to fully use the feature-page lane so they match Events width. */
.asdfw-wide-page-wrap .alignwide {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
}

.asdfw-wide-page-wrap > .wp-block-post-content > :where(
  .wp-block-group,
  .wp-block-columns,
  .wp-block-media-text,
  .wp-block-cover,
  .wp-block-query,
  .wp-block-table,
  .wp-block-gallery,
  .wp-block-separator,
  .wp-block-shortcode,
  .wp-block-html,
  .wp-block-file
) {
  width: var(--asdfw-feature-section-width);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Readable text lane within wide feature pages. */
.asdfw-wide-page-wrap > .wp-block-post-content > :where(
  p,
  ul,
  ol,
  blockquote,
  pre
) {
  max-width: var(--asdfw-readable-width);
  margin-left: auto;
  margin-right: auto;
}

.asdfw-wide-page-wrap .asdfw-group-intro-shell,
.asdfw-wide-page-wrap .asdfw-readable-copy {
  max-width: var(--asdfw-readable-width);
  margin-left: auto;
  margin-right: auto;
}

/* Explicit wide-section lane for cards, showcases, and structured layouts. */
.asdfw-wide-page-wrap .asdfw-group-shell,
.asdfw-wide-page-wrap .asdfw-membership-form-wrap,
.asdfw-wide-page-wrap .asdfw-membership-comparison,
.asdfw-wide-page-wrap .asdfw-sponsor-showcase,
.asdfw-wide-page-wrap .asdfw-sponsor-hscroll,
.asdfw-wide-page-wrap .asdfw-sponsor-spotlight {
  max-width: none;
  width: 100%;
}

.asdfw-site-main--full .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* asdfw-site-main--full is already 100 vw wide, so alignwide children have
   nowhere extra to break out to. Override WordPress's generated negative-margin
   breakout (margin: -120px, width: calc(100% + 240px)) that causes mobile
   horizontal overflow when contentSize=1200px and wideSize=1440px. */
.asdfw-site-main--full > .alignwide {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.asdfw-header,
.asdfw-footer,
.asdfw-site-main,
.asdfw-page-wrap,
.asdfw-detail-wrap,
.asdfw-archive-wrap {
  padding: 1rem 0;
}

.asdfw-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.7rem 0;
}

.asdfw-footer {
  margin-top: 4rem;
  background: #0a183f;
  color: #ffffff;
}

.asdfw-page-title,
.asdfw-entity-intro h1,
.asdfw-archive-hero h1,
.asdfw-home-events h2,
.asdfw-home-committees h2,
.asdfw-home-intro h2,
.asdfw-membership-band h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.asdfw-header__inner,
.asdfw-site-main > .wp-block-group,
.asdfw-detail-columns,
.asdfw-event-meta,
.asdfw-meta-list {
  gap: 1.5rem;
}

.asdfw-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.2rem;
}

.asdfw-header__brand,
.asdfw-header__nav,
.asdfw-header__utility,
.asdfw-header__auth {
  gap: 0.85rem;
}

.asdfw-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 0.85rem;
}

.asdfw-header__nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  row-gap: 0.5rem;
  column-gap: 0.85rem;
  flex-wrap: nowrap;
}

.asdfw-header .wp-block-navigation,
.asdfw-footer .wp-block-navigation {
  font-size: 0.95rem;
}

.asdfw-header .wp-block-navigation .wp-block-navigation-item__content,
.asdfw-footer .wp-block-navigation .wp-block-navigation-item__content {
  text-decoration: none;
}

/* ── Classic nav menu (rendered via [asdfw_primary_nav] shortcode) ── */
.asdfw-nav {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

/* Hamburger button — hidden on desktop */
.asdfw-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.asdfw-nav__toggle:hover { background: rgba(0,0,0,0.06); }

.asdfw-nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

/* Animate to X when open */
.asdfw-nav__toggle--open .asdfw-nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.asdfw-nav__toggle--open .asdfw-nav__toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.asdfw-nav__toggle--open .asdfw-nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav list — desktop: horizontal row */
.asdfw-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: center;
  min-width: 0;
}

.asdfw-nav__list li {
  position: relative;
}

.asdfw-nav__list a {
  display: block;
  padding: 0.32rem 0.72rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.15s;
}
.asdfw-nav__list a:hover,
.asdfw-nav__list .current-menu-item > a,
.asdfw-nav__list .current_page_item > a {
  background: rgba(0, 0, 0, 0.06);
}

/* Desktop dropdown submenu */
.asdfw-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;        /* flush with bottom of li — no gap to fall through */
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 10px 0 6px; /* top padding provides the visual breathing room */
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
}
.asdfw-nav__list li:hover > .sub-menu,
.asdfw-nav__list li:focus-within > .sub-menu {
  display: block;
}
.asdfw-nav__list .sub-menu a {
  border-radius: 0;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  white-space: normal;
}
.asdfw-nav__list .sub-menu a:hover { background: #f5f5f5; }

/* Dropdown arrow on items that have children */
.asdfw-nav__list .menu-item-has-children > a::after {
  content: '▾';
  display: inline;
  margin-left: 0.3em;
  font-size: 0.75em;
  vertical-align: middle;
  line-height: 1;
  opacity: 0.6;
}

/* ── Mobile nav ── */
@media (max-width: 1100px) {
  /* Remove .asdfw-nav as the absolute-positioning anchor so the dropdown
     positions relative to .asdfw-header (position: sticky) instead.
     This ensures right: 0 aligns with the viewport right edge regardless
     of what auth / donate elements sit to the right of .asdfw-nav. */
  .asdfw-nav {
    position: static;
  }

  .asdfw-header__utility {
    align-self: center;
  }

  .asdfw-nav__toggle {
    display: flex;
  }

  .asdfw-nav__list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    width: min(280px, 90vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 300;
    flex-wrap: nowrap;
  }

  .asdfw-nav__list--open {
    display: flex;
  }

  .asdfw-nav__list > li > a {
    padding: 0.65rem 1.1rem;
    border-radius: 0;
    font-size: 0.95rem;
    white-space: normal;
  }

  /* Mobile submenus: inline, indented */
  .asdfw-nav__list .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: #f9f8f7;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
  }
  .asdfw-nav__list .sub-menu a {
    padding: 0.55rem 1.1rem 0.55rem 1.8rem;
    font-size: 0.88rem;
    color: #555;
  }
}

@media (min-width: 1101px) {
  .asdfw-nav__toggle {
    display: none !important;
  }
  .asdfw-nav__list {
    display: flex !important;
    position: static;
  }
}

.asdfw-site-title a,
.asdfw-footer__title a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.asdfw-header .wp-block-site-logo img,
.asdfw-footer .wp-block-site-logo img {
  border-radius: 999px;
}

.asdfw-header .wp-block-button__link,
.asdfw-footer .wp-block-button__link {
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Header icon nav — replaces the three heavy auth pill buttons
   -------------------------------------------------------------------------- */

.asdfw-header__icon-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.asdfw-header__utility {
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

.asdfw-header__utility .wp-block-button {
  margin: 0;
}

/* Donate CTA */
.asdfw-header__utility .wp-block-button__link {
  font-size: 0.7rem;
  padding: 0.5rem 0.8rem;
  line-height: 1.1;
}

.asdfw-header__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #0a183f;
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.asdfw-header__icon-btn:hover,
.asdfw-header__icon-btn:focus-visible {
  background: rgba(10, 24, 63, 0.07);
  color: #0a183f;
}

/* Sign out — pill with text, matching Sign In treatment */
.asdfw-header__icon-btn--out {
  width: auto;
  height: auto;
  min-height: 13px;
  border-radius: 999px;
  padding: 0 0.34rem;
  gap: 0.18rem;
  border: 1.5px solid rgba(179, 30, 30, 0.25);
}
.asdfw-header__icon-btn--out::before {
  content: attr(data-label);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  order: 2;
}
.asdfw-header__icon-btn--out:hover,
.asdfw-header__icon-btn--out:focus-visible {
  background: rgba(179, 30, 30, 0.07);
  color: #b31e1e;
  border-color: rgba(179, 30, 30, 0.4);
}

/* Join Us CTA — matches Sign In styling */
.asdfw-header__icon-btn--cta {
  background: #fff;
  color: #0a183f;
  border: 1.5px solid rgba(10, 24, 63, 0.2);
}

.asdfw-header__icon-btn--cta:hover,
.asdfw-header__icon-btn--cta:focus-visible {
  background: #f4f7ff;
  color: #0a183f;
  border-color: rgba(10, 24, 63, 0.35);
}

/* Logged-out auth actions: pill shape shared by Sign In, Join Us, and any with-text variant. */
.asdfw-header__icon-btn--with-text,
.asdfw-header__icon-btn--login,
.asdfw-header__icon-btn--cta {
  width: auto;
  height: auto;
  min-height: 13px;
  border-radius: 999px;
  padding: 0 0.34rem;
  gap: 0.18rem;
}

/* Text label span inside login / with-text buttons. */
.asdfw-header__icon-btn-label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
}


.asdfw-header__icon-btn--login {
  background: #fff;
  color: #0a183f;
  border: 1.5px solid rgba(10, 24, 63, 0.2);
}

.asdfw-header__icon-btn--login:hover,
.asdfw-header__icon-btn--login:focus-visible {
  background: #f4f7ff;
  color: #0a183f;
  border-color: rgba(10, 24, 63, 0.35);
}

/* Tooltip via data-label */
.asdfw-header__icon-btn::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #0a183f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}

.asdfw-header__icon-btn:hover::after,
.asdfw-header__icon-btn:focus-visible::after {
  opacity: 1;
}

/* Disable tooltip hover text on touch devices */
@media (hover: none) and (pointer: coarse) {
  .asdfw-header__icon-btn:hover::after,
  .asdfw-header__icon-btn:focus-visible::after {
    opacity: 0 !important;
  }
}

.asdfw-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.34rem;
  height: 1.34rem;
  padding: 0 0.25rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #d94b4b;
  border: 1.5px solid #ffffff;
}

.asdfw-pending-badge--header {
  position: absolute;
  top: -0.6rem;
  right: -0.65rem;
  min-width: 0.9rem;
  height: 0.9rem;
  font-size: 0.52rem;
  padding: 0 0.16rem;
  border: 1.5px solid #fff;
}

.asdfw-pending-badge--red {
  background: #dc2626;
  color: #fff;
}

.asdfw-pending-badge--orange {
  background: #d97706;
  color: #fff;
}

.asdfw-pending-badge--yellow {
  background: #f6c90e;
  color: #1f2937;
}

/* ── Footer: centered + skyline background ───────────────────────────────── */
/* --asdfw-footer-skyline is injected inline by PHP when an image is set via
   Appearance → Customize → Footer Skyline Image. When absent the footer shows
   a pure navy gradient. */

.asdfw-footer {
  position: relative;
  margin-top: 3rem !important;
  padding: 2.2rem 0 0 !important;
  background:
    linear-gradient(to bottom, rgba(6,14,40,0.66) 0%, rgba(5,13,42,0.71) 100%),
    var(--asdfw-footer-skyline, none)
    center bottom / cover no-repeat,
    radial-gradient(ellipse 120% 60% at 50% 100%, rgba(30,60,140,0.41) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(80,120,220,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(80,120,220,0.15) 0%, transparent 60%),
    #060e28;
  color: #fff;
  overflow: hidden;
}

.asdfw-footer .asdfw-shell {
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ── Centered brand block ── */
.asdfw-footer__brand {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem !important;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}

.asdfw-footer__logo .wp-block-site-logo img,
.asdfw-footer__brand .wp-block-site-logo img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
  margin-bottom: 0.55rem;
  display: block;
}

.asdfw-footer__site-name a,
.asdfw-footer__brand .wp-block-site-title a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.asdfw-footer__tagline {
  margin: 0 !important;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

/* ── Bottom action bar ── */
.asdfw-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem 0;
}

.asdfw-footer__bar-left,
.asdfw-footer__bar-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.asdfw-footer__copyright {
  margin: 0 !important;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  flex: 1;
}

.asdfw-footer__bar-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
  white-space: nowrap;
}

.asdfw-footer__bar-link:hover {
  color: #fff;
}

.asdfw-logout-form { display: inline; margin: 0; padding: 0; }
.asdfw-logout-form__link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
  white-space: nowrap;
}
.asdfw-logout-form__link:hover { color: #fff; }

/* Icon buttons: Facebook + Back to top */
.asdfw-footer__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.asdfw-footer__icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Remove old stacked layouts */
.asdfw-footer__columns,
.asdfw-footer__col,
.asdfw-footer__member-groups,
.asdfw-footer__bottom {
  display: none !important;
}

.asdfw-page-hero {
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.1);
}

.asdfw-page-hero .wp-block-post-title {
  margin-bottom: 0;
}

.asdfw-page-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: inherit;
}

.asdfw-page-hero__lead {
  margin: 0;
  max-width: 56rem;
}

.asdfw-page-hero p,
.asdfw-archive-hero p {
  max-width: 52rem;
}

.asdfw-secondary-page {
  max-width: 1200px;
}

.asdfw-secondary-page .wp-block-columns {
  gap: 2rem;
}

.asdfw-secondary-page .wp-block-image img {
  border-radius: 24px;
}

.asdfw-content-card {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.05);
  background: #ffffff;
}

.asdfw-section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  color: #b35f1f;
  font-weight: 700;
}

.asdfw-featured-banner img,
.asdfw-event-card .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.wp-block-group.is-style-asdfw-card-light,
.wp-block-group.is-style-asdfw-card-accent,
.wp-block-group.is-style-asdfw-card-dark,
.wp-block-group.is-style-asdfw-overview-panel,
.wp-block-group.is-style-asdfw-hero-soft {
  border-radius: 28px;
  padding: 2rem;
}

.wp-block-group.is-style-asdfw-card-light {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.05);
}

.wp-block-group.is-style-asdfw-card-accent {
  background: linear-gradient(180deg, #f7efe4 0%, #f0e5d4 100%);
  border: 1px solid rgba(179, 95, 31, 0.18);
  box-shadow: 0 18px 40px rgba(179, 95, 31, 0.08);
}

.wp-block-group.is-style-asdfw-card-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #0a183f 0%, #16315d 100%);
  box-shadow: 0 22px 48px rgba(10, 24, 63, 0.22);
}

.wp-block-group.is-style-asdfw-card-dark .asdfw-section-eyebrow,
.wp-block-group.is-style-asdfw-card-dark p,
.wp-block-group.is-style-asdfw-card-dark li {
  color: rgba(255, 255, 255, 0.9);
}

.wp-block-group.is-style-asdfw-overview-panel {
  background: #ffffff;
  border: 1px solid rgba(179, 95, 31, 0.18);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.06);
}

.wp-block-group.is-style-asdfw-hero-soft,
.asdfw-group-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 36%),
    linear-gradient(135deg, #f7efe4 0%, #f3e8d8 52%, #ead8bf 100%);
  border: 1px solid rgba(179, 95, 31, 0.16);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.06);
}

.wp-block-group.is-style-asdfw-section-spacious {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.wp-block-group.is-style-asdfw-section-compact {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.wp-block-columns.is-style-asdfw-overview-columns,
.asdfw-overview-columns {
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.asdfw-event-page .wp-block-columns.is-style-asdfw-overview-columns,
.asdfw-event-page .asdfw-overview-columns {
  align-items: flex-start;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.asdfw-event-page .wp-block-group.is-style-asdfw-overview-panel {
  padding: 1.75rem;
}

.asdfw-event-page .wp-block-post-featured-image.asdfw-featured-banner,
.asdfw-activity-page .wp-block-post-featured-image.asdfw-featured-banner {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 32px 32px 140px 32px;
  border: 6px solid rgba(179, 95, 31, 0.18);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}
.asdfw-event-page .wp-block-post-featured-image.asdfw-featured-banner img,
.asdfw-activity-page .wp-block-post-featured-image.asdfw-featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

/* The template renders the image + snapshot at the top level via overview-columns.
   Hide any duplicate overview section or standalone snapshot that may exist inside
   the authored post content. */
.asdfw-event-page .asdfw-rich-content .asdfw-overview-columns,
.asdfw-event-page .asdfw-rich-content .is-style-asdfw-overview-columns,
.asdfw-event-page .asdfw-rich-content .wp-block-post-featured-image,
.asdfw-event-page .asdfw-rich-content .asdfw-event-snapshot,
.asdfw-event-page .asdfw-rich-content .asdfw-event-meta {
  display: none;
}

.wp-block-media-text.is-style-asdfw-split-framed {
  gap: 2rem;
  align-items: center;
}

.wp-block-media-text.is-style-asdfw-split-framed .wp-block-media-text__media img {
  border-radius: 32px 32px 140px 32px;
  border: 6px solid rgba(179, 95, 31, 0.18);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.wp-block-media-text.is-style-asdfw-split-framed .wp-block-media-text__content {
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.05);
}

.wp-block-media-text.is-style-asdfw-split-reverse {
  flex-direction: row-reverse;
}

@media (max-width: 600px) {
  .wp-block-media-text.is-style-asdfw-split-reverse {
    flex-direction: column;
  }
}

.wp-block-image.is-style-asdfw-framed-image img,
.wp-block-post-featured-image.is-style-asdfw-framed-image img,
.wp-block-post-featured-image .is-style-asdfw-framed-image img {
  border-radius: 32px 32px 140px 32px;
  border: 6px solid rgba(179, 95, 31, 0.18);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.wp-block-image.is-style-asdfw-plain-image img,
.wp-block-post-featured-image.is-style-asdfw-plain-image img {
  border-radius: 24px;
  border: 0;
  box-shadow: none;
}

.wp-block-file.is-style-asdfw-resource-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fffdfa;
}

.wp-block-file.is-style-asdfw-resource-file .wp-block-file__button {
  border-radius: 999px;
  background: #b35f1f;
}

.asdfw-home-hero-image img {
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.asdfw-shaped-image img {
  border-radius: 32px 32px 140px 32px;
  border: 6px solid rgba(179, 95, 31, 0.18);
}

.asdfw-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #5c5a57;
  max-width: 70ch;
}

.asdfw-activity-description > .asdfw-activity-intro {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.asdfw-event-intro {
  margin-top: 0.65rem;
  max-width: 680px;
}

.asdfw-supporting-copy {
  color: #5c5a57;
  line-height: 1.75;
}

.asdfw-event-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.asdfw-event-meta span {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f2ede6;
  color: #4e3524;
  font-size: 0.95rem;
}

.asdfw-event-snapshot {
  margin: 1rem 0 1.15rem;
}

.asdfw-event-snapshot__row {
  margin: 0 0 0.14rem;
  color: #231f1c;
  font-size: 1rem;
  line-height: 1.55;
}

.asdfw-event-snapshot__row:last-child {
  margin-bottom: 0;
}

.asdfw-attendance-count {
  width: 100%;
  flex-basis: 100%;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.asdfw-attendance-count__item {
  margin-bottom: 0.14rem;
}
.asdfw-attendance-count__icon {
  vertical-align: -2px;
  margin-right: 2px;
}
.asdfw-attendance-count__icon--ticket   { color: #d97706; }
.asdfw-attendance-count__icon--rsvp     { color: #16a34a; }
.asdfw-attendance-count__icon--attending { color: #503aa8; }
.asdfw-attendance-count__icon--comp      { color: #0e7490; }

.asdfw-event-snapshot .asdfw-event-snapshot__label {
  color: #6f6a64;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2.asdfw-event-snapshot__heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #b35f1f;
  margin: 0 0 1rem;
  padding: 0;
}

.asdfw-meta-list {
  padding-left: 1.2rem;
  line-height: 1.8;
}

.asdfw-event-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  overflow: hidden;
  min-height: 100%;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.asdfw-event-card:hover {
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  border-color: rgba(179, 95, 31, 0.3);
  transform: translateY(-2px);
}

.asdfw-event-card:focus-within {
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14);
  border-color: rgba(19, 35, 75, 0.32);
  transform: translateY(-2px);
}

.asdfw-event-card h2,
.asdfw-event-card h3 {
  font-size: 1.15rem;
  margin-top: 0.2rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

/* Image wrapper — fills link wrapper */
.asdfw-event-card__media-link {
  display: block;
  text-decoration: none;
}

.asdfw-event-card__media {
  aspect-ratio: 3 / 2;
  min-height: 152px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asdfw-event-card__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.asdfw-event-card__media .wp-block-post-featured-image,
.asdfw-event-card__media .wp-block-post-featured-image a {
  width: 100%;
  height: 100%;
  margin: 0;
}

.asdfw-event-card__image,
.asdfw-event-card__media img,
.asdfw-event-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.25s ease;
  background: #fff;
}

.asdfw-event-card:hover .asdfw-event-card__image,
.asdfw-event-card:hover .asdfw-event-card__media img,
.asdfw-event-card:hover .wp-block-post-featured-image img {
  transform: scale(1.03);
}

.asdfw-event-card__image--placeholder {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 140px;
}

.asdfw-event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.85rem 1rem;
}

.asdfw-event-card__body .asdfw-event-meta {
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
}

/* Clickable title — no button, just a styled link */
.asdfw-event-card__title-link {
  color: inherit;
  text-decoration: none;
}

.asdfw-event-card:hover .asdfw-event-card__title-link {
  text-decoration: underline;
  text-decoration-color: rgba(179, 95, 31, 0.6);
  text-underline-offset: 2px;
}

/* Description clamped to 3 lines */
.asdfw-event-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: #5c5a57;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asdfw-event-page .asdfw-entity-intro {
  margin-bottom: 1.5rem;
}

.asdfw-event-page .asdfw-rich-content > .wp-block-group:first-child,
.asdfw-event-page .asdfw-rich-content > .wp-block-columns:first-child,
.asdfw-event-page .asdfw-rich-content > .wp-block-media-text:first-child {
  margin-top: 0;
}

.asdfw-outline-link a,
.asdfw-outline-link .wp-block-read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid #b35f1f;
  border-radius: 999px;
  color: #b35f1f;
  text-decoration: none;
  font-weight: 600;
}

.asdfw-membership-form-wrap {
  margin-top: 2.75rem;
  max-width: 1120px;
}

.asdfw-wide-page-wrap .asdfw-membership-form-wrap {
  max-width: none;
}

.asdfw-membership-form {
  display: grid;
  gap: 2.1rem;
}

.asdfw-membership-form,
.asdfw-membership-form * ,
.asdfw-membership-form *::before,
.asdfw-membership-form *::after {
  box-sizing: border-box;
}

.asdfw-membership-form__section {
  padding: 1.8rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.05);
}

.asdfw-membership-form__section h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.asdfw-membership-form__section > p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #5c5a57;
  line-height: 1.7;
}

.asdfw-membership-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.35rem;
}

.asdfw-membership-form__grid--levels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.asdfw-membership-form__full {
  grid-column: 1 / -1;
}

.asdfw-membership-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.asdfw-membership-form label span {
  font-size: 0.92rem;
  color: #3c3a37;
}

.asdfw-membership-form__required {
  color: #b42318;
  font-weight: 700;
}

.asdfw-membership-form input,
.asdfw-membership-form select,
.asdfw-membership-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fffdf9;
}

.asdfw-membership-form input[name="applicant_first_name"],
.asdfw-membership-form input[name="applicant_last_name"],
.asdfw-membership-form input[name$="[first_name]"],
.asdfw-membership-form input[name$="[last_name]"] {
  text-transform: capitalize;
}

.asdfw-membership-form input.asdfw-field-invalid,
.asdfw-membership-form select.asdfw-field-invalid,
.asdfw-membership-form textarea.asdfw-field-invalid {
  border-color: #b42318;
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.2);
}

.asdfw-membership-form__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asdfw-membership-form__option-card {
  display: grid;
  gap: 0.8rem;
  height: 100%;
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(179, 95, 31, 0.2);
  background: #f8f1e7;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.asdfw-membership-form__option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 95, 31, 0.42);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08);
}

.asdfw-membership-form__option input:checked + .asdfw-membership-form__option-card {
  border-color: #b35f1f;
  box-shadow: inset 0 0 0 2px #b35f1f;
}

.asdfw-membership-form__option[data-level-card].is-active .asdfw-membership-form__option-card {
  border-color: #b35f1f;
  box-shadow: inset 0 0 0 2px #b35f1f, 0 18px 40px rgba(179, 95, 31, 0.12);
  background: #fff8ef;
}

.asdfw-membership-form__option-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

.asdfw-membership-form__price {
  color: #8e4a18;
  font-weight: 700;
  font-size: 1.05rem;
}

.asdfw-membership-comparison {
  overflow-x: auto;
  width: 100%;
  margin-top: 0.5rem;
}

.asdfw-membership-comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.asdfw-membership-comparison__table th,
.asdfw-membership-comparison__table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.asdfw-membership-comparison__table thead th {
  color: #4e3524;
  background: #f8f1e7;
  font-weight: 700;
}

.asdfw-membership-comparison__table [data-level-column].is-active {
  background: rgba(179, 95, 31, 0.08);
}

.asdfw-membership-form__member-row + .asdfw-membership-form__member-row {
  margin-top: 1.25rem;
}

.asdfw-membership-form__member-row {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 1.25rem;
  background: #fcfaf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.asdfw-membership-form__member-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.asdfw-membership-form__conditional[hidden] {
  display: none;
}

.asdfw-membership-form__checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.9rem;
}

.asdfw-membership-form__checkbox input {
  width: auto;
  margin-top: 0.15rem;
}

.asdfw-membership-form__secondary-button,
.asdfw-membership-form__remove-member {
  border: 1px solid rgba(179, 95, 31, 0.35);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: transparent;
  color: #8e4a18;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.asdfw-membership-form__secondary-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.asdfw-field-error input,
.asdfw-field-error select,
.asdfw-field-error textarea {
  border-color: #b42318;
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.2);
}

.asdfw-membership-form__agreement label {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.asdfw-membership-form__agreement input {
  width: auto;
  margin-top: 0.2rem;
}

.asdfw-membership-form__actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  background: #b35f1f;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.asdfw-membership-form__actions button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.asdfw-membership-form__actions {
  padding-top: 0.35rem;
}

.asdfw-membership-form__notice {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: #eff6ff;
  color: #0f172a;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.asdfw-membership-form__notice--success {
  background: #dcfce7;
  color: #14532d;
  border-color: rgba(22, 163, 74, 0.5);
}

.asdfw-membership-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: #dcfce7;
  border: 2px solid rgba(22, 163, 74, 0.4);
  border-radius: 20px;
  max-width: 600px;
  margin: 2rem auto;
}
.asdfw-membership-success-card__icon {
  font-size: 3rem;
  color: #16a34a;
  background: #fff;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  line-height: 72px;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(22, 163, 74, 0.3);
}
.asdfw-membership-success-card__heading {
  font-size: 1.5rem;
  color: #14532d;
  margin: 0 0 1rem;
}
.asdfw-membership-success-card__body {
  color: #166534;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.asdfw-membership-success-card__link {
  color: #15803d;
  font-weight: 600;
  text-decoration: underline;
}

.asdfw-entity-page,
.asdfw-page-wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.asdfw-entity-intro {
  margin-bottom: 2rem;
}

.asdfw-hero-columns {
  margin-bottom: 2.5rem;
}

.asdfw-info-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.06);
  padding: 1.5rem;
}

.asdfw-event-sidebar {
  position: sticky;
  top: 7rem;
}

.asdfw-rich-content,
.asdfw-page-wrap > .wp-block-post-content {
  max-width: none;
}

/* Fallback two-layer system for default page template pages:
   - prose remains readable
   - structured sections (groups/columns/cards) can use page width */
.asdfw-page-wrap > .wp-block-post-content > :where(
  p,
  ul,
  ol,
  blockquote,
  pre
) {
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

.asdfw-page-wrap > .wp-block-post-content > :where(
  .wp-block-group,
  .wp-block-columns,
  .wp-block-media-text,
  .wp-block-cover,
  .wp-block-query,
  .wp-block-table,
  .wp-block-gallery,
  .wp-block-separator,
  .wp-block-shortcode,
  .wp-block-html,
  .wp-block-file
) {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.asdfw-rich-content > .wp-block-group,
.asdfw-rich-content > .wp-block-columns,
.asdfw-rich-content > .wp-block-media-text,
.asdfw-rich-content > .wp-block-cover,
.asdfw-rich-content > .wp-block-gallery {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.asdfw-pattern-hero {
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(70, 18, 11, 0.88) 0%, rgba(70, 18, 11, 0.82) 50%, rgba(9, 34, 77, 0.78) 100%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 45%);
}

.asdfw-pattern-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.98;
  margin-bottom: 1rem;
}

.asdfw-membership-band,
.asdfw-home-committees {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.asdfw-home-sponsorship {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.asdfw-home-intro,
.asdfw-home-events {
  max-width: 1200px;
}

.asdfw-home-sponsorship .wp-block-button__link {
  border-radius: 999px;
}

/* ── Home: dynamic upcoming events grid ──────────────────────────────────── */

.asdfw-home-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

.asdfw-home-event-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(17,24,39,0.07);
  display: flex;
  flex-direction: column;
}

.asdfw-home-event-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f3ede6;
}

.asdfw-home-event-card__media .asdfw-home-event-card__img,
.asdfw-home-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.asdfw-home-event-card:hover .asdfw-home-event-card__media img {
  transform: scale(1.04);
}

.asdfw-home-event-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.asdfw-home-event-card__date {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 0.35rem;
}

.asdfw-home-event-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.asdfw-home-event-card__title a {
  color: inherit;
  text-decoration: none;
}

.asdfw-home-event-card__title a:hover {
  color: #b35f1f;
}

.asdfw-home-event-card__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #555;
  margin: 0 0 1rem;
  flex: 1;
}

.asdfw-home-event-card__cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #5f2017;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s;
}

.asdfw-home-event-card__cta:hover {
  background: #7a2c1f;
}

@media (max-width: 860px) {
  .asdfw-home-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .asdfw-home-events-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Home: dynamic community moments gallery ─────────────────────────────── */

.asdfw-home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.asdfw-home-gallery-grid__item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: #f3ede6;
}

.asdfw-home-gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.asdfw-home-gallery-grid__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .asdfw-home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Home: YouTube video strip ───────────────────────────────────────────── */

.asdfw-home-video-strip {
  margin-top: 32px;
}

.asdfw-home-video-strip__header {
  text-align: center;
  margin-bottom: 20px;
}

.asdfw-home-video-strip__header h3 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: #0a183f;
}

.asdfw-home-video-strip__header p {
  margin: 0;
  color: #6b7280;
}

.asdfw-home-video-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.asdfw-home-video-strip__item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: #f3ede6;
  position: relative;
}

.asdfw-home-video-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.asdfw-home-video-strip__item:hover img {
  transform: scale(1.05);
}

.asdfw-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(10, 24, 63, 0.75);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.asdfw-video-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

@media (max-width: 900px) {
  .asdfw-home-video-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .asdfw-home-video-strip__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Gallery index page ──────────────────────────────────────────────────── */

.asdfw-gallery-index {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.asdfw-gallery-index__group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.asdfw-gallery-index__group-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 2px solid #f3ede6;
  padding-bottom: 0.5rem;
}

.asdfw-gallery-index__group-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #7B1F2A;
  text-decoration: none;
  line-height: 1.3;
}

.asdfw-gallery-index__group-title:hover {
  text-decoration: underline;
}

.asdfw-gallery-index__group-date {
  font-size: 0.85rem;
  color: #9ca3af;
  white-space: nowrap;
}

.asdfw-gallery-index__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.asdfw-gallery-index__item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: #f3ede6;
  position: relative;
}

.asdfw-gallery-index__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.asdfw-gallery-index__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  .asdfw-gallery-index__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .asdfw-gallery-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */

.asdfw-membership-band .asdfw-content-card,
.asdfw-secondary-page .asdfw-content-card,
.asdfw-wide-page-wrap .asdfw-content-card {
  height: 100%;
}

.asdfw-listing-row {
  background: rgba(255, 255, 255, 0.90);
  border-radius: 24px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.asdfw-listing-row .wp-block-post-featured-image img {
  border-radius: 18px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

/* Constrain title and excerpt inside listing cards to avoid oversized headings */
.asdfw-listing-row .wp-block-post-title {
  font-size: 1.25rem !important;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem !important;
  color: #0a183f;
}

.asdfw-listing-row .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.asdfw-listing-row .wp-block-post-title a:hover {
  color: #b35f1f;
}

.asdfw-listing-row .wp-block-post-excerpt {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #5c5a57;
}

.asdfw-listing-row .wp-block-post-excerpt p {
  margin: 0;
}

.asdfw-archive-hero {
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.1);
}

/* Ornate treatment for all maroon/navy page and archive heroes. */
.asdfw-archive-hero--ornate,
.asdfw-page-hero[style*="background-color:#0a183f"],
.asdfw-page-hero[style*="background-color:#5f2017"],
.asdfw-archive-hero[style*="background-color:#0a183f"],
.asdfw-archive-hero[style*="background-color:#5f2017"] {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 22px;
  /* Subtle inner-glow overlay — colour comes from the inline background-color */
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.1), transparent 38%),
    radial-gradient(circle at 85% 88%, rgba(0, 0, 0, 0.18), transparent 32%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.asdfw-archive-hero--ornate::before,
.asdfw-archive-hero--ornate::after,
.asdfw-page-hero[style*="background-color:#0a183f"]::before,
.asdfw-page-hero[style*="background-color:#0a183f"]::after,
.asdfw-page-hero[style*="background-color:#5f2017"]::before,
.asdfw-page-hero[style*="background-color:#5f2017"]::after,
.asdfw-archive-hero[style*="background-color:#0a183f"]::before,
.asdfw-archive-hero[style*="background-color:#0a183f"]::after,
.asdfw-archive-hero[style*="background-color:#5f2017"]::before,
.asdfw-archive-hero[style*="background-color:#5f2017"]::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Inner frame border */
.asdfw-archive-hero--ornate::before,
.asdfw-page-hero[style*="background-color:#0a183f"]::before,
.asdfw-page-hero[style*="background-color:#5f2017"]::before,
.asdfw-archive-hero[style*="background-color:#0a183f"]::before,
.asdfw-archive-hero[style*="background-color:#5f2017"]::before {
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

/* Bottom separator line */
.asdfw-archive-hero--ornate::after,
.asdfw-page-hero[style*="background-color:#0a183f"]::after,
.asdfw-page-hero[style*="background-color:#5f2017"]::after,
.asdfw-archive-hero[style*="background-color:#0a183f"]::after,
.asdfw-archive-hero[style*="background-color:#5f2017"]::after {
  inset: auto 40px 14px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.asdfw-archive-hero--ornate .asdfw-archive-hero__title {
  margin: 0;
  color: inherit !important;
  font-size: clamp(2.35rem, 5.7vw, 4.2rem);
  line-height: 1;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.012em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.asdfw-page-hero[style*="background-color:#0a183f"] .wp-block-post-title,
.asdfw-page-hero[style*="background-color:#5f2017"] .wp-block-post-title,
.asdfw-archive-hero[style*="background-color:#0a183f"] .wp-block-query-title,
.asdfw-archive-hero[style*="background-color:#5f2017"] .wp-block-query-title {
  color: inherit !important;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.012em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.asdfw-page-hero[style*="background-color:#0a183f"] p,
.asdfw-page-hero[style*="background-color:#5f2017"] p,
.asdfw-archive-hero[style*="background-color:#0a183f"] p,
.asdfw-archive-hero[style*="background-color:#5f2017"] p {
  color: rgba(255, 255, 255, 0.82);
}

/* Maroon variant: warm gold subtitle */
.asdfw-archive-hero--maroon .asdfw-archive-hero__subtitle {
  margin: 0.65rem 0 0;
  font-size: clamp(1.02rem, 2.1vw, 1.4rem);
  color: #e8b87a !important;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.asdfw-archive-hero--navy .asdfw-archive-hero__subtitle {
  margin: 0.65rem 0 0;
  font-size: clamp(1.02rem, 2.1vw, 1.4rem);
  color: #a8bce8 !important;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.asdfw-archive-hero--ornate .asdfw-archive-hero__lead {
  margin: 1.25rem auto 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 1.04rem;
  line-height: 1.75;
}

@media (max-width: 700px) {
  .asdfw-archive-hero--ornate,
  .asdfw-page-hero[style*="background-color:#0a183f"],
  .asdfw-page-hero[style*="background-color:#5f2017"],
  .asdfw-archive-hero[style*="background-color:#0a183f"],
  .asdfw-archive-hero[style*="background-color:#5f2017"] {
    border-radius: 16px;
  }

  .asdfw-archive-hero--ornate::before,
  .asdfw-page-hero[style*="background-color:#0a183f"]::before,
  .asdfw-page-hero[style*="background-color:#5f2017"]::before,
  .asdfw-archive-hero[style*="background-color:#0a183f"]::before,
  .asdfw-archive-hero[style*="background-color:#5f2017"]::before {
    inset: 6px;
    border-radius: 12px;
  }

  .asdfw-archive-hero--ornate::after,
  .asdfw-page-hero[style*="background-color:#0a183f"]::after,
  .asdfw-page-hero[style*="background-color:#5f2017"]::after,
  .asdfw-archive-hero[style*="background-color:#0a183f"]::after,
  .asdfw-archive-hero[style*="background-color:#5f2017"]::after {
    inset: auto 20px 12px;
  }

  .asdfw-archive-hero--ornate .asdfw-archive-hero__lead {
    line-height: 1.62;
  }
}

.asdfw-events-archive .wp-block-query-pagination {
  margin-top: 2rem;
}

.asdfw-events-archive .wp-block-post-template,
.asdfw-committee-archive .wp-block-post-template,
.asdfw-club-archive .wp-block-post-template {
  margin-top: 0;
}

.asdfw-committee-archive,
.asdfw-club-archive {
  padding-bottom: 2rem;
}

.asdfw-footer {
  width: 100%;
  margin-left: 0;
}

.asdfw-ticket-panel .asdfw-info-card {
  margin-top: 1.5rem;
}

/* ── Ticket panel – stacked purchase form with live total ────────────────── */

.asdfw-ticket-panel__prior-purchase {
  margin: 0 0 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 0.86rem;
  color: #166534;
  line-height: 1.55;
}

.asdfw-ticket-panel__pending-notice {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  font-size: 0.86rem;
  color: #92400e;
  line-height: 1.55;
}

.asdfw-ticket-panel__pending-heading {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.asdfw-ticket-panel__pending-details {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.asdfw-ticket-panel__pending-details li {
  margin-bottom: 0.2rem;
}

.asdfw-ticket-panel__prior-purchase-link {
  color: #166534;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.asdfw-ticket-panel__prior-purchase-link:hover {
  color: #14532d;
}

.asdfw-ticket-panel__context {
  margin: 0 0 1.1rem;
  font-size: 0.86rem;
  color: #7a7672;
  line-height: 1.5;
}

.asdfw-ticket-panel__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Ticket rows list */
.asdfw-ticket-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.asdfw-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fffdfa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.asdfw-ticket-row:last-child {
  border-bottom: none;
}

.asdfw-ticket-row:nth-child(even) {
  background: #fdf8f2;
}

/* Left: name + unit price */
.asdfw-ticket-row__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.asdfw-ticket-row__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1614;
}

.asdfw-ticket-row__unit {
  font-size: 0.82rem;
  color: #7a7672;
}
.asdfw-ticket-row__base-price {
  color: #b0a89e;
  font-size: 0.78rem;
  text-decoration: line-through;
  margin-right: 2px;
}

/* Right: stepper + row subtotal */
.asdfw-ticket-row__controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* +/− stepper */
.asdfw-ticket-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid rgba(179, 95, 31, 0.35);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.asdfw-ticket-stepper__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: #b35f1f;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.asdfw-ticket-stepper__btn:hover {
  background: #fff7ed;
}

.asdfw-ticket-stepper__input {
  width: 44px;
  border: none;
  border-left: 1.5px solid rgba(179, 95, 31, 0.2);
  border-right: 1.5px solid rgba(179, 95, 31, 0.2);
  text-align: center;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.45rem 0;
  background: #fff;
  -moz-appearance: textfield;
  outline: none;
}

.asdfw-ticket-stepper__input::-webkit-inner-spin-button,
.asdfw-ticket-stepper__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Row subtotal */
.asdfw-ticket-row__subtotal {
  min-width: 52px;
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0a183f;
}

/* Donation row */
.asdfw-ticket-donation {
  margin-bottom: 1rem;
}

.asdfw-ticket-donation__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 14px;
  background: #fffdfa;
  font-weight: 600;
  font-size: 0.92rem;
  color: #3c3a37;
}

.asdfw-ticket-donation__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem 0.65rem;
}

.asdfw-ticket-donation__symbol {
  color: #7a7672;
  font-weight: 700;
}

.asdfw-ticket-donation__input {
  width: 80px;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  background: transparent;
  text-align: right;
  -moz-appearance: textfield;
  outline: none;
}

.asdfw-ticket-donation__input::-webkit-inner-spin-button,
.asdfw-ticket-donation__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Summary / total row */
.asdfw-ticket-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fff3e3 100%);
  border: 1px solid rgba(179, 95, 31, 0.25);
  border-radius: 16px;
}

.asdfw-ticket-summary__total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: #3c3a37;
}

.asdfw-ticket-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0a183f;
}

.asdfw-ticket-panel__limit-note {
  margin: 0;
  font-size: 0.8rem;
  color: #9a9490;
}

.asdfw-ticket-panel__submit {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  border-radius: 12px;
}

.asdfw-event-gallery {
  margin-top: 32px;
}

.asdfw-event-gallery__track,
.asdfw-event-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.asdfw-event-gallery__slide img,
.asdfw-event-gallery__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
  border: 6px solid rgba(201, 116, 36, 0.14);
}

.asdfw-event-gallery__track {
  align-items: stretch;
}

.asdfw-events-archive-section + .asdfw-events-archive-section {
  margin-top: 56px;
}

/* 3-up card carousel */
.asdfw-card-carousel {
  position: relative;
  --spv: 3;
  --gap: 24px;
}

.asdfw-card-carousel__viewport {
  overflow: hidden;
}

.asdfw-card-carousel__track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.35s ease;
  will-change: transform;
}

.asdfw-card-carousel__slide {
  flex: 0 0 calc((100% - (var(--spv) - 1) * var(--gap)) / var(--spv));
  min-width: 0;
}

.asdfw-card-carousel__btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1a4731;
  background: #fff;
  color: #1a4731;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.asdfw-card-carousel__btn:hover:not(:disabled) {
  background: #1a4731;
  color: #fff;
}

.asdfw-card-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.asdfw-card-carousel__btn--prev { left: -20px; }
.asdfw-card-carousel__btn--next { right: -20px; }

@media (max-width: 900px) {
  .asdfw-card-carousel { --spv: 2; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .asdfw-card-carousel { --spv: 3; --gap: 12px; }
}

@media (max-width: 700px) and (orientation: portrait) {
  .asdfw-card-carousel { --spv: 3; --gap: 8px; }
  .asdfw-card-carousel__btn--prev { left: -8px; }
  .asdfw-card-carousel__btn--next { right: -8px; }
}

/* ── Membership form: mobile density + responsive card layout ─────────────── */
@media (max-width: 700px) {
  .asdfw-site-main--full .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .asdfw-membership-form-wrap {
    max-width: 100%;
    padding: 0 12px;
  }
  .asdfw-membership-form__section {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .asdfw-membership-form {
    gap: 1.2rem;
  }
  .asdfw-membership-form__section {
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  }
  .asdfw-membership-form__section > p {
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
  }
  .asdfw-membership-form__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .asdfw-membership-form__grid--levels {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .asdfw-membership-form__option-card {
    padding: 0.85rem;
    border-radius: 14px;
    max-width: 100%;
    width: 100%;
  }
  .asdfw-membership-form__option-image {
    display: none;
  }
  .asdfw-membership-form__actions {
    padding-top: 0.2rem;
  }
  .asdfw-membership-comparison {
    overflow-x: auto;
  }
  .asdfw-membership-comparison__table {
    min-width: 100%;
  }
}

@media (max-width: 900px) and (min-width: 700px) and (orientation: landscape) {
  .asdfw-membership-form-wrap {
    max-width: 100%;
    padding: 0 12px;
    overflow-x: hidden;
  }
  .asdfw-membership-form {
    overflow-x: hidden;
  }
  .asdfw-membership-form {
    gap: 1.1rem;
  }
  .asdfw-membership-form__section {
    padding: 1rem;
    overflow: hidden;
  }
  .asdfw-membership-form__grid--levels {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.7rem;
    width: 100%;
  }
  .asdfw-membership-form__option-card {
    padding: 0.7rem;
  }
  .asdfw-membership-form__option-card strong {
    font-size: 0.92rem;
  }
  .asdfw-membership-form__option-card span:not(.asdfw-membership-form__price) {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .asdfw-membership-form__price {
    font-size: 0.9rem;
  }
  .asdfw-membership-form__option-image {
    aspect-ratio: 16 / 12;
    border-radius: 10px;
  }
  .asdfw-membership-comparison__table {
    min-width: 520px;
  }
  .asdfw-membership-comparison__table {
    width: 100%;
    min-width: 0;
  }
  .asdfw-events-archive .wp-block-post-template,
  .asdfw-activities-archive .wp-block-post-template,
  .asdfw-event-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
  }
  .asdfw-event-card__image,
  .asdfw-event-card__media img,
  .asdfw-event-card .wp-block-post-featured-image img,
  .asdfw-event-gallery__image {
    height: 100% !important;
    border-radius: 14px !important;
  }
  .asdfw-event-card__media {
    height: 120px !important;
    min-height: 0;
    aspect-ratio: auto;
  }
  .asdfw-event-card__body {
    padding: 0.6rem 0.7rem;
  }
  .asdfw-event-card__title-link {
    font-size: 0.95rem;
  }
  .asdfw-event-card__desc {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }
  .wp-site-blocks,
  .wp-site-blocks > .alignfull,
  .wp-site-blocks > .alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 420px) {
  .asdfw-membership-form-wrap {
    padding: 0 10px;
  }
  .asdfw-membership-form {
    gap: 0.85rem;
  }
  .asdfw-membership-form__section {
    padding: 0.75rem;
    border-radius: 12px;
  }
  .asdfw-membership-form__section h3 {
    font-size: 0.98rem;
  }
  .asdfw-membership-form__section > p {
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .asdfw-membership-form__option-card {
    padding: 0.6rem;
  }
  .asdfw-membership-form__option-card strong {
    font-size: 0.95rem;
  }
  .asdfw-membership-form__option-card span:not(.asdfw-membership-form__price) {
    font-size: 0.85rem;
    word-break: break-word;
  }
  .asdfw-membership-benefits__hint {
    margin: 0.4rem 0 0.2rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    color: #5c5148;
    background: #fff7ed;
    border: 1px solid rgba(179, 95, 31, 0.22);
    border-radius: 10px;
  }
  .asdfw-membership-form__grid {
    gap: 0.6rem;
  }
  .asdfw-membership-form__actions button {
    padding: 0.8rem 1.2rem;
  }
  .asdfw-events-archive .wp-block-post-template,
  .asdfw-activities-archive .wp-block-post-template,
  .asdfw-event-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.6rem !important;
  }
  .asdfw-event-card__image,
  .asdfw-event-card__media img,
  .asdfw-event-card .wp-block-post-featured-image img,
  .asdfw-event-gallery__image {
    height: 100% !important;
    border-radius: 14px !important;
  }
  .asdfw-event-card__media {
    height: 110px !important;
    min-height: 0;
    aspect-ratio: auto;
  }
  .asdfw-event-card__body {
    padding: 0.6rem 0.7rem;
  }
  .asdfw-event-card__title-link {
    font-size: 0.9rem;
  }
  .asdfw-event-card__desc {
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

/* Portrait: hide benefits table, show rotate hint */
@media (max-width: 700px) and (orientation: portrait) {
  .asdfw-membership-comparison {
    display: none;
  }
  .asdfw-membership-benefits__hint {
    display: block;
  }
}

/* Landscape: show benefits table, hide hint */
@media (max-width: 900px) and (orientation: landscape) {
  .asdfw-membership-comparison {
    display: block;
  }
  .asdfw-membership-benefits__hint {
    display: none;
  }
}

@media (max-width: 700px) {
  .asdfw-membership-form__grid--levels {
    justify-items: center;
  }
  .asdfw-membership-form__option-card {
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .asdfw-card-carousel { --spv: 1; }
  .asdfw-card-carousel__btn--prev { left: -14px; }
  .asdfw-card-carousel__btn--next { right: -14px; }
}

/* Activity card modifier — teal left accent */
.asdfw-event-card--activity {
  border-left: 4px solid #1a6b44;
}

.asdfw-event-card--activity .asdfw-section-eyebrow {
  color: #1a6b44;
}

.asdfw-event-card__organizer {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a6b44;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.asdfw-event-card--activity .asdfw-event-meta {
  gap: 0.35rem;
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
}

.asdfw-event-card--activity .asdfw-event-meta span {
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
}

/* Placeholder tint for activity cards without a featured image */
.asdfw-event-card__image--activity {
  background: linear-gradient(180deg, #f6faf8 0%, #edf5f0 100%);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.asdfw-event-card__image--activity::before {
  content: "";
  width: 28px;
  height: 22px;
  border: 2px solid rgba(26, 107, 68, 0.45);
  border-radius: 4px;
  background: rgba(26, 107, 68, 0.08);
  box-shadow: inset 0 -8px 0 rgba(26, 107, 68, 0.1);
}

/* Empty state — shown when no upcoming events or activities exist */
.asdfw-events-empty-state {
  text-align: center;
  padding: 64px 24px;
  max-width: 520px;
  margin: 0 auto;
}

.asdfw-events-empty-state__image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a4731 0%, #1a6b44 100%);
  margin: 0 auto 24px;
  opacity: 0.18;
}

.asdfw-events-empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1a4731;
}

.asdfw-events-empty-state p {
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Activity archive page */
.asdfw-activities-archive .asdfw-archive-hero {
  background-color: #1a4731;
}

.asdfw-activities-archive .wp-block-query-pagination {
  margin-top: 2rem;
}

.asdfw-activities-archive .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Hero image on detail pages */
.asdfw-hero-image {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.asdfw-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}


/* Activity detail page */
.asdfw-activity-page .asdfw-entity-intro {
  padding-bottom: 0.8rem;
  border-bottom: 0;
  margin-bottom: 0.4rem;
}

.asdfw-activity-overview-columns {
  margin-bottom: 1.65rem;
}

.asdfw-activity-overview-panel {
  display: grid;
  gap: 1rem;
}

/* WordPress constrained layout injects margin:auto AND max-width on grid
   children, which shrinks them to content-width and visually centers them.
   Override all three so panel children stretch full-width, left-aligned. */
.asdfw-activity-overview-panel > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.asdfw-activity-facts {
  position: static;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.asdfw-activity-facts h2 {
  margin-bottom: 0.7rem;
}

.asdfw-activity-highlights h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
}

.asdfw-activity-highlights .asdfw-meta-list {
  margin: 0;
}

.asdfw-activity-overview-panel .asdfw-activity-interest {
  margin-top: 0.15rem;
}

.asdfw-activity-body-columns {
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.asdfw-activity-description h2 {
  margin-bottom: 0.75rem;
}

.asdfw-activity-story-card {
  margin-top: 1.5rem;
}

.asdfw-activity-story-card ul {
  margin: 0.75rem 0 0 1.1rem;
}

.asdfw-gallery-section h2 {
  margin-bottom: 0.85rem;
}

.asdfw-gallery-carousel {
  display: grid;
  gap: 0.8rem;
}

.asdfw-gallery-carousel__main-wrap {
  position: relative;
}

.asdfw-gallery-carousel__main {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fafc 0%, #f1f5f9 100%);
}

.asdfw-gallery-carousel__track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.asdfw-gallery-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  display: block;
}

.asdfw-gallery-carousel__slide-image {
  width: 100%;
  height: clamp(240px, 44vw, 520px);
  object-fit: contain;
  display: block;
}

.asdfw-gallery-carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.asdfw-gallery-carousel__control:hover {
  background: rgba(17, 24, 39, 0.9);
}

.asdfw-gallery-carousel__control--prev {
  left: 0.7rem;
}

.asdfw-gallery-carousel__control--next {
  right: 0.7rem;
}

.asdfw-gallery-carousel__counter {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b5563;
  text-align: right;
}

.asdfw-gallery-carousel__thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.asdfw-gallery-carousel__thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex: 0 0 72px;
  overflow: hidden;
}

.asdfw-gallery-carousel__thumb.is-active {
  border-color: #b35f1f;
}

.asdfw-gallery-carousel__thumb-image {
  width: 100%;
  height: 58px;
  object-fit: cover;
  display: block;
}

.asdfw-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.asdfw-gallery-lightbox[hidden] {
  display: none;
}

.asdfw-gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.9);
}

.asdfw-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  padding: 0.75rem 3rem 1rem;
}

.asdfw-gallery-lightbox__image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
}

.asdfw-gallery-lightbox__counter {
  margin: 0.55rem 0 0;
  text-align: center;
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
}

.asdfw-gallery-lightbox__close,
.asdfw-gallery-lightbox__control {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  cursor: pointer;
}

.asdfw-gallery-lightbox__close {
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  line-height: 1;
}

.asdfw-gallery-lightbox__control {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.asdfw-gallery-lightbox__control--prev {
  left: 0;
}

.asdfw-gallery-lightbox__control--next {
  right: 0;
}

.asdfw-activity-gallery-section h2,
.asdfw-activity-interest h2 {
  margin-bottom: 0.85rem;
}

.asdfw-activity-gallery-carousel {
  display: grid;
  gap: 0.8rem;
}

.asdfw-activity-gallery-carousel__main-wrap {
  position: relative;
}

.asdfw-activity-gallery-carousel__main {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fafc 0%, #f1f5f9 100%);
}

.asdfw-activity-gallery-carousel__track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.asdfw-activity-gallery-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  display: block;
}

.asdfw-activity-gallery-carousel__slide-image {
  width: 100%;
  height: clamp(240px, 44vw, 520px);
  object-fit: contain;
  display: block;
}

.asdfw-activity-gallery-carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.asdfw-activity-gallery-carousel__control:hover {
  background: rgba(17, 24, 39, 0.9);
}

.asdfw-activity-gallery-carousel__control--prev {
  left: 0.7rem;
}

.asdfw-activity-gallery-carousel__control--next {
  right: 0.7rem;
}

.asdfw-activity-gallery-carousel__counter {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b5563;
  text-align: right;
}

.asdfw-activity-gallery-carousel__thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.asdfw-activity-gallery-carousel__thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex: 0 0 72px;
  overflow: hidden;
}

.asdfw-activity-gallery-carousel__thumb.is-active {
  border-color: #b35f1f;
}

.asdfw-activity-gallery-carousel__thumb-image {
  width: 100%;
  height: 58px;
  object-fit: cover;
  display: block;
}

.asdfw-activity-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.asdfw-activity-lightbox[hidden] {
  display: none;
}

.asdfw-activity-lightbox__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.9);
}

.asdfw-activity-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  padding: 0.75rem 3rem 1rem;
}

.asdfw-activity-lightbox__image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
}

.asdfw-activity-lightbox__counter {
  margin: 0.55rem 0 0;
  text-align: center;
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
}

.asdfw-activity-lightbox__close,
.asdfw-activity-lightbox__control {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  cursor: pointer;
}

.asdfw-activity-lightbox__close {
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  line-height: 1;
}

.asdfw-activity-lightbox__control {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.asdfw-activity-lightbox__control--prev {
  left: 0;
}

.asdfw-activity-lightbox__control--next {
  right: 0;
}

body.asdfw-lightbox-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .asdfw-gallery-carousel__slide-image {
    height: clamp(220px, 62vw, 420px);
  }

  .asdfw-gallery-lightbox__dialog {
    width: min(98vw, 1100px);
    padding: 0.75rem 0.5rem 0.8rem;
  }

  .asdfw-gallery-lightbox__close {
    top: -0.3rem;
    right: 0.2rem;
  }

  .asdfw-gallery-lightbox__control {
    width: 40px;
    height: 40px;
  }

  .asdfw-gallery-lightbox__control--prev {
    left: 0.2rem;
  }

  .asdfw-gallery-lightbox__control--next {
    right: 0.2rem;
  }

  .asdfw-activity-gallery-carousel__slide-image {
    height: clamp(220px, 62vw, 420px);
  }

  .asdfw-activity-lightbox__dialog {
    width: min(98vw, 1100px);
    padding: 0.75rem 0.5rem 0.8rem;
  }

  .asdfw-activity-lightbox__close {
    top: -0.3rem;
    right: 0.2rem;
  }

  .asdfw-activity-lightbox__control {
    width: 40px;
    height: 40px;
  }

  .asdfw-activity-lightbox__control--prev {
    left: 0.2rem;
  }

  .asdfw-activity-lightbox__control--next {
    right: 0.2rem;
  }
}

/* Activity blog posts — feed */
.asdfw-activity-updates {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.asdfw-activity-updates__heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.asdfw-activity-updates__feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.asdfw-activity-update-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.asdfw-activity-update-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.asdfw-activity-update-card__body {
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.asdfw-activity-update-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.asdfw-activity-update-card__excerpt {
  font-size: 0.9rem;
  color: var(--wp--preset--color--gray, #686868);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asdfw-activity-update-byline {
  font-size: 0.8rem;
  color: var(--wp--preset--color--gray, #686868);
  margin: 0;
}

.asdfw-activity-update-card__read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #503AA8);
  text-decoration: none;
  margin-top: auto;
}

.asdfw-activity-update-card__read-more:hover {
  text-decoration: underline;
}

/* Activity blog posts — single post page */
.asdfw-activity-update-single {
  margin: 0 0 3rem;
}

.asdfw-activity-update-single__back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #503AA8);
  text-decoration: none;
}

.asdfw-activity-update-single__back:hover {
  text-decoration: underline;
}

.asdfw-activity-update-single__card {
  padding: 0;
  overflow: hidden;
}

.asdfw-activity-update-single__hero {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-bottom: 0;
}

.asdfw-activity-update-single__hero-img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.asdfw-activity-update-single__title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 1.5rem 1.75rem 0.5rem;
  line-height: 1.25;
}

.asdfw-activity-update-single .asdfw-activity-update-byline {
  margin: 0 1.75rem 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.asdfw-activity-update-single__content {
  font-size: 1rem;
  line-height: 1.75;
  padding: 0 1.75rem 1.75rem;
}

.asdfw-activity-update-single__content p {
  margin: 0 0 1em;
}

@media (max-width: 600px) {
  .asdfw-activity-updates__feed {
    grid-template-columns: 1fr;
  }

  .asdfw-activity-update-single__title {
    font-size: 1.3rem;
    margin: 1.2rem 1.25rem 0.4rem;
  }

  .asdfw-activity-update-single .asdfw-activity-update-byline {
    margin: 0 1.25rem 1rem;
  }

  .asdfw-activity-update-single__content {
    padding: 0 1.25rem 1.25rem;
  }
}

.asdfw-activity-interest {
  margin-top: 1.6rem;
}

.asdfw-dynamic-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.asdfw-secure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 1.5rem 0;
}

.asdfw-secure-grid--primary {
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
}

.asdfw-secure-grid--login {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.asdfw-secure-card {
  background: #fffdfa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.asdfw-secure-card--hero {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  padding: 1rem 1.2rem;
}

.asdfw-secure-card--message {
  max-width: 1200px;
}

.asdfw-secondary-page .wp-block-columns,
.asdfw-wide-page-wrap .wp-block-columns {
  gap: 2rem;
}

.asdfw-secondary-page .wp-block-image img,
.asdfw-wide-page-wrap .wp-block-image img {
  border-radius: 24px;
}
.asdfw-secure-card--module {
  position: relative;
  padding: 1rem 3.65rem 1rem 1.05rem;
  border-color: rgba(179, 95, 31, 0.14);
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.asdfw-secure-card__title-row {
  position: relative;
  padding-right: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.asdfw-secure-card__title-row h3 {
  margin: 0;
}

.asdfw-pending-badge--tile {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  min-width: 1.34rem;
  height: 1.34rem;
  font-size: 0.68rem;
}

.asdfw-secure-card--module-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.asdfw-secure-card--module-link::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(179, 95, 31, 0.22);
  background: #fff3e4;
  color: #8c4a18;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.asdfw-secure-card--module-link:hover,
.asdfw-secure-card--module-link:focus-visible {
  border-color: rgba(179, 95, 31, 0.45);
  background: #fff7ef;
  box-shadow: 0 18px 32px rgba(179, 95, 31, 0.14);
  transform: translateY(-1px);
}

.asdfw-secure-card--module-link:hover::after,
.asdfw-secure-card--module-link:focus-visible::after {
  background: #b35f1f;
  border-color: #b35f1f;
  color: #fff;
  transform: translateY(-50%) translateX(2px);
}

.asdfw-secure-card--module-link:hover h3,
.asdfw-secure-card--module-link:focus-visible h3 {
  color: #8c4a18;
}

.asdfw-secure-grid--modules {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0.9rem 0;
}

.asdfw-secure-card--module p {
  margin: 0.55rem 0 0;
}

.asdfw-admin-dashboard__hero {
  margin-bottom: 1rem;
}

.asdfw-admin-dashboard__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.asdfw-admin-dashboard__summary-item {
  min-width: 140px;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(179, 95, 31, 0.12);
}

.asdfw-admin-dashboard__summary-value {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0a183f;
}

.asdfw-admin-dashboard__summary-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7b746c;
}

.asdfw-admin-dashboard__sections {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
}

.asdfw-admin-dashboard__section {
  padding: 1.1rem 1.15rem;
}

.asdfw-admin-dashboard__section-header {
  margin-bottom: 0.7rem;
}

.asdfw-admin-dashboard__section-kicker {
  margin: 0 0 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9a8e80;
}

.asdfw-admin-dashboard__section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.asdfw-admin-dashboard__section-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.asdfw-admin-dashboard__section-description {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #6f6a64;
}

.asdfw-admin-dashboard__section .asdfw-secure-card--module {
  padding-right: 1.05rem;
}

.asdfw-admin-dashboard__section .asdfw-secure-card--module-link::after {
  display: none;
  content: none;
}

.asdfw-admin-dashboard__section .asdfw-secure-grid--modules {
  margin: 0;
}

@media (max-width: 640px) {
  .asdfw-admin-dashboard__section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .asdfw-admin-dashboard__summary-item {
    min-width: 0;
    width: 100%;
  }
}

/* Member admin page: compact top hero and page header height. */
.page-template-page-member-portal .asdfw-page-hero {
  margin-top: 10px !important;
  margin-bottom: 22px !important;
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

.asdfw-secure-card h2,
.asdfw-secure-card h3 {
  margin-top: 0;
}

.asdfw-pw-wrap {
  position: relative;
  display: block;
}
.asdfw-pw-wrap input[type=password],
.asdfw-pw-wrap input[type=text] {
  width: 100%;
  padding-right: 2.4rem;
  box-sizing: border-box;
}
.asdfw-secure-form button.asdfw-pw-toggle,
button.asdfw-pw-toggle,
.asdfw-pw-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 2px !important;
  margin: 0;
  cursor: pointer;
  color: #999;
  line-height: 1;
  display: flex;
  align-items: center;
  width: auto;
  min-width: 0;
  font-weight: normal;
  box-shadow: none;
}
.asdfw-secure-form button.asdfw-pw-toggle:hover,
.asdfw-pw-toggle:hover {
  color: #503AA8 !important;
  background: none !important;
}

.asdfw-secure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.asdfw-secure-button,
.asdfw-secure-form button,
.asdfw-secure-table a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  border: 0;
  background: #b35f1f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.asdfw-secure-button--secondary {
  background: #13234b;
}

/* Plain text link inside a secure table — overrides the global button rule */
.asdfw-secure-table td a.asdfw-table-text-link {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #b35f1f;
  font-weight: 600;
  text-decoration: underline;
}

.asdfw-secure-button--danger {
  background: #8e1b1b;
}

.asdfw-secure-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.8;
}

.asdfw-secure-form {
  display: grid;
  gap: 1rem;
}

.asdfw-secure-form input[type="text"],
.asdfw-secure-form input[type="email"],
.asdfw-secure-form input[type="password"],
.asdfw-secure-form input[type="datetime-local"],
.asdfw-secure-form input[type="file"],
.asdfw-secure-form select,
.asdfw-secure-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  background: #fff;
  font: inherit;
}

.asdfw-secure-form fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

.asdfw-secure-checkboxes {
  display: grid;
  gap: 0.55rem;
}

.asdfw-secure-table-wrap {
  overflow-x: auto;
}

.asdfw-secure-table {
  width: 100%;
  border-collapse: collapse;
}

.asdfw-secure-table th,
.asdfw-secure-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.asdfw-secure-media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.asdfw-secure-media-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.asdfw-secure-notice {
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid transparent;
}

.asdfw-secure-notice p {
  margin: 0;
}

.asdfw-secure-notice--success {
  background: #effaf2;
  border-color: #a8dfb5;
}

.asdfw-secure-notice--warning {
  background: #fff9eb;
  border-color: #f0d596;
}

.asdfw-secure-notice--error {
  background: #fff0f0;
  border-color: #efb2b2;
}

.asdfw-secure-notice--info {
  background: #f1f6ff;
  border-color: #b5c8f2;
}

.asdfw-secure-helper {
  color: rgba(17, 24, 39, 0.75);
  font-size: 0.95rem;
  margin: 0;
}

.asdfw-password-rules {
  margin: 0.75rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f8f5ef;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.asdfw-password-rules__title {
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.asdfw-password-rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.asdfw-password-rules__list li,
.asdfw-password-match {
  color: #5f5a54;
}

.asdfw-password-rules__list li::before {
  content: "•";
  display: inline-block;
  width: 1rem;
  color: #b35f1f;
}

.asdfw-password-rules__list li.is-met,
.asdfw-password-match.is-met {
  color: #18794e;
  font-weight: 600;
}

.asdfw-password-rules__list li.is-met::before {
  content: "✓";
  color: #18794e;
}

.asdfw-password-match {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.asdfw-password-match.is-error {
  color: #a12626;
  font-weight: 600;
}

@media (max-width: 900px) {
  .asdfw-shell,
  .asdfw-site-main {
    width: min(1200px, calc(100% - 1.25rem));
  }

  .asdfw-page-title,
  .asdfw-entity-intro h1,
  .asdfw-archive-hero h1,
  .asdfw-home-events h2,
  .asdfw-home-committees h2,
  .asdfw-home-intro h2,
  .asdfw-membership-band h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .asdfw-pattern-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .asdfw-info-card {
    padding: 1.2rem;
  }

  .asdfw-membership-form__grid,
  .asdfw-membership-form__grid--levels {
    grid-template-columns: 1fr;
  }

  .asdfw-membership-comparison__table {
    min-width: 100%;
  }

  .asdfw-event-sidebar {
    position: static;
  }

  .asdfw-secure-grid,
  .asdfw-secure-grid--primary {
    grid-template-columns: 1fr;
  }

  .asdfw-secure-media-list li {
    grid-template-columns: 1fr;
  }
}

/* Compact action buttons within member home cards/forms */
.asdfw-member-home__member-controls .asdfw-secure-button,
.asdfw-member-home__form-actions .asdfw-secure-button,
.asdfw-member-profile__avatar-edit-actions .asdfw-secure-button {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Secondary = outline amber — replaces the heavy navy default in card/form contexts */
.asdfw-member-home__member-controls .asdfw-secure-button--secondary,
.asdfw-member-home__form-actions .asdfw-secure-button--secondary,
.asdfw-member-profile__avatar-edit-actions .asdfw-secure-button--secondary {
  background: transparent;
  color: #b35f1f;
  border: 1.5px solid #b35f1f;
}

.asdfw-member-home__member-controls .asdfw-secure-button--secondary:hover,
.asdfw-member-home__form-actions .asdfw-secure-button--secondary:hover,
.asdfw-member-profile__avatar-edit-actions .asdfw-secure-button--secondary:hover {
  background: #fff7ed;
}

.asdfw-member-home .asdfw-secure-card {
  padding: 1.25rem !important;
  margin-bottom: 1rem !important;
}

.asdfw-member-home .asdfw-secure-card:last-child {
  margin-bottom: 0 !important;
}

.asdfw-member-home .asdfw-secure-card h3 {
  margin-bottom: 0.6rem !important;
  padding-bottom: 0.35rem !important;
}

/* ==========================================================================
   Global form breathing room + mobile friendliness
   ========================================================================== */

/* More space between form sections */
.asdfw-membership-form__section {
  padding: 2rem;
}

.asdfw-membership-form__section + .asdfw-membership-form__section {
  /* already handled by .asdfw-membership-form gap:2.1rem — no extra needed */
}

/* Slightly taller input touch targets */
.asdfw-membership-form input,
.asdfw-membership-form select,
.asdfw-membership-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

/* Comfortable label spacing */
.asdfw-membership-form label {
  gap: 0.5rem;
}

/* Secure form inputs get a bit more breathing room too */
.asdfw-secure-form input[type="text"],
.asdfw-secure-form input[type="email"],
.asdfw-secure-form input[type="password"] {
  padding: 0.9rem 1rem;
}

/* Primary secure button — slightly more generous padding */
.asdfw-secure-button,
.asdfw-secure-form button {
  padding: 0.9rem 1.35rem;
  font-size: 0.95rem;
}

/* ── Mobile: Membership application form ─────────────────────────────────── */

@media (max-width: 860px) {
  /* 3-col levels → 2-col */
  .asdfw-membership-form__grid--levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asdfw-membership-form__section {
    padding: 1.5rem;
  }
}

@media (max-width: 580px) {
  /* Level cards single-column on phone */
  .asdfw-membership-form__grid--levels {
    grid-template-columns: 1fr;
  }
  /* All form grids go single-column */
  .asdfw-membership-form__grid {
    grid-template-columns: 1fr;
  }
  .asdfw-membership-form__section {
    padding: 1.25rem 1rem;
    border-radius: 18px;
  }
  .asdfw-membership-form-wrap {
    margin-top: 1.5rem;
  }
}

/* ── Mobile: Column stacking (event sidebar, archive, activity) ──────────── */

@media (max-width: 860px) {
  /* Stack event sidebar below content */
  .asdfw-detail-columns {
    flex-direction: column;
  }
  /* Event detail 36/64, archive listing 30/70, activity overview 48/52 */
  .wp-block-column[style*="flex-basis:36%"],
  .wp-block-column[style*="flex-basis:64%"],
  .wp-block-column[style*="flex-basis:30%"],
  .wp-block-column[style*="flex-basis:70%"],
  .wp-block-column[style*="flex-basis:48%"],
  .wp-block-column[style*="flex-basis:52%"] {
    flex-basis: 100% !important;
    width: 100%;
  }
}

/* ── Mobile: Secure cards (login, account, etc.) ─────────────────────────── */

@media (max-width: 640px) {
  /* Footer: stack bar */
  .asdfw-footer__bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .asdfw-footer__bar-left {
    order: 1;
  }

  .asdfw-footer__copyright {
    order: 2;
  }

  .asdfw-footer__bar-right {
    order: 3;
  }

  .asdfw-secure-card {
    padding: 1.1rem;
    border-radius: 18px;
  }
  .asdfw-member-home .asdfw-secure-card {
    padding: 1rem !important;
    margin-bottom: 0.85rem !important;
  }
  .asdfw-member-home__welcome {
    font-size: 1rem !important;
    line-height: 1.25;
    margin-bottom: 0.2rem;
    max-width: 16ch;
    word-break: break-word;
  }
  .asdfw-secure-grid,
  .asdfw-secure-grid--login {
    grid-template-columns: 1fr;
  }
  .asdfw-secure-button,
  .asdfw-secure-form button {
    width: 100%;
    justify-content: center;
  }
  /* Prevent buttons from stretching inside flex rows */
  .asdfw-secure-actions .asdfw-secure-button,
  .asdfw-member-home__form-actions .asdfw-secure-button,
  .asdfw-member-home__member-controls .asdfw-secure-button {
    width: auto;
  }
}

/* ── Sponsor display components ──────────────────────────────────────────────── */

/* Shared link reset */
.asdfw-sponsor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.asdfw-sponsor-link:hover { opacity: 0.8; }
.asdfw-sponsor-link img { display: block; max-width: 100%; height: auto; object-fit: contain; }
.asdfw-sponsor-name { font-weight: 600; font-size: 0.95rem; }

/* ── A. Featured sponsor strip ──────────────────────────────────────────────── */
.asdfw-sponsor-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.asdfw-sponsor-strip__title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin: 0;
  white-space: nowrap;
}
.asdfw-sponsor-strip__items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.asdfw-sponsor-strip__item {
  display: flex;
  align-items: center;
}
.asdfw-sponsor-strip__item img {
  max-height: 64px;
  max-width: 120px;
  object-fit: contain;
}

/* ── B. Carousel ────────────────────────────────────────────────────────────── */
.asdfw-sponsor-carousel {
  padding: 24px 0;
  overflow: hidden;
}
.asdfw-sponsor-carousel__title {
  text-align: center;
  margin-bottom: 16px;
}
.asdfw-sponsor-carousel__track {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  min-height: 96px;
}
.asdfw-sponsor-carousel__slide {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 200px;
}
.asdfw-sponsor-carousel__slide.asdfw-slide--active {
  display: flex;
}
.asdfw-sponsor-carousel__slide img {
  max-height: 80px;
  max-width: 180px;
  object-fit: contain;
}
.asdfw-sponsor-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.asdfw-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.asdfw-dot--active { background: #333; }

/* When JS is not available or carousel has only one slide, show all */
@media (prefers-reduced-motion: reduce) {
  .asdfw-sponsor-carousel__slide { display: flex !important; }
  .asdfw-sponsor-carousel__dots { display: none; }
  .asdfw-sponsor-carousel__track { flex-wrap: wrap; }
}

/* ── C. Sponsor directory ───────────────────────────────────────────────────── */

/* ─── Outer showcase container ─── */
.asdfw-sponsor-showcase {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Section label (shared) */
.asdfw-showcase__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #bbb;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.asdfw-showcase__label span { flex-shrink: 0; }
.asdfw-showcase__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}
.asdfw-showcase__label--corporate { color: #7c3aed; }
.asdfw-showcase__label--platinum  { color: #6b7280; }
.asdfw-showcase__label--gold      { color: #b45309; }
.asdfw-showcase__label--silver    { color: #9ca3af; }
.asdfw-showcase__label--bronze    { color: #92400e; }

/* ─── Section headings (used by level sections) ─── */
.asdfw-sponsor-level__header { margin-bottom: 20px; }

.asdfw-sponsor-level__heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #aaa;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.asdfw-sponsor-level__heading span { flex-shrink: 0; }
.asdfw-sponsor-level__heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

.asdfw-heading--premier { color: #7c3aed; }
.asdfw-sponsor-level--gold   .asdfw-sponsor-level__heading { color: #b45309; }
.asdfw-sponsor-level--silver .asdfw-sponsor-level__heading { color: #9ca3af; }
.asdfw-sponsor-level--bronze .asdfw-sponsor-level__heading { color: #92400e; }

.asdfw-sponsor-level__benefits {
  font-size: 0.82rem;
  color: #777;
  margin: 10px 0 0;
  padding-left: 18px;
  list-style: disc;
}

/* ─── Marquee (Corporate + Platinum + Gold logos) ─── */
.asdfw-sponsor-marquee { position: relative; }

.asdfw-showcase__marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.asdfw-marquee__track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: asdfw-marquee-scroll linear infinite;
  will-change: transform;
}

.asdfw-sponsor-marquee:hover .asdfw-marquee__track {
  animation-play-state: paused;
}

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

/* Individual marquee panel */
.asdfw-marquee__panel {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
}

.asdfw-marquee__logo-frame {
  width: 164px;
  height: 84px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.asdfw-marquee__panel:hover .asdfw-marquee__logo-frame {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.asdfw-marquee__logo-frame img {
  display: block;
  max-width: 136px;
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(0) opacity(1);
  transition: filter 0.3s ease;
  draggable: false;
  user-select: none;
  -webkit-user-drag: none;
}

.asdfw-marquee__panel:hover .asdfw-marquee__logo-frame img {
  filter: grayscale(0) opacity(1);
}

/* Text-only fallback inside the logo frame */
.asdfw-marquee__name-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #555;
  text-align: center;
  line-height: 1.3;
  padding: 4px 6px;
}

/* Sponsor name shown below the logo frame */
.asdfw-marquee__name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #aaa;
  text-align: center;
  line-height: 1.3;
  margin: 5px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 164px;
}

/* ─── Spotlight grid (Corporate + Platinum named cards) ─── */
.asdfw-sponsor-spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.asdfw-spotlight__card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.asdfw-spotlight__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}
.asdfw-spotlight__card--corporate { border-top: 3px solid #7c3aed; }
.asdfw-spotlight__card--platinum  { border-top: 3px solid #6b7280; }

.asdfw-spotlight__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.asdfw-spotlight__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 20px;
  min-height: 136px;
  background: #fafafa;
  border-bottom: 1px solid #f2f2f2;
}

.asdfw-spotlight__logo-wrap img {
  display: block;
  max-width: 180px;
  max-height: 96px;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: filter 0.25s ease;
}
.asdfw-spotlight__card:hover .asdfw-spotlight__logo-wrap img {
  filter: grayscale(0);
}

.asdfw-spotlight__name-badge {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  line-height: 1.3;
  padding: 4px 8px;
}

.asdfw-spotlight__footer {
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.asdfw-spotlight__name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #444;
  margin: 0;
  line-height: 1.3;
}

.asdfw-spotlight__tagline {
  font-size: 0.72rem;
  color: #aaa;
  margin: 0;
  line-height: 1.4;
}

/* ─── Gold horizontal scroll carousel ─── */
.asdfw-sponsor-hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.asdfw-sponsor-hscroll::-webkit-scrollbar { display: none; }

/* Sponsor card (used in hscroll) */
.asdfw-sponsor-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  flex: 0 0 156px;
  scroll-snap-align: start;
}
.asdfw-sponsor-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.asdfw-sponsor-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.asdfw-sponsor-card__frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-bottom: 1px solid #f0f0f0;
  padding: 22px 20px 18px;
  min-height: 96px;
}

.asdfw-sponsor-card__frame img {
  display: block;
  max-width: 100%;
  max-height: 68px;
  max-width: 124px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.2s ease;
}
.asdfw-sponsor-card:hover .asdfw-sponsor-card__frame img {
  filter: grayscale(0);
}

.asdfw-sponsor-card__name-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  line-height: 1.3;
  padding: 4px 8px;
}

.asdfw-sponsor-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  color: #999;
  margin: 0;
  padding: 10px 14px 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── Silver compact chips ─── */
.asdfw-sponsor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.asdfw-sponsor-chip--compact {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  align-items: stretch;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.asdfw-sponsor-chip--compact:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-color: #c8c8c8;
}

/* Bronze pill chips */
.asdfw-sponsor-chip--minimal {
  background: #f4f2ef;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}
.asdfw-sponsor-chip--minimal:hover { background: #ebe8e2; }

.asdfw-sponsor-chip__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 8px 14px;
}
.asdfw-sponsor-chip--minimal .asdfw-sponsor-chip__link { padding: 6px 16px; }

.asdfw-sponsor-chip__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 2px;
}
.asdfw-sponsor-chip__logo img {
  height: 30px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  display: block;
}

.asdfw-sponsor-chip__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.asdfw-sponsor-chip--minimal .asdfw-sponsor-chip__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
}

/* Legacy — kept for strip/carousel compat */
.asdfw-sponsor-message {
  font-size: 0.78rem;
  color: #999;
  margin: 0;
  text-align: center;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .asdfw-marquee__track {
    animation: none !important;
  }
  .asdfw-showcase__marquee-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .asdfw-showcase__marquee-wrap .asdfw-marquee__track {
    flex-wrap: wrap;
    width: auto;
    gap: 10px;
  }
}

/* ── D. Inquiry form ────────────────────────────────────────────────────────── */
.asdfw-sponsor-inquiry-wrapper { margin: 0; }

/* CTA toggle — brand-warm pill */
.asdfw-sponsor-inquiry-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #b35f1f 0%, #c8793a 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(179, 95, 31, 0.28);
  transition: box-shadow 0.2s, transform 0.15s;
}
.asdfw-sponsor-inquiry-toggle:hover {
  box-shadow: 0 6px 22px rgba(179, 95, 31, 0.38);
  transform: translateY(-1px);
}
.asdfw-toggle-icon { font-size: 0.7em; opacity: 0.85; }

/* Collapsible panel */
.asdfw-sponsor-inquiry-panel {
  margin-top: 24px;
  background: #fdf8f4;
  border: 1px solid #e8d8c8;
  border-radius: 16px;
  padding: 32px 36px;
}

/* Two-column form */
.asdfw-sponsor-inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  max-width: 860px;
}
.asdfw-inquiry-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
/* Full-width: textarea, submit, and the last row */
.asdfw-inquiry-row:has(.asdfw-inquiry-textarea),
.asdfw-inquiry-row:has(.asdfw-inquiry-submit) { grid-column: 1 / -1; }

.asdfw-inquiry-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a3820;
}
.asdfw-inquiry-input,
.asdfw-inquiry-select,
.asdfw-inquiry-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d4bfaa;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.asdfw-inquiry-input:focus,
.asdfw-inquiry-select:focus,
.asdfw-inquiry-textarea:focus {
  outline: none;
  border-color: #b35f1f;
  box-shadow: 0 0 0 3px rgba(179, 95, 31, 0.12);
}
.asdfw-inquiry-textarea { resize: vertical; min-height: 90px; }

.asdfw-inquiry-submit {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #b35f1f 0%, #c8793a 100%);
  color: #fff;
  border: none;
  padding: 11px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(179, 95, 31, 0.25);
  transition: box-shadow 0.2s, transform 0.15s;
}
.asdfw-inquiry-submit:hover {
  box-shadow: 0 6px 20px rgba(179, 95, 31, 0.35);
  transform: translateY(-1px);
}

.asdfw-inquiry-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  grid-column: 1 / -1;
}

/* ── Sponsorship page: wider layout ───────────────────────────────────────── */
.asdfw-sponsorship-page {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.asdfw-sponsorship-page .wp-block-post-content {
  max-width: none;
  width: 100%;
}
/* Section groups get wider max-width */
.asdfw-sponsorship-page .wp-block-post-content > .wp-block-group,
.asdfw-sponsorship-page .wp-block-post-content > .wp-block-separator {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sponsorship level cards: compact ─────────────────────────────────────── */
.asdfw-sponsor-level-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 15px 14px;
}
.asdfw-level-corporate { border-top: 3px solid #7c3aed; }
.asdfw-level-platinum  { border-top: 3px solid #6b7280; }
.asdfw-level-gold      { border-top: 3px solid #d97706; }
.asdfw-level-silver    { border-top: 3px solid #9ca3af; }
.asdfw-level-bronze    { border-top: 3px solid #92400e; }

.asdfw-sponsor-level-card h3 { font-size: 0.95rem; margin-bottom: 3px; }
.asdfw-sponsor-level-card > .wp-block-column > p,
.asdfw-sponsor-level-card p { font-size: 0.83rem; margin-bottom: 8px; }
.asdfw-sponsor-level-card ul {
  margin: 0;
  padding-left: 15px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #555;
}
.asdfw-sponsor-level-card li { margin-bottom: 1px; }

/* Tighter column gap for level rows */
.asdfw-sponsorship-page .wp-block-columns { gap: 10px; }

@media (max-width: 600px) {
  .asdfw-sponsor-inquiry-panel { padding: 20px 16px; }
  .asdfw-sponsor-inquiry-form { grid-template-columns: 1fr; }
  .asdfw-sponsor-strip { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Checkout & Payment — [asdfw_checkout] / [asdfw_my_orders]
   ========================================================================== */

/* ── Status badges ─────────────────────────────────────────────────────────── */

.asdfw-status-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}
.asdfw-status-badge--awaiting {
  background: #fff3cd;
  color: #7a5800;
  border: 1px solid #ffe08a;
}
.asdfw-status-badge--paid {
  background: #d4edda;
  color: #155724;
  border: 1px solid #a8d5b5;
}
.asdfw-status-badge--cancelled {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f1b0b7;
}
.asdfw-status-badge--review {
  background: #d6eaf8;
  color: #1a4e8a;
  border: 1px solid #a9d0f5;
}

/* ── Checkout wrapper ──────────────────────────────────────────────────────── */

.asdfw-checkout {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Step progress indicator ───────────────────────────────────────────────── */

.asdfw-checkout__progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.asdfw-checkout__progress-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.asdfw-checkout__progress-step.is-active,
.asdfw-checkout__progress-step.is-done { opacity: 1; }

.asdfw-checkout__progress-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5d8c8;
  color: #4e3524;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.asdfw-checkout__progress-step.is-active .asdfw-checkout__progress-num {
  background: #b35f1f;
  color: #fff;
}
.asdfw-checkout__progress-step.is-done .asdfw-checkout__progress-num {
  background: #1a4731;
  color: #fff;
}

.asdfw-checkout__progress-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4e3524;
}

.asdfw-checkout__progress-connector {
  flex: 1;
  height: 2px;
  background: #e5d8c8;
  margin: 0 0.5rem;
}

/* ── Section layout ────────────────────────────────────────────────────────── */

.asdfw-checkout__section {
  margin-bottom: 1.5rem;
}

.asdfw-checkout__section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a183f;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #b35f1f;
  letter-spacing: 0.01em;
}

/* ── Card wrapper ──────────────────────────────────────────────────────────── */

.asdfw-checkout__card {
  background: #fffdfa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}

.asdfw-checkout__order-type-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b35f1f;
  margin: 0 0 0.85rem;
}

/* ── Order items table ─────────────────────────────────────────────────────── */

.asdfw-checkout__items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.asdfw-checkout__item td {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0ebe3;
  vertical-align: top;
}
.asdfw-checkout__item:last-child td { border-bottom: none; }
.asdfw-checkout__item-amount {
  text-align: right;
  white-space: nowrap;
  padding-left: 1rem !important;
  font-weight: 600;
}

/* ── Totals block ──────────────────────────────────────────────────────────── */

.asdfw-checkout__totals {
  border-top: 1px solid #e5d8c8;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.asdfw-checkout__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #444;
}

.asdfw-checkout__total-row--surcharge {
  color: #7a5800;
  font-style: italic;
  font-size: 0.85rem;
}

.asdfw-checkout__total-row--grand {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a183f;
  border-top: 2px solid #e5d8c8;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

/* ── Payment method buttons ────────────────────────────────────────────────── */

.asdfw-checkout__methods {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.asdfw-checkout__method-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: #fffdfa;
  border: 2px solid #e5d8c8;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
}
.asdfw-checkout__method-btn:hover {
  border-color: #b35f1f;
  background: #fffaf4;
}
.asdfw-checkout__method-btn.is-selected {
  border-color: #b35f1f;
  background: #fff8f0;
  box-shadow: 0 0 0 3px rgba(179, 95, 31, 0.15);
}

.asdfw-checkout__method-icon {
  flex-shrink: 0;
  line-height: 0;
}

.asdfw-checkout__method-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.asdfw-checkout__method-body strong {
  font-size: 0.95rem;
  color: #0a183f;
  display: block;
}
.asdfw-checkout__method-body span {
  font-size: 0.82rem;
  color: #8a7a6a;
}

.asdfw-checkout__method-badge {
  background: #1a4731;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Payment preview boxes ─────────────────────────────────────────────────── */

.asdfw-checkout__payment-preview {
  background: #f7f3ee;
  border: 1px solid #e5d8c8;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #4e3524;
}

.asdfw-checkout__payment-preview-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.asdfw-checkout__payment-preview-inner p { margin: 0; }

.asdfw-checkout__expiry-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #7a5800;
  padding-top: 0.75rem;
  border-top: 1px dashed #e5d8c8;
}
.asdfw-checkout__expiry-note svg { flex-shrink: 0; margin-top: 1px; }

.asdfw-checkout__surcharge-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #7a5800;
}

/* ── Place-order action bar ────────────────────────────────────────────────── */

.asdfw-checkout__action {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.asdfw-checkout__submit-btn {
  min-width: 180px;
}

/* ── Waiver checkbox (shared by checkout and RSVP) ─────────────────────────── */

.asdfw-checkout__waiver,
.asdfw-rsvp-form__field--waiver {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fdfaf3;
  border: 1px solid #e0d7b5;
  border-radius: 6px;
}

.asdfw-waiver-details {
  margin-bottom: 0.75rem;
}

.asdfw-waiver-details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  font-size: 0.9rem;
  user-select: none;
}

.asdfw-waiver-details__body {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #444;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #d1c98a;
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  background: #fff;
  white-space: pre-wrap;
}

.asdfw-waiver-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}

.asdfw-waiver-label input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

/* ── Post-order confirmation block (JS-rendered) ───────────────────────────── */

.asdfw-confirm-block {
  background: #fffdfa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.asdfw-confirm-block__top {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
  border-bottom: 1px solid #f0ebe3;
}
.asdfw-confirm-block__top h2 {
  margin: 0.65rem 0 0.5rem;
  font-size: 1.2rem;
  color: #0a183f;
}
.asdfw-confirm-block__top p { margin: 0; color: #555; font-size: 0.9rem; }

.asdfw-confirm-block__icon {
  line-height: 0;
  margin-bottom: 0.25rem;
}

.asdfw-confirm-block__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #e5d8c8;
}

.asdfw-confirm-block__highlight {
  background: #fffaf4;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.asdfw-confirm-block__highlight-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b35f1f;
}
.asdfw-confirm-block__highlight-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a183f;
  font-family: monospace;
  letter-spacing: 0.04em;
}

.asdfw-confirm-block__paypal-note {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #555;
}
.asdfw-confirm-block__paypal-note p { margin: 0; }

.asdfw-confirm-block__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f0ebe3;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Zelle instructions (shared: checkout + order detail) ──────────────────── */

.asdfw-zelle-instructions {
  padding: 1.25rem 1.4rem;
}

.asdfw-zelle-instructions__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a183f;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
}

/* Step 1 send-to wrapper — full width inside dd */
.asdfw-zelle-instructions__step--sendto {
  display: block;
}
.asdfw-zelle-instructions__step--sendto dt {
  margin-bottom: 0.4rem;
}
.asdfw-zelle-instructions__step--sendto dd {
  display: block;
}

/* Send-to section: QR and token side by side with equal weight */
.asdfw-zelle-instructions__send-to {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.75rem;
  margin-bottom: 0;
  background: #f8f5f2;
  border-radius: 12px;
  border: 1px solid #e5d8c8;
  overflow: hidden;
}
.asdfw-zelle-instructions__send-option {
  flex: 1;
  text-align: center;
  padding: 1rem 1rem 0.85rem;
}
.asdfw-zelle-instructions__send-divider {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b5a898;
  letter-spacing: 0.08em;
  padding: 0 0.75rem;
  position: relative;
}
.asdfw-zelle-instructions__send-divider::before,
.asdfw-zelle-instructions__send-divider::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: #e5d8c8;
  margin: 0 auto 0.4rem;
}
.asdfw-zelle-instructions__send-divider::after {
  margin: 0.4rem auto 0;
}
.asdfw-zelle-instructions__send-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b35f1f;
  margin: 0 0 0.5rem;
}
.asdfw-zelle-instructions__send-value {
  display: block;
  font-size: 0.95rem;
  font-family: monospace;
  font-weight: 700;
  background: #0a183f;
  color: #fff;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  margin: 0 auto 0.5rem;
  word-break: break-all;
  letter-spacing: 0.03em;
}
.asdfw-zelle-instructions__send-caption {
  font-size: 0.78rem;
  color: #8a7a6a;
  margin: 0;
}
.asdfw-zelle-instructions__qr-img {
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
  border-radius: 6px;
  border: 1px solid #e5d8c8;
}
@media (max-width: 480px) {
  .asdfw-zelle-instructions__send-to {
    flex-direction: column;
  }
  .asdfw-zelle-instructions__send-option {
    width: 100%;
  }
  .asdfw-zelle-instructions__send-divider {
    padding: 0.25rem 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .asdfw-zelle-instructions__send-divider::before,
  .asdfw-zelle-instructions__send-divider::after {
    flex: 1;
    width: auto;
    height: 1px;
    margin: 0;
  }
}

.asdfw-zelle-instructions__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.asdfw-zelle-instructions__step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0ebe3;
  font-size: 0.9rem;
}
.asdfw-zelle-instructions__step:last-child { border-bottom: none; }
.asdfw-zelle-instructions__step dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b35f1f;
  padding-top: 2px;
}
.asdfw-zelle-instructions__step dd { margin: 0; color: #333; line-height: 1.5; }

.asdfw-zelle-instructions__token,
.asdfw-zelle-instructions__ref {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: #0a183f;
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: monospace;
  letter-spacing: 0.04em;
}

.asdfw-zelle-instructions__ref {
  background: #6B2D8B;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

/* Emphasized memo step */
.asdfw-zelle-instructions__step--memo {
  display: block;
  background: #f5f0ff;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin: 0.25rem 0;
  border-left: 4px solid #6B2D8B;
}
.asdfw-zelle-instructions__step--memo dt {
  color: #6B2D8B;
  margin-bottom: 0.4rem;
}
.asdfw-zelle-instructions__step--memo dd {
  margin: 0;
}
.asdfw-zelle-instructions__memo-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #7a5800;
}

/* Ticket notice */
.asdfw-zelle-instructions__ticket-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #eaf4ff;
  border: 1px solid #b3d7f7;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #0a3d6b;
  line-height: 1.5;
}
.asdfw-zelle-instructions__ticket-notice svg { flex-shrink: 0; margin-top: 2px; }

.asdfw-zelle-instructions__expiry {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fff8e0;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #7a5800;
  line-height: 1.5;
}
.asdfw-zelle-instructions__expiry svg { flex-shrink: 0; margin-top: 1px; }

.asdfw-zelle-instructions__custom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0ebe3;
  font-size: 0.88rem;
  color: #555;
}

/* ── Cancel order modal ──────────────────────────────────────────────────── */
.asdfw-cancel-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.asdfw-cancel-modal[hidden] { display: none; }

.asdfw-cancel-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 63, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.asdfw-cancel-modal__box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.asdfw-cancel-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a183f;
  margin: 0 0 1rem;
}
.asdfw-cancel-modal__ref {
  font-family: monospace;
  letter-spacing: 0.05em;
}

.asdfw-cancel-modal__warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.asdfw-cancel-modal__warning svg { flex-shrink: 0; }

.asdfw-cancel-modal__body {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 0.65rem;
}

.asdfw-cancel-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.asdfw-cancel-modal__keep {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.asdfw-cancel-modal__keep:hover { background: #f9fafb; }

.asdfw-cancel-modal__confirm {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  background: #b91c1c;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.asdfw-cancel-modal__confirm:hover { background: #991b1b; }
.asdfw-cancel-modal__confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Cancel order button ─────────────────────────────────────────────────── */
.asdfw-order-cancel-btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: none;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: 0.78rem;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.asdfw-order-cancel-btn:hover {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #991b1b;
}
.asdfw-order-cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Org roster (committee & club pages, logged-in only) ─────────────────── */

.asdfw-org-roster {
  margin-top: 3rem;
  padding: 2rem 0 1rem;
  border-top: 2px solid #f0ebe3;
}

.asdfw-org-roster__inner {
  max-width: 860px;
  margin: 0 auto;
}

.asdfw-org-roster__heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 1.5rem;
}

.asdfw-org-roster__empty {
  color: #888;
  font-style: italic;
  margin: 0;
}

.asdfw-org-roster__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* Member card */
.asdfw-roster-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: #faf8f5;
  border: 1px solid #ede8e0;
  border-radius: 10px;
}

.asdfw-roster-card__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.asdfw-roster-card__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.asdfw-roster-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6B2D8B;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.asdfw-roster-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.asdfw-roster-card__name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asdfw-roster-card__role {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6B2D8B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.asdfw-roster-card__email {
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asdfw-roster-card__email:hover { text-decoration: underline; }

/* ── Member directory ───────────────────────────────────────────────────── */

.asdfw-member-directory {
  margin-top: 1.5rem;
}

.asdfw-member-directory__section {
  margin: 0 0 3rem;
}

.asdfw-member-directory__title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 1.5rem;
}

.asdfw-member-directory__group {
  margin-top: 1.5rem;
}

.asdfw-member-directory__group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a183f;
  margin: 0 0 1rem;
}

.asdfw-member-directory__empty {
  color: #888;
  font-style: italic;
  margin: 0;
}

.asdfw-member-directory__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.asdfw-directory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 1rem;
  background: #faf8f5;
  border: 1px solid #ede8e0;
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.asdfw-directory-card::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.asdfw-directory-card__avatar {
  width: 88px;
  height: 88px;
}

.asdfw-directory-card__avatar-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  height: auto;
}

.asdfw-directory-card__avatar-stack--single .asdfw-directory-card__avatar-item {
  position: static;
}

.asdfw-directory-card__avatar-stack--pair .asdfw-directory-card__avatar-item:first-child {
  position: static;
}

.asdfw-directory-card__avatar-stack--pair .asdfw-directory-card__avatar-item:last-child {
  position: static;
}

.asdfw-directory-card__avatar-item {
  position: static;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  min-height: 60px;
  flex: 0 0 60px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  box-sizing: border-box;
  overflow: hidden;
  border: 2px solid #faf8f5;
  background: #faf8f5;
}

.asdfw-directory-card__avatar-item:first-child {
  z-index: 2;
}

.asdfw-directory-card__avatar-item:last-child {
  z-index: 1;
}

.asdfw-directory-card__photo {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

.asdfw-directory-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  background: #b35f1f;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.asdfw-directory-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
}

.asdfw-directory-card__name {
  font-weight: 600;
  font-size: 0.98rem;
  color: #1a1a2e;
}

.asdfw-directory-card__role {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b35f1f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.asdfw-directory-card__email {
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  max-width: 100%;
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asdfw-directory-card__email:hover { text-decoration: underline; }

.asdfw-member-directory__notice {
  background: #f8f4ee;
  border: 1px solid #ede8e0;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: #514a44;
}

@media (max-width: 640px) {
  .asdfw-member-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asdfw-directory-card__avatar,
  .asdfw-directory-card__photo,
  .asdfw-directory-card__initials {
    width: 76px;
    height: 76px;
  }
  .asdfw-directory-card__avatar-stack {
    width: auto;
    height: auto;
  }
  .asdfw-directory-card__avatar-item {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 960px) {
  .asdfw-member-directory__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .asdfw-member-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 961px) {
  .asdfw-directory-card:nth-child(5n + 1)::before {
    display: none;
  }
}

@media (max-width: 960px) and (min-width: 761px) {
  .asdfw-directory-card:nth-child(3n + 1)::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .asdfw-directory-card:nth-child(2n + 1)::before {
    display: none;
  }
}

/* ── Order detail page ─────────────────────────────────────────────────────── */

.asdfw-order-detail {
  max-width: 760px;
  margin: 0 auto;
}

.asdfw-order-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.asdfw-order-detail__title {
  font-size: 1.4rem;
  color: #0a183f;
  margin: 0 0 0.5rem;
}
.asdfw-order-detail__ref-code {
  font-family: monospace;
  letter-spacing: 0.06em;
}

.asdfw-order-detail__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  font-size: 0.87rem;
  color: #8a7a6a;
}
.asdfw-order-detail__date,
.asdfw-order-detail__type,
.asdfw-order-detail__method {
  padding: 0 0.75rem;
  border-left: 1px solid #ddd4c6;
}

.asdfw-order-detail__back-btn {
  flex-shrink: 0;
}

.asdfw-order-detail__totals-card {
  margin-top: 1.5rem;
}
.asdfw-order-detail__totals-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a7a6a;
  margin: 0 0 0.85rem;
}

/* ── Order state panels ────────────────────────────────────────────────────── */

.asdfw-order-state {
  background: #fffdfa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.asdfw-order-state--paid {
  text-align: center;
  padding: 2rem 1.5rem;
}
.asdfw-order-state--paid h2 { color: #0a183f; margin: 0.5rem 0 0.5rem; }

.asdfw-order-state--cancelled {
  text-align: center;
  padding: 2rem 1.5rem;
}
.asdfw-order-state--cancelled h2 { color: #0a183f; margin: 0.5rem 0 0.5rem; }

.asdfw-order-state--review {
  text-align: center;
  padding: 2rem 1.5rem;
}
.asdfw-order-state--review h2 { color: #0a183f; margin: 0.5rem 0 0.5rem; }

.asdfw-order-state p { margin: 0.5rem 0; color: #555; font-size: 0.9rem; line-height: 1.6; }

.asdfw-order-state__icon { line-height: 0; margin-bottom: 0.25rem; }
.asdfw-order-state__icon svg { width: 40px; height: 40px; }
.asdfw-order-state__icon--success svg { stroke: #2d7a3a; }
.asdfw-order-state__icon--cancelled svg { stroke: #8a7a6a; }
.asdfw-order-state__icon--review svg { stroke: #4a6fa5; }

.asdfw-order-state__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.asdfw-order-state__notice {
  padding: 1.25rem 1.4rem;
  font-size: 0.92rem;
  color: #555;
}
.asdfw-order-state__notice p { margin: 0; }

.asdfw-order-state__check-notice {
  padding: 1.25rem 1.4rem;
  background: #f4f9f4;
  border: 1px solid #c8e0ca;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #333;
}
.asdfw-order-state__check-notice h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #0a183f;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── My Orders list ────────────────────────────────────────────────────────── */

.asdfw-my-orders__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.asdfw-my-orders__title {
  font-size: 1.4rem;
  color: #0a183f;
  margin: 0;
}

.asdfw-my-orders__table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5d8c8;
}

.asdfw-my-orders__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fffdfa;
}
.asdfw-my-orders__table th {
  background: #f7f3ee;
  color: #4e3524;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 2px solid #e5d8c8;
  white-space: nowrap;
}
.asdfw-my-orders__table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #f0ebe3;
  color: #333;
  vertical-align: middle;
}
.asdfw-my-orders__row:last-child td { border-bottom: none; }
.asdfw-my-orders__row:hover td { background: #fffaf4; }

.asdfw-my-orders__ref {
  font-family: monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #0a183f;
  font-weight: 700;
}
.asdfw-my-orders__td--amount { font-weight: 600; white-space: nowrap; }
.asdfw-my-orders__td--date   { white-space: nowrap; color: #8a7a6a; }
.asdfw-my-orders__td--action { text-align: right; white-space: nowrap; }

.asdfw-my-orders__view-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #b35f1f;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: background 0.12s;
}
.asdfw-my-orders__view-link:hover { background: #f7efe4; }

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .asdfw-checkout__progress-label { display: none; }
  .asdfw-checkout__action { justify-content: stretch; }
  .asdfw-checkout__submit-btn { width: 100%; justify-content: center; }
  .asdfw-confirm-block__highlights { grid-template-columns: 1fr; }
  .asdfw-order-detail__header { flex-direction: column; }
  .asdfw-my-orders__table th,
  .asdfw-my-orders__table td { padding: 0.5rem 0.65rem; }
}

/* ── Donation amount selector ──────────────────────────────────────────────── */

.asdfw-donation-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.asdfw-donation-amounts__btn {
  padding: 0.55rem 1.3rem;
  background: #fffdfa;
  border: 2px solid #e5d8c8;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  color: #0a183f;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.asdfw-donation-amounts__btn:hover {
  border-color: #b35f1f;
  background: #fffaf4;
}
.asdfw-donation-amounts__btn.is-selected {
  border-color: #b35f1f;
  background: #fff8f0;
  box-shadow: 0 0 0 3px rgba(179, 95, 31, 0.15);
}

.asdfw-donation-custom {
  margin-top: 0.25rem;
}

.asdfw-donation-custom__label {
  display: block;
  font-size: 0.85rem;
  color: #8a7a6a;
  margin-bottom: 0.4rem;
}

.asdfw-donation-custom__input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e5d8c8;
  border-radius: 8px;
  overflow: hidden;
  max-width: 180px;
  background: #fffdfa;
}

.asdfw-donation-custom__symbol {
  padding: 0 0.5rem 0 0.75rem;
  font-weight: 600;
  color: #4e3524;
  font-size: 1rem;
  line-height: 1;
}

.asdfw-donation-custom__input {
  flex: 1;
  border: none;
  padding: 0.55rem 0.6rem 0.55rem 0;
  font-size: 1rem;
  color: #0a183f;
  background: transparent;
  outline: none;
  min-width: 0;
}

/* Disabled state for action buttons */
.asdfw-secure-button:disabled,
.asdfw-secure-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Standalone donation form shortcode wrapper */
.asdfw-donation-form {
  max-width: 480px;
}

.asdfw-donation-form__action {
  margin-top: 1.25rem;
}

/* Discount note inside event ticket line items */
.asdfw-checkout__item-discount {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a4731;
  background: #edfbf1;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Item placeholder text (donation entry mode before amount is set) */
.asdfw-checkout__item-placeholder {
  color: #8a7a6a;
  font-style: normal;
  padding: 0.5rem 0;
}

/* ── Gayatri Mantra Mini-Player ──────────────────────────────────────────── */

.asdfw-mantra-player {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
}

/* ── Idle trigger pill ─────────────────────────────────────────────────────── */

.asdfw-mantra-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 6px 14px 6px 11px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.asdfw-mantra-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.asdfw-mantra-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 95, 31, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.asdfw-mantra-trigger__om {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.75;
  font-style: normal;
}

.asdfw-mantra-trigger__play {
  font-size: 0.55rem;
  opacity: 0.65;
  margin-left: 1px;
}

/* ── Active mini-player ────────────────────────────────────────────────────── */

.asdfw-mantra-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 6px 12px 6px 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.asdfw-mantra-mini__label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.68);
}

/* Pulsing live dot — orange-gold, stops when paused */
.asdfw-mantra-mini__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8a86a;
  flex-shrink: 0;
  animation: asdfw-mantra-pulse 1.6s ease-in-out infinite;
}

.asdfw-mantra-player.is-paused .asdfw-mantra-mini__dot {
  animation: none;
  opacity: 0.35;
}

@keyframes asdfw-mantra-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.9; }
  50%       { transform: scale(1.5); opacity: 0.45; }
}

/* Play/Pause and Stop icon buttons */
.asdfw-mantra-mini__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.asdfw-mantra-mini__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.asdfw-mantra-mini__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(179, 95, 31, 0.65);
  color: #fff;
}

.asdfw-mantra-mini__btn--stop {
  font-size: 0.7rem;
  opacity: 0.7;
}

.asdfw-mantra-mini__btn--stop:hover {
  opacity: 1;
}

/* Thin progress bar */
.asdfw-mantra-mini__bar {
  width: 56px;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.asdfw-mantra-mini__fill {
  height: 100%;
  width: 0%;
  background: #e8a86a;
  border-radius: 2px;
  transition: width 0.8s linear;
}

/* ── Mobile nav: selectively hide sub-menus and items ────────────────────────
   Uses :has() to target by href — no PHP class injection needed.
   Committees and Clubs sub-menus are hidden to keep the menu compact.
   About and its sub-menu remain fully visible.
   Member Resources is hidden entirely. */
@media (max-width: 900px) {
  /* Hide sub-menus for Committees and Clubs only */
  .asdfw-nav__list li:has(> a[href*="committees"]) > .sub-menu,
  .asdfw-nav__list li:has(> a[href*="clubs"]) > .sub-menu {
    display: none;
  }
  /* Remove dropdown arrow for items whose sub-menu is hidden */
  .asdfw-nav__list li:has(> a[href*="committees"]) > a::after,
  .asdfw-nav__list li:has(> a[href*="clubs"]) > a::after {
    display: none;
  }
}

/* ── Home page: reduce section vertical padding on small screens ─────────────
   Sections use inline padding-top/bottom of 64–72 px (set via block editor).
   Override with !important to pull sections tighter on mobile. */
@media (max-width: 600px) {
  .asdfw-front-page-main .wp-block-group.alignfull {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

/* ── Activity RSVP page ────────────────────────────────────────────────────── */

.asdfw-rsvp-page {
  padding: 1.5rem 1rem 3rem;
}

.asdfw-rsvp-page__inner {
  max-width: 680px;
  margin: 0 auto;
}

.asdfw-rsvp-page__back {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.875rem;
  color: inherit;
  opacity: 0.65;
  text-decoration: none;
}

.asdfw-rsvp-page__back:hover {
  opacity: 1;
}

.asdfw-rsvp-card {
  padding: 1.6rem;
}

.asdfw-rsvp-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.55;
}

.asdfw-rsvp-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
}

.asdfw-rsvp-card__meta {
  margin: 0.5rem 0 0.9rem 1.1rem;
  padding: 0;
  color: #374151;
  line-height: 1.6;
}

/* Notices */
.asdfw-rsvp-notice {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.asdfw-rsvp-notice--success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.asdfw-rsvp-notice--error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.asdfw-rsvp-notice--warning {
  background: #fff7ed;
  border: 1px solid #fb923c;
  color: #9a3412;
}

/* RSVP Admission Passes (web display) */
.asdfw-rsvp-passes {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e5e0d8;
}
.asdfw-rsvp-passes__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #5a3e10;
  margin: 0 0 0.4rem;
}
.asdfw-rsvp-passes__note {
  font-size: 0.85rem;
  color: #6f6a64;
  margin: 0 0 1rem;
}
.asdfw-rsvp-pass {
  display: inline-block;
  vertical-align: top;
  margin: 0 1rem 1rem 0;
  padding: 0.8rem;
  border: 1px solid #e5e0d8;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.asdfw-rsvp-pass__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #b96823;
  margin: 0 0 0.5rem;
}
.asdfw-rsvp-pass__qr svg {
  width: 140px;
  height: 140px;
  display: block;
}

/* Form layout */
.asdfw-rsvp-form {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.asdfw-rsvp-form__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.85rem;
  row-gap: 0.75rem;
}

.asdfw-rsvp-form__field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.asdfw-rsvp-form input[type="text"],
.asdfw-rsvp-form input[type="email"],
.asdfw-rsvp-form input[type="tel"],
.asdfw-rsvp-form input[type="number"],
.asdfw-rsvp-form select,
.asdfw-rsvp-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.asdfw-rsvp-form textarea {
  min-height: 84px;
  resize: vertical;
}

.asdfw-rsvp-form__field label,
.asdfw-rsvp-form__fieldset legend {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.asdfw-rsvp-form__req {
  color: #dc2626;
}

.asdfw-rsvp-form__opt {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.8em;
}

.asdfw-rsvp-form__fieldset {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem 0.7rem;
  margin: 0;
  border-radius: 12px;
  background: #fff;
}

.asdfw-rsvp-form__checks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.asdfw-rsvp-form__check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.asdfw-rsvp-form__actions {
  margin-top: 0.35rem;
}

@media (max-width: 540px) {
  .asdfw-rsvp-form__row--2 {
    grid-template-columns: 1fr;
  }
  .asdfw-rsvp-card {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   Gallery Upload — inline photo upload on public event/activity pages
   ========================================================================== */

.asdfw-gallery-upload {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 24px;
  background: var(--wp--preset--color--background, #fbfaf3);
  border: 1px solid #e0ddd4;
  border-radius: 10px;
}

.asdfw-gallery-upload__heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--wp--preset--color--text, #111);
}

.asdfw-gallery-upload__drop-zone {
  position: relative;
  border: 2px dashed #c4bfb4;
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.asdfw-gallery-upload__drop-zone:hover,
.asdfw-gallery-upload__drop-zone.is-dragover {
  border-color: var(--wp--preset--color--primary, #503aa8);
  background: rgba(80, 58, 168, 0.04);
}

.asdfw-gallery-upload__drop-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--wp--preset--color--gray, #686868);
}

.asdfw-gallery-upload__file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.asdfw-gallery-upload__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.asdfw-gallery-upload__preview-item {
  position: relative;
  width: 80px;
  height: 80px;
}

.asdfw-gallery-upload__preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  display: block;
}

.asdfw-gallery-upload__preview-rm {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

.asdfw-gallery-upload__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.asdfw-gallery-upload__submit {
  background: var(--wp--preset--color--primary, #503aa8);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.asdfw-gallery-upload__submit:hover {
  opacity: 0.88;
}

.asdfw-gallery-upload__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.asdfw-gallery-upload__clear {
  background: transparent;
  border: 1px solid #c4bfb4;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--wp--preset--color--gray, #686868);
}

.asdfw-gallery-upload__clear:hover {
  border-color: #999;
}

.asdfw-gallery-upload__status {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.asdfw-gallery-upload__status--ok {
  color: #16a34a;
}

.asdfw-gallery-upload__status--err {
  color: #dc2626;
}

.asdfw-gallery-upload__help {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--wp--preset--color--gray, #686868);
}

@media (max-width: 600px) {
  .asdfw-gallery-upload {
    padding: 16px;
  }
  .asdfw-gallery-upload__preview-item,
  .asdfw-gallery-upload__preview-img {
    width: 64px;
    height: 64px;
  }
}

/* ==========================================================================
   Discussion Feed — Event / Activity comment stream
   ========================================================================== */

.asdfw-discussion {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--wp--preset--color--primary, #503AA8);
}

.asdfw-discussion__heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--wp--preset--color--primary, #503AA8);
}

.asdfw-discussion__feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.asdfw-discussion__empty {
  color: #686868;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

.asdfw-discussion__entry {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.asdfw-discussion__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary, #503AA8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.asdfw-discussion__body {
  flex: 1;
  min-width: 0;
  background: #f8f8f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.asdfw-discussion__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.asdfw-discussion__author {
  font-weight: 700;
  font-size: 0.88rem;
  color: #111;
}

.asdfw-discussion__date {
  font-size: 0.75rem;
  color: #888;
}

.asdfw-discussion__delete {
  margin-left: auto;
  background: none;
  border: none;
  color: #dc2626;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.asdfw-discussion__delete:hover {
  opacity: 1;
}

.asdfw-discussion__content {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #222;
  word-wrap: break-word;
}

.asdfw-discussion__images {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.asdfw-discussion__image-link {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.asdfw-discussion__image {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.15s;
}
.asdfw-discussion__image:hover {
  transform: scale(1.05);
}

/* ── Post form ─────────────────────────────────────────────────── */

.asdfw-discussion__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.asdfw-discussion__textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
  box-sizing: border-box;
}
.asdfw-discussion__textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary, #503AA8);
  box-shadow: 0 0 0 2px rgba(80, 58, 168, 0.15);
}

.asdfw-discussion__form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.asdfw-discussion__upload-btn {
  font-size: 0.82rem;
  color: var(--wp--preset--color--primary, #503AA8);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.asdfw-discussion__upload-btn:hover {
  text-decoration: underline;
}

.asdfw-discussion__preview {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.asdfw-discussion__thumb-wrap {
  position: relative;
  display: inline-block;
}

.asdfw-discussion__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.asdfw-discussion__thumb-rm {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  border: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asdfw-discussion__submit {
  margin-left: auto;
  padding: 0.45rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
}

.asdfw-discussion__login-prompt {
  font-size: 0.88rem;
  color: #686868;
  font-style: italic;
  margin: 0;
}

@media (max-width: 600px) {
  .asdfw-discussion__image {
    width: 80px;
    height: 60px;
  }
  .asdfw-discussion__submit {
    margin-left: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Scanner — Ticket Check-in Overlay (mobile/tablet only)
   ========================================================================== */

/* Scanner icon in header — hidden on desktop via JS, but also CSS fallback */
@media (min-width: 1025px) {
  .asdfw-header__icon-btn--scanner {
    display: none !important;
  }
}

.asdfw-header__icon-btn--scanner {
  color: #503AA8;
  border: none;
  cursor: pointer;
}

.asdfw-header__icon-btn--scanner:hover,
.asdfw-header__icon-btn--scanner:focus-visible {
  background: rgba(80, 58, 168, 0.08);
  color: #503AA8;
}

/* Full-screen overlay */
.asdfw-scanner {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  background: #FBFAF3;
  color: #111111;
  font-family: inherit;
  -webkit-overflow-scrolling: touch;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.asdfw-scanner[hidden] {
  display: none;
}

/* Header */
.asdfw-scanner__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  min-height: 48px;
}

.asdfw-scanner__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #111;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.asdfw-scanner__back:hover,
.asdfw-scanner__back:active {
  background: rgba(0, 0, 0, 0.06);
}

.asdfw-scanner__event-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asdfw-scanner__stats-mini {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #503AA8;
  flex-shrink: 0;
}

.asdfw-scanner__stats-sep {
  opacity: 0.5;
}

/* Tabs */
.asdfw-scanner__tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  flex-shrink: 0;
}

.asdfw-scanner__tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #686868;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, border-color 0.15s;
}

.asdfw-scanner__tab--active {
  color: #503AA8;
  border-bottom-color: #503AA8;
}

.asdfw-scanner__tab:hover:not(.asdfw-scanner__tab--active) {
  color: #333;
}

/* Body and panels */
.asdfw-scanner__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.asdfw-scanner__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.asdfw-scanner__panel[hidden] {
  display: none;
}

/* Viewport (camera area) */
.asdfw-scanner__viewport {
  position: relative;
  flex: 1;
  min-height: 280px;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.asdfw-scanner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* QR target box */
.asdfw-scanner__target {
  position: relative;
  width: 220px;
  height: 220px;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 600px) {
  .asdfw-scanner__target {
    width: 260px;
    height: 260px;
  }
}

.asdfw-scanner__target-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.85);
  border-style: solid;
  border-width: 0;
}

.asdfw-scanner__target-corner--tl {
  top: 0; left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 8px;
}

.asdfw-scanner__target-corner--tr {
  top: 0; right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 8px;
}

.asdfw-scanner__target-corner--bl {
  bottom: 0; left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 8px;
}

.asdfw-scanner__target-corner--br {
  bottom: 0; right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: 8px;
}

/* State overlays within viewport */
.asdfw-scanner__state {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 0.75rem;
  background: rgba(251, 250, 243, 0.95);
  color: #111;
}

.asdfw-scanner__state[hidden] {
  display: none;
}

.asdfw-scanner__state-icon {
  color: #503AA8;
  margin-bottom: 0.25rem;
}

.asdfw-scanner__state--offline .asdfw-scanner__state-icon,
.asdfw-scanner__state--camera-denied .asdfw-scanner__state-icon {
  color: #b31e1e;
}

.asdfw-scanner__state--takeover .asdfw-scanner__state-icon {
  color: #c77900;
}

.asdfw-scanner__state-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.asdfw-scanner__state-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
  max-width: 300px;
}

/* Buttons */
.asdfw-scanner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.asdfw-scanner__btn[hidden] {
  display: none;
}

.asdfw-scanner__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.asdfw-scanner__btn--primary {
  background: #503AA8;
  color: #fff;
}

.asdfw-scanner__btn--primary:hover:not(:disabled) {
  background: #3f2e8a;
}

.asdfw-scanner__btn--secondary {
  background: rgba(80, 58, 168, 0.1);
  color: #503AA8;
}

.asdfw-scanner__btn--secondary:hover:not(:disabled) {
  background: rgba(80, 58, 168, 0.18);
}

.asdfw-scanner__btn--outline {
  background: transparent;
  color: #503AA8;
  border: 1.5px solid rgba(80, 58, 168, 0.3);
}

.asdfw-scanner__btn--outline:hover:not(:disabled) {
  background: rgba(80, 58, 168, 0.06);
  border-color: rgba(80, 58, 168, 0.5);
}

/* Mock scan entry */
.asdfw-scanner__mock {
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.asdfw-scanner__mock-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #686868;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.asdfw-scanner__mock-row {
  display: flex;
  gap: 0.5rem;
}

.asdfw-scanner__mock-input {
  flex: 1;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #FBFAF3;
  color: #111;
  outline: none;
}

.asdfw-scanner__mock-input:focus {
  border-color: #503AA8;
  box-shadow: 0 0 0 2px rgba(80, 58, 168, 0.12);
}

.asdfw-scanner__mock-input::placeholder {
  color: #999;
}

/* List panels (unscanned + team) */
.asdfw-scanner__list-header {
  padding: 0.75rem 1rem 0;
}

.asdfw-scanner__list-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.asdfw-scanner__list {
  padding: 0.5rem 1rem 1rem;
  flex: 1;
  overflow-y: auto;
}

.asdfw-scanner__list-empty {
  font-size: 0.88rem;
  color: #888;
  text-align: center;
  padding: 2rem 0;
  margin: 0;
}

.asdfw-scanner__list-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.asdfw-scanner__list-item:last-child {
  border-bottom: none;
}

.asdfw-scanner__list-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

.asdfw-scanner__list-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #686868;
  margin-top: 0.15rem;
}

.asdfw-scanner__list-item-count {
  font-weight: 600;
  color: #503AA8;
}

.asdfw-scanner__team-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #503AA8;
  padding: 0.5rem 0 0.25rem;
}

/* Scan result overlays ---------------------------------------------------- */

.asdfw-scanner__result {
  background: rgba(251, 250, 243, 0.96);
  gap: 0.5rem;
}

.asdfw-scanner__result-icon {
  margin-bottom: 0.15rem;
}

.asdfw-scanner__result--success .asdfw-scanner__result-icon {
  color: #2e7d32;
}

.asdfw-scanner__result--duplicate .asdfw-scanner__result-icon {
  color: #c77900;
}

.asdfw-scanner__result--invalid .asdfw-scanner__result-icon,
.asdfw-scanner__result--wrong-event .asdfw-scanner__result-icon {
  color: #b31e1e;
}

.asdfw-scanner__result-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.3;
}

.asdfw-scanner__result-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.asdfw-scanner__result--duplicate .asdfw-scanner__result-title {
  color: #c77900;
}

.asdfw-scanner__result--invalid .asdfw-scanner__result-title,
.asdfw-scanner__result--wrong-event .asdfw-scanner__result-title {
  color: #b31e1e;
}

.asdfw-scanner__result-detail {
  font-size: 0.88rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
  white-space: pre-line;
  max-width: 300px;
  text-align: center;
}

/* Bulk check-in CTA on success/duplicate overlays */
.asdfw-scanner__bulk-cta {
  margin-top: 0.5rem;
}

/* Bulk action buttons group on duplicate overlay */
.asdfw-scanner__bulk-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 280px;
}

.asdfw-scanner__bulk-actions[hidden] {
  display: none;
}

/* Bulk confirmation overlay */
.asdfw-scanner__result--bulk-confirm .asdfw-scanner__result-icon {
  color: #503AA8;
}

.asdfw-scanner__bulk-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 280px;
}

/* Bulk result overlay */
.asdfw-scanner__result--bulk-result .asdfw-scanner__result-icon {
  color: #2e7d32;
}

/* ── Search panel ─────────────────────────────────────────────────────── */
.asdfw-scanner__search-bar {
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.asdfw-scanner__search-input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #FBFAF3;
  color: #111;
  outline: none;
  box-sizing: border-box;
}

.asdfw-scanner__search-input:focus {
  border-color: #503AA8;
  box-shadow: 0 0 0 2px rgba(80, 58, 168, 0.12);
}

.asdfw-scanner__search-input::placeholder {
  color: #999;
}

.asdfw-scanner__search-results {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem;
}

/* Search result card */
.asdfw-scanner__search-card {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
}

.asdfw-scanner__search-card--done {
  opacity: 0.7;
}

.asdfw-scanner__search-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.asdfw-scanner__search-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

.asdfw-scanner__search-card-phone {
  font-size: 0.78rem;
  color: #686868;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.asdfw-scanner__search-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #686868;
  margin-top: 0.2rem;
}

.asdfw-scanner__search-checkin {
  margin-top: 0.5rem;
  width: 100%;
}

.asdfw-scanner__search-card-status {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #686868;
}

.asdfw-scanner__search-card-status--success {
  color: #2e7d32;
}

.asdfw-scanner__search-section-label {
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #686868;
  background: #f4f2ea;
  border-bottom: 1px solid #e8e4d6;
}

.asdfw-scanner__search-card-attendee {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: #686868;
  padding: 0.25rem 0;
}

.asdfw-scanner__search-card-attendee--done {
  color: #2e7d32;
  font-weight: 600;
}

/* ── Email Template Editor ─────────────────────────────────────────────────── */

.asdfw-email-tpl-editor__layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.asdfw-email-tpl-editor__sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid #e5e7eb;
  padding-right: 20px;
}

.asdfw-email-tpl-editor__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
}

.asdfw-email-tpl-editor__tab:hover {
  background: #f3f4f6;
}

.asdfw-email-tpl-editor__tab.is-active {
  background: var(--wp--preset--color--primary, #503AA8);
  color: #fff;
}

.asdfw-email-tpl-editor__tab-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #22c55e;
}

.asdfw-email-tpl-editor__tab.is-active .asdfw-email-tpl-editor__tab-badge {
  color: #bbf7d0;
}

.asdfw-email-tpl-editor__panel {
  flex: 1;
  min-width: 0;
}

.asdfw-email-tpl-editor__description {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.asdfw-email-tpl-editor__using-default {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 16px;
}

.asdfw-email-tpl-editor__field {
  margin-bottom: 20px;
}

.asdfw-email-tpl-editor__label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 6px;
}

.asdfw-email-tpl-editor__subject-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.asdfw-email-tpl-editor__body-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.825rem;
  line-height: 1.5;
  box-sizing: border-box;
  resize: vertical;
}

.asdfw-email-tpl-editor__field-hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 4px;
}

.asdfw-email-tpl-editor__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.asdfw-email-tpl-editor__tokens {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.asdfw-email-tpl-editor__tokens-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #374151;
}

.asdfw-email-tpl-editor__tokens-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.asdfw-email-tpl-editor__tokens-table th {
  text-align: left;
  padding: 6px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
}

.asdfw-email-tpl-editor__tokens-table td {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.asdfw-email-tpl-editor__tokens-table td code {
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .asdfw-email-tpl-editor__layout {
    flex-direction: column;
  }
  .asdfw-email-tpl-editor__sidebar {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding-right: 0;
    padding-bottom: 16px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
