{ /* Reset */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background-color: #eeeeee;
  margin: 0 5px;
  min-height: 100vh;
}

a {
  color: #000080;      
  font-weight: bold;
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: #007a5e;       
}

html {
  overflow-y: scroll;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #333333;
  color: white;
  text-align: center;
  padding: 0.25rem;
}

.year-nav {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.year-nav a {
  color: white;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  font-weight: bold;
  border-radius: 4px;
}

.year-nav a:hover {
  background: RoyalBlue;
}

a.current {
  color: Cyan;
  font-weight: bold;
}

/* Month navigation inside header */
.month-nav {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem;
}

.month-nav a {
  color: white;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: bold;
}

.month-nav a:hover {
  background: RoyalBlue;
}

main {
  margin: 5px;
  padding-bottom: 2rem; /* Ensures content doesn’t hide under footer */
}

/* Section headers (months) */
h3 {
  margin: 1rem 0 1rem;
  color: #000;
  text-align: center;
}

/* Remove top margin for first month to prevent big space */
h3:first-of-type {
  margin-top: 0;
}

hr {
  margin: 0.5rem 10px 0.5rem 10px;
}

/* Empty month containers: remove extra spacing */
#jan-content,
#feb-content,
#mar-content,
#apr-content,
#may-content,
#jun-content,
#jul-content,
#aug-content,
#sep-content,
#oct-content,
#nov-content,
#dec-content {
  margin: 0;
  padding: 0;
}

.card {
  background: #cdd6de;
  color: #000;
  border: 2px solid #888;
  border-radius: 6px;
  padding: 0.5rem 0.5rem; /* added vertical padding */
  margin-bottom: 0.75rem; /* slightly bigger spacing */
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.card p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-header {
  cursor: pointer;
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 4px;
  background-color: #cdd6de;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.card-header:hover {
  background-color: #999;
}

.card-body.hidden {
  display: none;
}

.icon {
  width: 0.75rem;           
  height: 0.75rem;
  vertical-align: middle;  
  margin-right: 0.35rem;   
}

.race-links {
  margin: 0.5rem 0;
}

.toggle-icon {
  margin-right: 0.5rem;
  font-weight: bold;
  width: 1rem;
  text-align: center;
}

.indent {
  margin-left: 2rem;
  margin-top: 0;
  margin-bottom: 0;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: black;
  color: white;
  text-align: center;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  z-index: 1000;
}

.instructions {
  padding: 0.25em;
  margin-left: 0.25rem;
  color: #000;
}

.instructions-icon {
  font-weight: bold;
  color: Black; 
  margin: 0 0.1rem 0 0;  
}

.tba {
  margin-left: 0.5rem;
}

.card-body ul {
  margin-top: 0.25rem; 
}

.card-body h2 {
  margin: 0rem;
}

.thin-spacer {
  height: 0.25rem;   
  line-height: 0;    /* ensure no extra height from content */
  font-size: 0;      /* prevent inherited font size from affecting height */
}

.footer-logo {
  display: block;
  margin: 1rem auto 0 auto; /* top margin, centered horizontally */
  max-width: 150px;
  height: auto;
}
