:root {
    --base-font-size: 14px;
}

body {
    font-family: serif;
    font-size: var(--base-font-size);
    margin: 0;
    /* SCREEN MARGINS: 8% padding keeps text away from the edges of the browser */
    padding: 0 8%; 
    line-height: 1.5;
}

/* Global Link Styling Restored */
a {
    text-decoration: none;
    color: black;
}

/* Page Margins Fix */
.content-container {
    /* Adds a 10% margin on each side to keep text away from the edges */
    padding: 0 10%; 
    margin-top: 10px;
    margin-bottom: 50px;
}

/* Main Headers */
h1 {
    font-size: 2.2em; 
    margin: 0;       
    text-align: center; 
    line-height: 1.1;
}

h2 {
    font-size: 0.85em; 
    margin: 0;       
    text-align: center; 
    font-weight: normal;
    text-transform: uppercase;
}

h3 {
    font-size: 1em;  
    margin: 15px 0 5px 0;
}

p {
    font-size: 1em;  
    margin: 6px 0;
    line-height: 1.5;
}

/* Fixed Top Menu */
.top-menu {
    background-color: #fff; 
    padding: 15px;  
    text-align: center; 
    font-size: 16px !important; 
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.top-menu a, 
.top-menu button {
    font-size: 16px !important;
    color: black;
    margin: 0 5px;
}

.button {
    background-color: #fff;
    border: none;
    cursor: pointer;
}

/* Footnotes Section */
.footnotes {
    margin-top: 40px;
    text-align: left; 
}

/* Fixed Footnote h2 to scale with the rest of the text */
.footnotes h2 {
    text-align: left !important; 
    margin: 10px 0 !important;
    /* Using em so it increases with the A/A button */
    font-size: 1.4em !important; 
    color: #000;
    text-transform: none;
    font-weight: bold;
}

.footnotes hr {
    border: 0;
    height: 1px;
    background-color: #d3d3d3;
    margin: 20px 0;
}

/* Print Logic */
@media print {
    .top-menu {
        display: none;
    }

    body {
        font-size: var(--base-font-size);
    }

    h1 {
        font-size: 2.0em !important; 
    }

    h2 {
        font-size: 0.9em !important;
    }

    .content-container {
        padding: 0 5%; /* Slight margin for paper */
    }

    .footnotes {
        page-break-before: always;
    }
}
