html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

body {
    opacity: 0;
    transition: opacity 2s ease;
}

body.loaded {
    opacity: 1;
}

canvas {
    display: block;
    z-index: -1;
}

/* ADD THIS NEW CSS RULE: */
#p5-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* === UI LAYER === */
.overlay-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 10;
    display: flex;
    flex-direction: column;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    pointer-events: none;
    color: #decdba;
    text-shadow: 1px 1px 2px #000000;
}

/* HEADER */
.overlay-ui header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem;
    background: transparent;
    pointer-events: auto;
}

.logo {
    font-weight: bold;
}

.logo img {
    height: 36px;
    width: auto;
    transition: all 0.3s ease;
    opacity: 0.6;
}

/* 
~~~~~~~~~~~~~~~~~~~~~~~~
LOGO - GLOWING
~~~~~~~~~~~~~~~~~~~~~~~~

.logo:hover img {
    filter: drop-shadow(0 0 5px rgba(236, 227, 217, 0.5)) drop-shadow(0 0 10px rgba(230, 200, 167, 0.4));
}
*/


/* 
~~~~~~~~~~~~~~~~~~~~~~~~
LOGO - OPACITY
~~~~~~~~~~~~~~~~~~~~~~~~
*/
.logo:hover img {
    opacity: 0.5;
}


/* MENU */
header nav {
    position: fixed;
    right: 2rem;
    display: flex;
    align-items: center;
   /* 
   background: rgba(20, 18, 16, 0.5);
   background: rgba(0, 0, 0, 0);
   PROBLEMATIC CODE. IF ACTIVE THE NAV BAR IS ALL FROSTED
   BUT THE SUBMENU PANNEL IS NOT
   backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px); 
    */
    border-radius: 3px;
    padding: 0.5rem 0.75rem;
    z-index: 1000;
    gap: 0.5rem;
}


.menu-item {
    position: relative;
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* CRITICAL: Keep submenu visible when hovering directly over it */
.menu-item .submenu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.menu-item > a {
    color: #d0c5b8;
    text-decoration: none;
    padding: 0.75rem 0.75rem;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 300;
    white-space: nowrap;
    border-radius: 3px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
   /* letter-spacing: 0.02em;
    position: relative; 
    border: 1px solid transparent; */
}


/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SOFT MENU HOVER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

.menu-item > a:hover {
    color: #f5f2ee;
    background: rgba(230, 200, 167, 0.1);
    
}


/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLOWING MENU HOVER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.menu-item > a:hover {
    text-shadow:
        0 0 6px #ece3d9,
        0 0 18px rgba(208, 197, 184, 0.7),
        0 0 28px rgba(230, 200, 167, 0.5);
    color: #fff;
    box-shadow: 0 0 8px rgba(230, 200, 167, 0.3);
    border-color: rgba(230, 200, 167, 0.2); 
}
*/



/* ===================================================================
   ORGANIC VERTICAL SUBMENU WITH INTELLIGENT POSITIONING
   ================================================================== */

.submenu {
    position: absolute;
    top: 100%;
    left: 0;

    background: rgba(230, 200, 167, 0.02);
    /*
    background: rgba(0, 0, 0, 0.1);
    */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    
    display: flex;
    flex-direction: column;
    padding: 0.2rem 0.2rem;
    margin: 0;
    border-radius: 3px;
    
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /*
    transform: translateY(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    */
    transition: all 0.3s ease;
    z-index: 1001;
}



.submenu a {
    padding: 0.4rem 0.8rem;
    color: #d0c5b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    border-radius: 3px;
/* 
    position: relative;
    overflow: hidden;
    border: 1px solid transparent; Invisible border always present */
}



/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SOFT SUBMENU HOVER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

.submenu a:hover {
   color: #f5f2ee;
    background: rgba(230, 200, 167, 0.08);
}
    

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLOWING SUBMENU HOVER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.submenu a:hover {
    text-shadow:
        0 0 6px #ece3d9,
        0 0 18px rgba(208, 197, 184, 0.7),
        0 0 28px rgba(230, 200, 167, 0.5);
    color: #fff;
    box-shadow: 0 0 8px rgba(230, 200, 167, 0.3);
    border-color: rgba(230, 200, 167, 0.2); 
}
*/


/* Subtle connector line

.submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

 */





/* CRITICAL FIX: Proper hover states to keep submenu clickable */
.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
   /*  transform: translateY(0) scale(1);*/
}



/* 
----------------------------------------------
SCROLLBAR
------------------------------------------------
*/

/*
.content-wrapper::-webkit-scrollbar {
  width: 3px;
}

.content-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border: 0.2px solid rgba(208, 197, 184, 0.3);
  border-radius: 2px;
}


.content-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 200, 167, 0.15);
  border-color: rgba(236, 227, 217, 0.3);
}
*/


#metabolic-dashboard::-webkit-scrollbar,
.content-wrapper::-webkit-scrollbar,
#content-container .hero::-webkit-scrollbar {
  width: 3px;
}

#metabolic-dashboard::-webkit-scrollbar-track,
.content-wrapper::-webkit-scrollbar-track,
#content-container .hero::-webkit-scrollbar {
  background: transparent;
}

#metabolic-dashboard::-webkit-scrollbar-thumb,
.content-wrapper::-webkit-scrollbar-thumb,
#content-container .hero::-webkit-scrollbar {
  background: rgba(0, 0, 0, 0.1);
  border: 0.2px solid rgba(208, 197, 184, 0.3);
  border-radius: 2px;
}

#metabolic-dashboard::-webkit-scrollbar-thumb:hover,
.content-wrapper::-webkit-scrollbar-thumb:hover,
#content-container .hero::-webkit-scrollbar {
  background: rgba(230, 200, 167, 0.15);
  border-color: rgba(236, 227, 217, 0.3);
}



/* FOOTER */
.overlay-ui footer {
    text-align: right;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    pointer-events: auto;
}

.overlay-ui footer a {
    color: #decdba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.overlay-ui footer a:hover {
    color: #c7c3bd;
}

/*
.overlay-ui footer a:hover {
    text-decoration: underline;
}
*/




/* 
================================================================== 
ECO MODE TOGGLE BUTTON
================================================================== 
*/

.eco-toggle-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: system-ui, sans-serif;
    text-align: right;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}



/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NEW ECO-BUTTON
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

/* --- New Eco-Mode Button & Message --- */
.eco-button {
    /* This mimics your old .eco-toggle style */
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(20, 18, 16, 0.3);
    border: 1px solid rgba(236, 227, 217, 0.2);
    backdrop-filter: blur(2px);
    color: #decdba;
    transition: all 0.4s ease;
    cursor: pointer;
    font-family: system-ui, sans-serif; /* Ensure font consistency */
}

.eco-button:hover {
    background: rgba(6, 19, 168, 0.1);
        border-color: rgba(236, 227, 217, 0.3);
}

/* NEW: Style for the button when the system is resting */
.eco-button:hover {
    background: rgba(230, 200, 167, 0.1);
        border-color: rgba(236, 227, 217, 0.3);
}

.eco-message {
    color: rgba(222, 205, 186, 0.7);
    font-family: monospace;
    font-size: 12px;
    text-align: right;
    min-height: 14px;
    margin-top: 8px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out;
}


/* NEW: Style for the button during its cooldown/waiting period */
.eco-button.waiting {
    opacity: 0.3;
    cursor: default;
}

.eco-button.pulsing {
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0% {
    background-color: rgba(20, 18, 16, 0.3);
    border-color: rgba(236, 227, 217, 0.2);
  }
  50% {
    background-color: rgba(230, 200, 167, 0.15); /* Warmer background */
    border-color: rgba(236, 227, 217, 0.4);   /* Brighter border */
  }
  100% {
    background-color: rgba(20, 18, 16, 0.3);
    border-color: rgba(236, 227, 217, 0.2);
  }
}

.eco-left-side {
    padding-left: 2rem;
text-align: left;
  font-family: monospace;
  font-size: 12px;
}

/* ✅ NEW: NARRATIVE MESSAGE STYLE */
.narrative-message {
    color: rgba(222, 205, 186, 0.7);
    min-height: 16px;
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    font-style: italic;
}

.narrative-message.visible {
    opacity: 1;
}


#interference-message {
  color: rgba(255, 255, 255, 0.7);
  min-height: 45px; /* Reserve space for 3 lines */
  margin-bottom: 10px;
  opacity: 0; /* The whole block will fade in */
  transition: opacity 0.8s ease-in-out;
}

#interference-message.visible {
  opacity: 1;
}

.interference-type {
  font-weight: bold;
  color: #decdba;
  margin-bottom: 4px; /* Added line spacing */

}

.interference-streams {
  font-style: italic;
  opacity: 0.8;
    margin-bottom: 5px; /* Added line spacing */

}

.interference-poetry {
  margin-top: 2px;
}



/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SOFT ECO-TOGGLE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.eco-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(20, 18, 16, 0.3);
    border: 1px solid rgba(236, 227, 217, 0.2);
    backdrop-filter: blur(2px);
    color: #ece3d9;
    transition: all 0.4s ease;
    cursor: pointer;
}



.eco-toggle:hover {
    background: rgba(230, 200, 167, 0.1);
}


.eco-switch {
    position: relative;
    width: 40px;
    height: 20px;
    margin-left: 10px;
}

.eco-switch input {
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    cursor: pointer;
}

.eco-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(68, 68, 68, 0.5);
    backdrop-filter: blur(1px);
    border-radius: 10px;
    transition: background 0.3s;
}

.eco-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background: #938d93;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.eco-switch input:checked+.eco-slider {
    background: #747474;
}

.eco-switch input:checked+.eco-slider::before {
    transform: translateX(20px);
    background: rgba(236, 227, 217, 1);
    backdrop-filter: blur(1px);
}
*/


.eco-link {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #aaa;
}

.eco-link a {
    color: #decdba;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.eco-link a:hover {
    color: #bdc7c1;
    text-shadow:
        0 0 5px rgba(236, 227, 217, 0.5),
        0 0 10px rgba(230, 200, 167, 0.4);
}

.eco-right-side {
    text-align: right;
}
/*
.eco-copyright {
    font-size: 12px;
    color: rgba(224, 213, 200, 0.4);
    padding-left: 2rem;
}
*/

.eco-copyright {
    font-size: 12px;
    color: rgba(224, 213, 200, 0.4);
}

.copyright-line2 {
    margin-left: 8px; /* Adds a small space */
}




#button-tooltip {
  position: fixed; /* Positions relative to the viewport, not the footer */
  background: rgba(20, 18, 16, 0.9);
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #d0c5b8;
  width: 200px;
  text-align: right;
  z-index: 100; /* Ensure it appears above other UI */
  
  /* Start hidden and ready to be controlled by JS */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}

#button-tooltip.visible {
  opacity: 0.8;
  visibility: visible;
}






/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
END OF SOFT ECO-TOGGLE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLOWING ECO-TOGGLE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.eco-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(20, 18, 16, 0.3);
    border: 1px solid rgba(236, 227, 217, 0.2);
    backdrop-filter: blur(2px);
    color: #ece3d9;
    transition: all 0.4s ease;
    cursor: pointer;
}

.eco-toggle:hover {
    box-shadow: 0 0 12px rgba(230, 200, 167, 0.2);
}

.eco-switch {
    position: relative;
    width: 40px;
    height: 20px;
    margin-left: 10px;
}

.eco-switch input {
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    cursor: pointer;
}

.eco-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(68, 68, 68, 0.5);
    backdrop-filter: blur(1px);
    border-radius: 10px;
    transition: background 0.3s;
}

.eco-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background: #938d93;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.eco-switch input:checked+.eco-slider {
    background: #747474;
}

.eco-switch input:checked+.eco-slider::before {
    transform: translateX(20px);
    background: rgba(236, 227, 217, 1);
    backdrop-filter: blur(1px);
}

.eco-link {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #aaa;
}

.eco-link a {
    color: #e0d5c8;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.eco-link a:hover {
    color: #c7c3bd;
    text-shadow:
        0 0 5px rgba(236, 227, 217, 0.5),
        0 0 10px rgba(230, 200, 167, 0.4);
}

.eco-right-side {
    text-align: right;
}

.eco-copyright {
    font-size: 14px;
    color: #e0d5c8;
    padding-left: 2rem;
}
    */



/*
=====================================================
  ✅ THE METABOLIC DASHBOARD
=====================================================
*/



/*
=====================================================
   END OF THE THE METABOLIC DASHBOARD
=====================================================
*/
    

/*
=====================================================
  ✅ NEW & FINAL STYLES FOR ALL CONTENT
=====================================================
*/

/* This makes sure all children of the overlay are clickable */
.overlay-ui > * {
    pointer-events: auto;
}

/* --- Content Area --- */
/* This is the container that holds your pages.
   It now correctly fills the space between the header and footer. */
#content-container {
    flex-grow: 1; /* This is the key that makes it flexible */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    pointer-events: auto;
}


/* --- Content Panel --- */

#content-container .hero,
.content-wrapper {
    max-height: calc(100vh - 20rem);
    font-family: Georgia, 'Times New Roman', Times, serif; 

    border-radius: 6px;                
    box-sizing: border-box;

    overflow-y: auto;    /* Enables scrolling on long content */
}



/* This keeps the snug, centered fit for the homepage hero panel */
#content-container .hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: auto; /* Overrides the default width */
    max-width: 800px;
    padding: 1.5rem 3.5rem; /* Your specific padding for the hero */
    text-align: center;

    
   /* background: rgba(20, 18, 16, 0.5); */
   /* background: rgba(230, 200, 167, 0.01); */
    background: rgba(230, 200, 167, 0.0); 
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* --- UNIQUE STYLES for the Project Content Wrapper --- */
/* Add styles HERE that should ONLY apply to the scrollable project pages. */
.content-wrapper {
    width: 80%;
    max-width: 1000px;
    padding: 3rem 4rem; /* Your specific padding for content pages */
    text-align: left;

   /* background: rgba(20, 18, 16, 0.5); */
    background: rgba(230, 200, 167, 0.03);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    margin: 1rem auto 12rem auto; 
}


.hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    opacity: 0.5;
        color: #decdba;
    margin-bottom: 0.6rem;
}

.hero .tagline {
    font-size: 1rem;
    opacity: 0.85;
    color: #decdba;
        line-height: 1.6;
    margin-bottom: 0.9rem;
}


.contemplation-space {
     /* Undo the desktop's absolute positioning context. */
    position: static;
    width: 100%;
    height: auto;

    /* Make the container ITSELF a flexbox to center its content. */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Ensure it takes up enough vertical space to actually center things. */
    min-height: 70vh;
}

/* This is the intro message, styled to be centered within its parent. */
.contemplation-intro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #d0c5b8;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  line-height: 1.6;
  z-index: 100;
  pointer-events: none;
  
  /* This will control the fade-out */
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.contemplation-intro.fade-out {
  opacity: 0;
}

.press-m {
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}


/*
=====================================================
  METABOLIC DASHBOARD STYLES 
=====================================================
*/


#metabolic-dashboard {
  position: absolute;
  top: 8rem; /* Position below the header */
  left: 2rem; /* Aligned with the logo */
  width: 500px; /* Wider to accommodate more data */
  max-height: calc(100vh - 16rem); /* Fit between header and footer */
  overflow-y: auto;
  background: rgba(230, 200, 167, 0.03);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  font-family: monospace;
  font-size: 11px;
  color: #d0c5b8;
  line-height: 1.8;
  border: 1px solid rgba(230, 200, 167, 0.05);
  display: none; /* CRITICAL: Hidden by default */
  z-index: 50;
}




.dash-line {
  border-bottom: 1px solid rgba(224, 213, 200, 0.1);
  padding: 4px 0;
  display: flex; /* Still using flexbox for alignment */
  align-items: baseline; /* Aligns text nicely on the bottom */
  flex-wrap: wrap;
}

.dash-name { 
  font-weight: bold; 
  color: #f5f2ee;
  margin-right: auto; 
  padding-right: 10px; 
}

.dash-location, .dash-separator, .dash-raw, .dash-particles, .dash-speed, .dash-brightness {
    opacity: 0.8;
    white-space: nowrap;
}

.dash-separator {
    margin: 0 0.5em;
}


/*
=====================================================
  MINIMAL CONTENT STYLE
=====================================================
*/

/* === CONTENT STYLES 1 === 
.content-wrapper h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.content-wrapper h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.content-wrapper p {
    line-height: 1.6;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.content-wrapper img,
.content-wrapper video {
    max-width: 100%;
    margin: 2rem 0;
    opacity: 0.9;
}

.content-wrapper a {
    color: #d0e0ef;
    text-decoration: none;
    border-bottom: 1px solid rgba(208, 224, 239, 0.3);
}

.content-wrapper a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

*/


/* === CONTENT STYLES 2 === */
/* --- Tighter Title Hierarchy --- */
.content-wrapper h1 {
    font-size: 2.2rem;  /* Bigger for more presence */
    margin-bottom: 0.3rem;  /* Very tight to subtitle */
    line-height: 1.1;
    font-weight: 400;  /* Lighter = more elegant */
    letter-spacing: -0.03em;  /* Tighter tracking for large text */
    opacity: 0.95;  /* Slightly softer */
}

/* Tagline/subtitle after h1 */
.content-wrapper .tagline,
.content-wrapper h1 + p {
    font-size: 1rem;  /* Slightly larger than body */
    line-height: 1.4;
    margin-bottom: 1.2rem;  /* Much tighter - was 2.5rem */
    opacity: 0.7;
    font-weight: 300;
        font-style: normal;  /* Add character */
    letter-spacing: 0.02em;  /* Slightly open */
}

/* --- Section Headers - Tighter --- */
.content-wrapper h2 {
    font-size: 1.5rem;  /* Keep readable */
    margin: 1.5rem 0 0.8rem 0;  /* MUCH tighter - was 3rem top */
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -0.01em;
        opacity: 0.9;

}


/* --- Horizontal Rules - Compact --- */
.content-wrapper hr {
    border: none;
    height: 1px;
    background: rgba(224, 213, 200, 0.15);
    margin: 1.5rem 0;  /* Reduced from 3rem */
}

/* --- Body Text - Compact --- */
.content-wrapper p {
    line-height: 1.6;  /* Tighter line height */
    margin-bottom: 0.8rem;  /* Reduced from 1.3rem */
    opacity: 0.9;
    font-size: 1rem;  /* Back to original */
    letter-spacing: normal;  /* Remove extra spacing */
        text-align: justify;  /* NEVER JUSTIFY */

}




/* --- Images - Much Tighter Spacing --- */
.content-wrapper img {
    max-width: 100%;
    margin: 1.2rem 0;  /* TIGHT - was 2.5rem */
    opacity: 0.97;
    border-radius: 4px;
    /* Subtle shadow */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


/* Full-width dramatic images */
.content-wrapper .full-width-image {
    margin-left: -4rem;
    margin-right: -4rem;
    max-width: calc(100% + 8rem);
    border-radius: 0;
}

/* --- Video Container Fix --- */
.content-wrapper .video-container {
    margin: 1.2rem 0;  /* Match image spacing */
}

.content-wrapper .video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
}

/* --- Pull Quotes / Emphasis --- */
.content-wrapper blockquote {
    font-size: 1.15rem;
    line-height: 1.6;
    font-style: italic;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(230, 200, 167, 0.2);
    opacity: 0.85;
}

/* --- Lists - Tighter --- */
.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1rem;  /* Reduced */
    padding-left: 1.5rem;  /* Less indent */
}

.content-wrapper li {
    margin-bottom: 0.4rem;  /* Tighter list items */
    line-height: 1.6;
}



/* --- Refined Link Styling --- */
.content-wrapper a {
    color: #e0d5c8;
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 213, 200, 0.3);
    transition: all 0.3s ease;
}

.content-wrapper a:hover {
    color: #f5f2ee;
    border-bottom-color: rgba(245, 242, 238, 0.6);
    opacity: 0.9;
}

/* --- Content Sections with Better Spacing --- */
.content-section {
    margin-bottom: 4rem;  /* Clear section breaks */
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(0px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.content-wrapper h2,
.content-wrapper img {
    animation: fadeInUp 0.6s ease-out;  /* Faster animation */
}


/* ==========================================
   CENTERED CONTENT PAGES STYLES
   For: contact.html, support.html, fieldnotes.html
   Philosophy: Minimal, elegant, performant
   ========================================== */


.content-wrapper.centered-content {
    text-align: center !important;  /* Center the container */
    /* Let it use the existing content-wrapper styles for consistency */
}


.centered-content h1 {
    font-size: 2rem;
    margin-top: 0 !important;
    margin-bottom: 1.2rem !important; /* Reduced from 2rem */
    font-weight: 300;
    letter-spacing: 0.05em;
        opacity: 0.9;
            text-align: center !important;  /* Center all headers */

}

.centered-content h2 {
    font-size: 1.2rem;
    margin-top: 1.5rem !important; /* Reduced from 2rem */
    margin-bottom: 0.8rem !important; /* Reduced from 1rem */
    font-weight: 400;
    letter-spacing: 0.03em;
        text-align: center !important;  /* Center all headers */

}

/* Fix paragraph spacing specifically for centered content - AGGRESSIVE OVERRIDE */
.centered-content p {
    line-height: 1.4 !important; /* Tighter line spacing */
    margin-bottom: 0.5rem !important; /* Much less space between paragraphs */
    margin-top: 0 !important; /* Remove any top margin */
        text-align: center !important;  /* Center all headers */

}

/* Intro text styling */
.centered-content .intro-text {
    font-size: 1.25rem;
    line-height: 1.5 !important; /* Tighter than 1.8 */
    margin-bottom: 1.2rem !important; /* Reduced from 2rem */
    font-weight: 300;
        text-align: center !important;  /* Center all headers */

}

/* Contact & Support pages specific */
.centered-content .contact-details {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center !important;  /* Center all headers */

}

.centered-content .contact-name {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
        text-align: center !important;  /* Center all headers */

}

.centered-content .contact-email a,
.centered-content .instagram-link a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.centered-content .contact-email a:hover,
.centered-content .instagram-link a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.centered-content .contact-phone {
    margin-top: 0.75rem;
}

/* Social section */
.centered-content .social-section {
    margin-top: 2rem !important; /* Reduced from 3rem */
}

.centered-content .social-section p {
    line-height: 1.4 !important; /* Tighter line spacing */
    margin-bottom: 0.6rem !important; /* Less space between paragraphs */
}

/* Support page specific - Nutrient streams */
.centered-content .nutrient-streams {
    margin: 2rem 0 !important; 
    padding: 1rem 2rem 1rem 6rem !important; 
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
}

.centered-content .support-list {
    list-style: none;
    padding:0;
    margin: 1rem 0 !important; /* Reduced from 1.5rem */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
        text-align: left !important;  /* Keep lists readable */

}

.centered-content .support-list li {
   margin-bottom: 0.8rem !important; /* Reduced from 1rem */
    line-height: 1.4 !important; /* Match other line heights */
    text-align: left; /* Keep text left aligned */

}

.centered-content .stream-type {
    font-weight: 400;
    display: inline; /* Changed from inline-block */
    margin-right: 0.5rem; /* Add small space after colon */
}

/* CTA section */
.centered-content .cta-section {
    margin-top: 2rem !important; /* Reduced from 3rem */
    text-align: center !important;
}

.centered-content .cta-text {
    font-size: 1rem;
    margin-bottom: 1.2rem !important; /* Reduced from 2rem */
    line-height: 1.5 !important; /* Tighter line height */
    text-align: center !important;
}

/* Coming soon page specific */
.centered-content.coming-soon .fermenting-content {
    padding: 1.5rem 0 !important; /* Reduced from 3rem */
    margin-top: 0 !important; /* Remove any top margin */
}

.centered-content.coming-soon .intro-text {
    font-size: 1.5rem;
    margin-top: 0 !important; /* Remove gap after title */
    margin-bottom: 0.8rem !important; /* Small space before next paragraph */
}

.centered-content .breath-instruction {
 margin-top: 2rem;
    font-style: italic;
    opacity: 0.75;
    font-size: 1.1rem;
    line-height: 1.8;
}


/*
=====================================================
  MENU INDEX PAGE STYLES
=====================================================
*/

.menu-list {
    margin-top: 3rem; /* Adds space after the intro paragraph */
    text-align: left; 
}

.menu-list ul {
    list-style: none; /* Removes the default bullet points */
    padding: 0;
    margin: 0;
}

.menu-list li {
    margin-bottom: 0.5rem; /* A little space between each list item */
}

.menu-list a {
    display: block; /* Makes the entire area clickable, not just the text */
    font-size: 1.8rem; /* The 'big' title font size */
    font-weight: 500;
    color: #e0d5c8;
    text-decoration: none;
    
    padding: 1rem 0.5rem; /* Vertical and horizontal padding for breathing room */
    
    /* The separator line */
    border-bottom: 1px solid rgba(224, 213, 200, 0.2); 
    
    transition: all 0.3s ease;
}

.menu-list a:hover {
    color: #f5f2ee; /* Brightens text on hover */
    border-bottom-color: rgba(245, 242, 238, 0.5); /* Makes the line more prominent on hover */
    background: rgba(230, 200, 167, 0.05); /* Adds a very subtle atmospheric glow */
}




/*
=====================================================
  MOBILE NAVIGATION - STYLE 05 ITEMS
=====================================================
*/

/*
.mobile-menu-toggle, 
.submenu-toggle, 
.menu-trigger-text, 
.mobile-side-panel, 
.menu-overlay {
    display: none;
}

.mobile-nav {
    display: none; 
}

@media (max-width: 768px) {
    header nav:not(.mobile-nav) { 
        display: none !important; 
    }
    
    .mobile-nav {
        display: flex !important;
        position: fixed;
        right: 1rem;
        align-items: center;
        border-radius: 3px;
        padding: 0.5rem 0.75rem;
        z-index: 1000;
        gap: 0.3rem;
    }
    
    .mobile-nav .menu-item > a {
        color: #d0c5b8;
        text-decoration: none;
        padding: 0.6rem 0.5rem;
        display: block;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        font-weight: 300;
        white-space: nowrap;
        border-radius: 3px;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .mobile-nav .menu-item > a:hover {
        color: #f5f2ee;
        background: rgba(230, 200, 167, 0.1);
    }
    
    .overlay-ui header {
        padding: 1.5rem 1rem;
    }
    
    .logo img {
        height: 28px;
    }

    .content-wrapper {
       width: 85%;
        margin: 2rem auto 1rem auto; 
        padding: 2rem 1.5rem;
        height: auto;
        align-self: flex-start;
    }

    .eco-toggle-container {
        padding-right: 0;
    }
}
*/

/*
=====================================================
  MOBILE NAVIGATION END - STYLE 05 ITEMS
=====================================================
*/


/*
=====================================================
  MOBILE NAVIGATION - 01C MINIMAL
=====================================================
*/


    /* Hide mobile elements on desktop */
    .mobile-menu-toggle,
    .submenu-toggle,
    .menu-trigger-text,
    .menu-close-button,
    .mobile-nav {
        display: none;
    }

    @media (max-width: 768px) {

        /* --- 1. Hide Desktop Nav & Style Mobile Trigger --- */
        header nav:not(.mobile-nav) {
            display: none;
        }

        .menu-trigger-text,
        .menu-close-button {
            display: block;
            position: fixed;
            top: 2.2rem;
            right: 2rem;
            z-index: 1002;
            cursor: pointer;
            color: #aaa;
            font-family: Verdana, Geneva, Tahoma, sans-serif;
            font-size: 0.9rem;
            padding: 0.5rem 0.75rem;
            /* border: 1px solid rgba(255, 255, 255, 0.08); */
            border-radius: 3px;
            transition: all 0.3s ease;
            backdrop-filter: blur(1px);
        }

        .menu-close-button {
            font-size: 1.5rem;
            padding: 0.2rem 0.8rem;
            opacity: 0;
        }

        /* The swap for Menu/X */
        .mobile-menu-toggle:checked ~ .menu-trigger-text {
            opacity: 0;
            pointer-events: none;
        }
        .mobile-menu-toggle:checked ~ .menu-close-button {
            opacity: 1;
        }

        /* --- 2. The Full-Screen Overlay --- */
        .mobile-nav {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1000;
            background: rgba(20, 18, 16, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }
        .mobile-menu-toggle:checked ~ .mobile-nav {
            opacity: 1;
            visibility: visible;
        }

        /* --- 3. THE CORRECT MENU LIST (STRUCTURED POSITIONING) --- */
        .mobile-nav > ul {
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
            max-height: 70vh;
            overflow-y: auto;
            position: absolute;
            top: 8rem;
            left: 0;
          /*  transform: translateX(-50%); */
        }

        /* Main menu items spacing */
        .mobile-nav > ul > li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-nav > ul > li:first-child {
            margin-bottom: 0;
        }

        /* Base styling for main menu items (both links and labels) */
        .mobile-nav > ul > li > a,
        .mobile-nav > ul > li > label {
            display: block;
            padding: 1.2rem 2rem;
            color: #e0d5c8;
            text-decoration: none;
            font-family: Verdana, Geneva, Tahoma, sans-serif;
        /*  font-family: Georgia, 'Times New Roman', Times, serif; */
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            letter-spacing: 0.02em;
        }

        .mobile-nav > ul > li > a:hover,
        .mobile-nav > ul > li > label:hover {
            color: #f5f2ee;
        }

        /* Arrow styling */
        .mobile-nav .arrow {
            color: #e0d5c8;
            font-size: 0.9rem;
            display: inline-block;
            transition: transform 0.3s ease;
            opacity: 0.8;
            margin-left: 0.5rem;
        }

        /* Submenu list styling */
        .submenu-list {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            position: relative;
            background: rgba(0, 0, 0, 0.2);
        }

        .submenu-list li {
            margin: 0;
        /*    border-bottom: 1px solid rgba(255, 255, 255, 0.05); */
        }

        .submenu-list li:first-child {
             margin-bottom: 0;
        }

        .submenu-list li:last-child {
            border-bottom: none;
        }   

        .submenu-list a {
            display: block;
            padding: 0.8rem 3rem;
            color: #e0d5c8;
            text-decoration: none;
            font-family: Verdana, Geneva, Tahoma, sans-serif;
        /*  font-family: Georgia, 'Times New Roman', Times, serif; */
            font-size: 0.9rem;
            font-weight: normal;
            opacity: 0.85;
            letter-spacing: 0.01em;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .submenu-list a:hover {
            color: #f5f2ee;
            opacity: 1;
        }

        /* When submenu is open */
        .submenu-toggle:checked + label {
            color: #f5f2ee;
        }

        .submenu-toggle:checked + label .arrow {
            transform: rotate(90deg);
            color: #f5f2ee;
            opacity: 1;
        }

        .submenu-toggle:checked ~ .submenu-list {
            max-height: 500px;
        }

        /* --- 4. THE CORRECT CONTENT PANEL STYLING --- */
        .content-wrapper {
            width: 92%;
            margin: 1rem auto;
            padding: 1rem 1.5rem 1.5rem 1.5rem; 
            height: calc(100vh - 8rem); 
            align-self: flex-start;
               text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
  .content-wrapper h1 {
        font-size: 1.6rem;  /* Smaller on mobile */
       margin-bottom: 0.2rem;
        letter-spacing: -0.02em;
                font-weight: 400;

    }
    
    .content-wrapper .tagline
     {
        font-size: 0.95rem;  /* Smaller tagline */
        margin-bottom: 1rem;
        opacity: 0.7;
    }
    
    .content-wrapper h2 {
        font-size: 1.2rem;  /* Smaller headers */
        margin: 1.2rem 0 0.5rem 0;  /* Tighter spacing */
        letter-spacing: -0.01em;
        font-weight: 400;
    }
    
    .content-wrapper p {
        font-size: 0.9rem;  /* Slightly smaller body text */
        line-height: 1.5;  /* Tighter lines */
        margin-bottom: 0.6rem;
        text-align: justify;
        hyphens: none;  
        word-break: normal;  
    }

        .content-wrapper .menu-list {
        font-size: 0.1rem;  /* Slightly smaller body text */
  }
    
    /* --- Fix tiny images on mobile --- */
    .content-wrapper img {
        margin: 0.8rem 0;  /* Very tight spacing */
        /* Remove side margins to use full width */
        max-width: 100%;
        border-radius: 4px;  /* Full bleed images */
    }
    
    /* Keep videos properly sized */
    .content-wrapper .video-container {
        margin: 0.8rem -1.5rem;  /* Full width like images */
    }
    
    .content-wrapper hr {
        margin: 1rem 0;  /* Tighter on mobile */
    }
    
    .content-wrapper ul,
    .content-wrapper ol {
        padding-left: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .content-wrapper li {
        margin-bottom: 0.3rem;
        font-size: 0.95rem;
    }


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.content-wrapper h2,
.content-wrapper img {
    animation: fadeInUp 0.8s ease-out;
}



  #metabolic-dashboard {
    /* We KEEP position: absolute, which was the critical mistake before. */
    top: 6rem;
    left: 1rem;
    right: 1rem;
    width: auto; /* Let it fill the space between left and right */
    min-width: 0; /* Remove the minimum width on mobile */
    max-height: calc(100vh - 12rem);
    font-size: 10px;
  }

.dash-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(224, 213, 200, 0.1);
  padding: 4px 0;
  flex-wrap: wrap;
}
.dash-name { font-weight: bold; color: #f5f2ee; }
.dash-details { opacity: 0.8; text-align: right; }

/*
    .eco-toggle-container {
        padding-right: 0;
    }
*/


.eco-toggle-container {
   /* Positioning from screen edges */
   /*
    bottom: 1.5rem; 
    left: 1.5rem;
    right: 1.5rem;
*/
    /* Reset/adjust properties for mobile */
  /*   width: auto; Let left/right properties define width */
        padding-right: 0;
    
    /* Flexbox alignment */
    /*
    justify-content: space-between;
    align-items: center; 
    flex-wrap: nowrap;
    gap: 1rem;*/
}

.eco-left-side {
    text-align: left;
        flex-shrink: 0; /* Prevent copyright from shrinking too much */

}
/*
.eco-right-side {
    text-align: right;
}
*/
.eco-button {
    font-size: 12px;
    padding: 8px 12px;
}

.eco-link a {
    font-size: 12px;
}

.eco-copyright {
    font-size: 9px;
        line-height: 1.3; /* Improve line spacing */

}

#eco-message {
    margin-bottom: 20px; /* Adds space below the dynamic text */
}


      #interference-message {
    display: none;
  }

/* --- 5. HIDE FOOTER WHEN MOBILE MENU IS OPEN --- */
.overlay-ui:has(.mobile-menu-toggle:checked) ~ .eco-toggle-container {
    display: none;
}

  .copyright-line1,
  .copyright-line2 {
    display: block; /* This forces each span onto its own line */
    margin-left: 0; /* Removes the space on mobile */
  }


.overlay-ui header {
    padding: 2rem;
}

.logo img {
    height: 30px;
}



#content-container .hero {
    margin: 0;
    padding: 1.5rem;
    width: 90%;

}


.hero h1 {
    font-size: 2.2rem;
        font-weight: 400;  /* Lighter font weight to match serif look */

}

.hero .tagline {
    font-size: 0.9rem;
        opacity: 0.9;

}

.content-wrapper.centered-content {
        width: 92%;
        margin: 2rem auto 8rem auto; /* Keep clear of mobile footer */
        padding: 2rem 1.5rem;
        height: auto; /* Ensure height is auto on mobile */
        max-height: none; /* Remove constraints */
    }
    
    .centered-content h1 {
        font-size: 1.8rem;
    }
    
 
    .centered-content .intro-text {
        font-size: 1.1rem;
    }
    
    .centered-content .stream-type {
        display: block;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }
    
    .centered-content .nutrient-streams {
        padding: 1.5rem 1rem;
    }
    
    .contact-details {
        margin: 2rem 0;
        padding: 1.25rem 0;
    }

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    .nutrient-streams {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    .contact-email a,
    .instagram-link a {
        transition: none;
    }
}



@media (max-height: 500px) and (orientation: landscape) {

    /* Make the hero text smaller to fit the short screen height */
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .tagline {
        font-size: 0.9rem;
    }

    /* Reduce the top margin of the hero content to keep it centered */
    #content-container .hero {
        margin-top: 4rem; 
    }

    /* Make the footer elements a bit smaller to ensure they don't overlap */
    .eco-button {
        font-size: 10px;
        padding: 6px 10px;
    }

    .eco-link a {
        font-size: 10px;
    }

    .eco-copyright {
        font-size: 8px;
    }

    /* If the mobile menu is open, make the text smaller */
    .mobile-nav > ul > li > a,
    .mobile-nav > ul > li > label {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

}


/*
=====================================================
  MOBILE NAVIGATION - STYLE 05 ITEMS
=====================================================
*/

/*
.mobile-menu-toggle, 
.submenu-toggle, 
.menu-trigger-text, 
.mobile-side-panel, 
.menu-overlay {
    display: none;
}

.mobile-nav {
    display: none; 
}

@media (max-width: 768px) {
    header nav:not(.mobile-nav) { 
        display: none !important; 
    }
    
    .mobile-nav {
        display: flex !important;
        position: fixed;
        right: 1rem;
        align-items: center;
        border-radius: 3px;
        padding: 0.5rem 0.75rem;
        z-index: 1000;
        gap: 0.3rem;
    }
    
    .mobile-nav .menu-item > a {
        color: #d0c5b8;
        text-decoration: none;
        padding: 0.6rem 0.5rem;
        display: block;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        font-weight: 300;
        white-space: nowrap;
        border-radius: 3px;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .mobile-nav .menu-item > a:hover {
        color: #f5f2ee;
        background: rgba(230, 200, 167, 0.1);
    }
    
    .overlay-ui header {
        padding: 1.5rem 1rem;
    }
    
    .logo img {
        height: 28px;
    }

    .content-wrapper {
       width: 85%;
        margin: 2rem auto 1rem auto; 
        padding: 2rem 1.5rem;
        height: auto;
        align-self: flex-start;
    }

    .eco-toggle-container {
        padding-right: 0;
    }
}
*/

/*
=====================================================
  MOBILE NAVIGATION END - STYLE 05 ITEMS
=====================================================
*/


/*
=====================================================
  MOBILE NAVIGATION - 01C MINIMAL
=====================================================
*/


    /* Hide mobile elements on desktop */
    .mobile-menu-toggle,
    .submenu-toggle,
    .menu-trigger-text,
    .menu-close-button,
    .mobile-nav {
        display: none;
    }

    @media (max-width: 768px) {

        /* --- 1. Hide Desktop Nav & Style Mobile Trigger --- */
        header nav:not(.mobile-nav) {
            display: none;
        }

        .menu-trigger-text,
        .menu-close-button {
            display: block;
            position: fixed;
            top: 2.2rem;
            right: 1rem;
            z-index: 1002;
            cursor: pointer;
            color: #aaa;
            font-family: Verdana, Geneva, Tahoma, sans-serif;
            font-size: 0.9rem;
            padding: 0.5rem 0.75rem;
            /* border: 1px solid rgba(255, 255, 255, 0.08); */
            border-radius: 3px;
            transition: all 0.3s ease;
            backdrop-filter: blur(1px);
        }

        .menu-close-button {
            font-size: 1.5rem;
            padding: 0.2rem 0.8rem;
            opacity: 0;
        }

        /* The swap for Menu/X */
        .mobile-menu-toggle:checked ~ .menu-trigger-text {
            opacity: 0;
            pointer-events: none;
        }
        .mobile-menu-toggle:checked ~ .menu-close-button {
            opacity: 1;
        }

        /* --- 2. The Full-Screen Overlay --- */
        .mobile-nav {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1000;
            background: rgba(20, 18, 16, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }
        .mobile-menu-toggle:checked ~ .mobile-nav {
            opacity: 1;
            visibility: visible;
        }

        /* --- 3. THE CORRECT MENU LIST (STRUCTURED POSITIONING) --- */
        .mobile-nav > ul {
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
            max-height: 70vh;
            overflow-y: auto;
            position: absolute;
            top: 8rem;
            left: 0;
          /*  transform: translateX(-50%); */
        }

        /* Main menu items spacing */
        .mobile-nav > ul > li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-nav > ul > li:first-child {
            margin-bottom: 0;
        }

        /* Base styling for main menu items (both links and labels) */
        .mobile-nav > ul > li > a,
        .mobile-nav > ul > li > label {
            display: block;
            padding: 1.2rem 2rem;
            color: #e0d5c8;
            text-decoration: none;
            font-family: Verdana, Geneva, Tahoma, sans-serif;
        /*  font-family: Georgia, 'Times New Roman', Times, serif; */
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            letter-spacing: 0.02em;
        }

        .mobile-nav > ul > li > a:hover,
        .mobile-nav > ul > li > label:hover {
            color: #f5f2ee;
        }

        /* Arrow styling */
        .mobile-nav .arrow {
            color: #e0d5c8;
            font-size: 0.9rem;
            display: inline-block;
            transition: transform 0.3s ease;
            opacity: 0.8;
            margin-left: 0.5rem;
        }

        /* Submenu list styling */
        .submenu-list {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            position: relative;
            background: rgba(0, 0, 0, 0.2);
        }

        .submenu-list li {
            margin: 0;
        /*    border-bottom: 1px solid rgba(255, 255, 255, 0.05); */
        }

        .submenu-list li:first-child {
             margin-bottom: 0;
        }

        .submenu-list li:last-child {
            border-bottom: none;
        }   

        .submenu-list a {
            display: block;
            padding: 0.8rem 3rem;
            color: #e0d5c8;
            text-decoration: none;
            font-family: Verdana, Geneva, Tahoma, sans-serif;
        /*  font-family: Georgia, 'Times New Roman', Times, serif; */
            font-size: 0.9rem;
            font-weight: normal;
            opacity: 0.85;
            letter-spacing: 0.01em;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .submenu-list a:hover {
            color: #f5f2ee;
            opacity: 1;
        }

        /* When submenu is open */
        .submenu-toggle:checked + label {
            color: #f5f2ee;
        }

        .submenu-toggle:checked + label .arrow {
            transform: rotate(90deg);
            color: #f5f2ee;
            opacity: 1;
        }

        .submenu-toggle:checked ~ .submenu-list {
            max-height: 500px;
        }

        /* --- 4. THE CORRECT CONTENT PANEL STYLING --- */
/* .content-wrapper {
            width: 92%;
            margin: 1rem auto;
            padding: 2rem 1.5rem;
            height: calc(100vh - 8rem); 
            align-self: flex-start;
        }
*/



    .content-wrapper {
        width: 92%;
        /* CHANGED: Increased bottom margin from 1rem to push content closer to footer */
        margin: 0.5rem auto 6rem auto; /* Pushes content down, closer to footer */
        padding: 2rem 1.5rem;
        /* CHANGED: Removed fixed height calculation to allow natural flow */
        height: auto; /* Let content determine its own height */
        max-height: calc(100vh - 15.5rem); /* But still constrain maximum */
        align-self: flex-start;
    }






   .content-wrapper.centered-content.coming-soon {
        position: fixed;  /* Use fixed to center in viewport */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        margin: 0;  /* Remove all margins */
        padding: 1.5rem;
    }
    
    /* Smaller text for coming-soon pages */
    .content-wrapper.centered-content.coming-soon h1 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .content-wrapper.centered-content.coming-soon p {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .content-wrapper.centered-content.coming-soon .intro-text {
        font-size: 0.9rem;
    }
    
    /* 2. FIX MENU-LIST - SMALLER FONT */
    .content-wrapper .menu-list a {
        font-size: 1.2rem !important;  /* Smaller */
        /*padding: 0.6rem 0.3rem !important; */
        padding: 1rem 0 1rem 0 !important; 
    }
    
    /* 3. FIX CONTACT & SUPPORT PAGES - PROPER POSITIONING */
    .content-wrapper.centered-content:not(.coming-soon) {
        /* Same as regular content-wrapper positioning */
        width: 92%;
        margin: 2rem auto 6rem auto;  /* Match regular content margins */
        padding: 1rem 1.5rem 1.5rem 1.5rem; 
        position: relative;  /* Not fixed */
        transform: none;  /* Remove centering transform */
        top: auto;  /* Reset */
        left: auto;  /* Reset */
    }
    
    /* Keep text sizes reasonable for contact/support */
    .content-wrapper.centered-content:not(.coming-soon) h1 {
        font-size: 1.6rem;  /* Normal mobile h1 */
    }
    
    .content-wrapper.centered-content:not(.coming-soon) p {
        font-size: 0.9rem;  /* Normal mobile text */
        text-align: center !important;  /* Keep centered alignment */
    }



  #metabolic-dashboard {
    top: 6rem;
    left: 1rem;
    right: 1rem;
    width: auto; /* Let it fill the space between left and right */
    min-width: 0; /* Remove the minimum width on mobile */
    max-height: calc(100vh - 12rem);
    font-size: 10px;
  }



.dash-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(224, 213, 200, 0.1);
  padding: 4px 0;
  flex-wrap: wrap;
}
.dash-name { font-weight: bold; color: #f5f2ee; }
.dash-details { opacity: 0.8; text-align: right; }


/*
.eco-toggle-container {
        padding-right: 0;
}
        */

    .eco-toggle-container {
        position: fixed;
        bottom: 2rem;
        /* ENSURE: These padding values match to create proper alignment */
        left: 1rem;  /* Match the padding */
        right: 1rem; /* Match the padding */
        padding: 0; /* Remove extra padding since we're using left/right */
        width: auto;
        box-sizing: border-box;
    }


.eco-left-side {
    text-align: left;
        flex-shrink: 0; /* Prevent copyright from shrinking too much */

}



.eco-right-side {
    position: relative;
}



.eco-link a {
    font-size: 12px;
}

.eco-copyright {
    font-size: 9px;
        line-height: 1.3; /* Improve line spacing */

}



.eco-button {
    font-size: 12px;
    padding: 8px 12px;
}

/*
#eco-message {
    margin-bottom: 20px; 
}
*/



/*
.eco-button {
    position: relative;
}


#eco-message {
    position: absolute;
    top: 100%;         
    right: 0;          
    margin-top: 6px;     
    white-space: nowrap;
}
*/



#eco-message {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    white-space: nowrap; 
}



#interference-message {
    display: none;
  }

/* --- 5. HIDE FOOTER WHEN MOBILE MENU IS OPEN --- */
.overlay-ui:has(.mobile-menu-toggle:checked) ~ .eco-toggle-container {
    display: none;
}

  .copyright-line1,
  .copyright-line2 {
    display: block; /* This forces each span onto its own line */
    margin-left: 0; /* Removes the space on mobile */
  }


.overlay-ui header {
    padding: 2rem;
}

.logo img {
    height: 30px;
}



#content-container .hero {
    margin: 0;
    padding: 1.5rem;
    width: 90%;

}


.hero h1 {
    font-size: 2.2rem;
        font-weight: 400;  /* Lighter font weight to match serif look */

}

.hero .tagline {
    font-size: 0.9rem;
        opacity: 0.9;

}


.hero .onmobile {
    font-size: 0.8rem;  /* Makes the text smaller */
    font-style: italic; /* Makes it italic */
    opacity: 0.3;       /* Fades it slightly */
    margin-top: 2rem;   /* Adds some space above it */
}



    .content-wrapper.centered-content {
        width: 92%;
        /* Adjust these values to taste */
        margin: 2rem auto 6rem auto; /* More top space, stays close to bottom */
        padding: 2rem 1.5rem;
        height: auto;
        max-height: none;
        text-align: center !important;

    }



    .centered-content h1 {
        font-size: 1.8rem;
        text-align: center !important;
    }
    
 
    .centered-content .intro-text {
        font-size: 1.1rem;
        text-align: center !important;
    }
    
    .centered-content .stream-type {
        display: block;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }
    
    .centered-content .nutrient-streams {
        padding: 1.5rem 1rem;
    }
    
    .contact-details {
        margin: 2rem 0;
        padding: 1.25rem 0;
    }

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    .nutrient-streams {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    .contact-email a,
    .instagram-link a {
        transition: none;
    }
}



@media (max-height: 500px) and (orientation: landscape) {

    /* Make the hero text smaller to fit the short screen height */
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .tagline {
        font-size: 0.9rem;
    }

    /* Reduce the top margin of the hero content to keep it centered */
    #content-container .hero {
        margin-top: 4rem; 
    }

    /* Make the footer elements a bit smaller to ensure they don't overlap */
    .eco-button {
        font-size: 10px;
        padding: 6px 10px;
    }

    .eco-link a {
        font-size: 10px;
    }

    .eco-copyright {
        font-size: 8px;
    }

    /* If the mobile menu is open, make the text smaller */
    .mobile-nav > ul > li > a,
    .mobile-nav > ul > li > label {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

}

/*
=====================================================
  MOBILE NAVIGATION - 01C MINIMAL
=====================================================
*/
