/*
 * Timeline view of the Typen page (partials/typen-timeline.php,
 * includes/tijdlijn.php). Rows are laid out on percentages of one shared year axis
 * per family: label column on the left, track on the right.
 */

.typen-view { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.3); margin: 0 0 30px; }
.typen-view a { padding: 7px 16px; color: #fff; text-decoration: none; font-size: 1rem; }
.typen-view a[aria-current] { background: #49E05F; color: #000; }
.typen-overview .typen__bar { margin-bottom: 20px; }

.tl__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 34px; color: #9a9a9a; font-size: 1rem; }
.tl__legend-band, .tl__legend-bar { display: inline-block; width: 28px; height: 12px; margin-right: -8px; }
.tl__legend-band { background: rgba(73, 224, 95, 0.22); border-bottom: 2px solid rgba(73, 224, 95, 0.7); }
.tl__legend-bar { width: 8px; height: 14px; background: rgba(255, 255, 255, 0.8); }
.tl__legend-bar.is-sale { background: #49E05F; }

.tl { --label: 250px; }
.tl__scale { position: relative; height: 22px; margin: 0 0 4px var(--label); color: #9a9a9a; font-size: 0.95rem; }
.tl__scale span { position: absolute; top: 0; transform: translateX(-50%); }

.tl__group { margin: 22px 0 6px; font-size: 1.15rem; font-weight: 400; color: #9a9a9a; }
.tl__group a { color: #9a9a9a; text-decoration: none; }
.tl__group a:hover { color: #49E05F; }

.tl__rows { list-style: none; margin: 0; padding: 0; }
.tl__row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; min-height: 44px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tl__rows.is-nested .tl__label { padding-left: 14px; }
.tl__label { display: block; padding: 6px 16px 6px 0; color: #fff; text-decoration: none; line-height: 1.2; }
.tl__name { display: block; font-weight: 600; font-size: 1.1rem; }
.tl__meta { display: block; margin-top: 2px; color: #9a9a9a; font-size: 0.9rem; }
.tl__label:hover .tl__name { color: #49E05F; }

.tl__track { position: relative; height: 40px; }
.tl__grid { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.07); }
.tl__band { position: absolute; top: 4px; bottom: 4px; background: rgba(73, 224, 95, 0.16); border-bottom: 2px solid rgba(73, 224, 95, 0.65); min-width: 3px; }
.tl__band.is-cars { background: none; border: 1px dashed rgba(255, 255, 255, 0.28); border-bottom-width: 1px; }
.tl__bar { position: absolute; bottom: 6px; min-width: 3px; background: linear-gradient(to top, #49E05F calc(var(--sale) * 1%), rgba(255, 255, 255, 0.82) 0); border-right: 1px solid #000; box-sizing: border-box; }

@media (max-width: 767px) {
  .tl { --label: 0px; }
  .tl__scale { margin-left: 0; }
  .tl__row { display: block; padding: 8px 0 4px; }
  .tl__label { padding: 0 0 4px; }
  .tl__rows.is-nested .tl__label { padding-left: 0; }
}
