:root {
  --font-main: "Spectral", serif;
  --text-color: #e0e0e0;
  --ribbon-bg: rgba(5, 10, 15, 0.6); /* Slightly darker for contrast */
  
  /* UPDATED THEME COLORS */
  --color-earth: #81C784; /* Softer Earth Green */
  --color-fire: #E57373;  /* Softer Fire Red */
  --color-water: #64B5F6; /* Softer Water Blue */
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-main);
  background: #000;
  color: var(--text-color);
  overflow-x: hidden;
  /* Fix for sticky footer on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- VISUAL POLISH --- */
::selection {
  background: rgba(255, 215, 0, 0.3); /* Gold selection background */
  color: #fff;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050508; 
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFD700; /* Gold on hover */
}

/* --- BACKGROUNDS (Naturally Dark & Atmospheric) --- */
.space-bg {
  position: fixed;
  top: -20%; left: 0;
  width: 100%; height: 140%; /* Taller to allow parallax movement */
  background:
    radial-gradient(ellipse at 50% 40%, rgba(6, 8, 12, 0.42) 0%, rgba(2, 3, 5, 0.78) 100%),
    linear-gradient(180deg, rgba(3, 4, 7, 0.38) 0%, rgba(2, 3, 5, 0.72) 100%),
    url("images/universe.webp") center/cover no-repeat;
  z-index: -10; /* Pushed further back */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden; /* Improves scroll/parallax performance */
}

/* Page Specific Backgrounds - Art-directed Atmospheric Overlays */
.space-bg.bg-poems {
  background-image:
    radial-gradient(ellipse at center, rgba(15, 6, 10, 0.45) 0%, rgba(6, 3, 6, 0.80) 100%),
    linear-gradient(180deg, rgba(10, 4, 7, 0.40) 0%, rgba(4, 2, 4, 0.75) 100%),
    url("images/universe.webp");
}
.space-bg.bg-essays {
  background-image:
    radial-gradient(ellipse at center, rgba(4, 12, 8, 0.45) 0%, rgba(2, 6, 4, 0.80) 100%),
    linear-gradient(180deg, rgba(3, 8, 5, 0.40) 0%, rgba(2, 5, 3, 0.75) 100%),
    url("images/universe.webp");
}
.space-bg.bg-fiction {
  background-image:
    radial-gradient(ellipse at center, rgba(6, 10, 20, 0.45) 0%, rgba(2, 4, 10, 0.80) 100%),
    linear-gradient(180deg, rgba(4, 6, 14, 0.40) 0%, rgba(2, 3, 8, 0.75) 100%),
    url("images/universe.webp");
}
.space-bg.bg-about {
  background-image:
    radial-gradient(ellipse at center, rgba(12, 10, 8, 0.45) 0%, rgba(5, 4, 3, 0.80) 100%),
    linear-gradient(180deg, rgba(8, 6, 4, 0.40) 0%, rgba(4, 3, 2, 0.75) 100%),
    url("images/universe.webp");
}

/* =========================================
   PLANET: JUPITER (Brand Signature)
   ========================================= */
.planet {
  position: fixed;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: -1; /* Behind content, in front of background */
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint;
}

.jupiter { 
  background-image: url("images/jupiter.png"); 
}

/* Universal Celestial Clock Jupiter (Direction A - All Desktop Pages) */
@media (min-width: 901px) {
  .planet.jupiter {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 450px !important;
    height: 450px !important;
    opacity: 0; /* Fallback hidden before synchronous inline position calculation */
    pointer-events: none !important;
    z-index: -1 !important;
    transform-origin: center center !important;
    will-change: transform;
  }
}

@keyframes jupiterStationaryDrift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(8px, 12px, 0) rotate(6deg); }
  100% { transform: translate3d(15px, 22px, 0) rotate(12deg); }
}

/* =========================================
   RIBBON: CONCEPT C (Dual-Tier Masthead)
   ========================================= */
.ribbon {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4.5rem);
  max-width: 1380px;
  background: rgba(6, 10, 15, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 16px;
  z-index: 1000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 215, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

/* Tier 1: The Publication Masthead */
.masthead-tier {
  width: 100%;
  height: calc(60px - (12px * var(--scroll-progress, 0)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  will-change: height;
}

.tier-left, .tier-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.tier-left { justify-content: flex-start; }
.tier-right { justify-content: flex-end; }

/* Centered Masthead Brand */
.tier-center.nav-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-center.nav-logo a {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  text-decoration: none;
}

.tier-center.nav-logo img {
  height: calc(46px - (8px * var(--scroll-progress, 0)));
  width: calc(46px - (8px * var(--scroll-progress, 0)));
  max-width: 46px;
  max-height: 46px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: height, width;
}

.tier-center.nav-logo:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.55));
}

.masthead-brand {
  font-family: var(--font-main);
  font-size: calc(1.05rem - (0.15rem * var(--scroll-progress, 0)));
  font-weight: 600;
  letter-spacing: calc(0.36em - (0.04em * var(--scroll-progress, 0)));
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  will-change: font-size, letter-spacing;
}

.tier-center.nav-logo:hover .masthead-brand {
  color: #FFD700;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.55);
}

/* Tier 2: The Editorial Directory */
.directory-tier {
  width: 100%;
  height: calc(30px - (4px * var(--scroll-progress, 0)));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(4, 6, 10, 0.45);
  will-change: height;
}

.directory-tier a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.directory-tier a:hover {
  color: #FFD700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
}

.directory-tier a.active {
  color: #FFD700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7) !important;
}

.tier-dot {
  color: rgba(255, 215, 0, 0.35);
  font-size: 0.8rem;
  user-select: none;
}

/* Home Icon */
.tier-left .home-icon {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.tier-left .home-icon:hover, .tier-left .home-icon.active {
  color: #FFD700 !important;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.7) !important;
}

/* Sign In Button in Masthead */
.tier-right .subscribe-btn,
.tier-right .sign-in-btn,
.subscribe-btn, .sign-in-btn {
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.55);
  color: #FFD700 !important;
  padding: 0.35rem 1.3rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .tier-right .subscribe-btn:hover,
  .tier-right .sign-in-btn:hover,
  .subscribe-btn:hover, 
  .sign-in-btn:hover {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
    text-shadow: none !important;
  }
}

/* Scrolled Compression for Concept C */
.ribbon.scrolled {
  top: 10px;
  background: rgba(5, 8, 12, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 215, 0, 0.32) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 215, 0, 0.12) !important;
}
.ribbon.scrolled .masthead-tier {
  height: 48px;
}
.ribbon.scrolled .tier-center.nav-logo img {
  height: 38px;
  width: 38px;
  max-width: 38px;
  max-height: 38px;
}
.ribbon.scrolled .masthead-brand {
  font-size: 0.90rem;
  letter-spacing: 0.32em;
}
.ribbon.scrolled .directory-tier {
  height: 26px;
}

/* Mobile Elements - Hidden on Desktop */
.menu-toggle, .mobile-home-icon, .mobile-nav-overlay, .mobile-jump-strip { display: none; }

@media (min-width: 901px) {
    .mobile-nav-overlay { display: none !important; }
}

.mobile-home-icon.active {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* --- HERO SECTION --- */
.hero {
  min-height: min(85vh, 720px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 115px 2rem 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: floatHero 7s ease-in-out infinite;
  will-change: transform;
}

.hero-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FFD700;
  margin-bottom: 0.65rem;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.85rem); 
  color: #ffffff;
  text-shadow: 0 2px 25px rgba(255, 255, 255, 0.22);
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 0.5rem; 
  font-weight: 400;
}

.hero-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

@keyframes floatHero {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* DIGNIFIED HERO EMBLEM */
.hero-emblem, .spinning-logo { 
  width: 125px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 20px rgba(247, 224, 139, 0.25));
  will-change: transform;
}

/* Scroll indicator to anchor the hero and lead the reader */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.65;
  pointer-events: none;
}
.hero-scroll-indicator .scroll-prompt {
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.8), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* Section divider ornament */
.section-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 360px;
  margin: 1rem auto 0;
  opacity: 0.55;
  position: relative;
  z-index: 2;
}
.section-divider-ornament::before,
.section-divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.45), transparent);
}
.section-divider-ornament span {
  color: #FFD700;
  font-size: 0.85rem;
}

/* Hero emblem mobile size & continuous floating motion */
@media (max-width: 900px) {
  .hero-content {
    animation: floatHero 6s ease-in-out infinite !important;
  }
  .hero-emblem, .spinning-logo {
    width: 105px !important;
    height: auto;
  }
}

/* --- QUOTE --- */
.about {
  min-height: auto;
  display: flex; justify-content: center; align-items: center;
  padding: 3.5rem 12vw 4rem; text-align: center;
  position: relative;
  z-index: 2; /* Above planets if they cross */
}

@keyframes quoteGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.2); }
  50% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 255, 255, 0.4); }
}

.quote-text { 
    font-size: clamp(1.02rem, 1.4vw, 1.35rem); 
    font-style: italic; 
    line-height: 1.75; 
    color: #f0f0f0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.03em;
    max-width: 820px;
    margin: 0 auto;
}

/* Disable quote glow animation on mobile to reduce lag */
@media (max-width: 900px) {
  .quote-text {
    animation: none !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
    font-size: 0.92rem !important; /* Smaller quote on mobile */
  }
  .hero h1 { 
    font-size: 1.75rem !important; /* Smaller title on mobile */
  }
}
.highlight { color: #fff; font-weight: 600; text-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }

/* --- LIBRARY CARDS --- */
.library { min-height: auto; padding: 2.5rem 2rem 5rem; display: flex; justify-content: center; position: relative; z-index: 5; }

/* Theme Borders & Colors */
/* Note: Specific theme borders are now handled by .solid-glass.theme-name */

/* --- MUSEUM DISPLAY --- */
.museum-display {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.2rem;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 2rem 2rem;
  align-items: center;
  min-height: auto;
}

.museum-menu {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: flex-start;
  padding-left: 1.5rem;
}

.museum-item {
  cursor: pointer;
  position: relative;
  padding-left: 2.5rem;
  transition: color 0.4s ease;
  text-decoration: none;
  display: block;
}

.museum-item h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.4s ease;
}

.museum-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 2px;
  background: rgba(255, 215, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: width, box-shadow;
}

.museum-item.active h2 {
  color: #fff;
}

.museum-item.active::before {
  width: 32px;
  background: #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

@media (hover: hover) {
  .museum-item:hover h2 { 
    color: #fff; 
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2); /* Negligible glow */
  }
  .museum-item:hover::before { width: 32px; background: #FFD700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
}

.museum-stage {
  align-self: center;
  margin-top: 1rem;
}

.stage-content {
  padding: 2rem 2.2rem;
  min-height: 230px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, border-color 0.5s ease, box-shadow 0.5s ease;
  text-decoration: none;
  cursor: pointer;
}

.stage-content.stage-fade-out #stage-label,
.stage-content.stage-fade-out #stage-quote,
.stage-content.stage-fade-out .stage-enter-pill {
  opacity: 0;
  transform: translateY(10px);
}

#stage-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: #FFD700;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.4s ease;
}

#stage-quote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: #e0e0e0;
  text-shadow: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: justify;
}

.stage-enter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFD700;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 0.4rem;
  font-family: var(--font-main);
}

/* Museum Stage Card Hover */
.stage-content:hover {
    border-color: rgba(255, 215, 0, 0.7) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 215, 0, 0.25) !important;
    transform: translateY(-3px);
}

.stage-content:hover .stage-enter-pill {
    opacity: 1;
    transform: translateX(4px);
}

.museum-mobile-content {
  display: none;
}

/* =========================================
   SHOWCASE GALLERY
   ========================================= */
.showcase-container {
    max-width: 1000px;
    margin: 0rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 4.5rem; /* Generous breathing room between category sections */
}

.showcase-category {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-heading {
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.32em;
    color: #FFD700; 
    text-transform: uppercase;
    margin-bottom: 2.4rem !important;
    font-weight: 500;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

/* 3 Columns for Prose */
.prose-grid {
    grid-template-columns: 0.85fr 1fr;
    align-items: center;
}

.prose-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 3 Columns for Verse (Matching Prose Layout) */
.verse-grid {
    grid-template-columns: 0.85fr 1fr;
    align-items: center;
}

/* 1 Column for Tales */
.tales-grid {
    grid-template-columns: 1fr;
    margin-top: 0.8rem;
}

/* Glass Panel Base */
.glass-panel {
    background: rgba(10, 15, 20, 0.5); /* Increased transparency */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative; /* Required for torch effect positioning */
    overflow: hidden;   /* Keeps torch glow inside */
    /* Add the noise texture to match museum cards exactly */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
    padding: 1.8rem 1.6rem;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.8s ease, background 0.8s ease, border-color 0.8s ease;
    
    /* Hardware acceleration to prevent text blur on hover */
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .glass-panel:hover {
      transform: translateY(-5px);
      background: rgba(10, 15, 20, 0.65);
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.22);
  }

  /* Theme specific hovers with refined edge glow */
  .prose-grid .showcase-card:hover {
      border-color: rgba(129, 199, 132, 0.65);
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(129, 199, 132, 0.32);
  }

  .verse-grid .showcase-card:hover {
      border-color: rgba(229, 115, 115, 0.65);
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(229, 115, 115, 0.32);
  }

  .tales-grid .showcase-card:hover {
      border-color: rgba(100, 181, 246, 0.65);
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(100, 181, 246, 0.32);
  }

  /* Subscribe Card Hover */
  .subscribe-card:hover {
      border-color: #FFD700;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.3);
  }
}

/* Inner Card Typography & Micro Metadata Badges */
.card-badges {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .glass-panel:hover .badge-pill,
  .card-anchor:hover .badge-pill {
      background: rgba(255, 215, 0, 0.12);
      border-color: rgba(255, 215, 0, 0.45);
      color: #FFD700;
  }
}

.card-meta {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    display: block;
}

.card-badges .card-meta {
    margin-bottom: 0;
}

.card-title {
    font-size: 1.22rem;
    margin-bottom: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
}

.read-link {
    font-size: 0.78rem;
    color: #ffcc00;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-top: auto; /* Pushes the link to the bottom */
}

.glass-panel:hover .read-link {
    opacity: 1;
    transform: translateY(-3px);
}

/* Custom Tales Spotlight Card */
.large-title {
    font-size: 1.38rem; /* Made smaller */
    color: #fff; /* Changed to white */
    margin-bottom: 1.2rem;
}

.tales-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Add space at the bottom of the showcase so it doesn't touch footer */
#showcase-gallery {
    padding-bottom: 4rem;
}

.read-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ffcc00;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.5s ease;
}

.read-button:hover {
    background: #e6b800;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    .showcase-container {
        margin: 1.5rem auto;
        padding: 0 1rem;
        gap: 2.8rem;
    }

    .showcase-category {
        margin-bottom: 2rem;
    }

    .category-heading {
        font-size: 0.82rem;
        letter-spacing: 0.28em;
        margin-bottom: 0.85rem;
        padding-left: 0.2rem;
    }

    /* Horizontal Snap Carousel */
    .card-grid.prose-grid,
    .card-grid.verse-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.9rem !important;
        padding: 0.35rem 0.2rem 1.25rem 0.2rem !important;
        margin: 0 -0.5rem !important;
        scrollbar-width: none !important;
    }

    .card-grid.prose-grid::-webkit-scrollbar,
    .card-grid.verse-grid::-webkit-scrollbar {
        display: none !important;
    }

    .prose-stack {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.9rem !important;
        flex-shrink: 0 !important;
    }

    .prose-grid > .showcase-card,
    .verse-grid > .showcase-card,
    .prose-stack > .showcase-card {
        flex: 0 0 78vw !important;
        max-width: 310px !important;
        min-height: 175px !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: normal !important;
        margin: 0 !important;
    }

    .tales-grid {
        display: block !important;
    }

    .tales-grid .showcase-card {
        width: 100% !important;
        min-height: auto !important;
    }

    /* Slim, Professional Card Padding Across All Homepage Cards - Darker & Richer on Mobile */
    .glass-panel {
        padding: 1.15rem 1.15rem !important;
        background: rgba(6, 10, 14, 0.74) !important;
    }
    
    .large-title {
        font-size: 1.35rem;
    }
}

/* --- FOOTER (TIER A ARCHITECTURE) --- */
footer {
    position: relative; 
    z-index: 60; 
    padding: 2.4rem 4rem 1.4rem;
    background: rgba(10, 15, 20, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.06); 
    margin-top: auto; 
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* Tier 1: Main Action & Editorial Presence */
.footer-top-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 3.5rem;
}

.footer-catch {
    text-align: left;
    flex: 0 0 340px;
    max-width: 360px;
}
.footer-catch p {
    color: #e0e0e0;
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.04em;
    max-width: 340px;
    line-height: 1.5;
}
.footer-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
}
.footer-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}
.footer-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
}
.footer-email-row {
    display: flex;
    gap: 0.45rem;
    width: 100%;
}
.footer-subscribe-form input[type="text"]:not(.bot-trap),
.footer-subscribe-form input[type="email"] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}
.footer-subscribe-form input[type="text"]:not(.bot-trap):hover,
.footer-subscribe-form input[type="email"]:hover {
    border-color: rgba(255, 215, 0, 0.65);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}
.footer-subscribe-form input[type="text"]:not(.bot-trap):focus,
.footer-subscribe-form input[type="email"]:focus {
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}
.footer-subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.76rem;
    font-style: italic;
}
.footer-subscribe-form button {
    background: #FFD700;
    color: #050608;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.footer-subscribe-form button:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
.footer-success-message {
    margin-top: 0.75rem;
}
.footer-success-message p {
    color: #FFD700;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Right Side of Top Tier */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 1.4rem;
    flex: 1;
}

/* The 5 Horizontal Navigation Rooms */
.footer-links {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    flex-wrap: nowrap;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}
.footer-links a:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
.footer-links span {
    color: rgba(255, 215, 0, 0.35);
    font-size: 0.8rem;
    user-select: none;
}

/* Quote + Social Icons Row */
.footer-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}
.footer-meta-row .footer-quote {
    font-style: italic;
    color: #888;
    font-size: 0.86rem;
    margin: 0;
    letter-spacing: 0.04em;
}

/* Social Icons (Circles) */
.footer-socials {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}
.footer-socials a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}
.footer-socials a:hover {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Brand Specific Hovers */
.footer-socials a[href*="instagram"]:hover {
    color: #E4405F;
    border-color: #E4405F;
    background: rgba(228, 64, 95, 0.1);
    box-shadow: 0 0 15px rgba(228, 64, 95, 0.4);
}
.footer-socials a[href*="x.com"]:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.footer-socials a[href*="linkedin"]:hover {
    color: #0077b5;
    border-color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.4);
}
.footer-socials a[href^="mailto"]:hover {
    color: #EA4335;
    border-color: #EA4335;
    background: rgba(234, 67, 53, 0.1);
    box-shadow: 0 0 15px rgba(234, 67, 53, 0.4);
}

/* Tier 2: Bottom Colophon & Legal Bar */
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}
.footer-bottom-bar .copyright {
    font-size: 0.8rem;
    color: #717d8e;
    margin: 0;
    letter-spacing: 0.04em;
}
.legal-links-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.legal-links-row a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    transition: color 0.25s ease, text-shadow 0.25s ease !important;
}
.legal-links-row a:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7) !important;
}
.legal-links-row .legal-dot {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    user-select: none;
}

/* --- MOBILE OPTIMIZATION --- */
@keyframes mobileJupiterDrift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(8px, 12px, 0) rotate(6deg); }
  100% { transform: translate3d(14px, 20px, 0) rotate(12deg); }
}

@media (max-width: 900px) {
  body .planet.jupiter,
  body.home-page .planet.jupiter,
  body:not(.home-page) .planet.jupiter {
    display: block !important;
    position: fixed !important;
    top: 65px !important;
    left: -100px !important;
    right: auto !important;
    width: 255px !important;
    height: 255px !important;
    opacity: 0.35 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    animation: mobileJupiterDrift 35s ease-in-out infinite alternate !important;
    will-change: transform;
    transform: translateZ(0);
  }
  
  /* Mobile Background Override - COMPLETE DISABLE of parallax */
  .space-bg {
      background-attachment: scroll !important; /* Fixes scroll lag */
      filter: none !important; /* Disable heavy filters */
      will-change: auto !important; /* Save memory on mobile */
      transform: none !important; /* Disable parallax transform completely */
      position: fixed !important; /* Keep fixed but no transform */
      height: 100dvh !important; /* Prevent URL bar jump */
      top: 0 !important; /* Reset the offset used for desktop parallax */
  }

  /* PERFORMANCE PATCH: Disable heavy effects on mobile */
  .ribbon, .mobile-nav-overlay, footer {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      background: rgba(10, 15, 20, 0.95) !important; /* Less transparent */
  }
  
  /* Footer Mobile - Tier A Architecture */
  footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.6rem !important; 
    padding: 2.2rem 1.2rem 1.2rem !important; 
  }

  .footer-top-tier {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.6rem !important;
    width: 100% !important;
  }

  .footer-catch {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-catch p {
    font-size: 0.8rem !important;
    margin-bottom: 0.6rem !important;
    max-width: none;
    text-align: center;
  }
  .footer-subscribe-form {
    flex-direction: column;
    width: 100%;
    max-width: 310px;
    gap: 0.5rem;
    align-items: stretch;
  }
  .footer-form-inputs {
    width: 100%;
  }
  .footer-name-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .footer-email-row {
    display: flex;
    gap: 0.4rem;
  }
  .footer-subscribe-form input[type="email"],
  .footer-subscribe-form input[type="text"]:not(.bot-trap) {
    width: 100%;
    font-size: 0.78rem !important;
  }
  .footer-subscribe-form button {
    padding: 0.5rem 1.1rem !important;
    font-size: 0.72rem !important;
    justify-content: center;
  }

  .footer-right {
    width: 100%;
    align-items: center !important;
    gap: 1.2rem !important; 
    justify-content: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.4rem 0.8rem !important;
  }

  .footer-links span {
    display: none !important;
  }

  .footer-links a {
    margin: 0 0.2rem;
    font-size: 0.72rem !important; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1px;
  }

  .footer-meta-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  .footer-meta-row .footer-quote {
    font-size: 0.76rem !important;
    margin: 0 !important;
  }

  .footer-socials {
    gap: 0.8rem !important; 
  }

  .footer-socials a {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
  }

  .footer-bottom-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.7rem !important;
    padding-top: 1rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-bottom-bar .copyright {
    font-size: 0.7rem !important;
    margin: 0;
  }

  .legal-links-row {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.4rem 0.7rem !important;
  }

  .legal-links-row a {
    font-size: 0.72rem !important;
  }
  
  .card, .ribbon, .nav-logo img {
      box-shadow: none !important;
      filter: none !important;
  }

  /* Ribbon Changes - Concept C Mobile */
  .ribbon, .ribbon.scrolled {
      top: 0 !important;
      left: 0 !important;
      transform: none !important;
      width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      border-radius: 0 !important;
      border-top: none !important;
      border-left: none !important;
      border-right: none !important;
      border-bottom: 1px solid rgba(255, 215, 0, 0.22) !important;
      padding: 0 !important;
  }
  .masthead-tier {
      height: calc(56px - (8px * var(--scroll-progress, 0)));
      padding: 0 1.25rem;
      border-bottom: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      will-change: height;
  }
  .tier-left, .tier-right { display: none !important; }
  .directory-tier.desktop-only { display: none !important; }
  .desktop-only { display: none !important; }
  .menu-toggle { display: block; font-size: 1.1rem; color: #fff; cursor: pointer; order: 3; }
  .mobile-home-icon { display: block; font-size: 0.95rem; color: #fff; text-decoration: none; order: 1; }
  .mobile-home-icon.active { color: #FFD700 !important; text-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important; }

  /* Center Logo on Mobile */
  .tier-center.nav-logo {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      order: 2;
  }

  .tier-center.nav-logo a {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      text-decoration: none;
  }

  /* Adjust Logo for Mobile Ribbon with continuous smooth scaling */
  .tier-center.nav-logo img,
  .nav-logo img { 
      height: calc(38px - (8px * var(--scroll-progress, 0)));
      width: calc(38px - (8px * var(--scroll-progress, 0)));
      max-width: 38px;
      max-height: 38px;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      flex-shrink: 0;
      display: block;
      margin: 0 auto;
      filter: none; transform: none; 
  }
  .tier-center.nav-logo:hover img,
  .nav-logo:hover img { transform: none !important; }

  .masthead-brand {
      font-size: calc(0.80rem - (0.10rem * var(--scroll-progress, 0)));
      letter-spacing: calc(0.24em - (0.04em * var(--scroll-progress, 0)));
  }

  /* Scrolled State Compression on Mobile (Locks smooth final resting size) */
  .ribbon.scrolled .masthead-tier {
      height: 48px !important;
  }
  .ribbon.scrolled .tier-center.nav-logo img,
  .ribbon.scrolled .nav-logo img {
      height: 30px !important;
      width: 30px !important;
      max-width: 30px !important;
      max-height: 30px !important;
  }
  .ribbon.scrolled .masthead-brand {
      font-size: 0.70rem !important;
      letter-spacing: 0.20em !important;
  }

  /* Mobile Menu Overlay - Floating Glass Card */
  .mobile-nav-overlay {
      display: none; /* JS toggles flex */
      position: fixed; 
      top: 75px; right: 1.5rem; left: auto; width: 220px;
      background: rgba(15, 20, 25, 0.95) !important;
      border: 1px solid rgba(255, 215, 0, 0.15);
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.1);
      flex-direction: column; padding: 1.5rem; gap: 1.2rem;
      z-index: 2000;
      align-items: center;
  }
  .mobile-nav-overlay a {
      color: #e0e0e0; font-size: 0.9rem; text-decoration: none; text-transform: uppercase;
      letter-spacing: 0.15em;
      transition: color 0.3s, text-shadow 0.3s;
  }
  .mobile-nav-overlay a.active { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
  
  /* Mobile Cards - Static View */
  .card { 
      width: 90vw; height: auto; min-height: 80px; 
      flex-direction: column; padding: 0.4rem;
      background: rgba(10, 15, 20, 0.4) !important; /* Transparent like desktop */
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
  }
  
  .card-title { font-size: 1.1rem; opacity: 1; margin-bottom: 0.2rem; }
  
  /* Hide Quote on Mobile */
  .card-quote { 
      display: none !important; 
  }

  /* Subpage Constraints - Prevent touching edges */
  .content-featured, .content-archive, .page-intro {
      width: 92vw;
      margin-left: auto;
      margin-right: auto;
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
  .page-intro { 
      padding-top: 105px; 
      padding-bottom: 1.5rem; 
      margin-bottom: 3.2rem !important; 
  }

  /* Subpage Floating Celestial Bento Pods on Mobile */
  .content-featured {
      grid-template-columns: 1fr !important;
      gap: 1.35rem !important;
  }
  .card-anchor {
      min-height: auto !important;
      padding: 1.6rem 1.4rem !important;
      border: 1px solid rgba(255, 215, 0, 0.25) !important;
      border-radius: 16px !important;
      background: rgba(7, 12, 19, 0.8) !important;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  }
  .card-anchor .item-title {
      font-size: 1.25rem !important;
      margin-bottom: 0.5rem !important;
      line-height: 1.35 !important;
  }
  .card-anchor .item-meta {
      margin-bottom: 0.75rem !important;
      font-size: 0.64rem !important;
      padding: 0.25rem 0.75rem !important;
      letter-spacing: 0.16em !important;
      border-radius: 999px !important;
      background: rgba(255, 215, 0, 0.08) !important;
      border: 1px solid rgba(255, 215, 0, 0.25) !important;
      color: #FFD700 !important;
  }
  .item-meta { font-size: 0.68rem; }

  .card-anchor .item-excerpt,
  .card-anchor:hover .item-excerpt {
      display: -webkit-box !important;
      -webkit-line-clamp: 3 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
      opacity: 0.78 !important;
      font-size: 0.88rem !important;
      line-height: 1.6 !important;
      margin: 0 0 1.15rem 0 !important;
  }
  .card-anchor:hover .item-title {
      transform: none !important;
      opacity: 1 !important;
  }
  .card-anchor::after {
      font-size: 0.68rem !important;
      padding: 0.38rem 1rem !important;
      margin-top: 0 !important;
      border-radius: 999px !important;
      background: rgba(255, 215, 0, 0.06) !important;
      border: 1px solid rgba(255, 215, 0, 0.25) !important;
      color: #FFD700 !important;
  }
  a.solid-glass:hover {
      transform: none !important;
      background: rgba(10, 15, 20, 0.6) !important;
      box-shadow: none !important;
  }

  /* COMPACT MOBILE HERO & POSITION EXPLORE PROMPT CLEANLY BELOW LOGO */
  .hero {
      height: auto !important;
      min-height: auto !important;
      padding-top: 110px !important;
      padding-bottom: 2rem !important;
  }
  .hero-scroll-indicator {
      position: static !important;
      left: auto !important;
      bottom: auto !important;
      transform: none !important;
      margin-top: 2.2rem !important;
      margin-bottom: 0.5rem !important;
  }
  .about {
      min-height: auto !important;
      padding: 2rem 1rem;
  }
  .library {
      min-height: auto !important;
      padding-top: 0 !important;
      padding-bottom: 1.2rem !important;
  }

  /* Hide Desktop Museum Display on Mobile */
  .museum-display {
      display: none !important;
  }

  /* --- MOBILE EDITORIAL JUMP STRIP (REPLACES MUSEUM CARDS) --- */
  .mobile-jump-strip {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.35rem !important;
      margin: 0.4rem auto 1.4rem auto !important;
      width: 90% !important;
      max-width: 350px !important;
      padding: 0.3rem 0.55rem !important;
      background: rgba(6, 10, 14, 0.78) !important;
      border: 1px solid rgba(255, 215, 0, 0.22) !important;
      border-radius: 50px !important;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 0 10px rgba(255, 215, 0, 0.08) !important;
      backdrop-filter: blur(10px) !important;
      -webkit-backdrop-filter: blur(10px) !important;
  }

  .mobile-jump-pill {
      flex: 1 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0.42rem 0.7rem !important;
      border-radius: 50px !important;
      font-family: var(--font-main) !important;
      font-size: 0.74rem !important;
      letter-spacing: 0.12em !important;
      text-transform: uppercase !important;
      color: #e5e5e5 !important;
      text-decoration: none !important;
      transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
      cursor: pointer !important;
  }

  .mobile-jump-pill:active {
      background: #ffffff !important;
      color: #000000 !important;
      box-shadow: 0 0 14px rgba(255, 255, 255, 0.6) !important;
      transform: scale(0.96) !important;
  }

  .jump-separator {
      color: rgba(255, 215, 0, 0.4) !important;
      font-size: 0.6rem !important;
      user-select: none !important;
  }

  /* 4. Mobile Menu Subscribe Button */
  .mobile-subscribe-btn {
    color: #FFD700 !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin-top: 0.5rem;
    width: 100%; /* Stretches to fill the compact card */
    text-align: center;
    align-self: center;
    cursor: pointer;
  }
  
  #silent-subscribe-form button .btn-arrow {
      display: none;
  }

  /* 5. Page Intro & Sealed Text Mobile */
  .page-intro p, .sealed-text {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  /* 7. About Page / Full Width Content (Fix Specificity) */
    /* This rule makes all reading pages (essays, poems, about) go edge-to-edge on mobile */
  .reading-container.container-centered {
    padding: 100px 0 4rem 0 !important; /* Consistent top padding */
    width: 100% !important;
    max-width: 100% !important;
  }

  /* COMPACT SUBPAGE SPACING */
  .content-grid, .content-featured, .content-archive {
      padding-top: 0 !important;
      padding-bottom: 3rem !important;
      gap: 1.5rem !important;
      min-height: 0 !important; /* Resets the reserved height on mobile */

  }
  
  /* COMPACT HOMEPAGE SUBSCRIBE */
  #subscribe-engine {
      margin-top: 2rem !important;
      margin-bottom: 2rem !important;
      padding: 0 1rem !important;
  }
  #subscribe-engine .glass-panel {
      padding: 1.5rem 1.25rem !important;
  }
  #subscribe-engine h2 {
      font-size: 1.4rem !important;
      margin-bottom: 0.5rem !important;
  }
  #subscribe-engine p {
      font-size: 0.9rem !important;
      margin-bottom: 1.5rem !important;
  }
  #silent-subscribe-form button {
      padding: 0.6rem 1.5rem !important;
      font-size: 0.75rem !important;
      max-width: 160px !important;
  }
  #silent-subscribe-form input[type="email"] {
      font-size: 1.0rem !important;
  }

  .archive-divider {
      margin-bottom: 1.5rem !important;
      margin-top: 1rem !important;
  }

  /* DISABLE ALL CARD HOVER EFFECTS ON MOBILE ACROSS ALL PAGES */
  .glass-panel:hover, 
  .showcase-card:hover,
  .subscribe-card:hover,
  .solid-glass:hover,
  a.solid-glass:hover,
  .card-anchor:hover,
  .card-simple:hover,
  .quote-glass:hover,
  .archive-toggle-btn:hover {
      transform: none !important;
      box-shadow: none !important;
  }

  /* COMPLETE REMOVAL OF BUTTON & INPUT HOVERS ON MOBILE */
  .sign-in-btn:hover,
  .subscribe-btn:hover,
  .tier-right .sign-in-btn:hover,
  .tier-right .subscribe-btn:hover,
  .mobile-subscribe-btn:hover,
  .mobile-sign-in-btn:hover {
      color: #FFD700 !important;
      background: transparent !important;
      border-color: rgba(255, 215, 0, 0.55) !important;
      transform: none !important;
      box-shadow: none !important;
  }
  #silent-subscribe-form button:hover {
      background: #FFD700 !important;
      color: #050608 !important;
      transform: none !important;
      box-shadow: none !important;
  }
  .footer-subscribe-form button:hover {
      background: #FFD700 !important;
      color: #050608 !important;
      transform: none !important;
      box-shadow: none !important;
  }
  #silent-subscribe-form input:hover,
  /* TACTILE TAP FEEDBACK: Instant white flash on click/tap */
  .sign-in-btn:active,
  .subscribe-btn:active,
  .tier-right .sign-in-btn:active,
  .tier-right .subscribe-btn:active,
  .mobile-subscribe-btn:active,
  .mobile-sign-in-btn:active,
  #silent-subscribe-form button:active,
  .footer-subscribe-form button:active,
  .sidebar-share-btn:active {
      background: #ffffff !important;
      color: #000000 !important;
      border-color: #ffffff !important;
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.8) !important;
      transform: scale(0.97) !important;
      transition: background 0.08s ease, transform 0.08s ease !important;
  }


  /* Maintain Resting Theme Perimeters on Mobile without Hover Jumps */
  body:has(.bg-essays) .solid-glass:hover,
  body:has(.bg-essays) .card-simple:hover,
  .solid-glass.earth-theme:hover,
  .card-simple.earth-theme:hover {
      border: 1px solid rgba(129, 199, 132, 0.35) !important;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 16px rgba(129, 199, 132, 0.14) !important;
      background: rgba(10, 15, 20, 0.5) !important;
      transform: none !important;
  }

  body:has(.bg-poems) .solid-glass:hover,
  body:has(.bg-poems) .card-simple:hover,
  .solid-glass.fire-theme:hover,
  .card-simple.fire-theme:hover {
      border: 1px solid rgba(229, 115, 115, 0.35) !important;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 16px rgba(229, 115, 115, 0.14) !important;
      background: rgba(10, 15, 20, 0.5) !important;
      transform: none !important;
  }

  body:has(.bg-fiction) .solid-glass:hover,
  body:has(.bg-fiction) .card-simple:hover,
  .solid-glass.water-theme:hover,
  .card-simple.water-theme:hover {
      border: 1px solid rgba(100, 181, 246, 0.35) !important;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 16px rgba(100, 181, 246, 0.14) !important;
      background: rgba(10, 15, 20, 0.5) !important;
      transform: none !important;
  }

  /* Disable Archive Card Hover on Mobile */
  .card-simple {
      padding: 0.85rem 1.25rem !important;
      min-height: 58px !important;
      border-radius: 14px !important;
  }
  .card-simple:hover {
      transform: none !important;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
      background: rgba(7, 12, 19, 0.68) !important;
      border-color: rgba(255, 215, 0, 0.16) !important;
  }
  .archive-content-default {
      opacity: 1 !important;
      transform: none !important;
      pointer-events: auto !important;
      padding: 0 !important;
  }
  .card-simple:hover .archive-content-default {
      opacity: 1 !important;
      transform: none !important;
      pointer-events: auto !important;
  }
  .archive-content-hover,
  .card-simple:hover .archive-content-hover {
      display: none !important;
      opacity: 0 !important;
  }

  /* Disable Torch Glow Pseudo-elements on Mobile */
  .card::after, .solid-glass:not(.card-anchor):not(.card-static)::after, .glass-panel::after,
  .card:hover::after, .solid-glass:not(.card-anchor):not(.card-static):hover::after, .glass-panel:hover::after {
      display: none !important;
      opacity: 0 !important;
  }

  /* Disable Share & Read Next Hovers */
  .sidebar-share-btn:not(.copied):hover,
  .read-next-btn:hover {
      transform: none !important;
      box-shadow: none !important;
      color: #e0e0e0 !important;
      border-color: rgba(255, 255, 255, 0.15) !important;
      letter-spacing: 0.15em !important;
  }
  .sidebar-share-btn:not(.copied):hover i { transform: none !important; opacity: 1 !important; }
  .sidebar-share-btn:not(.copied):hover::after { opacity: 0 !important; }

  /* Disable Sidebar Link Hover Effects */
  .sidebar-list a:hover {
      padding-left: 0 !important;
  }
  .sidebar-list a:not(.active-link):hover {
      color: #aaa !important;
      text-shadow: none !important;
  }

      /* Disable Footer Links & Socials Hover on Mobile */
      .footer-links a:hover {
          color: #aaa !important;
      }
      .footer-socials a:hover {
          color: #aaa !important;
          border-color: rgba(255,255,255,0.1) !important;
          background: rgba(255, 255, 255, 0.03) !important;
          transform: none !important;
          box-shadow: none !important;
      }

      /* Mobile Legal Link Styling */
      .legal-link a {
          color: rgba(255, 255, 255, 0.55) !important;
      }
      .legal-link a:hover {
          color: #FFD700 !important;
      }
}

/* --- ABOUT PAGE --- */
.page-main {
  padding-top: 160px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-content {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.page-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}
.page-content .tagline {
  font-size: 1.2rem;
  color: #ccc;
}

/* --- MOBILE BACKGROUND FIX & SUBPAGE LUMINANCE HARMONIZATION (DEEP VELVET DARKNESS ON MOBILE) --- */
@media (max-width: 900px) {
    .space-bg {
        /* Mobile optimized background - enriched atmospheric darkness */
        background-image: linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.76)), url("images/universe-mobile.webp") !important;
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }

    /* Subpage backgrounds matching homepage luminance */
    .space-bg.bg-poems {
        background-image: linear-gradient(rgba(14, 4, 8, 0.78), rgba(6, 2, 5, 0.82)), url("images/universe-mobile.webp") !important;
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }
    .space-bg.bg-essays {
        background-image: linear-gradient(rgba(3, 10, 6, 0.78), rgba(2, 6, 4, 0.82)), url("images/universe-mobile.webp") !important;
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }
    .space-bg.bg-fiction {
        background-image: linear-gradient(rgba(4, 7, 16, 0.78), rgba(2, 4, 10, 0.82)), url("images/universe-mobile.webp") !important;
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }
    .space-bg.bg-about {
        background-image: linear-gradient(rgba(10, 7, 4, 0.78), rgba(4, 3, 2, 0.82)), url("images/universe-mobile.webp") !important;
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }
}

/* =========================================
   DENDRA FOLIO - CONTENT LAYOUTS
   ========================================= */

/* 1. Page Intro Quote - Harmonized & Scaled with generous breathing room */
.page-intro {
    padding: 155px 2rem 2rem;
    text-align: center;
    max-width: 1050px;
    margin: 0 auto 4.5rem auto; /* Seriously generous gap before content cards start */
    position: relative;
    z-index: 5;
}

.quote-glass {
    background: rgba(10, 15, 20, 0.65);
    padding: 1.8rem 2.4rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.38); /* Golden Perimeter */
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 820px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 22px rgba(255, 215, 0, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .quote-glass:hover {
      border-color: rgba(255, 215, 0, 0.65);
      box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 215, 0, 0.22);
  }
}

/* Mobile adjustment for quote box */
@media (max-width: 900px) {
    .quote-glass {
        padding: 1.5rem 1.25rem !important;
        background: rgba(6, 10, 14, 0.78) !important;
    }
}

.page-title {
    font-size: 1.25rem;
    color: #FFD700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.85rem;
}

.page-intro p {
    font-size: 0.96rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 2. Content Grid (The Shelves) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5vw 6rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* 3. The "Solid Glass" Panel */
.solid-glass, a.solid-glass {
    position: relative; /* Required for glow positioning */
    overflow: hidden;   /* Keeps glow inside the border */
    background: rgba(10, 15, 20, 0.5) !important; /* Matches homepage transparency */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    /* Subtle Noise Texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E") !important;
    padding: 1.8rem 1.6rem;
    transition: box-shadow 0.65s ease,
                background 0.65s ease,
                border-color 0.65s ease,
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  a.solid-glass:hover {
      background: rgba(10, 15, 20, 0.65) !important;
      transform: translateY(-5px);
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.22);
      z-index: 10; /* Ensure hovered card stays on top */
  }
}

/* --- STATIC CARD OVERRIDE (No Glow/Tilt) --- */
.card-static, 
.card-static:hover,
.solid-glass.card-static:hover {
    transform: none !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1) !important;
    background: rgba(10, 15, 20, 0.6) !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    z-index: 5 !important;
}

/* Themed Perimeters for Index Page Cards in Resting State */
/* Subtle Resting Perimeter across all rooms matching Homepage Showcase */
.solid-glass.earth-theme, 
body:has(.bg-essays) .solid-glass,
.card-simple.earth-theme,
body:has(.bg-essays) .card-simple,
.solid-glass.fire-theme, 
body:has(.bg-poems) .solid-glass,
.card-simple.fire-theme,
body:has(.bg-poems) .card-simple,
.solid-glass.water-theme, 
body:has(.bg-fiction) .solid-glass,
.card-simple.water-theme,
body:has(.bg-fiction) .card-simple {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
}

/* Radiant Edge Glow and Deep Atmospheric Drop Shadows on Hover (Desktop Only) */
@media (hover: hover) and (pointer: fine) {
  a.solid-glass.earth-theme:hover, 
  body:has(.bg-essays) a.solid-glass:hover,
  .card-simple.earth-theme:hover,
  body:has(.bg-essays) .card-simple:hover {
      border-color: rgba(129, 199, 132, 0.75) !important;
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 26px rgba(129, 199, 132, 0.38) !important;
      background: rgba(10, 15, 20, 0.65) !important;
      transform: translateY(-5px) !important;
  }

  a.solid-glass.fire-theme:hover, 
  body:has(.bg-poems) a.solid-glass:hover,
  .card-simple.fire-theme:hover,
  body:has(.bg-poems) .card-simple:hover {
      border-color: rgba(229, 115, 115, 0.75) !important;
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 26px rgba(229, 115, 115, 0.38) !important;
      background: rgba(10, 15, 20, 0.65) !important;
      transform: translateY(-5px) !important;
  }

  a.solid-glass.water-theme:hover, 
  body:has(.bg-fiction) a.solid-glass:hover,
  .card-simple.water-theme:hover,
  body:has(.bg-fiction) .card-simple:hover {
      border-color: rgba(100, 181, 246, 0.75) !important;
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 26px rgba(100, 181, 246, 0.38) !important;
      background: rgba(10, 15, 20, 0.65) !important;
      transform: translateY(-5px) !important;
  }
}

/* Hide Meta and Excerpt initially */

/* Show on Hover */
/* --- MOUSE FOLLOW GLOW EFFECT --- */
.card::after, .solid-glass:not(.card-anchor):not(.card-static)::after, .glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    /* The glow: a radial gradient following the mouse coordinates */
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.08), 
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
    pointer-events: none; /* Let clicks pass through */
    border-radius: inherit;
    will-change: opacity;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover::after, .solid-glass:not(.card-anchor):not(.card-static):hover::after, .glass-panel:hover::after {
      opacity: 1;
  }
}

.card-static::after {
    display: none !important;
}

.item-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.item-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 400;
}

.item-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    font-style: italic;
}

/* 4. Individual Reading Page - Harmonized & Scaled */
.reading-container {
    display: flex;
    gap: 4rem;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 3.5rem 6rem !important;
    width: 100%;
    position: relative;
    z-index: 5;
    align-items: flex-start;
    min-height: 80vh;
}

.reading-main {
    flex: 1;
    padding: 3.5rem 4.5rem;
    max-width: 980px;
    width: 100%;
    border-radius: 16px;
}

/* Override for Centered pages (About, Legal) */
.reading-container.container-centered {
    padding: 0 2rem 5rem !important;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column; 
    align-items: center;
}

.reading-main h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.reading-text h2[id],
.reading-text h3[id] {
    scroll-margin-top: 100px;
}

.reading-text {
    margin-top: 1.8rem;
    font-size: 0.93rem;
    line-height: 1.76;
    color: #e0e0e0;
    text-align: justify;
}

.reading-text p {
    margin-bottom: 1.5rem;
}

/* POEM SPECIFIC STYLE - Natural left-aligned stanzas within centered column */
.reading-text.poem,
.reading-text pre {
    font-family: inherit;
    font-size: 0.93rem;
    white-space: pre-wrap;
    text-align: left;
}

/* Specific container for poem body - Harmonized with Essays and Fiction */
.poem-content {
    max-width: 460px; 
    margin: 1.5rem auto; 
    font-size: 0.93rem; 
    line-height: 1.85; 
    color: #f0f0f0; 
    letter-spacing: 0.03em;
    text-align: left !important;
}

/* Replaces inline styles on poem stanzas */
.poem-content > p {
    margin-bottom: 2rem;
    text-align: left !important;
}

/* Drop Cap for prose/essay stories only (direct child p of reading-text) */
.reading-text > p:first-of-type::first-letter {
    font-size: 2.8em;
    float: left;
    line-height: 0.85;
    margin-right: 0.45rem;
    color: #FFD700;
}

/* Large Golden First Letter for Poems (Opening Stanza) */
.poem-content p:first-of-type::first-letter,
.reading-text.poem p:first-of-type::first-letter {
    font-size: 2.6em;
    float: left;
    line-height: 0.82;
    margin-right: 0.35rem;
    margin-top: 0.05em;
    color: #FFD700;
    font-family: 'Spectral', serif;
    font-weight: 600;
}

/* Ensure subsequent poem stanzas remain standard size */
.poem-content p:not(:first-of-type)::first-letter {
    font-size: inherit !important;
    float: none !important;
    line-height: inherit !important;
    margin-right: 0 !important;
    color: inherit !important;
}

/* Fix the gap between 'A' and 'll' on the centered Legal page */
.reading-text.legal-text p:first-of-type::first-letter {
    float: none;
    margin-right: 0.05rem;
}
.reading-text.legal-text {
    text-align: center;
}

/* Disable selection for copy protection */
.reading-text, .page-intro p, .post-content, .quote-text {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 5. The Sidebar Index */
.reading-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 105px;
}

.sidebar-title {
    font-size: 0.86rem;
    color: #fff;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.4rem;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-list a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.84rem;
    line-height: 1.5;
    transition: color 0.3s, padding-left 0.3s;
}

.sidebar-list a:hover, .sidebar-list a.active-link {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    padding-left: 4px; /* Subtle shift */
}

/* --- Page Load Animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reading-main, .reading-sidebar, .content-grid, .page-intro {
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0; 
}

/* --- Mobile Adjustments for Dendra Folio: Content Pages & Literary Twin-Cards --- */
@media (max-width: 900px) {
    .reading-container {
        flex-direction: column !important;
        padding: 100px 0 3.5rem 0 !important;
        width: 100% !important;
    }

    .reading-main {
        padding: 1.75rem 1.25rem !important;
        width: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        border: 1px solid rgba(255, 215, 0, 0.4) !important;
        background: rgba(6, 10, 14, 0.78) !important;
        margin: 0 !important;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.08) !important;
        order: 1 !important;
    }

    .reading-main h1 {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    .reading-text {
        font-size: 0.89rem !important;
        line-height: 1.74 !important;
        text-align: left !important;
        margin-top: 1.4rem !important;
    }

    .reading-text p {
        margin-bottom: 1.25rem !important;
    }

    .content-heading,
    .reading-text h2,
    .reading-text h3 {
        font-size: 1.15rem !important;
        margin-top: 2rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .poem-content {
        max-width: 360px !important;
        font-size: 0.89rem !important;
        line-height: 1.8 !important;
        text-align: left !important;
        margin: 1.2rem auto !important;
        padding-left: 0.5rem !important;
    }

    .poem-content > p {
        text-align: left !important;
        margin-bottom: 1.6rem !important;
    }

    .reading-text > p:first-of-type::first-letter {
        font-size: 2.3em !important;
        line-height: 0.85 !important;
        margin-right: 0.35rem !important;
    }

    .poem-content p:first-of-type::first-letter,
    .reading-text.poem p:first-of-type::first-letter {
        font-size: 2.2em !important;
        float: left !important;
        line-height: 0.82 !important;
        margin-right: 0.3rem !important;
        margin-top: 0.05em !important;
        color: #FFD700 !important;
        font-family: 'Spectral', serif !important;
        font-weight: 600 !important;
    }

    .poem-content p:not(:first-of-type)::first-letter {
        font-size: inherit !important;
        float: none !important;
        line-height: inherit !important;
        margin-right: 0 !important;
        color: inherit !important;
    }

    .section-divider,
    .reading-divider {
        margin: 2rem 0 1.25rem !important;
    }

    /* --- SLEEK NEXT & PREVIOUS LITERARY CARDS ON MOBILE --- */
    .read-next-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.65rem !important;
        margin-top: 1.8rem !important;
        width: 100% !important;
    }

    .read-next-btn {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.85rem 1.15rem !important;
        background: rgba(6, 10, 14, 0.78) !important;
        border: 1px solid rgba(255, 215, 0, 0.25) !important;
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
        text-align: left !important;
        letter-spacing: 0.03em !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
        transform: none !important;
    }

    /* Primary Accent on "Next" Card */
    .read-next-btn:has(i.fa-arrow-right),
    .read-next-wrapper > .read-next-btn:last-child {
        order: 1 !important;
        border-color: rgba(255, 215, 0, 0.45) !important;
        background: rgba(12, 18, 26, 0.82) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 215, 0, 0.12) !important;
        color: #ffffff !important;
    }
    .read-next-btn:has(i.fa-arrow-right) i,
    .read-next-wrapper > .read-next-btn:last-child i {
        color: #FFD700 !important;
    }

    /* Subtler secondary "Previous" Card */
    .read-next-btn:has(i.fa-arrow-left),
    .read-next-wrapper > .read-next-btn:first-child:not(:only-child) {
        order: 2 !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        background: rgba(6, 10, 14, 0.65) !important;
        color: rgba(255, 255, 255, 0.68) !important;
        box-shadow: none !important;
    }
    .read-next-btn:has(i.fa-arrow-left) i,
    .read-next-wrapper > .read-next-btn:first-child:not(:only-child) i {
        color: rgba(255, 255, 255, 0.45) !important;
    }

    .read-next-btn:active,
    .read-next-btn:has(i.fa-arrow-right):active,
    .read-next-btn:has(i.fa-arrow-left):active,
    .read-next-wrapper > .read-next-btn:active,
    .read-next-wrapper > .read-next-btn:last-child:active,
    .read-next-wrapper > .read-next-btn:first-child:active {
        background: #ffffff !important;
        color: #000000 !important;
        border-color: #ffffff !important;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;
        transform: scale(0.98) !important;
        transition: background 0.08s ease, transform 0.08s ease !important;
    }
    .read-next-btn:active i,
    .read-next-btn:has(i.fa-arrow-right):active i,
    .read-next-btn:has(i.fa-arrow-left):active i,
    .read-next-wrapper > .read-next-btn:active i,
    .read-next-wrapper > .read-next-btn:last-child:active i,
    .read-next-wrapper > .read-next-btn:first-child:active i {
        color: #000000 !important;
    }

    /* --- SLEEK SIDEBAR / MORE ESSAYS MODULE ON MOBILE --- */
    .reading-sidebar {
        width: 92% !important;
        position: static !important;
        margin: 1.75rem auto 0 auto !important;
        padding: 1.35rem 1.25rem !important;
        background: rgba(6, 10, 14, 0.76) !important;
        border: 1px solid rgba(255, 215, 0, 0.18) !important;
        border-radius: 10px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
        order: 2 !important;
    }

    .sidebar-title {
        font-size: 0.72rem !important;
        letter-spacing: 0.2em !important;
        text-transform: uppercase !important;
        color: #FFD700 !important;
        margin-bottom: 0.75rem !important;
        font-weight: 500 !important;
    }

    .sidebar-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.35rem !important;
        padding-left: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .sidebar-list li {
        padding: 0.35rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .sidebar-list li:last-child {
        border-bottom: none !important;
    }

    .sidebar-list a {
        font-size: 0.84rem !important;
        line-height: 1.4 !important;
        color: rgba(255, 255, 255, 0.75) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-decoration: none !important;
    }

    .sidebar-list a.active-link {
        color: #FFD700 !important;
        font-style: italic !important;
        font-weight: 500 !important;
        pointer-events: none !important;
    }

    .sidebar-share-btn {
        width: auto !important;
        max-width: 160px !important;
        padding: 0.35rem 0.95rem !important;
        font-size: 0.65rem !important;
        letter-spacing: 0.14em !important;
        margin: 0.85rem auto 0 auto !important;
        border-radius: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.45rem !important;
    }

    .sidebar-share-btn i {
        font-size: 0.62rem !important;
    }

    .sidebar-back-link {
        margin-top: 0.85rem !important;
        padding-top: 0.75rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        list-style: none !important;
        display: flex !important;
        justify-content: center !important;
    }

    .sidebar-back-link a {
        font-size: 0.64rem !important;
        letter-spacing: 0.14em !important;
        padding: 0.32rem 0.8rem !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border-radius: 50px !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .sidebar-back-link a i {
        font-size: 0.6rem !important;
        margin-right: 0 !important;
    }

    .sidebar-back-link a:active {
        background: #fff !important;
        color: #000 !important;
        border-color: #fff !important;
        transform: scale(0.97) !important;
    }
    .sidebar-back-link a:active i {
        color: #000 !important;
    }

    /* --- MOBILE FLOATING COMPANION (QUICK INDEX) --- */
    .mobile-quick-index-btn {
        display: inline-flex !important;
        position: fixed !important;
        bottom: 1.4rem !important;
        left: 1.15rem !important;
        right: auto !important;
        z-index: 900 !important;
        align-items: center !important;
        gap: 0.45rem !important;
        padding: 0.38rem 0.85rem !important;
        background: rgba(6, 10, 15, 0.88) !important;
        border: 1px solid rgba(255, 215, 0, 0.35) !important;
        border-radius: 50px !important;
        color: #FFD700 !important;
        font-family: var(--font-main) !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.14em !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 215, 0, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        cursor: pointer !important;
    }
    .mobile-quick-index-btn:active {
        background: #ffffff !important;
        color: #000000 !important;
        border-color: #ffffff !important;
        transform: scale(0.96) !important;
    }
    .mobile-quick-index-btn:active i {
        color: #000000 !important;
    }
}

.mobile-quick-index-btn {
    display: none;
}

/* =======================================================
   SUBPAGE SHOWCASE: FLOATING CELESTIAL BENTO PODS
   ======================================================= */
.content-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.8rem;
    max-width: 1140px;
    margin: 0 auto 4.5rem;
    position: relative;
    z-index: 5;
    padding: 0 1.5rem;
    min-height: auto;
    align-items: stretch;
}

.card-anchor {
    min-height: 250px;
    padding: 2.2rem 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    position: relative;
    border-radius: 20px;
    background: rgba(7, 12, 19, 0.74) !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.58), 0 0 18px rgba(255, 215, 0, 0.04) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                background 0.4s ease;
    will-change: transform, box-shadow;
    text-decoration: none;
    overflow: hidden;
}

/* Solo card centered exhibition (e.g. Fiction) */
.card-anchor.showcase-solo-card {
    grid-column: 1 / -1;
    max-width: 740px;
    margin: 0 auto;
    width: 100%;
}

/* Theme perimeter accents in resting state */
.card-anchor.earth-theme {
    border-color: rgba(255, 215, 0, 0.24) !important;
}
.card-anchor.fire-theme {
    border-color: rgba(255, 170, 130, 0.24) !important;
}
.card-anchor.water-theme {
    border-color: rgba(140, 200, 255, 0.24) !important;
}

/* Floating Pill Meta Badge */
.card-anchor .item-meta {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    color: #FFD700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    margin-bottom: 1.15rem;
    transition: all 0.3s ease;
}

.card-anchor .item-title {
    font-family: var(--font-main);
    font-size: 1.38rem;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 1.15rem; /* Generous gap between title and excerpt */
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.card-anchor .item-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.78;
    font-size: 0.92rem;
    line-height: 1.68;
    color: #d6dbe4;
    margin: 0 0 1.6rem 0;
    letter-spacing: 0.015em;
    font-style: normal;
    flex-grow: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* Floating Action Capsule Button */
.card-anchor::after {
    content: "Read Piece  \2192";
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    width: fit-content !important;
    height: auto !important;
    margin-top: auto !important;
    padding: 0.45rem 1.15rem !important;
    border-radius: 999px !important;
    background: rgba(255, 215, 0, 0.08) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    font-family: var(--font-main) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #FFD700 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 4 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
    .card-anchor:hover {
        background: rgba(12, 19, 30, 0.88) !important;
        border-color: rgba(255, 215, 0, 0.55) !important;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 28px rgba(255, 215, 0, 0.16) !important;
        transform: translateY(-5px);
    }
    .card-anchor:hover .item-title {
        color: #FFD700 !important;
    }
    .card-anchor:hover .item-meta {
        background: rgba(255, 215, 0, 0.16);
        border-color: rgba(255, 215, 0, 0.5);
    }
    .card-anchor:hover .item-excerpt {
        opacity: 0.95;
        color: #ffffff;
    }
    .card-anchor:hover::after {
        position: static !important;
        inset: auto !important;
        width: fit-content !important;
        height: auto !important;
        background: rgba(255, 215, 0, 0.22) !important;
        border-color: rgba(255, 215, 0, 0.75) !important;
        color: #ffffff !important;
        box-shadow: 0 0 14px rgba(255, 215, 0, 0.35) !important;
        transform: translateX(4px) !important;
    }
    
    .card-anchor.fire-theme:hover {
        border-color: rgba(255, 170, 130, 0.6) !important;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 28px rgba(255, 140, 100, 0.22) !important;
    }
    .card-anchor.water-theme:hover {
        border-color: rgba(140, 200, 255, 0.6) !important;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 28px rgba(100, 180, 255, 0.22) !important;
    }
}


/* ARCHIVE DIVIDER */
.archive-divider {
    max-width: 950px;
    margin: 0 auto 2.5rem;
    text-align: center;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.archive-divider::before,
.archive-divider::after {
    content: "";
    display: block;
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
}
.archive-divider::after {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), transparent);
}
.archive-divider span {
    color: #FFD700;
    font-size: 0.88rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* =======================================================
   THE ARCHIVE: CONCEPT A - SLEEK CAPSULE LEDGER
   ======================================================= */
.content-archive {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 860px;
    margin: 0 auto 6rem;
    position: relative;
    z-index: 5;
    padding: 0 1.5rem;
    counter-reset: archive-counter;
}

.card-simple {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 64px !important;
    padding: 0.95rem 1.6rem !important;
    border-radius: 16px !important;
    background: rgba(7, 12, 19, 0.68) !important;
    border: 1px solid rgba(255, 215, 0, 0.16) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 215, 0, 0.03) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    text-decoration: none !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                background 0.35s ease !important;
    overflow: hidden !important;
    counter-increment: archive-counter;
}

/* Elegant Index Counter on Left */
.card-simple::before {
    content: counter(archive-counter, decimal-leading-zero);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 215, 0, 0.65);
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Container for Poems subpage */
.archive-content-default {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 1rem !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* Disable legacy hover flip to preserve clean ledger readability */
.archive-content-hover {
    display: none !important;
}

/* Archive Title */
.card-simple .item-title,
.archive-content-default .item-title {
    margin: 0 !important;
    font-family: var(--font-main) !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    color: #e8ecf2 !important;
    text-align: left !important;
    flex: 1 !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Archive Metadata Pill Badge */
.card-simple .item-meta,
.archive-content-default .item-meta {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.28rem 0.85rem !important;
    border-radius: 999px !important;
    background: rgba(255, 215, 0, 0.08) !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.16em !important;
    font-weight: 600 !important;
    color: #FFD700 !important;
    text-transform: uppercase !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}

/* Micro-Arrow on the Pill */
.card-simple .item-meta::after,
.archive-content-default .item-meta::after {
    content: "  \2192";
    font-family: var(--font-main);
    font-size: 0.72rem;
    color: #FFD700;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Hover Physics on Desktop */
@media (hover: hover) and (pointer: fine) {
    .card-simple:hover {
        background: rgba(12, 19, 30, 0.86) !important;
        border-color: rgba(255, 215, 0, 0.5) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 215, 0, 0.12) !important;
        transform: translateY(-3px) translateX(3px) !important;
    }
    
    .card-simple:hover::before {
        color: #FFD700 !important;
        transform: scale(1.1);
    }
    
    .card-simple:hover .item-title,
    .card-simple:hover .archive-content-default .item-title {
        color: #ffffff !important;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    }
    
    .card-simple:hover .item-meta,
    .card-simple:hover .archive-content-default .item-meta {
        background: rgba(255, 215, 0, 0.18) !important;
        border-color: rgba(255, 215, 0, 0.55) !important;
        color: #FFF0A0 !important;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.25) !important;
    }
    
    .card-simple:hover .item-meta::after,
    .card-simple:hover .archive-content-default .item-meta::after {
        transform: translateX(4px);
    }
    
    /* Themed hover perimeters */
    .card-simple.earth-theme:hover {
        border-color: rgba(129, 199, 132, 0.55) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(129, 199, 132, 0.15) !important;
    }
    .card-simple.fire-theme:hover {
        border-color: rgba(229, 115, 115, 0.55) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(229, 115, 115, 0.15) !important;
    }
    .card-simple.water-theme:hover {
        border-color: rgba(100, 181, 246, 0.55) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(100, 181, 246, 0.15) !important;
    }
}

/* --- ARCHIVE COMING SOON TOGGLE --- */
.content-archive.coming-soon-mode .card-simple {
    display: none !important;
}
.archive-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 2rem 0;
    animation: fadeInUp 1s ease forwards;
}
.archive-toggle-btn {
    background: none;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.5s ease;
}
.archive-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.archive-toggle-btn.active {
    transform: rotate(180deg);
    background: #FFD700;
    color: #000;
}
.archive-message {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    text-align: center;
    color: #e0e0e0;
    font-style: italic;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}
.archive-message.visible {
    max-height: 100px;
    opacity: 1;
    margin-top: 1rem;
}

/* --- RAZOR-THIN GOLDEN READING PROGRESS BAR --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #FFB800 0%, #FFD700 75%, #FFF0A0 92%, #FFFFFF 100%);
  z-index: 9999;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.85), 0 0 5px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

/* --- MOBILE PAGE MAIN FIX --- */
@media (max-width: 900px) {
    .page-main { padding-top: 100px !important; }

    /* Concept A: Sleek Capsule Ledger on Mobile */
    .card-simple {
        padding: 0.85rem 1.25rem !important;
        min-height: 58px !important;
        border-radius: 14px !important;
        gap: 0.6rem !important;
    }
    .card-simple::before {
        font-size: 0.72rem !important;
        margin-right: 0.75rem !important;
    }
    .archive-content-default {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 0.6rem !important;
    }
    .archive-content-default .item-title,
    .card-simple .item-title { 
        font-size: 1.02rem !important; 
    }
    .archive-content-default .item-meta,
    .card-simple .item-meta { 
        font-size: 0.6rem !important; 
        padding: 0.22rem 0.65rem !important;
        letter-spacing: 0.12em !important;
    }
    .archive-content-hover { display: none !important; }
}


/* Force razor-sharp text inside glass cards */
.solid-glass h2, .solid-glass p {
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    color: #ffffff !important; /* Forces maximum contrast */
}

/* --- READING PAGE SPECIFIC LAYOUT --- */
.page-intro.reading-layout {
    padding: 185px 2.5rem 2.2rem;
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.page-intro.reading-layout .page-title {
    font-size: 1.95rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.25);
    letter-spacing: 0.16em;
    margin-bottom: 1.25rem; /* Generous space between title and byline */
    border-bottom: none;
    padding-bottom: 0;
}

.page-intro.reading-layout .reading-meta-block {
    margin-bottom: 1.8rem; /* Generous space between byline and quote block */
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    text-transform: uppercase;
}

/* Author byline matching high-end literary publications */
.page-intro.reading-layout .reading-meta-block::before {
    content: "BY PRANSHU GUPTA  \2022  ";
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    letter-spacing: 0.2em;
}

.page-intro.reading-layout .quote-glass {
    padding: 1.5rem 2.4rem;
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid rgba(255, 215, 0, 0.38);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 215, 0, 0.12);
}

.page-intro.reading-layout .quote-glass p {
    font-size: 0.94rem;
    line-height: 1.6;
}

/* Thin Luminous Celestial Separation Line between Article Header and Content */
.page-intro.reading-layout::after {
    content: "";
    display: block;
    width: 100%;
    max-width: 920px;
    height: 1px;
    margin: 3.5rem auto 0 auto; /* Generous gap between quote-glass and divider */
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.18) 18%, rgba(255, 215, 0, 0.65) 50%, rgba(255, 215, 0, 0.18) 82%, transparent 100%);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.reading-container.reading-layout {
    padding-top: 0 !important;
    margin-top: 4.5rem !important; /* Seriously good gap between header/divider and content */
}

/* --- SEALED DOCUMENT STYLE --- */
.sealed-document {
    text-align: center; 
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sealed-icon {
    font-size: 3rem;
    color: #64B5F6;
    margin-bottom: 1.5rem;
}

.sealed-title {
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
    color: #fff;
    font-family: var(--font-main);
    letter-spacing: 0.05em;
}

.sealed-text {
    font-size: 0.98rem; 
    line-height: 1.6; 
    color: rgba(255,255,255,0.8);
    max-width: 500px; 
    margin: 0 auto;
}

/* --- SIDEBAR STATES --- */
.sidebar-link-disabled {
    color: #555;
    cursor: default;
    font-size: 0.84rem;
    transition: color 0.3s;
}
.sidebar-link-disabled:hover {
    color: #777; /* Subtle change only */
}

/* --- SIDEBAR EXTRAS --- */
.sidebar-reading-time {
    font-size: 0.75rem;
    color: #FFD700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.sidebar-share-btn {
    margin-top: 1.25rem;
    width: auto;
    max-width: 170px;
    padding: 0.42rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.sidebar-share-btn:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: #FFD700;
    color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
    letter-spacing: 0.2em;
    color: transparent;
}

.sidebar-share-btn i {
    transition: transform 0.4s ease;
}

.sidebar-share-btn:hover i {
    transform: translateY(-20px);
    opacity: 0;
}

.sidebar-share-btn::after {
    content: "Copy Link";
    font-family: var(--font-main);
    font-weight: 400; /* Match original button weight */
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 0.9rem; /* Match original font size */
    letter-spacing: 0.15em; /* Match original letter spacing */
    text-transform: uppercase; /* Match original text transform */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-share-btn:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.sidebar-share-btn.copied {
    background: rgba(46, 139, 87, 0.15);
    color: #81C784;
    border-color: #81C784;
    box-shadow: 0 0 20px rgba(129, 199, 132, 0.2);
    pointer-events: none;
}

.sidebar-share-btn.copied::after {
    display: none;
}

/* --- LITERARY NEXT & PREVIOUS TWIN-CARDS --- */
.read-next-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    width: 100%;
    gap: 1.25rem;
}

.read-next-wrapper.align-right {
    justify-content: flex-end;
}

.read-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.35rem;
    background: rgba(12, 17, 24, 0.65);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 8px;
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    font-family: var(--font-main);
    transition: all 0.35s ease;
    flex: 1;
    max-width: 48%;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.read-next-btn i {
    color: #FFD700;
    font-size: 0.82rem;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .read-next-btn:hover {
        background: rgba(18, 24, 34, 0.85);
        border-color: rgba(255, 215, 0, 0.6);
        color: #FFD700;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 215, 0, 0.18);
        transform: translateY(-2px);
    }
    .read-next-btn:hover i.fa-arrow-right {
        transform: translateX(4px);
    }
    .read-next-btn:hover i.fa-arrow-left {
        transform: translateX(-4px);
    }
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(10, 15, 20, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    color: #FFD700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 998; /* Below ribbon but above content */
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

/* --- POEM SPECIFIC STYLES --- */
.poem-content > * {
    margin-bottom: 2.5rem;
}

.poem-content .poem-closing,
.reading-text .poem-closing {
    font-style: italic; 
    color: #FFD700;
    margin-top: 3rem;
}

.reading-divider {
    border: 0; 
    height: 1px; 
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent); 
    margin: 4rem 0 2rem;
}

/* =========================================
   SUBSCRIBE ENGINE (Homepage)
   ========================================= */
#subscribe-engine {
    margin-top: 5rem;
    margin-bottom: 3.5rem;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

#subscribe-engine .glass-panel {
    width: 100%;
    max-width: 520px;
    text-align: center;
    padding: 2.4rem 2rem;
}

.accent-line {
    width: 40px;
    height: 2px;
    background: #FFD700;
    margin: 0 auto 1.2rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#subscribe-engine h2 {
    font-size: 1.6rem;
    color: #FFD700;
    margin-bottom: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

#subscribe-engine p {
    color: #aaa;
    margin-bottom: 1.8rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

#subscribe-engine .quote-text {
    font-size: 0.95rem;
    letter-spacing: normal; /* Reset from main quote style */
    line-height: 1.6;
}

#silent-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

#silent-subscribe-form input[type="email"],
#silent-subscribe-form input[type="text"]:not(#bot-trap) {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    color: #fff;
    width: 100%;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    border-radius: 0;
    outline: none;
    box-sizing: border-box;
}

#silent-subscribe-form input[type="email"]:hover,
#silent-subscribe-form input[type="text"]:not(#bot-trap):hover {
    border-bottom-color: rgba(255, 215, 0, 0.75);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.12);
}

#silent-subscribe-form input[type="email"]::placeholder,
#silent-subscribe-form input[type="text"]:not(#bot-trap):placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    font-family: var(--font-main);
}

#silent-subscribe-form input[type="email"]:focus,
#silent-subscribe-form input[type="text"]:not(#bot-trap):focus {
    border-bottom-color: #FFD700;
    background: rgba(255, 215, 0, 0.06);
    box-shadow: 0 1px 0 0 rgba(255, 215, 0, 0.8), 0 6px 16px rgba(255, 215, 0, 0.2);
}

#silent-subscribe-form button {
    background: #FFD700;
    color: #050608;
    border: none;
    padding: 0.75rem 2rem;
    font-family: 'Spectral', serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s ease;
    margin-top: 0.5rem;
    align-self: center;
    width: 100%;
    max-width: 190px;
}

#subscribe-engine .subscribe-card {
    /* Apply hover styles statically */
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.3);
    transform: none !important; /* Prevent lift from JS and parallax */
    cursor: default;
    background: rgba(10, 15, 20, 0.65);
}

/* Override the hover state to do nothing */
#subscribe-engine .subscribe-card:hover {
    border-color: #FFD700; /* Keep same */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.3); /* Keep same */
    transform: none !important; /* Keep same */
    background: rgba(10, 15, 20, 0.65); /* Match the general hover background */
}

/* Disable the mouse-follow glow */
#subscribe-engine .subscribe-card::after {
    display: none !important;
}


@media (hover: hover) and (pointer: fine) {
  #silent-subscribe-form button:hover {
      background: #fff;
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
      transform: translateY(-2px);
  }
}

/* Success Message State */
.subscribe-success {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    transform: scale(0.9);
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    text-align: center;
}

.subscribe-success p {
    font-size: 1.5rem !important;
    color: #FFD700 !important;
    margin: 0 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Active State Classes (Triggered by JS) */
.glass-panel.submitted #silent-subscribe-form {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.glass-panel.submitted .subscribe-success {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* =========================================
   ABOUT PAGE CARD
   ========================================= */
.contact-email-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.contact-email-link:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Sleek Contact Badge for About Page */
.contact-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 2rem !important;
    max-width: 600px;
    width: 100%;
    border-radius: 16px !important;
    text-align: center;
}

.about-card {
    padding: 2.8rem 3.2rem !important;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .reading-container.container-centered {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .about-card {
        padding: 2rem 1.5rem !important;
        width: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        border: 1px solid rgba(255, 215, 0, 0.5) !important;
        margin: 0 !important;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.1) !important;
        min-width: 100% !important;
    }

    .contact-badge {
        order: 3; /* Forces contact badge below the reading-main (order: 1) */
    }

    /* Disable hover on contact email on mobile */
    .contact-email-link:hover {
        color: #e0e0e0 !important;
        text-shadow: none !important;
    }
}

/* --- MOBILE TOC (Divine Love Page) --- */
.mobile-toc-card {
    display: none; /* Hidden on Desktop */
}

@media (max-width: 900px) {
    .mobile-toc-card {
        display: block;
        width: 92%;
        margin: 0 auto 1.75rem auto;
        padding: 1.25rem 1.25rem;
        background: rgba(6, 10, 14, 0.76);
        border: 1px solid rgba(255, 215, 0, 0.22);
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        /* Order 0 by default, so it sits above Content (Order 1) and Sidebar (Order 2) */
    }
    .desktop-only-toc {
        display: none;
    }
}

/* --- MOBILE READING TIME --- */
.mobile-reading-time { display: none; }

@media (max-width: 900px) {
    .mobile-reading-time {
        display: block;
        color: #FFD700;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        opacity: 0.9;
        order: -5; /* Ensure it appears at the very top */
        width: 100%;
        padding: 0 1.5rem;
    }
    .sidebar-reading-time {
        display: none !important;
    }
    .page-title { 
        font-size: 1.42rem !important; /* Scaled mobile title with celestial glow */
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.22) !important;
    }
    .page-intro.reading-layout::after {
        max-width: 82% !important;
        margin: 2.5rem auto 0 auto !important;
    }
    .reading-container.reading-layout {
        margin-top: 3rem !important;
    }
}

/* =========================================
   REUSABLE UTILITY CLASSES (Replaced Inline Styles)
   ========================================= */
.content-heading,
.reading-text h2,
.reading-text h3 {
    color: #FFD700;
    margin-top: 2.8rem;
    margin-bottom: 1.1rem;
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.04em;
}
.about-card h3.content-heading {
    margin-top: 2.2rem; /* About page specific margin */
}

.sub-heading {
    color: #fff;
    margin-top: 1.8rem;
    margin-bottom: 0.85rem;
    font-size: 1.15rem;
}

.earth-italic {
    font-style: italic;
    color: var(--color-earth);
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}
.about-list li {
    margin-bottom: 1.5rem;
}
.about-list strong {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.about-list strong.earth { color: var(--color-earth); }
.about-list strong.fire { color: var(--color-fire); }
.about-list strong.water { color: var(--color-water); }

.author-signoff {
    margin-top: 3rem;
    font-size: 1.3rem;
    font-style: italic;
    color: #fff;
    text-align: center;
}
.highlight-gold {
    color: #FFD700;
}

.reading-meta-block {
    display: block;
    margin-bottom: 2rem;
}
.reading-meta-block.earth { color: var(--color-earth); }
.reading-meta-block.fire { color: var(--color-fire); }
.reading-meta-block.water { color: var(--color-water); }

.coming-soon-text {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cursor-default {
    cursor: default;
}

.showcase-solo-card {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.birthday-note {
    font-size: 0.85em;
    text-transform: none;
    font-style: italic;
    opacity: 0.9;
    margin-left: 5px;
    color: #FFD700;
}

.inline-quote {
    margin: 2rem 0;
    padding: 0.4rem 0 0.4rem 1.4rem;
    border-left: 3px solid var(--color-earth);
    font-size: 0.96rem;
    line-height: 1.75;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
}
.inline-quote.water { border-left-color: var(--color-water); }

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    margin: 4rem 0 2rem;
}

.read-next-single {
    max-width: 80%;
}

.read-next-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.sidebar-back-link {
    margin-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
    list-style: none;
    display: flex;
    justify-content: flex-start;
}
.sidebar-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.68rem !important;
    font-family: var(--font-main);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sidebar-back-link a i {
    font-size: 0.62rem;
    margin-right: 0;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.45);
}
.sidebar-back-link a.fire {
    border-color: rgba(229, 115, 115, 0.25) !important;
    color: rgba(229, 115, 115, 0.85) !important;
}
.sidebar-back-link a.earth {
    border-color: rgba(129, 199, 132, 0.25) !important;
    color: rgba(129, 199, 132, 0.85) !important;
}
.sidebar-back-link a.water {
    border-color: rgba(100, 181, 246, 0.25) !important;
    color: rgba(100, 181, 246, 0.85) !important;
}
@media (hover: hover) and (pointer: fine) {
    .sidebar-back-link a:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 215, 0, 0.35) !important;
        color: #fff !important;
        transform: translateX(-2px);
    }
    .sidebar-back-link a:hover i {
        transform: translateX(-2px);
        color: #FFD700 !important;
    }
}

.sidebar-title.gold { color: #FFD700; }
.sidebar-title.mt-2 { margin-top: 2rem; }

.about-contact-text {
    color: #e0e0e0; 
    font-size: 0.95rem; 
    font-style: italic;
}

.legal-email-link {
    color: #FFD700; 
    text-decoration: none;
}

/* =========================================
   BRAND & CONTENT PROTECTION
   ========================================= */
/* Prevent text selection on brand and titles */
h1, h2, h3, h4,
.page-title,
.item-title,
.card-title,
.category-heading,
.masthead-brand,
.nav-logo,
.reading-meta-block {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Prevent image dragging across all images (logo, thumbnails, background planets) */
img,
.nav-logo img,
.brand-logo img,
.planet {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.nav-logo img {
    pointer-events: none; /* Clicks pass to parent link; image cannot be dragged or copied */
}


/* =========================================
   PUBLIC POLICIES & LEGAL PAGES
   ========================================= */
.policy-card {
    padding: 3rem 3.5rem !important;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    line-height: 1.8;
}

/* Allow text selection on policy pages for legal reference and reader accessibility */
.policy-card .reading-text,
.policy-text {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.policy-meta-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 999px;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.policy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.policy-section h2 {
    color: #FFD700;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 0;
    margin-bottom: 1rem;
}

.policy-section h3 {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 1.6rem;
    margin-bottom: 0.75rem;
}

.policy-section p {
    color: #d8dde6;
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.policy-section ul,
.policy-section ol {
    color: #d8dde6;
    padding-left: 1.4rem;
    margin-bottom: 1.4rem;
}

.policy-section li {
    margin-bottom: 0.65rem;
    line-height: 1.7;
}

.policy-callout {
    background: rgba(255, 215, 0, 0.04);
    border-left: 3px solid #FFD700;
    padding: 1.25rem 1.6rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.policy-callout p {
    margin-bottom: 0;
    font-size: 0.96rem;
    color: #f0f3f8;
}

.policy-contact-box {
    background: rgba(10, 16, 24, 0.75);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.8rem 2.2rem;
    margin-top: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.policy-contact-box h3 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.placeholder-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 215, 0, 0.12);
    border: 1px dashed rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #FFD700;
}

/* Policy & Legal Content Link Styling - Eliminates Browser Blue */
.policy-card a:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-text a:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-section a:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-contact-box a:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-callout a:not(.subscribe-btn):not(.btn):not(.legal-hub-card) {
    color: #FFD700 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 215, 0, 0.45) !important;
    text-underline-offset: 3px;
    font-weight: 500;
    display: inline !important;
    transition: all 0.25s ease !important;
}

/* Retain gold color on visited links */
.policy-card a:visited:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-text a:visited:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-section a:visited:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-contact-box a:visited:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-callout a:visited:not(.subscribe-btn):not(.btn):not(.legal-hub-card) {
    color: #FFD700 !important;
}

/* Luminous hover effect on clickable policy links */
.policy-card a:hover:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-text a:hover:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-section a:hover:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-contact-box a:hover:not(.subscribe-btn):not(.btn):not(.legal-hub-card),
.policy-callout a:hover:not(.subscribe-btn):not(.btn):not(.legal-hub-card) {
    color: #ffffff !important;
    text-decoration-color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.75), 0 0 20px rgba(255, 215, 0, 0.35) !important;
}

/* Button link hover in policy cards */
.policy-contact-box .subscribe-btn {
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
/* replaced by gold button hover */

/* Dedicated Interactive Cards for Legal Directory Hub */
.legal-hub-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.legal-hub-card {
    display: block !important;
    padding: 1.4rem 1.8rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    position: relative;
    cursor: pointer;
}

.legal-hub-card:hover {
    background: rgba(255, 215, 0, 0.06) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.2) !important;
}

.legal-hub-card .card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.legal-hub-card .card-title {
    color: #FFD700 !important;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.legal-hub-card:hover .card-title {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8) !important;
}

.legal-hub-card .card-arrow {
    color: #FFD700;
    font-size: 1.15rem;
    transition: transform 0.25s ease, color 0.25s ease !important;
}

.legal-hub-card:hover .card-arrow {
    transform: translateX(5px);
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.legal-hub-card p {
    color: #c9d2de !important;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 !important;
    text-decoration: none !important;
}

@media (max-width: 900px) {
    .policy-card {
        padding: 2.2rem 1.4rem !important;
    }
    .policy-section h2 {
        font-size: 1.22rem;
    }
    .policy-contact-box {
        padding: 1.4rem 1.2rem;
    }
}


/* ==========================================================================
   EDITORIAL & MASTHEAD HUB (ABOUT PAGE)
   ========================================================================== */
.editorial-hub-section {
    margin-top: 2.8rem;
    padding-top: 2.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.6rem 0 2rem;
}

.editorial-hub-card {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1.8rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.editorial-hub-card:hover {
    background: rgba(255, 215, 0, 0.05) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.15) !important;
}

.editorial-hub-card h4 {
    margin: 0 0 0.55rem 0;
    color: #FFD700 !important;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: color 0.25s ease;
}

.editorial-hub-card:hover h4 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.editorial-hub-card p {
    margin: 0 !important;
    color: #cbd5e1 !important;
    font-size: 0.94rem;
    line-height: 1.6;
}

.editorial-hub-card .card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #FFD700 !important;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.editorial-hub-card:hover .card-action {
    color: #ffffff !important;
    padding-left: 4px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

@media (max-width: 768px) {
    .editorial-hub-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* ==========================================================================
   HOMEPAGE FOOTER: 3-COLUMN BALANCED GRID
   ========================================================================== */
.footer-grid-layout {
    padding: 2.8rem 4rem 2rem !important;
    background: rgba(10, 15, 20, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid-container {
    max-width: 1260px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* Left Column: The Dispatch */
.footer-grid-layout .footer-catch {
    flex: none;
    max-width: 330px;
    text-align: left;
}

.footer-grid-layout .footer-catch p {
    color: #e0e0e0;
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

/* Center Column: Quote, Copyright, Legal */
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}

.footer-center .footer-quote {
    font-style: italic;
    color: #cbd5e1;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.5;
}

.footer-center .copyright {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-legal-links a:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer-legal-links .legal-dot {
    color: rgba(255, 215, 0, 0.35);
    font-size: 0.75rem;
    user-select: none;
}

/* Right Column: Navigation Rows & Socials */
.footer-grid-layout .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.7rem;
}

.footer-nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
}

.footer-nav-row a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    white-space: nowrap;
}

.footer-nav-row a:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
}

/* .footer-nav-row a.highlight-room unlocked */

.footer-nav-row .nav-dot {
    color: rgba(255, 215, 0, 0.35);
    font-size: 0.75rem;
    user-select: none;
}

.footer-nav-secondary {
    gap: 0.95rem;
}

/* Social Icons (Sleek & Smaller) */
.footer-grid-layout .footer-socials {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.footer-grid-layout .footer-socials a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-grid-layout .footer-socials a:hover {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 960px) {
    .footer-grid-layout {
        padding: 2.2rem 1.5rem 1.6rem !important;
    }
    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        text-align: center;
    }
    .footer-grid-layout .footer-catch {
        order: 1;
        margin: 0 auto;
        text-align: center;
    }
    .footer-grid-layout .footer-catch p {
        text-align: center;
    }
    /* Pages tabs & socials placed above the 'all rights reserved' / copyright colophon on mobile */
    .footer-grid-layout .footer-right {
        order: 2;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
    }
    .footer-center {
        order: 3;
        text-align: center;
    }
    .footer-nav-row {
        justify-content: center;
    }
    .footer-grid-layout .footer-socials {
        justify-content: center;
        margin-top: 0.2rem;
    }
}


/* =========================================
   HOMEPAGE PATRONAGE & SUPPORT SECTION
   ========================================= */
.home-patronage-section {
    position: relative;
    z-index: 20;
    max-width: 820px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
    text-align: center;
}

.patronage-card {
    background: rgba(14, 20, 27, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    padding: 2.8rem 2.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.patronage-card:hover {
    border-color: rgba(255, 215, 0, 0.22) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 215, 0, 0.06);
}

.patronage-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #FFD700;
    opacity: 0.85;
    font-weight: 500;
}

.patronage-title {
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
}

.patronage-text {
    font-size: 0.94rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 auto;
    max-width: 620px;
    letter-spacing: 0.02em;
}

.patronage-button {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #FFD700;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.patronage-button:hover {
    background: #FFD700;
    color: #050608;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.patronage-button .btn-arrow {
    transition: transform 0.25s ease;
}

.patronage-button:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .home-patronage-section {
        margin: 0 auto 3.5rem;
        padding: 0 1rem;
    }
    .patronage-card {
        padding: 2rem 1.5rem;
        gap: 0.9rem;
    }
    .patronage-title {
        font-size: 1.35rem;
    }
    .patronage-text {
        font-size: 0.88rem;
    }
}


/* ==========================================================================
   CONTENT SELECTION PROTECTION: FOOTER & PATRONAGE SANCTUARY
   ========================================================================== */
footer,
#footer,
.footer-grid-layout,
.footer-grid-container,
.footer-catch p,
.footer-center,
.footer-right,
.footer-quote,
.copyright,
.footer-legal-links,
.footer-nav-row,
.footer-socials,
.home-patronage-section,
#patronage-sanctuary,
.patronage-card,
.patronage-eyebrow,
.patronage-title,
.patronage-text,
.patronage-button {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Explicitly preserve selection and typing inside inputs */
footer input,
footer textarea,
.footer-grid-layout input,
.footer-grid-layout textarea,
.footer-subscribe-form input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* ==========================================================================
   GLOBAL LINK PURIFICATION: ZERO BROWSER PURPLE OR BLUE
   ========================================================================== */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease, text-decoration-color 0.25s ease;
}

a:visited {
    color: inherit;
}

/* Navigation & Directory Links: Retain clean palette on visited when not active */
.directory-tier a:not(.active):visited {
    color: rgba(255, 255, 255, 0.72) !important;
    text-shadow: none !important;
}
.mobile-nav-overlay a:not(.active):visited {
    color: #e0e0e0 !important;
    text-shadow: none !important;
}

/* Hover for desktop ribbon directory tabs (active and non-active, visited or not) */
@media (hover: hover) and (min-width: 901px) {
    .directory-tier a:hover,
    .directory-tier a:visited:hover {
        color: #FFD700 !important;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
    }
}

/* ==========================================================================
   RIBBON HEADER ACTIVE TAB & HOME ICON GOLDEN GLOW
   Guarantees active status always glows in radiant Dendra Folio Gold
   ========================================================================== */
.directory-tier a.active,
.directory-tier a.active:visited,
.directory-tier a.active:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
    font-weight: 500 !important;
}

.home-icon.active,
.home-icon.active:visited,
.tier-left .home-icon.active,
.tier-left .home-icon.active:visited,
.mobile-home-icon.active,
.mobile-home-icon.active:visited {
    color: #FFD700 !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.85), 0 0 22px rgba(255, 215, 0, 0.45) !important;
}

/* Desktop Only: Home Icon Hover Glow */
@media (hover: hover) and (min-width: 901px) {
    .home-icon:hover,
    .tier-left .home-icon:hover {
        color: #FFD700 !important;
        text-shadow: 0 0 12px rgba(255, 215, 0, 0.85), 0 0 22px rgba(255, 215, 0, 0.45) !important;
    }
}

/* Mobile Nav Overlay: Active Tab Glow */
.mobile-nav-overlay a.active,
.mobile-nav-overlay a.active:visited {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
}

/* ==========================================================================
   FOOTER NAVIGATION ACTIVE TAB & HOVER GOLDEN GLOW
   ========================================================================== */
.footer-nav-row a:not(.active):visited {
    color: rgba(255, 255, 255, 0.75) !important;
    text-shadow: none !important;
}

/* Desktop Only: Footer Navigation Hover Glow */
@media (hover: hover) and (min-width: 901px) {
    .footer-nav-row a:hover,
    .footer-nav-row a:visited:hover {
        color: #FFD700 !important;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
    }
}

.footer-nav-row a.active,
.footer-nav-row a.active:visited,
.footer-nav-row a.active:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
    font-weight: 500 !important;
}

.footer-legal-links a:visited {
    color: rgba(255, 255, 255, 0.55) !important;
}
.footer-socials a:visited {
    color: rgba(255, 255, 255, 0.65) !important;
}
.legal-hub-card:visited .card-title {
    color: #FFD700 !important;
}
.legal-hub-card:visited .card-arrow {
    color: #FFD700 !important;
}
.editorial-hub-card:visited h4 {
    color: #FFD700 !important;
}
.editorial-hub-card:visited p {
    color: #cbd5e1 !important;
}
.editorial-hub-card:visited .card-action {
    color: #FFD700 !important;
}
.contact-email-link:visited {
    color: #e0e0e0 !important;
}

/* ==========================================================================
   THE DENDRA FOLIO GOLDEN MARK & POLICY PAGE UNDERLINE RULES
   Underlines are strictly confined to policy/legal pages (AI, Privacy, Terms, Editorial, etc.)
   Sidebars, TOCs, and back links are strictly non-underlined.
   ========================================================================== */

/* Policy & Legal Content Link Styling - Luminous Gold with Underline */
body.legal-page .reading-text a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-card a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-text a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-section a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-contact-box a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-callout a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-card a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-text a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-section a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-contact-box a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-callout a:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card) {
    color: #FFD700 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 215, 0, 0.45) !important;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: all 0.25s ease !important;
}

body.legal-page .reading-text a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-card a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-text a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-section a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-contact-box a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-callout a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-card a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-text a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-section a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-contact-box a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-callout a:visited:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card) {
    color: #FFD700 !important;
    text-decoration-color: rgba(255, 215, 0, 0.45) !important;
}

body.legal-page .reading-text a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-card a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-text a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-section a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-contact-box a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
body.legal-page .policy-callout a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-card a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-text a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-section a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-contact-box a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card),
.policy-callout a:hover:not(.btn):not(.subscribe-btn):not(.legal-hub-card):not(.editorial-hub-card) {
    color: #ffffff !important;
    text-decoration-color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.75), 0 0 20px rgba(255, 215, 0, 0.35) !important;
}

/* About Page & General Editorial Inline Links - Luminous Gold, NO Underline on Resting */
.about-card p a:not(.btn):not(.editorial-hub-card),
.about-card li a:not(.btn):not(.editorial-hub-card),
.editorial-hub-section p a:not(.editorial-hub-card):not(.btn),
.contact-badge a:not(.social-icon),
.contact-email-link {
    color: #FFD700 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.25s ease !important;
}

.about-card p a:visited:not(.btn):not(.editorial-hub-card),
.about-card li a:visited:not(.btn):not(.editorial-hub-card),
.editorial-hub-section p a:visited:not(.editorial-hub-card):not(.btn),
.contact-badge a:visited:not(.social-icon),
.contact-email-link:visited {
    color: #FFD700 !important;
    text-decoration: none !important;
}

.about-card p a:hover:not(.btn):not(.editorial-hub-card),
.about-card li a:hover:not(.btn):not(.editorial-hub-card),
.editorial-hub-section p a:hover:not(.editorial-hub-card):not(.btn),
.contact-badge a:hover:not(.social-icon),
.contact-email-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.75) !important;
    text-decoration: underline !important;
    text-decoration-color: #FFD700 !important;
}

/* ABSOLUTE REMOVAL OF UNDERLINES: Sidebars, Tables of Contents, and Back-to-Page Links */
.reading-sidebar a,
.sidebar-list a,
.sidebar-list li a,
.desktop-only-toc a,
.mobile-toc-card a,
.mobile-reading-companion a,
.sidebar-back-link a,
.sidebar-back-link li a,
li.sidebar-back-link a,
.back-to-top-btn,
a.back-to-top-btn,
#back-to-top,
.sidebar-share-btn {
    text-decoration: none !important;
}

.reading-sidebar a:hover,
.sidebar-list a:hover,
.sidebar-list li a:hover,
.desktop-only-toc a:hover,
.mobile-toc-card a:hover,
.mobile-reading-companion a:hover,
.sidebar-back-link a:hover,
li.sidebar-back-link a:hover,
.back-to-top-btn:hover,
a.back-to-top-btn:hover,
#back-to-top:hover {
    text-decoration: none !important;
}


/* ==========================================================================
   GLOBAL CONTENT SELECTION PROTECTION: CONFINED EXCLUSIVELY TO LEGAL PAGES
   Removes text selection across the header, homepage, cards, reading text, etc.
   ========================================================================== */
*, *::before, *::after {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Explicitly enable text selection ONLY on Legal & Policy pages */
body.legal-page,
body.legal-page *,
body.policy-page,
body.policy-page *,
.policy-page,
.policy-page *,
.policy-container,
.policy-container *,
.policy-card,
.policy-card *,
.policy-text,
.policy-text *,
.policy-section,
.policy-section *,
.legal-hub-container,
.legal-hub-container * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* Allow typing and selection in form inputs and textareas across the entire site */
input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* ==========================================================================
   MUSEUM STAGE CARD: GRADIENT FADE TOWARDS THE RIGHT
   ========================================================================== */
.museum-stage .stage-content {
    background: linear-gradient(90deg, rgba(10, 15, 20, 0.78) 0%, rgba(10, 15, 20, 0.45) 55%, rgba(10, 15, 20, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0) 100%);
    padding-right: 3.5rem !important;
}

@media (hover: hover) and (pointer: fine) {
    .museum-stage .stage-content:hover {
        border-color: rgba(255, 215, 0, 0.6) !important;
        box-shadow: -8px 14px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 215, 0, 0.2) !important;
        transform: translateY(-3px);
    }
}

/* ==========================================================================
   HOMEPAGE PATRONAGE CARD & SUBPAGE SHOWCASE UNIFICATION
   Ensures all cards across home and room pages share identical visual DNA
   ========================================================================== */
.patronage-showcase-card {
    max-width: 820px;
    margin: 0 auto;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px !important;
    padding: 2.2rem 2.2rem !important;
}

.patronage-showcase-card:hover {
    border-color: rgba(255, 215, 0, 0.65) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(255, 215, 0, 0.32) !important;
    transform: translateY(-5px);
    background: rgba(10, 15, 20, 0.65) !important;
}

/* Room Page Featured Grid Layouts */
.prose-grid-room,
.verse-grid-room {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
    gap: 1.8rem !important;
    max-width: 1140px !important;
    margin: 0 auto 4.5rem !important;
    padding: 0 1.5rem !important;
}

.tales-grid-room {
    display: flex !important;
    justify-content: center !important;
    max-width: 1140px !important;
    margin: 0 auto 4.5rem !important;
    padding: 0 1.5rem !important;
}

.tales-grid-room .showcase-card {
    width: 100% !important;
    max-width: 780px !important;
}

/* Subpage Hover Theme Accents matching Homepage */
@media (hover: hover) and (pointer: fine) {
    .prose-grid-room .showcase-card:hover,
    body:has(.bg-essays) .showcase-card:hover {
        border-color: rgba(129, 199, 132, 0.65) !important;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(129, 199, 132, 0.32) !important;
        transform: translateY(-5px) !important;
        background: rgba(10, 15, 20, 0.65) !important;
    }

    .verse-grid-room .showcase-card:hover,
    body:has(.bg-poems) .showcase-card:hover {
        border-color: rgba(229, 115, 115, 0.65) !important;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(229, 115, 115, 0.32) !important;
        transform: translateY(-5px) !important;
        background: rgba(10, 15, 20, 0.65) !important;
    }

    .tales-grid-room .showcase-card:hover,
    body:has(.bg-fiction) .showcase-card:hover {
        border-color: rgba(100, 181, 246, 0.65) !important;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(100, 181, 246, 0.32) !important;
        transform: translateY(-5px) !important;
        background: rgba(10, 15, 20, 0.65) !important;
    }

    .showcase-card:hover .read-link {
        color: #ffffff !important;
        padding-left: 4px;
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    }
}

/* Subtle Archive Cards across Rooms */
.content-archive .card-simple {
    background: rgba(10, 15, 20, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    padding: 1.4rem 1.6rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.3s ease !important;
}

@media (hover: hover) and (pointer: fine) {
    .content-archive .card-simple:not(.cursor-default):hover {
        transform: translateY(-3px) !important;
        background: rgba(10, 15, 20, 0.6) !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7) !important;
    }
}


/* ==========================================================================
   SUPPORT PAGE PAYMENT BUTTON HOVER FIX
   Prevents whiteout; provides crisp, radiant gold background with black text
   ========================================================================== */
.policy-contact-box .subscribe-btn {
    background: rgba(255, 215, 0, 0.12) !important;
    border: 1px solid rgba(255, 215, 0, 0.6) !important;
    color: #FFD700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.85rem 2.2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    text-decoration: none !important;
}

.policy-contact-box .subscribe-btn .placeholder-pill {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #FFD700 !important;
    border: 1px dashed rgba(255, 215, 0, 0.5) !important;
    transition: all 0.3s ease !important;
}

.policy-contact-box .subscribe-btn:hover {
    background: #FFD700 !important;
    color: #050608 !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 8px 25px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
}

.policy-contact-box .subscribe-btn:hover,
.policy-contact-box .subscribe-btn:hover * {
    color: #050608 !important;
    background: transparent !important;
    border-color: rgba(5, 6, 8, 0.45) !important;
    text-shadow: none !important;
}

/* ==========================================================================
   HOMEPAGE PATRONAGE CARD SPACING & HOVER GAP
   Prevents button from creeping into the paragraph text on hover
   ========================================================================== */
.patronage-showcase-card {
    max-width: 820px;
    margin: 0 auto;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px !important;
    padding: 2.2rem 2.4rem !important;
    display: flex !important;
    flex-direction: column !important;
}

.patronage-showcase-card .item-excerpt {
    margin: 0.6rem 0 1.6rem 0 !important;
    line-height: 1.75 !important;
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.015em !important;
}

.patronage-showcase-card .read-link {
    margin-top: 1.2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: #FFD700 !important;
    font-weight: 500 !important;
    transition: color 0.3s ease, padding-left 0.3s ease !important;
}

.patronage-showcase-card:hover .read-link {
    transform: none !important;
    padding-left: 6px !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7) !important;
}


/* ==========================================================================
   COMPREHENSIVE MOBILE & TOUCH-DEVICE HOVER NEUTRALIZATION
   Strictly distinguishes between desktop (mouse/trackpad) and mobile/touch devices.
   Eliminates all sticky hover states, glows, lifts, and shifts on mobile screens & touchpads.
   ========================================================================== */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
    /* 1. Ribbon & Mobile Navigation */
    .mobile-home-icon:hover,
    .mobile-home-icon:visited:hover {
        color: #ffffff !important;
        text-shadow: none !important;
    }
    .mobile-home-icon.active:hover {
        color: #FFD700 !important;
        text-shadow: 0 0 12px rgba(255, 215, 0, 0.85), 0 0 22px rgba(255, 215, 0, 0.45) !important;
    }
    .menu-toggle:hover {
        color: #ffffff !important;
        text-shadow: none !important;
        transform: none !important;
    }
    .nav-logo:hover img,
    .tier-center.nav-logo:hover img {
        transform: none !important;
        filter: none !important;
    }
    .nav-logo:hover .masthead-brand,
    .tier-center.nav-logo:hover .masthead-brand {
        color: #ffffff !important;
        text-shadow: none !important;
    }
    .mobile-nav-overlay a:hover,
    .mobile-nav-overlay a:visited:hover {
        color: #e0e0e0 !important;
        text-shadow: none !important;
        background: transparent !important;
    }
    .mobile-nav-overlay a.active:hover {
        color: #FFD700 !important;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
    }
    .mobile-subscribe-btn:hover,
    .mobile-sign-in-btn:hover {
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #ffffff !important;
    }

    /* 2. Footer Navigation, Legal Links & Socials */
    .footer-nav-row a:not(.active):hover,
    .footer-nav-row a:not(.active):visited:hover {
        color: rgba(255, 255, 255, 0.75) !important;
        text-shadow: none !important;
    }
    .footer-nav-row a.active:hover {
        color: #FFD700 !important;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.45) !important;
    }
    .footer-legal-links a:hover,
    .footer-legal-links a:visited:hover {
        color: rgba(255, 255, 255, 0.55) !important;
        text-shadow: none !important;
        text-decoration: none !important;
    }
    .footer-grid-layout .footer-socials a:hover,
    .footer-socials a:hover,
    .footer-socials a:visited:hover {
        color: rgba(255, 255, 255, 0.65) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        background: rgba(255, 255, 255, 0.04) !important;
        transform: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    .footer-socials a[href*="instagram"]:hover,
    .footer-socials a[href*="x.com"]:hover,
    .footer-socials a[href*="linkedin"]:hover,
    .footer-socials a[href^="mailto"]:hover {
        color: rgba(255, 255, 255, 0.65) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        background: rgba(255, 255, 255, 0.04) !important;
        transform: none !important;
        box-shadow: none !important;
    }
    .footer-subscribe-form button:hover {
        background: transparent !important;
        color: #ffffff !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .footer-subscribe-form input[type="text"]:not(.bot-trap):hover,
    .footer-subscribe-form input[type="email"]:not(.bot-trap):hover {
        border-color: rgba(255, 255, 255, 0.12) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        box-shadow: none !important;
    }

    /* 3. Cards, Panels, Highlights & Displays */
    .showcase-card:hover,
    .glass-panel:hover,
    .card-simple:hover,
    .content-card:hover,
    .solid-glass:hover,
    .about-card:hover,
    .policy-card:hover,
    .patronage-card:hover,
    .editorial-hub-card:hover,
    .legal-hub-card:hover,
    .prose-grid .showcase-card:hover,
    .verse-grid .showcase-card:hover,
    .tales-grid .showcase-card:hover,
    a.solid-glass:hover {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }
    .museum-item:hover,
    .stage-content:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .museum-item:hover h2 {
        text-shadow: none !important;
        color: inherit !important;
    }
    .museum-item:hover::before {
        box-shadow: none !important;
        width: 0 !important;
    }
    .stage-content:hover .stage-enter-pill {
        transform: none !important;
        opacity: 0 !important;
    }
    .quote-glass:hover {
        border-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
    }

    /* 4. Action Buttons & Read Links */
    .read-link:hover,
    .read-button:hover,
    .card-anchor:hover .read-link,
    .card-action:hover,
    .patronage-button:hover,
    .btn:hover,
    .subscribe-btn:hover,
    .sign-in-btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .patronage-button:hover .btn-arrow {
        transform: none !important;
    }
    .back-to-top-btn:hover,
    a.back-to-top-btn:hover,
    #back-to-top:hover {
        transform: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }
    .sidebar-share-btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* 5. Inline Text Links on Mobile: Maintain clean gold without sticky white blowout */
    body.legal-page .reading-text a:hover,
    body.legal-page .policy-card a:hover,
    body.legal-page .policy-text a:hover,
    body.legal-page .policy-section a:hover,
    body.legal-page .policy-contact-box a:hover,
    body.legal-page .policy-callout a:hover,
    .about-card p a:hover,
    .about-card li a:hover,
    .editorial-hub-section p a:hover,
    .contact-badge a:hover,
    .contact-email-link:hover {
        color: #FFD700 !important;
        text-shadow: none !important;
    }
}
