/* =====================================================================
   TIMELINE PARALLAX — Refined layout v3
   No photo column. No date header. Cards offset from the spine.
   Photos live inside posts. Metallic green year circle.
   Sticky year rail for quick navigation.
   ===================================================================== */

.tpl-timeline,
.tpl-osh,
.tpl-split {
  /* Palette */
  --tpl-accent:        #E85C1A;
  --tpl-accent-deep:   #c44a12;
  --tpl-accent-soft:   rgba(232,92,26,.10);
  --tpl-accent-line:   rgba(232,92,26,.30);

  --tpl-ink:           #14110f;
  --tpl-ink-soft:      #4a4844;
  --tpl-muted:         #8a8783;

  --tpl-paper:         #faf8f5;
  --tpl-paper-deep:    #f2eeea;
  --tpl-line:          #e6e2dd;
  --tpl-line-soft:     #efece8;

  --tpl-card-bg:       #ffffff;
  --tpl-card-border:   rgba(20,17,15,.06);

  /* Depth */
  --tpl-shadow-sm:
    0 1px 2px rgba(20,17,15,.03),
    0 2px 6px -1px rgba(20,17,15,.04);
  --tpl-shadow-md:
    0 1px 2px rgba(20,17,15,.04),
    0 6px 18px -4px rgba(20,17,15,.06),
    0 20px 40px -20px rgba(20,17,15,.10);
  --tpl-shadow-hover:
    0 1px 2px rgba(20,17,15,.05),
    0 10px 28px -6px rgba(232,92,26,.10),
    0 32px 60px -24px rgba(20,17,15,.14);

  --tpl-radius:        14px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--tpl-ink-soft);
  box-sizing: border-box;
}
.tpl-timeline *,
.tpl-osh *,
.tpl-split * { box-sizing: border-box; }

.tpl-timeline .screen-reader-text,
.tpl-osh .screen-reader-text,
.tpl-split .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   YEAR RAIL — sticky vertical slider to jump to any year
   ===================================================================== */
.tpl-year-rail {
  --rail-accent:      #E85C1A;
  --rail-accent-soft: rgba(232,92,26,.10);
  --rail-ink:         #14110f;

  position: fixed;
  top: 50%;
  left: 1.25rem;
  z-index: 90;

  max-height: min(76vh, 720px);
  padding: .7rem .85rem;

  display: flex;
  flex-direction: column;

  overflow-y: auto;
  overflow-x: hidden;

  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid rgba(20,17,15,.06);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(20,17,15,.04),
    0 12px 32px -16px rgba(20,17,15,.18);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  opacity: 0;
  pointer-events: none;
  transform: translate(-16px, -50%);
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.22,1,.36,1);

  scrollbar-width: thin;
  scrollbar-color: rgba(20,17,15,.15) transparent;
}
.tpl-year-rail::-webkit-scrollbar { width: 4px; }
.tpl-year-rail::-webkit-scrollbar-thumb {
  background: rgba(20,17,15,.12);
  border-radius: 999px;
}
.tpl-year-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.tpl-year-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tpl-year-rail__item { margin: 0; padding: 0; }

.tpl-year-rail__link {
  position: relative;
  display: block;
  padding: .55rem .85rem .55rem 3rem;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  color: rgba(20,17,15,.42);
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  transition:
    color .2s ease,
    background .2s ease;
}
.tpl-year-rail__link:hover {
  color: var(--rail-ink);
  background: rgba(20,17,15,.04);
}
.tpl-year-rail__link.is-active {
  color: var(--rail-accent);
  background: var(--rail-accent-soft);
  font-weight: 700;
}

.tpl-year-rail__dot {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(20,17,15,.20);
  transform: translate(0, -50%) scale(1);
  transform-origin: center;
  box-sizing: border-box;
  transition:
    transform .3s cubic-bezier(.22,1,.36,1),
    background .25s ease,
    border-color .25s ease,
    box-shadow .3s ease;
}
.tpl-year-rail__link:hover .tpl-year-rail__dot {
  border-color: rgba(20,17,15,.4);
}
.tpl-year-rail__link.is-active .tpl-year-rail__dot {
  background: var(--rail-accent);
  border-color: var(--rail-accent);
  transform: translate(0, -50%) scale(1.35);
  box-shadow:
    0 0 0 4px rgba(232,92,26,.18),
    0 2px 6px rgba(232,92,26,.22);
}

.tpl-year-rail__label { display: inline-block; }

/* Hide the rail below 1280px — too cramped next to content */
@media (max-width: 1280px) {
  .tpl-year-rail { display: none; }
}

/* =====================================================================
   A. SPLIT
   ===================================================================== */
.tpl-split {
  --highlight:     #e6e2dd;
  --marker:        8px;
  --year-size:     84px;
  --year-font:     2rem;
  --row-pad:       2.5rem;
  --spine-pos:     max(10%, 140px);
  --card-max:      780px;

  max-width: 1500px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;

  background:
    radial-gradient(140% 60% at 50% 0%, #ffffff 0%, transparent 55%),
    linear-gradient(180deg, var(--tpl-paper) 0%, var(--tpl-paper-deep) 100%);

  color: var(--tpl-ink-soft);
}

/* Top accent bar */
.tpl-split::before {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--tpl-accent) 0%, #f4a15e 100%);
  border-radius: 2px;
  margin: 0 auto 3.5rem;
  box-shadow: 0 2px 8px -2px rgba(232,92,26,.35);
}

/* ---- Row ---- */
.tpl-split-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  margin-top: -1px;
  padding-bottom: var(--row-pad);

  /* Offset for sticky headers when jumping to an anchor */
  scroll-margin-top: 6rem;

  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
}
.tpl-split-row.tpl-visible { opacity: 1; transform: translateY(0); }
.tpl-split-row:last-child  { padding-bottom: 0; }

/* ---- Spine + marker ----
   Default: card on the right → spine at 10 %.
   Card on the left → spine at 90 %. */
.tpl-split-row::before,
.tpl-split-row::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.tpl-split-row::after {
  top: 1rem; bottom: 1rem;
  left: var(--spine-pos);
  width: 1.5px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--tpl-line) 10%,
    var(--tpl-line) 90%,
    transparent 100%);
  transform: translateX(-50%);
  z-index: 0;
}
.tpl-split-row::before {
  top: 1.6rem;
  left: var(--spine-pos);
  width: var(--marker);
  height: var(--marker);
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--tpl-line);
  transform: translate(-50%, 0);
  z-index: 1;
}
.tpl-split-row:has(> .tpl-split-side--text.tpl-split-side--left)::after,
.tpl-split-row:has(> .tpl-split-side--text.tpl-split-side--left)::before {
  left: calc(100% - var(--spine-pos));
}

/* ---- Sides ---- */
.tpl-split-side {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}
.tpl-split-side--left,
.tpl-split-side--right,
.tpl-split-side--center { grid-column: 1; }

.tpl-split-side--text { padding: 0; }

/* ---- Text card ---- */
.tpl-split-row .tpl-split-card {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, #fefdfc 100%);
  border: 1px solid var(--tpl-card-border);
  border-radius: var(--tpl-radius);
  padding: 1.75rem 2rem 1.6rem;

  box-shadow: var(--tpl-shadow-sm);
  transition:
    box-shadow .35s cubic-bezier(.22,1,.36,1),
    transform .35s cubic-bezier(.22,1,.36,1),
    border-color .35s;

  width: auto;
  max-width: min(var(--card-max), 100%);
  box-sizing: border-box;
  overflow: hidden;

  margin-left: calc(var(--spine-pos) + var(--year-size) / 2 + 1.25rem);
  margin-right: 0;
}
.tpl-split-row:has(> .tpl-split-side--text.tpl-split-side--left) .tpl-split-card {
  margin-left: auto;
  margin-right: calc(var(--spine-pos) + var(--year-size) / 2 + 1.25rem);
}
.tpl-split-card:hover {
  box-shadow: var(--tpl-shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(232,92,26,.14);
}

/* Accent stripe */
.tpl-split-row .tpl-split-card::after {
  content: '';
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg,
    var(--tpl-accent) 0%,
    rgba(232,92,26,.55) 55%,
    rgba(232,92,26,.10) 100%);
  pointer-events: none;
}
.tpl-split-row:has(> .tpl-split-side--text.tpl-split-side--left) .tpl-split-card::after {
  left: auto;
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Connector line from year circle to card */
.tpl-split-row .tpl-split-card::before {
  content: '';
  position: absolute;
  top: calc(1.75rem + var(--year-size) / 2 - .75rem);
  left: calc(-1 * (var(--year-size) / 2 + 1.25rem));
  width: calc(var(--year-size) / 2 + 1.25rem);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(232,92,26,.35) 0%,
    var(--tpl-line) 100%);
  pointer-events: none;
}
.tpl-split-row:has(> .tpl-split-side--text.tpl-split-side--left) .tpl-split-card::before {
  left: auto;
  right: calc(-1 * (var(--year-size) / 2 + 1.25rem));
  background: linear-gradient(270deg,
    rgba(232,92,26,.35) 0%,
    var(--tpl-line) 100%);
}

/* ---- Year circle — metallic green ---- */
.tpl-split-year {
  position: absolute;
  top: 1.75rem;
  left: var(--spine-pos);
  transform: translateX(-50%);
  z-index: 2;

  width: var(--year-size);
  height: var(--year-size);
  border-radius: 50%;

  background:
    radial-gradient(circle at 32% 22%,
      rgba(255,255,255,.55) 0%,
      rgba(255,255,255,.22) 18%,
      rgba(255,255,255,0) 38%),
    radial-gradient(circle at 72% 82%,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,0) 45%),
    linear-gradient(150deg,
      #dfeadd  0%,
      #a8c9a4  8%,
      #6fae72 18%,
      #2f8149 30%,
      #14572f 44%,
      #072e19 58%,
      #0b3d22 70%,
      #1c6b3c 82%,
      #0a3d22 92%,
      #051e0e 100%);

  color: #eafff1;
  font-size: var(--year-font);
  font-weight: 800;
  letter-spacing: .005em;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 -1px 1px rgba(255,255,255,.22),
    0 0 8px rgba(60,200,120,.20);

  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.55),
    inset 0 -4px 8px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.22),
    0 2px 4px rgba(0,0,0,.14),
    0 14px 28px -10px rgba(20,110,60,.55),
    0 0 0 5px #ffffff,
    0 0 0 6px rgba(30,140,70,.10);
}
.tpl-split-row:has(> .tpl-split-side--text.tpl-split-side--left) .tpl-split-year {
  left: calc(100% - var(--spine-pos));
}

/* Inner metallic ring */
.tpl-split-year::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid transparent;
  background:
    linear-gradient(150deg,
      rgba(255,255,255,.45) 0%,
      rgba(255,255,255,.05) 35%,
      rgba(0,0,0,.18) 70%,
      rgba(0,0,0,.30) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .8;
}

/* Continuation rows: hollow accent ring */
.tpl-split-year--empty {
  visibility: visible;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border: 2px solid var(--tpl-accent);
  opacity: .55;
  font-size: 0;
  box-shadow:
    0 0 0 4px #ffffff,
    0 2px 4px rgba(232,92,26,.15);
}
.tpl-split-year--empty span { display: none; }
.tpl-split-year--empty::after { display: none; }

/* ---- Title + body ---- */
.tpl-split-title {
  margin: 0 0 .9rem;
  color: var(--tpl-ink);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.014em;
  text-wrap: balance;
}
.tpl-split-body > *:first-child { margin-top: 0; }
.tpl-split-body > *:last-child  { margin-bottom: 0; }
.tpl-split-body p {
  margin: 0 0 1.05rem;
  font-size: 17px;
  line-height: 1.72;
  color: var(--tpl-ink-soft);
}
.tpl-split-body p:last-child { margin-bottom: 0; }
.tpl-split-body a {
  color: var(--tpl-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--tpl-accent-line);
  transition: border-color .2s, color .2s;
}
.tpl-split-body a:hover {
  color: var(--tpl-accent-deep);
  border-bottom-color: var(--tpl-accent-deep);
}

.tpl-split-body a:focus-visible,
.tpl-split-card a:focus-visible {
  outline: 2px solid var(--tpl-accent);
  outline-offset: 3px;
  border-bottom-color: transparent;
  border-radius: 3px;
}

.tpl-split-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: .9rem 0 1.15rem;
  box-shadow:
    0 1px 2px rgba(20,17,15,.04),
    0 8px 24px -12px rgba(20,17,15,.15);
}
.tpl-split-body ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.tpl-split-body ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .5rem;
}
.tpl-split-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .72em;
  width: 6px; height: 6px;
  border: 1.5px solid var(--tpl-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}
.tpl-split-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--tpl-accent);
  font-style: italic;
  color: var(--tpl-ink-soft);
  background: linear-gradient(90deg, var(--tpl-accent-soft) 0%, transparent 80%);
  border-radius: 0 6px 6px 0;
}

/* ---- Child rows ---- */
.tpl-split-row--child .tpl-split-card {
  background: linear-gradient(180deg, #fdfcfa 0%, #faf7f3 100%);
  border-color: rgba(20,17,15,.05);
}
.tpl-split-row--child .tpl-split-title {
  font-size: 1.25rem;
  color: #3a3834;
}
.tpl-split-row--child .tpl-split-body p { font-size: 16px; }

/* ---- Centre rows ---- */
.tpl-split-row--center {
  padding-top: calc(var(--year-size) + 1.75rem);
}
.tpl-split-row--center::before,
.tpl-split-row--center::after { display: none !important; }
.tpl-split-row--center .tpl-split-year {
  left: 50% !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
}
.tpl-split-row--center .tpl-split-card {
  margin: 0 auto !important;
  max-width: var(--card-max);
}
.tpl-split-row--center .tpl-split-card::before { display: none; }
.tpl-split-row--center .tpl-split-card::after {
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  width: auto;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg,
    rgba(232,92,26,.10) 0%,
    var(--tpl-accent) 50%,
    rgba(232,92,26,.10) 100%);
}

/* ---- Sub-entries (linked) ---- */
.tpl-split-card .tpl-subentry {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tpl-line-soft);
}
.tpl-split-card .tpl-subentry:first-child {
  margin-top: 0; padding-top: 0; border-top: 0;
}
.tpl-split-card .tpl-subentry-title {
  margin: 0 0 .7rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--tpl-accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  line-height: 1.3;
}
.tpl-split-card .tpl-subentry p:last-child { margin-bottom: 0; }

/* Hide theme-injected date / meta */
.tpl-split-card .posted-on,
.tpl-split-card .entry-date,
.tpl-split-card .post-date,
.tpl-split-card .entry-meta,
.tpl-split-card .post-meta,
.tpl-split-card .byline,
.tpl-split-card .author,
.tpl-split-card .cat-links,
.tpl-split-card .tags-links,
.tpl-split-card .comments-link,
.tpl-split-card time.published,
.tpl-split-card time.updated,
.tpl-split-card time.entry-date,
.tpl-split-card time.post-date { display: none !important; }

/* =====================================================================
   B. CLASSIC ZIGZAG
   ===================================================================== */
.tpl-timeline {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  --yr: 76px;
  --col: 6rem;
  --gap: 2rem;
  --row: 1.25rem;
}
.tpl-timeline::before {
  content: '';
  position: absolute;
  top: 3rem; bottom: 3rem; left: 50%;
  width: 1px; margin-left: -1px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--tpl-line) 8%,
    var(--tpl-line) 92%,
    transparent 100%);
  z-index: 0;
}
.tpl-timeline .tpl-entry {
  display: grid;
  grid-template-columns: 1fr var(--col) 1fr;
  column-gap: var(--gap);
  align-items: start;
  margin-bottom: var(--row);
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.tpl-timeline .tpl-entry.tpl-visible { opacity: 1; transform: translateY(0); }
.tpl-timeline .tpl-entry:last-child   { margin-bottom: 0; }

.tpl-timeline .tpl-year {
  grid-column: 2;
  justify-self: center;
  align-self: start;
  width: var(--yr); height: var(--yr);
  border-radius: 50%;

  background:
    radial-gradient(circle at 32% 22%,
      rgba(255,255,255,.55) 0%,
      rgba(255,255,255,.22) 18%,
      rgba(255,255,255,0) 38%),
    radial-gradient(circle at 72% 82%,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,0) 45%),
    linear-gradient(150deg,
      #dfeadd  0%,
      #a8c9a4  8%,
      #6fae72 18%,
      #2f8149 30%,
      #14572f 44%,
      #072e19 58%,
      #0b3d22 70%,
      #1c6b3c 82%,
      #0a3d22 92%,
      #051e0e 100%);

  color: #eafff1;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .005em;
  line-height: 1;

  display: flex; align-items: center; justify-content: center;
  z-index: 2;

  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 -1px 1px rgba(255,255,255,.22),
    0 0 8px rgba(60,200,120,.20);

  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.55),
    inset 0 -4px 8px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.22),
    0 2px 4px rgba(0,0,0,.14),
    0 14px 28px -10px rgba(20,110,60,.55),
    0 0 0 5px #ffffff,
    0 0 0 6px rgba(30,140,70,.10);
}
.tpl-timeline .tpl-year::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid transparent;
  background:
    linear-gradient(150deg,
      rgba(255,255,255,.45) 0%,
      rgba(255,255,255,.05) 35%,
      rgba(0,0,0,.18) 70%,
      rgba(0,0,0,.30) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .8;
}
.tpl-timeline .tpl-entry:nth-child(odd) .tpl-content  { grid-column: 3; }
.tpl-timeline .tpl-entry:nth-child(even) .tpl-content { grid-column: 1; }

.tpl-timeline .tpl-content {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fefdfc 100%);
  border: 1px solid var(--tpl-card-border);
  border-radius: var(--tpl-radius);
  padding: 1.75rem 2rem 1.6rem;
  box-shadow: var(--tpl-shadow-sm);
  transition:
    box-shadow .35s cubic-bezier(.22,1,.36,1),
    transform .35s cubic-bezier(.22,1,.36,1),
    border-color .35s;
  overflow: hidden;
  max-width: 100%;
}
.tpl-timeline .tpl-content::after {
  content: '';
  position: absolute;
  top: 1.1rem; bottom: 1.1rem;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg,
    var(--tpl-accent) 0%,
    rgba(232,92,26,.55) 55%,
    rgba(232,92,26,.10) 100%);
}
.tpl-timeline .tpl-entry:nth-child(even) .tpl-content::after {
  left: auto; right: 0;
  border-radius: 3px 0 0 3px;
}
.tpl-timeline .tpl-content:hover {
  box-shadow: var(--tpl-shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(232,92,26,.14);
}
.tpl-timeline .tpl-content > *:first-child { margin-top: 0; }
.tpl-timeline .tpl-content > *:last-child  { margin-bottom: 0; }
.tpl-timeline .tpl-content p  { margin: 0 0 1.05rem; }
.tpl-timeline .tpl-content h2 {
  font-size: 1.5rem;
  color: var(--tpl-ink);
  letter-spacing: -.014em;
  margin: 1.5rem 0 .75rem;
}
.tpl-timeline .tpl-content a  {
  color: var(--tpl-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--tpl-accent-line);
}
.tpl-timeline .tpl-content img {
  max-width: 100%; height: auto;
  border-radius: 10px;
  display: block;
  margin: .9rem 0 1.15rem;
  box-shadow:
    0 1px 2px rgba(20,17,15,.04),
    0 8px 24px -12px rgba(20,17,15,.15);
}
.tpl-timeline .tpl-subentry {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tpl-line-soft);
}
.tpl-timeline .tpl-subentry:first-of-type {
  border-top: 0; padding-top: 0; margin-top: 1rem;
}
.tpl-timeline .tpl-subentry-title {
  font-size: .78rem;
  color: var(--tpl-accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 .7rem;
}

/* =====================================================================
   C. OSHKOSH
   ===================================================================== */
.tpl-osh {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  --oyr: 76px;
  --ocol: 6rem;
  --ogap: 2rem;
}
.tpl-osh::before {
  content: '';
  position: absolute;
  top: 3.5rem; bottom: 3.5rem; left: 50%;
  width: 1px; margin-left: -1px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--tpl-line) 8%,
    var(--tpl-line) 92%,
    transparent 100%);
  z-index: 0;
}
.tpl-osh-decade {
  position: relative; z-index: 2; text-align: center;
  margin: 3rem 0 2.5rem;
}
.tpl-osh-decade:first-child { margin-top: 0; }
.tpl-osh-decade-label {
  display: inline-block; margin: 0;
  padding: .55rem 1.85rem;
  background: linear-gradient(135deg, var(--tpl-accent) 0%, #f4824a 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(20,17,15,.06),
    0 8px 20px -8px rgba(232,92,26,.45),
    0 0 0 5px #ffffff;
}
.tpl-osh-entry {
  display: grid;
  grid-template-columns: 1fr var(--ocol) 1fr;
  column-gap: var(--ogap);
  align-items: start;
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
}
.tpl-osh-entry.tpl-visible { opacity: 1; transform: translateY(0); }
.tpl-osh-year {
  grid-column: 2;
  justify-self: center;
  width: var(--oyr); height: var(--oyr);
  border-radius: 50%;

  background:
    radial-gradient(circle at 32% 22%,
      rgba(255,255,255,.55) 0%,
      rgba(255,255,255,.22) 18%,
      rgba(255,255,255,0) 38%),
    radial-gradient(circle at 72% 82%,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,0) 45%),
    linear-gradient(150deg,
      #dfeadd  0%,
      #a8c9a4  8%,
      #6fae72 18%,
      #2f8149 30%,
      #14572f 44%,
      #072e19 58%,
      #0b3d22 70%,
      #1c6b3c 82%,
      #0a3d22 92%,
      #051e0e 100%);

  color: #eafff1;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;

  display: flex; align-items: center; justify-content: center;
  z-index: 2;

  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 -1px 1px rgba(255,255,255,.22),
    0 0 8px rgba(60,200,120,.20);

  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.55),
    inset 0 -4px 8px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.22),
    0 2px 4px rgba(0,0,0,.14),
    0 14px 28px -10px rgba(20,110,60,.55),
    0 0 0 5px #ffffff,
    0 0 0 6px rgba(30,140,70,.10);
}
.tpl-osh-year::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid transparent;
  background:
    linear-gradient(150deg,
      rgba(255,255,255,.45) 0%,
      rgba(255,255,255,.05) 35%,
      rgba(0,0,0,.18) 70%,
      rgba(0,0,0,.30) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .8;
}
.tpl-osh-card {
  grid-column: 3;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fefdfc 100%);
  border: 1px solid var(--tpl-card-border);
  border-radius: var(--tpl-radius);
  padding: 1.75rem 2rem 1.6rem;
  box-shadow: var(--tpl-shadow-sm);
  transition:
    box-shadow .35s cubic-bezier(.22,1,.36,1),
    transform .35s cubic-bezier(.22,1,.36,1),
    border-color .35s;
  overflow: hidden;
  max-width: 100%;
}
.tpl-osh-card:hover {
  box-shadow: var(--tpl-shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(232,92,26,.14);
}
.tpl-osh-card::before {
  content: '';
  position: absolute;
  left: 0; top: 1.1rem; bottom: 1.1rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg,
    var(--tpl-accent) 0%,
    rgba(232,92,26,.55) 55%,
    rgba(232,92,26,.10) 100%);
}
.tpl-osh-title {
  margin: 0 0 .75rem;
  font-size: 1.35rem;
  color: var(--tpl-ink);
  letter-spacing: -.01em;
  line-height: 1.28;
}
.tpl-osh-body > *:first-child { margin-top: 0; }
.tpl-osh-body > *:last-child  { margin-bottom: 0; }
.tpl-osh-body p { margin: 0 0 1rem; }
.tpl-osh-body a {
  color: var(--tpl-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--tpl-accent-line);
}
.tpl-osh-body img {
  max-width: 100%; height: auto;
  border-radius: 10px;
  display: block;
  margin: .75rem 0 1.15rem;
  box-shadow:
    0 1px 2px rgba(20,17,15,.04),
    0 8px 24px -12px rgba(20,17,15,.15);
}

/* =====================================================================
   MOBILE
   ===================================================================== */
@media (max-width: 820px) {
  .tpl-split {
    padding: 2rem 1rem 3rem;
    --row-pad: 2rem;
    --year-size: 66px;
    --year-font: 1.1rem;
    --spine-pos: 0px;
    --card-max: 100%;
  }

  .tpl-split::before { margin-bottom: 2.5rem; }

  .tpl-split-row {
    grid-template-columns: 1fr;
    row-gap: 1rem;
    padding-left: 20px;
    scroll-margin-top: 4rem;
  }

  .tpl-split-row::after {
    left: 7px !important;
    right: auto;
    transform: none;
    width: 2px;
    top: 0; bottom: 0;
    background: linear-gradient(180deg,
      transparent 0%,
      var(--tpl-line) 8%,
      var(--tpl-line) 92%,
      transparent 100%);
  }
  .tpl-split-row::before { display: none; }

  .tpl-split-side--left,
  .tpl-split-side--right,
  .tpl-split-side--center {
    grid-column: 1;
    padding: 0;
  }

  .tpl-split-row .tpl-split-card,
  .tpl-split-row:has(> .tpl-split-side--text.tpl-split-side--left) .tpl-split-card {
    margin: 0 !important;
    max-width: 100%;
    padding: 1.5rem 1.4rem 1.35rem;
    border-radius: 12px;
  }
  .tpl-split-row .tpl-split-card::before { display: none; }
  .tpl-split-row .tpl-split-card::after {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 3px 3px 0 !important;
  }

  .tpl-split-title { font-size: 1.25rem; margin-bottom: .75rem; }
  .tpl-split-body p { font-size: 16px; line-height: 1.7; }

  .tpl-split-year,
  .tpl-timeline .tpl-year,
  .tpl-osh-year {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .95rem;
    margin: 0 0 .5rem;
    align-self: flex-start;

    background:
      radial-gradient(circle at 30% 22%,
        rgba(255,255,255,.55) 0%,
        rgba(255,255,255,.15) 30%,
        rgba(255,255,255,0) 55%),
      linear-gradient(150deg,
        #c4dcc2  0%,
        #7cb87f 14%,
        #2f8149 34%,
        #0e4a29 60%,
        #051e0e 100%);

    box-shadow:
      inset 0 1px 2px rgba(255,255,255,.45),
      inset 0 -2px 4px rgba(0,0,0,.40),
      inset 0 0 0 1px rgba(255,255,255,.18),
      0 6px 14px -4px rgba(20,110,60,.50),
      0 0 0 4px #ffffff;
  }
  .tpl-split-year::after,
  .tpl-timeline .tpl-year::after,
  .tpl-osh-year::after { display: none; }

  .tpl-split-row:has(> .tpl-split-side--text.tpl-split-side--left) .tpl-split-year {
    left: auto;
  }
  .tpl-split-year--empty { display: none; }

  .tpl-split-row--center { padding-top: 0; }
  .tpl-split-row--center .tpl-split-year {
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    padding: .4rem 1rem !important;
    border-radius: 999px !important;
    margin-bottom: .5rem;
  }
  .tpl-split-row--center .tpl-split-card::after {
    left: 0; right: 0;
    top: 0; bottom: auto;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  .tpl-timeline { padding: 2rem 1rem; --row: 1.5rem; --yr: 64px; }
  .tpl-timeline::before { display: none; }
  .tpl-timeline .tpl-entry { grid-template-columns: 1fr; column-gap: 0; }
  .tpl-timeline .tpl-year { grid-column: 1; justify-self: start; }
  .tpl-timeline .tpl-content { padding: 1.5rem 1.4rem 1.35rem; }
  .tpl-timeline .tpl-entry:nth-child(odd) .tpl-content::after,
  .tpl-timeline .tpl-entry:nth-child(even) .tpl-content::after {
    left: 0; right: auto;
    border-radius: 0 3px 3px 0;
  }

  .tpl-osh { padding: 2rem 1rem; --oyr: 64px; }
  .tpl-osh::before { display: none; }
  .tpl-osh-entry { grid-template-columns: 1fr; margin-bottom: 1.25rem; }
  .tpl-osh-year { grid-column: 1; justify-self: start; }
  .tpl-osh-card { grid-column: 1; padding: 1.5rem 1.4rem 1.35rem; }
  .tpl-osh-card::before { display: none; }
  .tpl-osh-decade { margin: 2rem 0 1.5rem; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .tpl-timeline .tpl-entry,
  .tpl-osh-entry,
  .tpl-split-row {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tpl-split-card:hover,
  .tpl-timeline .tpl-content:hover,
  .tpl-osh-card:hover { transform: none !important; }
  .tpl-year-rail { transition: none; }
}

/* =====================================================================
   PRINT
   ===================================================================== */
@media print {
  .tpl-year-rail { display: none !important; }
  .tpl-split {
    background: #fff;
    padding: 0;
  }
  .tpl-split::before { display: none; }
  .tpl-split-row {
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .tpl-split-row::before,
  .tpl-split-row::after { display: none; }
  .tpl-split-row .tpl-split-card,
  .tpl-timeline .tpl-content,
  .tpl-osh-card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
  }
  .tpl-split-row .tpl-split-card::before { display: none; }
  .tpl-split-year,
  .tpl-timeline .tpl-year,
  .tpl-osh-year {
    box-shadow: none;
    border: 2px solid #333;
    background: #fff;
    color: #333;
    text-shadow: none;
  }
  .tpl-split-year::after,
  .tpl-timeline .tpl-year::after,
  .tpl-osh-year::after { display: none; }
  .tpl-split-year--empty { display: none; }
}