:root {
    --primary-blue: #004488; 
    --secondary-blue: #0066cc; 
    --light-blue: #f0f8ff; 
    --border-blue: #bbddff;
    --text-main: #333333;
    --bg-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

ul {
    list-style-type: none; 
    padding-left: 0;     
}

h1, h2, h3 {
    color: var(--primary-blue);
}

h1 {
    text-align: center;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-blue);
}

.math-box {
    background-color: var(--light-blue);
    border-left: 5px solid var(--primary-blue);
    padding: 15px;
    margin: 20px 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid var(--border-blue);
    padding: 10px 15px;
    text-align: left;
}

th {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

tr:nth-child(even) {
    background-color: #fafcff;
}

.notice {
    background-color: #e6f2ff;
    border: 1px solid var(--border-blue);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    color: var(--primary-blue);
}


/* Flexible Logo Grid for Backing & Sponsorships */
.logo-grid {
    display: grid;
    /* Automatically creates columns based on available space */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 20px;
    margin-top: 25px;
}

.logo-item {
    background-color: var(--light-blue);
    border: 2px dashed var(--border-blue);
    border-radius: 6px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.logo-item:hover {
    border-color: var(--primary-blue);
    background-color: #e6f2ff;
}

.logo-item img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}