:root {
  --nexdirectory-primary: #FF5E14;
  --nexdirectory-primary-rgb: 255, 94, 20;
  --nexdirectory-primary-hover: #E04F0D;
  --nexdirectory-on-primary: #ffffff;
  --nexdirectory-navy: #0B1221;
  --nexdirectory-navy-light: #1a1f2e;
  --nexdirectory-surface: #ffffff;
  --nexdirectory-surface-alt: #f8fafc;
  --nexdirectory-border: #e5e7eb;
  --nexdirectory-text-main: #1f2937;
  --nexdirectory-text-muted: #6b7280;
  --nexdirectory-text-inv: #ffffff;
  --nexdirectory-radius: 12px;
  --nexdirectory-radius-lg: 16px;
  --nexdirectory-radius-pill: 999px;
  --nexdirectory-space-unit: 16px;
  --nexdirectory-space-scale: 1;
  --nexdirectory-density-scale: 1;
  --nexdirectory-content-max-width: 1220px;
  --nexdirectory-event-page-max-width: 1240px;
  --nexdirectory-archive-max-width: 1400px;
  --nexdirectory-field-pad-y: 10px;
  --nexdirectory-field-pad-x: 12px;
  --nexdirectory-btn-min-height: 40px;
  --nexdirectory-box-bg: #ffffff;
  --nexdirectory-box-bg-alt: #f8fafc;
  --nexdirectory-box-border-color: #e5e7eb;
  --nexdirectory-box-border-width: 1px;
  --nexdirectory-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --nexdirectory-shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.06);
  --nexdirectory-shadow: 0 12px 30px rgba(11, 18, 33, 0.08);
  --nexdirectory-shadow-lg: 0 22px 45px rgba(11, 18, 33, 0.12);
  --nexdirectory-btn-bg: var(--nexdirectory-primary);
  --nexdirectory-btn-bg-hover: var(--nexdirectory-primary-hover);
  --nexdirectory-btn-color: var(--nexdirectory-on-primary, #ffffff);
  --nexdirectory-btn-border: 1px solid transparent;
  --nexdirectory-btn-letter-spacing: 0;
  --nexdirectory-btn-transform: none;
  --nexdirectory-btn-font-weight: 700;
  --nexdirectory-btn-radius: 10px;
  --nexdirectory-input-bg: #ffffff;
  --nexdirectory-input-border: #e5e7eb;
  --nexdirectory-input-border-focus: var(--nexdirectory-primary);
  --nexdirectory-input-border-width: 1px;
  --nexdirectory-input-radius: var(--nexdirectory-radius);
  --nexdirectory-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nexdirectory-font-display: var(--nexdirectory-font);
  --nexdirectory-trans: all 0.2s ease-in-out;
  
  /* Runtime Base Assignments */
  --nexdirectory-base-font-size: 16px;
  --nexdirectory-h2-size: 1.55rem;
  --nexdirectory-h3-size: 1.16rem;
  --nexdirectory-font-weight-body: 400;
  --nexdirectory-font-weight-heading: 700;
}

/* Unified member notification centre */
.nexdirectory-notification-center {
  --nexdirectory-notification-ink: #172033;
  --nexdirectory-notification-muted: #667085;
  --nexdirectory-notification-line: #e8edf4;
  color: var(--nexdirectory-notification-ink);
}

.nexdirectory-notification-center--dropdown {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.nexdirectory-notification-center__toggle {
  position: relative;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e4e9f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #465267;
  box-shadow: 0 6px 18px rgba(23, 32, 51, 0.07);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.nexdirectory-notification-center__toggle:hover,
.nexdirectory-notification-center__toggle[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--nexdirectory-primary, #4f46e5) 35%, #e4e9f0);
  color: var(--nexdirectory-primary, #4f46e5);
  box-shadow: 0 10px 25px rgba(23, 32, 51, 0.11);
  transform: translateY(-1px);
}

.nexdirectory-notification-center__toggle:focus-visible,
.nexdirectory-notification-center__mark-all:focus-visible,
.nexdirectory-notification-center__item:focus-visible,
.nexdirectory-notification-center__footer:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--nexdirectory-primary, #4f46e5) 28%, transparent);
  outline-offset: 2px;
}

.nexdirectory-notification-center__toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nexdirectory-notification-center__badge {
  position: absolute;
  top: -0.28rem;
  right: -0.28rem;
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(229, 72, 77, 0.32);
}

.nexdirectory-notification-center__panel {
  position: absolute;
  z-index: 1300;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(25rem, calc(100vw - 1.5rem));
  overflow: hidden;
  border: 1px solid rgba(222, 228, 237, 0.95);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px -22px rgba(17, 24, 39, 0.36);
  backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: nexdirectory-notification-panel-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nexdirectory-notification-center__panel[hidden] {
  display: none !important;
}

@keyframes nexdirectory-notification-panel-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nexdirectory-notification-center__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--nexdirectory-notification-line);
}

.nexdirectory-notification-center__header h2,
.nexdirectory-inbox-section-heading h2 {
  margin: 0;
  color: var(--nexdirectory-notification-ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.nexdirectory-notification-center__eyebrow {
  margin: 0 0 0.22rem;
  color: var(--nexdirectory-primary, #4f46e5);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nexdirectory-notification-center__mark-all {
  flex: 0 0 auto;
  padding: 0.35rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--nexdirectory-primary, #4f46e5);
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.nexdirectory-notification-center__mark-all:disabled {
  color: #98a2b3;
  cursor: default;
}

.nexdirectory-notification-center__list {
  max-height: min(30rem, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cfd6e2 transparent;
}

.nexdirectory-notification-center__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.92rem 1.05rem;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
  color: inherit;
  text-align: left;
  text-decoration: none !important;
  transition: background-color 160ms ease, transform 160ms ease;
}

.nexdirectory-notification-center__item:hover {
  background: #f8fafc;
}

.nexdirectory-notification-center__item.is-unread {
  background: color-mix(in srgb, var(--nexdirectory-primary, #4f46e5) 5.5%, #fff);
}

.nexdirectory-notification-center__item.is-unread::after {
  position: absolute;
  top: 1.15rem;
  right: 0.8rem;
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 999px;
  background: var(--nexdirectory-primary, #4f46e5);
  content: "";
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nexdirectory-primary, #4f46e5) 12%, transparent);
}

.nexdirectory-notification-center__icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.73rem;
  font-weight: 850;
}

.nexdirectory-notification-center__item--message .nexdirectory-notification-center__icon {
  background: #e8f7ff;
  color: #0876a6;
}

.nexdirectory-notification-center__item--claim-submitted .nexdirectory-notification-center__icon,
.nexdirectory-notification-center__item--claim-status .nexdirectory-notification-center__icon {
  background: #fff4dc;
  color: #a85b08;
}

.nexdirectory-notification-center__item--moderation .nexdirectory-notification-center__icon {
  background: #f1eafe;
  color: #7145b8;
}

.nexdirectory-notification-center__item--team-invite .nexdirectory-notification-center__icon,
.nexdirectory-notification-center__item--team-update .nexdirectory-notification-center__icon {
  background: #e9f9ef;
  color: #18794e;
}

.nexdirectory-notification-center__item--waitlist .nexdirectory-notification-center__icon,
.nexdirectory-notification-center__item--waitlist-promoted .nexdirectory-notification-center__icon,
.nexdirectory-notification-center__item--rsvp .nexdirectory-notification-center__icon {
  background: #fff0f3;
  color: #c62a55;
}

.nexdirectory-notification-center__content {
  min-width: 0;
  padding-right: 0.45rem;
}

.nexdirectory-notification-center__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.22rem;
  color: #8490a3;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

.nexdirectory-notification-center__meta span:first-child {
  color: #58657a;
}

.nexdirectory-notification-center__title {
  display: block;
  margin: 0;
  padding-right: 0.35rem;
  color: #1f2937;
  font-size: 0.83rem;
  font-weight: 780;
  line-height: 1.35;
}

.nexdirectory-notification-center__body {
  display: -webkit-box;
  margin: 0.25rem 0 0;
  overflow: hidden;
  color: var(--nexdirectory-notification-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nexdirectory-notification-center__empty {
  display: flex;
  min-height: 10rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem;
  color: var(--nexdirectory-notification-muted);
  text-align: center;
}

.nexdirectory-notification-center__empty[hidden] {
  display: none !important;
}

.nexdirectory-notification-center__empty strong {
  color: #344054;
  font-size: 0.9rem;
}

.nexdirectory-notification-center__empty span:not(.nexdirectory-notification-center__empty-icon) {
  font-size: 0.77rem;
}

.nexdirectory-notification-center__empty-icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  border-radius: 999px;
  background: #eaf8ef;
  color: #18794e;
  font-size: 1rem;
  font-weight: 900;
}

.nexdirectory-notification-center__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1rem;
  border-top: 1px solid var(--nexdirectory-notification-line);
  background: #fbfcfe;
  color: var(--nexdirectory-primary, #4f46e5) !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none !important;
}

.nexdirectory-notification-center--page {
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid #e4eaf2;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.06);
}

.nexdirectory-notification-center--page .nexdirectory-notification-center__header {
  align-items: center;
  padding: 1.25rem 1.35rem;
}

.nexdirectory-notification-center--page .nexdirectory-notification-center__header h2 {
  font-size: 1.15rem;
}

.nexdirectory-notification-center--page .nexdirectory-notification-center__list {
  max-height: 34rem;
}

.nexdirectory-notification-center--page .nexdirectory-notification-center__item {
  grid-template-columns: 2.65rem minmax(0, 1fr);
  padding: 1rem 1.35rem;
}

.nexdirectory-inbox-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.75rem 0 0.8rem;
}

@media (max-width: 1023px) {
  .nexdirectory-notification-center--dropdown {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .nexdirectory-notification-center__panel {
    position: fixed;
    top: 4.7rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-height: calc(100dvh - 5.5rem);
  }

  .nexdirectory-notification-center--page .nexdirectory-notification-center__header {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .nexdirectory-notification-center--page .nexdirectory-notification-center__item {
    padding: 0.9rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexdirectory-notification-center__panel {
    animation: none;
  }

  .nexdirectory-notification-center__toggle,
  .nexdirectory-notification-center__item {
    transition: none;
  }
}

/* --- Base Reset & Typography --- */
:is(.nexdirectory-layout, .nexdirectory-submit-wrap, .nexdirectory-auth-grid, .nexdirectory-my-events, .nexdirectory-theme-shell, .nexdirectory-account-shell) {
  font-family: var(--nexdirectory-font);
  font-size: var(--nexdirectory-base-font-size);
  font-weight: var(--nexdirectory-font-weight-body);
  color: var(--nexdirectory-text-main);
  line-height: 1.5;
  box-sizing: border-box;
  max-width: var(--nexdirectory-content-max-width, 1220px);
  margin: 0 auto calc(24px * var(--nexdirectory-density-scale, 1));
  border-radius: var(--nexdirectory-radius);
}

:is(.nexdirectory-layout, .nexdirectory-submit-wrap, .nexdirectory-auth-grid, .nexdirectory-my-events, .nexdirectory-theme-shell, .nexdirectory-account-shell) * { 
  box-sizing: border-box; 
}

:is(.nexdirectory-layout, .nexdirectory-submit-wrap, .nexdirectory-auth-grid, .nexdirectory-my-events, .nexdirectory-theme-shell, .nexdirectory-account-shell) :is(h1, h2, h3, h4, h5) {
  font-family: var(--nexdirectory-font-display);
  font-weight: var(--nexdirectory-font-weight-heading);
  color: var(--nexdirectory-navy);
  margin: 0 0 16px 0;
  line-height: 1.25;
  letter-spacing: 0;
}

:is(.nexdirectory-layout, .nexdirectory-submit-wrap, .nexdirectory-auth-grid, .nexdirectory-my-events, .nexdirectory-theme-shell, .nexdirectory-account-shell) h2 { font-size: var(--nexdirectory-h2-size); }
:is(.nexdirectory-layout, .nexdirectory-submit-wrap, .nexdirectory-auth-grid, .nexdirectory-my-events, .nexdirectory-theme-shell, .nexdirectory-account-shell) h3 { font-size: var(--nexdirectory-h3-size); }

:is(.nexdirectory-layout, .nexdirectory-submit-wrap, .nexdirectory-auth-grid, .nexdirectory-my-events, .nexdirectory-theme-shell, .nexdirectory-account-shell) a {
  color: var(--nexdirectory-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--nexdirectory-trans);
}

:is(.nexdirectory-layout, .nexdirectory-submit-wrap, .nexdirectory-auth-grid, .nexdirectory-my-events, .nexdirectory-theme-shell, .nexdirectory-account-shell) a:hover {
  color: var(--nexdirectory-navy);
}

/* Keep theme/global link styles from leaking into NexDirectory UI controls. */
:is(
  #nexdirectory-app.nexdirectory-app,
  .nexdirectory-single-template-wrap,
  .nexdirectory-single-app-root,
  .nexdirectory-platform-nav,
  .nexdirectory-platform-footer,
  .nexdirectory-global-auth-modal,
  .nexdirectory-lightbox,
  .nexdirectory-theme-shell,
  .nexdirectory-layout,
  .nexdirectory-submit-wrap,
  .nexdirectory-auth-grid,
  .nexdirectory-my-events,
  .nexdirectory-account-shell
) :is(a[class], a[class]:hover, a[class]:focus, a[class]:active, a[class]:visited) {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
}

:is(
  #nexdirectory-app.nexdirectory-app,
  .nexdirectory-single-template-wrap,
  .nexdirectory-single-app-root,
  .nexdirectory-platform-nav,
  .nexdirectory-platform-footer,
  .nexdirectory-global-auth-modal,
  .nexdirectory-lightbox,
  .nexdirectory-theme-shell,
  .nexdirectory-layout,
  .nexdirectory-submit-wrap,
  .nexdirectory-auth-grid,
  .nexdirectory-my-events,
  .nexdirectory-account-shell
) :is(
  .text-white,
  .hover\:text-white:hover,
  .focus\:text-white:focus,
  .active\:text-white:active,
  .visited\:text-white:visited,
  a[class*="bg-brand-500"],
  a[class*="bg-brand-600"],
  a[class*="bg-brand-700"],
  a[class*="bg-brand-800"],
  button[class*="bg-brand-500"],
  button[class*="bg-brand-600"],
  button[class*="bg-brand-700"],
  button[class*="bg-brand-800"],
  a[class*="bg-[var(--nexdirectory-primary)]"],
  button[class*="bg-[var(--nexdirectory-primary)]"],
  .nexdirectory-force-accent-action
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

:is(
  #nexdirectory-app.nexdirectory-app,
  .nexdirectory-single-template-wrap,
  .nexdirectory-single-app-root,
  .nexdirectory-platform-nav,
  .nexdirectory-platform-footer,
  .nexdirectory-global-auth-modal,
  .nexdirectory-lightbox,
  .nexdirectory-theme-shell,
  .nexdirectory-layout,
  .nexdirectory-submit-wrap,
  .nexdirectory-auth-grid,
  .nexdirectory-my-events,
  .nexdirectory-account-shell
) :is(
  a[class*="bg-brand-500"],
  a[class*="bg-brand-600"],
  a[class*="bg-brand-700"],
  a[class*="bg-brand-800"],
  a[class*="bg-[var(--nexdirectory-primary)]"],
  .nexdirectory-force-accent-action
) :is(svg, i, span) {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* Account tabs AJAX shell spacing */
.nexdirectory-account-shell {
  padding: clamp(18px, 2vw, 32px) !important;
}

/* --- Utilities & Structural --- */
.nexdirectory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: calc(16px * var(--nexdirectory-density-scale, 1)); }
.nexdirectory-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: calc(24px * var(--nexdirectory-density-scale, 1)); }
.nexdirectory-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: calc(24px * var(--nexdirectory-density-scale, 1)); }

.nexdirectory-hide-theme-page-title :is(.entry-title, .page-title, .wp-block-post-title, .elementor-page-title, .entry-header .entry-title, .site-main .entry-title, .site-main .page-title) {
  display: none !important;
}

.nexdirectory-is-hidden { display: none !important; }

/* Critical nav icon sizing: prevents raw SVG chevrons flashing before utility CSS settles. */
.nexdirectory-platform-nav,
.nexdirectory-platform-nav * {
  box-sizing: border-box;
}

.nexdirectory-platform-nav svg {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  pointer-events: none;
}

.nexdirectory-platform-nav [data-nexdirectory-nav-desktop-chevron],
.nexdirectory-platform-nav [data-nexdirectory-nav-mobile-group-chevron],
.nexdirectory-platform-nav .nexdirectory-platform-nav-link svg,
.nexdirectory-platform-nav .nexdirectory-platform-nav-mobile-link svg {
  width: 1rem !important;
  height: 1rem !important;
  max-width: 1rem !important;
  max-height: 1rem !important;
}

.nexdirectory-platform-nav [data-nexdirectory-nav-icon-open],
.nexdirectory-platform-nav [data-nexdirectory-nav-icon-close],
.nexdirectory-platform-nav [data-nexdirectory-nav-close] svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
}

.nexdirectory-platform-nav [data-nexdirectory-nav-icon-close].hidden,
.nexdirectory-platform-nav [data-nexdirectory-nav-mobile-shell].hidden {
  display: none !important;
}

/* Shared card surfaces driven by runtime design tokens */
:is(.nexdirectory-event-section, .nexdirectory-form-section, .nexdirectory-submit-nav, .nexdirectory-map-item-card, .nexdirectory-archive-event-card, .nexdirectory-archive-sidebar, .nexdirectory-map-sidebar, .nexdirectory-sidebar, .nexdirectory-auth-shell, .nexdirectory-account-shell, .nexdirectory-account-card, .nexdirectory-user-event-card) {
  background: var(--nexdirectory-box-bg, #ffffff);
  border-color: var(--nexdirectory-box-border-color, #e5e7eb);
  border-width: var(--nexdirectory-box-border-width, 1px);
  box-shadow: var(--nexdirectory-shadow-sm);
}

/* --- Toasts --- */
#nexdirectory-toast-root {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2147483647 !important;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
}

#nexdirectory-toast-root .nexdirectory-toast {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: auto;
  width: min(420px, calc(100vw - max(28px, env(safe-area-inset-left) + env(safe-area-inset-right) + 28px)));
  margin: 0;
  border-radius: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #0f172a, #1f2937);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.34);
  font-family: var(--nexdirectory-font);
  line-height: 1.4;
}

#nexdirectory-toast-root .nexdirectory-toast:not(.nexdirectory-toast-hide) {
  opacity: 1;
  transform: translateY(0);
}

#nexdirectory-toast-root .nexdirectory-toast.nexdirectory-toast-hide {
  opacity: 0;
  transform: translateY(10px);
}

#nexdirectory-toast-root .nexdirectory-toast.nexdirectory-toast-success {
  background: linear-gradient(145deg, #14532d, #166534);
}

#nexdirectory-toast-root .nexdirectory-toast.nexdirectory-toast-error {
  background: linear-gradient(145deg, #7f1d1d, #991b1b);
}

#nexdirectory-toast-root .nexdirectory-toast.nexdirectory-toast-warning {
  background: linear-gradient(145deg, #92400e, #b45309);
}

#nexdirectory-toast-root .nexdirectory-toast.nexdirectory-toast-info {
  background: linear-gradient(145deg, #1e3a8a, #1d4ed8);
}

#nexdirectory-toast-root .nexdirectory-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

#nexdirectory-toast-root .nexdirectory-toast-title {
  font-family: var(--nexdirectory-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

#nexdirectory-toast-root .nexdirectory-toast-subtitle {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.87;
  margin-bottom: 6px;
}

#nexdirectory-toast-root .nexdirectory-toast-message {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  color: #f8fafc;
}

#nexdirectory-toast-root .nexdirectory-toast-close {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#nexdirectory-toast-root .nexdirectory-toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#nexdirectory-toast-root .nexdirectory-toast.nexdirectory-toast-imported-wide {
  position: fixed !important;
  left: max(5vw, 14px) !important;
  right: max(5vw, 14px) !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 auto !important;
}

.nexdirectory-notice.nexdirectory-toasted {
  display: none !important;
}

@media (max-width: 640px) {
  #nexdirectory-toast-root {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    justify-items: stretch;
  }

  #nexdirectory-toast-root .nexdirectory-toast {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 13px;
  }

  #nexdirectory-toast-root .nexdirectory-toast-title {
    font-size: 0.78rem;
  }

  #nexdirectory-toast-root .nexdirectory-toast-message {
    font-size: 0.92rem;
    line-height: 1.42;
  }
}

/* --- Buttons --- */
:is(.nexdirectory-btn, .nexdirectory-form button[type='submit'], .nexdirectory-filter-form button[type='submit']) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nexdirectory-btn-bg, var(--nexdirectory-primary));
  color: var(--nexdirectory-btn-color, #fff) !important;
  font-weight: var(--nexdirectory-btn-font-weight, 700);
  padding: 9px 14px;
  border-radius: var(--nexdirectory-btn-radius, var(--nexdirectory-radius-pill));
  min-height: var(--nexdirectory-btn-min-height, 40px);
  text-decoration: none;
  text-transform: var(--nexdirectory-btn-transform, uppercase);
  letter-spacing: var(--nexdirectory-btn-letter-spacing, 0.06em);
  font-size: 0.86rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: var(--nexdirectory-btn-border, 1px solid transparent);
  cursor: pointer;
  box-shadow: var(--nexdirectory-shadow-sm);
}

:is(.nexdirectory-btn, .nexdirectory-form button[type='submit']):hover {
  background: var(--nexdirectory-btn-bg-hover, var(--nexdirectory-primary-hover));
  transform: translateY(-1px);
  box-shadow: var(--nexdirectory-shadow);
}

:is(.nexdirectory-btn, .nexdirectory-form button[type="submit"]):focus-visible {
  outline: 3px solid rgba(var(--nexdirectory-primary-rgb), 0.25);
  outline-offset: 1px;
}

.nexdirectory-btn-secondary { background: #fff; color: var(--nexdirectory-navy) !important; border: 1px solid var(--nexdirectory-border); }
.nexdirectory-btn-secondary:hover { background: var(--nexdirectory-surface-alt); border-color: var(--nexdirectory-text-muted); color: var(--nexdirectory-navy) !important; }
.nexdirectory-btn-danger { background: #ef4444; color: #fff !important; }
.nexdirectory-btn-danger:hover { background: #dc2626; }
:is(.nexdirectory-btn:disabled, .nexdirectory-btn-disabled) { opacity: 0.6; cursor: not-allowed; filter: grayscale(1); }
.nexdirectory-force-accent-action,
.nexdirectory-force-accent-action:hover,
.nexdirectory-force-accent-action:focus,
.nexdirectory-force-accent-action:active,
.nexdirectory-force-accent-action:visited {
  background: var(--nexdirectory-primary) !important;
  border-color: var(--nexdirectory-primary) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.nexdirectory-force-accent-action:hover {
  background: var(--nexdirectory-primary-hover) !important;
  border-color: var(--nexdirectory-primary-hover) !important;
}

.nexdirectory-btn-sm {
  min-height: 34px !important;
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
}

.nexdirectory-btn.nexdirectory-loading { position: relative; opacity: 0.9; }
.nexdirectory-btn.nexdirectory-loading::after {
  content: ''; width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; display: inline-block; margin-left: 8px; animation: nexdirectory-spin 0.75s linear infinite;
}

/* --- Forms (Consolidated) --- */
:is(.nexdirectory-form, .nexdirectory-filter-form, .nexdirectory-user-event-tools, .nexdirectory-map-sidebar, .nexdirectory-archive-filter-card) :is(input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="file"]), textarea, select) {
  width: 100%;
  padding: var(--nexdirectory-field-pad-y, 10px) var(--nexdirectory-field-pad-x, 12px);
  border-style: solid;
  border-color: var(--nexdirectory-input-border, var(--nexdirectory-border));
  border-width: var(--nexdirectory-input-border-width, 1px);
  border-radius: var(--nexdirectory-input-radius, var(--nexdirectory-radius));
  font-size: 0.875rem;
  color: var(--nexdirectory-navy);
  background: var(--nexdirectory-input-bg, #fff);
  transition: var(--nexdirectory-trans);
  margin-bottom: calc(14px * var(--nexdirectory-density-scale, 1));
}

:is(.nexdirectory-form, .nexdirectory-filter-form, .nexdirectory-user-event-tools, .nexdirectory-map-sidebar, .nexdirectory-archive-filter-card) :is(input:focus, textarea:focus, select:focus) {
  outline: none;
  border-color: var(--nexdirectory-input-border-focus, var(--nexdirectory-primary));
  box-shadow: 0 0 0 3px rgba(var(--nexdirectory-primary-rgb), 0.1);
  background: var(--nexdirectory-input-bg, #fff);
}

:is(.nexdirectory-form, .nexdirectory-filter-form, .nexdirectory-user-event-tools, .nexdirectory-archive-filter-card) label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--nexdirectory-navy);
}

.nexdirectory-help-text { font-size: 0.82rem; color: #64748b; margin: -2px 0 8px; display: block; }
.nexdirectory-validation-error { color: #b91c1c; font-size: 0.84rem; margin: -8px 0 10px; }
.nexdirectory-validation-warning { color: #b45309; font-size: 0.84rem; }
:is(.nexdirectory-form, .nexdirectory-filter-form, .nexdirectory-user-event-tools, .nexdirectory-map-sidebar, .nexdirectory-archive-filter-card) :is(input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="file"]), textarea, select).nexdirectory-field-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
  background: #fff7f7 !important;
}
.nexdirectory-field-invalid-group {
  border: 1px solid rgba(220, 38, 38, 0.45) !important;
  border-radius: 12px;
  padding: 8px;
  background: rgba(254, 242, 242, 0.55);
}

/* Radio/Checkboxes */
.nexdirectory-radio-group { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.nexdirectory-radio-group input[type="radio"] { display: none; }
.nexdirectory-radio-group label {
  padding: 10px 20px; border: 1px solid var(--nexdirectory-border); border-radius: var(--nexdirectory-radius-pill);
  cursor: pointer; margin: 0; font-weight: 500; transition: var(--nexdirectory-trans); background: #fff; color: var(--nexdirectory-text-muted);
}
.nexdirectory-radio-group input[type="radio"]:checked + label {
  background: var(--nexdirectory-primary); color: #fff; border-color: var(--nexdirectory-primary); box-shadow: 0 4px 6px rgba(var(--nexdirectory-primary-rgb), 0.2);
}
.nexdirectory-checkbox-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; }
.nexdirectory-checkbox-row input[type='checkbox'] { width: 18px; height: 18px; margin: 0; accent-color: var(--nexdirectory-primary); }
.nexdirectory-checkbox-row label { margin: 0; font-size: 0.92rem; font-weight: 500; }

/* File Upload */
.nexdirectory-dropzone {
  border: 2px dashed #f2c3ae; background: #fffaf7; border-radius: 12px;
  padding: 16px; text-align: center; cursor: pointer; transition: var(--nexdirectory-trans);
}
.nexdirectory-dropzone:hover { border-color: var(--nexdirectory-primary); background: #fff; }
.nexdirectory-upload-preview { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; }

/* --- Banners / Heroes --- */
.nexdirectory-page-banner {
  position: relative; overflow: hidden; border-radius: var(--nexdirectory-radius-lg); padding: clamp(20px, 3.5vw, 40px);
  margin: 0 auto calc(24px * var(--nexdirectory-density-scale, 1)); max-width: var(--nexdirectory-content-max-width, 1220px);
  background: radial-gradient(circle at top right, rgba(var(--nexdirectory-primary-rgb), 0.35), transparent 40%), linear-gradient(135deg, var(--nexdirectory-navy), var(--nexdirectory-navy-light));
  color: #fff; box-shadow: var(--nexdirectory-shadow-lg);
}
.nexdirectory-page-banner h1 { font-size: 2.4rem !important; color: #fff !important; text-transform: none; margin: 0 0 8px; line-height: 1.15 !important; text-shadow: 0 3px 16px rgba(11, 18, 33, 0.32); }
.nexdirectory-page-banner p { max-width: 64ch; margin: 0 auto; color: rgba(255, 255, 255, 0.9); font-size: 1rem; line-height: 1.55; }
.nexdirectory-page-kicker { display: block; width: 100%; text-align: center; margin: 0 auto 8px; font-size: 0.875rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: color-mix(in srgb, var(--nexdirectory-primary) 68%, #ffffff); }
.nexdirectory-page-banner.nexdirectory-page-banner-has-image {
  background-image:
    linear-gradient(140deg, rgba(11, 18, 33, 0.72), rgba(26, 31, 46, 0.64)),
    var(--nexdirectory-page-hero-image);
  background-size: cover;
  background-position: var(--nexdirectory-page-hero-bg-pos, center center);
  background-repeat: no-repeat;
}

/* --- Single Event Page --- */
.nexdirectory-event-page { max-width: var(--nexdirectory-event-page-max-width, 1240px); margin: 0 auto calc(56px * var(--nexdirectory-density-scale, 1)); letter-spacing: normal; }
.nexdirectory-event-hero {
  border-radius: 0 0 34px 34px; min-height: clamp(340px, 52vh, 520px);
  background: linear-gradient(135deg, #122235, #1f3f63);
  background-size: cover !important; background-position: var(--nexdirectory-hero-bg-pos, center center) !important;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: var(--nexdirectory-shadow-lg); transform: translateZ(0);
}
.nexdirectory-event-hero::before {
  content: ''; position: absolute; inset: 0 !important;
  background: linear-gradient(180deg, rgba(11, 18, 33, 0.35), rgba(11, 18, 33, 0.72));
}
.nexdirectory-event-hero-overlay {
  position: relative; z-index: 2; width: 100%; max-width: 880px; padding: clamp(28px, 5vw, 64px) 18px; color: #fff;
}
.nexdirectory-event-hero-title { font-size: 3rem; margin-bottom: 12px; color: #fff !important; line-height: 1.02; text-wrap: balance; font-family: var(--nexdirectory-font-display); text-transform: none; }
.nexdirectory-event-hero-subtitle { max-width: 620px; margin: 0 auto 18px; color: rgba(255, 255, 255, 0.94); font-size: 1rem; line-height: 1.6; }

.nexdirectory-event-hero-info-cards {
  display: grid; grid-template-columns: minmax(0, 172px) minmax(0, 1fr) !important; gap: 8px !important; width: min(100%, 560px) !important; margin: 0 auto 10px;
}
.nexdirectory-hero-info-card {
  border-radius: 14px !important; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(15, 23, 42, 0.45); color: #fff; padding: 8px 11px !important; text-align: left;
}
.nexdirectory-hero-info-card span { display: block; margin-bottom: 2px !important; font-size: 0.62rem !important; text-transform: none; letter-spacing: 0; font-weight: 700; color: rgba(255, 255, 255, 0.74); }
.nexdirectory-hero-info-card strong { display: block; font-family: var(--nexdirectory-font); font-size: 0.9rem !important; line-height: 1.24 !important; font-weight: 700 !important; color: #fff; word-break: break-word; }

.nexdirectory-event-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.nexdirectory-event-chip {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  min-width: 84px !important; height: 24px !important; padding: 0 10px !important;
  border-radius: 999px !important; border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(0, 0, 0, 0.36);
  color: #fff; font-size: 0.62rem; font-weight: 600; text-transform: none; letter-spacing: 0; font-family: var(--nexdirectory-font-display); white-space: nowrap;
}

/* Single Event Layout & Sidebar */
.nexdirectory-event-layout-modern {
  display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(16px, 2.5vw, 30px) !important; max-width: 1080px; margin: 20px auto 0 !important; padding: 0 clamp(16px, 2.2vw, 30px) !important; align-items: start !important; overflow: visible !important;
}
.nexdirectory-event-main, .nexdirectory-event-aside { display: grid; gap: calc(14px * var(--nexdirectory-density-scale, 1)); }
.nexdirectory-event-aside { position: -webkit-sticky !important; position: sticky !important; top: 30px !important; height: max-content !important; z-index: 99 !important; }
.nexdirectory-event-section { border: var(--nexdirectory-box-border-width, 1px) solid var(--nexdirectory-box-border-color, #e4ebf3); border-radius: var(--nexdirectory-radius-lg) !important; background: var(--nexdirectory-box-bg, #fff); padding: clamp(18px, 2.2vw, 24px) !important; box-shadow: var(--nexdirectory-shadow-sm); }

/* Event Sub-Components */
:is(.nexdirectory-event-overview, .nexdirectory-event-section) h3 {
  position: relative; padding-left: 16px; margin-bottom: 10px; text-transform: none; font-family: var(--nexdirectory-font-display); font-size: 1.45rem; letter-spacing: 0;
}
:is(.nexdirectory-event-overview, .nexdirectory-event-section) h3::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 1.25em; border-radius: 999px; background: var(--nexdirectory-primary);
}
.nexdirectory-event-body { margin-top: 14px !important; font-size: 0.95rem; line-height: 1.65; color: #334155; }
.nexdirectory-event-body p { margin: 0 0 14px !important; line-height: 1.62 !important; }

/* Fact Grid */
.nexdirectory-fact-grid-modern { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
.nexdirectory-fact-card { border-radius: 10px !important; padding: 8px 10px !important; background: #f9fafc; border: 1px solid #eceff3; align-content: start; }
.nexdirectory-fact-label { display: block; font-size: 0.66rem; text-transform: none; letter-spacing: 0; color: var(--nexdirectory-text-muted); margin-bottom: 2px !important; }
.nexdirectory-fact-value { color: var(--nexdirectory-navy); font-family: var(--nexdirectory-font); font-size: 0.88rem !important; font-weight: 700; line-height: 1.22 !important; word-break: break-word; }

/* CTA Card */
.nexdirectory-event-cta-card {
  background: linear-gradient(145deg, var(--nexdirectory-primary), var(--nexdirectory-primary-hover));
  border: 0; box-shadow: 0 24px 48px color-mix(in srgb, var(--nexdirectory-primary) 40%, transparent); color: var(--nexdirectory-on-primary, #fff) !important;
}
.nexdirectory-event-cta-card h3, .nexdirectory-event-cta-card .nexdirectory-cta-text, .nexdirectory-event-cta-card .nexdirectory-cta-status { color: inherit !important; }
.nexdirectory-event-cta-card h3::before { background: rgba(255, 255, 255, 0.82); }
.nexdirectory-event-cta-card .nexdirectory-cta-status { border-top: 1px solid color-mix(in srgb, var(--nexdirectory-on-primary, #ffffff) 35%, transparent); display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-top: 8px; }
.nexdirectory-event-cta-card .nexdirectory-cta-status span { font-size: 0.66rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.nexdirectory-event-cta-card .nexdirectory-cta-status strong { font-size: 0.62rem; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--nexdirectory-on-primary, #ffffff) 20%, transparent); }
.nexdirectory-event-cta-card .nexdirectory-actions { display: grid; gap: 5px !important; }
.nexdirectory-event-cta-card .nexdirectory-btn { background: var(--nexdirectory-navy); color: #fff !important; min-height: 34px !important; padding: 6px 10px !important; font-size: 0.78rem !important; letter-spacing: 0 !important; border-radius: var(--nexdirectory-radius-sm); }
.nexdirectory-event-cta-card .nexdirectory-btn-secondary { background: rgba(255, 255, 255, 0.2); border-color: color-mix(in srgb, var(--nexdirectory-on-primary, #ffffff) 42%, transparent); color: var(--nexdirectory-on-primary, #ffffff) !important; }

/* --- Archive & Map Layouts --- */
.nexdirectory-archive-layout, .nexdirectory-map-layout { max-width: var(--nexdirectory-archive-max-width, 1400px); margin: 0 auto; padding: 0 20px calc(80px * var(--nexdirectory-density-scale, 1)); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: calc(30px * var(--nexdirectory-density-scale, 1)); align-items: start; overflow: visible !important; }
:is(.nexdirectory-archive-sidebar, .nexdirectory-map-sidebar, .nexdirectory-sidebar) {
  position: -webkit-sticky !important; position: sticky !important; top: 40px !important; height: max-content !important; z-index: 99 !important;
  border: var(--nexdirectory-box-border-width, 1px) solid var(--nexdirectory-box-border-color, #e2e8f0); border-radius: 16px; background: var(--nexdirectory-box-bg, #fff); box-shadow: var(--nexdirectory-shadow-sm); padding: calc(24px * var(--nexdirectory-density-scale, 1));
}
:is(.nexdirectory-archive-sidebar, .nexdirectory-map-sidebar) h3 { margin: 0 0 16px; padding-bottom: 12px; font-family: var(--nexdirectory-font); font-size: 1.25rem; border-bottom: 2px solid #f1f5f9; }

/* Map List Cards */
#nexdirectory-map-list { display: grid; gap: 10px; margin-top: 10px; }
.nexdirectory-map-item-card {
  display: flex; flex-direction: column; border: var(--nexdirectory-box-border-width, 1px) solid var(--nexdirectory-box-border-color, #e4ebf3) !important; border-radius: 16px !important;
  background: var(--nexdirectory-box-bg, #fff); padding: 0 !important; box-shadow: var(--nexdirectory-shadow-sm); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden;
}
.nexdirectory-map-item-card:hover { border-color: rgba(var(--nexdirectory-primary-rgb), .45); box-shadow: 0 10px 26px rgba(15, 23, 42, .12); transform: translateY(-1px); }
.nexdirectory-map-item-thumb { width: 100% !important; height: 180px !important; border-radius: 0 !important; background: #eff4fa; overflow: hidden; }
.nexdirectory-map-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nexdirectory-map-item-body { padding: 20px !important; display: flex; flex-direction: column; gap: 8px; }
.nexdirectory-map-item-title { margin: 0; font-family: var(--nexdirectory-font-display); font-size: 1.125rem; font-weight: 700; color: #1e293b; line-height: 1.3; }
.nexdirectory-map-item-date, .nexdirectory-map-item-location { margin: 0; color: #64748b; font-size: 0.85rem; line-height: 1.35; }
.nexdirectory-map-item-view {
  margin-top: auto; padding: 12px; border-radius: 10px; text-align: center; border: 1px solid #dbe3ee; background: #f8fafc;
  color: #1e293b !important; font-size: 0.95rem; font-weight: 600; text-decoration: none; display: block;
}
.nexdirectory-map-item-view:hover { border-color: var(--nexdirectory-primary); background: var(--nexdirectory-primary); color: #fff !important; }

/* --- Account / Submit Wrap --- */
.nexdirectory-submit-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(22px, 2vw, 32px); align-items: start; max-width: min(100%, var(--nexdirectory-content-max-width, 1280px)); margin: 0 auto calc(28px * var(--nexdirectory-density-scale, 1)); padding: 0 clamp(14px, 1.6vw, 24px); overflow: visible !important; }
.nexdirectory-submit-nav {
  position: -webkit-sticky !important; position: sticky !important; top: 40px !important; z-index: 99 !important;
  background: var(--nexdirectory-box-bg, #fff); border: var(--nexdirectory-box-border-width, 1px) solid var(--nexdirectory-box-border-color, #e9edf3); border-radius: 16px; padding: calc(10px * var(--nexdirectory-density-scale, 1)); box-shadow: var(--nexdirectory-shadow-sm); max-height: calc(100vh - 24px) !important; overflow: auto !important;
}
.nexdirectory-submit-nav-link { display: block; padding: calc(10px * var(--nexdirectory-density-scale, 1)) calc(12px * var(--nexdirectory-density-scale, 1)); border-radius: 10px; margin-bottom: calc(6px * var(--nexdirectory-density-scale, 1)); font-size: 0.86rem; font-weight: 700; color: #334155; text-transform: none; letter-spacing: 0; text-decoration: none; }
.nexdirectory-submit-nav-link.is-active, .nexdirectory-submit-nav-link:hover { background: #fff3ec; color: var(--nexdirectory-primary); }
.nexdirectory-form-section { background: var(--nexdirectory-box-bg, #fff); border: var(--nexdirectory-box-border-width, 1px) solid var(--nexdirectory-box-border-color, #e4ebf3); border-radius: var(--nexdirectory-radius-lg); padding: clamp(18px, 2.2vw, 28px); margin-bottom: clamp(18px, 2vw, 26px); box-shadow: var(--nexdirectory-shadow-sm); }

/* --- Badges & Pills --- */
.nexdirectory-badge { background: var(--nexdirectory-surface-alt); color: var(--nexdirectory-navy); padding: 4px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 700; text-transform: uppercase; }
.nexdirectory-badge-primary { background: var(--nexdirectory-primary); color: #fff; }
.nexdirectory-status-pill, .nexdirectory-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 24px; border-radius: 999px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  border: 1px solid #dbe4ef; background: #f8fafc; color: #334155;
}
.nexdirectory-status-pending { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.nexdirectory-status-publish, .nexdirectory-pill-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.nexdirectory-status-draft, .nexdirectory-pill-muted { background: #e2e8f0; color: #475569; border-color: #cbd5e1; }
.nexdirectory-live-toggle-form {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.nexdirectory-live-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 34px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
}
.nexdirectory-live-toggle input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nexdirectory-live-toggle-track {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.2s ease;
}
.nexdirectory-live-toggle-track::after {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease;
}
.nexdirectory-live-toggle-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  transition: color 0.2s ease;
}
.nexdirectory-live-toggle input[type='checkbox']:checked + .nexdirectory-live-toggle-track {
  background: rgba(var(--nexdirectory-primary-rgb), 0.72);
}
.nexdirectory-live-toggle input[type='checkbox']:checked + .nexdirectory-live-toggle-track::after {
  transform: translateX(8px);
}
.nexdirectory-live-toggle input[type='checkbox']:checked ~ .nexdirectory-live-toggle-label-live {
  color: #166534;
}
.nexdirectory-live-toggle input[type='checkbox']:not(:checked) ~ .nexdirectory-live-toggle-label-draft {
  color: #334155;
}
.nexdirectory-live-toggle-meta {
  font-size: 0.7rem;
  color: #b45309;
  font-weight: 600;
}

/* Dashboard listing surfaces and destructive actions */
.nexdirectory-account-shell {
  border: 1px solid #e5eaf1;
  background:
    radial-gradient(circle at top left, rgba(var(--nexdirectory-primary-rgb), 0.08), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}
.nexdirectory-plan-status {
  max-width: var(--nexdirectory-content-max-width, 1220px);
  margin: -4px auto 18px;
  padding: 14px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.12);
}
.nexdirectory-plan-status--pro {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.1);
}
.nexdirectory-plan-status strong {
  display: block;
  color: #9a3412;
  font-size: 0.98rem;
  line-height: 1.25;
}
.nexdirectory-plan-status--pro strong {
  color: #166534;
}
.nexdirectory-plan-status p {
  margin: 4px 0 0;
  color: #7c2d12;
  font-size: 0.86rem;
  line-height: 1.45;
}
.nexdirectory-plan-status--pro p {
  color: #166534;
}
.nexdirectory-plan-status-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nexdirectory-plan-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #fdba74;
  background: rgba(255, 255, 255, 0.7);
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.nexdirectory-plan-status--pro .nexdirectory-plan-status-badge {
  border-color: #86efac;
  color: #166534;
}
.nexdirectory-plan-status-badge span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}
.nexdirectory-my-events {
  width: 100%;
}
.nexdirectory-my-events > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px !important;
}
.nexdirectory-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}
.nexdirectory-admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #334155;
  font-size: 0.92rem;
}
.nexdirectory-admin-table th {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e5eaf1;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.nexdirectory-admin-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}
.nexdirectory-admin-table tbody tr {
  transition: background-color 160ms ease, transform 160ms ease, opacity 180ms ease;
}
.nexdirectory-admin-table tbody tr:hover {
  background: #fbfdff;
}
.nexdirectory-admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.nexdirectory-admin-table tbody tr.is-removing {
  opacity: 0;
  transform: translateY(7px);
}
.nexdirectory-my-event-title {
  color: #0f172a;
  font-weight: 800;
}
.nexdirectory-actions,
.nexdirectory-my-events-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.nexdirectory-inline-form {
  margin: 0;
}
.nexdirectory-delete-btn,
.nexdirectory-account-delete-btn {
  gap: 6px;
}
.nexdirectory-delete-btn::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nexdirectory-btn-danger.nexdirectory-delete-btn {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #b91c1c !important;
  box-shadow: none;
}
.nexdirectory-btn-danger.nexdirectory-delete-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff !important;
}
.nexdirectory-dashboard-listing-card[aria-busy="true"],
.nexdirectory-admin-table tr[aria-busy="true"] {
  opacity: 0.82;
}

/* Boost Badges */
.nexdirectory-boost-badge, .nexdirectory-verified-badge { position: absolute; top: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff; }
.nexdirectory-boost-badge { left: 10px; background: rgba(var(--nexdirectory-primary-rgb), 0.95); }
.nexdirectory-verified-badge { right: 10px; background: rgba(37, 99, 235, 0.92); }
.nexdirectory-card-boosted { box-shadow: 0 14px 36px rgba(var(--nexdirectory-primary-rgb), 0.16), 0 6px 18px rgba(15, 23, 42, 0.08) !important; border-color: rgba(var(--nexdirectory-primary-rgb), 0.38) !important; }

/* --- Responsive Media Queries (Consolidated) --- */
@media (max-width: 1160px) {
  .nexdirectory-event-page .nexdirectory-event-layout-modern { grid-template-columns: 1fr !important; }
  .nexdirectory-event-aside { position: static !important; }
  .nexdirectory-submit-wrap { grid-template-columns: 1fr; }
  .nexdirectory-submit-nav { position: static !important; max-height: none !important; display: flex; flex-wrap: wrap; }
  .nexdirectory-submit-nav-link { margin: 0 6px 6px 0; display: inline-flex; }
  .nexdirectory-map-layout { grid-template-columns: 1fr; }
  .nexdirectory-map-results-col { position: static !important; }
}

@media (max-width: 900px) {
  :is(.nexdirectory-layout, .nexdirectory-submit-wrap, .nexdirectory-auth-grid, .nexdirectory-my-events, .nexdirectory-account-shell) { padding-inline: 10px; }
  .nexdirectory-page-banner { border-radius: var(--nexdirectory-radius-lg); margin-bottom: 18px; padding: 18px 14px; }
  .nexdirectory-event-page .nexdirectory-event-hero { border-radius: 0 0 24px 24px; min-height: 320px !important; margin-top: 0 !important; }
  .nexdirectory-event-page .nexdirectory-event-hero-title { font-size: 2rem !important; }
  .nexdirectory-event-page .nexdirectory-event-hero-info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: 100% !important; gap: 7px !important; }
  .nexdirectory-event-page .nexdirectory-event-layout-modern { padding: 18px 12px 0 !important; gap: 14px !important; }
  .nexdirectory-event-page .nexdirectory-fact-grid-modern { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .nexdirectory-event-page .nexdirectory-detail-row { padding: 7px 0 !important; }
  .nexdirectory-archive-layout, .nexdirectory-map-layout { grid-template-columns: 1fr; padding: 0 16px 56px; gap: 18px; }
  .nexdirectory-archive-sidebar, .nexdirectory-map-sidebar { position: static !important; background: #fff !important; }
  .nexdirectory-map-layout .nexdirectory-map { min-height: 320px !important; }
  .nexdirectory-map-list { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .nexdirectory-event-page .nexdirectory-event-hero-info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .nexdirectory-hero-info-card { padding: 7px 9px !important; }
  .nexdirectory-hero-info-card strong { font-size: 0.84rem !important; }
  .nexdirectory-event-page .nexdirectory-fact-grid-modern { grid-template-columns: 1fr !important; }
  .nexdirectory-responsive-table thead { display: none; }
  .nexdirectory-responsive-table,
  .nexdirectory-responsive-table tbody,
  .nexdirectory-responsive-table tr,
  .nexdirectory-responsive-table td {
    display: block;
    width: 100%;
  }
  .nexdirectory-responsive-table tr {
    padding: 12px;
    border-bottom: 1px solid #edf1f6;
  }
  .nexdirectory-responsive-table tr:last-child {
    border-bottom: 0;
  }
  .nexdirectory-responsive-table td {
    padding: 8px 0;
    border-bottom: 0;
  }
  .nexdirectory-responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .nexdirectory-my-events-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .nexdirectory-my-events-actions :is(.nexdirectory-btn, form, button) {
    width: 100%;
  }
  .nexdirectory-auth-shell { padding: 10px; border-radius: 14px; }
  .nexdirectory-submit-form .nexdirectory-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Layout Overrides (Forced Layout Options) --- */
.nexdirectory-event-page.nexdirectory-page-layout-modern .nexdirectory-event-layout-modern { grid-template-columns: minmax(0, 1fr) minmax(320px, 360px) !important; max-width: 1220px !important; }
.nexdirectory-event-page.nexdirectory-page-layout-balanced .nexdirectory-event-layout-modern { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; max-width: 1260px !important; }
.nexdirectory-event-page.nexdirectory-page-layout-single-column .nexdirectory-event-layout-modern { grid-template-columns: 1fr !important; max-width: 940px !important; }
.nexdirectory-event-page.nexdirectory-page-layout-cards-heavy .nexdirectory-event-layout-modern { grid-template-columns: 1fr !important; max-width: 1260px !important; }
.nexdirectory-event-page.nexdirectory-page-layout-cards-heavy :is(.nexdirectory-event-main, .nexdirectory-event-aside) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; position: static !important; }
.nexdirectory-event-page.nexdirectory-page-layout-editorial .nexdirectory-event-layout-modern { grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr) !important; max-width: 1280px !important; }
.nexdirectory-event-page.nexdirectory-page-layout-editorial .nexdirectory-event-main .nexdirectory-event-section { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; border-bottom: 1px solid #e2e8f0 !important; padding-inline: 0 !important; }

/* Map card hover polish uses stable named selectors rather than unsupported
   compound arbitrary utility variants. */
.nexdirectory-map-results-section #nexdirectory-map-list > :is(article, div):hover img.nexdirectory-card-img,
[data-map-results-list] > :is(article, div):hover img.nexdirectory-card-img {
  transform: scale(1.05);
}
.nexdirectory-map-results-section #nexdirectory-map-list > :is(article, div):hover .nexdirectory-card-body h3,
[data-map-results-list] > :is(article, div):hover .nexdirectory-card-body h3 {
  color: var(--nexdirectory-primary);
}

/* Search recovery states shared by archive and map discovery. */
#nexdirectory-archive-results > .nexdirectory-grid > .nexdirectory-search-recovery,
#nexdirectory-map-default-wrapper #nexdirectory-map-list > .nexdirectory-search-recovery {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  display: flex !important;
  min-width: 0;
  min-height: clamp(300px, 42vw, 430px);
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px) clamp(18px, 5vw, 48px) !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% -18%, rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.15), transparent 48%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07) !important;
  text-align: center;
}

#nexdirectory-archive-results > .nexdirectory-grid > .nexdirectory-search-recovery::after,
#nexdirectory-map-default-wrapper #nexdirectory-map-list > .nexdirectory-search-recovery::after {
  position: absolute;
  z-index: -1;
  right: -75px;
  bottom: -95px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.13);
  border-radius: 999px;
  content: "";
}

.nexdirectory-search-recovery__icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.2);
  border-radius: 18px;
  background: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.09);
  color: var(--nexdirectory-primary);
  box-shadow: 0 10px 26px rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.12);
}

.nexdirectory-search-recovery__icon svg {
  width: 28px;
  height: 28px;
}

.nexdirectory-search-recovery__title {
  max-width: 620px;
  margin: 0 !important;
  color: #0f172a !important;
  font-size: clamp(1.35rem, 3vw, 1.9rem) !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em;
}

.nexdirectory-search-recovery__description {
  max-width: 650px;
  margin: 10px auto 0 !important;
  color: #64748b !important;
  font-size: 0.96rem !important;
  line-height: 1.65 !important;
}

.nexdirectory-search-recovery__section {
  width: min(100%, 760px);
  margin-top: 24px;
}

.nexdirectory-search-recovery__heading {
  display: block;
  margin: 0 0 10px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nexdirectory-search-recovery__chips,
.nexdirectory-search-recovery__actions,
.nexdirectory-search-recovery__popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.nexdirectory-search-recovery__chip,
.nexdirectory-search-recovery__button,
.nexdirectory-search-recovery__category {
  appearance: none;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nexdirectory-search-recovery__chip {
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid #dbe4ee;
  background: #fff;
  color: #334155;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.nexdirectory-search-recovery__chip-value {
  overflow: hidden;
  max-width: min(260px, 55vw);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexdirectory-search-recovery__chip-remove {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1rem;
  line-height: 1;
}

.nexdirectory-search-recovery__button {
  padding: 9px 16px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.nexdirectory-search-recovery__button--primary {
  border-color: var(--nexdirectory-primary);
  background: var(--nexdirectory-primary);
  color: var(--nexdirectory-on-primary, #fff) !important;
  box-shadow: 0 8px 20px rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.2);
}

.nexdirectory-search-recovery__category {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.2);
  background: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.06);
  color: var(--nexdirectory-primary);
}

.nexdirectory-search-recovery__chip:hover,
.nexdirectory-search-recovery__button:hover {
  border-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.45);
  color: var(--nexdirectory-primary);
  transform: translateY(-1px);
}

.nexdirectory-search-recovery__button--primary:hover {
  border-color: var(--nexdirectory-primary-hover);
  background: var(--nexdirectory-primary-hover);
  color: var(--nexdirectory-on-primary, #fff) !important;
}

.nexdirectory-search-recovery__category:hover {
  border-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.42);
  background: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.11);
  color: var(--nexdirectory-primary-hover);
  transform: translateY(-1px);
}

.nexdirectory-search-recovery :is(button, a):focus-visible {
  outline: 3px solid rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.3);
  outline-offset: 3px;
}

#nexdirectory-archive-results:focus-visible,
#nexdirectory-map-list:focus-visible {
  outline: 3px solid rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.24);
  outline-offset: 5px;
}

@media (max-width: 639px) {
  #nexdirectory-archive-results > .nexdirectory-grid > .nexdirectory-search-recovery,
  #nexdirectory-map-default-wrapper #nexdirectory-map-list > .nexdirectory-search-recovery {
    min-height: 0;
    padding: 30px 16px !important;
    border-radius: 18px !important;
  }

  .nexdirectory-search-recovery__section {
    margin-top: 20px;
  }

  .nexdirectory-search-recovery__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .nexdirectory-search-recovery__button {
    width: 100%;
    border-radius: 13px;
  }

  .nexdirectory-search-recovery__chip-value {
    max-width: 68vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexdirectory-search-recovery :is(button, a) {
    transition: none;
  }

  .nexdirectory-search-recovery :is(button, a):hover {
    transform: none;
  }
}


/* ==========================================================
   Restored Interactive Components & Modals
========================================================== */

/* --- Sticky Top Auth Links --- */
.nexdirectory-page-auth-links {
  position: sticky;
  top: 10px;
  z-index: 92;
  margin: 8px auto 10px;
  max-width: 1220px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  pointer-events: none;
}
.nexdirectory-page-auth-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nexdirectory-page-auth-link:hover {
  border-color: var(--nexdirectory-primary);
  color: var(--nexdirectory-primary);
  transform: translateY(-1px);
}
.nexdirectory-page-auth-link.nexdirectory-page-auth-link-primary {
  background: var(--nexdirectory-primary);
  border-color: var(--nexdirectory-primary);
  color: #ffffff;
}
.nexdirectory-page-auth-link.nexdirectory-page-auth-link-primary:hover {
  background: var(--nexdirectory-primary-hover);
}

/* --- Lightboxes (Global, Doc, Video) --- */
.nexdirectory-lightbox[hidden] {
  display: none !important;
}
.nexdirectory-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 24, 0.92);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Attendees modal sizing + layering hardening */
.nexdirectory-attendees-modal.nexdirectory-lightbox {
  z-index: 2147483600 !important;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 28px);
}
.nexdirectory-attendees-modal .nexdirectory-attendees-modal-dialog {
  position: relative;
  width: min(1040px, 90vw);
  max-height: min(90vh, 920px);
  background: #ffffff;
  border-radius: var(--nexdirectory-radius-lg);
  box-shadow: 0 22px 46px rgba(2, 6, 23, 0.34);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nexdirectory-attendees-modal .nexdirectory-attendees-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.nexdirectory-attendees-modal .nexdirectory-attendees-modal-close:hover {
  border-color: var(--nexdirectory-primary);
  color: var(--nexdirectory-primary);
}
.nexdirectory-attendees-modal .nexdirectory-attendees-panel {
  overflow: auto;
  max-height: inherit;
  padding: 20px;
}
.nexdirectory-attendees-modal .nexdirectory-attendees-panel-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  padding-right: 46px;
}
@media (max-width: 900px) {
  .nexdirectory-attendees-modal.nexdirectory-lightbox {
    padding: 10px;
  }
  .nexdirectory-attendees-modal .nexdirectory-attendees-modal-dialog {
    width: 96vw;
    max-height: 92vh;
    border-radius: 14px;
  }
  .nexdirectory-attendees-modal .nexdirectory-attendees-panel {
    padding: 14px;
  }
}
body.nexdirectory-lightbox-open {
  overflow: hidden;
}
.nexdirectory-lightbox img {
  max-width: min(1180px, 92vw);
  max-height: 86vh;
  border-radius: 10px;
  object-fit: contain;
}

/* --- Gallery Base Overrides --- */
.nexdirectory-gallery-item {
  border: 0;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
}
.nexdirectory-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Alpine.js specific fallbacks (Optional but safe) --- */
[x-cloak] { display: none !important; }

/* ==========================================================
   Archive / "What's New" Page Layout & Cards
========================================================== */

/* --- Breadcrumbs --- */
.nexdirectory-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: var(--nexdirectory-content-max-width, 1220px);
  margin: 0 auto calc(12px * var(--nexdirectory-density-scale, 1));
  padding: 0 14px;
  color: #64748b;
  font-size: 0.85rem;
}
.nexdirectory-breadcrumbs a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nexdirectory-breadcrumbs a:hover {
  color: var(--nexdirectory-primary);
}
.nexdirectory-breadcrumbs .is-current {
  color: #0f172a;
  font-weight: 600;
}
.nexdirectory-breadcrumbs .nexdirectory-breadcrumb-sep {
  color: #94a3b8;
  margin: 0 4px;
}

/* --- Archive Hero Overrides --- */
.nexdirectory-page-banner.nexdirectory-archive-hero {
  min-height: 290px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.nexdirectory-page-banner.nexdirectory-archive-hero .nexdirectory-page-kicker {
  margin: 0 auto;
}

/* --- Archive Layout --- */
.nexdirectory-layout-no-sidebar {
  grid-template-columns: 1fr !important;
}
.nexdirectory-archive-content {
  width: 100%;
}

/* --- Archive Event Cards (The Grid Items) --- */
.nexdirectory-archive-event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important; /* Resets generic card padding so image goes edge-to-edge */
  overflow: hidden;
}
.nexdirectory-archive-event-card .nexdirectory-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e9eef5;
  overflow: hidden;
  border-bottom: 1px solid var(--nexdirectory-border);
}
.nexdirectory-archive-event-card .nexdirectory-card-cover-link {
  display: block;
  width: 100%;
  height: 100%;
}
.nexdirectory-archive-event-card .nexdirectory-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.nexdirectory-archive-event-card:hover .nexdirectory-card-cover {
  transform: scale(1.05);
}

/* --- Archive Card Content --- */
.nexdirectory-archive-card-content {
  padding: calc(20px * var(--nexdirectory-density-scale, 1));
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nexdirectory-archive-card-content .nexdirectory-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}
.nexdirectory-archive-card-content .nexdirectory-card-title a {
  color: inherit;
  text-decoration: none;
}
.nexdirectory-archive-card-content .nexdirectory-card-title a:hover {
  color: var(--nexdirectory-primary);
}
.nexdirectory-card-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--nexdirectory-text-muted);
  line-height: 1.4;
}
.nexdirectory-card-meta-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--nexdirectory-primary);
}

/* Forces the button to the bottom of the card */
.nexdirectory-archive-event-card-footer {
  margin-top: auto; 
  padding-top: 20px;
}
.nexdirectory-archive-view-btn {
  width: 100%;
}

/* --- Pagination --- */
.nexdirectory-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  width: 100%;
}
.nexdirectory-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--nexdirectory-border);
  color: var(--nexdirectory-navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.nexdirectory-pagination .page-numbers:hover {
  border-color: var(--nexdirectory-primary);
  color: var(--nexdirectory-primary);
  background: var(--nexdirectory-surface-alt);
  transform: translateY(-2px);
}
.nexdirectory-pagination .page-numbers.current {
  background: var(--nexdirectory-primary);
  border-color: var(--nexdirectory-primary);
  color: #fff;
  pointer-events: none;
}

/* Platform navigation typography lock. */
.nexdirectory-platform-nav .nexdirectory-platform-nav-brand-text {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
.nexdirectory-platform-nav .nexdirectory-platform-nav-trigger,
.nexdirectory-platform-nav .nexdirectory-platform-nav-link {
  font-size: 14px !important;
  line-height: 1.2 !important;
}
.nexdirectory-platform-nav .nexdirectory-platform-nav-trigger {
  font-weight: 500 !important;
}
.nexdirectory-platform-nav .nexdirectory-platform-nav-link {
  font-weight: 500 !important;
}
.nexdirectory-platform-nav .nexdirectory-platform-nav-cta-link {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
.nexdirectory-platform-nav .nexdirectory-platform-nav-mobile-trigger {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}
.nexdirectory-platform-nav .nexdirectory-platform-nav-mobile-link {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}
.nexdirectory-platform-nav .nexdirectory-platform-nav-mobile-cta-link {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
/* Hide platform navigation while the media lightbox is open. */
body.nexdirectory-media-lightbox-open .nexdirectory-platform-nav {
  transform: translate3d(0, calc(-100% - 14px), 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Compiled utility coverage for dynamic/custom design tokens used by templates. */
.nxd-ui .delay-400 {
  transition-delay: 400ms;
}
.nxd-ui .duration-180 {
  transition-duration: 180ms;
}
.nxd-ui .duration-250 {
  transition-duration: 250ms;
}
.nxd-ui .duration-400 {
  transition-duration: 400ms;
}
.nxd-ui .duration-900 {
  transition-duration: 900ms;
}
.nxd-ui .py-4\.5 {
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}
.nxd-ui .bg-brand-400\/10 {
  background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.1);
}
.nxd-ui .bg-brand-50\/30 {
  background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.03);
}
.nxd-ui .bg-brand-500\/10 {
  background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.1);
}
.nxd-ui .bg-brand-500\/20 {
  background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.2);
}
.nxd-ui .bg-brand-500\/25 {
  background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.25);
}
.nxd-ui .bg-brand-500\/30 {
  background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.3);
}
.nxd-ui .bg-brand-500\/90 {
  background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.9);
}
.nxd-ui .border-brand-500\/30 {
  border-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.3);
}
.nxd-ui .border-brand-300\/50 {
  border-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.5);
}
.nxd-ui .border-brand-400\/40 {
  border-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.4);
}
.nxd-ui .bg-white\/12 {
  background-color: rgba(255, 255, 255, 0.12);
}
.nxd-ui .focus\:ring-brand-500\/10:focus {
  --tw-ring-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.1);
}
.nxd-ui .focus\:ring-brand-500\/20:focus {
  --tw-ring-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.2);
}
.nxd-ui .focus-visible\:ring-brand-500\/50:focus-visible {
  --tw-ring-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.5);
}
.nxd-ui .hover\:bg-brand-50\/50:hover {
  background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.04);
}
.nxd-ui .shadow-brand-500\/20 {
  --tw-shadow-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.2);
  --tw-shadow: var(--tw-shadow-colored);
}
.nxd-ui .shadow-brand-500\/25 {
  --tw-shadow-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.25);
  --tw-shadow: var(--tw-shadow-colored);
}
.nxd-ui .shadow-brand-500\/30 {
  --tw-shadow-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.nxd-ui .shadow-app {
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.32);
}
.nxd-ui .shadow-float {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}
.nxd-ui .shadow-glass {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
}
@media (min-width: 768px) {
  .nxd-ui .md\:bg-brand-50\/20 {
    background-color: rgba(var(--nexdirectory-primary-rgb, 255, 94, 20), 0.02);
  }
}
