/**
 * GMP Sidebar Year Dropdown v1.1.0
 * Matches the home page year dropdown style across all pages
 * Wide panel, cyan left-border on current year, clean rows with bottom borders
 */

/* SVG icon rotation when expanded */
.nav__years.is-open > a svg {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}
.nav__years > a svg {
  transition: transform 0.2s ease;
}

/* Year submenu container */
.nav__years ul {
  display: none;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.nav__years.is-open ul {
  display: block !important;
}

/* Individual year items — match home page: flat rows, bottom borders, no radius */
.nav__list-year {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #e1e5e8 !important;
  border-left: none !important;
  overflow: visible !important;
  background: none !important;
}

/* Year links — match home page: gray text, 16px, block, 12px padding */
.nav__list-year a {
  display: block !important;
  padding: 12px 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #8a8a8a !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  background: none !important;
  line-height: 1 !important;
  text-align: center !important;
  transition: color 0.15s ease !important;
  box-shadow: none !important;
}

/* Hover state */
.nav__list-year a:hover {
  color: #333 !important;
}

/* Current/active year — cyan left border, same text style as home page */
.nav__list-year.current {
  border-left: 5px solid #00dffc !important;
}

.nav__list-year.current a {
  background: none !important;
  color: #8a8a8a !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.nav__list-year.current a:hover {
  color: #333 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Remove bullet dots from non-current years */
.nav__list-year:not(.current) a::before {
  display: none !important;
  content: none !important;
}

/* Remove the centered separator line above the year list */
.nav__years ul::before {
  display: none !important;
  content: none !important;
}

/* Smooth slide animation */
.nav__years ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}

.nav__years.is-open ul {
  max-height: 400px !important;
  opacity: 1 !important;
}

/* Fix: Make years parent expand when open */
.nav__years.is-open {
  height: auto !important;
  overflow: visible !important;
}

/* Fix: Ensure year submenu is not clipped */
.nav__years.is-open ul {
  overflow: visible !important;
}