/* ============================================================
   GLOBAL SITE STYLES
   ============================================================ */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    line-height: 1.4;
}


/* ============================================================
   COMMON SITE LAYOUT
   ============================================================ */

.site-container {
    max-width: 900px;
    margin: 0 auto;
}

.site-logo {
    display: block;
    max-width: 80px;
    height: auto;
    margin: 5px auto;
}

.site-heading {
    text-align: center;
    margin: 10px 0 20px;
}

/* Highlight for PBs */
.pb-time {
	 font-weight: bold;
	 color: #008000;
	 background-color: #e8ffe8;
}



/* ============================================================
   SITE NAVIGATION
   ============================================================ */

.site-navigation {
    text-align: center;
    margin-bottom: 20px;
}


/* ============================================================
   COMMON BUTTONS
   ============================================================ */

/*
   Supports both:

   <a class="menuButton" href="...">Results</a>

   and the existing:

   <a href="..."><button class="menuButton">Results</button></a>
*/

.menuButton,
a.menuButton {
    display: inline-block;
    box-sizing: border-box;
    color: #000000;
    text-decoration: none;
    background: #f2f2f2;
    border: 1px solid #999999;
    border-radius: 8px;
    padding: 8px 14px;
    margin: 4px;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
}

.menuButton:visited,
.menuButton:hover,
.menuButton:active,
.menuButton:focus,
a.menuButton:visited,
a.menuButton:hover,
a.menuButton:active,
a.menuButton:focus,
a:visited .menuButton {
    color: #000000;
    text-decoration: none;
}

.menuButton:hover,
a.menuButton:hover {
    background: #e8e8e8;
}


/* ============================================================
   COMMON FILTER LAYOUT
   ============================================================ */

.site-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.site-filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-filter-item label {
    font-weight: bold;
}

.site-filter-item select {
    min-width: 150px;
    padding: 5px;
}


/* ============================================================
   RESULTS FILTER FORM
   ============================================================ */

form#ResultsFilterSelect {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 8px;
    background: #f7f7f7;
    border-radius: 8px;
    border: 1px solid #ddd;
}

form#ResultsFilterSelect label {
    font-weight: bold;
}

form#ResultsFilterSelect select {
    padding: 6px;
    font-size: 14px;
}


/* ============================================================
   RESULTS FILTER ITEMS
   ============================================================ */

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ============================================================
   TABLES
   ============================================================ */

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 4px 2px;
    text-align: center;
    border: 1px solid #ccc;
    font-size: 14px;
}

th {
    background: #004a99;
    color: white;
    font-weight: bold;
}

@media (min-width: 1200px) {
    table {
        width: 900px;
    }

    th,
    td {
        padding: 5px 2px;
