
.hero {
    position: relative;
    width: 100%;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 50px;
}


#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 30%;
    transform: translate(-50%, -50%) scale(2.8);
    object-fit: cover;
    filter: brightness(50%);
    z-index: -1;
}

#hero-mobile-photo {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    z-index: -1;
}

.hero-text {
    text-align: left;
    color: #fff;
    padding: 0 20px;
    position: relative;
    top: 250px;
}




.hero-text .byline {
    font-style: italic;
    font-size: 1em;
    color: #ccc;
    position: relative;
    top: 50px;
}

/* Article section */
.article {
    max-width: 900px;
    margin: 0 auto 20px auto;
    padding: 50px 40px;
    background: #fff;
    border-radius: 10px;
}

/* Paragraphs */
.article p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333;
    text-align: left;
}

/* Figures */
figure {
    margin: 50px 0;
    text-align: center;
}

figure img {
    width: 100%;    
    max-width: 100%;    
    border-radius: 0;    
}

.compare-photos {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: nowrap;
}

.compare-photo {
    flex: 1 1 0;
}

.compare-photo figure {
    margin: 0;
    text-align: left;
}

.compare-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.compare-photo figcaption {
    text-align: left;
    margin-top: 8px;
}

@media only screen and (max-width: 900px) {
    .compare-photos {
        flex-wrap: wrap;
    }

    .compare-photo {
        flex: 1 1 100%;
        max-width: 100%;
    }
}





#countdown {
        font-size: 1.5em;
        font-weight: bold;
        color: #a61824;
        background: white;
        display: flex;
        flex-wrap: wrap;              
        justify-content: left;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        gap: 10px;
        width: 100%;                
        box-sizing: border-box;
    }

    .time {
        margin: 10px 0;
    }

    .label {
        display: block;
        font-size: 0.4em;
        color: #666;
    }



/* ------------- FONTS ----------------------- */

.libre-baskerville {
font-family: "Libre Baskerville", serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
}

.montserrat {
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
}

/* ------------ COLORS --------------- */
/* 
RED #a61824
BLUE DARK #85a0bf
BLUE LIGHT #85a0bf
YELLOW LIGHT #fff9c0
YELLOW GOLD #dba617
GREY #767676
GREEN LIGHT #6fd898
GREEN DARK #178e53
ORANGE #ffa300;
*/



/* ------- GENERAL STYLES ------------- */
body,figure,blockquote {
    margin:0;
    padding: 0;
    font-size: 20px;
    color:#111111;
}

img {
    width: 100%;
}

/* ---------- HEADER STYLES ----------- */
/*.site-header {
    height: 70px;
    background-image: url("https://mediaianovation.camd.northeastern.edu/2026/epa-grant-cuts/images/Full-Color_1x-1-e1753742636843.png.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 782px;
    margin: 20px 0 50px 0;
}

.site-header p {
    color: #A61428;
    font-family: "Montserrat","Arial",sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    position: relative;
    top: 120%;
}
div.bottom-header-contain {
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 30px;
}
ul.main-menu {
    padding: 14px 0 15px 0;
    width: 65%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

ul.main-menu li.menu-item {
    float:left;
    font-family: "Montserrat","Arial",sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    list-style: none; 
    padding-right: 30px;
    margin: 0 auto;
    color: #555555;
    line-height: 1.25;
}

li.menu-item a {
    text-decoration: none; 
        color: #555555;

}

li.menu-item a:hover {
    color:#85a0bf;
}

span.cat-links {
    background-color: #a61824;
    display:inline-block;
    padding: .2em 0.5em;
    font-family: "Montserrat","Arial",sans-serif;
    font-size: 0.7em;
    font-weight: 600;
    color:white;
}
*/

/* -------------------- ARTICLE STYLES --------------------------- */
@media only screen and (max-width:500px) { /*FOR MOBILE */
main.site-main {
    width: 100%;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.hero {
    height: 560px;
    margin-bottom: 24px;
    align-items: flex-end;
    background-image: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)), url("./images/hero photo.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .site-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 24px;
    position: relative;
    z-index: 2;
}

#hero-mobile-photo {
    display: none;
}

#hero-video {
    display: none;
}

.hero-text {
    top: 0;
    padding: 0;
}

main h1 {
    font-size: 1.45em;
    line-height: 1.15;
}

main h2 {
    font-size: 0.92em;
    line-height: 1.45;
}

.entry-meta {
    margin: 12px 0 0 0;
    padding-bottom: 18px;
}

.entry-meta p.byline {
    margin-top: 14px;
    font-size: 0.72em;
    line-height: 1.4;
}

.article {
    padding: 28px 16px;
    border-radius: 0;
}

main.site-main p {
    font-size: 15px;
    margin-top: 22px;
}

figcaption {
    font-size: 12px;
    padding-top: 12px;
}

.post-thumbnail {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
}

#countdown {
    position: static !important;
    top: auto;
    left: auto !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    justify-items: center;
    width: 100%;
    margin: 0 auto 20px;
    padding: 14px;
    border-radius: 10px;
    gap: 8px;
    text-align: center;
}

.countdown-subhead {
    grid-column: 1 / -1;
    font-size: 0.95em;
    margin-bottom: 10px;
    text-align: center;
}

#countdown #days,
#countdown #hours,
#countdown #minutes,
#countdown #seconds {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    font-size: 0.95em;
    line-height: 1.2;
}

#countdown .label {
    font-size: 0.62em;
    line-height: 1.1;
}

@media only screen and (max-width:380px) {
    #countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

div[style*="position:sticky"] {
    position: static !important;
    top: auto !important;
}

.berdo-scrolly {
    height: 76vh;
}

#berdo-scrolly-story {
    padding: 0 16px 24px;
}

.berdo-scrolly-step,
#first-chapter {
    min-height: 76vh;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
}

#berdo-scrolly .berdo-scrolly-step-card {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 16px;
}

#berdo-scrolly .berdo-scrolly-step-card h3 {
    font-size: 20px;
}

.berdo-scrolly-legend {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
}

.compare-photos {
    gap: 12px;
}

#track {
    border-radius: 8px;
    padding: 10px 0 12px;
}

#endcard {
    min-width: 240px;
    padding: 0 20px;
}

#endcard .big {
    font-size: 30px;
}

.modal-content {
    width: calc(100% - 24px);
    max-width: none;
    left: 12px !important;
    right: 12px !important;
}
}

@media only screen and (max-width:500px) {

    #berdo-scrolly .berdo-scrolly-step-card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    #first-chapter {
        margin-top: 12vh;
        padding-top: 0;
        display: block;
    }
}

@media only screen and (min-width:501px) { /*FOR LARGER SCREENS */
main.site-main {
    width:50%;
    margin: 0 auto;
}

.entry-meta p.byline {
    margin-top: 235px;
}

#countdown {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    margin-left: 2px;
    font-size: 1em;
    font-weight: bold;
    color: #a61824;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.countdown-subhead {
    font-family: "Libre Baskerville", serif;
    font-size: 1em;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.3;
}
}

main h1 {
    font-family: "Montserrat","Arial",sans-serif;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.1;
}

main h2 {
    font-family: "Libre Baskerville","Georgia",serif;
    font-style: italic;
    font-weight: 100;
    font-size: 1em;
    line-height: 1.5;
}

.entry-meta {
    margin: 40px 0 30px 0px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
}
.entry-meta img {
    width: 45px;
    height: 45px;
    background-color:#555;
    float: left;
    border-radius: 50%;
    margin-right: 10px;
}
.entry-meta p.byline {
    font-family: "Montserrat","Arial",sans-serif;
    font-size: .8em;
    font-weight: 400;
    color: #a61824;
    text-transform: uppercase;
}

.entry-meta p.posted-on {
    font-family: "Montserrat","Arial",sans-serif;
    font-size: .8em;
    font-weight: 400;
    color: #555;
    text-transform: none;
    
}

main.site-main p {
    font-family: "Libre Baskerville","Georgia",serif;
    font-weight: 100;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 32px;
}

main.site-main a:link {
    color:#5d81ac;
}

main.site-main a:visited {
    color:#5d81ac;
}

main.site-main a:hover {
    color:#5d81ac;
    text-decoration: none;
}

figure.post-thumbnail {
    margin-top: 20px;
}

figcaption {
    color: #767676;
    font-family: "Montserrat","Arial",sans-serif;
    font-size: 14px;
    padding-top: 20px;
    text-align: left;
}



p.has-drop-cap:first-letter {
font-size: 5em;
line-height: .75;
margin: .125em .75rem 0 0;
position: relative;
float: left;
}

.subhead {
    font-family: "Libre Baskerville", serif;
    font-size: 1.5em;
    font-weight: 400;
}

.layout {
    display: flex;
    align-items: flex-start;
}

.article-content {
    width: 100%;
}

.comparison-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    text-align: center;
}

.comparison-box {
    flex: 1;
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* responsive */
@media (max-width: 800px) {
    .comparison-container {
        flex-direction: column;
    }
}

#berdo-scrolly.full-bleed {
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    transform: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    margin-bottom: 24px;
}


.berdo-scrolly {
    position: relative;
    width: 100%;
    height: 72vh;
    margin: 0;
    padding: 0;
    background: #111;
    overflow: hidden;
}


.berdo-scrolly-map-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}


#berdo-scrolly-map {
    width: 100%;
    height: 100%;
}


#berdo-scrolly-story {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
    margin: 0 auto;
    padding: 0 40px 40px;
}


.berdo-scrolly-step {
    width: 100%;
    min-height: 72vh;
    padding-top: 50vh;
    box-sizing: border-box;
}
#first-chapter {
    width: 100%;
    min-height: 72vh;
    padding-top: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}


.berdo-scrolly-step.is-hidden {
    visibility: hidden;
}


/*.berdo-scrolly-step-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.94);
    color: #111;
    border: 1px solid rgba(17, 17, 17, 0.2);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    padding: 20px 24px;
    line-height: 1.6;
}
    */

.berdo-scrolly-step-card {
    pointer-events: auto;
    background: rgba(255, 255, 255);
    color: #111;
    border: 1px solid rgba(17, 17, 17, 0.2);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);

    /* match article */
    max-width: 900px;       /* same as .article max-width */
    width: 50%;      
    margin: 0 auto;         /* center like article */
    padding: 30px;     /* same padding as article */
    line-height: 1.6;       /* same line height */
    box-sizing: border-box;
    text-align: left; 
}

.berdo-scrolly-step-card h3 {
    margin: 0 0 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}


.berdo-scrolly-step-card p {
    margin: 0;
    color: #111;
    font-size: 16px;
}

main.site-main .berdo-scrolly-step-card > :first-child {
    margin-top: 0;
}

main.site-main .berdo-scrolly-step-card > :last-child {
    margin-bottom: 0;
}

main.site-main .berdo-scrolly-step-card p {
    margin-top: 0;
    margin-bottom: 0;
}



.berdo-scrolly-step.active .berdo-scrolly-step-card {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.514);
    max-width: 900px;
}


.berdo-scrolly-header,
.berdo-scrolly-footer {
    width: min(720px, 92%);
    margin: 0 auto;
    padding: 1.5vh 0;
    color: #fff;
    text-align: center;
    pointer-events: none;
}


.berdo-scrolly-header h1,
.berdo-scrolly-header h2,
.berdo-scrolly-header p,
.berdo-scrolly-footer p {
    margin: 0;
    color: #fff;
}


.berdo-scrolly-header h1 {
    font-family: "Montserrat", sans-serif;
    margin-bottom: 8px;
}


.berdo-align-left {
    margin-left: max(2vw, 12px);
    margin-right: auto;
}


.berdo-align-center {
    margin-left: auto;
    margin-right: auto;
}


.berdo-align-right {
    margin-left: auto;
    margin-right: max(2vw, 12px);
}


.berdo-align-full {
    width: min(1000px, 96%);
    margin-left: auto;
    margin-right: auto;
}

.berdo-scrolly-legend {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;
    pointer-events: none;
    min-width: 170px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 17, 17, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.berdo-scrolly-legend h3 {
    margin: 0 0 10px;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.berdo-scrolly-legend-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.berdo-scrolly-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.berdo-scrolly-legend-item + .berdo-scrolly-legend-item {
    margin-top: 6px;
}

.berdo-scrolly-legend-swatch {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(17, 17, 17, 0.2);
}

.matep-only-label {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    padding: 6px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.chapter-point-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c1121f;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.28);
}


@media (max-width: 500px) {
    #hero-video {
        display: none !important;
    }

    .berdo-scrolly {
        height: 68vh;
    }

    .berdo-scrolly-legend {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: 0;
    }


    .berdo-scrolly-map-wrap {
        position: absolute;
        inset: 0;
        height: 100%;
    }


    .berdo-scrolly-step,
    #first-chapter {
        min-height: 68vh;
        padding: 0 0 10vh;
    }
}

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



.sub {
font-size: 14px;
color: #000000;
margin-bottom: 1.25rem;
line-height: 1.6;
}

#track {
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 14px 0 18px;
  background: #f5f5f3;
  border-radius: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

#track::-webkit-scrollbar {
  display: none;
}

#track:active {
  cursor: grabbing;
}

#inner {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 24px;
}

.tree-icon {
  display: inline-block;
  flex-shrink: 0;
}

#endcard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  padding: 0 40px;
  flex-shrink: 0;
  vertical-align: bottom;
}

#endcard .big {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
}

#endcard .lbl {
font-size: 14px;
color: #555;
margin-top: 6px;
}

.controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  font-size: 13px;
  padding: 6px 16px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

button:hover {
  background: #f0f0f0;
}

.spd-label {
  font-size: 12px;
  color: #999;
}

.stats {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat {
  background: #f5f5f3;
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 110px;
}

.stat-num {
  font-size: 18px;
  font-weight: 500;
}

.stat-lbl {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

#finale {
  margin-top: 16px;
  padding: 14px 18px;
  background: #eaf3de;
  border-left: 3px solid #3B6D11;
  display: none;
}

#finale p {
  font-size: 14px;
  color: #27500A;
  line-height: 1.6;
}




/* Term highlight (optional) */
.term {
  color: #a61824;
  font-weight: bold;
  cursor: pointer;
}


#infoButton {
    margin: 0;
    padding: 2px 6px;     
    font-size: 0.75em;     
    border: none;        
    border-radius: 12px;   
    line-height: 1;   
}

#infoButton .icon {
  display: inline-flex;
  color: #a61824;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #a61824;
  font-size: 12px;
  font-weight: bold;

}

#infoButton:hover {
background-color: #fef2f2;
box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.modal {
  display: none;
    position: fixed;
    inset: 0;
  z-index: 999;
}

.modal-content {
position: fixed;
background-color: #fff;
padding: 16px 20px;
max-width: 280px;
width: 280px;
border-radius: 10px;
box-shadow: 0 6px 20px rgba(0,0,0,0.2);
line-height: 1.6;
font-size: 14px;
border: 1px solid #eee;
right: 20px;
top: 50%;
transform: translateY(-50%);
max-height: 80vh;
overflow-y: auto;
z-index: 1000;
}

@media only screen and (max-width: 500px) {
  .modal-content {
    max-width: calc(100vw - 40px);
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}



/* Close button */
.close-btn {
position: absolute;
top: 10px;
right: 15px;
font-size: 20px;
cursor: pointer;
font-weight: bold;
}



