/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --bg: #f5f5f5;
  --fg: #121212;
  --rule: #aaa;
  --accent: #0AFFD6;
  --accent-contrast: #121212;

  --font-sans: 'Libre Franklin', sans-serif;
  --weight-thin: 400;

  --gutter-x: 2rem;
  --section-gap: 2rem;
  --grid-gap: 16px;

  --timeline-h: 250px;
  --placeholder-w: 1200px;
  --placeholder-h: 675px;

  --body-sm: 16px;
  --line-tight: 1.5em;
}

/* =========================================================
   Global base styles
   ========================================================= */
body {
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-thin);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  position: relative;
  display: inline-block;
}

/* =========================================================
   Page layout
   ========================================================= */
.main {
  padding: 0 2rem;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.intro {
  margin-top: 1rem;
  width: 50%;
  max-width: 75ch;
  text-align: left;
  line-height: 1.4rem;
}

.intro #name{
  background-color: var(--accent);
  color: var(--accent-contrast);
}

/* =========================================================
   Icons
   ========================================================= */
.icons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}

.icons a {
  color: inherit;
  opacity: 0.75;
}

.icons a:hover {
  opacity: 1;
}

/* =========================================================
   Links
   ========================================================= */
a {
  color: inherit;
}

a:visited {
  color: inherit;
}

a:focus,
a:active {
  outline: none;
  color: inherit;
}

/* =========================================================
   Timeline
   ========================================================= */
.timeline-section {
  margin-top: 2rem;
  min-height: 60vh;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.timeline {
  padding-top: 2rem;
  width: 100%;
  height: var(--timeline-h);
  top: 0;
  z-index: 5;
  cursor: ew-resize;
  display: block;
}

svg.timeline {
  background: var(--bg);
}

line {
  stroke: var(--rule);
  stroke-width: 2;
}

svg text {
  user-select: none;
  pointer-events: none;
}

#timeline-content {
  min-height: 90vh;
}

/* =========================================================
   Content area
   ========================================================= */
.content-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.content-row {
  display: flex;
  gap: var(--grid-gap);
  align-items: stretch;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.content-text {
  flex: 5;
  width: 50%;
  max-width: 75ch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.content-text .title {
  background-color: var(--accent);
  color: var(--accent-contrast);
  line-height: 1.2;
}

.content-images {
  flex: 5;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  max-width: 50%;
  box-sizing: border-box;
}

.content-images img {
  height: auto;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}

/* =========================================================
   Additional links
   ========================================================= */
.additional-links {
  text-align: left;
}

.additional-links ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.additional-links li {
  margin-bottom: 0.25rem;
}

/* =========================================================
   Miscellaneous
   ========================================================= */
#visual-investigator-content .body-text {
  text-transform: none !important;
}

/* =========================================================
   Mobile overrides
   ========================================================= */
@media (max-width: 768px) {
  .intro {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .content-text {
    width: 100%;
    max-width: 100%;
  }

  .content-images {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }

  .content-images img {
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    max-height: none !important;
    display: block;
  }

  .content-row {
    flex-direction: column;
  }

  .timeline-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .timeline{ 
    width: 2000px;
  }
  
.timeline-indicator {
  position: absolute;
  left: 50%;
  top: 0;
  height: 130px;
  border-left: 2px solid #FFD60A;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
}
}