/* ===== HEADER COMPONENT CSS ===== */

/* ==================== CSS RESET ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header__nav-link .nav-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.header__nav-link .nav-text {
  line-height: 1.1;
}

/* ==================== BASE HEADER COMPONENT ==================== */

.header {
  background: var(--header-bg, var(--bg-card));
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12), 0 0 12px rgba(139, 0, 0, 0.08);
  position: relative;
  z-index: 1000; /* Increased to allow children to stack above other page elements */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 10px;
}

.header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.18), 0 0 25px rgba(139, 0, 0, 0.12);
}

.header__container {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ==================== HEADER CONTENT ==================== */

.header__content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__om {
  font-size: 1.8rem;
  color: var(--primary-maroon);
  line-height: 1;
}

.header__text {
  text-align: center;
}

.header__title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.header__subtitle {
  font-family: var(--font-sans, 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0 0;
  font-style: italic;
}

/* ==================== NAVIGATION ==================== */

.header__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.header__nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Primary navigation - always visible on desktop */
.header__nav-list--primary {
  display: flex;
  flex-wrap: nowrap;
  overflow: visible;
}

/* Secondary navigation - hidden by default, shown in hamburger menu */
.header__nav-list--secondary {
  display: none;
}

/* All nav items list - hidden, used as source for dynamic distribution */
.header__nav-list--all {
  display: none !important;
}

.header__nav-item {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  font-weight: 500;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: color var(--transition-fast);
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-maroon);
  transition: width var(--transition-fast);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* ==================== INTERACTIVE ELEMENTS ==================== */

/* Hamburger menu button - dynamically shown when needed */
.header__mobile-toggle {
  display: flex; /* Controlled by JavaScript */
  background: linear-gradient(135deg, var(--primary-maroon), var(--saffron));
  border: 2px solid var(--border-gold);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 99999 !important;
  width: 45px;
  height: 45px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Prevent shrinking */
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
  transition: box-shadow 0.3s ease; /* Only animate shadow, not transform */
}

.header__mobile-toggle:hover {
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.header__mobile-toggle:active {
  box-shadow: 0 1px 4px rgba(139, 0, 0, 0.3);
}

/* Dark theme hamburger button */
[data-theme="dark"] .header__mobile-toggle {
  background: linear-gradient(135deg, var(--bg-card), var(--primary-maroon));
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] .header__mobile-toggle:hover {
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.header__hamburger {
  width: 24px;
  height: 3px;
  background-color: white;
  position: relative;
  transition: all 0.3s ease;
  display: block;
  border-radius: 2px;
}

.header__hamburger::before,
.header__hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  display: block;
  border-radius: 2px;
}

.header__hamburger::before {
  top: -8px;
}

.header__hamburger::after {
  top: 8px;
}

/* Dark theme hamburger lines */
[data-theme="dark"] .header__hamburger,
[data-theme="dark"] .header__hamburger::before,
[data-theme="dark"] .header__hamburger::after {
  background-color: var(--gold);
}

/* Hamburger animation when active */
.header__nav--active .header__hamburger {
  background-color: transparent;
}

.header__nav--active .header__hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.header__nav--active .header__hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ==================== DECORATIVE HEADER STYLES ==================== */

.header.decorative {
  text-align: center;
  padding: 40px 20px;
  background: var(--header-bg);
  color: var(--text-white);
  border-radius: 15px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--primary-maroon, rgba(139, 0, 0, 0.3));
  animation: headerGlow 3s ease-in-out infinite alternate;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header.decorative::before,
.header.decorative::after {
  content: '❋';
  position: absolute;
  font-size: 100px;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.header.decorative::before {
  top: -20px;
  left: -20px;
  animation-delay: 0s;
}

.header.decorative::after {
  bottom: -20px;
  right: -20px;
  animation-delay: 3s;
}

.header.decorative h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: shimmer 2s ease-in-out infinite;
}

.header.decorative .subtitle {
  font-size: 1.1em;
  opacity: 0.95;
  font-weight: 300;
}

.header.decorative .om-symbol {
  display: inline-block;
  font-size: 1.5em;
  margin: 0 10px;
  animation: pulse 2s ease-in-out infinite;
}

/* ==================== ANIMATIONS ==================== */

@keyframes headerGlow {
  0% { box-shadow: 0 10px 40px rgba(139, 0, 0, 0.3); }
  100% { box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

/* ==================== RESPONSIVE DESIGN ==================== */

/* Desktop and larger screens - hamburger menu for secondary nav */
.header__nav-list--secondary {
  position: absolute;
  top: calc(100% + 8px); /* Position below the header */
  right: 0; /* Align to right edge of nav container */
  width: 240px;
  /* Glassmorphism effect */
  background: rgba(255, 248, 220, 0.7) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(139, 0, 0, 0.2),
    0 2px 8px rgba(255, 153, 51, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(139, 0, 0, 0.1);
  padding: 1.5rem 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transform-origin: top right;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99998 !important;
  isolation: isolate;
  overflow: hidden;
}

/* Show secondary nav when menu is active */
.header__nav--active .header__nav-list--secondary {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Glass shine effect for desktop secondary nav */
.header__nav-list--secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Desktop secondary nav menu items */
.header__nav-list--secondary .header__nav-item {
  position: relative;
  z-index: 2;
  transform: translateX(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.header__nav--active .header__nav-list--secondary .header__nav-item {
  transform: translateX(0);
  opacity: 1;
}

/* Stagger animation for desktop secondary nav */
.header__nav--active .header__nav-list--secondary .header__nav-item:nth-child(1) { transition-delay: 0.1s; }
.header__nav--active .header__nav-list--secondary .header__nav-item:nth-child(2) { transition-delay: 0.15s; }
.header__nav--active .header__nav-list--secondary .header__nav-item:nth-child(3) { transition-delay: 0.2s; }
.header__nav--active .header__nav-list--secondary .header__nav-item:nth-child(4) { transition-delay: 0.25s; }

/* Enhanced menu link styling with glass effect for desktop */
.header__nav-list--secondary .header__nav-link {
  padding: 0.875rem 1.25rem !important;
  border-radius: 12px;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.15);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Shimmer effect on hover for desktop */
.header__nav-list--secondary .header__nav-link::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.3) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.header__nav-list--secondary .header__nav-link:hover::before {
  left: 100%;
}

.header__nav-list--secondary .header__nav-link:hover {
  background: linear-gradient(
    135deg,
    rgba(139, 0, 0, 0.15) 0%,
    rgba(255, 153, 51, 0.15) 100%
  );
  transform: translateX(5px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow:
    0 4px 12px rgba(139, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.header__nav-list--secondary .header__nav-link:hover::after {
  width: 0; /* Disable bottom underline in dropdown menu */
}

.header__nav-list--secondary .header__nav-link:active {
  transform: translateX(3px) scale(0.98);
}

/* Dark theme for desktop secondary nav */
[data-theme="dark"] .header__nav-list--secondary .header__nav-link {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.2);
}

[data-theme="dark"] .header__nav-list--secondary .header__nav-link:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(255, 153, 51, 0.2) 100%
  );
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow:
    0 4px 12px rgba(255, 215, 0, 0.2),
    inset 0 1px 1px rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] .header__nav-list--secondary .header__nav-link::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.4) 50%,
    transparent 100%
  );
}

@media (max-width: 840px) {
  .header__nav {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  /* Hide primary nav on mobile, show all in hamburger */
  .header__nav-list--primary {
    display: none;
  }

  .header__nav-list--secondary {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: rgba(255, 248, 220, 0.7) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 16px;
    box-shadow:
      0 8px 32px rgba(139, 0, 0, 0.2),
      0 2px 8px rgba(255, 153, 51, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.8),
      inset 0 -1px 2px rgba(139, 0, 0, 0.1);
    padding: 1.5rem 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transform-origin: top right;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    flex-direction: column;
    gap: 0.5rem;
    z-index: 99998 !important;
    isolation: isolate;
    overflow: hidden;
  }

  /* Glass shine effect */
  .header__nav-list--secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 100%
    );
    border-radius: 16px 16px 0 0;
    pointer-events: none;
    z-index: 1;
  }

  /* Ensure menu items are above the shine effect */
  .header__nav-list--secondary .header__nav-item {
    position: relative;
    z-index: 2;
  }

  /* Menu item styling */
  .header__nav-list--secondary .header__nav-item {
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }

  .header__nav--active .header__nav-list--secondary .header__nav-item {
    transform: translateX(0);
    opacity: 1;
  }

  /* Stagger animation for menu items */
  .header__nav--active .header__nav-list--secondary .header__nav-item:nth-child(1) { transition-delay: 0.1s; }
  .header__nav--active .header__nav-list--secondary .header__nav-item:nth-child(2) { transition-delay: 0.15s; }
  .header__nav--active .header__nav-list--secondary .header__nav-item:nth-child(3) { transition-delay: 0.2s; }
  .header__nav--active .header__nav-list--secondary .header__nav-item:nth-child(4) { transition-delay: 0.25s; }

  /* Enhanced menu link styling with glass effect */
  .header__nav-list--secondary .header__nav-link {
    padding: 0.875rem 1.25rem !important;
    border-radius: 12px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.15);
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  /* Shimmer effect on hover */
  .header__nav-list--secondary .header__nav-link::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 215, 0, 0.3) 50%,
      transparent 100%
    );
    transition: left 0.5s ease;
  }

  .header__nav-list--secondary .header__nav-link:hover::before {
    left: 100%;
  }

  .header__nav-list--secondary .header__nav-link:hover {
    background: linear-gradient(
      135deg,
      rgba(139, 0, 0, 0.15) 0%,
      rgba(255, 153, 51, 0.15) 100%
    );
    transform: translateX(5px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow:
      0 4px 12px rgba(139, 0, 0, 0.1),
      inset 0 1px 1px rgba(255, 255, 255, 0.5);
  }

  .header__nav-list--secondary .header__nav-link:hover::after {
    width: 0; /* Disable bottom underline in mobile menu */
  }

  .header__nav-list--secondary .header__nav-link:active {
    transform: translateX(3px) scale(0.98);
  }

  /* Dark theme menu link hover */
  [data-theme="dark"] .header__nav-list--secondary .header__nav-link {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
  }

  [data-theme="dark"] .header__nav-list--secondary .header__nav-link:hover {
    background: linear-gradient(
      135deg,
      rgba(255, 215, 0, 0.2) 0%,
      rgba(255, 153, 51, 0.2) 100%
    );
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
      0 4px 12px rgba(255, 215, 0, 0.2),
      inset 0 1px 1px rgba(255, 215, 0, 0.3);
  }

  [data-theme="dark"] .header__nav-list--secondary .header__nav-link::before {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 215, 0, 0.4) 50%,
      transparent 100%
    );
  }

  .menu-open::before {
    content: none; /* Remove background overlay completely */
  }
}

/* ==================== DARK THEME OVERRIDES ==================== */

[data-theme="dark"] .header {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--header-bg) 100%);
  box-shadow: 0 6px 35px rgba(0,0,0,0.6), var(--shadow-lg), var(--card-glow);
  border: 1px solid rgba(255, 215, 0, 0.15);
}

[data-theme="dark"] .header:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 80px rgba(139, 0, 0, 0.6), var(--shadow-xl), var(--hover-glow);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] .header__nav-list--secondary {
  /* Dark glassmorphism effect */
  background: rgba(13, 17, 23, 0.7) !important; /* Dark with transparency */
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(255, 215, 0, 0.4),
    inset 0 1px 2px rgba(255, 215, 0, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

/* Dark theme glass shine effect */
[data-theme="dark"] .theme-toggle {
  /* Dark theme liquid glass background */
  background: linear-gradient(135deg,
    rgba(33, 38, 45, 0.8) 0%,
    rgba(22, 27, 34, 0.9) 25%,
    rgba(13, 17, 23, 0.7) 50%,
    rgba(255, 215, 0, 0.1) 85%,
    rgba(78, 205, 196, 0.08) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  /* Dark theme shadows */
  box-shadow:
    0 8px 25px rgba(0,0,0,0.4),
    0 4px 10px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255, 215, 0, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle::before {
  background: linear-gradient(45deg,
    transparent 25%,
    rgba(255, 215, 0, 0.15) 45%,
    rgba(255, 183, 77, 0.1) 50%,
    rgba(255, 215, 0, 0.15) 55%,
    transparent 75%);
}

[data-theme="dark"] .theme-toggle:hover {
  /* Enhanced dark theme glass effect */
  background: linear-gradient(135deg,
    rgba(33, 38, 45, 0.9) 0%,
    rgba(22, 27, 34, 0.95) 25%,
    rgba(13, 17, 23, 0.9) 50%,
    rgba(255, 215, 0, 0.15) 85%,
    rgba(78, 205, 196, 0.12) 100%);
  /* Enhanced dark theme shadows */
  box-shadow:
    0 12px 35px rgba(0,0,0,0.5),
    0 6px 15px rgba(255, 215, 0, 0.2),
    inset 0 3px 6px rgba(255, 215, 0, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .theme-toggle:hover::before {
  background: linear-gradient(45deg,
    transparent 10%,
    rgba(255, 215, 0, 0.2) 40%,
    rgba(255, 183, 77, 0.15) 50%,
    rgba(255, 215, 0, 0.2) 60%,
    transparent 90%);
}

[data-theme="dark"] .theme-icon {
  text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 0 8px rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] .header__nav-link {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .header__nav-link::after {
  background-color: var(--gold);
}

[data-theme="dark"] .menu-open::before {
  content: none; /* Remove background overlay completely */
}

[data-theme="dark"] .header__title,
[data-theme="dark"] .header__subtitle {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ==================== UTILITY CLASSES ==================== */

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

/* Base theme toggle (light/default state) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,247,230,1) 0%, rgba(255,240,210,1) 100%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 200ms ease;
  position: relative;
  z-index: 1000;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle::before {
  /* subtle glossy highlight */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 200ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.theme-toggle:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

.theme-toggle:focus {
  outline: 3px solid rgba(255, 215, 0, 0.18);
  outline-offset: 2px;
}

.theme-icon {
  position: relative;
  z-index: 2; /* sit above the glossy ::before */
  font-size: 1.05rem;
  color: var(--text-primary, #222);
  display: inline-block;
  line-height: 1;
}

/* Small tweak for better hit target on mobile */
@media (max-width: 480px) {
  .theme-toggle { width: 48px; height: 48px; }
}

