/* Style the header with a grey background and some padding */
.header {
    overflow: hidden;
    background-color: #0d4077;
    padding: 10px;
    position: relative;
}

/* Style the header links */
.header a {
    float: left;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
}

/* Style the logo link (notice that we set the same value of line-height and font-size to prevent the header to increase when the font gets bigger */
.header a.logo {
  font-size: 25px;
  font-weight: bold;
}

/* Change the background color on mouse-over */
.header a:hover {
    /* [disabled]background-color: #ddd; */
    color: white;
}

/* Style the active/current link*/
.header a.active {
  background-color: dodgerblue;
  color: white;
}

/* Float the link section to the right */
.header-right {
  float: right;
}

/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 500px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }
  .header-right {
    float: none;
  }
}
/* --- Ensure search bar is sticky --- */

 div.sticky {
      position: sticky;
      top: 0;
      background-color: white;
      text-align: center;
      padding: 20px;
      margin-bottom: 20px;
    }

    body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    margin: 0px;
    color: #0d4077;
    position: relative;
    top: 0px;
    }

    h1 {
      text-align: center;
    }

    #yearFilter {
      padding: 6px;
      font-size: 15px;
      border-radius: 4px;
      border: 1px solid #ccc;
      margin-bottom: 20px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background-color: #f7f8f9;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    th {
      background-color: #0d4077;
      color: white;
      padding: 12px;
      text-align: left;
    }

    td {
      padding: 10px;
      border-bottom: 1px solid #ccc;
    }

    tr:nth-child(even) td {
      background-color: #edf0f4;
    }

    tr:hover td {
      background-color: #e4ebf2;
    }

    a {
      color: #0d4077;
      text-decoration: underline;
    }

    @media screen and (max-width: 900px) {
      thead {
        display: none;
      }

      table, tbody, tr, td {
        display: block;
        width: 100%;
      }

      tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid #ccc;
      }

      td {
        text-align: right;
        border-bottom: 1px solid #ccc;
        font-size: 14px;
      }

      td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
      }

      td:last-child {
        border-bottom: 0;
      }
}

/* --- Ensure Date column stays on one line and sizes to its content --- */
    thead th:nth-child(1),
    tbody td:nth-child(1),
    td[data-label="Date"] {
      white-space: nowrap;
    }
    /* Keep layout natural (auto) so the Date column expands only as needed */
    table { table-layout: auto; }
