html::selection {
    background-color: #CFE4F7;
    color: black;
}

:root {
    --header-h: 60px;
    --nav-h: 43px;
}

html {
  font-size: 100%;
}

header {
    width: 100%;
    position: sticky;
    top: 0;
    height: 60px;
    background-color: #F9F7F3;
    display: flex;
    justify-content: space-between; /* Pushes text to left, icon to right */
    align-items: center;            /* Perfectly centers them vertically */
    padding: 0 15px;    
    margin: 0;
    color: green;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 2px solid green;
    z-index: 100;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-weight: bold;
    font-size: 1.2rem;
}

p {
    font-size: 1.05rem; /* ~17px for mobile readability */
    margin-bottom: 1.2rem;
}

h2 {
   font-size: 1.5rem;
   margin: 1.5rem 0 1rem;
}

.menu-toggle, .close-menu {
    background: none;
    border: none;
    color: green;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
     flex-shrink: 0;         /* IMPORTANT — stops button from shrinking */
    margin-right: 0;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -250px; /* Hide off-screen to the right */
    width: 250px;
    height: 100%;
    background-color: #F9F7F3;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out; /* Smooth sliding animation */
    z-index: 1000; /* Highest z-index to stay above everything */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


/* Class added via JS to slide the menu in */
.mobile-menu-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 0px 10px;
    border-bottom: 1px solid #ddd;
}

.mobile-menu-drawer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* Allows scrolling if menu is too long */
}

.mobile-menu-drawer ul li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-drawer ul li a {
    display: block; /* Make the whole area clickable */
    padding: 10px 0px 17px 20px;
    text-decoration: none;
    color: #333;
    font-size: 1.3rem;
    transition: background-color 0.2s;
}

.mobile-menu-drawer ul li a:hover {
    background-color: #e9e9e9;
}

/* --- Overlay Styles --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999; /* Just below the drawer */
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

div.mobile-menu-drawer ul.theTargetTwo  {
    background-color: #f3f7f4;
    border-left: 3px solid #2e7d32;
    display: none;
}

div.mobile-menu-drawer ul.threee {
    font-weight: normal;
    border-bottom: 3px solid #2e7d32;
}

aside {
    display: none;
}

aside ul li {
    font-size: 1rem;      /* ~16px, was 1.3rem */
}

nav.main-nav ul li a {
    font-size: 1.05rem;
}

nav.main-nav ul {
    display: none;
}

body {
    background-color: #F9F7F3;
    margin: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #2b2b2b;
    line-height: 1.6;
}

div.drop {
    display: none;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

ul li a.active {
    color: green;
}

figure {
    margin: 0 0 1.5rem 0; 
}

figure img {
    width: 100%;
    height: 355px;
    aspect-ratio: 3 / 4;
    object-position: center;  
    display: block;
    margin-top: 15px;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
    

ul li figure {
    margin-left: -30px;
    padding-left: -30px;
}


h2[id] {
    scroll-margin-top: calc(var(--header-h) + var(--nav-h) + 10px);
}


    figcaption {
        text-align: center;
        margin-top: 0.5rem;
        font-weight: bold;
        font-size: 17.5px;
    }

    .gridY {
            grid-template-columns: 1fr;
        }

    .gridY figure {
        margin: 0;
    }

    .gridY figure img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;   /* fixed shape regardless of viewport */
        object-fit: cover;
        border-radius: 8px;
    }

         

          .gridY-two {
            grid-template-columns: 1fr;
            gap: 1rem;
            margin: 0px 4%;
        }
        .gridY-two figure img {
            height: auto; /* Allow height to adjust on mobile */
            aspect-ratio: 4 / 3; /* Maintain aspect ratio */
        }


footer {
    background-color: #1a1a1a;;
    border-top: 4px solid green; /* Bold brand accent */
    padding: 40px 20px 20px;
    color: #ffffff;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: green;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #b3b3b3;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: green;
    text-decoration: underline;
}

.footer-logo {
    font-weight: bold;
    font-size: 1.3rem;
    color: green;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.site-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a8a8a8;
    max-width: 400px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: green;
    font-size: 1.3rem;
}



@media screen and (min-width: 1024px) {

     p {
        font-size: 1.125rem; /* ~18px on larger screens */
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 2rem;
    }


    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 1000;
    }

     .menu-toggle, 
    .mobile-menu-drawer, 
    .menu-overlay {
        display: none !important;
    }

    div.drop {
        display: none;
        position: fixed;
        z-index: 10000;
        width: 160px;
        background-color: #ffffff;
        border: 1px solid #d4d4d4;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    div.drop ul {
        list-style-type: none;
        padding: 6px 6px;
        margin: 0;
    }

    div.drop ul li a {
        display: block;
        text-decoration: none;
        color: #222;
        padding: 15px 18px;
        font-size: 1em;
        font-weight: 500;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    div.drop ul li a:hover {
    background-color: #e8f5e9;
    color: green;
    }

    li.dropdown span {
        font-size: 14px;
    }
    
     #ventilation-litter {
        scroll-margin-top: 152px;
    }

    main {
    display: block;
    max-width: 1100px;
    margin-left: 85px;
    margin-right: auto;
    }

    main div.page-content {
        margin-top: 58px;
        margin-left: 30%;
    }

nav.main-nav {
    width: 100%;
    background-color: #F9F7F3;
    padding: 2px 10px;
    border-bottom: 2px solid green;
    position: sticky;
    top: 37px;
    left: 0;
    z-index: 999;
    margin-left: -10px;
}


nav.main-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap to the next line if needed */
    gap: 0.5rem 2rem; 
    margin-left: 0;
    padding-left: 0;
}

nav.main-nav ul li {
    margin-top: 13px;
    padding: 0;
}


nav.main-nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: 5px solid transparent;
  padding-bottom: 5.5px; /* gives the border room to sit below the text */
  transition: border-color 0.2s ease;
}

nav.main-nav ul li a:hover {
    border-color: green;
}

nav.main-nav ul li a.active {
    color: green;
}

header i {
    display: none !important;  
}

figure div {
    display: flex;
    justify-content: center;
}

div.grid-target {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
   
 aside {
    display: block;
    position: fixed;
    top: 140px;
    left: 0;
    width: 26.8%;
    height: calc(100vh - var(--header-h) - var(--nav-h));
    overflow-y: auto;
    background-color:  #f5f0eb;
}

  aside ul {
    list-style-type: none;;
  }

  aside ul li {
    margin: 15px 0;
    font-size: 1.3rem;
  } 

  aside ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.125rem;
  }

  aside ul li a:hover {
    color: red;
  }

  aside ul li a.active {
    color: red;
  }

  nav.main-nav {
    top: var(--header-h); /* sticks right below header, no overlap */
}


div.target {
    margin-bottom: 150px;
    
}

  .gridY {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin: 0.75rem 4%;
    }

    .gridY figure {
        margin: 0;
    }

    .gridY figure img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;   /* fixed shape regardless of viewport */
        object-fit: cover;
        border-radius: 8px;
    }


      .gridY-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
  gap: 1.5rem; /* Consistent gap between grid items */
  margin: 0px 4%; /* Add some margin around the entire grid for spacing */
}

.gridY-two figure img {
  display: block;
  width: 100%; /* Image takes full width of its grid cell */
  height: auto; /* Set a fixed height for consistency, or use aspect-ratio */
  border-radius: 8px;
  aspect-ratio: 4 / 3; /* Maintain a consistent aspect ratio */
}


        footer {
        margin-left: 25.5%; 
        padding: 60px 40px 30px;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-section {
        flex: 1;
    }

    .site-info {
        flex: 2; /* Give more space to the logo and description */
        padding-right: 50px;
    }


}

@media screen and (min-width: 900px) and (max-width: 1024px) {
    p {
        font-size: 1.125rem; /* ~18px on larger screens */
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 2rem;
    }


    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 1000;
    }

     .menu-toggle, 
    .mobile-menu-drawer, 
    .menu-overlay {
        display: none !important;
    }

    div.drop {
        display: none;
        position: fixed;
        z-index: 10000;
        width: 160px;
        background-color: #ffffff;
        border: 1px solid #d4d4d4;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    div.drop ul {
        list-style-type: none;
        padding: 6px 6px;
        margin: 0;
    }

    div.drop ul li a {
        display: block;
        text-decoration: none;
        color: #222;
        padding: 15px 18px;
        font-size: 1em;
        font-weight: 500;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    div.drop ul li a:hover {
    background-color: #e8f5e9;
    color: green;
    }

    li.dropdown span {
        font-size: 14px;
    }
    
     #ventilation-litter {
        scroll-margin-top: 152px;
    }

    main {
    display: block;
    max-width: 1100px;
    margin-left: 85px;
    margin-right: auto;
    }

    main div.page-content {
        margin-top: 58px;
        margin-left: 30%;
    }

nav.main-nav {
    width: 100%;
    background-color: #F9F7F3;
    padding: 2px 10px;
    border-bottom: 2px solid green;
    position: sticky;
    top: 37px;
    left: 0;
    z-index: 999;
    margin-left: -10px;
}

nav.main-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap to the next line if needed */
    gap: 0.5rem 2rem; 
    margin-left: 0;
    padding-left: 0;
}

nav.main-nav ul li {
    margin-top: 13px;
    padding: 0;
}

nav.main-nav ul li a.active {
    color: green;
}


nav.main-nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.0em;
    font-weight: bold;
    border-bottom: 5px solid transparent;
  padding-bottom: 5.5px; /* gives the border room to sit below the text */
  transition: border-color 0.2s ease;
}

nav.main-nav ul li a:hover {
    border-color: green;
}

header i {
    display: none !important;  
}

figure div {
    display: flex;
    justify-content: center;
}

div.grid-target {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

 aside {
    display: block;
    position: fixed;
    top: 140px;
    left: 0;
    width: 26.8%;
    height: calc(100vh - var(--header-h) - var(--nav-h));
    overflow-y: auto;
    background-color: #f5f0eb;

}

  aside ul {
    list-style-type: none;;
  }

  aside ul li {
    margin: 15px 0;
    font-size: 1.3rem;
  } 

  aside ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.125rem;
  }

  aside ul li a:hover {
    color: red;
  }

  aside ul li a.active {
    color: red;
  }

  nav.main-nav {
    top: var(--header-h); /* sticks right below header, no overlap */
}


div.target {
    margin-bottom: 150px;
    
}

  .gridY {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin: 0.75rem 4%;
    }

    .gridY figure {
        margin: 0;
    }

    .gridY figure img {
        display: block;
        width: 100%;
        height: auto; /* Allow height to adjust on tablet */
        aspect-ratio: 2 / 2;   /* fixed shape regardless of viewport */
        object-fit: cover;
        border-radius: 8px;
    }


      .gridY-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
  gap: 1.5rem; /* Consistent gap between grid items */
  margin: 0px 4%; /* Add some margin around the entire grid for spacing */
}

.gridY-two figure img {
  display: block;
  width: 100%; /* Image takes full width of its grid cell */
  height: auto; /* Set a fixed height for consistency, or use aspect-ratio */
  border-radius: 8px;
  aspect-ratio: 4 / 3; /* Maintain a consistent aspect ratio */
}

        footer {
        margin-left: 25.5%; 
        padding: 60px 40px 250px;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-section {
        flex: 1;
    }

    .site-info {
        flex: 2; /* Give more space to the logo and description */
        padding-right: 50px;
    }

}

@media screen and (min-width: 710px) and (max-width: 899px) {
   
p {
        font-size: 1.125rem; /* ~18px on larger screens */
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 2rem;
    }


    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 1000;
    }

     .menu-toggle, 
    .mobile-menu-drawer, 
    .menu-overlay {
        display: none !important;
    }

    div.drop {
        display: none;
        position: fixed;
        z-index: 10000;
        width: 160px;
        background-color: #ffffff;
        border: 1px solid #d4d4d4;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    div.drop ul {
        list-style-type: none;
        padding: 6px 6px;
        margin: 0;
    }

    div.drop ul li a {
        display: block;
        text-decoration: none;
        color: #222;
        padding: 15px 18px;
        font-size: 1em;
        font-weight: 500;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    div.drop ul li a:hover {
    background-color: #e8f5e9;
    color: green;
    }

    li.dropdown span {
        font-size: 14px;
    }
    
     #ventilation-litter {
        scroll-margin-top: 152px;
    }

    main {
    display: block;
    max-width: 1100px;
    margin-left: 85px;
    margin-right: auto;
    }

    main div.page-content {
        margin-top: 58px;
        margin-left: 30%;
    }

nav.main-nav {
    width: 100%;
    background-color: #F9F7F3;
    padding: 2px 10px;
    border-bottom: 2px solid green;
    position: sticky;
    top: 37px;
    left: 0;
    z-index: 999;
    margin-left: -10px;
}

nav.main-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap to the next line if needed */
    gap: 0.5rem 2rem; 
    margin-left: 0;
    padding-left: 0;
}

nav.main-nav ul li {
    margin-top: 13px;
    padding: 0;
}

nav.main-nav ul li a.active {
    color: green;
}


nav.main-nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.0em;
    font-weight: bold;
    border-bottom: 5px solid transparent;
  padding-bottom: 5.5px; /* gives the border room to sit below the text */
  transition: border-color 0.2s ease;
}

nav.main-nav ul li a:hover {
    border-color: green;
}

header i {
    display: none !important;  
}

figure div {
    display: flex;
    justify-content: center;
}

div.grid-target {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

 aside {
    display: block;
    position: fixed;
    top: 140px;
    left: 0;
    width: 26.8%;
    height: calc(100vh - var(--header-h) - var(--nav-h));
    overflow-y: auto;
    background-color: #f5f0eb;
    padding-top: 37px;

}

  aside ul {
    list-style-type: none;;
  }

  aside ul li {
    margin: 15px 0;
    font-size: 1.3rem;
  } 

  aside ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.125rem;
  }

  aside ul li a:hover {
    color: red;
  }

  aside ul li a.active {
    color: red;
  }

  nav.main-nav {
    top: var(--header-h); /* sticks right below header, no overlap */
}


div.target {
    margin-bottom: 150px;
    
}

  .gridY {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin: 0.75rem 4%;
    }

    .gridY figure {
        margin: 0;
    }

    .gridY figure img {
        display: block;
        width: 100%;
        height: auto; /* Allow height to adjust on tablet */
        aspect-ratio: 2 / 2;   /* fixed shape regardless of viewport */
        object-fit: cover;
        border-radius: 8px;
    }


      .gridY-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
  gap: 1.5rem; /* Consistent gap between grid items */
  margin: 0px 4%; /* Add some margin around the entire grid for spacing */
}

.gridY-two figure img {
  display: block;
  width: 100%; /* Image takes full width of its grid cell */
  height: auto; /* Set a fixed height for consistency, or use aspect-ratio */
  border-radius: 8px;
  aspect-ratio: 4 / 3; /* Maintain a consistent aspect ratio */
}

        footer {
        margin-left: 25.5%; 
        padding: 60px 40px 250px;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-section {
        flex: 1;
    }

    .site-info {
        flex: 2; /* Give more space to the logo and description */
        padding-right: 50px;
    }
}

:root {
    --aside-w: clamp(220px, 26.8vw, 370px);
    --content-gap: 85px;   /* space between sidebar and text: adjust to taste */
}

@media screen and (min-width: 710px) {
    aside {
        width: var(--aside-w);
        box-sizing: border-box;
    }

    main {
        margin-left: var(--aside-w);
        margin-right: auto;
        max-width: calc(770px + var(--content-gap) + 30px);
        padding: 0 30px 0 var(--content-gap);
        box-sizing: border-box;
    }

    main div.page-content {
        margin-left: 0;
    }

    footer {
        margin-left: var(--aside-w);
    }
}