body.page-id-845 .wrap.box  {max-width:1920px;margin:0 auto;padding:110px 0px; background: #002855 !important; border-radius: 12px;}
.single-plant .wrap.box{max-width:1140px;margin:0 auto;padding:110px 0px;}
.single-plant .wordpress-content{ margin:auto 1.5rem}
.box-docs {max-width:1742px;margin:0 auto;padding:110px 0px; background: #EDF3F7 !important; border-radius: 13px;}

body.page-id-845 .guts.wordpress-styles{max-width:1920px;margin:0 auto;}

.documents-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
}
.documents-grid .icon-file{ width: 100%;}
.documents-grid .icon-file img{
    max-width: 141px;
    max-height: 183px;
}

/* Plant Grid variables and filters - cleaned and optimized */
:root{
    --pg-accent: #00A9E0;
    --pg-accent-hover: #42D0FF;
    --pg-radius: 12px;
    --pg-overlay: rgba(0,40,85,0.65);
    --pg-max-width: 81.25rem;
    --pg-gradient-color: #002855;
    --pg-gradient-height: 16rem;
}
.loadmore{margin: 0 auto;  width: 100%;}
.compliance {padding-top: 25px;}
.compliance button.submit-compliance{
    font-size: 1.144rem !important;
  width: auto !important;
  float: right ;
/*  margin-top: -34px !important;*/
  border-radius: 12px !important;
}

.compliance .wpforms-field-medium {
background-color: #EDF3F7 !important;
font-size: 1.344rem !important;
  padding: 2.4rem 1.9rem !important;
  border:none;
}

.wordpress-styles .wpforms-container.compliance  textarea.wpforms-field-medium{
    height: 21rem !important;
    /* max-height: 40rem; */
    resize: vertical; /* allow user to expand vertically */
    overflow: auto;
    box-sizing: border-box;
    padding: 1rem;
}

.compliance .wpforms-field-medium::placeholder{
    color:#434D56 !important;
    opacity: 1;
    font-size: 1.344rem !important;

} 
.plant-filters{
    margin: 0.6rem auto !important;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    width: 90%;
    gap: 0;
    padding-bottom: 5rem;
    padding-top: 2.1rem;
    flex-wrap: nowrap;
}

@media (max-width: 1200px) {
    .plant-filters{
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 2.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0;
        justify-content: flex-start;
        width: 100%;
    }
    .plant-filters::-webkit-scrollbar{ display: none; }
    .plant-filters{ -ms-overflow-style: none; scrollbar-width: none; }
    .plant-filters .column{
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .plant-filters .column .filter-btn{
        min-width: 7.5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        border-radius: 12px;
        white-space: nowrap;
    }
}

/* Scroll indicators (overlays & arrows) for small screens */
.plant-filters{ position: relative; }

@media (max-width: 1200px) {
  .plant-filters.scrolled-left::before,
  .plant-filters.scrolled-right::after { 
    content: ''; 
    pointer-events: none; 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 3rem; 
    z-index: 30; 
    transition: opacity .18s ease; 
    opacity: 1; 
  }
  .plant-filters.scrolled-left::before { 
    left: 0; 
    /* background: linear-gradient(to right, rgba(0,40,85,0.9), rgba(0,40,85,0));  */
  }
  .plant-filters.scrolled-right::after { 
    right: 0; 
    /* background: linear-gradient(to left, rgba(0,40,85,0.9), rgba(0,40,85,0));  */
  }

}

/* .plant-filters .column {
    display: inline;
} */
.plant-filters .column .filter-btn.button-1{ border:none}
.plant-filters .column .filter-btn{
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
    font-size: clamp(1.05rem, 1.6vw, 1.244rem);
    background-color: var(--pg-accent);
    color: #fff;
    border-radius: 0;
    margin: 0;
    padding: 1.3rem 2rem;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all .225s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* separator between adjacent columns */
.plant-filters .column + .column .filter-btn::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px; /* thicker separator */
    background: #9ADBE8;
    pointer-events: none;
}

.plant-filters .column .filter-btn:focus{
    outline: 2px solid rgba(255,255,255,.18);
    outline-offset: 2px;
}

/* corners handling on columns */
.plant-filters .column:first-child .filter-btn{ border-radius: 20px 0 0 20px; }
.plant-filters .column:last-child .filter-btn{ border-radius: 0 20px 20px 0; }
.plant-filters .column:only-child .filter-btn{ border-radius: 20px; }


.plant-filters .filter-btn:hover,
.plant-filters .filter-btn.active{
    background-color: var(--pg-accent-hover);
    color: #fff;
}

.plant-filters .column:first-child .filter-btn{
    font-weight: 600;
}


.plant-grid{
    position: relative; /* needed for the overlay pseudo-element */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 21.063rem));
    gap: 10px;
    justify-content: center; /* center items when the row isn't full */
    max-width: var(--pg-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 5rem) !important;
}

/* Gradient overlay at bottom of grid */
.plant-grid::after{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--pg-gradient-height);
    background: linear-gradient(to top, var(--pg-gradient-color) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 20; /* sits above inner elements */
}

/* Enforce minimum of 4 columns when there's enough viewport space. */
@media (min-width: calc(4 * 21.063rem + 3 * 10px)) {
    .plant-grid{
        grid-template-columns: repeat(4, 17.463rem);
    max-width: calc(4 * 17.463rem + 3 * 10px);
    justify-content: center;
    }
}

/* On medium screens allow 4 flexible columns that can shrink to fit */
@media (min-width: 64rem) and (max-width: calc(4 * 21.063rem + 3 * 10px - 1px)){
    .plant-grid{
        grid-template-columns: repeat(4, minmax(16rem, 1fr));
        justify-content: center;
    }
}

.plant-item{
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--pg-radius);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;
    max-width: 21.063rem; /* cap the visual size of an item */
    width: 100%; /* fill its grid cell but do not exceed max-width */
    margin-left: auto;
    margin-right: auto; /* centers item inside the grid track */
}

.plant-item::before{
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pg-overlay);
    border-radius: inherit;
}

.plant-title{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 1.25rem);
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
    text-align: center;
    padding: 0 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.plant-meta{
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    font-size: clamp(0.95rem, 1.2vw, 1rem);
    color: #fff;
}

/* Documents grid: left-aligned items with max-width 13rem */
.documents-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 13rem));
    gap: 10px;
    justify-content: start; /* left align when row isn't full */
    align-items: start;
    width: 100%;
    margin: 0 auto;
}
.document-item{
    max-width: 13rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    text-align: left;
}
.document-item .icon-file{ display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.document-item .document-title{ font-size: clamp(1rem, 1.6vw, 1.05rem); margin: 0; text-transform: uppercase;line-height: 1.4rem;text-align: center;width: 100%;}
.document-item .document-descriptor{  font-size:1.075rem;
    color: #434D56; text-align: center; width: 100%;
 }

#plant-load-more{
    margin: 30px auto;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
    border: none;
    background: transparent; /* no background */
    color: #fff; /* white text */
    cursor: pointer;
    transition: color .18s ease, transform .12s ease;
    box-shadow: none;
    width: auto;
}
#plant-load-more:hover{
    color: #e6f7fb;
    transform: translateY(-1px);
}

/* Utility: center the loader in the viewport when needed (apply the class to the element) */
.plant-load-more--centered{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: transparent;
    color: #fff;
    border: none;
    box-shadow: none;
} 
@media (max-width: 800px){
    body.page-id-845 .wrap.box {margin-bottom: 3rem;}

}

@media (max-width: 640px){
    .plant-grid{
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        gap: 10px;
    }
    .plant-item{
        max-width: none; /* allow items to fill their 1fr cell on mobile */
    }
}