/* ───── KARAFT timeline (Prestige Allure clone) ─────
   Eyebrow + heading, a centered row of year tabs, and a panel per era with
   an image alongside heading + body. */

.kf-tl { padding: var(--section-gap, 96px) 0; }

.kf-tl__head { text-align: center; margin-bottom: 40px; }
.kf-tl__heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: var(--track-heading, 0.16em);
  margin: 14px 0 0;
}

/* ── Year tabs (below the card) ───────────────────────────────────────── */
.kf-tl__tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.kf-tl__tab {
  position: relative;
  background: none;
  border: 0;
  padding: 0 0 18px;
  margin-bottom: -19px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: var(--track-button, 0.18em);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.25s ease;
}
.kf-tl__tab::after {
  content: "";
  position: absolute;
  left: 0; bottom: -29px;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.kf-tl__tab:hover { color: var(--color-text); }
.kf-tl__tab.is-active { color: var(--color-text); }
.kf-tl__tab.is-active::after { transform: scaleX(1); }

/* ── Panels — white card on the grey canvas ───────────────────────────── */
.kf-tl__panel { display: none; }
.kf-tl__panel.is-active { display: block; }
.kf-tl__card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  background: var(--color-surface);
  min-height: 540px;
}

.kf-tl__media {
  overflow: hidden;
  background: var(--color-placeholder);
}
.kf-tl__img,
.kf-tl__placeholder { width: 100%; height: 100%; }
.kf-tl__img { object-fit: cover; }
.kf-tl__placeholder { background: var(--color-placeholder); }

.kf-tl__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}
.kf-tl__entry-eyebrow { margin-bottom: 18px; }
.kf-tl__entry-heading {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: var(--track-heading, 0.16em);
  margin: 0 0 18px;
}
.kf-tl__entry-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kf-tl__card { grid-template-columns: 1fr; min-height: 0; }
  .kf-tl__media { aspect-ratio: 4 / 3; }
  .kf-tl__body { padding: 40px 32px; }
  .kf-tl__tabs { gap: 28px; }
}
@media (max-width: 375px) {
  .kf-tl { padding: 64px 0; }
  .kf-tl__head { margin-bottom: 28px; }
  .kf-tl__tabs {
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .kf-tl__tab { flex: 0 0 auto; }
}
