/* Homepage Styles - Clean & Elegant */

/* Font definitions from external files */
@font-face {
    font-family: 'lf';
    font-style: normal;
    src: url('lf-font-normal.woff2') format('woff2');
    font-display: block;
}

@font-face {
    font-family: 'lf';
    font-style: italic;
    src: url('lf-font-italic.woff2') format('woff2');
    font-display: block;
}

@font-face {
    font-family: 'lf';
    font-style: normal;
    unicode-range: U+2702;
    src: url('lf-font-unicode.woff2') format('woff2');
    font-display: block;
}

/* Homepage reset and positioning */
* {
    margin: 0; 
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: 'rvrn' 1, 'calt' 1, 'kern' 1, 'liga' 1, 'ss03' 1, 'ss10' 0, 'ss15' 1, 'ss18' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: default;
}

html {
    font-family: lf;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #111;
}

/* Use embedded font family */
body {
    font-family: 'lf', -apple-system, BlinkMacSystemFont, Verdana, sans-serif;
}

/* Homepage links */
a {
    text-decoration: none;
    color: #111;
    transition: background-color 0.15s ease;
}

a:hover {
    background-color: #c8e6c9;
    padding: 0;
    border-radius: 2px;
}

/* Footer links */
#footer a {
    padding: 1px 3px;
    border-radius: 2px;
    transition: background-color 0.15s ease;
}

#footer a:hover {
    background-color: #c8e6c9;
}

/* Homepage container - centered positioning */
#container {
    position: absolute;
    width: 70%;
    max-width: 800px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Homepage masthead */
#masthead {
    text-align: center;
    font-style: italic;
    font-size: 36px;
    font-variation-settings: 'wght' 500;
    margin-bottom: 10px;
    font-family: 'lf', -apple-system, BlinkMacSystemFont, Verdana, sans-serif;
}

/* Homepage navigation center */
#navcenter {
    text-align: center;
    margin: auto;
    display: table;
    padding-top: 20px;
    white-space: nowrap;
}

/* Homepage footer */
#footer {
    bottom: 10px;
    font-size: 11px;
    position: absolute;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width: 170px;
    height: 10px;
}

/* Homepage navigation dropdown styles */
#cssdropdown ul { 
    margin: 0 auto; 
}

#cssdropdown, #cssdropdown ul { 
    list-style: none; 
    font-size: 15px;
    font-family: 'lf', -apple-system, BlinkMacSystemFont, Verdana, sans-serif;
}

/* Head links */
#cssdropdown li.headlink { 
    width: 120px; 
    float: left; 
    margin-left: -1px;  
    text-align: center; 
}

#cssdropdown li.headlink a { 
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0;
    border-radius: 2px;
    transition: background-color 0.15s ease;
}

/* Child lists and links */
#cssdropdown li.headlink ul { 
    display: none; 
    text-align: center; 
    font-size: 12px;
}

#cssdropdown li.headlink:hover ul { 
    display: block; 
}

#cssdropdown li.headlink ul { 
    padding-top: 10px; 
}

#cssdropdown li.headlink ul li a { 
    padding-bottom: 5px; 
}

#cssdropdown li.headlink ul li a:hover { 
    text-decoration: underline;
}

#cssdropdown li.headlink a:hover { 
    background-color: #c8e6c9;
    text-decoration: none;
}

/* Responsive design for homepage */
@media (max-width: 768px) {
    #container {
        width: 90%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    #masthead {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    #navcenter {
        padding-top: 15px;
    }
    
    #cssdropdown, #cssdropdown ul {
        font-size: 14px;
    }
    
    #cssdropdown li.headlink {
        width: 90px;
        margin-left: 0;
        margin-right: 5px;
    }
    
    #footer {
        font-size: 10px;
        width: auto;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    #container {
        width: 95%;
    }
    
    #masthead {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    #navcenter {
        padding-top: 10px;
    }
    
    #cssdropdown {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    #cssdropdown li.headlink {
        width: auto;
        float: none;
        margin: 0 8px;
    }
    
    #cssdropdown li.headlink a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Print styles for homepage */
@media print {
    #container {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
    }
}