/* ==== ./css/main.css ==== */
body { margin: 0; padding: 0; width: 100%; font-family: sans-serif; overflow-x: hidden; }

#header-wrapper {
    background-color: #333399; /* Original Blue */
    width: 100%;
    padding: 15px 0;
    margin: 0;
    border-bottom: 4px solid #2a2a80;
    box-sizing: border-box;
}

#header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Reset any floating or positioning from kickstart/legacy */
#logo {
    float: none;
    width: 100%;
    text-align: center;
}

#logo h1 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

#logo h1 a {
    color: #FFFFFF; /* White Text */
    text-decoration: none;
    font-weight: bold;
    font-size: 28px;
    display: block; /* Stack on mobile */
}

#logo h1 span#slogan {
    /* CRITICAL FIX FOR MOBILE: */
    display: block !important;
    position: static !important; /* Stop it from floating off screen */
    top: auto !important;
    left: auto !important;
    
    color: #cccccc; /* Light grey/blue for contrast */
    font-size: 14px;
    font-weight: normal;
    margin-top: 5px;
    visibility: visible;
}

/* ==== DESKTOP VIEW (Restore side-by-side look) ==== */
@media (min-width: 768px) {
    #header { text-align: left; padding: 0 20px; }
    #logo { text-align: left; }
    
    #logo h1 a {
        display: inline;
        font-size: 36px;
    }

    #logo h1 span#slogan {
        display: inline !important;
        position: relative !important;
        top: -5px !important;
        left: 15px !important; /* Small gap instead of 14em */
        font-size: 16px;
        margin-top: 0;
    }
}

/* ==== LAYOUT & CONTENT ==== */
h1, h2 { text-align: center; }

div#page-wrapper { width: 100%; }
div#page { width: 100%; margin: 0 auto; }
div#wide-content { width: 100%; }

/* Table Styles */
table { border-collapse:collapse; width: 100%; }
table#income_data_table { width: 100%; max-width: 23em; margin: 0 auto; }
table.report td, table.report th { 
    border-bottom: 1px solid lightblue; 
    border-right: 1px solid lightblue; 
    padding: 8px;  
}
table td { text-align: right; }
table th { padding: 10px; text-align: left; background: #FEF1E9; }

/* Hide sidebars on mobile */
div#amzn_box { display: none; }

/* Link Box */
div#mylink {
    position: fixed;
    top: 0;
    right: 0;
    background: #333399;
    font-family: Consolas, sans-serif;
    font-weight: bold;
    font-size: 80%;
    padding: 5px 8px;
    z-index: 1000;
    border-bottom-left-radius: 5px;
}
div#mylink a { text-decoration: none; color: white; }
div#mylink:hover { background: #D31B17; }
