/* ============================================
   CULTURESHERPA COMPONENT LIBRARY
   ============================================
   Video-game-inspired glassmorphism components
   Built on culturesherpa-tokens.css
   ============================================ */

/* ============================================
   HERO COMPONENTS
   ============================================ */

/* Compact Hero - Reduced vertical space */
.hero-compact {
  padding: var(--space-4) 0;
  /* tighter to reduce vertical bloat */
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-background);
}

.hero-compact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.hero-compact-text {
  flex: 1;
}

.hero-compact-text .heading-1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.hero-compact-subtitle {
  font-size: var(--text-base);
  color: var(--color-neutral-300);
  line-height: var(--leading-normal);
  max-width: 600px;
}

.hero-compact-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.shortcut-hint {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  border: 1px solid var(--glass-border);
  background: var(--glass-background);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-base);
}

@media (width <=968px) {
  .hero-compact-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-compact-text {
    max-width: 100%;
  }

  .hero-compact-subtitle {
    margin: 0 auto;
  }

  .hero-compact-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   SLIM STATS ROW
   ============================================ */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.stat-item {
  display: grid;
  grid-template-rows: auto auto;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--glass-border);
  background: var(--glass-background);
  border-radius: var(--radius-md);
}

.stat-value {
  font-weight: var(--font-semibold);
  color: var(--color-neutral-100);
  line-height: var(--leading-snug);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
}

/* ============================================
   ACCESSIBLE LINK STYLES
   ============================================ */
a {
  color: var(--color-info);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-info);
  filter: brightness(1.1);
}

/* ============================================
   METRICS BANNER
   ============================================ */
.metrics-banner {
  padding: var(--space-8) 0;
  background: linear-gradient(180deg, var(--glass-background) 0%, transparent 100%);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.metric-card {
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--duration-base) var(--ease-out);
}

.metric-card:hover {
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow-glass-md);
  transform: translateY(-2px);
}

.metric-primary {
  background: var(--gradient-primary);
  border-color: var(--color-primary-400);
  box-shadow: var(--glow-primary);
}

.metric-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: 1;
  color: var(--color-neutral-50);
  margin-bottom: var(--space-2);
}

.metric-primary .metric-value {
  color: white;
}

.metric-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-300);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.metric-primary .metric-label {
  color: var(--color-primary-100);
}

.metric-context {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  line-height: var(--leading-snug);
}

.metric-primary .metric-context {
  color: var(--color-primary-200);
}

@media (width <=768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-value {
    font-size: var(--text-3xl);
  }
}

/* ============================================
   SECTION LAYOUTS
   ============================================ */
.section-organizations {
  padding: var(--space-12) 0;
}

.section-map {
  padding: var(--space-12) 0;
  background: var(--glass-background);
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-header .heading-2 {
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-lg);

  /* Increased contrast for accessibility */
  color: var(--color-neutral-200);
  max-width: 600px;
}

/* ============================================
   INSIGHTS LAYOUT
   ============================================ */
.insights-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: var(--space-6);
  align-items: start;
}

.insights-card {
  background: var(--card-bg-default);
  border: 1px solid var(--card-border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.insights-list {
  display: grid;
  gap: var(--space-3);
  color: var(--color-neutral-200);
  /* improve paragraph contrast */
}

.insights-list strong {
  color: var(--color-neutral-100);
}

@media (width <=968px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COMMAND PALETTE
   ============================================ */

/* Ensure JSON data scripts are never visible */
script[type="application/json"] {
  display: none !important;
}

/* CRITICAL: [hidden] must win over display property */
.cmdk-overlay[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 62%);
  display: none;
  /* hidden by default - only show when .is-open */
  place-items: start center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  /* Additional hide mechanism */
  transition: opacity .16s ease-out, visibility 0s .16s;
}

.cmdk-overlay.is-open {
  display: grid;
  /* only show when open */
  z-index: 9999;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .16s ease-out, z-index 0s 0s, visibility 0s 0s;
}

html.cmdk-open,
body.cmdk-open {
  overflow: hidden !important;
  touch-action: none !important;
  pointer-events: auto !important;
  /* Ensure body stays interactive except for scroll */
}

/* Generic overlay-open fallback used by overlay manager when no specific class provided */
html.overlay-open,
body.overlay-open {
  overflow: hidden !important;
  touch-action: none !important;
}

.cmdk-panel {
  width: min(720px, 92vw);
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass-lg), 0 0 0 1px rgb(255 255 255 / 4%);
  position: relative;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .18s var(--ease-out), opacity .18s var(--ease-out);
}

.cmdk-overlay.is-open .cmdk-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cmdk-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 0;
  outline: none;
  background: transparent;
  color: var(--color-neutral-50);
  font-size: var(--text-lg);
}

.cmdk-results {
  max-height: 50vh;
  overflow: auto;
  border-top: 1px solid var(--glass-border);
}

.cmdk-item {
  padding: var(--space-3) var(--space-5);
  display: grid;
  gap: var(--space-1);
  cursor: pointer;
  border-bottom: 1px solid var(--glass-border);
}

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

.cmdk-item.is-active {
  background: var(--glass-background-hover);
}

.cmdk-title {
  color: var(--color-neutral-100);
  font-weight: var(--font-semibold);
}

.cmdk-meta {
  color: var(--color-neutral-400);
  font-size: var(--text-sm);
}

.cmdk-empty {
  padding: var(--space-4) var(--space-5);
  color: var(--color-neutral-400);
}

.cmdk-footer {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  border-top: 1px solid var(--glass-border);
}

/* Close button for command palette */
.cmdk-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: var(--glass-background);
  color: var(--color-neutral-300);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.cmdk-close:hover {
  background: var(--glass-background-hover);
  color: var(--color-neutral-100);
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow-glass-sm);
}

/* ============================================
   FORM PLACEHOLDER CONTRAST
   ============================================ */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
  /* ensure consistent contrast across browsers */
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
[data-theme="light"] select::placeholder {
  color: var(--input-placeholder);
}

/* ============================================
   COMPARE SELECTION UI
   ============================================ */
.card-link.is-selected {
  outline: 2px solid var(--color-secondary-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(6 182 212 / 20%);
}

.compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: var(--z-sticky);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--duration-base) var(--ease-out);
}

.compare-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.compare-bar-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: min(720px, 92vw);
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-glass-md);
}

.compare-count {
  color: var(--color-neutral-200);
  font-weight: var(--font-medium);
}

.compare-actions {
  display: flex;
  gap: var(--space-2);
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn-secondary {
  background: var(--glass-background-strong);
  border: 1px solid var(--glass-border-strong);
  color: var(--color-neutral-100);
}

.btn-secondary:hover {
  background: var(--glass-background-hover);
  border-color: var(--color-secondary-400);
  box-shadow: var(--glow-secondary);
}

.chip-state:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-secondary);
}

.cmdk-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
  backdrop-filter: blur(8px);
  color: var(--color-neutral-300);
  font-size: var(--text-base);
  line-height: var(--line-height-tight);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.cmdk-close:hover,
.cmdk-close:focus-visible {
  background: linear-gradient(180deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 4%));
  color: var(--color-neutral-50);
  border-color: var(--glass-border-strong);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 6%), var(--shadow-glass-sm);
  outline: none;
}

.cmdk-close:active {
  transform: scale(.94);
}

@media (width <=600px) {
  .cmdk-panel {
    width: 94vw;
  }

  .cmdk-close {
    top: 4px;
    right: 4px;
  }
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass-lg), var(--glow-secondary);
}

.btn-ghost {
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-md));
  backdrop-filter: blur(var(--blur-md));
  color: white;
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--glass-background-hover);
  border-color: var(--glass-border-strong);
  transform: translateY(-2px);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.card {
  background: var(--card-bg-default);
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--card-border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--card-shadow-default);
  transition: all var(--duration-base) var(--ease-out);
}

.card:hover {
  background: var(--glass-background-hover);
  border-color: var(--card-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card-header {
  margin-bottom: var(--space-6);
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-neutral-50);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--text-base);
  color: var(--color-neutral-300);
}

.card-body {
  margin-bottom: var(--space-6);
}

.card-body p {
  line-height: var(--leading-relaxed);
  color: var(--color-neutral-200);
  margin-bottom: var(--space-4);
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card-footer {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.card-interactive {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-interactive:hover .card-title {
  color: var(--color-primary-300);
}

/* ============================================
   ORGANIZATION CARD VARIANT
   ============================================ */
.org-card {
  background: var(--card-bg-default);
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--card-border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow-default);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.org-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover), var(--glow-secondary);
  border-color: var(--color-secondary-400);
}

/* Artwork background layer */
.org-card-artwork {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity var(--duration-base) var(--ease-out);

  /* Show LQIP immediately for fast perceived performance */
  background-image: var(--card-lqip, none);
  background-size: cover;
  background-position: center;
}

.org-card:hover .org-card-artwork {
  opacity: 1;
}

.org-card-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.org-card-artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgb(10 10 15 / 20%) 0%,
      rgb(10 10 15 / 85%) 60%,
      rgb(10 10 15 / 98%) 100%);
  pointer-events: none;
}

.org-card-header {
  padding: var(--space-4);
  position: relative;
  z-index: 1;

  /* Use a neutral background to avoid blue-on-blue contrast issues */
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
}

.org-card-logo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-4);
  position: relative;
}

.org-logo-img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  display: none;
  background: transparent;
}

.org-card-logo-wrap.has-logo .org-logo-img {
  display: block;
}

.org-card-logo-wrap.has-logo .org-logo-circle {
  display: none;
}

.org-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-glass-lg), var(--glow-primary);
}

.org-logo-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: var(--space-2);
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-md));
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass-md);
}

/* When a brand color is known and the logo has loaded, softly accent the frame */
.org-logo-wrap.has-logo {
  border-color: var(--brand-primary, var(--glass-border));
  box-shadow: var(--shadow-glass-md), 0 0 0 2px color-mix(in srgb, var(--color-primary-500, #14b8a6) 30%, transparent);
}

.org-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.org-initials {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: white;
  text-transform: uppercase;
}

.search-box {
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-md));
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: white;
  font-size: var(--text-base);
  transition: var(--transition-base);
}

.search-input::placeholder {
  color: var(--input-placeholder);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgb(126 34 206 / 10%);
}

.org-card-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-neutral-50);
  margin-bottom: var(--space-2);
}

.org-card-category {
  font-size: var(--text-sm);
  color: var(--color-secondary-300);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.org-card-body {
  padding: var(--space-6);
  position: relative;
  z-index: 1;
}

.org-card-description {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-neutral-300);
  margin-bottom: var(--space-6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.org-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgb(0 0 0 / 20%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.org-card-stat {
  text-align: center;
}

.org-card-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-primary-300);
  display: block;
}

.org-card-stat-label {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.org-card-footer {
  padding: var(--space-6);
  padding-top: 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   ART GALLERY CARDS
   ============================================ */
.art-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.art-card.is-hidden {
  display: none;
}

.art-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-neutral-900);
  border: 1px solid var(--card-border-default);
  box-shadow: var(--card-shadow-default);
}

.art-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback: synthesized brand motif with subtle noise */
.art-tile .art-fallback {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 10% 10%, color-mix(in srgb, var(--color-primary-500, #14b8a6) 30%, #111) 0%, #0a0a0a 60%, #000 100%);
  filter: contrast(1.05) saturate(0.9);
}

/* Glow aura to convey emphasis while staying refined */
.art-tile .art-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(80% 80% at 50% 50%, color-mix(in srgb, var(--color-secondary-500, #f97316) 35%, transparent) 0%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ============================================
   GALLERY FILTER CHIPS
   ============================================ */
.filter-section {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.filter-group {
  margin-bottom: var(--space-6);
}

.filter-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-300);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-chip {
  padding: var(--space-2) var(--space-4);
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--color-neutral-300);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-chip:hover {
  background: var(--glass-background-strong);
  border-color: var(--color-secondary-400);
  color: var(--color-secondary-300);
}

.filter-chip.active {
  background: var(--color-secondary-600);
  border-color: var(--color-secondary-500);
  color: white;
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-secondary-500) 40%, transparent);
}

.filter-chip:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* ============================================
   MAP ARTWORK PINS
   ============================================ */
.artwork-pin {
  border-radius: 50%;
  box-shadow:
    0 2px 8px rgb(0 0 0 / 40%),
    0 0 16px color-mix(in srgb, var(--color-secondary-500) 30%, transparent);
  transition: all var(--duration-fast) var(--ease-out);
}

.leaflet-marker-icon.artwork-pin:hover {
  transform: scale(1.15);
  box-shadow:
    0 4px 12px rgb(0 0 0 / 50%),
    0 0 24px color-mix(in srgb, var(--color-secondary-400) 50%, transparent);
}

/* ============================================
   ORG DETAIL HERO ARTWORK
   ============================================ */
.org-hero-artwork {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  background-color: var(--color-neutral-900);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-12);
}

.org-hero-artwork-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
}

/* Parallax effect on scroll */
.org-hero-artwork[data-parallax] .org-hero-artwork-img {
  transform: translateY(0);
  transition: transform 0.1s linear;
}

.org-hero-artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgb(10 10 15 / 10%) 0%,
      rgb(10 10 15 / 70%) 50%,
      rgb(10 10 15 / 95%) 100%);
  z-index: 1;
}

.org-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.org-hero-badge-wrap {
  margin-bottom: var(--space-4);
}

.badge-glass {
  background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 20%);
  color: white;
}

.org-hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-3);
  text-shadow: 0 4px 12px rgb(0 0 0 / 50%);
  line-height: var(--leading-tight);
}

.org-hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-neutral-200);
  text-shadow: 0 2px 8px rgb(0 0 0 / 40%);
}

@media (width <=768px) {
  .org-hero-artwork {
    height: 50vh;
    min-height: 300px;
  }

  .org-hero-title {
    font-size: var(--text-3xl);
  }

  .org-hero-subtitle {
    font-size: var(--text-lg);
  }
}

/* ============================================
   HOMEPAGE HERO ARTWORK ROTATION
   ============================================ */
.hero-artwork-rotation {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  background: var(--color-neutral-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-artwork-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-artwork-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-artwork-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-artwork-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgb(10 10 15 / 40%) 0%,
      rgb(10 10 15 / 70%) 50%,
      rgb(10 10 15 / 90%) 100%);
}

.hero-artwork-slide-label {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 2;
}

.hero-artwork-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-artwork-title {
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  text-shadow: 0 4px 16px rgb(0 0 0 / 80%);
  line-height: var(--leading-tight);
}

.hero-artwork-subtitle {
  font-size: var(--text-2xl);
  color: var(--color-neutral-200);
  margin-bottom: var(--space-8);
  text-shadow: 0 2px 8px rgb(0 0 0 / 60%);
}

.hero-artwork-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (width <=768px) {
  .hero-artwork-rotation {
    height: 60vh;
    min-height: 400px;
  }

  .hero-artwork-title {
    font-size: var(--text-4xl);
  }

  .hero-artwork-subtitle {
    font-size: var(--text-lg);
  }

  .hero-artwork-actions {
    flex-direction: column;
  }
}


.art-tile .art-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 45%) 50%, rgb(0 0 0 / 65%) 100%);
}

.art-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-neutral-50);
}

.art-meta {
  font-size: var(--text-xs);
  color: var(--color-neutral-300);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ============================================
   NAVIGATION COMPONENT
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--glass-background-strong);
  backdrop-filter: blur(var(--blur-lg));
  backdrop-filter: blur(var(--blur-lg));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass-md);
}

.navbar-container {
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-neutral-50);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.navbar-brand:hover {
  color: var(--color-primary-300);
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.navbar-menu {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  list-style: none;
}

.navbar-search-item {
  margin-left: var(--space-2);
  margin-right: var(--space-2);
}

.navbar-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-neutral-200);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar-link:hover {
  color: var(--color-primary-300);
  background: var(--glass-background);
}

.navbar-link-active {
  color: var(--color-primary-300);
  background: var(--glass-background);
}

.navbar-toggle {
  display: none;
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-neutral-50);
}

@media (width <=768px) {
  .navbar-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--glass-background-strong);
    backdrop-filter: blur(var(--blur-lg));
    backdrop-filter: blur(var(--blur-lg));
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    z-index: var(--z-dropdown);
    transition: all var(--duration-base) var(--ease-out);
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-link {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (width <=768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CONTAINER & SECTION
   ============================================ */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--content-width-narrow);
}

.container-wide {
  max-width: var(--content-width-wide);
}

.section {
  padding: var(--space-10) 0;
}

.section-sm {
  padding: var(--space-6) 0;
}

.section-lg {
  padding: var(--space-12) 0;
}

/* ============================================
   FORM CONTROLS (ACCESSIBLE, THEMED)
   ============================================ */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea,
.input,
.select,
.textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--glass-background);
  color: var(--color-neutral-50);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--glass-border-strong);
  box-shadow: 0 0 0 3px rgb(6 182 212 / 18%);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  color: var(--color-neutral-50);
  background: rgb(255 255 255 / 80%);
  border-color: var(--glass-border);
}

.dropdown,
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-neutral-300) 50%), linear-gradient(135deg, var(--color-neutral-300) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ============================================
   MAP CONTAINER
   ============================================ */
.map-container {
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-md));
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass-lg);
  height: 600px;
  position: relative;
}

.map-overlay {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: var(--z-dropdown);
  background: var(--glass-background-strong);
  backdrop-filter: blur(var(--blur-lg));
  backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-glass-md);
}

.map-overlay-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-neutral-50);
  margin-bottom: var(--space-2);
}

.map-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-neutral-200);
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
}

/* Legend dot color variants */
.dot-primary {
  background-color: var(--color-primary-400);
}

.dot-secondary {
  background-color: var(--color-secondary-400);
}

.dot-accent {
  background-color: var(--color-accent-400);
}

/* Map canvas fills container */
.map-canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
}

@media (width <=768px) {
  .map-container {
    height: 400px;
  }

  .map-overlay {
    font-size: var(--text-sm);
  }
}

/* ============================================
   BADGE & PILL
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  color: var(--color-neutral-200);
}

.badge-primary {
  background: var(--color-primary-500);
  color: white;
  border-color: var(--color-primary-600);
}

.badge-secondary {
  background: var(--color-secondary-500);
  color: white;
  border-color: var(--color-secondary-600);
}

.badge-success {
  background: var(--badge-success-bg);
  border: 1px solid var(--badge-success-border);
  color: var(--badge-success-text);
}

.badge-warning {
  background: var(--badge-warning-bg);
  border: 1px solid var(--badge-warning-border);
  color: var(--badge-warning-text);
}

.badge-error {
  background: var(--badge-error-bg);
  border: 1px solid var(--badge-error-border);
  color: var(--badge-error-text);
}

/* ============================================
   LINK STYLES
   ============================================ */
.link {
  color: var(--color-secondary-300);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color var(--duration-fast) var(--ease-out);
}

.link:hover {
  color: var(--color-secondary-200);
  text-decoration: underline;
}

.link-primary {
  color: var(--color-primary-300);
}

.link-primary:hover {
  color: var(--color-primary-200);
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.heading-1 {
  /* Responsive clamp to avoid oversized headings on small screens */
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.heading-2 {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

.heading-3 {
  font-size: clamp(1.125rem, 0.95rem + 0.9vw, 1.5rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
}

.heading-4 {
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

/* ============================================
   UTILITIES (spacing, alignment, layout)
   ============================================ */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--space-1);
}

/* Footer styling */
.site-footer {
  background: var(--glass-background-strong);
  backdrop-filter: blur(var(--blur-lg));
  backdrop-filter: blur(var(--blur-lg));
  border-top: 1px solid var(--glass-border);
  padding: var(--space-12) 0;
}

.footer-wrap {
  text-align: center;
}

/* Branded hero wrapper using per-organization color variable */
.hero-brand {
  background:
    radial-gradient(1200px 600px at 10% 0%, color-mix(in oklab, var(--brand-primary, var(--color-primary-600)) 40%, transparent), transparent 70%),
    radial-gradient(1000px 500px at 90% 10%, color-mix(in oklab, var(--brand-primary, var(--color-primary-600)) 25%, transparent), transparent 70%),
    var(--glass-background);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-glass-lg);
}

/* Brand accents */
.brand-ring {
  border: 2px solid color-mix(in oklab, var(--brand-primary, var(--color-primary-500)) 75%, white 25%);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--brand-primary, var(--color-primary-500)) 20%, transparent), var(--shadow-glass-md);
}

.badge-brand {
  background: color-mix(in oklab, var(--brand-primary, var(--color-primary-500)) 35%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand-primary, var(--color-primary-500)) 50%, white 10%);
}

.badge-brand-outline {
  border: 1px solid color-mix(in oklab, var(--brand-primary, var(--color-primary-500)) 50%, white 10%);
}

.btn-brand {
  background: var(--brand-primary, var(--color-primary-500));
  border: 1px solid color-mix(in oklab, var(--brand-primary, var(--color-primary-500)) 80%, white 10%);
}

.btn-brand:hover {
  filter: brightness(1.05);
}

/* Optional softer variant for cards referenced in org page */
.card-glass {
  background: var(--card-bg-glass);
  border: 1px solid var(--card-border-default);
}

/* Section variant with glass background */
.section-glass {
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-md));
  backdrop-filter: blur(var(--blur-md));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* Stats block */
.stat-emoji {
  font-size: var(--text-3xl);
}

.stat-label {
  color: var(--color-neutral-300);
}

.card-center {
  text-align: center;
}

/* Map popup content */
.map-popup .popup-title {
  margin: 0 0 8px;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
}

.map-popup .popup-text {
  margin: 4px 0;
  font-size: var(--text-sm);
}

.map-popup .popup-link {
  color: var(--color-primary-500);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

/* Marker clusters */
.marker-cluster {
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgb(126 34 206 / 40%);
  border: 2px solid rgb(255 255 255 / 30%);
}

.marker-cluster-small {
  width: 30px;
  height: 30px;
}

.marker-cluster-medium {
  width: 40px;
  height: 40px;
}

.marker-cluster-large {
  width: 50px;
  height: 50px;
}

.marker-cluster-count {
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

.map-popup .popup-link:hover {
  text-decoration: underline;
}

/* Marker dot */
.custom-marker .marker-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
}

.body-large {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.body-base {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.body-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* ============================================
   LOADING & SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg,
      var(--glass-background) 0%,
      var(--glass-background-hover) 50%,
      var(--glass-background) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--color-primary-400);
  border-radius: var(--radius-full);
  animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   SITE LIST
   ============================================ */
.site-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.site-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6);
}

.site-list-content {
  flex: 1;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge-primary {
  background: var(--gradient-primary);
  color: white;
}

.badge-secondary {
  background: var(--gradient-secondary);
  color: white;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--glass-border-strong);
  color: var(--color-neutral-200);
}

.badge-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.badge-state {
  background: var(--gradient-primary);
  color: white;
}

.badge-sites {
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  color: var(--color-cyan-400);
}

.badge-pending {
  /* Updated to professional healthcare accent palette */
  background: var(--badge-warning-bg);
  border: 1px solid var(--badge-warning-border);
  color: var(--badge-warning-text);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.footer-link {
  color: var(--color-primary-400);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--color-primary-300);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-600);
  color: white;
  padding: var(--space-2) var(--space-4);
  z-index: 100;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-4);
  left: var(--space-4);
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .card,
  .btn {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .glass-surface,
  .glass-surface-strong,
  .card,
  .org-card {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

/* Text color utilities for CSP-safe styling (replaces inline style attributes) */
.text-neutral-200 {
  color: var(--color-neutral-200);
}

.text-neutral-300 {
  color: var(--color-neutral-300);
}

.text-neutral-400 {
  color: var(--color-neutral-400);
}

.text-neutral-500 {
  color: var(--color-neutral-500);
}

/* ============================================
   STAT BLOCK COMPONENTS
   ============================================ */
.stat-block {
  text-align: center;
}

.stat-value {
  display: block;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--neutral-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badge size variants */
.badge-lg {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

/* Gradient text utilities */
.text-gradient-primary {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: var(--gradient-secondary);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Color utilities */
.text-primary-300 {
  color: var(--primary-300);
}

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

.text-secondary-300 {
  color: var(--secondary-300);
}

.text-secondary-400 {
  color: var(--secondary-400);
}

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

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

.text-neutral-200 {
  color: var(--neutral-200);
}

.text-neutral-300 {
  color: var(--neutral-300);
}

/* Spacing utilities */
.space-y-2>*+* {
  margin-top: 0.5rem;
}

.space-y-3>*+* {
  margin-top: 0.75rem;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

/* Flex utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

/* Rounded utilities */
.rounded {
  border-radius: var(--radius-sm);
}

.rounded-full {
  border-radius: 9999px;
}

/* Width/Height utilities */
.w-2 {
  width: 0.5rem;
}

.h-2 {
  height: 0.5rem;
}

/* Font utilities */
.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.text-4xl {
  font-size: var(--text-4xl);
}

/* Leading utilities */
.leading-relaxed {
  line-height: var(--line-height-relaxed);
}

/* Margin/Padding utilities */
.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

/* Background utilities with alpha */
.bg-gradient-to-br {
  background: linear-gradient(to bottom right, var(--from), var(--to));
}
