:root {
  --primary-tbs: #2040AC;
}

/* ─── Mode Toggle ─── */
.tl-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: .5rem;
  margin: 2rem 0 1rem;
}

.tl-mode-btn {
  padding: .25rem;
  border: 3px solid #CCC;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: #1a1a1a;
  transition: background 0.2s, color 0.2s;
  
  height: 40px;
  width: 48px;
  text-align: center;

  background: var(--primary-tbs);
  color: #fff;
}
.tl-mode-btn:first-child {
  border-right: 0;
  border-top-left-radius: .8rem;
  border-bottom-left-radius: .8rem;
    width: 45px;
}
.tl-mode-btn:last-child {
  border-left: 3px solid #CCC;
  padding-left: .5rem;
  border-top-right-radius: .8rem;
  border-bottom-right-radius: .8rem;
}

.tl-mode-btn:hover {
  background: none transparent;
  color: var(--primary-tbs);
  border-color: #DDD;
}


/* ════════════════════════════
CARD MODE
════════════════════════════ */

.tl-card-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px 20px;
}

.tl-card-panel {
  display: flex;
  border: 1px solid #ccc;
  background: #fff;
  min-height: 450px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 50px 200px #D2CFC1;
  gap: 0 2rem;
}

.tl-card-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-right: 1px #DDD solid;
}

.tl-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-card-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tl-card-label {
  font-weight: 700;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 20px;
}

.tl-card-date {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .5rem;
  line-height: 1.2;
}

.tl-card-artists {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0 0 0 .5rem;
}

.tl-card-artists li {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #1a1a1a;
}

.tl-card-description {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  border-top: 1px solid #e0e0e0;
  padding-top: 22px;
}

/* ─── Year Navigation ─── */
.tl-year-nav {
  max-width: 1024px;
  margin: 0 auto;
  margin-top: .5rem;
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-top: .5rem;
}

.tl-year-nav a {
  font-size: 1.2rem;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  padding: 0;
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.tl-year-nav a:hover { color: #1a1a1a; }

.tl-year-nav a.active {
  color: #222;
  font-weight: 600;
  border-bottom: 3px solid #222;
}

/* ════════════════════════════
TIMELINE MODE
════════════════════════════ */

.tl-timeline-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 10px 10px 0;
  position: relative;
  font-size: 1.25rem;
}

.tl-timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50px;
  bottom: 3.25rem;
  width: 2px;
  background: var(--primary-tbs);
  transform: translateX(-50%);
}

.tl-event {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  position: relative;
  margin-bottom: 8rem;
  @media only screen and (min-width: 1024px) {
    margin-bottom: .5rem;
  }
}


.tl-event:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}
  .tl-event:nth-child(odd) .tl-event-box {
    border-bottom-right-radius: 4rem;
  }
  .tl-event:nth-child(even) .tl-event-box {
    border-bottom-left-radius: 4rem;
  }
  .tl-event:nth-child(odd) .tl-event-images {
    left: 7rem;
    transform: rotate(-4deg);    
  }
  .tl-event:nth-child(even) .tl-event-images {
    right: 7rem;
    transform: rotate(8deg);
  }

.tl-year-marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  
  color: var(--primary-tbs);
  font-weight: 700;
  text-align: center;
  
  width: 60px;
  height: 60px;
  line-height: 3rem;
  border-radius: 8rem;
  border: 2px var(--primary-tbs) solid;
  
  padding: .25rem;
  white-space: nowrap;
  z-index: 1;
  
  background: #fff;
}

.tl-event-box {
  position: relative;
  padding: 1rem 1rem 2rem;
  border: 1px solid #222;
  max-width: 375px;
  width: 100%;
  background: #fff;
  transition: background 0.5s ease, color 0.2s ease, border-color 0.5s ease;
}

.tl-event-box:hover {
  background: var(--primary-tbs);
  color: #fff;
  border-color: var(--primary-tbs);
}


.tl-event-box .tl-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: .5rem;
}
.tl-event-box:hover .tl-label {
  color: #fff;
}

.tl-event-box .tl-date {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.tl-event-box .tl-artists {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 1rem;
}
.tl-event-box:hover .tl-artists {
  color: #fff;
}

.tl-event-box .tl-description {
  font-size: 12px;
  line-height: 1.7;
  color: #222;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.tl-event-images {
  position: absolute;
  bottom: -6rem;
  display: flex;
  gap: .5rem;
  margin: 0;
  flex-wrap: wrap;
  background: #fff;
  z-index: 100;
}

.tl-event-images img {
  width: 125px;
  height: auto;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tl-hidden { display: none; }

.tl-load-more-wrapper {
  text-align: center;
  margin-top: 20px;
  z-index: 10;
  position: relative;
}


.tl-load-more-btn {
  padding: 1rem 1.5rem;
  font-weight: 600;
  border: 2px solid #2040AC;
  background: white;
  color: #2040AC;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.tl-load-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #2040AC;
  transform: translate(-50%, -50%);
  transition: width 1s ease, height 1s ease, opacity .5s ease;
  z-index: -1;
  opacity: 0;
}

.tl-load-more-btn:hover {
  color: white;
  box-shadow: 0 4px 15px rgba(32, 64, 172, 0.3);
}

.tl-load-more-btn:hover::before {
  width: 300px;
  height: 300px;
  opacity: 1;
}


/* ─── Responsive ─── */
@media (max-width: 680px) {
  .tl-card-panel { flex-direction: column; }
  .tl-card-image { flex: none; height: 280px; }
  .tl-card-content { padding: 36px 28px; }
  .tl-card-date { font-size: 22px; }
  
  .tl-timeline-wrapper::before { left: 20px; }
  .tl-event,
  .tl-event:nth-child(even) {
    justify-content: flex-start;
    padding: 0 0 0 50px;
  }
  .tl-year-marker { left: 20px; transform: none; }
}