﻿/* ==========================================
   1. CSS Reset & Defensive Base Rules
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f9f9f9;
    overflow-x: hidden; 
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

p, li, a, h1, h2, h3, h4 {
    overflow-wrap: anywhere;
    word-break: normal;
}

.auto-style1 {
    color: #3498DB;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================
   2. Layout & Typography Styles
   ========================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e1e4e8;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header img {
    height: 48px;
    width: auto;
}

.content-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
}

.sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Direct Global Styling for H1 and H2 (Fixes your centering and color issue) */
h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: #008080;
        /* Change to your desired H1 color */
    text-align: center;      /* Centers H1 text */
}

h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;          /* Change to your desired H2 color */
    text-align: center;      /* Centers H2 text */
}

p {
    margin-bottom: 1.2rem;
}

/* Responsive Table Wrapper Rule */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.sidebar img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
}

/* Site Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.75rem;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    margin-top: 1rem;
}

.site-footer nav a {
    color: #3498db;
}

/* ==========================================
   3. Breakpoint Strategy & Mobile Adjustments
   ========================================== */

@media (max-width: 840px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1rem auto;
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}