@font-face {
  font-family: "Tajawal";
  src: url("../fonts/Tajawal/Tajawal-Regular.woff2");
}
@font-face {
  font-family: "Tajawal-Bold";
  src: url("../fonts/Tajawal/Tajawal-Bold.woff2");
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/Montserrat-Regular.woff2");
}

:root {
  --font-family-base: "Tajawal", sans-serif;
  --font-family-bold: "Tajawal-Bold", sans-serif;
  --color-primary: #cb130b;
  --color-primary-dark: #9e0f08;
  --color-dark: #0f1112;
  --color-dark-mid: #1a1d1e;
  --color-gray: #2a2a2a;
  --color-gray-light: #f5f5f5;
  --color-white: #ffffff;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
nav{
  position: unset !important;
}
/* ── Base & Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-weight: 400;
  direction: rtl;
  overflow-x: hidden;
  background-color: var(--color-white);
  color: var(--color-gray);
  line-height: 1.8;
}

a,
a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  font-family: var(--font-family-bold);
}

h1,
h2 {
  color: var(--color-gray);
}

p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.95;
  color: var(--color-gray);
  text-align: justify;
  margin-bottom: 22px;
}

/* ── Reading Progress Bar ── */
#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.08);
  z-index: 99999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  transition: width 0.12s ease-out;
}

#progress-bar.reading {
  animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ── Loader ── */
#arij-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#arij-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Hero Banner ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--color-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/main-banner.jpg");
  background-size: cover;
  background-position: center top;
  transform: scale(1.04);
  transition: transform 12s ease-out;
  will-change: transform;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 13, 0.97) 0%,
    rgba(10, 12, 13, 0) 85%,
    rgba(10, 12, 13, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  width: 100%;
  padding: 60px 24px 100px;
  text-align: center;
  animation: fadeUp 1s 0.3s both;
}

.hero h1 {
  color: var(--color-white);
  font-size: 38px;
  font-weight: 900;
  line-height: 50px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.highlight-txt {
  color: var(--color-primary);
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.hero-meta-item svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 10;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
}

.banner-source {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 10;
  margin: 0;
  color: rgb(255 255 255 / 0.7);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  direction: rtl;
}

/* ── Article Layout & Lead Box ── */

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 60px 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  scroll-margin-top: 60px;
}
.section-heading-bar {
  width: 5px;
  height: 36px;
  border-radius: 3px;
  background: var(--color-primary);
  flex-shrink: 0;
}
.section-heading h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.3;
}

.article-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.lead-box {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-right: 5px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  padding: 22px 22px 22px 18px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.lead-box::before {
  content: "«";
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 80px;
  color: var(--color-primary);
  opacity: 0.07;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.lead-box p {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin-bottom: 0 !important;
}
.white {
  color: white !important;
}
.fancybox__caption {
  text-align: center !important;
}

/* ── Gallery Card Component ── */
.figure-container-one-source {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.figure-container-one-source .gallery-figure {
  margin-bottom: 0;
}
.gallery-figure-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.gallery-figure-container .gallery-figure {
  display: flex;
  max-width: 50%;
}
.weapon-pair {
  align-items: stretch;
}
.weapon-pair .gallery-figure {
  flex: 1;
  margin: 0;
}
.weapon-pair .gallery-card {
  width: 100%;
  background: #0b0d0e;
  border-color: #1c1f21;
}
.weapon-pair .gallery-card__frame {
  height: auto;
  aspect-ratio: 4 / 3;
  background: #0b0d0e;
}
.weapon-pair .gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.figure-still {
  margin: 8px auto 36px;
}
.figure-still .gallery-card {
  width: 100%;
}
.figure-still .gallery-card__frame {
  height: auto;
}
.figure-still .gallery-card__img {
  width: 100%;
  height: auto;
}
.clip-trio {
  align-items: stretch;
}
.clip-trio .gallery-figure {
  flex: 1;
  max-width: none;
  margin: 0;
}
.clip-trio .gallery-card {
  width: 100%;
  background: #0b0d0e;
  border-color: #1c1f21;
}
.clip-trio .gallery-card__frame {
  height: auto;
  background: #0b0d0e;
}
.clip-trio .gallery-card__img {
  width: 100%;
  height: auto;
  display: block;
}
.h-220 .gallery-card__frame {
  height: 220px;
}

.gallery-figure {
  margin: 40px auto;
  padding: 0;
  max-width: 100%;
}

.gallery-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid #eee;
  box-shadow: 0 4px 16px rgba(15, 17, 18, 0.07);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.gallery-card__frame {
  position: relative;
  overflow: hidden;
  /* background: #f0efee; */
  display: block;
  line-height: 0;
  /* Todo:  Without height */
  height: 400px;
}

.gallery-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-card__zoom {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 17, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-card__caption,
.figure-source {
  display: block;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #444;
  line-height: 1.65;
  text-align: center;
}

/* ── Potential Reach Chart ── */
.chart-container {
  margin: 40px auto;
  padding: 0;
  max-width: 100%;
}

.reach-chart-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 17, 18, 0.07);
  padding: 18px 20px 14px;
}

.reach-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.reach-chart-header h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.4;
}

.reach-chart-metric {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.reach-chart-metric span {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray);
}

.reach-chart-canvas-wrap {
  position: relative;
  height: 320px;
  width: 100%;
}

.reach-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-gray);
}

.reach-chart-legend-line {
  width: 22px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Animations & Reveal ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.box-text {
  --box-line: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 24px 78px 24px 26px;
  background-color: #f7f7f7;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--box-line) - 1px),
    #e4e4e4 calc(var(--box-line) - 1px),
    #e4e4e4 var(--box-line)
  );
  border: 1px solid #e2e2e2;
  border-radius: 0;
  box-shadow:
    0 1px 0 #ededed,
    0 10px 24px -18px rgba(15, 17, 18, 0.45);
}
.box-text::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 52px;
  width: 1px;
  background: rgba(203, 19, 11, 0.35);
}
.box-text p {
  font-weight: 400;
  font-size: 18px;
  line-height: var(--box-line);
  color: var(--color-dark);
  margin-bottom: 0 !important;
}
.box-text-source {
  font-size: 16px;
  font-weight: 700 !important;
  color: var(--color-primary);
  line-height: var(--box-line);
  margin-bottom: 0 !important;
}
.box-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: var(--box-line);
  margin-bottom: 0;
}
.box-text--note p:last-of-type {
  font-weight: 400;
}
.iframe-container {
  max-width: 60%;
  margin: 30px auto;
}
.iframe-container iframe {
  width: 100%;
}

.scroll-section {
  position: relative;
  overflow: visible !important;
  min-height: 100vh;
}
.scroll-section::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
.scroll-section .scroll-img {
  position: sticky;
  top: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  height: 100vh !important;
  z-index: 0;
}
.scroll-content {
  height: auto;
  overflow-y: unset;
  padding: 80px 15px;
  background: rgb(10 16 15 / 0%);
  position: relative;
  z-index: 2;
  width: 50%;
  margin: auto;
}
.scroll-content h2 {
  margin-bottom: 25px;
}
.scroll-content h2,
.scroll-content p {
  color: white !important;
}

.shared-with-div {
  border-top: 1px solid #e2e2e2;
  width: 100%;
  margin: 75px auto;
  padding: 28px;
  background-color: #e2e2e21c;
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.shared-lang-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.shared-lang-wrapper h6 {
  font-family: "Tajawal", sans-serif;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
}
.shared-lang-wrapper h6::before {
  content: "";
  display: flex;
  background-color: #b4031b;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.shared-links-wrapper {
  display: flex;
}
.shared-links-wrapper span {
  display: flex;
  max-width: 90%;
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
}
.shared-links-wrapper a:not(:last-child) {
  border-left: 2px solid #b4031b;
  padding-left: 10px;
}
.shared-links-wrapper a {
  color: #1a1a1a !important;
}

.investigation-tags-container {
  width: 100%;
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
  margin: 0 auto 32px auto;
}
.investigation-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  margin: auto;
  gap: 8px;
}
.investigation-tags-wrapper a {
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 6px 15px;
  color: #b4031b;
  background-color: transparent;
  border: 1px solid #b4031b;
  border-radius: 7px;
  transition: all 0.5s;
}
.investigation-tags-wrapper a:hover {
  color: white;
  background-color: #b4031b;
  border: 1px solid #b4031b;
  transition: all 0.5s;
}

.inv-lang-link-wrapper {
  display: flex;
  gap: 8px;
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
}
.inv-lang-link {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 4px 12px;
  color: white;
  background-color: #b4031b;
  border: 1px solid #b4031b;
  border-radius: 7px;
  transition: all 0.5s;
  transform: scale(1);
}
.inv-lang-link:hover {
  transition: all 0.5s;
  transform: scale(0.9);
}
.article-note {
  display: flex;
  flex-direction: column;
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgb(85, 85, 85);
  gap: 6px;
  margin: 56px 0px 14px;
  padding: 20px 22px;
  border-right: 2px solid rgb(203, 19, 11);
  background: rgba(242, 242, 242, 0.46) !important;
}
.test-box {
  background-color: #1a1a1a;
  padding: 20px;
  margin: 30px 0;
}
.test-box p {
  color: white;
  text-align: center;
}
.white {
  color: white !important;
}
.fancybox__caption{
  direction: rtl !important;
}
.conference-slider {
  margin: 20px auto;
}
.conference-slider .swiper-buttons-wrapper{
  position: absolute;
  inset: 0;
  width: 100%;
}
.conference-slider .swiper-navigation-icon{
  display: none !important;
}

.conference-slider .gallery-card__frame{
  height: 392px;
}
.conference-slider .gallery-figure{
  max-width: 80%;
}

.swiper-button-next, .swiper-button-prev{
  color: var(--color-primary) !important;
}
.swiper-button-next:after, .swiper-button-prev:after{
  font-size: 35px !important;
}

/* ── Responsive Styles ── */
@media (max-width: 768px) {
  .gallery-card__frame{
    width: 100%;
    height: auto;
  }
  .scroll-content {
    width: 100%;
  }
  .iframe-container {
    width: 100%;
    
  }

  .article-wrapper {
    padding: 40px 18px 60px;
  }

  p {
    text-align: right !important;
  }

  .box-text {
    padding: 20px 56px 20px 16px;
  }

  .box-text::before {
    right: 36px;
  }

  .reach-chart-canvas-wrap {
    height: 240px;
  }

  .reach-chart-header {
    flex-direction: column;
    gap: 6px;
  }

  .reach-chart-metric {
    text-align: left;
  }
  .shared-with-div {
    padding: 28px 0;
  }
  .shared-lang-wrapper h6::before{width: 7px;}
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
    line-height: 38px;
  }

  .gallery-figure {
    max-width: 100%;
  }
  .weapon-pair {
    flex-direction: column;
  }
  .weapon-pair .gallery-figure {
    max-width: 100%;
    width: 100%;
  }
  .clip-trio {
    flex-direction: column;
    align-items: center;
  }
  .clip-trio .gallery-figure {
    max-width: 320px;
    width: 100%;
  }
  .iframe-container iframe {
    height: 300px;
  }
}

/* ══════════════════════════════════════════
   Timeline — "live wire"
══════════════════════════════════════════ */
.tl {
  --tl-bg: #0b0d0e;
  --tl-card: #15181a;
  --tl-line: rgba(255, 255, 255, 0.09);
  --tl-text: #e9e9e9;
  --tl-muted: #8d9396;
  --tl-deal: var(--color-primary);
  --tl-report: #e9e9e9;
  --tl-abuse: #ff8a3d;
  --tl-volt: #ff2a1f;
  --tl-spine-w: 96px;
  --tl-fill: 0px;
  position: relative;
  width: 100vw;
  margin: 70px calc(50% - 50vw);
  padding: 90px 0 70px;
  background: var(--tl-bg);
  color: var(--tl-text);
  isolation: isolate;
}
.tl-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(
      60% 40% at 50% 0%,
      rgba(203, 19, 11, 0.22),
      transparent 70%
    ),
    linear-gradient(var(--tl-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--tl-line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.35) 30%,
    rgba(0, 0, 0, 0.35) 80%,
    #000 100%
  );
}
.tl p {
  color: inherit;
  margin: 0;
  text-align: right;
}

.tl-head {
  padding: 20px;
  font-size: 20px;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.tl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 4px;
  border: 1px solid rgba(203, 19, 11, 0.6);
  border-radius: 999px;
  color: #ff5a50;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.tl-kicker svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.tl-head h3 {
  margin: 18px 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
  color: #fff;
}
.tl .tl-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tl-muted);
  text-align: center;
}

/* ── HUD (sticky) ── */
.tl-hud {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 14, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--tl-line);
}
.tl-hud-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tl-meter {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 14px;
  align-items: baseline;
}
.tl-meter-label {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--tl-muted);
}
.tl-meter-label b {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}
.tl-meter-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tl-meter-num {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 42, 31, 0.55);
  direction: ltr;
  unicode-bidi: isolate;
}
.tl-meter.is-surge .tl-meter-num {
  animation: tl-surge 0.5s ease;
}
.tl-meter-cur {
  font-size: 13px;
  color: #ff5a50;
}
.tl-meter-sub {
  font-size: 12px;
  color: var(--tl-muted);
}
.tl-meter-sub b {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

.tl-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tl-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 6px;
  font: 13px var(--font-family-base);
  color: #cfd3d5;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-base);
}
.tl-filter i {
  font-style: normal;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  opacity: 0.6;
}
.tl-filter:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.tl-filter.is-active {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}
.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.tl-dot--deal {
  background: var(--tl-deal);
}
.tl-dot--report {
  background: var(--tl-report);
}
.tl-dot--abuse {
  background: var(--tl-abuse);
  transform: rotate(45deg);
  border-radius: 1px;
}

.tl-rail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 8px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tl-rail::-webkit-scrollbar {
  display: none;
}
.tl-rail-year {
  flex: 1 0 42px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tl-muted);
  font:
    11px "Montserrat",
    sans-serif;
  cursor: pointer;
}
.tl-rail-bar {
  position: relative;
  height: 26px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.3s;
}
.tl-rail-bar::after {
  content: "";
  position: absolute;
  inset-inline: 22%;
  bottom: 0;
  height: max(3px, calc(var(--h) * 24px));
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px 2px 0 0;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.tl-rail-year.is-empty {
  cursor: default;
  opacity: 0.35;
}
.tl-rail-year.is-empty .tl-rail-bar::after {
  display: none;
}
.tl-rail-year.is-passed .tl-rail-bar {
  border-color: var(--tl-volt);
}
.tl-rail-year.is-passed .tl-rail-bar::after {
  background: var(--tl-volt);
}
.tl-rail-year.is-passed {
  color: #d6d6d6;
}
.tl-rail-year.is-current {
  color: #fff;
}
.tl-rail-year.is-current .tl-rail-bar::after {
  box-shadow: 0 0 12px var(--tl-volt);
}
.tl-rail-year:not(.is-empty):hover {
  color: #fff;
}

.tl-linkbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px 24px 8px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(203, 19, 11, 0.35),
    transparent
  );
}
.tl-linkbar[hidden] {
  display: none;
}
.tl-linkbar-name {
  font-family: "Montserrat", sans-serif;
}
.tl-linkbar-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

/* ── Track & spine ── */
.tl-track {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
.tl-spine {
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.16) 0 6px,
    transparent 6px 12px
  );
}
.tl-spine-fill {
  position: absolute;
  inset-inline: -1px;
  top: 0;
  height: var(--tl-fill);
  background: linear-gradient(
    to bottom,
    rgba(255, 42, 31, 0.2),
    var(--tl-volt) 30%,
    #ff8a80
  );
  box-shadow:
    0 0 10px var(--tl-volt),
    0 0 26px rgba(255, 42, 31, 0.45);
  border-radius: 2px;
}
.tl-head-arc {
  position: absolute;
  left: 50%;
  top: var(--tl-fill);
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.tl.is-flowing .tl-head-arc {
  opacity: 1;
}
.tl-head-arc svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tl-head-arc circle {
  fill: #fff;
  filter: drop-shadow(0 0 6px var(--tl-volt))
    drop-shadow(0 0 14px var(--tl-volt));
}
.tl-arc {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: bevel;
  filter: drop-shadow(0 0 3px var(--tl-volt));
}
.tl-arc-b {
  stroke: #ff8a80;
  stroke-width: 1;
}

.tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.tl-year {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 46px 0 22px;
  scroll-margin-top: 170px;
}
.tl-year:first-child {
  margin-top: 0;
}
.tl-year-badge {
  position: relative;
  padding: 4px 16px 2px;
  font:
    22px "Montserrat",
    sans-serif;
  letter-spacing: 0.06em;
  color: var(--tl-muted);
  background: var(--tl-bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  transition:
    color 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}
.tl-year.is-live .tl-year-badge {
  color: #fff;
  border-color: var(--tl-volt);
  box-shadow:
    0 0 0 4px rgba(255, 42, 31, 0.12),
    0 0 22px rgba(255, 42, 31, 0.35);
}

.tl-event {
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--tl-spine-w) 1fr;
  align-items: center;
  margin-bottom: 18px;
  transition:
    opacity 0.45s ease,
    filter 0.45s ease;
}
.tl-event--right .tl-card {
  grid-column: 1;
  grid-row: 1;
}
.tl-event--left .tl-card {
  grid-column: 3;
  grid-row: 1;
}
.tl-node,
.tl-zap {
  grid-column: 2;
  grid-row: 1;
}

.tl-node {
  justify-self: center;
  position: relative;
  z-index: 2;
  width: 16px;
  height: 16px;
  background: var(--tl-bg);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}
.tl-node--deal {
  border-radius: 3px;
}
.tl-node--report {
  border-radius: 50%;
}
.tl-node--abuse {
  transform: rotate(45deg) scale(0.9);
  border-radius: 2px;
}
.tl-event.is-live .tl-node--deal {
  background: var(--tl-deal);
  border-color: #ff7a72;
  box-shadow: 0 0 14px var(--tl-volt);
}
.tl-event.is-live .tl-node--report {
  background: var(--tl-report);
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}
.tl-event.is-live .tl-node--abuse {
  background: var(--tl-abuse);
  border-color: #ffc29a;
  box-shadow: 0 0 14px var(--tl-abuse);
}

.tl-zap {
  width: calc(var(--tl-spine-w) / 2 - 6px);
  height: 16px;
  overflow: visible;
  pointer-events: none;
}
.tl-event--right .tl-zap {
  justify-self: end;
  transform: scaleX(-1);
}
.tl-event--left .tl-zap {
  justify-self: start;
}
html[dir="rtl"] .tl-event--right .tl-zap {
  justify-self: start;
}
html[dir="rtl"] .tl-event--left .tl-zap {
  justify-self: end;
}
.tl-zap polyline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.4;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  transition:
    stroke-dashoffset 0.35s ease 0.05s,
    stroke 0.3s;
}
.tl-event.is-live .tl-zap polyline {
  stroke: var(--tl-volt);
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 3px var(--tl-volt));
}
.tl-event.is-live:hover .tl-zap polyline,
.tl-event.is-linked .tl-zap polyline {
  animation: tl-zap-flicker 0.18s steps(2) infinite;
  stroke: #fff;
}

/* ── Card ── */
.tl-card {
  position: relative;
  padding: 18px 20px 16px;
  background: var(--tl-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.28;
  filter: grayscale(1);
  transform: translateY(10px);
  transition:
    opacity 0.5s,
    filter 0.5s,
    transform 0.5s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.tl-card::before {
  /* electric sheen sweeping across on power-up */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 90, 80, 0.22) 50%,
    transparent 65%
  );
  transform: translateX(120%);
  pointer-events: none;
}
.tl-event.is-live .tl-card {
  opacity: 1;
  filter: none;
  transform: none;
  animation: tl-power 0.55s steps(1) both;
}
.tl-event.is-live .tl-card::before {
  animation: tl-sheen 0.9s ease 0.1s both;
}
.tl-event.is-live:hover .tl-card,
.tl-event.is-linked .tl-card {
  border-color: rgba(255, 42, 31, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 42, 31, 0.25),
    0 12px 40px -12px rgba(255, 42, 31, 0.45);
}
.tl-event--major .tl-card {
  background: linear-gradient(160deg, #2a0d0b, var(--tl-card) 60%);
  border-color: rgba(203, 19, 11, 0.5);
}

.tl-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tl-type {
  font-size: 12px;
  padding: 2px 9px 1px;
  border-radius: 4px;
}
.tl-type--deal {
  background: rgba(203, 19, 11, 0.2);
  color: #ff6b62;
}
.tl-type--report {
  background: rgba(255, 255, 255, 0.1);
  color: #e9e9e9;
}
.tl-type--abuse {
  background: rgba(255, 138, 61, 0.16);
  color: var(--tl-abuse);
}
.tl-flag {
  font-size: 12px;
  padding: 2px 9px 1px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  animation: tl-pulse 2.4s ease-in-out infinite;
}
.tl-time {
  margin-inline-start: auto;
  font:
    12px "Montserrat",
    sans-serif;
  color: var(--tl-muted);
}
.tl .tl-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--tl-text);
  text-align: right;
}
.tl-latin {
  font-family: "Montserrat", sans-serif;
  font-size: 0.88em;
}

.tl-value {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.tl-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-value-label {
  font-size: 12px;
  color: var(--tl-muted);
}
.tl-value-row strong {
  font-size: 20px;
  color: #fff;
}
.tl-value-sub {
  font-size: 13px;
  color: var(--tl-muted);
}
.tl-amp {
  position: relative;
  height: 6px;
  margin-top: 10px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0 3px,
    transparent 3px 5px
  );
  overflow: hidden;
}
.tl-amp i {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: max(4px, calc(var(--v) * 100%));
  background: linear-gradient(
    270deg,
    var(--color-primary-dark),
    var(--tl-volt),
    #ffb3ad
  );
  box-shadow: 0 0 10px var(--tl-volt);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}
.tl-event.is-live .tl-amp i {
  transform: scaleX(1);
}

.tl-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tl-tag {
  padding: 4px 10px 3px;
  font:
    11.5px "Montserrat",
    sans-serif;
  color: #cfd3d5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-base);
}
.tl-tag--vendor::before {
  content: "◆ ";
  color: var(--tl-volt);
  font-size: 9px;
}
.tl-tag:hover,
.tl-tag[aria-pressed="true"] {
  color: #fff;
  border-color: var(--tl-volt);
  background: rgba(255, 42, 31, 0.18);
}

/* ── Sparks ── */
.tl-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px var(--tl-volt);
  pointer-events: none;
  animation: tl-spark 0.65s ease-out forwards;
}

/* ── Filtering / linking ── */
.tl-event.is-dim {
  opacity: 0.16;
  filter: saturate(0);
}
.tl-event.is-dim .tl-zap {
  visibility: hidden;
}

.tl-end {
  display: flex;
  justify-content: center;
  padding: 40px 0 10px;
  position: relative;
}
.tl-end::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tl-bg);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.tl.is-complete .tl-end::before {
  background: var(--tl-volt);
  border-color: #fff;
  box-shadow:
    0 0 20px var(--tl-volt),
    0 0 50px var(--tl-volt);
}

.tl .tl-note {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 0 24px;
  font-size: 12.5px;
  color: var(--tl-muted);
  text-align: center;
}

/* No-JS / reduced motion: everything visible */
.tl:not(.tl-js) .tl-card {
  opacity: 1;
  filter: none;
  transform: none;
}
.tl:not(.tl-js) .tl-amp i {
  transform: none;
}

@keyframes tl-power {
  0% {
    opacity: 0.2;
  }
  15% {
    opacity: 1;
  }
  25% {
    opacity: 0.35;
  }
  40% {
    opacity: 1;
  }
  55% {
    opacity: 0.7;
  }
  70%,
  100% {
    opacity: 1;
  }
}
@keyframes tl-sheen {
  from {
    transform: translateX(120%);
  }
  to {
    transform: translateX(-120%);
  }
}
@keyframes tl-spark {
  from {
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--d));
    opacity: 0;
  }
}
@keyframes tl-zap-flicker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes tl-pulse {
  50% {
    box-shadow: 0 0 14px rgba(255, 42, 31, 0.8);
  }
}
@keyframes tl-surge {
  0% {
    color: #ff8a80;
    transform: scale(1.06);
  }
  100% {
    color: #fff;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl *,
  .tl *::before {
    animation: none !important;
    transition: none !important;
  }
  .tl-head-arc {
    display: none;
  }
}

@media (max-width: 768px) {
  .tl {
    --tl-spine-w: 40px;
    padding-top: 64px;
    margin-block: 50px;
  }
  .tl-hud-inner {
    padding: 10px 16px 4px;
    gap: 10px;
  }
  .tl-meter-num {
    font-size: 22px;
  }
  .tl-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
  }
  .tl-filters::-webkit-scrollbar {
    display: none;
  }
  .tl-filter {
    flex-shrink: 0;
    padding: 6px 10px 5px;
    font-size: 12px;
  }
  .tl-rail {
    padding: 0 16px 6px;
  }
  .tl-rail-bar {
    height: 18px;
  }
  .tl-rail-bar::after {
    height: max(3px, calc(var(--h) * 16px));
  }
  .tl-track {
    padding: 30px 16px 0;
  }
  .tl-spine {
    top: 30px;
    left: auto;
    right: calc(16px + var(--tl-spine-w) / 2);
    margin: 0 -1px 0 0;
  }
  .tl-year {
    justify-content: flex-start;
    margin: 34px 0 16px;
    scroll-margin-top: 190px;
  }
  .tl-year-badge {
    font-size: 16px;
    padding: 3px 8px 1px;
    margin-inline-start: 0;
  }
  .tl-event {
    grid-template-columns: var(--tl-spine-w) 1fr;
  }
  .tl-event--right .tl-card,
  .tl-event--left .tl-card {
    grid-column: 2;
  }
  .tl-node,
  .tl-zap {
    grid-column: 1;
  }
  .tl-zap {
    display: none;
  }
  .tl-card {
    padding: 14px 14px 12px;
  }
  .tl .tl-text {
    font-size: 16px;
  }
  .tl-end {
    justify-content: flex-start;
    padding-inline-start: calc(var(--tl-spine-w) / 2 - 7px);
  }
}

/* ── Timeline: document thumbnails (opens Fancybox gallery) ── */
.tl-docs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.tl-docs-stack {
  position: relative;
  display: flex;
  height: 92px;
  padding-inline-start: 6px;
}
.tl-doc {
  position: relative;
  display: block;
  width: 66px;
  height: 88px;
  margin-inline-start: -34px;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.7);
  transform: rotate(calc((var(--i) - 1.5) * 5deg))
    translateY(calc(var(--i) * -1px));
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s;
  z-index: calc(4 - var(--i));
}
.tl-doc:first-child {
  margin-inline-start: 0;
}
.tl-doc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tl-docs-stack:hover .tl-doc,
.tl-docs-stack:focus-within .tl-doc {
  margin-inline-start: 6px;
  transform: none;
}
.tl-docs-stack:hover .tl-doc:first-child,
.tl-docs-stack:focus-within .tl-doc:first-child {
  margin-inline-start: 0;
}
.tl-doc:hover,
.tl-doc:focus-visible {
  z-index: 5;
  transform: translateY(-6px) scale(1.06) !important;
  box-shadow:
    0 0 0 2px var(--tl-volt),
    0 12px 26px -6px rgba(255, 42, 31, 0.6);
  outline: none;
}
.tl-docs-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px 7px;
  font: 13px var(--font-family-base);
  color: #fff;
  background: rgba(203, 19, 11, 0.22);
  border: 1px solid rgba(255, 42, 31, 0.6);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-base);
}
.tl-docs-open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.tl-docs-open i {
  font-style: normal;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--color-primary);
}
.tl-docs-open:hover {
  background: var(--color-primary);
  box-shadow: 0 0 18px rgba(255, 42, 31, 0.5);
}

@media (max-width: 480px) {
  .tl-docs {
    flex-direction: column;
    align-items: flex-start;
  }
  .tl-docs-stack .tl-doc {
    margin-inline-start: 6px;
    transform: none;
    width: 58px;
    height: 78px;
  }
  .tl-docs-stack .tl-doc:first-child {
    margin-inline-start: 0;
  }
  .tl-docs-stack {
    height: auto;
  }
}
