.rtm-tl{
  --rtm-bg:#f5f7f2;
  --rtm-card:#ffffff;
  --rtm-border:#d7ddd5;
  --rtm-green:#1d553a;
  --rtm-gold:#bd911d;
  --rtm-text:#1f1e21;
  --rtm-muted:#4f5f57;
  --rtm-soft:#eef2ec;
  --rtm-soft-2:#f8f9f6;
  --rtm-focus:rgba(29,85,58,.12);
  max-width:1200px;
  margin:0 auto;
  color:var(--rtm-text);
}

.rtm-tl-head{
  margin:0 0 18px;
}

.rtm-tl-title{
  margin:0;
  color:var(--rtm-green);
  font-size:clamp(30px,4vw,44px);
  line-height:1.05;
}

.rtm-tl-lead{
  margin:10px 0 0;
  color:var(--rtm-muted);
  max-width:820px;
  line-height:1.7;
}

/* Bovenste tijdlijn */
.rtm-tl-svg-wrap{
  background:var(--rtm-card);
  border:1px solid var(--rtm-border);
  border-radius:26px;
  padding:14px 16px 12px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  box-shadow:0 12px 32px rgba(0,0,0,.04);
  scrollbar-width:thin;
  scrollbar-color:#c9d2cb transparent;
}

.rtm-tl-svg-wrap::-webkit-scrollbar{
  height:8px;
}

.rtm-tl-svg-wrap::-webkit-scrollbar-track{
  background:transparent;
  border-radius:999px;
}

.rtm-tl-svg-wrap::-webkit-scrollbar-thumb{
  background:#c9d2cb;
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

.rtm-tl-svg-wrap::-webkit-scrollbar-thumb:hover{
  background:#b8c4bb;
  border:2px solid transparent;
  background-clip:padding-box;
}

.rtm-tl-svg-inner{
  min-width:1200px;
}

.rtm-tl-svg-inner img,
.rtm-tl-svg-inner svg{
  display:block;
  width:auto;
  max-width:none;
  height:475px;           /* iets hoger */
  min-height:475px;
  transform:translateY(-22px); /* schuift content iets omhoog */
}
/* Detailweergave */
.rtm-tl-detail{
  margin-top:22px;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:20px;
  align-items:start;
}

.rtm-tl-card,
.rtm-tl-empty{
  background:var(--rtm-card);
  border:1px solid var(--rtm-border);
  border-radius:24px;
  padding:24px;
  box-shadow:0 12px 32px rgba(0,0,0,.04);
}

.rtm-tl-empty{
  color:var(--rtm-muted);
  border-style:dashed;
}

/* Optionele lijst/navigatie onder de tijdlijn of boven detail */
.rtm-tl-items-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.rtm-tl-items-nav a,
.rtm-tl-items-nav button,
.rtm-tl-item-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--rtm-border);
  background:#fff;
  color:var(--rtm-green);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rtm-tl-items-nav a:hover,
.rtm-tl-items-nav button:hover,
.rtm-tl-item-chip:hover{
  transform:translateY(-1px);
  background:var(--rtm-soft-2);
  box-shadow:0 10px 20px rgba(0,0,0,.04);
}

.rtm-tl-items-nav .is-active,
.rtm-tl-item-chip.is-active{
  background:rgba(189,145,29,.12);
  border-color:rgba(189,145,29,.35);
  color:#7e5f10;
}

/* Optionele prev / next knoppen */
.rtm-tl-pagination{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.rtm-tl-pagination a,
.rtm-tl-pagination button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--rtm-border);
  background:#fff;
  color:var(--rtm-green);
  text-decoration:none;
  font-weight:600;
  transition:transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.rtm-tl-pagination a:hover,
.rtm-tl-pagination button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,.05);
}

.rtm-tl-pagination .is-disabled,
.rtm-tl-pagination [disabled]{
  opacity:.45;
  pointer-events:none;
}

/* Meta */
.rtm-tl-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
}

.rtm-tl-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:var(--rtm-soft);
  color:var(--rtm-green);
  font-size:13px;
  font-weight:600;
}

.rtm-tl-year{
  background:rgba(189,145,29,.12);
  color:#7e5f10;
}

.rtm-tl-item-title{
  margin:0;
  color:var(--rtm-green);
  font-size:clamp(25px,3vw,36px);
  line-height:1.12;
}

.rtm-tl-subtitle{
  margin:8px 0 0;
  color:var(--rtm-muted);
  font-size:16px;
}

.rtm-tl-summary{
  margin:18px 0 0;
  font-size:17px;
  line-height:1.75;
}

.rtm-tl-content{
  margin-top:16px;
  color:var(--rtm-text);
  line-height:1.8;
}

.rtm-tl-content > *:first-child,
.rtm-tl-summary > *:first-child{
  margin-top:0;
}

.rtm-tl-content > *:last-child,
.rtm-tl-summary > *:last-child{
  margin-bottom:0;
}

/* Media */
.rtm-tl-media{
  padding:18px;
}

.rtm-tl-media img{
  display:block;
  width:100%;
  height:auto;
  border-radius:16px;
}

/* Links */
.rtm-tl-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.rtm-tl-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  background:var(--rtm-green);
  color:#fff !important;
  text-decoration:none;
  font-weight:600;
  transition:transform .18s ease, opacity .18s ease;
}

.rtm-tl-btn:hover{
  transform:translateY(-1px);
  opacity:.95;
}

.rtm-tl-btn--ghost{
  background:#fff;
  color:var(--rtm-green) !important;
  border:1px solid var(--rtm-border);
}

/* Related */
.rtm-tl-related{
  margin-top:20px;
}

.rtm-tl-related h3{
  margin:0 0 12px;
  color:var(--rtm-green);
  font-size:22px;
}

.rtm-tl-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.rtm-tl-rel-card{
  display:block;
  background:#fff;
  border:1px solid var(--rtm-border);
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}

.rtm-tl-rel-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(0,0,0,.06);
}

.rtm-tl-rel-card img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.rtm-tl-rel-body{
  padding:12px 14px 14px;
}

.rtm-tl-rel-title{
  margin:0;
  color:var(--rtm-green);
  font-size:16px;
  line-height:1.35;
}

/* Hotspots */
.rtm-tl-hotspot{
  cursor:pointer;
  transition:opacity .2s ease, transform .2s ease, filter .2s ease;
}

.rtm-tl-hotspot:hover{
  opacity:.9;
}

.rtm-tl-hotspot:focus{
  outline:none;
  filter:drop-shadow(0 0 6px rgba(29,85,58,.45));
}

.rtm-tl-hotspot.is-active{
  filter:drop-shadow(0 0 7px rgba(248,215,102,.95));
}

/* Responsive */
@media (max-width: 980px){
  .rtm-tl-detail{
    grid-template-columns:1fr;
  }

  .rtm-tl-svg-inner{
    min-width:1100px;
  }

  .rtm-tl-svg-inner img,
  .rtm-tl-svg-inner svg{
    height:140px;
    min-height:140px;
  }
}

@media (max-width: 767px){
  .rtm-tl-title{
    font-size:clamp(28px,7vw,36px);
  }

  .rtm-tl-svg-wrap{
    padding:10px 12px 10px;
    border-radius:20px;
  }

  .rtm-tl-svg-inner{
    min-width:980px;
  }

  .rtm-tl-svg-inner img,
  .rtm-tl-svg-inner svg{
    height:120px;
    min-height:120px;
  }

  .rtm-tl-card,
  .rtm-tl-empty{
    padding:18px;
    border-radius:18px;
  }

  .rtm-tl-grid{
    grid-template-columns:1fr;
  }

  .rtm-tl-links{
    flex-direction:column;
  }

  .rtm-tl-btn{
    width:100%;
  }

  .rtm-tl-items-nav,
  .rtm-tl-pagination{
    flex-direction:column;
  }

  .rtm-tl-items-nav a,
  .rtm-tl-items-nav button,
  .rtm-tl-item-chip,
  .rtm-tl-pagination a,
  .rtm-tl-pagination button{
    width:100%;
    justify-content:center;
  }
}