/* --- ANNUAL HIKING SCHEDULE --- */
/* --- CONFIGURATION --- */
:root {
  --month-nav-height: 60px;

  /* Z-Index Scale (100 steps per layer for flexibility) */
  --z-sticky:         10;      /* Sticky navigation */
}

.content {
  padding-top: 0;
  scroll-padding-top: var(--month-nav-height);
}

/* Desktop Month Navigation */
.month-nav {
  position: sticky;
  top: 0;
  background: #fff url('../images/bg/content-corner.gif') no-repeat calc(100% + var(--content-padding-left-right)) top;
  z-index: var(--z-sticky);
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.month-links {
  display: flex;
  position: relative;
}

.month-link {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #888;
  font-size: 0.8rem;
  padding-bottom: 10px;
}

.month-link.active {
  color: var(--primary-green);
  font-weight: bold;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary-green);
  transition: transform var(--anim-speed) cubic-bezier(0.4, 0, 0.2, 1), width 0.3s;
}

/* --- MONTH SECTION --- */
/*
.month-section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}
*/
.month-section {
  max-width: 800px;
  margin: 0 0 1rem;
  padding: 0;
}

.month-section h3 {
  font-size: 1.25rem;
  font-weight: normal;
  line-height: 1.5rem;
  text-align: left;
  text-indent: 0;
  color: var(--h2-color);
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.event-item {
  display: grid;
  grid-template-columns: 120px 1fr;  /* left column fixed, right column flexible */
  gap: 1.5rem;
  align-items: start;
}

.event-date {
  text-align: right;
  font-size: 1.1rem;
  line-height: 1.4;
}

.event-date time {
  display: block;
  font-weight: normal;
  font-size: 1.25rem;
  color: #666;
}

.event-type {
  display: inline-block;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  text-align: center;
  background: var(--primary-green, #2e8b57);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  font-size: 1rem;
  margin-top: 0.5rem;

  /* Native Tooltip for Hover */
  cursor: help;
}

.event-type[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #333;
  color: white;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 4px;
  z-index: var(--z-sticky);;
}

.event-type[title]:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  border: 6px solid transparent;
  border-top-color: #333;
  z-index: var(--z-sticky);;
}

.event-details h4.event-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.25rem;
  color: #666;
  line-height: 1.3;
}

.event-details .event-info {
  margin: 0;
  font-size: var(--paragraph-font-size);
  color: #444;
  line-height: 1.6;
}

.event-info a {
  color: var(--primary-green, #2e8b57);
  text-decoration: underline;
  font-weight: 500;
}

.event-info a:hover {
  text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 640px) {
  .event-item {
  grid-template-columns: 1fr;
  gap: 0.8rem;
  }

  .event-date {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  }

  .event-date time {
  font-size: 1.15rem;
  }

  .event-type {
  flex-shrink: 0;
  }

  .month-section h3 {
  font-size: 1.8rem;
  }

  .event-title {
  font-size: 1.3rem;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media screen and (max-width: 960px) {
  /* Hide Month Nav on Mobile to prevent width overflow */
  .month-nav {
    display: none !important;
  }

}

/* --- PRINT DESIGN --- */
@media print {
  .event-type {
    background-image: none !important;   /* Removes header images and footer image */
    background: white !important;    /* Ensures pure white background */
  }
  .month-nav {
    display: none !important;
  }
  .month-section h3,
  .event-date time,
  .event-details h4.event-title,
  .event-type,
  .event-details .event-info {
    color: black;
  }
  .event-type {
    line-height: normal;
  }
  .event-details {
    padding-bottom: 5px;
  }
  .event-details .event-info {
    text-align: left;
    padding-bottom: 5px;
  }
  .month-section {
    page-break-inside: avoid;
    border-bottom: 2px solid #eee;
  }
}