.timeline-shell {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
  padding-bottom: 24px;
}

.timeline-topbar {
  width: 100%;
  margin-top: 12px;
}

.timeline-hero {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 24px;
  margin-top: 12px;
  padding: clamp(28px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(110deg, rgba(8, 13, 18, 0.98) 0 56%, rgba(9, 20, 27, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 80px);
  box-shadow: var(--shadow);
}

.timeline-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -190px;
  border: 1px solid rgba(218, 126, 45, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(218, 126, 45, 0.035), 0 0 0 140px rgba(218, 126, 45, 0.02);
}

.timeline-hero-copy,
.timeline-brief {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.timeline-hero h1 {
  max-width: 850px;
  margin: 14px 0;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.timeline-hero-copy > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.timeline-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.timeline-brief {
  align-self: end;
  padding: 20px;
  border: 1px solid var(--warning-border);
  border-radius: var(--r-lg);
  background: rgba(23, 20, 13, 0.84);
}

.timeline-brief-label,
.timeline-updated {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-brief-status {
  margin-top: 8px;
  color: var(--warning);
  font-size: 1.5rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.timeline-brief p,
.timeline-method-note p {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.timeline-brief a,
.source-grid a,
.timeline-source-link,
.timeline-empty a,
.timeline-noscript a {
  color: var(--info);
  text-decoration: none;
}

.timeline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timeline-stats article {
  padding: 20px;
  border-right: 1px solid var(--border);
}

.timeline-stats article:last-child {
  border-right: 0;
}

.timeline-stats span {
  display: block;
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.timeline-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-live,
.timeline-sources {
  margin-top: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timeline-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.timeline-section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.timeline-section-intro {
  max-width: 900px;
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-live-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.timeline-live-item,
.timeline-live-clear,
.timeline-loading,
.timeline-empty,
.timeline-noscript {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.timeline-live-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
}

.timeline-live-item:hover {
  border-color: var(--info-border);
}

.timeline-live-item strong {
  line-height: 1.45;
}

.timeline-live-item > span {
  color: var(--muted);
  font-size: 10px;
}

.timeline-live-time {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.timeline-live-clear {
  grid-column: 1 / -1;
  color: var(--muted);
}

.timeline-live-clear span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.timeline-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.timeline-sidebar,
.timeline-content {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timeline-sidebar {
  align-self: start;
  position: sticky;
  top: 12px;
  overflow: hidden;
}

.timeline-sidebar-block {
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.timeline-sidebar-block:last-child {
  border-bottom: 0;
}

.timeline-filters {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.timeline-filter {
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.timeline-filter:hover,
.timeline-filter.active {
  border-color: var(--border-hi);
  background: var(--surface-2);
  color: var(--text);
}

.timeline-filter.active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.timeline-content {
  padding: 24px;
  overflow: hidden;
}

.timeline-event-list {
  position: relative;
  margin-top: 26px;
}

.timeline-event-list::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--warning-border), var(--border), var(--info-border));
}

.timeline-event {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  animation: timeline-reveal 0.42s ease both;
  animation-delay: min(calc(var(--event-index) * 28ms), 420ms);
}

.timeline-event-marker {
  position: relative;
}

.timeline-event-marker span {
  position: absolute;
  z-index: 1;
  top: 27px;
  left: 68px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 1px var(--warning-border);
}

.timeline-event-card {
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(19, 24, 32, 0.88), rgba(10, 15, 20, 0.82));
}

.timeline-event-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.timeline-event-meta time,
.timeline-category {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-event-meta time {
  color: var(--muted);
}

.timeline-category {
  padding: 3px 6px;
  border: 1px solid var(--info-border);
  border-radius: var(--r);
  color: var(--info);
  background: var(--info-bg);
}

.timeline-category-hormuz,
.timeline-category-current {
  color: var(--warning);
  border-color: var(--warning-border);
  background: var(--warning-bg);
}

.timeline-category-war {
  color: var(--danger);
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

.timeline-category-energy {
  color: var(--ok);
  border-color: var(--ok-border);
  background: var(--ok-bg);
}

.timeline-event h3 {
  margin: 11px 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
}

.timeline-event p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-significance {
  margin-top: 13px;
  padding: 10px 12px;
  border-left: 2px solid var(--warning-border);
  background: rgba(93, 68, 21, 0.12);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.timeline-significance strong {
  display: block;
  margin-bottom: 3px;
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-source-link {
  display: inline-block;
  margin-top: 13px;
  font-size: 11px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.source-grid article {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.source-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.source-grid a {
  font-size: 11px;
}

.timeline-footer {
  width: 100%;
  margin-bottom: 0;
}

@keyframes timeline-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .timeline-shell {
    width: min(100% - 16px, 100%);
  }

  .timeline-hero,
  .timeline-main {
    grid-template-columns: 1fr;
  }

  .timeline-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-stats article:nth-child(2) {
    border-right: 0;
  }

  .timeline-stats article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .timeline-sidebar {
    position: static;
  }

  .timeline-filters {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .timeline-filter {
    flex: 0 0 auto;
  }

  .timeline-live-list,
  .source-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .timeline-hero {
    padding: 28px 20px;
  }

  .timeline-hero h1 {
    font-size: clamp(2.5rem, 15vw, 4.2rem);
  }

  .timeline-live,
  .timeline-sources,
  .timeline-content {
    padding: 18px;
  }

  .timeline-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-event-list::before {
    left: 7px;
  }

  .timeline-event {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .timeline-event-marker span {
    left: 1px;
  }

  .timeline-event-card {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-event {
    animation: none;
  }
}
