/* Shared timeline surfaces; scoped to preserve editors, keepsakes and other journal tools. */
.tl-experience {
  --tl-ink: #1f1c17;
  --tl-meta: #6b655c;
  --tl-accent: #a2582f;
  --tl-border: #d9d2c5;
  color: var(--tl-ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  margin: 12px 0 48px;
}
.tl-experience *,
.tl-experience *::before,
.tl-experience *::after {
  box-sizing: border-box;
}
.tl-experience button,
.tl-experience select {
  font-family: inherit;
}
.tl-experience button {
  cursor: pointer;
}
.tl-experience :focus-visible {
  outline: 3px solid var(--tl-accent);
  outline-offset: 4px;
}
.tl-shell.story-layout {
  display: block;
}
.tl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--tl-border);
}
.tl-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.tl-toolbar select {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 34px 10px 12px;
  background: #fffdf9;
  border: 1px solid var(--tl-border);
  border-radius: 6px;
  color: var(--tl-ink);
  font-size: 14px;
}
.tl-style-description,
.tl-style-status {
  color: var(--tl-meta);
  font-size: 12px;
}
.tl-style-status {
  flex-basis: 100%;
}
.tl-style-status:empty {
  display: none;
}
.tl-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(270px, 29%);
  gap: 24px;
  align-items: start;
}
.tl-stream {
  min-width: 0;
}
.tl-year-rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 40px;
  max-height: 85vh;
  overflow: auto;
  scrollbar-width: thin;
}
.tl-year-jump {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  font:
    12px "IBM Plex Mono",
    monospace !important;
  color: var(--tl-meta);
  border-left: 2px solid transparent;
}
.tl-year-jump[aria-current="true"] {
  color: var(--tl-accent);
  border-left-color: var(--tl-accent);
  font-weight: 600 !important;
}
.tl-year-section {
  padding: 38px 0 56px;
  scroll-margin-top: 25px;
}
.tl-year-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin: 0 0 28px;
}
.tl-year {
  font:
    500 clamp(80px, 10vw, 150px) / 0.85 "EB Garamond",
    Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--tl-ink);
}
.tl-year-section[data-year="Undated memories"] .tl-year {
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.tl-year-meta {
  flex: 1;
  min-width: 180px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--tl-meta);
  text-align: right;
}
.tl-year-meta p {
  margin: 0;
  overflow-wrap: anywhere;
}
.tl-year-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}
.tl-year-controls .text-button {
  padding: 10px 8px;
  min-height: 44px;
  font-size: 12px;
}
.tl-zoom {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 5px;
  padding: 10px;
  font-size: 12px;
  background: transparent;
  color: var(--tl-meta);
}
.tl-zoom[aria-pressed="true"] {
  color: var(--tl-accent);
  background: #efe9de;
}
.tl-chapter {
  margin: 0 0 34px;
  min-width: 0;
}
.tl-chapter-title,
.tl-month h3 {
  font:
    500 27px/1.2 "EB Garamond",
    Georgia,
    serif;
  margin: 0 0 8px;
}
.tl-mosaic {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 180px 120px;
  gap: 8px;
  width: 100%;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 6px;
  text-align: left;
}
.tl-mosaic-cell {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
}
.tl-mosaic-cell:first-child {
  grid-row: span 2;
}
.tl-mosaic[data-cells="1"] {
  grid-template-columns: 1fr;
}
.tl-mosaic[data-cells="2"] {
  grid-template-columns: 1.6fr 1fr;
}
.tl-mosaic[data-cells="2"] .tl-mosaic-cell {
  grid-row: span 2;
}
.tl-mosaic[data-cells="3"] {
  grid-template-columns: 1.6fr 1fr;
}
.tl-mosaic[data-cells="4"] .tl-mosaic-cell:nth-child(2) {
  grid-column: span 2;
}
.tl-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tl-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: #d9d2c5;
  color: #5d554a;
  font:
    500 44px "EB Garamond",
    Georgia,
    serif;
}
.tl-mosaic-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 55px 18px 18px;
  background: linear-gradient(transparent 20%, rgba(31, 28, 23, 0.82));
  color: #fffdf9;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tl-mosaic-title {
  font:
    500 30px/1.05 "EB Garamond",
    Georgia,
    serif;
  margin-bottom: 10px;
}
.tl-mosaic-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: #1f1c1780;
  font-size: 22px;
}
.tl-meta {
  font-size: 12px;
  color: var(--tl-meta);
  line-height: 1.7;
}
.tl-cities {
  margin: 10px 0;
}
.tl-memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.tl-memory-card.entry-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border: 1px solid #e4ddd0;
  border-radius: 6px;
  padding: 0;
  background: #fffdf9;
  overflow: hidden;
  text-align: left;
  color: var(--tl-ink);
}
.tl-memory-card > .tl-cover,
.tl-memory-card > .tl-photo-fallback {
  width: 100%;
  height: 180px;
  flex: none;
}
.tl-memory-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  min-width: 0;
  width: 100%;
}
.tl-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tl-accent);
}
.tl-memory-city {
  font:
    500 25px/1.1 "EB Garamond",
    Georgia,
    serif;
  overflow-wrap: anywhere;
}
.tl-date {
  font-size: 11px;
  color: var(--tl-meta);
  line-height: 1.7;
}
.tl-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tl-more summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--tl-accent);
  cursor: pointer;
  font-size: 13px;
}
.tl-inline-add {
  border: 1px dashed var(--tl-border);
  background: transparent;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--tl-accent);
  border-radius: 6px;
  margin-bottom: 30px;
}
.tl-history {
  margin-top: 40px;
  top: 24px;
  min-width: 0;
}
.tl-history .history-years {
  display: none;
}
.tl-history .history-box {
  background: #f8f5ef;
  border: 0;
  border-left: 1px solid var(--tl-border);
  border-radius: 0;
  padding: 12px 0 12px 22px;
}
.tl-history .history-title {
  font:
    500 26px/1.2 "EB Garamond",
    Georgia,
    serif;
}
.tl-history .country-chip {
  min-height: 44px;
}
.tl-history .history-toggle {
  display: none;
}
.tl-quiet {
  border-top: 1px dotted var(--tl-border);
  padding: 20px 0;
  color: var(--tl-meta);
  font:
    11px "IBM Plex Mono",
    monospace;
}
.tl-filter-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 6px;
  padding: 6px 14px;
  background: #efe9de;
  font-size: 12px;
}
.tl-filter-chips .text-button {
  min-height: 44px;
}
.tl-memory-dialog {
  max-width: 700px;
}
.tl-memory-dialog > img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
}
.tl-memory-dialog > button {
  margin-bottom: 24px;
}
.tl-full-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin: 24px 0;
}
.tl-body:has(> .tl-expanded-title) {
  display: block;
}
.tl-expanded-title {
  font:
    48px "EB Garamond",
    Georgia,
    serif;
  margin: 30px 0;
}
.tl-empty {
  font:
    40px "EB Garamond",
    Georgia,
    serif;
  padding: 55px 0;
  grid-column: 1/-1;
}
@media (min-width: 1100px) {
  .tl-year-jump:not(:last-child) {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 12px;
  }
}
@media (max-width: 1099px) {
  .tl-body {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
  }
  .tl-history {
    grid-column: 1/-1;
    grid-row: 1;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 10px 0;
    background: #f8f5ef;
  }
  .tl-history .history-box {
    padding: 14px;
    border: 1px solid var(--tl-border);
    border-radius: 6px;
  }
  .tl-history .history-box:not([open]) {
    min-height: 56px;
  }
  .tl-history .history-box[open] {
    max-height: 55vh;
    overflow: auto;
  }
  .tl-history .history-map {
    max-width: 420px;
    margin: 6px auto;
  }
  .tl-history .history-toggle {
    display: block;
  }
  .tl-year-rail {
    grid-column: 1;
    top: 88px;
  }
  .tl-stream {
    grid-column: 2;
  }
  .tl-year-section {
    scroll-margin-top: 95px;
  }
}
@media (max-width: 759px) {
  .tl-toolbar {
    gap: 8px;
    padding: 12px 0 18px;
  }
  .tl-toolbar label {
    width: 100%;
    justify-content: space-between;
  }
  .tl-style-description {
    padding-bottom: 4px;
  }
  .tl-body {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .tl-year-rail {
    grid-column: 2;
    grid-row: 2;
    gap: 3px;
    padding-top: 22px;
  }
  .tl-stream {
    grid-column: 1;
    grid-row: 2;
  }
  .tl-year-jump {
    font-size: 10px !important;
    border-left: 0;
    border-right: 2px solid transparent;
  }
  .tl-year-jump[aria-current="true"] {
    border-right-color: var(--tl-accent);
  }
  .tl-year-heading {
    gap: 16px;
    margin-bottom: 18px;
  }
  .tl-year {
    font-size: 88px;
  }
  .tl-year-meta {
    text-align: left;
    min-width: 0;
    flex-basis: 100%;
  }
  .tl-year-controls {
    justify-content: flex-start;
  }
  .tl-year-section {
    padding: 28px 0;
  }
  .tl-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px 90px 90px;
    gap: 5px;
  }
  .tl-mosaic-cell:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .tl-mosaic[data-cells="1"] {
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
  }
  .tl-mosaic[data-cells="1"] .tl-mosaic-cell:first-child {
    grid-column: auto;
  }
  .tl-mosaic[data-cells="2"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px 100px;
  }
  .tl-mosaic[data-cells="2"] .tl-mosaic-cell {
    grid-column: span 2;
    grid-row: span 1;
  }
  .tl-mosaic[data-cells="3"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px 100px;
  }
  .tl-mosaic[data-cells="4"] .tl-mosaic-cell:nth-child(2) {
    grid-column: span 1;
  }
  .tl-mosaic[data-cells="4"] .tl-mosaic-cell:last-child {
    grid-column: span 2;
  }
  .tl-mosaic-title {
    font-size: 28px;
  }
  .tl-mosaic-copy {
    padding: 45px 14px 16px;
  }
  .tl-memory-grid {
    grid-template-columns: 1fr;
  }
  .tl-memory-card > .tl-cover {
    height: 210px;
  }
  .tl-history .history-title {
    font-size: 21px;
  }
  .tl-history .history-box:not([open]) {
    height: 56px;
  }
  .tl-history .history-box summary {
    min-height: 26px;
  }
  .tl-history .map-countries {
    display: flex;
  }
  .tl-experience .tl-memory-dialog {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-experience *,
  .tl-experience *::before,
  .tl-experience *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.tl-toolbar label {
  white-space: nowrap;
}
.tl-year-jump {
  overflow-wrap: anywhere;
}
@media (min-width: 1100px) {
  .tl-year-jump {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 12px;
  }
}
@media (max-width: 759px) {
  .tl-year-jump:last-child {
    font-size: 9px !important;
  }
}
/* Living map: geometry stays country-level; cards remain the accessible place list. */
.tl-experience[data-style="map"] .tl-body {
  grid-template-columns: 48px minmax(0, 1fr);
}
.tl-experience[data-style="map"] .tl-history {
  display: none;
}
.tl-experience[data-style="map"] .tl-year {
  font-size: 64px;
}
.tl-map-hero {
  position: relative;
  background-color: #1f1c17;
  background-image: radial-gradient(#3a352d 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  border-radius: 8px;
  overflow: hidden;
  padding: 24px;
  color: #f8f5ef;
}
.tl-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.tl-map-chip {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #6b6256;
  border-radius: 24px;
  font-size: 12px;
  background: #1f1c17;
  color: #e3dccf;
}
.tl-map-chip[aria-pressed="true"] {
  background: #a2582f;
  border-color: #bd7445;
  color: #fffdf9;
}
.tl-living-map {
  height: 310px;
  margin: 5px 0 0;
}
.tl-living-map svg {
  width: 100%;
  height: 100%;
}
.tl-living-map path {
  fill: #2b2722;
  stroke: #554b3c;
  stroke-width: 0.35;
}
.tl-living-map path.visited {
  fill: #746856;
}
.tl-living-map path.tl-focused-country {
  fill: #c97d48;
  stroke: #eacbb2;
  stroke-width: 0.8;
}
.tl-living-map path.tl-past-country {
  pointer-events: none;
}
.tl-map-place {
  font:
    500 30px/1.1 "EB Garamond",
    Georgia,
    serif;
  margin: 0 0 22px;
  color: #fffdf9;
}
.tl-map-rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 14px;
  padding: 6px 4px 18px;
  scrollbar-color: #a2582f #3a352d;
}
.tl-map-rail .tl-memory-card {
  flex: 0 0 250px;
  scroll-snap-align: center;
  box-shadow: none;
}
.tl-map-rail .tl-memory-card > .tl-cover,
.tl-map-rail .tl-memory-card > .tl-photo-fallback {
  height: 120px;
}
.tl-map-rail .tl-memory-copy {
  padding: 14px;
  gap: 6px;
}
.tl-map-rail .tl-memory-city {
  font-size: 22px;
}
.tl-map-rail .tl-excerpt {
  display: none;
}
.tl-map-coverage {
  color: #e3c7b0;
  font-size: 12px;
  line-height: 1.7;
  margin: 18px 0 8px;
}
.tl-map-hint {
  color: #c5bbaa;
  font-size: 10px;
}
.tl-map-failure {
  padding: 50px 15px;
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width: 759px) {
  .tl-experience[data-style="map"] .tl-body {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .tl-map-hero {
    padding: 14px;
  }
  .tl-living-map {
    height: 220px;
  }
  .tl-map-place {
    font-size: 25px;
  }
  .tl-map-rail .tl-memory-card {
    flex-basis: 210px;
  }
  .tl-map-controls {
    gap: 5px;
  }
  .tl-map-chip {
    padding: 10px 12px;
  }
}
.tl-living-map svg {
  background: transparent;
}
.tl-memory-copy .entry-city {
  margin: 0;
}
.tl-experience[data-style="map"] .tl-living-map {
  height: 250px;
}
@media (max-width: 759px) {
  .tl-experience[data-style="map"] .tl-living-map {
    height: 180px;
  }
}
/* Postcards share the journal's date precision and existing memory actions. */
.tl-deck {
  min-width: 0;
}
.tl-deck-frame {
  touch-action: pan-y;
  min-width: 0;
}
.tl-deck-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
}
.tl-deck-controls > button {
  min-height: 44px;
}
.tl-deck-previous,
.tl-deck-next {
  width: 44px;
  height: 44px;
  border: 1px solid var(--tl-border);
  border-radius: 50%;
  background: #fffdf9;
  font-size: 19px;
  color: var(--tl-ink);
}
.tl-deck-previous:disabled,
.tl-deck-next:disabled {
  opacity: 0.4;
  cursor: default;
}
.tl-deck-count {
  font:
    11px "IBM Plex Mono",
    monospace;
  color: var(--tl-meta);
}
.tl-deck-controls > .text-button {
  font-size: 12px;
  margin-left: auto;
}
.tl-experience[data-style="postcards"] .tl-year-section {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
}
.tl-experience[data-style="postcards"] .tl-year-heading {
  display: block;
}
.tl-experience[data-style="postcards"] .tl-year {
  font-size: 64px;
  line-height: 1;
}
.tl-experience[data-style="postcards"] .tl-year-meta {
  text-align: left;
  min-width: 0;
  margin-top: 22px;
}
.tl-experience[data-style="postcards"] .tl-year-controls {
  justify-content: flex-start;
}
.tl-year-content {
  min-width: 0;
}
.tl-postcard-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 20px 18px 35px;
  min-height: 330px;
}
.tl-postcard {
  position: relative;
  z-index: 1;
  background: #fffdf9;
  border: 1px solid var(--tl-border);
  box-shadow: 0 24px 50px -24px #1f1c178c;
  transform: rotate(1.5deg);
  min-height: 300px;
}
.tl-postcard-front {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  width: 100%;
  min-height: 300px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--tl-ink);
}
.tl-postcard-front > .tl-cover {
  position: absolute;
  inset: 0 50% 0 0;
  width: 50%;
  height: 100%;
}
.tl-postcard-front > .tl-photo-fallback {
  grid-column: 1;
}
.tl-postcard-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 7px;
  overflow-wrap: anywhere;
}
.tl-postcard-stamp {
  width: 44px;
  min-height: 52px;
  margin: 0 0 3px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #efe9de;
  border: 1px solid var(--tl-border);
  font:
    9px/1.5 "IBM Plex Mono",
    monospace;
}
.tl-handwriting {
  font:
    500 25px/1.05 "Caveat",
    cursive;
  margin-bottom: 10px;
}
.tl-postcard-trip {
  font:
    500 18px/1.1 "EB Garamond",
    Georgia,
    serif;
}
.tl-postcard-behind {
  position: absolute;
  inset: 25px 18px 35px;
  border: 1px solid var(--tl-border);
  background: #fffdf9;
  padding: 4px;
  pointer-events: none;
}
.tl-behind-1 {
  transform: rotate(-4deg) translate(5px, 12px);
}
.tl-behind-1 img {
  opacity: 0.75;
}
.tl-behind-2 {
  transform: rotate(6deg) translate(7px, 18px);
}
.tl-behind-2 img {
  opacity: 0.55;
}
.tl-postcard-flip {
  min-height: 44px;
  padding: 12px;
  margin-left: 12px;
  font-size: 12px;
}
.tl-postcard-back {
  transform: none;
  padding: 24px;
  max-height: 440px;
  overflow: auto;
}
.tl-postcard-back h3 {
  font:
    26px/1.15 "EB Garamond",
    Georgia,
    serif;
  margin-bottom: 12px;
}
.tl-postcard-back .tl-full-note {
  font-size: 15px;
}
.tl-experience button.tl-memory-card {
  cursor: pointer;
}
@media (max-width: 759px) {
  .tl-experience[data-style="postcards"] .tl-year-section {
    display: block;
  }
  .tl-experience[data-style="postcards"] .tl-year {
    font-size: 72px;
  }
  .tl-postcard-stack {
    padding: 12px 10px 24px;
  }
  .tl-postcard-front {
    display: flex;
    flex-direction: column;
  }
  .tl-postcard-front > .tl-cover {
    position: static;
    width: 100%;
    height: 180px;
  }
  .tl-postcard-copy {
    padding: 18px;
  }
  .tl-postcard-behind {
    inset: 15px 12px 28px;
  }
  .tl-deck-controls {
    gap: 8px;
  }
  .tl-deck-controls > .text-button {
    margin-left: 0;
  }
}
/* Editorial: readable text and one photograph, with explicit progress targets. */
.tl-experience[data-style="editorial"] .tl-body {
  grid-template-columns: 48px minmax(0, 1fr);
}
.tl-experience[data-style="editorial"] .tl-history {
  display: none;
}
.tl-experience[data-style="editorial"] .tl-year {
  font-size: 64px;
}
.tl-editorial-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: #fffdf9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e4ddd0;
}
.tl-editorial-copy {
  display: flex;
  flex-direction: column;
  padding: 40px;
  min-width: 0;
}
.tl-editorial-dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 35px 0 24px;
  font:
    11px/1.5 "IBM Plex Mono",
    monospace;
  color: var(--tl-accent);
  letter-spacing: 0.08em;
}
.tl-editorial-dateline time {
  font: inherit;
  color: inherit;
  text-transform: uppercase;
}
.tl-editorial-headline {
  font:
    400 clamp(38px, 4.3vw, 58px) / 1 "EB Garamond",
    Georgia,
    serif;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
  overflow-wrap: anywhere;
}
.tl-editorial-note {
  font-size: 17px;
  line-height: 1.7;
  color: #3f3a33;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 300px;
  overflow: auto;
  padding: 2px 8px 8px 2px;
  margin: 0 0 28px;
}
.tl-editorial-footer {
  font-size: 12px;
  line-height: 1.8;
  color: var(--tl-meta);
  margin-top: auto;
  padding-top: 30px;
}
.tl-editorial-photo {
  position: relative;
  border: 0;
  padding: 0;
  background: #d9d2c5;
  min-height: 400px;
}
.tl-editorial-photo > .tl-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tl-editorial-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin: 10px auto 0;
  max-height: 105px;
  overflow: auto;
}
.tl-progress-segment {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0 9px;
  background: transparent;
  display: grid;
  align-items: center;
}
.tl-progress-segment::after {
  content: "";
  display: block;
  height: 3px;
  background: #cfc7b8;
  border-radius: 2px;
}
.tl-progress-segment.tl-read::after {
  background: #1f1c17;
}
.tl-progress-segment[aria-current="step"]::after {
  background: #a2582f;
  height: 5px;
}
@media (max-width: 759px) {
  .tl-experience[data-style="editorial"] .tl-body {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .tl-editorial-spread {
    display: flex;
    flex-direction: column;
  }
  .tl-editorial-copy {
    padding: 22px;
  }
  .tl-editorial-dateline {
    margin: 0 0 24px;
  }
  .tl-editorial-headline {
    font-size: 37px;
  }
  .tl-editorial-note {
    font-size: 15px;
    max-height: 280px;
  }
  .tl-editorial-photo {
    min-height: 300px;
  }
  .tl-editorial-progress {
    gap: 0;
  }
  .tl-progress-segment {
    width: 44px;
  }
  .tl-editorial-footer {
    padding-top: 18px;
  }
}
/* Photo thread: bounded movement, only while a chapter is visible and motion is enabled. */
.tl-motion-toggle {
  min-height: 44px;
  margin-left: auto;
  font-size: 12px;
}
.tl-experience[data-style="thread"] .tl-stream {
  position: relative;
}
.tl-experience[data-style="thread"] .tl-stream::before {
  content: "";
  position: absolute;
  top: 55px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(#a2582f, #d9d2c5, transparent);
}
.tl-experience[data-style="thread"] .tl-year-heading {
  position: relative;
  display: block;
  text-align: center;
}
.tl-experience[data-style="thread"] .tl-year {
  display: inline-block;
  font-size: 96px;
  background: #f8f5ef;
  padding: 0 18px;
}
.tl-experience[data-style="thread"] .tl-year-meta {
  text-align: center;
  background: #f8f5ef;
  padding: 18px 0;
}
.tl-experience[data-style="thread"] .tl-year-controls {
  justify-content: center;
}
.tl-thread-chapter {
  position: relative;
  padding: 0 0 70px;
  text-align: center;
}
.tl-thread-label {
  position: relative;
  margin-left: 50%;
  text-align: left;
  padding: 0 0 20px 24px;
}
.tl-thread-label::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a2582f;
}
.tl-thread-label h3 {
  font:
    500 25px/1.2 "EB Garamond",
    Georgia,
    serif;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.tl-thread-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 50px;
  padding: 0 24px;
  align-items: start;
  transform: translateY(var(--tl-parallax, 0px));
}
.tl-thread-photo {
  display: block;
  position: relative;
  width: 100%;
  max-width: 280px;
  padding: 8px;
  background: #fffdf9;
  color: var(--tl-ink);
  border: 0;
  box-shadow: 0 18px 40px -20px #1f1c1780;
  transform: rotate(-3deg);
}
.tl-thread-photo > .tl-cover {
  width: 100%;
  height: 190px;
}
.tl-thread-photo > .tl-photo-fallback {
  height: 190px;
}
.tl-thread-photo:nth-child(2) {
  margin-top: 70px;
  transform: rotate(2deg);
}
.tl-thread-photo:nth-child(3) {
  width: 80%;
  margin-left: 20px;
  transform: rotate(-1.5deg);
}
.tl-thread-photo:nth-child(3) > .tl-cover {
  height: 145px;
}
.tl-thread-caption {
  display: block;
  font:
    500 18px/1.3 "EB Garamond",
    Georgia,
    serif;
  padding: 8px 2px 2px;
  overflow-wrap: anywhere;
}
.tl-thread-more {
  position: relative;
  margin: 40px auto 0;
  min-height: 44px;
  background: #f8f5ef;
}
.tl-experience[data-style="thread"] .tl-quiet {
  position: relative;
  text-align: center;
  background: #f8f5ef;
}
@keyframes tl-float-left {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-6px) rotate(-3deg);
  }
}
@keyframes tl-float-right {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}
@keyframes tl-float-small {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-5px) rotate(-1.5deg);
  }
}
.tl-experience[data-motion="playing"] .tl-in-view .tl-thread-photo {
  animation: tl-float-left 7s ease-in-out infinite;
}
.tl-experience[data-motion="playing"]
  .tl-in-view
  .tl-thread-photo:nth-child(2) {
  animation-name: tl-float-right;
  animation-duration: 8s;
}
.tl-experience[data-motion="playing"]
  .tl-in-view
  .tl-thread-photo:nth-child(3) {
  animation-name: tl-float-small;
  animation-duration: 9s;
}
.tl-experience[data-motion="paused"] .tl-thread-photos {
  transform: none;
}
@media (max-width: 759px) {
  .tl-experience[data-style="thread"] .tl-year {
    font-size: 78px;
  }
  .tl-thread-label {
    margin-left: 0;
    padding: 0 12px 20px;
    text-align: center;
    background: #f8f5ef;
  }
  .tl-thread-label::before {
    display: none;
  }
  .tl-thread-photos {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 12px;
  }
  .tl-thread-photo:nth-child(2),
  .tl-thread-photo:nth-child(3) {
    width: 100%;
    margin: 0;
  }
  .tl-thread-photo > .tl-cover,
  .tl-thread-photo:nth-child(3) > .tl-cover {
    height: 190px;
  }
  .tl-motion-toggle {
    margin-left: 0;
  }
}
.tl-experience .tl-year-section[data-year="Undated memories"] .tl-year {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
}
.tl-empty-state {
  grid-column: 1/-1;
  padding: 50px clamp(24px, 8vw, 100px);
  min-height: 470px;
  max-width: 760px;
}
.tl-empty-year {
  display: block;
  font:
    500 100px/1 "EB Garamond",
    Georgia,
    serif;
  letter-spacing: -0.04em;
  color: #d9d2c5;
  margin-bottom: 20px;
}
.tl-empty-state h2 {
  font:
    400 42px/1.05 "EB Garamond",
    Georgia,
    serif;
  max-width: 450px;
  margin-bottom: 20px;
}
.tl-empty-state p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--tl-meta);
  max-width: 350px;
  margin-bottom: 24px;
}
.tl-experience[data-style="map"] .tl-empty-state {
  background: #1f1c17;
  color: #f8f5ef;
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
}
.tl-experience[data-style="map"] .tl-empty-state p {
  color: #cfc7b8;
}
.tl-experience[data-style="map"] .tl-empty-year {
  color: #6b6256;
}
.tl-experience[data-style="postcards"] .tl-empty-state {
  background: #fffdf9;
  border: 1px solid #d9d2c5;
  margin-top: 25px;
  box-shadow: 7px 7px #efe9de;
}
.tl-experience[data-style="thread"] .tl-empty-state {
  border-left: 1px solid #a2582f;
  margin: 30px 0 0 22px;
}
@media (max-width: 759px) {
  .tl-empty-state {
    padding: 32px 18px;
    min-height: 420px;
  }
  .tl-empty-year {
    font-size: 84px;
  }
  .tl-empty-state h2 {
    font-size: 32px;
  }
}
.tl-empty-state .button {
  min-height: 48px;
}
/* Keep the story visible on laptop-height screens, even with the shared controls. */
.tl-toolbar {
  padding: 8px 0 14px;
  gap: 10px 18px;
}
.tl-style-status {
  flex-basis: auto;
  margin-left: auto;
  font-size: 11px;
}
.tl-year-section {
  padding-top: 24px;
}
.tl-year-jump {
  font-size: 11px !important;
}
.tl-living-map.world-map {
  background: transparent;
}
.tl-experience[data-style="map"] .tl-year-meta p {
  display: inline;
  margin-left: 8px;
}
.tl-map-rail .tl-kicker {
  display: none;
}
.tl-map-rail .tl-memory-copy {
  padding: 10px 14px;
  gap: 4px;
}
.tl-experience[data-style="thread"] .tl-year-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 0;
}
.tl-experience[data-style="thread"] .tl-year-controls {
  flex-basis: 100%;
  margin-top: 2px;
}
.tl-experience[data-style="thread"] .tl-year-heading {
  margin-bottom: 12px;
}
@media (min-width: 760px) and (max-width: 1099px) {
  .tl-body {
    gap: 14px;
  }
  .tl-history {
    padding: 0;
  }
  .tl-history .history-box {
    padding: 10px 14px;
  }
  .tl-history .history-box summary {
    min-height: 34px;
  }
  .tl-year-rail {
    padding-top: 24px;
  }
  .tl-year-jump {
    font-size: 10px !important;
    white-space: nowrap;
  }
  .tl-experience[data-style="photo"] .tl-year {
    font-size: 130px;
  }
  .tl-experience[data-style="map"] .tl-living-map {
    height: 155px;
  }
}
@media (max-width: 759px) {
  .tl-style-status {
    margin-left: 0;
  }
  .tl-toolbar {
    gap: 8px 12px;
  }
  .tl-experience[data-style="thread"] .tl-year-meta {
    padding: 10px 0;
  }
}
