/* WORLDTIMELINEHUB — Custom theme */

:root {
  --brand-navy: #0c1222;
  --brand-indigo: #4f46e5;
  --brand-violet: #7c3aed;
  --brand-gold: #f59e0b;
  --brand-coral: #f97316;
  --surface-light: #f8fafc;
  --surface-card: #ffffff;
}

.dark {
  --surface-light: #0f172a;
  --surface-card: #1e293b;
}

/* Brand logo — horizontal artwork, never crop */
.brand-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo--nav {
  max-height: 4.25rem;
  max-width: min(340px, 58vw);
}

@media (min-width: 768px) {
  .brand-logo--nav {
    max-height: 5rem;
    max-width: 400px;
  }
}

@media (min-width: 1280px) {
  .brand-logo--nav {
    max-height: 5.75rem;
    max-width: 460px;
  }
}

/* Gradient menubar (CHRONOVERSE-style) */
.chrono-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.55rem 1rem 0.55rem 1.15rem;
  background: linear-gradient(
    90deg,
    #d946ef 0%,
    #f97316 24%,
    #facc15 50%,
    #4ade80 76%,
    #2dd4bf 100%
  );
  border-radius: 1.35rem 1.35rem 0.5rem 0.5rem;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.chrono-menubar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.chrono-menubar__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.chrono-menubar__logo {
  height: 3.25rem;
  width: auto;
  max-width: 4.25rem;
  object-fit: contain;
  object-position: center center;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.15rem 0.2rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

@media (min-width: 768px) {
  .chrono-menubar__logo {
    height: 3.75rem;
    max-width: 4.75rem;
    border-radius: 0.75rem;
    padding: 0.18rem 0.22rem;
  }
}

.chrono-menubar__brand-text {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: none;
  color: #fff;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .chrono-menubar__brand-text {
    font-size: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .chrono-menubar__brand-text {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
  }
}

.chrono-menubar__nav {
  position: relative;
  z-index: 1;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  flex-wrap: wrap;
  padding: 0 0.25rem;
}

@media (min-width: 1280px) {
  .chrono-menubar__nav {
    gap: 0.35rem;
  }
}

.chrono-menubar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 1024px) {
  .chrono-menubar__link {
    padding: 0.6rem 0.9rem;
    font-size: 0.975rem;
  }
}

.chrono-menubar__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.chrono-menubar__link:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chrono-menubar__link.is-active {
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.18);
}

.chrono-menubar__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.chrono-menubar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.chrono-menubar__icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Mobile stacked menu */
.chrono-menubar--stacked {
  flex-direction: column;
  align-items: stretch;
  border-radius: 1rem;
  padding: 0.5rem;
}

.chrono-menubar--stacked .chrono-menubar__link {
  width: 100%;
  justify-content: flex-start;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.brand-logo--hero {
  max-height: 8.5rem;
  max-width: min(580px, 94vw);
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

@media (min-width: 768px) {
  .brand-logo--hero {
    max-height: 11rem;
  }
}

/* Section backgrounds */
.section-mesh {
  background-color: var(--surface-light);
  background-image:
    radial-gradient(at 20% 30%, rgba(79, 70, 229, 0.08) 0, transparent 50%),
    radial-gradient(at 80% 70%, rgba(124, 58, 237, 0.06) 0, transparent 50%);
}

.dark .section-mesh {
  background-image:
    radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.12) 0, transparent 50%),
    radial-gradient(at 80% 70%, rgba(139, 92, 246, 0.08) 0, transparent 50%);
}

.section-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Cards */
.card-premium {
  background: var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dark .card-premium {
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.35);
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.2);
  border-color: rgba(99, 102, 241, 0.35);
}

/* Trending timelines */
.trending-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  cursor: default;
  transition: all 0.25s ease;
}

.dark .trending-filter {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

.trending-filter--active,
.trending-filter:hover {
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 14px -4px rgba(79, 70, 229, 0.35);
}

.dark .trending-filter--active,
.dark .trending-filter:hover {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.18);
}

.trending-card {
  position: relative;
  border-radius: 1.25rem;
  background: var(--trend-card, var(--surface-card));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.05), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dark .trending-card {
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.45);
}

.trending-card:hover {
  transform: translateY(-10px);
  border-color: var(--trend-border);
  box-shadow: 0 24px 48px -16px var(--trend-shadow);
}

.trending-card__hero {
  position: relative;
  height: 11.5rem;
  background: var(--trend-hero);
  overflow: hidden;
}

.trending-card__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.06) 8px,
      rgba(255, 255, 255, 0.06) 9px
    );
}

.trending-card__icon-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--trend-icon-color, #fff);
  background: var(--trend-icon-bg, rgba(255, 255, 255, 0.18));
  border: 1px solid var(--trend-icon-border, rgba(255, 255, 255, 0.35));
  border-radius: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease;
}

.trending-card:hover .trending-card__icon-wrap {
  transform: translate(-50%, -50%) scale(1.12) rotate(-4deg);
}

.trending-card__rank {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}

.trending-card__rank i {
  color: #fb923c;
}

.trending-card__era {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.trending-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--trend-chip-color, #fff);
  background: var(--trend-chip-bg, rgba(255, 255, 255, 0.22));
  border: 1px solid var(--trend-chip-border, rgba(255, 255, 255, 0.35));
  border-radius: 0.4rem;
}

.trending-card__body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.trending-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--trend-title, #0f172a);
  margin-bottom: 0.45rem;
  transition: color 0.25s ease;
}

.dark .trending-card__title {
  color: var(--trend-title-dark, #f8fafc);
}

.trending-card:hover .trending-card__title {
  color: var(--trend-accent);
}

.trending-card__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .trending-card__desc {
  color: #94a3b8;
}

.trending-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.trending-card__meta i {
  margin-right: 0.2rem;
  color: var(--trend-accent);
}

.dark .trending-card__meta {
  color: #94a3b8;
}

.trending-card__bar {
  height: 4px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.trending-card__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--trend-bar);
  transition: width 0.6s ease;
}

.trending-card:hover .trending-card__bar span {
  filter: brightness(1.1);
}

.trending-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.trending-card__views {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
}

.trending-card__views i {
  margin-right: 0.2rem;
}

.trending-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--trend-accent);
  transition: gap 0.25s ease, transform 0.25s ease;
}

.trending-card:hover .trending-card__cta {
  gap: 0.55rem;
}

.trending-card:hover .trending-card__cta i {
  transform: translateX(2px);
}

.trending-card--violet {
  --trend-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --trend-accent: #6366f1;
  --trend-border: rgba(99, 102, 241, 0.45);
  --trend-shadow: rgba(99, 102, 241, 0.28);
  --trend-bar: linear-gradient(90deg, #6366f1, #a855f7);
  --trend-card: linear-gradient(180deg, #eef2ff 0%, #f8f7ff 100%);
  --trend-icon-color: #4338ca;
  --trend-icon-bg: rgba(238, 242, 255, 0.9);
  --trend-icon-border: rgba(99, 102, 241, 0.4);
  --trend-chip-color: #3730a3;
  --trend-chip-bg: rgba(224, 231, 255, 0.9);
  --trend-chip-border: rgba(99, 102, 241, 0.4);
  --trend-title: #312e81;
  --trend-title-dark: #c7d2fe;
}

.trending-card--orange {
  --trend-hero: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  --trend-accent: #ea580c;
  --trend-border: rgba(249, 115, 22, 0.45);
  --trend-shadow: rgba(234, 88, 12, 0.28);
  --trend-bar: linear-gradient(90deg, #f97316, #dc2626);
  --trend-card: linear-gradient(180deg, #fff7ed 0%, #fffaf4 100%);
  --trend-icon-color: #c2410c;
  --trend-icon-bg: rgba(255, 237, 213, 0.9);
  --trend-icon-border: rgba(249, 115, 22, 0.45);
  --trend-chip-color: #9a3412;
  --trend-chip-bg: rgba(255, 237, 213, 0.92);
  --trend-chip-border: rgba(249, 115, 22, 0.45);
  --trend-title: #9a3412;
  --trend-title-dark: #fdba74;
}

.trending-card--teal {
  --trend-hero: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0891b2 100%);
  --trend-accent: #0d9488;
  --trend-border: rgba(20, 184, 166, 0.45);
  --trend-shadow: rgba(13, 148, 136, 0.28);
  --trend-bar: linear-gradient(90deg, #14b8a6, #0891b2);
  --trend-card: linear-gradient(180deg, #ecfeff 0%, #f5feff 100%);
  --trend-icon-color: #0f766e;
  --trend-icon-bg: rgba(204, 251, 241, 0.9);
  --trend-icon-border: rgba(20, 184, 166, 0.45);
  --trend-chip-color: #0f766e;
  --trend-chip-bg: rgba(204, 251, 241, 0.92);
  --trend-chip-border: rgba(20, 184, 166, 0.45);
  --trend-title: #0f766e;
  --trend-title-dark: #5eead4;
}

.trending-card--fuchsia {
  --trend-hero: linear-gradient(135deg, #c026d3 0%, #a21caf 50%, #7c3aed 100%);
  --trend-accent: #a21caf;
  --trend-border: rgba(192, 38, 211, 0.45);
  --trend-shadow: rgba(162, 28, 175, 0.28);
  --trend-bar: linear-gradient(90deg, #c026d3, #7c3aed);
  --trend-card: linear-gradient(180deg, #fdf4ff 0%, #f9f5ff 100%);
  --trend-icon-color: #a21caf;
  --trend-icon-bg: rgba(250, 232, 255, 0.9);
  --trend-icon-border: rgba(192, 38, 211, 0.45);
  --trend-chip-color: #86198f;
  --trend-chip-bg: rgba(250, 232, 255, 0.92);
  --trend-chip-border: rgba(192, 38, 211, 0.45);
  --trend-title: #86198f;
  --trend-title-dark: #e9d5ff;
}

.dark .trending-card--violet {
  --trend-card: linear-gradient(180deg, rgba(49, 46, 129, 0.38) 0%, rgba(30, 27, 75, 0.52) 100%);
}

.dark .trending-card--orange {
  --trend-card: linear-gradient(180deg, rgba(124, 45, 18, 0.38) 0%, rgba(67, 20, 7, 0.52) 100%);
}

.dark .trending-card--teal {
  --trend-card: linear-gradient(180deg, rgba(17, 94, 89, 0.36) 0%, rgba(8, 51, 68, 0.52) 100%);
}

.dark .trending-card--fuchsia {
  --trend-card: linear-gradient(180deg, rgba(112, 26, 117, 0.36) 0%, rgba(59, 7, 100, 0.52) 100%);
}

.trending-card--phones .trending-card__hero {
  background-image:
    linear-gradient(165deg, rgba(15, 23, 42, 0.35) 0%, rgba(79, 70, 229, 0.82) 100%),
    url("../images/carousel/electronics-evolution.jpg");
  background-size: cover;
  background-position: center;
}

.trending-card--railways .trending-card__hero {
  background-image:
    linear-gradient(165deg, rgba(15, 23, 42, 0.35) 0%, rgba(234, 88, 12, 0.85) 100%),
    url("../images/carousel/transporation-journey.jpg");
  background-size: cover;
  background-position: center;
}

.trending-card--internet .trending-card__hero {
  background-image:
    linear-gradient(165deg, rgba(15, 23, 42, 0.35) 0%, rgba(13, 148, 136, 0.85) 100%),
    url("../images/carousel/communication-evolution.jpg");
  background-size: cover;
  background-position: center;
}

.trending-card--india .trending-card__hero {
  background-image:
    linear-gradient(165deg, rgba(15, 23, 42, 0.35) 0%, rgba(124, 58, 237, 0.85) 100%),
    url("../images/carousel/legacyof-civilization.jpg");
  background-size: cover;
  background-position: center;
}

.trending-card--phones .trending-card__pattern,
.trending-card--railways .trending-card__pattern,
.trending-card--internet .trending-card__pattern,
.trending-card--india .trending-card__pattern {
  opacity: 0.2;
}

.trending-card__icon-wrap .icon-lucide {
  width: 2rem;
  height: 2rem;
}

/* Then vs Now — How Life Changed Dramatically */
.compare-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.12);
}

.compare-stat-pill strong {
  color: #0f172a;
  font-weight: 700;
}

.dark .compare-stat-pill {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.2);
}

.dark .compare-stat-pill strong {
  color: #f1f5f9;
}

.compare-card {
  position: relative;
  border-radius: 1.35rem;
  background: var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 36px -14px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.05), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dark .compare-card {
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.5);
}

.compare-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--compare-accent);
}

.compare-card:hover {
  transform: translateY(-8px);
  border-color: var(--compare-border);
  box-shadow: 0 24px 48px -18px var(--compare-shadow);
}

.compare-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 0.75rem;
}

.compare-card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  background: var(--compare-accent);
  border-radius: 0.85rem;
  box-shadow: 0 8px 20px -6px var(--compare-shadow);
  transition: transform 0.35s ease;
}

.compare-card:hover .compare-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.compare-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--compare-accent-text);
  margin-bottom: 0.2rem;
}

.compare-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.dark .compare-card__title {
  color: #f8fafc;
}

.compare-card__panels {
  position: relative;
  padding: 0 1.1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.compare-panel {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.compare-panel--then {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}

.dark .compare-panel--then {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(120, 53, 15, 0.2) 100%);
  border-color: rgba(245, 158, 11, 0.2);
}

.compare-panel--now {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(59, 130, 246, 0.25);
}

.dark .compare-panel--now {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(49, 46, 129, 0.25) 100%);
  border-color: rgba(99, 102, 241, 0.25);
}

.compare-card:hover .compare-panel--now {
  box-shadow: 0 4px 16px -6px rgba(99, 102, 241, 0.25);
}

.compare-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.compare-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-panel--then .compare-panel__label {
  color: #b45309;
}

.dark .compare-panel--then .compare-panel__label {
  color: #fbbf24;
}

.compare-panel--now .compare-panel__label {
  color: #2563eb;
}

.dark .compare-panel--now .compare-panel__label {
  color: #93c5fd;
}

.compare-panel__year {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
}

.dark .compare-panel__year {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.5);
}

.compare-panel__text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 0.55rem;
}

.dark .compare-panel__text {
  color: #cbd5e1;
}

.compare-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-panel__tags li {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.55);
  color: #64748b;
}

.dark .compare-panel__tags li {
  background: rgba(15, 23, 42, 0.45);
  color: #94a3b8;
}

.compare-panel--then .compare-panel__tags li {
  color: #92400e;
}

.dark .compare-panel--then .compare-panel__tags li {
  color: #fcd34d;
}

.compare-panel--now .compare-panel__tags li {
  color: #1d4ed8;
}

.dark .compare-panel--now .compare-panel__tags li {
  color: #93c5fd;
}

.compare-card__vs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  z-index: 1;
}

.compare-card__vs::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.5), transparent);
}

.compare-card__vs-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  border: 3px solid var(--surface-card);
  border-radius: 50%;
  box-shadow: 0 4px 14px -2px rgba(139, 92, 246, 0.45);
  transition: transform 0.35s ease;
}

.compare-card:hover .compare-card__vs-badge {
  transform: scale(1.12) rotate(180deg);
}

.compare-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 1.1rem 1.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.dark .compare-card__footer {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.12);
}

.compare-card__shift {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

.compare-card__shift i {
  margin-right: 0.25rem;
  color: var(--compare-accent-text);
}

.dark .compare-card__shift {
  color: #94a3b8;
}

.compare-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--compare-accent-text);
  transition: gap 0.25s ease;
}

.compare-card:hover .compare-card__cta {
  gap: 0.55rem;
}

.compare-card--education {
  --compare-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
  --compare-accent-text: #6366f1;
  --compare-border: rgba(99, 102, 241, 0.4);
  --compare-shadow: rgba(99, 102, 241, 0.25);
}

.compare-card--finance {
  --compare-accent: linear-gradient(135deg, #059669, #14b8a6);
  --compare-accent-text: #059669;
  --compare-border: rgba(5, 150, 105, 0.4);
  --compare-shadow: rgba(5, 150, 105, 0.22);
}

.compare-card--media {
  --compare-accent: linear-gradient(135deg, #ec4899, #a855f7);
  --compare-accent-text: #db2777;
  --compare-border: rgba(236, 72, 153, 0.4);
  --compare-shadow: rgba(219, 39, 119, 0.22);
}

.dark .compare-card--education {
  --compare-accent-text: #a5b4fc;
}

.dark .compare-card--finance {
  --compare-accent-text: #5eead4;
}

.dark .compare-card--media {
  --compare-accent-text: #f9a8d4;
}

/* India — Journey of India: Past to Present */
.india-tricolor-bar {
  height: 4px;
  background: linear-gradient(90deg, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #138808 66.66%);
  opacity: 0.85;
}

.dark .india-tricolor-bar {
  opacity: 0.55;
}

.india-tricolor-divider {
  width: 5rem;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #ea580c, #fbbf24, #16a34a);
}

.india-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.1);
}

.india-stat-pill strong {
  color: #0f172a;
  font-weight: 700;
}

.india-stat-pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.dark .india-stat-pill {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.2);
}

.dark .india-stat-pill strong {
  color: #f1f5f9;
}

.india-era-strip {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.india-era-strip span:not(.india-era-strip__line) {
  white-space: nowrap;
}

.india-era-strip__line {
  flex: 1;
  height: 2px;
  min-width: 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #fb923c, #fbbf24, #22c55e);
  opacity: 0.5;
}

.dark .india-era-strip {
  color: #94a3b8;
}

.india-card {
  position: relative;
  border-radius: 1.25rem;
  background: var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 32px -12px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.05), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dark .india-card {
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.45);
}

.india-card:hover {
  transform: translateY(-10px);
  border-color: var(--india-border);
  box-shadow: 0 22px 44px -16px var(--india-shadow);
}

.india-card__hero {
  position: relative;
  height: 9.5rem;
  background: var(--india-hero);
  overflow: hidden;
}

.india-card__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 11px
    );
}

.india-card__watermark {
  position: absolute;
  right: -0.25rem;
  bottom: -0.5rem;
  width: 5.5rem;
  height: 5.5rem;
  color: rgba(255, 255, 255, 0.2);
  stroke-width: 1.25;
  transform: rotate(-12deg);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.india-card__watermark.icon-lucide,
.india-card__watermark svg {
  width: 5.5rem;
  height: 5.5rem;
  display: block;
}

.india-card__icon .icon-lucide {
  width: 1.35rem;
  height: 1.35rem;
}

.india-card:hover .india-card__watermark {
  transform: rotate(-6deg) scale(1.05);
  opacity: 0.2;
}

.india-card__era {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.india-card__icon {
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  transform: translateX(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  background: var(--india-icon-bg);
  border: 3px solid var(--surface-card);
  border-radius: 0.85rem;
  box-shadow: 0 8px 20px -6px var(--india-shadow);
  z-index: 2;
  transition: transform 0.35s ease;
}

.india-card:hover .india-card__icon {
  transform: translateX(-50%) scale(1.1) rotate(-5deg);
}

.india-card__body {
  padding: 1.75rem 1.1rem 1.15rem;
}

.india-card__category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--india-accent);
  margin-bottom: 0.25rem;
}

.india-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 0.4rem;
  transition: color 0.25s ease;
}

.dark .india-card__title {
  color: #f8fafc;
}

.india-card:hover .india-card__title {
  color: var(--india-accent);
}

.india-card__desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .india-card__desc {
  color: #94a3b8;
}

.india-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.55rem;
}

.india-card__meta i {
  margin-right: 0.2rem;
  color: var(--india-accent);
}

.india-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.india-card__highlights span {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--india-tag-bg);
  color: var(--india-accent);
  border: 1px solid var(--india-tag-border);
}

.india-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--india-accent);
  transition: gap 0.25s ease;
}

.india-card:hover .india-card__cta {
  gap: 0.55rem;
}

.india-card--rail {
  --india-hero: linear-gradient(145deg, #ea580c 0%, #dc2626 55%, #9a3412 100%);
  --india-accent: #ea580c;
  --india-icon-bg: linear-gradient(135deg, #f97316, #dc2626);
  --india-border: rgba(234, 88, 12, 0.45);
  --india-shadow: rgba(234, 88, 12, 0.28);
  --india-tag-bg: rgba(234, 88, 12, 0.08);
  --india-tag-border: rgba(234, 88, 12, 0.2);
}

.india-card--currency {
  --india-hero: linear-gradient(145deg, #059669 0%, #0d9488 50%, #047857 100%);
  --india-accent: #059669;
  --india-icon-bg: linear-gradient(135deg, #10b981, #0d9488);
  --india-border: rgba(5, 150, 105, 0.45);
  --india-shadow: rgba(5, 150, 105, 0.25);
  --india-tag-bg: rgba(5, 150, 105, 0.08);
  --india-tag-border: rgba(5, 150, 105, 0.2);
}

.india-card--post {
  --india-hero: linear-gradient(145deg, #2563eb 0%, #4f46e5 55%, #3730a3 100%);
  --india-accent: #2563eb;
  --india-icon-bg: linear-gradient(135deg, #3b82f6, #6366f1);
  --india-border: rgba(37, 99, 235, 0.45);
  --india-shadow: rgba(37, 99, 235, 0.25);
  --india-tag-bg: rgba(37, 99, 235, 0.08);
  --india-tag-border: rgba(37, 99, 235, 0.2);
}

.india-card--education {
  --india-hero: linear-gradient(145deg, #7c3aed 0%, #a855f7 50%, #6d28d9 100%);
  --india-accent: #7c3aed;
  --india-icon-bg: linear-gradient(135deg, #8b5cf6, #a855f7);
  --india-border: rgba(124, 58, 237, 0.45);
  --india-shadow: rgba(124, 58, 237, 0.25);
  --india-tag-bg: rgba(124, 58, 237, 0.08);
  --india-tag-border: rgba(124, 58, 237, 0.2);
}

.dark .india-card--rail {
  --india-accent: #fb923c;
}

.dark .india-card--currency {
  --india-accent: #34d399;
}

.dark .india-card--post {
  --india-accent: #60a5fa;
}

.dark .india-card--education {
  --india-accent: #c4b5fd;
}

/* Travel Through Time — interactive slider */
.time-travel-panel {
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.45);
}

.time-string-wrap {
  position: relative;
  width: min(100%, 980px);
  height: 210px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  background: transparent;
  border: none;
}

#timeStringCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.time-string-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f4f1ea;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: difference;
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.time-string-cursor::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 140ms ease, transform 140ms ease;
}

.time-string-cursor.near {
  width: 16px;
  height: 16px;
}

.time-string-cursor.near::after {
  opacity: 1;
  transform: scale(1);
}

.time-string-cursor.dragging {
  width: 18px;
  height: 18px;
}

.time-string-hint-wrap {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
}

.time-string-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 9px;
  overflow: hidden;
  color: rgba(244, 241, 234, 0.88);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
}

.time-string-hint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 107, 107, 0.07) 0%,
    rgba(247, 184, 1, 0.07) 16%,
    rgba(107, 203, 119, 0.07) 32%,
    rgba(77, 150, 255, 0.07) 48%,
    rgba(184, 146, 255, 0.07) 64%,
    rgba(255, 143, 171, 0.07) 80%,
    rgba(255, 209, 102, 0.07) 100%
  );
  opacity: 0.8;
  pointer-events: none;
}

.time-string-hint span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .time-string-wrap {
    height: 170px;
  }

  .time-string-hint {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    padding: 6px 10px;
  }
}

.time-travel-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    #f97316 0%,
    #fbbf24 15%,
    #22c55e 35%,
    #3b82f6 55%,
    #8b5cf6 75%,
    #ec4899 100%
  );
  outline: none;
  cursor: pointer;
}

.time-travel-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55);
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.time-travel-range::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.65);
}

.time-travel-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55);
  cursor: grab;
}

.time-travel-ticks {
  display: flex;
  justify-content: space-between;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.time-travel-tick {
  flex: 1;
  min-width: 2.5rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.time-travel-tick:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.time-travel-tick--active {
  color: #fff;
  background: rgba(139, 92, 246, 0.35);
}

.time-travel-nav .time-travel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.time-travel-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.time-travel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.time-travel-btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
}

.time-travel-btn--primary:hover:not(:disabled) {
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.55);
}

.time-travel-year {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fde68a, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .time-travel-year {
    font-size: 4.5rem;
  }
}

.time-travel-period {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  padding: 0.2rem 0.55rem;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 9999px;
  border: 1px solid rgba(165, 180, 252, 0.35);
}

.time-travel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-travel-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.time-travel-changes li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.time-travel-changes li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(167, 139, 250, 0.35);
}

.time-travel-changes li i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #4ade80;
}

/* Impact stats — 5 cards in one row (lg+) */

/* See the Difference — comparison panel cards */
.diff-card {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 36px -14px rgba(15, 23, 42, 0.14);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.05), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dark .diff-card {
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.55);
}

.diff-card:hover {
  transform: translateY(-10px);
  border-color: var(--diff-border);
  box-shadow: 0 24px 48px -16px var(--diff-shadow);
}

.diff-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.diff-card__link:focus-visible {
  outline: 2px solid var(--diff-accent);
  outline-offset: 3px;
}

.diff-card__visual {
  position: relative;
  min-height: 10.5rem;
  padding: 1rem 1rem 0.85rem;
  background: var(--diff-hero);
  overflow: hidden;
}

.diff-card__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.35) 0%, transparent 50%),
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 11px
    );
  pointer-events: none;
}

.diff-card__format {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.diff-card__icon-ring {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0.65rem auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 1rem;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease;
}

.diff-card__format .icon-lucide,
.diff-card__format svg.lucide,
.diff-card__icon-ring .icon-lucide,
.diff-card__icon-ring svg.lucide,
.diff-card__compare .icon-lucide,
.diff-card__compare svg.lucide,
.diff-card__steps .icon-lucide,
.diff-card__steps svg.lucide {
  width: 1.25rem;
  height: 1.25rem;
}

.diff-card__steps .icon-lucide {
  width: 1.1rem;
  height: 1.1rem;
}

.diff-card:hover .diff-card__icon-ring {
  transform: scale(1.1) rotate(-4deg);
}

.diff-card__compare {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.diff-card__pill {
  padding: 0.22rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0.4rem;
}

.diff-card__pill--then {
  background: rgba(251, 191, 36, 0.9);
  color: #78350f;
}

.diff-card__pill--now {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.diff-card__arrow {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.diff-card__timeline-mini {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.diff-card__timeline-line {
  flex: 1;
  max-width: 4rem;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), #fff);
}

.diff-card__steps {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
  font-size: 1.1rem;
  color: #fff;
}

.diff-card__steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.diff-card__devices {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  min-height: 3.5rem;
}

.diff-card__device {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.diff-card__device--1 {
  transform: translateX(-0.5rem) rotate(-2deg);
}

.diff-card__device--2 {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.35);
}

.diff-card__device--3 {
  transform: translateX(0.5rem) rotate(2deg);
}

.diff-card:hover .diff-card__device--2 {
  transform: scale(1.12);
}

.diff-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
  border-top: 3px solid var(--diff-accent);
  background: var(--surface-card);
}

.diff-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 0.4rem;
  transition: color 0.25s ease;
}

.dark .diff-card__title {
  color: #f8fafc;
}

.diff-card:hover .diff-card__title {
  color: var(--diff-accent);
}

.diff-card__desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 0.6rem;
  flex: 1;
}

.dark .diff-card__desc {
  color: #94a3b8;
}

.diff-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.diff-card__tags span {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--diff-tag-bg);
  color: var(--diff-accent);
  border: 1px solid var(--diff-tag-border);
}

.diff-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--diff-accent);
  transition: gap 0.25s ease;
}

.diff-card__cta i {
  font-size: 0.68rem;
  transition: transform 0.25s ease;
}

.diff-card:hover .diff-card__cta {
  gap: 0.55rem;
}

.diff-card:hover .diff-card__cta i {
  transform: translateX(3px);
}

.diff-card--rose {
  --diff-hero: linear-gradient(145deg, #f43f5e 0%, #ec4899 45%, #a855f7 100%);
  --diff-accent: #e11d48;
  --diff-border: rgba(225, 29, 72, 0.45);
  --diff-shadow: rgba(225, 29, 72, 0.28);
  --diff-tag-bg: rgba(225, 29, 72, 0.08);
  --diff-tag-border: rgba(225, 29, 72, 0.2);
}

.diff-card--indigo {
  --diff-hero: linear-gradient(145deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  --diff-accent: #4f46e5;
  --diff-border: rgba(79, 70, 229, 0.45);
  --diff-shadow: rgba(79, 70, 229, 0.28);
  --diff-tag-bg: rgba(79, 70, 229, 0.08);
  --diff-tag-border: rgba(79, 70, 229, 0.2);
}

.diff-card--amber {
  --diff-hero: linear-gradient(145deg, #ea580c 0%, #f97316 50%, #fbbf24 100%);
  --diff-accent: #ea580c;
  --diff-border: rgba(234, 88, 12, 0.45);
  --diff-shadow: rgba(234, 88, 12, 0.28);
  --diff-tag-bg: rgba(234, 88, 12, 0.08);
  --diff-tag-border: rgba(234, 88, 12, 0.2);
}

.diff-card--cyan {
  --diff-hero: linear-gradient(145deg, #0891b2 0%, #06b6d4 50%, #6366f1 100%);
  --diff-accent: #0891b2;
  --diff-border: rgba(8, 145, 178, 0.45);
  --diff-shadow: rgba(8, 145, 178, 0.28);
  --diff-tag-bg: rgba(8, 145, 178, 0.08);
  --diff-tag-border: rgba(8, 145, 178, 0.2);
}

.dark .diff-card--rose {
  --diff-accent: #fb7185;
}

.dark .diff-card--indigo {
  --diff-accent: #a5b4fc;
}

.dark .diff-card--amber {
  --diff-accent: #fb923c;
}

.dark .diff-card--cyan {
  --diff-accent: #22d3ee;
}

/* Future World section + cards */
#future-world {
  position: relative;
}

.future-section-liquid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.7;
}

.future-section-liquid canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.future-liquid-hint {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.45);
  transition: opacity 0.5s ease;
}

.future-liquid-hint.is-hidden {
  opacity: 0;
}

#future-world::before,
#future-world::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

#future-world::before {
  background-image: linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: screen;
  animation: futureGridDrift 30s linear infinite;
}

#future-world::after {
  background: radial-gradient(circle at 10% 0%, rgba(129, 140, 248, 0.25), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(45, 212, 191, 0.22), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

.future-card {
  position: relative;
  border-radius: 1.6rem;
  padding: 1.5rem 1.3rem 1.4rem;
  background: radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.12), transparent 55%), var(--future-hero, rgba(15, 23, 42, 0.84));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 22px 52px -22px rgba(15, 23, 42, 0.95);
  overflow: hidden;
  transform-origin: center bottom;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: futureFloat 12s ease-in-out infinite;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.future-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(248, 250, 252, 0.12) 40%, transparent 75%);
  opacity: 0;
  transform: translateX(-40%);
  mix-blend-mode: screen;
  transition: opacity 0.4s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.future-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 14.5rem;
  background-image: linear-gradient(180deg, transparent 0, rgba(15, 23, 42, 0.25) 55%, transparent 100%),
    radial-gradient(circle at 15% 0%, rgba(248, 250, 252, 0.12), transparent 60%);
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 2;
}

.future-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: var(--future-border, rgba(244, 244, 245, 0.8));
  box-shadow: 0 26px 80px -24px var(--future-shadow, rgba(59, 130, 246, 0.7));
}

.future-card:hover::before {
  opacity: 1;
  transform: translateX(20%);
}

.future-card:nth-child(1) {
  animation-delay: 0s;
}

.future-card:nth-child(2) {
  animation-delay: 2s;
}

.future-card:nth-child(3) {
  animation-delay: 4s;
}

.future-card:nth-child(4) {
  animation-delay: 6s;
}

.future-card__media {
  position: relative;
  z-index: 1;
  isolation: isolate;
  height: 16rem;
  margin: -0.4rem -0.25rem 1.1rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.35);
  box-shadow: 0 18px 34px -22px rgba(15, 23, 42, 0.95);
  background: #020617;
}

.future-card__source {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.future-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.55) 85%);
}

.future-card__badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.55rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 9999px;
  padding: 0.28rem 0.58rem;
  backdrop-filter: blur(4px);
}

.future-card__title,
.future-card__desc,
.future-card__meta {
  position: relative;
  z-index: 3;
}

.future-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.future-card__desc {
  font-size: 0.82rem;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

.future-card__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a5b4fc;
}

.future-card__meta i {
  margin-right: 0.25rem;
}

.future-card--ai {
  --future-hero: radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.45), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.45), transparent 55%), #020617;
  --future-border: rgba(244, 114, 182, 0.8);
  --future-shadow: rgba(244, 114, 182, 0.6);
}

.future-card--transport {
  --future-hero: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.4), transparent 55%), #020617;
  --future-border: rgba(56, 189, 248, 0.85);
  --future-shadow: rgba(56, 189, 248, 0.6);
}

.future-card--cities {
  --future-hero: radial-gradient(circle at 0% 100%, rgba(52, 211, 153, 0.35), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.35), transparent 55%), #020617;
  --future-border: rgba(52, 211, 153, 0.85);
  --future-shadow: rgba(52, 211, 153, 0.6);
}

.future-card--space {
  --future-hero: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.45), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.5), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.9), #020617);
  --future-border: rgba(129, 140, 248, 0.85);
  --future-shadow: rgba(129, 140, 248, 0.65);
}

@keyframes futureFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.01);
  }
}

@keyframes futureIconPulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 26px rgba(129, 140, 248, 0.75);
  }
  50% {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 36px rgba(244, 114, 182, 0.9);
  }
}

@keyframes futureGridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-40px, -20px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1024px) {
  .future-card__media {
    height: 14rem;
  }

  .future-card::after {
    top: 12.8rem;
  }
}

@media (max-width: 640px) {
  .future-card__media {
    height: 12.5rem;
  }

  .future-card::after {
    top: 11.5rem;
  }
}

/* Fresh from WORLDTIMELINEHUB — editorial feed cards */
.feed-divider {
  width: 4rem;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6, #d946ef);
}

.feed-card {
  position: relative;
  border-radius: 1rem;
  background: var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.dark .feed-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.5);
}

.feed-card:hover {
  transform: translateX(6px);
  border-color: var(--feed-accent);
  box-shadow: 0 12px 32px -10px var(--feed-shadow);
}

.feed-card__link {
  display: flex;
  align-items: stretch;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.feed-card__link:focus-visible {
  outline: 2px solid var(--feed-accent);
  outline-offset: 3px;
  border-radius: 1rem;
}

.feed-card__date-col {
  flex-shrink: 0;
  width: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  background: var(--feed-date-bg);
  border-right: 1px dashed rgba(148, 163, 184, 0.35);
  text-align: center;
}

.feed-card__day {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--feed-accent);
}

.feed-card__month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-top: 0.15rem;
}

.feed-card__year {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.dark .feed-card__month {
  color: #94a3b8;
}

.feed-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem 1.1rem;
  min-width: 0;
}

.feed-card__pick {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  background: #fef3c7;
  border-radius: 0.25rem;
}

.feed-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
}

.feed-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.7rem;
  color: var(--feed-accent);
  background: var(--feed-icon-bg);
  border-radius: 0.35rem;
}

.feed-card__category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--feed-accent);
}

.feed-card__dot,
.feed-card__read {
  color: #94a3b8;
  font-weight: 600;
}

.feed-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.dark .feed-card__title {
  color: #f1f5f9;
}

.feed-card:hover .feed-card__title {
  color: var(--feed-accent);
}

.feed-card__excerpt {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 0.65rem;
  flex: 1;
}

.dark .feed-card__excerpt {
  color: #94a3b8;
}

.feed-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--feed-accent);
  transition: gap 0.2s ease;
}

.feed-card:hover .feed-card__action {
  gap: 0.65rem;
}

.feed-card--featured {
  border-width: 2px;
  border-color: var(--feed-accent);
  background: linear-gradient(90deg, var(--feed-icon-bg) 0%, var(--surface-card) 12%);
}

.dark .feed-card--featured {
  background: linear-gradient(90deg, var(--feed-icon-bg) 0%, #0f172a 18%);
}

.feed-card--india {
  --feed-accent: #2563eb;
  --feed-date-bg: #eff6ff;
  --feed-icon-bg: rgba(37, 99, 235, 0.12);
  --feed-shadow: rgba(37, 99, 235, 0.2);
}

.feed-card--tech {
  --feed-accent: #059669;
  --feed-date-bg: #ecfdf5;
  --feed-icon-bg: rgba(5, 150, 105, 0.12);
  --feed-shadow: rgba(5, 150, 105, 0.2);
}

.feed-card--violet {
  --feed-accent: #7c3aed;
  --feed-date-bg: #f5f3ff;
  --feed-icon-bg: rgba(124, 58, 237, 0.12);
  --feed-shadow: rgba(124, 58, 237, 0.2);
}

.feed-card--amber {
  --feed-accent: #ea580c;
  --feed-date-bg: #fff7ed;
  --feed-icon-bg: rgba(234, 88, 12, 0.12);
  --feed-shadow: rgba(234, 88, 12, 0.2);
}

.dark .feed-card--india {
  --feed-date-bg: rgba(37, 99, 235, 0.15);
}

.dark .feed-card--tech {
  --feed-date-bg: rgba(5, 150, 105, 0.12);
}

.dark .feed-card--violet {
  --feed-date-bg: rgba(124, 58, 237, 0.12);
}

.dark .feed-card--amber {
  --feed-date-bg: rgba(234, 88, 12, 0.12);
}

/* Interactive image strip */
.options-gallery {
  --gallery-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gallery-duration: 1.6s;

  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  overflow: hidden;
  width: 100%;
  min-height: 380px;
  margin: 0 auto;
}

.options-gallery .option {
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  min-width: 62px;
  border-radius: 1.5rem;
  background: var(--optionBackground, #e6e9ed);
  background-size: auto 120%;
  background-position: center;
  cursor: pointer;
  transition:
    flex-grow var(--gallery-duration) var(--gallery-ease),
    transform 1.2s var(--gallery-ease),
    margin var(--gallery-duration) var(--gallery-ease),
    border-radius var(--gallery-duration) var(--gallery-ease),
    background-size var(--gallery-duration) var(--gallery-ease);
}

.options-gallery .option:nth-child(1) { --defaultBackground: #ed5565; }
.options-gallery .option:nth-child(2) { --defaultBackground: #fc6e51; }
.options-gallery .option:nth-child(3) { --defaultBackground: #ffce54; }
.options-gallery .option:nth-child(4) { --defaultBackground: #2ecc71; }
.options-gallery .option:nth-child(5) { --defaultBackground: #5d9cec; }
.options-gallery .option:nth-child(6) { --defaultBackground: #ac92ec; }

.options-gallery .option.active {
  flex-grow: 100;
  margin: 0;
  border-radius: 2rem;
  transform: scale(1);
  background-size: auto 100%;
}

.options-gallery .option:not(.active) .shadow {
  box-shadow: inset 0 -120px 0 -120px black, inset 0 -120px 0 -100px black;
}

.options-gallery .option.active .shadow {
  box-shadow: inset 0 -120px 120px -120px black, inset 0 -120px 120px -100px black;
}

.options-gallery .shadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  transition: box-shadow var(--gallery-duration) var(--gallery-ease);
}

.options-gallery .label {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 42px;
  transition: all var(--gallery-duration) var(--gallery-ease);
}

.options-gallery .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: white;
  color: var(--defaultBackground);
  flex-shrink: 0;
}

.options-gallery .info {
  color: white;
  white-space: nowrap;
}

.options-gallery .info > div {
  position: relative;
  transition:
    left var(--gallery-duration) var(--gallery-ease),
    opacity var(--gallery-duration) ease-out;
}

.options-gallery .info .main {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}

.options-gallery .info .sub {
  font-size: 0.78rem;
  opacity: 0.9;
  transition-delay: 0.25s;
}

.options-gallery .option.active .label {
  left: 1.2rem;
  bottom: 1.2rem;
}

.options-gallery .option.active .info > div {
  left: 0;
  opacity: 1;
}

.options-gallery .option:not(.active) .label {
  left: 0.65rem;
  bottom: 0.7rem;
}

.options-gallery .option:not(.active) .info > div {
  left: 1.15rem;
  opacity: 0;
}

.gallery-credit {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.gallery-credit:hover {
  color: #4f46e5;
}

.dark .gallery-credit {
  color: #94a3b8;
}

.dark .gallery-credit:hover {
  color: #a5b4fc;
}

.gallery-dots {
  display: none;
}

@media (max-width: 1024px) {
  .options-gallery {
    min-height: 330px;
  }
}

@media (max-width: 768px) {
  .options-gallery {
    min-height: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0.7rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 0.45rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .options-gallery .option {
    min-width: 0;
    min-height: 255px;
    border-radius: 1.1rem;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background-size: cover;
  }

  .options-gallery .option.active {
    flex-grow: 1;
    border-radius: 1.1rem;
  }

  .options-gallery .option:nth-child(6) {
    display: block;
  }

  .options-gallery .label {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.75rem;
    height: auto;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .options-gallery .icon {
    width: 2rem;
    height: 2rem;
  }

  .options-gallery .info {
    white-space: normal;
    max-width: calc(100% - 2.5rem);
  }

  .options-gallery .info > div {
    left: 0 !important;
    opacity: 1 !important;
  }

  .options-gallery .shadow {
    height: 150px;
  }

  .options-gallery .option:not(.active) .shadow,
  .options-gallery .option.active .shadow {
    box-shadow: inset 0 -130px 110px -90px rgba(0, 0, 0, 0.95);
  }

  .gallery-dots {
    margin-top: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
  }

  .gallery-dot {
    width: 0.45rem;
    height: 0.45rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(100, 116, 139, 0.35);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .gallery-dot.is-active {
    width: 1.2rem;
    background: linear-gradient(90deg, #6366f1, #ec4899);
  }

  .dark .gallery-dot {
    background: rgba(148, 163, 184, 0.35);
  }
}

@media (max-width: 620px) {
  .options-gallery {
    grid-auto-columns: 100%;
    min-height: 240px;
  }

  .options-gallery .option:nth-child(5) {
    display: block;
  }

  .options-gallery .info .main {
    font-size: 0.84rem;
  }

  .options-gallery .info .sub {
    font-size: 0.66rem;
  }
}

/* Technology — How Technology Changed Our World */
.tech-divider {
  width: 4.5rem;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #22c55e, #06b6d4, #6366f1, #ec4899);
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
}

.tech-pill i {
  color: #06b6d4;
}

.dark .tech-pill {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

.dark .tech-pill i {
  color: #22d3ee;
}

.tech-card {
  position: relative;
  border-radius: 1.25rem;
  background: var(--tech-bg, var(--surface-card));
  border: 1px solid var(--tech-border-soft, rgba(148, 163, 184, 0.24));
  box-shadow: 0 14px 34px -18px rgba(15, 23, 42, 0.22);
  padding: 1.15rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.dark .tech-card {
  background: var(--tech-bg-dark, rgba(2, 6, 23, 0.92));
  border-color: var(--tech-border-dark, rgba(148, 163, 184, 0.14));
  box-shadow: 0 14px 38px -18px rgba(0, 0, 0, 0.7);
}

.tech-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--tech-border, rgba(59, 130, 246, 0.4));
  opacity: 0.55;
  pointer-events: none;
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--tech-accent-bar), var(--tech-accent-bar)) top / 100% 3px no-repeat,
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.22), transparent 52%),
    radial-gradient(circle at 92% 12%, var(--tech-glow), transparent 58%);
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tech-card__header::after {
  content: "";
  position: absolute;
  left: -1.1rem;
  right: -1.1rem;
  bottom: -0.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--tech-border) 18%, var(--tech-border) 82%, transparent 100%);
  opacity: 0.35;
}

.tech-card__title,
.tech-card__desc,
.tech-card__stats,
.tech-card__cta {
  position: relative;
  z-index: 1;
}

.tech-card > * {
  position: relative;
  z-index: 1;
}

.tech-card:hover {
  transform: translateY(-8px);
  border-color: var(--tech-border);
  box-shadow: 0 24px 46px -18px var(--tech-shadow);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.tech-card__icon {
  flex-shrink: 0;
  width: 2.95rem;
  height: 2.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  color: #fff;
  background: var(--tech-icon-bg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px -11px var(--tech-shadow);
  transition: transform 0.3s ease;
}

.tech-card__icon .icon-lucide {
  width: 1.35rem;
  height: 1.35rem;
}

.tech-card:hover .tech-card__icon {
  transform: translateY(-2px) scale(1.06);
}

.tech-card__meta {
  text-align: right;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #64748b;
}

.dark .tech-card__meta {
  color: #9ca3af;
}

.tech-card__label {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tech-accent);
}

.tech-card__years {
  display: block;
  margin-top: 0.1rem;
}

.tech-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.dark .tech-card__title {
  color: #f9fafb;
}

.tech-card__desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #4b5563;
}

.dark .tech-card__desc {
  color: #cbd5f5;
}

.tech-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
}

.dark .tech-card__stats {
  color: #a1a1aa;
}

.tech-card__stats i {
  margin-right: 0.25rem;
  color: var(--tech-accent);
}

.tech-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tech-accent);
  background: var(--tech-cta-bg, rgba(248, 250, 252, 0.82));
  border-radius: 9999px;
  border: 1px solid var(--tech-cta-border, rgba(148, 163, 184, 0.4));
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tech-card__cta i {
  font-size: 0.7rem;
}

.tech-card:hover .tech-card__cta {
  transform: translateX(2px);
  background: var(--tech-cta-hover-bg, rgba(255, 255, 255, 0.95));
  box-shadow: 0 8px 18px -8px var(--tech-shadow);
}

.dark .tech-card__cta {
  background: var(--tech-cta-bg-dark, rgba(15, 23, 42, 0.9));
  border-color: var(--tech-cta-border-dark, rgba(148, 163, 184, 0.4));
}

.tech-card--blue {
  --tech-accent: #2563eb;
  --tech-border: rgba(37, 99, 235, 0.45);
  --tech-border-soft: rgba(96, 165, 250, 0.35);
  --tech-border-dark: rgba(96, 165, 250, 0.3);
  --tech-shadow: rgba(37, 99, 235, 0.35);
  --tech-icon-bg: linear-gradient(135deg, #3b82f6, #6366f1);
  --tech-accent-bar: linear-gradient(90deg, #60a5fa, #6366f1);
  --tech-glow: rgba(59, 130, 246, 0.22);
  --tech-bg:
    linear-gradient(145deg, rgba(219, 234, 254, 0.74), rgba(255, 255, 255, 0.94) 58%),
    radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.16), transparent 58%);
  --tech-bg-dark:
    linear-gradient(145deg, rgba(30, 58, 138, 0.34), rgba(2, 6, 23, 0.95) 62%),
    radial-gradient(circle at 8% 0%, rgba(96, 165, 250, 0.28), transparent 62%);
  --tech-cta-bg: rgba(239, 246, 255, 0.9);
  --tech-cta-border: rgba(147, 197, 253, 0.55);
  --tech-cta-bg-dark: rgba(30, 58, 138, 0.38);
  --tech-cta-border-dark: rgba(125, 211, 252, 0.45);
}

.tech-card--green {
  --tech-accent: #059669;
  --tech-border: rgba(5, 150, 105, 0.45);
  --tech-border-soft: rgba(52, 211, 153, 0.32);
  --tech-border-dark: rgba(52, 211, 153, 0.26);
  --tech-shadow: rgba(5, 150, 105, 0.35);
  --tech-icon-bg: linear-gradient(135deg, #10b981, #059669);
  --tech-accent-bar: linear-gradient(90deg, #34d399, #059669);
  --tech-glow: rgba(16, 185, 129, 0.22);
  --tech-bg:
    linear-gradient(145deg, rgba(220, 252, 231, 0.72), rgba(255, 255, 255, 0.94) 58%),
    radial-gradient(circle at 8% 0%, rgba(16, 185, 129, 0.16), transparent 58%);
  --tech-bg-dark:
    linear-gradient(145deg, rgba(6, 78, 59, 0.34), rgba(2, 6, 23, 0.95) 62%),
    radial-gradient(circle at 8% 0%, rgba(52, 211, 153, 0.26), transparent 62%);
  --tech-cta-bg: rgba(236, 253, 245, 0.9);
  --tech-cta-border: rgba(110, 231, 183, 0.5);
  --tech-cta-bg-dark: rgba(6, 78, 59, 0.38);
  --tech-cta-border-dark: rgba(110, 231, 183, 0.45);
}

.tech-card--purple {
  --tech-accent: #7c3aed;
  --tech-border: rgba(124, 58, 237, 0.45);
  --tech-border-soft: rgba(167, 139, 250, 0.34);
  --tech-border-dark: rgba(167, 139, 250, 0.26);
  --tech-shadow: rgba(124, 58, 237, 0.35);
  --tech-icon-bg: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --tech-accent-bar: linear-gradient(90deg, #a78bfa, #7c3aed);
  --tech-glow: rgba(139, 92, 246, 0.22);
  --tech-bg:
    linear-gradient(145deg, rgba(237, 233, 254, 0.74), rgba(255, 255, 255, 0.94) 58%),
    radial-gradient(circle at 8% 0%, rgba(139, 92, 246, 0.17), transparent 58%);
  --tech-bg-dark:
    linear-gradient(145deg, rgba(76, 29, 149, 0.36), rgba(2, 6, 23, 0.95) 62%),
    radial-gradient(circle at 8% 0%, rgba(167, 139, 250, 0.28), transparent 62%);
  --tech-cta-bg: rgba(245, 243, 255, 0.9);
  --tech-cta-border: rgba(196, 181, 253, 0.56);
  --tech-cta-bg-dark: rgba(76, 29, 149, 0.4);
  --tech-cta-border-dark: rgba(196, 181, 253, 0.44);
}

.tech-card--red {
  --tech-accent: #dc2626;
  --tech-border: rgba(220, 38, 38, 0.45);
  --tech-border-soft: rgba(251, 146, 60, 0.34);
  --tech-border-dark: rgba(251, 146, 60, 0.26);
  --tech-shadow: rgba(220, 38, 38, 0.35);
  --tech-icon-bg: linear-gradient(135deg, #f97316, #ef4444);
  --tech-accent-bar: linear-gradient(90deg, #fb7185, #ef4444);
  --tech-glow: rgba(239, 68, 68, 0.2);
  --tech-bg:
    linear-gradient(145deg, rgba(255, 237, 213, 0.72), rgba(255, 255, 255, 0.94) 58%),
    radial-gradient(circle at 8% 0%, rgba(251, 146, 60, 0.17), transparent 58%);
  --tech-bg-dark:
    linear-gradient(145deg, rgba(127, 29, 29, 0.38), rgba(2, 6, 23, 0.95) 62%),
    radial-gradient(circle at 8% 0%, rgba(251, 146, 60, 0.28), transparent 62%);
  --tech-cta-bg: rgba(255, 247, 237, 0.9);
  --tech-cta-border: rgba(253, 186, 116, 0.55);
  --tech-cta-bg-dark: rgba(127, 29, 29, 0.42);
  --tech-cta-border-dark: rgba(253, 186, 116, 0.46);
}

.tech-card--amber {
  --tech-accent: #d97706;
  --tech-border: rgba(217, 119, 6, 0.45);
  --tech-border-soft: rgba(252, 211, 77, 0.4);
  --tech-border-dark: rgba(252, 211, 77, 0.3);
  --tech-shadow: rgba(217, 119, 6, 0.35);
  --tech-icon-bg: linear-gradient(135deg, #facc15, #d97706);
  --tech-accent-bar: linear-gradient(90deg, #fde68a, #d97706);
  --tech-glow: rgba(245, 158, 11, 0.2);
  --tech-bg:
    linear-gradient(145deg, rgba(254, 249, 195, 0.76), rgba(255, 255, 255, 0.95) 58%),
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.2), transparent 58%);
  --tech-bg-dark:
    linear-gradient(145deg, rgba(120, 53, 15, 0.4), rgba(2, 6, 23, 0.95) 62%),
    radial-gradient(circle at 8% 0%, rgba(252, 211, 77, 0.3), transparent 62%);
  --tech-cta-bg: rgba(255, 251, 235, 0.9);
  --tech-cta-border: rgba(252, 211, 77, 0.58);
  --tech-cta-bg-dark: rgba(120, 53, 15, 0.42);
  --tech-cta-border-dark: rgba(252, 211, 77, 0.45);
}

.tech-card--pink {
  --tech-accent: #db2777;
  --tech-border: rgba(219, 39, 119, 0.45);
  --tech-border-soft: rgba(244, 114, 182, 0.36);
  --tech-border-dark: rgba(244, 114, 182, 0.28);
  --tech-shadow: rgba(219, 39, 119, 0.35);
  --tech-icon-bg: linear-gradient(135deg, #fb7185, #db2777);
  --tech-accent-bar: linear-gradient(90deg, #f9a8d4, #db2777);
  --tech-glow: rgba(219, 39, 119, 0.2);
  --tech-bg:
    linear-gradient(145deg, rgba(252, 231, 243, 0.74), rgba(255, 255, 255, 0.94) 58%),
    radial-gradient(circle at 8% 0%, rgba(244, 114, 182, 0.18), transparent 58%);
  --tech-bg-dark:
    linear-gradient(145deg, rgba(131, 24, 67, 0.4), rgba(2, 6, 23, 0.95) 62%),
    radial-gradient(circle at 8% 0%, rgba(244, 114, 182, 0.3), transparent 62%);
  --tech-cta-bg: rgba(253, 242, 248, 0.9);
  --tech-cta-border: rgba(244, 114, 182, 0.55);
  --tech-cta-bg-dark: rgba(131, 24, 67, 0.42);
  --tech-cta-border-dark: rgba(244, 114, 182, 0.45);
}

.impact-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.55) 100%);
  backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.impact-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--impact-accent);
  opacity: 0.85;
}

.impact-stat-card__shine {
  position: absolute;
  inset: -50% auto auto -50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 30% 20%, var(--impact-glow), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.impact-stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--impact-border);
  box-shadow: 0 20px 40px -12px var(--impact-shadow);
}

.impact-stat-card:hover .impact-stat-card__shine {
  opacity: 1;
}

.impact-stat-card__body {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0.75rem 1.35rem;
  text-align: center;
}

@media (min-width: 1280px) {
  .impact-stat-card__body {
    padding: 1.35rem 0.85rem 1.5rem;
  }
}

.impact-stat-card__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  font-size: 1.35rem;
  background: var(--impact-icon-bg);
  color: var(--impact-icon-color);
  border: 1px solid var(--impact-border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.impact-stat-card:hover .impact-stat-card__icon {
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 8px 24px -6px var(--impact-shadow);
}

.impact-stat-card--cyan {
  --impact-accent: linear-gradient(90deg, #22d3ee, #6366f1);
  --impact-glow: rgba(34, 211, 238, 0.25);
  --impact-border: rgba(34, 211, 238, 0.45);
  --impact-shadow: rgba(34, 211, 238, 0.25);
  --impact-icon-bg: rgba(34, 211, 238, 0.12);
  --impact-icon-color: #22d3ee;
}

.impact-stat-card--amber {
  --impact-accent: linear-gradient(90deg, #fbbf24, #f97316);
  --impact-glow: rgba(251, 191, 36, 0.25);
  --impact-border: rgba(251, 191, 36, 0.45);
  --impact-shadow: rgba(251, 191, 36, 0.22);
  --impact-icon-bg: rgba(251, 191, 36, 0.12);
  --impact-icon-color: #fbbf24;
}

.impact-stat-card--blue {
  --impact-accent: linear-gradient(90deg, #60a5fa, #818cf8);
  --impact-glow: rgba(96, 165, 250, 0.25);
  --impact-border: rgba(96, 165, 250, 0.45);
  --impact-shadow: rgba(96, 165, 250, 0.22);
  --impact-icon-bg: rgba(96, 165, 250, 0.12);
  --impact-icon-color: #60a5fa;
}

.impact-stat-card--india {
  --impact-accent: linear-gradient(90deg, #fb923c, #22c55e, #fb923c);
  --impact-glow: rgba(251, 146, 60, 0.22);
  --impact-border: rgba(251, 146, 60, 0.4);
  --impact-shadow: rgba(34, 197, 94, 0.18);
  --impact-icon-bg: rgba(251, 146, 60, 0.14);
  --impact-icon-color: #fb923c;
}

.impact-stat-card--pink {
  --impact-accent: linear-gradient(90deg, #f472b6, #c084fc);
  --impact-glow: rgba(244, 114, 182, 0.28);
  --impact-border: rgba(244, 114, 182, 0.45);
  --impact-shadow: rgba(192, 132, 252, 0.22);
  --impact-icon-bg: rgba(244, 114, 182, 0.14);
  --impact-icon-color: #f472b6;
}

/* Timeline range slider */
#timelineSlider {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #f59e0b, #7c3aed, #3b82f6);
  height: 8px;
  border-radius: 9999px;
}

#timelineSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #7c3aed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

#timelineSlider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #7c3aed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Nav active link */
.nav-link {
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #a855f7);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #e2e8f0;
}

.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 5px;
}

/* Animations */
@keyframes pulseSlow {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 0.65;
    transform: translateY(-12px);
  }
}

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .animate-pulse-slow,
  .animate-fade-up {
    animation: none;
  }
}

/* Site footer — enhanced chrono design */
.site-footer {
  position: relative;
  margin-top: 1rem;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a 0%, #020617 55%, #000 100%);
  overflow: hidden;
}

.site-footer__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
}

.site-footer__glow {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
}

.site-footer__glow--left {
  top: 10%;
  left: -6rem;
  background: rgba(79, 70, 229, 0.55);
}

.site-footer__glow--right {
  bottom: 5%;
  right: -4rem;
  background: rgba(124, 58, 237, 0.45);
}

.site-footer__wave {
  display: block;
  width: 100%;
  height: 3rem;
  color: var(--surface-light, #f8fafc);
}

.dark .site-footer__wave {
  color: #0f172a;
}

.site-footer__inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.35rem;
  margin-bottom: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(124, 58, 237, 0.15) 100%);
  box-shadow: 0 20px 50px -24px rgba(79, 70, 229, 0.55);
}

@media (min-width: 768px) {
  .footer-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
  }
}

.footer-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-bottom: 0.5rem;
}

.footer-cta__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
  margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
  .footer-cta__title {
    font-size: 1.75rem;
  }
}

.footer-cta__desc {
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 32rem;
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-cta__btn:hover {
  transform: translateY(-2px);
}

.footer-cta__btn--primary {
  color: #fff;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.7);
}

.footer-cta__btn--ghost {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.5);
}

.footer-cta__btn--ghost:hover {
  border-color: #a5b4fc;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.15rem;
    align-items: start;
  }
}

.footer-panel {
  padding: 1.25rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-panel:hover {
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 12px 32px -20px rgba(99, 102, 241, 0.45);
}

.footer-panel--newsletter {
  background: linear-gradient(160deg, rgba(79, 70, 229, 0.18) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(99, 102, 241, 0.35);
}

.footer-panel__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.footer-panel__title i {
  font-size: 0.85rem;
  color: #818cf8;
}

/* Footer brand column */
.footer-panel--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.footer-brand__logo {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 1.15rem;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.25s ease;
}

/* Gold ring on pseudo-element so the image is never clipped by border-radius */
.footer-brand__logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2.5px solid var(--brand-gold, #f59e0b);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 2;
}

.footer-brand__logo:hover::before {
  border-color: #fbbf24;
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.5),
    0 10px 28px rgba(245, 158, 11, 0.2);
}

.footer-brand__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 768px) {
  .footer-brand__logo {
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
  }

  .footer-brand__logo::before {
    border-width: 3px;
  }
}

.footer-brand__text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1rem;
  max-width: 100%;
}

.footer-panel--brand .footer-stats {
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.footer-panel--newsletter .footer-social {
  justify-content: center;
  margin-top: 0.35rem;
}

.footer-social__heading {
  margin: 1rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  text-align: center;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-stat {
  flex: 1;
  min-width: 4.5rem;
  padding: 0.5rem 0.55rem;
  text-align: center;
  border-radius: 0.65rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-stat__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #e0e7ff;
  line-height: 1.2;
}

.footer-stat__label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-top: 0.15rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social__link:hover {
  transform: translateY(-3px);
  color: #fff;
  background: #4f46e5;
  border-color: #6366f1;
}

.footer-social__link--youtube:hover {
  background: #dc2626;
  border-color: #ef4444;
}

.footer-social__link--insta:hover {
  background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
  border-color: transparent;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a i {
  font-size: 0.55rem;
  color: #6366f1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #e0e7ff;
  transform: translateX(4px);
}

.footer-links a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.footer-newsletter__desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
}

.footer-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-newsletter__field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter__field:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.footer-newsletter__field i {
  color: #64748b;
  font-size: 0.9rem;
}

.footer-newsletter__field input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0;
  font-size: 0.84rem;
  color: #f8fafc;
  background: transparent;
  border: none;
  outline: none;
}

.footer-newsletter__field input::placeholder {
  color: #64748b;
}

.footer-newsletter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.footer-newsletter__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.footer-newsletter__msg {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #34d399;
}

.footer-newsletter__note {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  color: #64748b;
}

.footer-ruler {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
  margin: 1.75rem 0 1.25rem;
  padding: 0.65rem 0.25rem 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-ruler span {
  position: relative;
  padding-top: 0.5rem;
}

.footer-ruler span:nth-child(1) { color: #fbbf24; }
.footer-ruler span:nth-child(2) { color: #f59e0b; }
.footer-ruler span:nth-child(3) { color: #fb923c; }
.footer-ruler span:nth-child(4) { color: #f472b6; }
.footer-ruler span:nth-child(5) { color: #e879f9; }
.footer-ruler span:nth-child(6) { color: #c084fc; }
.footer-ruler span:nth-child(7) { color: #a78bfa; }
.footer-ruler span:nth-child(8) { color: #818cf8; }

.footer-ruler span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.footer-bottom__copy #yearNow {
  color: #fbbf24;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom__copy {
  color: #64748b;
}

.footer-bottom__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.footer-bottom__nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom__nav a:hover {
  color: #c4b5fd;
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  font-weight: 600;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer-back-top:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

/* Floating scroll-to-top */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #6d28d9);
  box-shadow: 0 10px 28px -8px rgba(99, 102, 241, 0.55);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) scale(0.9);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.scroll-top-btn--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  box-shadow: 0 14px 32px -6px rgba(124, 58, 237, 0.6);
  transform: translateY(-2px) scale(1.08);
}

.scroll-top-btn--visible:hover {
  transform: translateY(-2px) scale(1.08);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.scroll-top-btn .icon-lucide {
  width: 1.25rem;
  height: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn {
    transition: opacity 0.15s ease;
  }

  .scroll-top-btn:hover,
  .scroll-top-btn--visible:hover {
    transform: none;
  }
}

/* Legal pages (cookie policy, privacy, terms) */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 1rem;
}

.legal-header__inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-header__inner--wide {
  max-width: 72rem;
  flex-wrap: wrap;
}

.legal-header__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  order: 3;
  width: 100%;
}

@media (min-width: 768px) {
  .legal-header__inner--wide {
    flex-wrap: nowrap;
  }

  .legal-header__tabs {
    order: 0;
    width: auto;
    flex: 1;
    justify-content: center;
    margin: 0 0.5rem;
  }
}

.legal-pill {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.legal-pill:hover {
  color: #e0e7ff;
  border-color: rgba(165, 180, 252, 0.45);
}

.legal-pill.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 14px -4px rgba(99, 102, 241, 0.65);
}

.legal-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-hero {
  padding: 2.25rem 1.25rem 2rem;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-hero__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.legal-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(165, 180, 252, 0.35);
}

.legal-hero__icon .icon-lucide {
  width: 1.5rem;
  height: 1.5rem;
}

.legal-hero .legal-title {
  color: #f8fafc;
}

.legal-hero .legal-meta {
  color: #94a3b8;
}

.legal-hero .legal-lead {
  margin-bottom: 0;
  max-width: 42rem;
  color: #cbd5e1;
}

.legal-hero .legal-lead a {
  color: #a5b4fc;
}

.legal-main {
  padding: 2rem 1.25rem 3.5rem;
}

.legal-layout {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    align-items: start;
  }
}

.legal-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .legal-sidebar {
    display: block;
    position: sticky;
    top: 5.5rem;
  }
}

.legal-sidebar__box {
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark .legal-sidebar__box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(30, 27, 75, 0.35));
  border-color: rgba(129, 140, 248, 0.25);
}

.legal-sidebar__title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4338ca;
}

.dark .legal-sidebar__title {
  color: #c7d2fe;
}

.legal-sidebar ol {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.65;
}

.legal-sidebar a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4f46e5;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-sidebar a:hover,
.legal-sidebar a.is-active {
  color: #312e81;
  border-left-color: #6366f1;
}

.dark .legal-sidebar a {
  color: #a5b4fc;
}

.dark .legal-sidebar a:hover,
.dark .legal-sidebar a.is-active {
  color: #e0e7ff;
  border-left-color: #818cf8;
}

.legal-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  border-left: 4px solid #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.dark .legal-callout {
  background: rgba(99, 102, 241, 0.18);
}

.legal-callout__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #312e81;
}

.dark .legal-callout__title {
  color: #e0e7ff;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-callout--tip {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.dark .legal-callout--tip {
  background: rgba(16, 185, 129, 0.15);
}

.legal-cards {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 640px) {
  .legal-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.legal-card {
  padding: 1.1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.65);
}

.dark .legal-card {
  border-color: rgba(71, 85, 105, 0.55);
  background: rgba(15, 23, 42, 0.45);
}

.legal-card__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.15);
}

.legal-card__badge--functional {
  color: #047857;
  background: rgba(16, 185, 129, 0.15);
}

.legal-card__badge--third {
  color: #b45309;
  background: rgba(245, 158, 11, 0.15);
}

.legal-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.dark .legal-card h3 {
  color: #f1f5f9;
}

.legal-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.dark .legal-card p {
  color: #94a3b8;
}

.legal-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.dark .legal-related {
  border-top-color: rgba(71, 85, 105, 0.55);
}

.legal-related__title {
  margin: 0 0 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.dark .legal-related__title {
  color: #f1f5f9;
}

.legal-related__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .legal-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.legal-related__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  border-radius: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.04));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.legal-related__link:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 24px -12px rgba(99, 102, 241, 0.45);
}

.legal-related__link strong {
  font-size: 0.95rem;
  color: #312e81;
}

.dark .legal-related__link strong {
  color: #e0e7ff;
}

.legal-related__link span {
  font-size: 0.8rem;
  color: #64748b;
}

.dark .legal-related__link span {
  color: #94a3b8;
}

.legal-related__link.is-current {
  pointer-events: none;
  border-color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.12));
}

.legal-prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
}

.dark .legal-prose h3 {
  color: #e2e8f0;
}

.legal-footer__inner {
  max-width: 72rem;
}

.legal-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
}

.legal-header__logo {
  width: auto;
  height: 2.5rem;
  max-width: 3.5rem;
  object-fit: contain;
  object-position: center center;
  border-radius: 0.5rem;
}

.legal-header__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.legal-header__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c7d2fe;
  text-decoration: none;
  border-radius: 9999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.legal-header__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.legal-main {
  flex: 1;
  padding: 2.5rem 1.25rem 3.5rem;
}

.legal-main__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6366f1;
}

.dark .legal-eyebrow {
  color: #a5b4fc;
}

.legal-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

.dark .legal-title {
  color: #f1f5f9;
}

.legal-meta {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
}

.dark .legal-meta {
  color: #94a3b8;
}

.legal-lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
}

.dark .legal-lead {
  color: #cbd5e1;
}

.legal-toc {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark .legal-toc {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(30, 27, 75, 0.4));
  border-color: rgba(129, 140, 248, 0.25);
}

.legal-toc__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #312e81;
}

.dark .legal-toc__title {
  color: #e0e7ff;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

.legal-toc a {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.dark .legal-toc a {
  color: #a5b4fc;
}

.legal-prose section {
  margin-bottom: 2.25rem;
}

.legal-prose h2 {
  margin: 0 0 0.85rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1e293b;
}

.dark .legal-prose h2 {
  color: #f1f5f9;
}

.legal-prose p,
.legal-prose li {
  line-height: 1.75;
  color: #475569;
  text-align: justify;
}

.dark .legal-prose p,
.dark .legal-prose li {
  color: #cbd5e1;
}

.legal-prose ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
  list-style-type: disc;
  list-style-position: outside;
}

.legal-prose a {
  color: #4f46e5;
  font-weight: 500;
}

.legal-prose a:hover {
  text-decoration: underline;
}

.dark .legal-prose a {
  color: #a5b4fc;
}

.legal-prose code {
  padding: 0.1rem 0.35rem;
  font-size: 0.88em;
  border-radius: 0.25rem;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.dark .legal-prose code {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.dark .legal-table-wrap {
  border-color: rgba(71, 85, 105, 0.6);
}

.legal-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.legal-table th {
  font-weight: 700;
  color: #1e293b;
  background: rgba(241, 245, 249, 0.8);
}

.dark .legal-table th {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.6);
}

.legal-table td {
  color: #475569;
}

.dark .legal-table td {
  color: #cbd5e1;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-footer {
  margin-top: auto;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.04);
}

.dark .legal-footer {
  border-top-color: rgba(71, 85, 105, 0.5);
  background: rgba(0, 0, 0, 0.2);
}

.legal-footer__inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.dark .legal-footer__copy {
  color: #94a3b8;
}

.legal-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.legal-footer__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
}

.legal-footer__nav a:hover {
  text-decoration: underline;
}

.dark .legal-footer__nav a {
  color: #a5b4fc;
}

.legal-footer__nav a[aria-current="page"] {
  color: #312e81;
  text-decoration: underline;
}

.dark .legal-footer__nav a[aria-current="page"] {
  color: #e0e7ff;
}

/* Distinct visual systems by major category */
#timelines .trending-card {
  border-radius: 1.35rem;
  border-top: 4px solid #6366f1;
  box-shadow: 0 14px 34px -18px rgba(79, 70, 229, 0.45);
}

#timelines .trending-card__hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.08));
}

#india .india-card {
  border-radius: 1.6rem;
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 16px 36px -20px rgba(234, 88, 12, 0.35);
}

#india .india-card__hero {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.2), rgba(16, 185, 129, 0.12));
}

#technology .tech-card {
  border-radius: 1.35rem;
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(1px);
}

#technology .tech-card__icon {
  border-radius: 1rem;
}

.tech-index-links__group {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.25);
}

.dark .tech-index-links__group {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(129, 140, 248, 0.28);
}

.tech-index-links__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4338ca;
}

.dark .tech-index-links__heading {
  color: #a5b4fc;
}

.tech-index-links__heading .icon-lucide {
  width: 1rem;
  height: 1rem;
}

.tech-index-links__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tech-index-links__list a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.tech-index-links__list a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.dark .tech-index-links__list a {
  color: #cbd5e1;
}

.dark .tech-index-links__list a:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

/* Global reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-glow-soft,
  .animate-float-slow,
  .animate-slide-up-soft,
  .animate-pulse-glow,
  .animate-pulse-slow,
  .animate-pulse,
  .future-card,
  .impact-stat-card,
  .trending-card__rank i {
    animation: none !important;
  }

  .future-card:hover,
  .trending-card:hover,
  .india-card:hover,
  .tech-card:hover,
  .compare-card:hover,
  .feed-card:hover {
    transform: none !important;
  }

  #future-world::before {
    animation: none !important;
  }
}

/* Mobile phones timeline — story overview */
.phone-story-overview {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.9) 48%, rgba(245, 243, 255, 0.92) 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 50px -28px rgba(79, 70, 229, 0.35);
}

.dark .phone-story-overview {
  border-color: rgba(129, 140, 248, 0.3);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 27, 75, 0.55) 50%, rgba(15, 23, 42, 0.88) 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 24px 56px -24px rgba(99, 102, 241, 0.25);
}

.phone-story-overview__glow {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.dark .phone-story-overview__glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
}

.phone-story-overview__inner {
  position: relative;
  padding: 1.35rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .phone-story-overview__inner {
    padding: 1.75rem 1.75rem 2rem;
  }
}

.phone-story-overview__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.dark .phone-story-overview__eyebrow {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.35);
}

.phone-story-overview__title {
  margin: 0.85rem 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

@media (min-width: 640px) {
  .phone-story-overview__title {
    font-size: 2rem;
  }
}

.dark .phone-story-overview__title {
  color: #f8fafc;
}

.phone-story-overview__title-accent {
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dark .phone-story-overview__title-accent {
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
}

.phone-story-overview__lead {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
  max-width: 52rem;
}

.phone-story-overview__lead + .phone-story-overview__lead {
  margin-top: 0.65rem;
}

.dark .phone-story-overview__lead {
  color: #cbd5e1;
}

.phone-story-overview__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.35rem;
}

@media (min-width: 640px) {
  .phone-story-overview__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.phone-story-overview__stat {
  padding: 0.85rem 0.75rem;
  border-radius: 0.85rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.dark .phone-story-overview__stat {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(71, 85, 105, 0.55);
}

.phone-story-overview__stat-icon {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 auto;
  color: #6366f1;
}

.dark .phone-story-overview__stat-icon {
  color: #a5b4fc;
}

.phone-story-overview__stat-value {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.dark .phone-story-overview__stat-value {
  color: #f1f5f9;
}

.phone-story-overview__stat-label {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.dark .phone-story-overview__stat-label {
  color: #94a3b8;
}

.phone-story-overview__panels {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .phone-story-overview__panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.phone-story-overview__panel {
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.dark .phone-story-overview__panel {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(71, 85, 105, 0.55);
}

.phone-story-overview__panel--india {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.9), rgba(255, 255, 255, 0.7));
}

.dark .phone-story-overview__panel--india {
  border-color: rgba(251, 146, 60, 0.35);
  background: linear-gradient(135deg, rgba(67, 20, 7, 0.35), rgba(15, 23, 42, 0.5));
}

.phone-story-overview__panel-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4338ca;
}

.dark .phone-story-overview__panel-title {
  color: #c7d2fe;
}

.phone-story-overview__panel--india .phone-story-overview__panel-title {
  color: #c2410c;
}

.dark .phone-story-overview__panel--india .phone-story-overview__panel-title {
  color: #fdba74;
}

.phone-story-overview__panel-list {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
}

.dark .phone-story-overview__panel-list {
  color: #cbd5e1;
}

/* Mobile phones timeline page — layout & scroll offsets */
.phone-timeline-page {
  --phone-site-header-h: 4.75rem;
  --phone-era-nav-h: 7.25rem;
  --phone-scroll-offset: calc(var(--phone-site-header-h) + var(--phone-era-nav-h) + 0.75rem);
  scroll-padding-top: var(--phone-scroll-offset);
}

.phone-timeline-main {
  position: relative;
  z-index: 1;
}

/* Mobile phones timeline page — hide main header on scroll down */
.phone-timeline-header {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}

.phone-timeline-header.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
  box-shadow: none;
}

/* Mobile phones timeline page — sticky 3×2 era nav */
.phone-timeline-sticky-nav {
  position: sticky;
  top: var(--phone-site-header-h, 4.75rem);
  z-index: 40;
  transition: top 0.28s ease;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.dark .phone-timeline-sticky-nav {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(71, 85, 105, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.phone-timeline-sticky-nav__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 0.5rem;
  overflow: visible;
}

.phone-timeline-sticky-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.65rem;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.18);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dark .phone-timeline-sticky-nav__link {
  border-color: rgba(129, 140, 248, 0.22);
}

.phone-timeline-sticky-nav__title {
  display: block;
}

.phone-timeline-sticky-nav__years {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Anchor offset: site header + sticky era nav */
.phone-timeline-page .phone-timeline-content [id^="era-"],
.phone-timeline-page .phone-timeline-content #story-overview,
.phone-timeline-page .phone-timeline-content #phone-spec-tables,
.phone-timeline-page .phone-timeline-content #spec-table-1,
.phone-timeline-page .phone-timeline-content #timeline-summary,
.phone-timeline-page .phone-timeline-content #phone-balanced,
.phone-timeline-page .phone-timeline-content #india-mobile {
  scroll-margin-top: var(--phone-scroll-offset, 12rem);
}

body.site-header-hidden.phone-timeline-page {
  --phone-site-header-h: 0px;
  --phone-scroll-offset: calc(var(--phone-era-nav-h, 7.25rem) + 0.75rem);
}

body.site-header-hidden .phone-timeline-sticky-nav {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .phone-timeline-header,
  .phone-timeline-sticky-nav {
    transition: none;
  }
}

@media (min-width: 640px) {
  .phone-timeline-sticky-nav__inner {
    gap: 0.6rem;
  }

  .phone-timeline-sticky-nav__link {
    font-size: 0.75rem;
    min-height: 3.5rem;
    padding: 0.5rem 0.65rem;
  }

  .phone-timeline-sticky-nav__years {
    font-size: 0.6875rem;
  }
}

@media (min-width: 1024px) {
  .phone-timeline-sticky-nav__link {
    font-size: 0.8125rem;
    min-height: 3.75rem;
    padding: 0.55rem 0.75rem;
  }

  .phone-timeline-sticky-nav__years {
    font-size: 0.75rem;
  }
}

.phone-timeline-sticky-nav__link:hover,
.phone-timeline-sticky-nav__link.is-active {
  color: #fff;
  background: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.dark .phone-timeline-sticky-nav__link {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.22);
}

.dark .phone-timeline-sticky-nav__link:hover,
.dark .phone-timeline-sticky-nav__link.is-active {
  color: #1e1b4b;
  background: #a5b4fc;
  box-shadow: 0 2px 8px rgba(165, 180, 252, 0.25);
}

.phone-timeline-content > * + * {
  margin-top: 0;
}

/* Force visible spacing for newly added mobile timeline sections */
.phone-timeline-page .phone-timeline-content #battery-charging-evolution,
.phone-timeline-page .phone-timeline-content #os-keyboard-era,
.phone-timeline-page .phone-timeline-content #durability-display-connectivity,
.phone-timeline-page .phone-timeline-content #mobile-gaming-device-convergence,
.phone-timeline-page .phone-timeline-content #market-consumer-rights,
.phone-timeline-page .phone-timeline-content #phone-quiz,
.phone-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #battery-charging-evolution,
  .phone-timeline-page .phone-timeline-content #os-keyboard-era,
  .phone-timeline-page .phone-timeline-content #durability-display-connectivity,
  .phone-timeline-page .phone-timeline-content #mobile-gaming-device-convergence,
  .phone-timeline-page .phone-timeline-content #market-consumer-rights,
  .phone-timeline-page .phone-timeline-content #phone-quiz,
  .phone-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Milestone era cards — vintage → modern progression */
.milestone-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

@media (min-width: 640px) {
  .milestone-card {
    padding: 1.5rem 1.65rem;
    border-radius: 1.15rem;
  }
}

.milestone-card__head,
.milestone-card__title,
.milestone-card__list,
.milestone-card__callout,
.milestone-card__closing {
  position: relative;
  z-index: 1;
}

.milestone-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.milestone-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.milestone-card__years {
  font-size: 0.8125rem;
  font-weight: 600;
}

.milestone-card__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .milestone-card__title {
    font-size: 1.55rem;
  }
}

.milestone-card__list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.milestone-card__list li + li {
  margin-top: 0.45rem;
}

.milestone-card__subtitle {
  position: relative;
  z-index: 1;
  margin: 1.35rem 0 0.5rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.milestone-card__sublead {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.milestone-card__sublead--compact {
  margin-top: 0.85rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.milestone-card--telephone .milestone-card__subtitle {
  font-family: "Playfair Display", Georgia, serif;
  border-top-color: rgba(139, 105, 20, 0.35);
}

.milestone-card--telephone .milestone-card__subtitle--tech {
  color: #8b6914;
}

.milestone-card--telephone .milestone-card__subtitle--features {
  color: #7c2d12;
}

.dark .milestone-card--telephone .milestone-card__subtitle--tech {
  color: #e8c96a;
  border-top-color: rgba(201, 162, 39, 0.35);
}

.dark .milestone-card--telephone .milestone-card__subtitle--features {
  color: #fca5a5;
  border-top-color: rgba(248, 113, 113, 0.35);
}

.milestone-card--telephone .milestone-card__sublead {
  color: #5a4a38;
}

.milestone-card--telephone .milestone-card__sublead--operation {
  color: #3d5c2e;
  font-weight: 700;
}

.dark .milestone-card--telephone .milestone-card__sublead {
  color: #c9bcaa;
}

.dark .milestone-card--telephone .milestone-card__sublead--operation {
  color: #a3e635;
}

.milestone-card--telephone .milestone-term--lead {
  color: #9a3412;
}

.dark .milestone-card--telephone .milestone-term--lead {
  color: #fdba74;
}

/* Telephone era — distinct label colors per bullet */
.milestone-card--telephone .milestone-card__list--tech li:nth-child(1) strong { color: #9a3412; }
.milestone-card--telephone .milestone-card__list--tech li:nth-child(2) strong { color: #854d0e; }
.milestone-card--telephone .milestone-card__list--tech li:nth-child(3) strong { color: #6b4423; }
.milestone-card--telephone .milestone-card__list--tech li:nth-child(4) strong { color: #5c4033; }
.milestone-card--telephone .milestone-card__list--tech li:nth-child(5) strong { color: #7c5c0a; }
.milestone-card--telephone .milestone-card__list--tech li:nth-child(6) strong { color: #4a5d23; }
.milestone-card--telephone .milestone-card__list--tech li:nth-child(7) strong { color: #1e4d6b; }

.milestone-card--telephone .milestone-card__list--feat li:nth-child(1) strong { color: #7c2d12; }
.milestone-card--telephone .milestone-card__list--feat li:nth-child(2) strong { color: #6b4423; }
.milestone-card--telephone .milestone-card__list--feat li:nth-child(3) strong { color: #5c4a32; }
.milestone-card--telephone .milestone-card__list--feat li:nth-child(4) strong { color: #8b4513; }
.milestone-card--telephone .milestone-card__list--feat li:nth-child(5) strong { color: #9a3412; }
.milestone-card--telephone .milestone-card__list--feat li:nth-child(6) strong { color: #4a5d23; }
.milestone-card--telephone .milestone-card__list--feat li:nth-child(7) strong { color: #1e3a5f; }
.milestone-card--telephone .milestone-card__list--feat li:nth-child(8) strong { color: #57534e; }

.dark .milestone-card--telephone .milestone-card__list--tech li:nth-child(1) strong { color: #fb923c; }
.dark .milestone-card--telephone .milestone-card__list--tech li:nth-child(2) strong { color: #fbbf24; }
.dark .milestone-card--telephone .milestone-card__list--tech li:nth-child(3) strong { color: #d6b896; }
.dark .milestone-card--telephone .milestone-card__list--tech li:nth-child(4) strong { color: #c4b59a; }
.dark .milestone-card--telephone .milestone-card__list--tech li:nth-child(5) strong { color: #fde047; }
.dark .milestone-card--telephone .milestone-card__list--tech li:nth-child(6) strong { color: #bef264; }
.dark .milestone-card--telephone .milestone-card__list--tech li:nth-child(7) strong { color: #7dd3fc; }

.dark .milestone-card--telephone .milestone-card__list--feat li:nth-child(1) strong { color: #fca5a5; }
.dark .milestone-card--telephone .milestone-card__list--feat li:nth-child(2) strong { color: #d6b896; }
.dark .milestone-card--telephone .milestone-card__list--feat li:nth-child(3) strong { color: #e8dcc8; }
.dark .milestone-card--telephone .milestone-card__list--feat li:nth-child(4) strong { color: #fdba74; }
.dark .milestone-card--telephone .milestone-card__list--feat li:nth-child(5) strong { color: #fb923c; }
.dark .milestone-card--telephone .milestone-card__list--feat li:nth-child(6) strong { color: #bef264; }
.dark .milestone-card--telephone .milestone-card__list--feat li:nth-child(7) strong { color: #93c5fd; }
.dark .milestone-card--telephone .milestone-card__list--feat li:nth-child(8) strong { color: #a8a29e; }

.milestone-card--telephone .milestone-card__list strong {
  font-weight: 700;
}

.milestone-card--telephone .milestone-card__list:not(.milestone-card__list--tech):not(.milestone-card__list--ops):not(.milestone-card__list--feat) strong {
  color: #6b4e12;
}

.dark .milestone-card--telephone .milestone-card__list:not(.milestone-card__list--tech):not(.milestone-card__list--ops):not(.milestone-card__list--feat) strong {
  color: #e8c96a;
}

/* Shared: Technology Used / Features section headings */
.milestone-card__subtitle--tech,
.milestone-card__subtitle--features {
  font-weight: 700;
}

.milestone-card__list--tech strong,
.milestone-card__list--feat strong {
  font-weight: 700;
}

/* Era cards — subtitle dividers on dark / tinted backgrounds */
.milestone-card--brick .milestone-card__subtitle,
.milestone-card--present .milestone-card__subtitle,
.milestone-card--future .milestone-card__subtitle {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.milestone-card--retro .milestone-card__subtitle {
  border-top-color: rgba(27, 67, 50, 0.25);
}

.dark .milestone-card--retro .milestone-card__subtitle {
  border-top-color: rgba(134, 239, 172, 0.25);
}

.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__subtitle {
  border-top-color: rgba(124, 58, 237, 0.25);
}

.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__subtitle {
  border-top-color: rgba(167, 139, 250, 0.3);
}

/* —— Brick era (1973–1989) —— */
.milestone-card--brick .milestone-card__subtitle--tech { color: #fbbf24; }
.milestone-card--brick .milestone-card__subtitle--features { color: #6ee7b7; }
.milestone-card--brick .milestone-card__sublead { color: #9ca3af; font-family: "DM Sans", system-ui, sans-serif; }

.milestone-card--brick .milestone-card__list--tech li:nth-child(1) strong { color: #fbbf24; }
.milestone-card--brick .milestone-card__list--tech li:nth-child(2) strong { color: #f59e0b; }
.milestone-card--brick .milestone-card__list--tech li:nth-child(3) strong { color: #fcd34d; }
.milestone-card--brick .milestone-card__list--tech li:nth-child(4) strong { color: #d97706; }
.milestone-card--brick .milestone-card__list--tech li:nth-child(5) strong { color: #a3e635; }
.milestone-card--brick .milestone-card__list--tech li:nth-child(6) strong { color: #86efac; }

.milestone-card--brick .milestone-card__list--feat li:nth-child(1) strong { color: #6ee7b7; }
.milestone-card--brick .milestone-card__list--feat li:nth-child(2) strong { color: #34d399; }
.milestone-card--brick .milestone-card__list--feat li:nth-child(3) strong { color: #a7f3d0; }
.milestone-card--brick .milestone-card__list--feat li:nth-child(4) strong { color: #fbbf24; }
.milestone-card--brick .milestone-card__list--feat li:nth-child(5) strong { color: #fde047; }
.milestone-card--brick .milestone-card__list--feat li:nth-child(6) strong { color: #fdba74; }

.milestone-card--brick .milestone-card__list:not(.milestone-card__list--tech):not(.milestone-card__list--feat) strong {
  color: #fbbf24;
}

/* —— Retro / feature phone era (1990–2006) —— */
.milestone-card--retro .milestone-card__subtitle--tech { color: #1b4332; }
.milestone-card--retro .milestone-card__subtitle--features { color: #15803d; }
.milestone-card--retro .milestone-card__sublead { color: #475569; }

.dark .milestone-card--retro .milestone-card__subtitle--tech { color: #86efac; }
.dark .milestone-card--retro .milestone-card__subtitle--features { color: #4ade80; }
.dark .milestone-card--retro .milestone-card__sublead { color: #cbd5e1; }

.milestone-card--retro .milestone-card__list--tech li:nth-child(1) strong { color: #166534; }
.milestone-card--retro .milestone-card__list--tech li:nth-child(2) strong { color: #15803d; }
.milestone-card--retro .milestone-card__list--tech li:nth-child(3) strong { color: #1d4ed8; }
.milestone-card--retro .milestone-card__list--tech li:nth-child(4) strong { color: #7c3aed; }
.milestone-card--retro .milestone-card__list--tech li:nth-child(5) strong { color: #c2410c; }
.milestone-card--retro .milestone-card__list--tech li:nth-child(6) strong { color: #0e7490; }

.milestone-card--retro .milestone-card__list--feat li:nth-child(1) strong { color: #15803d; }
.milestone-card--retro .milestone-card__list--feat li:nth-child(2) strong { color: #a16207; }
.milestone-card--retro .milestone-card__list--feat li:nth-child(3) strong { color: #be185d; }
.milestone-card--retro .milestone-card__list--feat li:nth-child(4) strong { color: #6d28d9; }
.milestone-card--retro .milestone-card__list--feat li:nth-child(5) strong { color: #b45309; }
.milestone-card--retro .milestone-card__list--feat li:nth-child(6) strong { color: #047857; }
.milestone-card--retro .milestone-card__list--feat li:nth-child(7) strong { color: #1e40af; }

.dark .milestone-card--retro .milestone-card__list--tech li:nth-child(n) strong,
.dark .milestone-card--retro .milestone-card__list--feat li:nth-child(n) strong {
  filter: brightness(1.35);
}

.milestone-card--retro .milestone-card__list:not(.milestone-card__list--tech):not(.milestone-card__list--feat) strong {
  color: #1b4332;
}

.dark .milestone-card--retro .milestone-card__list:not(.milestone-card__list--tech):not(.milestone-card__list--feat) strong {
  color: #86efac;
}

/* —— Smartphone revolution (2007–2015) —— */
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__subtitle--tech { color: #6d28d9; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__subtitle--features { color: #4f46e5; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__sublead { color: #64748b; }

.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__subtitle--tech { color: #c4b5fd; }
.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__subtitle--features { color: #a5b4fc; }
.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__sublead { color: #cbd5e1; }

.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--tech li:nth-child(1) strong { color: #7c3aed; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--tech li:nth-child(2) strong { color: #6366f1; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--tech li:nth-child(3) strong { color: #4f46e5; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--tech li:nth-child(4) strong { color: #2563eb; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--tech li:nth-child(5) strong { color: #0d9488; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--tech li:nth-child(6) strong { color: #9333ea; }

.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--feat li:nth-child(1) strong { color: #6d28d9; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--feat li:nth-child(2) strong { color: #4f46e5; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--feat li:nth-child(3) strong { color: #db2777; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--feat li:nth-child(4) strong { color: #059669; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--feat li:nth-child(5) strong { color: #0284c7; }
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--feat li:nth-child(6) strong { color: #ea580c; }

.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--tech li:nth-child(n) strong,
.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list--feat li:nth-child(n) strong {
  filter: brightness(1.4);
}

/* —— Modern present era (2016+) —— */
.milestone-card--present .milestone-card__subtitle--tech { color: #f9a8d4; }
.milestone-card--present .milestone-card__subtitle--features { color: #c4b5fd; }
.milestone-card--present .milestone-card__sublead { color: #e2e8f0; }

.milestone-card--present .milestone-card__list--tech li:nth-child(1) strong { color: #f472b6; }
.milestone-card--present .milestone-card__list--tech li:nth-child(2) strong { color: #c084fc; }
.milestone-card--present .milestone-card__list--tech li:nth-child(3) strong { color: #a78bfa; }
.milestone-card--present .milestone-card__list--tech li:nth-child(4) strong { color: #f9a8d4; }
.milestone-card--present .milestone-card__list--tech li:nth-child(5) strong { color: #e879f9; }
.milestone-card--present .milestone-card__list--tech li:nth-child(6) strong { color: #67e8f9; }

.milestone-card--present .milestone-card__list--feat li:nth-child(1) strong { color: #fda4af; }
.milestone-card--present .milestone-card__list--feat li:nth-child(2) strong { color: #d8b4fe; }
.milestone-card--present .milestone-card__list--feat li:nth-child(3) strong { color: #fde047; }
.milestone-card--present .milestone-card__list--feat li:nth-child(4) strong { color: #86efac; }
.milestone-card--present .milestone-card__list--feat li:nth-child(5) strong { color: #7dd3fc; }
.milestone-card--present .milestone-card__list--feat li:nth-child(6) strong { color: #f0abfc; }

.milestone-card--present .milestone-card__list:not(.milestone-card__list--tech):not(.milestone-card__list--feat) strong {
  color: #f9a8d4;
}

/* —— Future era —— */
.milestone-card--future .milestone-card__subtitle--tech { color: #22d3ee; }
.milestone-card--future .milestone-card__subtitle--features { color: #67e8f9; }
.milestone-card--future .milestone-card__sublead { color: #a5f3fc; }

.milestone-card--future .milestone-card__list--tech li:nth-child(1) strong { color: #22d3ee; }
.milestone-card--future .milestone-card__list--tech li:nth-child(2) strong { color: #38bdf8; }
.milestone-card--future .milestone-card__list--tech li:nth-child(3) strong { color: #a78bfa; }
.milestone-card--future .milestone-card__list--tech li:nth-child(4) strong { color: #2dd4bf; }
.milestone-card--future .milestone-card__list--tech li:nth-child(5) strong { color: #818cf8; }
.milestone-card--future .milestone-card__list--tech li:nth-child(6) strong { color: #34d399; }

.milestone-card--future .milestone-card__list--feat li:nth-child(1) strong { color: #67e8f9; }
.milestone-card--future .milestone-card__list--feat li:nth-child(2) strong { color: #c4b5fd; }
.milestone-card--future .milestone-card__list--feat li:nth-child(3) strong { color: #7dd3fc; }
.milestone-card--future .milestone-card__list--feat li:nth-child(4) strong { color: #6ee7b7; }
.milestone-card--future .milestone-card__list--feat li:nth-child(5) strong { color: #a5b4fc; }
.milestone-card--future .milestone-card__list--feat li:nth-child(6) strong { color: #e0e7ff; }

.milestone-card--future .milestone-card__list:not(.milestone-card__list--tech):not(.milestone-card__list--feat) strong {
  color: #67e8f9;
}

.milestone-card__callout {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
}

.milestone-card__callout-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.milestone-card__callout-text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.milestone-card__closing {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid transparent;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.55;
}

/* —— Vintage: Early telephone (1876–1970) —— */
.milestone-card--telephone {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  background-color: #f4e8d4;
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(180, 140, 90, 0.2) 0%, transparent 55%),
    linear-gradient(165deg, #faf3e6 0%, #ebe0c8 45%, #dcc9a8 100%);
  border-color: #b8956a;
  border-left: 6px solid #8b6914;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 24px rgba(92, 64, 35, 0.15);
}

.milestone-card--telephone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.dark .milestone-card--telephone {
  background-color: #2c2419;
  background-image: linear-gradient(165deg, #3d3226 0%, #2a2218 50%, #1f1812 100%);
  border-color: #6b5344;
  border-left-color: #c9a227;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.milestone-card--telephone .milestone-card__badge {
  border-radius: 2px;
  color: #5c4a32;
  background: rgba(139, 105, 20, 0.15);
  border: 1px solid rgba(139, 105, 20, 0.35);
  font-family: "Playfair Display", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dark .milestone-card--telephone .milestone-card__badge {
  color: #e8dcc8;
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.35);
}

.milestone-card--telephone .milestone-card__years {
  color: #7a6348;
  font-family: "Playfair Display", Georgia, serif;
}

.dark .milestone-card--telephone .milestone-card__years {
  color: #c4b59a;
}

.milestone-card--telephone .milestone-card__title {
  font-family: "Playfair Display", Georgia, serif;
  color: #3d2f1f;
  letter-spacing: 0.02em;
}

.dark .milestone-card--telephone .milestone-card__title {
  color: #f5ead8;
}

.milestone-card--telephone .milestone-card__list {
  color: #4a3c2a;
}

.dark .milestone-card--telephone .milestone-card__list {
  color: #d9cdb8;
}


/* —— Vintage: Brick phone era (1973–1989) —— */
.milestone-card--brick {
  font-family: "Share Tech Mono", "Courier New", monospace;
  background: linear-gradient(160deg, #3d3d3d 0%, #2a2a2a 40%, #1a1a1a 100%);
  border-color: #4a4a4a;
  border-left: 6px solid #c9a227;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.milestone-card--brick::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.06));
  pointer-events: none;
}

.dark .milestone-card--brick {
  background: linear-gradient(160deg, #2d2d2d 0%, #1c1c1c 100%);
  border-color: #525252;
}

.milestone-card--brick .milestone-card__badge {
  border-radius: 2px;
  color: #1a1a1a;
  background: #c9a227;
  border: 2px solid #8b6914;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.milestone-card--brick .milestone-card__years {
  color: #9ca3af;
  font-family: "DM Sans", system-ui, sans-serif;
}

.milestone-card--brick .milestone-card__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  color: #f3f4f6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
}

@media (min-width: 640px) {
  .milestone-card--brick .milestone-card__title {
    font-size: 1.4rem;
  }
}

.milestone-card--brick .milestone-card__list {
  color: #d1d5db;
  font-family: "DM Sans", system-ui, sans-serif;
}

.milestone-card--brick .milestone-card__list strong {
  color: #fbbf24;
}

.milestone-card--brick .milestone-card__callout {
  background: #0f0f0f;
  border: 2px solid #4b5563;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.milestone-card--brick .milestone-card__callout-label {
  color: #6ee7b7;
  font-family: "Share Tech Mono", monospace;
}

.milestone-card--brick .milestone-card__callout-text {
  color: #a7f3d0;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8125rem;
}

/* —— Retro: Feature phone era (1990–2006) —— */
.milestone-card--retro {
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(145deg, #e8ecef 0%, #d1d9e0 50%, #bcc6d0 100%);
  border-color: #94a3b8;
  border-left: 6px solid #1b4332;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    0 6px 20px rgba(27, 67, 50, 0.12);
}

.dark .milestone-card--retro {
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
  border-color: #4a5568;
  border-left-color: #48bb78;
}

.milestone-card--retro .milestone-card__badge {
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(180deg, #2d6a4f 0%, #1b4332 100%);
  border: 2px solid #081c15;
  box-shadow: 0 2px 0 #081c15;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.milestone-card--retro .milestone-card__years {
  color: #475569;
  font-weight: 700;
}

.dark .milestone-card--retro .milestone-card__years {
  color: #a0aec0;
}

.milestone-card--retro .milestone-card__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  color: #1b4332;
  letter-spacing: -0.02em;
}

.dark .milestone-card--retro .milestone-card__title {
  color: #9ae6b4;
}

.milestone-card--retro .milestone-card__list {
  color: #334155;
}

.dark .milestone-card--retro .milestone-card__list {
  color: #cbd5e1;
}

.milestone-card--retro .milestone-card__list strong {
  color: #1b4332;
}

.dark .milestone-card--retro .milestone-card__list strong {
  color: #68d391;
}

/* —— Modern: Smartphone revolution (2007–2015) —— */
.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) {
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 50%, #ede9fe 100%);
  border-color: rgba(139, 92, 246, 0.35);
  border-left: 6px solid #7c3aed;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1),
    0 12px 32px -8px rgba(124, 58, 237, 0.2);
}

.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #1e1b4b 100%);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 12px 36px -8px rgba(124, 58, 237, 0.35);
}

.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__badge {
  border-radius: 9999px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__years {
  color: #6d28d9;
  font-weight: 700;
}

.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__years {
  color: #c4b5fd;
}

.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  color: #4c1d95;
  letter-spacing: -0.03em;
}

.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__title {
  color: #ede9fe;
}

.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list {
  color: #475569;
}

.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list {
  color: #e2e8f0;
}

.milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list strong {
  color: #7c3aed;
}

.dark .milestone-card--modern-era:not(.milestone-card--present):not(.milestone-card--future) .milestone-card__list strong {
  color: #c4b5fd;
}

/* —— Modern: Present era (2016+) —— */
.milestone-card--present {
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
  border-color: rgba(217, 70, 239, 0.4);
  border-left: 6px solid #ec4899;
  box-shadow:
    0 0 0 1px rgba(236, 72, 153, 0.15),
    0 16px 40px -10px rgba(236, 72, 153, 0.25);
}

.milestone-card--present::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.milestone-card--present .milestone-card__badge {
  border-radius: 9999px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.45);
}

.milestone-card--present .milestone-card__years {
  color: #f9a8d4;
}

.milestone-card--present .milestone-card__title {
  font-weight: 800;
  color: #fdf4ff;
  letter-spacing: -0.03em;
}

.milestone-card--present .milestone-card__list {
  color: #e2e8f0;
}

.milestone-card--present .milestone-card__list strong {
  color: #f9a8d4;
}

/* —— Future era —— */
.milestone-card--future {
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(160deg, #020617 0%, #0c4a6e 35%, #164e63 70%, #020617 100%);
  border-color: rgba(34, 211, 238, 0.45);
  border-left: 6px solid #22d3ee;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.2),
    0 0 32px rgba(6, 182, 212, 0.15),
    0 16px 48px -12px rgba(6, 182, 212, 0.35);
}

.milestone-card--future::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(34, 211, 238, 0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: milestone-future-shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes milestone-future-shimmer {
  0%,
  100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -200% 0;
  }
}

.milestone-card--future .milestone-card__badge {
  border-radius: 9999px;
  color: #042f2e;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.milestone-card--future .milestone-card__years {
  color: #67e8f9;
}

.milestone-card--future .milestone-card__title {
  font-weight: 800;
  color: #ecfeff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.milestone-card--future .milestone-card__list {
  color: #cffafe;
}

.milestone-card--future .milestone-card__list strong {
  color: #22d3ee;
}

.milestone-card--future .milestone-card__closing {
  color: #a5f3fc;
  border-top-color: rgba(34, 211, 238, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .milestone-card--future::before {
    animation: none;
  }
}

.phone-table-card__scroll {
  max-height: none;
}

/* Phone timeline — specification comparison tables */
.phone-spec-tables {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.phone-spec-tables__hero {
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.06));
  box-shadow: 0 12px 40px -24px rgba(79, 70, 229, 0.35);
}

.dark .phone-spec-tables__hero {
  border-color: rgba(129, 140, 248, 0.3);
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.5), rgba(30, 27, 75, 0.35));
}

.phone-spec-tables__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.15);
}

.dark .phone-spec-tables__eyebrow {
  color: #c7d2fe;
}

.phone-spec-tables__title {
  margin: 0.75rem 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}

@media (min-width: 640px) {
  .phone-spec-tables__title {
    font-size: 2rem;
  }
}

.dark .phone-spec-tables__title {
  color: #f8fafc;
}

.phone-spec-tables__lead {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
  max-width: 52rem;
}

.dark .phone-spec-tables__lead {
  color: #cbd5e1;
}

.phone-spec-tables__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.phone-spec-tables__nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: #4338ca;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.25);
  transition: background 0.2s ease, color 0.2s ease;
}

.phone-spec-tables__nav-link:hover {
  color: #fff;
  background: #4f46e5;
}

.dark .phone-spec-tables__nav-link {
  color: #c7d2fe;
  background: rgba(30, 27, 75, 0.6);
  border-color: rgba(129, 140, 248, 0.35);
}

.dark .phone-spec-tables__nav-link:hover {
  color: #1e1b4b;
  background: #a5b4fc;
}

.phone-spec-tables__block {
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px -16px rgba(15, 23, 42, 0.12);
}

.dark .phone-spec-tables__block {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(71, 85, 105, 0.55);
}

.phone-spec-tables__block--v1 { border-top: 4px solid #64748b; }
.phone-spec-tables__block--v2 { border-top: 4px solid #1b4332; }
.phone-spec-tables__block--v3 { border-top: 4px solid #7c3aed; }
.phone-spec-tables__block--v4 { border-top: 4px solid #0891b2; }

.phone-spec-tables__block-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.phone-spec-tables__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.phone-spec-tables__table-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.dark .phone-spec-tables__table-title {
  color: #f1f5f9;
}

.phone-spec-tables__table-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.dark .phone-spec-tables__table-desc {
  color: #94a3b8;
}

.phone-spec-tables__scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6366f1;
}

.dark .phone-spec-tables__scroll-hint {
  color: #a5b4fc;
}

.phone-spec-tables__scroll-hint .icon-lucide {
  width: 0.9rem;
  height: 0.9rem;
}

.phone-spec-tables__scroll {
  margin-top: 0;
  border-radius: 0.65rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.phone-spec-table {
  min-width: 36rem;
}

.phone-spec-table--wide {
  min-width: 52rem;
}

.phone-spec-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.8125rem;
  vertical-align: bottom;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.35);
}

.phone-spec-table--cols-era thead th:nth-child(1) { background: #e2e8f0; color: #334155; }
.phone-spec-table--cols-era thead th:nth-child(2) { background: #d1fae5; color: #065f46; }
.phone-spec-table--cols-era thead th:nth-child(3) { background: #ede9fe; color: #5b21b6; }
.phone-spec-table--cols-era thead th:nth-child(4) { background: #fce7f3; color: #9d174d; }
.phone-spec-table--cols-era thead th:nth-child(5) { background: #cffafe; color: #0e7490; }

.dark .phone-spec-table--cols-era thead th:nth-child(1) { background: #334155; color: #e2e8f0; }
.dark .phone-spec-table--cols-era thead th:nth-child(2) { background: #064e3b; color: #6ee7b7; }
.dark .phone-spec-table--cols-era thead th:nth-child(3) { background: #4c1d95; color: #ddd6fe; }
.dark .phone-spec-table--cols-era thead th:nth-child(4) { background: #831843; color: #fbcfe8; }
.dark .phone-spec-table--cols-era thead th:nth-child(5) { background: #164e63; color: #a5f3fc; }

.phone-spec-table--cols-flagship thead th:nth-child(1) { background: #e2e8f0; color: #334155; }
.phone-spec-table--cols-flagship thead th:nth-child(2) { background: #fef3c7; color: #92400e; }
.phone-spec-table--cols-flagship thead th:nth-child(3) { background: #dbeafe; color: #1e40af; }
.phone-spec-table--cols-flagship thead th:nth-child(4) { background: #f3e8ff; color: #6b21a8; }

.dark .phone-spec-table--cols-flagship thead th:nth-child(1) { background: #334155; color: #e2e8f0; }
.dark .phone-spec-table--cols-flagship thead th:nth-child(2) { background: #78350f; color: #fde68a; }
.dark .phone-spec-table--cols-flagship thead th:nth-child(3) { background: #1e3a8a; color: #93c5fd; }
.dark .phone-spec-table--cols-flagship thead th:nth-child(4) { background: #581c87; color: #e9d5ff; }

.phone-spec-table--cols-decade thead th:nth-child(1) { background: #e0e7ff; color: #3730a3; }
.phone-spec-table--cols-camera thead th:nth-child(1) { background: #e0f2fe; color: #0369a1; }
.phone-spec-table--cols-camera thead th:nth-child(2) { background: #fce7f3; color: #9d174d; }
.phone-spec-table--cols-camera thead th:nth-child(3) { background: #ede9fe; color: #5b21b6; }

.phone-spec-table th[scope="row"] {
  font-weight: 700;
  color: #334155;
  background: rgba(241, 245, 249, 0.95);
  white-space: nowrap;
  font-size: 0.8125rem;
}

.dark .phone-spec-table th[scope="row"] {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
}

.phone-spec-table td {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.phone-spec-table tbody tr:nth-child(even) td,
.phone-spec-table tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(248, 250, 252, 0.9);
}

.dark .phone-spec-table tbody tr:nth-child(even) td,
.dark .phone-spec-table tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(30, 41, 59, 0.5);
}

.phone-spec-table tbody tr:hover td,
.phone-spec-table tbody tr:hover th[scope="row"] {
  background: rgba(99, 102, 241, 0.09);
}

.dark .phone-spec-table tbody tr:hover td,
.dark .phone-spec-table tbody tr:hover th[scope="row"] {
  background: rgba(99, 102, 241, 0.18);
}

/* Double-Edged Screen — enhanced */
.phone-balanced-enhanced {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.25rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(160deg, #fafafa 0%, #f1f5f9 50%, #fafafa 100%);
  box-shadow: 0 16px 48px -28px rgba(15, 23, 42, 0.2);
}

.dark .phone-balanced-enhanced {
  border-color: rgba(71, 85, 105, 0.6);
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.phone-balanced-enhanced__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(244, 63, 94, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.phone-balanced-enhanced__header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.phone-balanced-enhanced__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  background: rgba(148, 163, 184, 0.2);
}

.dark .phone-balanced-enhanced__eyebrow {
  color: #cbd5e1;
  background: rgba(71, 85, 105, 0.5);
}

.phone-balanced-enhanced__title {
  margin: 0.75rem 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}

@media (min-width: 640px) {
  .phone-balanced-enhanced__title {
    font-size: 2rem;
  }
}

.dark .phone-balanced-enhanced__title {
  color: #f8fafc;
}

.phone-balanced-enhanced__lead {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
}

.dark .phone-balanced-enhanced__lead {
  color: #94a3b8;
}

.phone-balanced-enhanced__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

@media (min-width: 768px) {
  .phone-balanced-enhanced__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.phone-balanced-enhanced__panel {
  padding: 1.15rem 1.2rem;
  border-radius: 0.9rem;
}

.phone-balanced-enhanced__panel--pro {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 24px -12px rgba(16, 185, 129, 0.25);
}

.dark .phone-balanced-enhanced__panel--pro {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.6));
  border-color: rgba(52, 211, 153, 0.35);
}

.phone-balanced-enhanced__panel--con {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.1), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(244, 63, 94, 0.3);
  box-shadow: 0 8px 24px -12px rgba(244, 63, 94, 0.2);
}

.dark .phone-balanced-enhanced__panel--con {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.12), rgba(15, 23, 42, 0.6));
  border-color: rgba(251, 113, 133, 0.35);
}

.phone-balanced-enhanced__panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.phone-balanced-enhanced__panel--pro .phone-balanced-enhanced__panel-title {
  color: #047857;
}

.phone-balanced-enhanced__panel--con .phone-balanced-enhanced__panel-title {
  color: #be123c;
}

.dark .phone-balanced-enhanced__panel--pro .phone-balanced-enhanced__panel-title {
  color: #6ee7b7;
}

.dark .phone-balanced-enhanced__panel--con .phone-balanced-enhanced__panel-title {
  color: #fda4af;
}

.phone-balanced-enhanced__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
}

.phone-balanced-enhanced__icon--pro {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
}

.phone-balanced-enhanced__icon--con {
  background: rgba(244, 63, 94, 0.15);
  color: #e11d48;
}

.phone-balanced-enhanced__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-balanced-enhanced__list li {
  position: relative;
  padding-left: 0;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
}

.phone-balanced-enhanced__list li:first-child {
  margin-top: 0;
}

.dark .phone-balanced-enhanced__list li {
  color: #cbd5e1;
}

.phone-balanced-enhanced__list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #1e293b;
}

.dark .phone-balanced-enhanced__list strong {
  color: #f1f5f9;
}

.phone-balanced-enhanced__panel--pro .phone-balanced-enhanced__list strong {
  color: #047857;
}

.phone-balanced-enhanced__panel--con .phone-balanced-enhanced__list strong {
  color: #be123c;
}

.dark .phone-balanced-enhanced__panel--pro .phone-balanced-enhanced__list strong {
  color: #6ee7b7;
}

.dark .phone-balanced-enhanced__panel--con .phone-balanced-enhanced__list strong {
  color: #fda4af;
}

.phone-balanced-enhanced__tip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1.15rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.35);
}

.dark .phone-balanced-enhanced__tip {
  color: #cbd5e1;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(129, 140, 248, 0.4);
}

.phone-balanced-enhanced__tip .icon-lucide {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  color: #6366f1;
}

/* India mobile milestones — enhanced */
.phone-india-section {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: linear-gradient(165deg, #fffbeb 0%, #fff7ed 35%, #ffffff 100%);
  box-shadow: 0 12px 40px -24px rgba(234, 88, 12, 0.25);
}

.dark .phone-india-section {
  border-color: rgba(251, 146, 60, 0.35);
  background: linear-gradient(165deg, #431407 0%, #1c1917 45%, #0f172a 100%);
}

.phone-india-section__tricolor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #138808 66.66%);
}

.dark .phone-india-section__tricolor {
  background: linear-gradient(90deg, #ea580c 33.33%, #f8fafc 33.33%, #f8fafc 66.66%, #16a34a 66.66%);
}

.phone-india-section__header {
  position: relative;
  z-index: 1;
}

.phone-india-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c2410c;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.dark .phone-india-section__eyebrow {
  color: #fdba74;
  background: rgba(234, 88, 12, 0.2);
}

.phone-india-section__title {
  margin: 0.75rem 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #9a3412;
}

@media (min-width: 640px) {
  .phone-india-section__title {
    font-size: 2rem;
  }
}

.dark .phone-india-section__title {
  color: #fed7aa;
}

.phone-india-section__lead {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #78350f;
  max-width: 48rem;
}

.dark .phone-india-section__lead {
  color: #fdba74;
}

.phone-india-section__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.phone-india-section__stat {
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.dark .phone-india-section__stat {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(251, 146, 60, 0.25);
}

.phone-india-section__stat-value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.2;
}

.dark .phone-india-section__stat-value {
  color: #fb923c;
}

.phone-india-section__stat-label {
  margin: 0.2rem 0 0;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
}

.dark .phone-india-section__stat-label {
  color: #fdba74;
}

.phone-india-section__timeline {
  position: relative;
  z-index: 1;
  margin: 1.15rem 0 0;
  padding: 0 0 0 1.25rem;
  list-style: none;
  border-left: 3px solid rgba(249, 115, 22, 0.45);
}

.phone-india-milestone {
  position: relative;
  padding: 0 0 1.1rem 1rem;
}

.phone-india-milestone:last-child {
  padding-bottom: 0;
}

.phone-india-milestone::before {
  content: "";
  position: absolute;
  left: -1.56rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  background: #ea580c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.phone-india-milestone__year {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.phone-india-milestone__body {
  margin-top: 0.45rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.dark .phone-india-milestone__body {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(251, 146, 60, 0.25);
}

.phone-india-milestone__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #9a3412;
}

.dark .phone-india-milestone__title {
  color: #fed7aa;
}

.phone-india-milestone__text {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #78350f;
}

.dark .phone-india-milestone__text {
  color: #fdba74;
}

.phone-summary-table tbody tr:nth-child(even) td {
  background: rgba(241, 245, 249, 0.65);
}

.dark .phone-summary-table tbody tr:nth-child(even) td {
  background: rgba(30, 41, 59, 0.45);
}

.phone-summary-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.08);
}

.dark .phone-summary-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.15);
}

/* —— Mobile timeline page — visual enhancements —— */
.phone-timeline-body {
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.55) 0%, rgba(248, 250, 252, 0.9) 12%, rgba(241, 245, 249, 1) 100%);
}

.dark .phone-timeline-body {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.35) 0%, rgba(12, 18, 34, 0.95) 14%, #0c1222 100%);
}

.phone-story-overview__eras-label {
  margin: 1.35rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
}

.dark .phone-story-overview__eras-label {
  color: #a5b4fc;
}

.phone-story-overview__eras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .phone-story-overview__eras {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.phone-story-overview__era {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.phone-story-overview__era:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.2);
}

.phone-story-overview__era-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.phone-story-overview__era-name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.phone-story-overview__era-years {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
}

.phone-story-overview__era--stone {
  color: #78350f;
  background: linear-gradient(145deg, #fef3c7, #fde68a);
  border-color: rgba(180, 130, 50, 0.45);
}

.phone-story-overview__era--stone .phone-story-overview__era-num {
  color: #fff;
  background: #b45309;
}

.phone-story-overview__era--indigo {
  color: #312e81;
  background: linear-gradient(145deg, #e0e7ff, #c7d2fe);
  border-color: rgba(99, 102, 241, 0.4);
}

.phone-story-overview__era--indigo .phone-story-overview__era-num {
  color: #1e1b4b;
  background: #6366f1;
}

.phone-story-overview__era--teal {
  color: #064e3b;
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
  border-color: rgba(16, 185, 129, 0.4);
}

.phone-story-overview__era--teal .phone-story-overview__era-num {
  color: #fff;
  background: #059669;
}

.phone-story-overview__era--violet {
  color: #4c1d95;
  background: linear-gradient(145deg, #ede9fe, #ddd6fe);
  border-color: rgba(124, 58, 237, 0.4);
}

.phone-story-overview__era--violet .phone-story-overview__era-num {
  color: #fff;
  background: #7c3aed;
}

.phone-story-overview__era--fuchsia {
  color: #831843;
  background: linear-gradient(145deg, #fce7f3, #fbcfe8);
  border-color: rgba(217, 70, 239, 0.4);
}

.phone-story-overview__era--fuchsia .phone-story-overview__era-num {
  color: #fff;
  background: #c026d3;
}

.phone-story-overview__era--cyan {
  color: #155e75;
  background: linear-gradient(145deg, #cffafe, #a5f3fc);
  border-color: rgba(6, 182, 212, 0.45);
}

.phone-story-overview__era--cyan .phone-story-overview__era-num {
  color: #fff;
  background: #0891b2;
}

.dark .phone-story-overview__era--stone {
  color: #fde68a;
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.55), rgba(69, 26, 3, 0.65));
  border-color: rgba(251, 191, 36, 0.35);
}

.dark .phone-story-overview__era--indigo {
  color: #c7d2fe;
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.65), rgba(30, 27, 75, 0.5));
}

.dark .phone-story-overview__era--teal {
  color: #6ee7b7;
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.55), rgba(4, 47, 46, 0.5));
}

.dark .phone-story-overview__era--violet {
  color: #ddd6fe;
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.55), rgba(46, 16, 101, 0.5));
}

.dark .phone-story-overview__era--fuchsia {
  color: #f5d0fe;
  background: linear-gradient(145deg, rgba(131, 24, 67, 0.5), rgba(80, 7, 36, 0.45));
}

.dark .phone-story-overview__era--cyan {
  color: #a5f3fc;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.5), rgba(8, 51, 68, 0.45));
}

.phone-story-overview__stat:nth-child(1) {
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
  border-color: rgba(245, 158, 11, 0.45);
}

.phone-story-overview__stat:nth-child(1) .phone-story-overview__stat-icon {
  color: #d97706;
}

.phone-story-overview__stat:nth-child(2) {
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
  border-color: rgba(99, 102, 241, 0.4);
}

.phone-story-overview__stat:nth-child(2) .phone-story-overview__stat-icon {
  color: #4f46e5;
}

.phone-story-overview__stat:nth-child(3) {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border-color: rgba(16, 185, 129, 0.4);
}

.phone-story-overview__stat:nth-child(3) .phone-story-overview__stat-icon {
  color: #059669;
}

.phone-story-overview__stat:nth-child(4) {
  background: linear-gradient(145deg, #f5f3ff, #ede9fe);
  border-color: rgba(139, 92, 246, 0.4);
}

.phone-story-overview__stat:nth-child(4) .phone-story-overview__stat-icon {
  color: #7c3aed;
}

.dark .phone-story-overview__stat:nth-child(1) {
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.45), rgba(69, 26, 3, 0.35));
  border-color: rgba(251, 191, 36, 0.35);
}

.dark .phone-story-overview__stat:nth-child(2) {
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.5), rgba(30, 27, 75, 0.4));
  border-color: rgba(129, 140, 248, 0.35);
}

.dark .phone-story-overview__stat:nth-child(3) {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.45), rgba(4, 47, 46, 0.35));
  border-color: rgba(52, 211, 153, 0.35);
}

.dark .phone-story-overview__stat:nth-child(4) {
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.45), rgba(46, 16, 101, 0.35));
  border-color: rgba(167, 139, 250, 0.35);
}

.phone-story-overview__panels .phone-story-overview__panel:not(.phone-story-overview__panel--india) {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.65), rgba(255, 255, 255, 0.85));
  border-color: rgba(99, 102, 241, 0.3);
}

.dark .phone-story-overview__panels .phone-story-overview__panel:not(.phone-story-overview__panel--india) {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.35), rgba(15, 23, 42, 0.55));
  border-color: rgba(129, 140, 248, 0.3);
}

/* Sticky era nav — per-era tint */
.phone-timeline-sticky-nav__link:nth-child(1) {
  color: #92400e;
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(217, 119, 6, 0.35);
}

.phone-timeline-sticky-nav__link:nth-child(2) {
  color: #3730a3;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(79, 70, 229, 0.35);
}

.phone-timeline-sticky-nav__link:nth-child(3) {
  color: #065f46;
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
}

.phone-timeline-sticky-nav__link:nth-child(4) {
  color: #5b21b6;
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(124, 58, 237, 0.35);
}

.phone-timeline-sticky-nav__link:nth-child(5) {
  color: #9d174d;
  background: rgba(244, 114, 182, 0.2);
  border-color: rgba(219, 39, 119, 0.35);
}

.phone-timeline-sticky-nav__link:nth-child(6) {
  color: #0e7490;
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(6, 182, 212, 0.35);
}

.phone-timeline-sticky-nav__link:nth-child(1):hover,
.phone-timeline-sticky-nav__link:nth-child(1).is-active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

.phone-timeline-sticky-nav__link:nth-child(2):hover,
.phone-timeline-sticky-nav__link:nth-child(2).is-active {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
}

.phone-timeline-sticky-nav__link:nth-child(3):hover,
.phone-timeline-sticky-nav__link:nth-child(3).is-active {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
}

.phone-timeline-sticky-nav__link:nth-child(4):hover,
.phone-timeline-sticky-nav__link:nth-child(4).is-active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
}

.phone-timeline-sticky-nav__link:nth-child(5):hover,
.phone-timeline-sticky-nav__link:nth-child(5).is-active {
  background: linear-gradient(135deg, #db2777, #be185d);
  color: #fff;
}

.phone-timeline-sticky-nav__link:nth-child(6):hover,
.phone-timeline-sticky-nav__link:nth-child(6).is-active {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: #fff;
}

.dark .phone-timeline-sticky-nav__link:nth-child(1) {
  color: #fde68a;
  background: rgba(180, 83, 9, 0.35);
}

.dark .phone-timeline-sticky-nav__link:nth-child(2) {
  color: #c7d2fe;
  background: rgba(67, 56, 202, 0.4);
}

.dark .phone-timeline-sticky-nav__link:nth-child(3) {
  color: #6ee7b7;
  background: rgba(4, 120, 87, 0.4);
}

.dark .phone-timeline-sticky-nav__link:nth-child(4) {
  color: #ddd6fe;
  background: rgba(91, 33, 182, 0.4);
}

.dark .phone-timeline-sticky-nav__link:nth-child(5) {
  color: #fbcfe8;
  background: rgba(157, 23, 77, 0.4);
}

.dark .phone-timeline-sticky-nav__link:nth-child(6) {
  color: #a5f3fc;
  background: rgba(14, 116, 144, 0.4);
}

/* Spec table blocks — tinted shells */
.phone-spec-tables__block--v1 {
  border-top: 4px solid #64748b;
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.95));
  box-shadow: 0 12px 36px -18px rgba(100, 116, 139, 0.35);
}

.phone-spec-tables__block--v2 {
  border-top: 4px solid #059669;
  background: linear-gradient(165deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.92));
  box-shadow: 0 12px 36px -18px rgba(5, 150, 105, 0.28);
}

.phone-spec-tables__block--v3 {
  border-top: 4px solid #7c3aed;
  background: linear-gradient(165deg, rgba(245, 243, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 12px 36px -18px rgba(124, 58, 237, 0.3);
}

.phone-spec-tables__block--v4 {
  border-top: 4px solid #0891b2;
  background: linear-gradient(165deg, rgba(236, 254, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 12px 36px -18px rgba(8, 145, 178, 0.28);
}

.dark .phone-spec-tables__block--v1 {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.85));
}

.dark .phone-spec-tables__block--v2 {
  background: linear-gradient(165deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.88));
}

.dark .phone-spec-tables__block--v3 {
  background: linear-gradient(165deg, rgba(76, 29, 149, 0.35), rgba(15, 23, 42, 0.88));
}

.dark .phone-spec-tables__block--v4 {
  background: linear-gradient(165deg, rgba(14, 116, 144, 0.35), rgba(15, 23, 42, 0.88));
}

.phone-spec-tables__block--v1 .phone-spec-tables__num {
  background: linear-gradient(135deg, #64748b, #475569);
}

.phone-spec-tables__block--v2 .phone-spec-tables__num {
  background: linear-gradient(135deg, #059669, #047857);
}

.phone-spec-tables__block--v3 .phone-spec-tables__num {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.phone-spec-tables__block--v4 .phone-spec-tables__num {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}

.phone-spec-table--cols-decade thead th:nth-child(1) {
  background: #e0e7ff;
  color: #3730a3;
}

.phone-spec-table--cols-decade thead th:nth-child(2) {
  background: #d1fae5;
  color: #065f46;
}

.phone-spec-table--cols-decade thead th:nth-child(3) {
  background: #fce7f3;
  color: #9d174d;
}

.dark .phone-spec-table--cols-decade thead th:nth-child(1) {
  background: #312e81;
  color: #c7d2fe;
}

.dark .phone-spec-table--cols-decade thead th:nth-child(2) {
  background: #064e3b;
  color: #6ee7b7;
}

.dark .phone-spec-table--cols-decade thead th:nth-child(3) {
  background: #831843;
  color: #fbcfe8;
}

.phone-spec-table--cols-decade tbody tr:nth-child(odd) td {
  background: rgba(248, 250, 252, 0.85);
}

.phone-spec-table--cols-decade tbody tr:nth-child(even) td {
  background: rgba(241, 245, 249, 0.9);
}

.dark .phone-spec-table--cols-decade tbody tr:nth-child(odd) td {
  background: rgba(30, 41, 59, 0.55);
}

.dark .phone-spec-table--cols-decade tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.65);
}

.phone-table-card--summary {
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(145deg, rgba(238, 242, 255, 0.95), rgba(255, 255, 255, 0.92));
  box-shadow: 0 14px 40px -22px rgba(79, 70, 229, 0.35);
}

.dark .phone-table-card--summary {
  border-color: rgba(129, 140, 248, 0.35);
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.45), rgba(15, 23, 42, 0.88));
}

.phone-table-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #312e81;
}

.dark .phone-table-card__title {
  color: #e0e7ff;
}

.phone-table-card__desc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.dark .phone-table-card__desc {
  color: #94a3b8;
}

.phone-summary-table thead th {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: #fff;
}

.dark .phone-summary-table thead th {
  background: linear-gradient(90deg, #4338ca, #6d28d9);
}

.phone-summary-table tbody tr:nth-child(1) td:first-child {
  font-weight: 800;
  color: #b45309;
}

.phone-summary-table tbody tr:nth-child(2) td:first-child {
  font-weight: 800;
  color: #4338ca;
}

.phone-summary-table tbody tr:nth-child(3) td:first-child {
  font-weight: 800;
  color: #047857;
}

.phone-summary-table tbody tr:nth-child(4) td:first-child {
  font-weight: 800;
  color: #0e7490;
}

.phone-summary-table tbody tr:nth-child(5) td:first-child {
  font-weight: 800;
  color: #be185d;
}

.phone-summary-table tbody tr:nth-child(6) td:first-child {
  font-weight: 800;
  color: #7c3aed;
}

.phone-summary-table tbody tr:nth-child(7) td:first-child {
  font-weight: 800;
  color: #1d4ed8;
}

.phone-summary-table tbody tr:nth-child(8) td:first-child {
  font-weight: 800;
  color: #c026d3;
}

.phone-summary-table tbody tr:nth-child(9) td:first-child {
  font-weight: 800;
  color: #0891b2;
}

/* Technology timeline — left menu bar (injected by leftmenubar-technology.js) */
.tech-timeline-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .phone-timeline-body--with-tech-nav > .max-w-6xl {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: clamp(1rem, 2.5vw, 2.5rem);
  }

  .tech-timeline-layout {
    grid-template-columns: minmax(200px, 228px) minmax(0, 1fr);
    gap: 0;
    max-width: 90rem;
    margin: 0 auto;
  }

  .phone-timeline-body--with-tech-nav .phone-timeline-content {
    padding: 0 clamp(0.65rem, 1.25vw, 1.25rem);
    max-width: none;
  }
}

.tech-leftmenubar {
  display: none;
}

@media (min-width: 1024px) {
  .tech-leftmenubar {
    display: block;
    position: sticky;
    top: var(--phone-site-header-h, 4.75rem);
    align-self: start;
    max-height: calc(100vh - var(--phone-site-header-h, 4.75rem));
    overflow: hidden;
  }
}

/* Glossy Horizon panel (generic) */
.glossy-panel {
  background: rgba(12, 10, 29, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 25px 40px -12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Technology left menubar — see also assets/css/tech-leftmenubar.css */
.tech-leftmenubar .tech-glossy-panel,
.tech-leftmenubar [data-tech-sidebar="true"],
.phone-timeline-body--with-tech-nav .tech-glossy-mobile,
.phone-timeline-body--with-tech-nav .tech-leftmenubar-mobile {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: #1e1b4b !important;
  background-image: linear-gradient(180deg, #1e1b4b 0%, #312e81 48%, #3730a3 100%) !important;
  border: 1px solid #6366f1 !important;
  border-left: none !important;
  box-shadow:
    4px 0 32px -8px rgba(30, 27, 75, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.tech-leftmenubar .tech-glossy-panel:hover,
.phone-timeline-body--with-tech-nav .tech-glossy-mobile:hover {
  background-color: #312e81 !important;
  background-image: linear-gradient(180deg, #252060 0%, #3730a3 48%, #4f46e5 100%) !important;
}

.tech-glossy-panel {
  border-radius: 0 1.5rem 1.5rem 0;
  padding: 1.25rem 1rem 1.35rem 1.15rem;
  max-height: calc(100vh - var(--phone-site-header-h, 4.75rem));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tech-leftmenubar .tech-glossy-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-glossy-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  background: linear-gradient(to top right, #6366f1, #d946ef);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.65);
  flex-shrink: 0;
}

.tech-leftmenubar .tech-glossy-brand__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.tech-leftmenubar .tech-glossy-brand__accent {
  color: #c7d2fe;
  font-weight: 500;
}

.tech-leftmenubar .tech-glossy-brand__sub {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: #a5b4fc;
}

.tech-glossy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

:not(.dark) .tech-glossy-eyebrow {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.tech-glossy-eyebrow__pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #818cf8;
  flex-shrink: 0;
}

.tech-glossy-eyebrow__pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #818cf8;
  animation: tech-glossy-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes tech-glossy-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.tech-glossy-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 0.35rem;
  margin-right: -0.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.gloss-scroll,
.tech-leftmenubar.gloss-scroll {
  scrollbar-width: auto;
  scrollbar-color: #a78bfa rgba(255, 255, 255, 0.12);
}

.gloss-scroll::-webkit-scrollbar,
.tech-leftmenubar::-webkit-scrollbar {
  width: 10px;
}

.gloss-scroll::-webkit-scrollbar-track,
.tech-leftmenubar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin: 4px 0;
}

.gloss-scroll::-webkit-scrollbar-thumb,
.tech-leftmenubar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a78bfa, #6366f1);
  border-radius: 10px;
  border: 2px solid rgba(15, 13, 36, 0.35);
  min-height: 48px;
}

.gloss-scroll::-webkit-scrollbar-thumb:hover,
.tech-leftmenubar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c4b5fd, #818cf8);
}

:not(.dark) .gloss-scroll,
:not(.dark) .tech-leftmenubar {
  scrollbar-color: #6366f1 rgba(99, 102, 241, 0.15);
}

:not(.dark) .gloss-scroll::-webkit-scrollbar-track,
:not(.dark) .tech-leftmenubar::-webkit-scrollbar-track {
  background: rgba(99, 102, 241, 0.12);
}

:not(.dark) .gloss-scroll::-webkit-scrollbar-thumb,
:not(.dark) .tech-leftmenubar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #818cf8, #4f46e5);
  border-color: rgba(238, 242, 255, 0.8);
}

.tech-glossy-group + .tech-glossy-group {
  margin-top: 0;
}

.tech-leftmenubar .cat-head,
.tech-leftmenubar .tech-glossy-cat-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e0e7ff;
  line-height: 1.3;
}

.cat-head::after,
.tech-glossy-cat-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 36px;
  height: 2.5px;
  background: linear-gradient(90deg, #b794f4, rgba(183, 148, 244, 0.2), transparent);
  border-radius: 4px;
}

.tech-glossy-cat-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.35);
}

.tech-glossy-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.15rem;
  margin-top: 0.65rem;
}

.tech-leftmenubar .menu-gloss-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.tech-leftmenubar .menu-gloss-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(139, 92, 246, 0.35));
  border-color: rgba(196, 181, 253, 0.6);
  transform: translateX(6px);
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.45);
}

.tech-leftmenubar .menu-gloss-item.active-menu-gloss {
  background: linear-gradient(115deg, rgba(99, 102, 241, 0.75), rgba(139, 92, 246, 0.45));
  border-left: 3px solid #fcd34d;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
  transform: none;
}

.tech-leftmenubar .menu-gloss-item__glyph {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #e0e7ff;
  transition: color 0.2s ease, background 0.2s ease;
}

.tech-leftmenubar .menu-gloss-item:hover .menu-gloss-item__glyph,
.tech-leftmenubar .menu-gloss-item.active-menu-gloss .menu-gloss-item__glyph {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.tech-leftmenubar .menu-gloss-item__name {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-leftmenubar .menu-gloss-item.active-menu-gloss .menu-gloss-item__name {
  color: #ffffff;
}

@keyframes tech-glossy-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-badge {
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.2),
    rgba(139, 92, 246, 0.6),
    rgba(99, 102, 241, 0.2)
  );
  background-size: 200% 100%;
  animation: tech-glossy-shimmer 3s infinite linear;
}

.tech-leftmenubar .tech-glossy-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tech-leftmenubar .tech-glossy-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e0e7ff;
  text-decoration: none;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, color 0.2s ease;
}

.tech-leftmenubar .tech-glossy-footer__link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.tech-glossy-footer__link .icon-lucide {
  width: 1rem;
  height: 1rem;
}

.tech-leftmenubar .tech-glossy-footer__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: #a5b4fc;
  padding-left: 0.25rem;
}

.tech-glossy-footer__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.tech-leftmenubar-mobile,
.tech-glossy-mobile {
  margin-bottom: 1.25rem;
  padding: 1rem clamp(1rem, 2.5vw, 2.5rem);
  border-radius: 1rem;
}

@media (min-width: 1024px) {
  .tech-leftmenubar-mobile,
  .tech-glossy-mobile {
    display: none;
  }
}

.phone-timeline-body--with-tech-nav .tech-leftmenubar-mobile__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e0e7ff;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.45);
}

.tech-leftmenubar-mobile__label .icon-lucide {
  width: 0.95rem;
  height: 0.95rem;
}

.phone-timeline-body--with-tech-nav .tech-leftmenubar-mobile__select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f8fafc;
  background: #312e81;
  border: 1px solid #818cf8;
  border-radius: 0.75rem;
}

/* Contextual internal links on timeline pages */
.phone-story-overview__related a.phone-internal-link,
.phone-timeline-cta__desc a.phone-internal-link,
a.phone-internal-link {
  font-weight: 600;
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.phone-story-overview__related a.phone-internal-link:hover,
.phone-timeline-cta__desc a.phone-internal-link:hover,
a.phone-internal-link:hover {
  color: #4338ca;
}

.dark .phone-story-overview__related a.phone-internal-link,
.dark .phone-timeline-cta__desc a.phone-internal-link,
.dark a.phone-internal-link {
  color: #a5b4fc;
}

.dark .phone-story-overview__related a.phone-internal-link:hover,
.dark .phone-timeline-cta__desc a.phone-internal-link:hover,
.dark a.phone-internal-link:hover {
  color: #c4b5fd;
}

/* Continue exploring CTA */
.phone-timeline-cta {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.35rem;
  border-radius: 1.2rem;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08), rgba(245, 158, 11, 0.06));
  box-shadow: 0 16px 48px -28px rgba(79, 70, 229, 0.4);
}

.phone-timeline-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.15), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(99, 102, 241, 0.2), transparent 50%);
  pointer-events: none;
}

.dark .phone-timeline-cta {
  border-color: rgba(129, 140, 248, 0.4);
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.55), rgba(30, 27, 75, 0.45));
}

.phone-timeline-cta__title {
  position: relative;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dark .phone-timeline-cta__title {
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
}

.phone-timeline-cta__desc {
  position: relative;
  margin: 0.65rem auto 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
}

.dark .phone-timeline-cta__desc {
  color: #cbd5e1;
}

.phone-timeline-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.phone-timeline-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.phone-timeline-cta__btn:hover {
  transform: translateY(-2px);
}

.phone-timeline-cta__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 6px 20px -6px rgba(79, 70, 229, 0.55);
}

.phone-timeline-cta__btn--primary:hover {
  box-shadow: 0 10px 28px -8px rgba(79, 70, 229, 0.6);
}

.phone-timeline-cta__btn--ghost {
  color: #4338ca;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.dark .phone-timeline-cta__btn--ghost {
  color: #e0e7ff;
  background: rgba(30, 27, 75, 0.65);
  border-color: rgba(129, 140, 248, 0.45);
}

.phone-timeline-cta__btn--ghost:hover {
  background: rgba(238, 242, 255, 1);
}

.dark .phone-timeline-cta__btn--ghost:hover {
  background: rgba(49, 46, 129, 0.85);
}

/* Hero chips on timeline page */
.phone-timeline-page .relative.overflow-hidden .rounded-full.bg-white\/10:nth-child(1) {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(252, 211, 77, 0.35);
}

.phone-timeline-page .relative.overflow-hidden .rounded-full.bg-white\/10:nth-child(2) {
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.phone-timeline-page .relative.overflow-hidden .rounded-full.bg-white\/10:nth-child(3) {
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(196, 181, 253, 0.35);
}

.phone-timeline-page .phone-timeline-content [id^="spec-table"] {
  scroll-margin-top: var(--phone-scroll-offset, 12rem);
}

.dark .phone-timeline-sticky-nav__link:nth-child(1):hover,
.dark .phone-timeline-sticky-nav__link:nth-child(1).is-active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

.dark .phone-timeline-sticky-nav__link:nth-child(2):hover,
.dark .phone-timeline-sticky-nav__link:nth-child(2).is-active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.dark .phone-timeline-sticky-nav__link:nth-child(3):hover,
.dark .phone-timeline-sticky-nav__link:nth-child(3).is-active {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
}

.dark .phone-timeline-sticky-nav__link:nth-child(4):hover,
.dark .phone-timeline-sticky-nav__link:nth-child(4).is-active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
}

.dark .phone-timeline-sticky-nav__link:nth-child(5):hover,
.dark .phone-timeline-sticky-nav__link:nth-child(5).is-active {
  background: linear-gradient(135deg, #db2777, #be185d);
  color: #fff;
}

.dark .phone-timeline-sticky-nav__link:nth-child(6):hover,
.dark .phone-timeline-sticky-nav__link:nth-child(6).is-active {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: #fff;
}

/* Quiz accordion (radio style) */
.phone-quiz-accordion {
  --primary: #227093;
  --secondary: #ff5252;
  --theme: var(--secondary);
  color: var(--theme);
  border: 2px solid var(--theme);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
}

.dark .phone-quiz-accordion {
  background: rgba(15, 23, 42, 0.45);
}

.phone-quiz-accordion .tab {
  position: relative;
}

.phone-quiz-accordion .tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.phone-quiz-accordion .tab + .tab {
  border-top: 1px solid rgba(255, 82, 82, 0.25);
}

.phone-quiz-accordion .tab__label,
.phone-quiz-accordion .tab__close {
  display: flex;
  color: #fff;
  background: var(--theme);
  cursor: pointer;
}

.phone-quiz-accordion .tab__label {
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  font-weight: 700;
  text-align: left;
}

.phone-quiz-accordion .tab__label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  margin-left: auto;
  text-align: center;
  transform: rotate(90deg);
  transition: transform 0.35s ease;
}

.phone-quiz-accordion .tab__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.phone-quiz-accordion .tab input:checked ~ .tab__content {
  max-height: 10rem;
}

.phone-quiz-accordion .tab input:checked + .tab__label::after {
  transform: rotate(270deg);
}

.phone-quiz-accordion .tab__content p {
  margin: 0;
  padding: 0.95rem 1rem;
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  text-align: left;
}

.dark .phone-quiz-accordion .tab__content p {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
}

.phone-quiz-accordion .tab__close {
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.phone-quiz-accordion .tab input:not(:checked) + .tab__label:hover::after {
  animation: phone-quiz-bounce 0.5s infinite;
}

@keyframes phone-quiz-bounce {
  25% {
    transform: rotate(90deg) translate(0.2rem);
  }
  75% {
    transform: rotate(90deg) translate(-0.2rem);
  }
}

/* Students tasks section */
.student-tasks {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(140deg, rgba(219, 234, 254, 0.75), rgba(238, 242, 255, 0.72), rgba(224, 242, 254, 0.65));
  box-shadow: 0 18px 42px -30px rgba(37, 99, 235, 0.5);
}

.student-tasks::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.18), transparent 45%), radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.15), transparent 42%);
  pointer-events: none;
}

.dark .student-tasks {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.7), rgba(12, 74, 110, 0.35));
}

.student-tasks__header,
.student-tasks__chips,
.student-tasks__list {
  position: relative;
  z-index: 1;
}

.student-tasks__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.dark .student-tasks__eyebrow {
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(96, 165, 250, 0.35);
}

.student-tasks__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e3a8a;
}

.dark .student-tasks__title {
  color: #dbeafe;
}

.student-tasks__lead {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

.dark .student-tasks__lead {
  color: #cbd5e1;
}

.student-tasks__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.student-tasks__chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e40af;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.dark .student-tasks__chip {
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(96, 165, 250, 0.32);
}

.student-tasks__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  counter-reset: student-task;
}

.student-task-item {
  position: relative;
  padding: 0.75rem 0.8rem 0.75rem 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.55;
  counter-increment: student-task;
}

.student-task-item::before {
  content: counter(student-task);
  position: absolute;
  left: 0.75rem;
  top: 0.72rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 5px 14px -8px rgba(37, 99, 235, 0.75);
}

.dark .student-task-item {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(100, 116, 139, 0.4);
}

/* Force visible spacing for television timeline extra sections */
.phone-timeline-page .phone-timeline-content #tv-key-events,
.phone-timeline-page .phone-timeline-content #tv-display-evolution,
.phone-timeline-page .phone-timeline-content #tv-resolution,
.phone-timeline-page .phone-timeline-content #tv-streaming,
.phone-timeline-page .phone-timeline-content #tv-then-vs-now,
.phone-timeline-page .phone-timeline-content #tv-inventors,
.phone-timeline-page .phone-timeline-content #tv-standards,
.phone-timeline-page .phone-timeline-content #tv-shutdown,
.phone-timeline-page .phone-timeline-content #tv-home-tech-shifts,
.phone-timeline-page .phone-timeline-content #tv-experiments,
.phone-timeline-page .phone-timeline-content #tv-display-audio,
.phone-timeline-page .phone-timeline-content #tv-india-history,
.phone-timeline-page .phone-timeline-content #tv-ads-history,
.phone-timeline-page .phone-timeline-content #tv-quiz,
.phone-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #tv-key-events,
  .phone-timeline-page .phone-timeline-content #tv-display-evolution,
  .phone-timeline-page .phone-timeline-content #tv-resolution,
  .phone-timeline-page .phone-timeline-content #tv-streaming,
  .phone-timeline-page .phone-timeline-content #tv-then-vs-now,
  .phone-timeline-page .phone-timeline-content #tv-inventors,
  .phone-timeline-page .phone-timeline-content #tv-standards,
  .phone-timeline-page .phone-timeline-content #tv-shutdown,
  .phone-timeline-page .phone-timeline-content #tv-home-tech-shifts,
  .phone-timeline-page .phone-timeline-content #tv-experiments,
  .phone-timeline-page .phone-timeline-content #tv-display-audio,
  .phone-timeline-page .phone-timeline-content #tv-india-history,
  .phone-timeline-page .phone-timeline-content #tv-ads-history,
  .phone-timeline-page .phone-timeline-content #tv-quiz,
  .phone-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Television page quiz color override */
.tv-quiz-accordion {
  --secondary: #0ea5e9;
}

.tv-quiz-accordion .tab + .tab {
  border-top-color: rgba(14, 165, 233, 0.28);
}

/* Television timeline era buttons: border transition style */
.tv-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #f45e61;
  --tv-button-blue: #0eb7da;
  --tv-button-text: #f45e61;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.tv-era-buttons .phone-timeline-sticky-nav__link::before,
.tv-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tv-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.tv-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:hover,
.tv-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.tv-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.tv-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .tv-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #fb7185;
  --tv-button-blue: #22d3ee;
  --tv-button-text: #fda4af;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #60daaa;
  --tv-button-blue: #2dd4bf;
  --tv-button-text: #047857;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fbca67;
  --tv-button-blue: #f59e0b;
  --tv-button-text: #b45309;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #ff8a30;
  --tv-button-blue: #f97316;
  --tv-button-text: #c2410c;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #f45e61;
  --tv-button-blue: #ef4444;
  --tv-button-text: #be123c;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #6477b9;
  --tv-button-blue: #6366f1;
  --tv-button-text: #4338ca;
}

.tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #0eb7da;
  --tv-button-blue: #06b6d4;
  --tv-button-text: #0e7490;
}

.dark .tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #34d399;
  --tv-button-blue: #5eead4;
  --tv-button-text: #6ee7b7;
}

.dark .tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fbbf24;
  --tv-button-blue: #f59e0b;
  --tv-button-text: #fde68a;
}

.dark .tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #fb923c;
  --tv-button-blue: #f97316;
  --tv-button-text: #fdba74;
}

.dark .tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #fb7185;
  --tv-button-blue: #ef4444;
  --tv-button-text: #fda4af;
}

.dark .tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #818cf8;
  --tv-button-blue: #6366f1;
  --tv-button-text: #c4b5fd;
}

.dark .tv-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #22d3ee;
  --tv-button-blue: #06b6d4;
  --tv-button-text: #67e8f9;
}

/* Radio timeline quiz accordion */
.radio-quiz-accordion {
  --secondary: #f59e0b;
}

.radio-quiz-accordion .tab + .tab {
  border-top-color: rgba(245, 158, 11, 0.28);
}

/* Radio era nav buttons (same interaction pattern as TV) */
.radio-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #f59e0b;
  --tv-button-blue: #ea580c;
  --tv-button-text: #b45309;
}

.radio-era-buttons .phone-timeline-sticky-nav__link::before,
.radio-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: 0.35s ease;
}

.radio-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.radio-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.radio-era-buttons .phone-timeline-sticky-nav__link:hover,
.radio-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.radio-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.radio-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-blue);
  border-left-color: var(--tv-button-blue);
  border-width: 2px;
  transform: scale(1.02);
}

.radio-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.radio-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: scale(1.02);
}

.dark .radio-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #fbbf24;
  --tv-button-blue: #fb923c;
  --tv-button-text: #fde68a;
}

.radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #a78bfa;
  --tv-button-blue: #8b5cf6;
  --tv-button-text: #5b21b6;
}

.radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fbbf24;
  --tv-button-blue: #f59e0b;
  --tv-button-text: #b45309;
}

.radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #fb923c;
  --tv-button-blue: #f97316;
  --tv-button-text: #c2410c;
}

.radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #f472b6;
  --tv-button-blue: #ec4899;
  --tv-button-text: #be185d;
}

.radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #34d399;
  --tv-button-blue: #10b981;
  --tv-button-text: #047857;
}

.radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #38bdf8;
  --tv-button-blue: #0ea5e9;
  --tv-button-text: #0369a1;
}

.dark .radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #c4b5fd;
  --tv-button-blue: #a78bfa;
  --tv-button-text: #ddd6fe;
}

.dark .radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fcd34d;
  --tv-button-blue: #fbbf24;
  --tv-button-text: #fde68a;
}

.dark .radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #fdba74;
  --tv-button-blue: #fb923c;
  --tv-button-text: #fed7aa;
}

.dark .radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #f9a8d4;
  --tv-button-blue: #f472b6;
  --tv-button-text: #fbcfe8;
}

.dark .radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #6ee7b7;
  --tv-button-blue: #34d399;
  --tv-button-text: #a7f3d0;
}

.dark .radio-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #7dd3fc;
  --tv-button-blue: #38bdf8;
  --tv-button-text: #bae6fd;
}

/* Computer timeline quiz accordion */
.computer-quiz-accordion {
  --secondary: #8b5cf6;
}

.computer-quiz-accordion .tab + .tab {
  border-top-color: rgba(139, 92, 246, 0.28);
}

/* Computer era nav buttons */
.computer-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #818cf8;
  --tv-button-blue: #3b82f6;
  --tv-button-text: #4338ca;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.computer-era-buttons .phone-timeline-sticky-nav__link::before,
.computer-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.computer-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.computer-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:hover,
.computer-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.computer-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.computer-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .computer-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #a78bfa;
  --tv-button-blue: #60a5fa;
  --tv-button-text: #ddd6fe;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #22d3ee;
  --tv-button-blue: #06b6d4;
  --tv-button-text: #0e7490;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #60a5fa;
  --tv-button-blue: #3b82f6;
  --tv-button-text: #1d4ed8;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #818cf8;
  --tv-button-blue: #6366f1;
  --tv-button-text: #4338ca;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #c084fc;
  --tv-button-blue: #a855f7;
  --tv-button-text: #7e22ce;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #f472b6;
  --tv-button-blue: #ec4899;
  --tv-button-text: #be185d;
}

.computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #34d399;
  --tv-button-blue: #10b981;
  --tv-button-text: #047857;
}

.dark .computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #67e8f9;
  --tv-button-blue: #22d3ee;
  --tv-button-text: #a5f3fc;
}

.dark .computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #93c5fd;
  --tv-button-blue: #60a5fa;
  --tv-button-text: #dbeafe;
}

.dark .computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #a5b4fc;
  --tv-button-blue: #818cf8;
  --tv-button-text: #c7d2fe;
}

.dark .computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #d8b4fe;
  --tv-button-blue: #c084fc;
  --tv-button-text: #f3e8ff;
}

.dark .computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #f9a8d4;
  --tv-button-blue: #f472b6;
  --tv-button-text: #fbcfe8;
}

.dark .computer-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #6ee7b7;
  --tv-button-blue: #34d399;
  --tv-button-text: #a7f3d0;
}

/* Motherboard timeline quiz accordion */
.motherboard-quiz-accordion {
  --secondary: #059669;
}

.motherboard-quiz-accordion .tab + .tab {
  border-top-color: rgba(5, 150, 105, 0.28);
}

/* Motherboard era nav buttons */
.motherboard-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #34d399;
  --tv-button-blue: #10b981;
  --tv-button-text: #047857;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link::before,
.motherboard-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:hover,
.motherboard-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.motherboard-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.motherboard-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .motherboard-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #6ee7b7;
  --tv-button-blue: #34d399;
  --tv-button-text: #a7f3d0;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #a8a29e;
  --tv-button-blue: #78716c;
  --tv-button-text: #44403c;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #2dd4bf;
  --tv-button-blue: #14b8a6;
  --tv-button-text: #0f766e;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #34d399;
  --tv-button-blue: #10b981;
  --tv-button-text: #047857;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #4ade80;
  --tv-button-blue: #22c55e;
  --tv-button-text: #15803d;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #06b6d4;
  --tv-button-blue: #0891b2;
  --tv-button-text: #0e7490;
}

.motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #fbbf24;
  --tv-button-blue: #f59e0b;
  --tv-button-text: #b45309;
}

.dark .motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #d6d3d1;
  --tv-button-blue: #a8a29e;
  --tv-button-text: #e7e5e4;
}

.dark .motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #5eead4;
  --tv-button-blue: #2dd4bf;
  --tv-button-text: #ccfbf1;
}

.dark .motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #6ee7b7;
  --tv-button-blue: #34d399;
  --tv-button-text: #a7f3d0;
}

.dark .motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #86efac;
  --tv-button-blue: #4ade80;
  --tv-button-text: #dcfce7;
}

.dark .motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #67e8f9;
  --tv-button-blue: #22d3ee;
  --tv-button-text: #cffafe;
}

.dark .motherboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #fde047;
  --tv-button-blue: #fbbf24;
  --tv-button-text: #fef9c3;
}

/* Computer storage timeline — "How Data Is Stored" blocks */
.milestone-card__subtitle--how-stored {
  color: #0ea5e9;
}

.dark .milestone-card__subtitle--how-stored {
  color: #67e8f9;
  border-top-color: rgba(103, 232, 249, 0.4);
}

.milestone-card__list--how-stored li {
  line-height: 1.65;
}

/* Storage timeline — era image animations */
.storage-timeline-page .storage-era-image:not(.is-image-visible) {
  opacity: 0;
  transform: scale(1.1);
}

.storage-era-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(103, 232, 249, 0.12) 52%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.75s ease;
}

.storage-era-figure:hover::after {
  transform: translateX(120%);
}

.storage-timeline-page .storage-era-image.is-image-visible {
  animation:
    storageImageIn 0.85s ease-out both,
    storageKenBurns 14s ease-in-out var(--storage-kenburns-delay, 0.85s) infinite;
}

.storage-timeline-page .storage-era-image.is-image-visible:hover {
  animation-play-state: paused;
  transform: scale(1.06);
  filter: brightness(1.06);
}

@keyframes storageImageIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes storageKenBurns {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(-1.5%, -0.5%);
  }
}

.dark .storage-era-figure::after {
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(34, 211, 238, 0.1) 52%,
    transparent 62%
  );
}

/* Storage timeline — scroll reveal stagger + reduced motion */
.storage-timeline-page .storage-scroll-reveal.is-visible.animate-slide-up-soft {
  animation-fill-mode: both;
}

.storage-timeline-page .phone-story-overview__stat.is-visible.animate-slide-up-soft:nth-child(2) {
  animation-delay: 80ms;
}

.storage-timeline-page .phone-story-overview__stat.is-visible.animate-slide-up-soft:nth-child(3) {
  animation-delay: 160ms;
}

.storage-timeline-page .phone-story-overview__stat.is-visible.animate-slide-up-soft:nth-child(4) {
  animation-delay: 240ms;
}

.storage-era-buttons--circles .phone-timeline-sticky-nav__link.is-active {
  animation: storagePing 3s ease-in-out infinite;
}

@keyframes storagePing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .storage-timeline-page .storage-scroll-reveal,
  .storage-era-buttons--circles .phone-timeline-sticky-nav__link.is-active,
  .storage-timeline-page .animate-storage-float,
  .storage-timeline-page .animate-storage-ping,
  .storage-timeline-page .animate-storage-drift,
  .storage-timeline-page .storage-era-image,
  .storage-timeline-page .storage-era-image.is-image-visible {
    animation: none !important;
  }

  .storage-timeline-page .storage-scroll-reveal,
  .storage-timeline-page .storage-era-image {
    opacity: 1 !important;
    transform: none !important;
  }

  .storage-era-figure::after {
    display: none;
  }
}

/* Storage timeline — one color for all bullet headings (overrides per-era nth-child colors) */
.storage-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.storage-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.storage-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong,
.storage-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--how-stored li:nth-child(n) strong {
  color: #0ea5e9;
}

.dark .storage-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .storage-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .storage-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong,
.dark .storage-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--how-stored li:nth-child(n) strong {
  color: #67e8f9;
}

/* Storage timeline quiz accordion */
.storage-quiz-accordion {
  --secondary: #0d9488;
}

.storage-quiz-accordion .tab + .tab {
  border-top-color: rgba(13, 148, 136, 0.28);
}

/* Storage era nav — single row of circles */
.storage-era-buttons--circles .storage-era-buttons__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.storage-era-buttons--circles .storage-era-buttons__row::-webkit-scrollbar {
  height: 4px;
}

.storage-era-buttons--circles .storage-era-buttons__row::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 9999px;
}

@media (min-width: 1280px) {
  .storage-era-buttons--circles .storage-era-buttons__row {
    justify-content: center;
    overflow-x: visible;
  }
}

.storage-era-buttons--circles .phone-timeline-sticky-nav__link {
  --storage-circle-bg: #fff;
  --storage-circle-border: #14b8a6;
  --storage-circle-text: #0f766e;
  flex: 0 0 auto;
  width: 4.65rem;
  height: 4.65rem;
  min-width: 4.65rem;
  min-height: 4.65rem;
  padding: 0.25rem;
  border-radius: 50%;
  border: 2px solid var(--storage-circle-border) !important;
  background: var(--storage-circle-bg) !important;
  color: var(--storage-circle-text) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.storage-era-buttons--circles .phone-timeline-sticky-nav__link::before,
.storage-era-buttons--circles .phone-timeline-sticky-nav__link::after {
  display: none;
}

.storage-era-buttons--circles .phone-timeline-sticky-nav__title {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
}

.storage-era-buttons--circles .phone-timeline-sticky-nav__years {
  margin-top: 0.1rem;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.85;
}

.storage-era-buttons--circles .phone-timeline-sticky-nav__link:hover,
.storage-era-buttons--circles .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  background: var(--storage-circle-border) !important;
  border-color: var(--storage-circle-border) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link {
  --storage-circle-bg: rgba(15, 23, 42, 0.85);
}

@media (min-width: 640px) {
  .storage-era-buttons--circles .storage-era-buttons__row {
    gap: 0.55rem;
  }

  .storage-era-buttons--circles .phone-timeline-sticky-nav__link {
    width: 5.1rem;
    height: 5.1rem;
    min-width: 5.1rem;
    min-height: 5.1rem;
  }

  .storage-era-buttons--circles .phone-timeline-sticky-nav__title {
    font-size: 0.68rem;
  }

  .storage-era-buttons--circles .phone-timeline-sticky-nav__years {
    font-size: 0.58rem;
  }
}

@media (min-width: 1024px) {
  .storage-era-buttons--circles .phone-timeline-sticky-nav__link {
    width: 5.5rem;
    height: 5.5rem;
    min-width: 5.5rem;
    min-height: 5.5rem;
  }

  .storage-era-buttons--circles .phone-timeline-sticky-nav__title {
    font-size: 0.72rem;
  }

  .storage-era-buttons--circles .phone-timeline-sticky-nav__years {
    font-size: 0.62rem;
  }
}

.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(1) { --storage-circle-border: #64748b; --storage-circle-text: #334155; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(2) { --storage-circle-border: #f59e0b; --storage-circle-text: #b45309; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(3) { --storage-circle-border: #3b82f6; --storage-circle-text: #1d4ed8; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(4) { --storage-circle-border: #8b5cf6; --storage-circle-text: #6d28d9; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(5) { --storage-circle-border: #ec4899; --storage-circle-text: #be185d; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(6) { --storage-circle-border: #10b981; --storage-circle-text: #047857; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(7) { --storage-circle-border: #0ea5e9; --storage-circle-text: #0369a1; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(8) { --storage-circle-border: #f97316; --storage-circle-text: #c2410c; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(9) { --storage-circle-border: #6366f1; --storage-circle-text: #4338ca; }
.storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(10) { --storage-circle-border: #d946ef; --storage-circle-text: #a21caf; }

.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(1) { --storage-circle-border: #94a3b8; --storage-circle-text: #e2e8f0; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(2) { --storage-circle-border: #fbbf24; --storage-circle-text: #fde68a; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(3) { --storage-circle-border: #60a5fa; --storage-circle-text: #dbeafe; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(4) { --storage-circle-border: #a78bfa; --storage-circle-text: #ede9fe; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(5) { --storage-circle-border: #f472b6; --storage-circle-text: #fbcfe8; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(6) { --storage-circle-border: #34d399; --storage-circle-text: #a7f3d0; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(7) { --storage-circle-border: #38bdf8; --storage-circle-text: #bae6fd; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(8) { --storage-circle-border: #fb923c; --storage-circle-text: #fed7aa; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(9) { --storage-circle-border: #818cf8; --storage-circle-text: #c7d2fe; }
.dark .storage-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(10) { --storage-circle-border: #e879f9; --storage-circle-text: #fae8ff; }

/* Force visible spacing for storage timeline extra sections */
.phone-timeline-page .phone-timeline-content #storage-magnetic-vs-optical,
.phone-timeline-page .phone-timeline-content #storage-capacity-trends,
.phone-timeline-page .phone-timeline-content #storage-india,
.phone-timeline-page .phone-timeline-content #storage-quiz,
.phone-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #storage-magnetic-vs-optical,
  .phone-timeline-page .phone-timeline-content #storage-capacity-trends,
  .phone-timeline-page .phone-timeline-content #storage-india,
  .phone-timeline-page .phone-timeline-content #storage-quiz,
  .phone-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Printer timeline — "How Printing Works" section */
.milestone-card__subtitle--how-printing {
  color: #f59e0b;
}

.dark .milestone-card__subtitle--how-printing {
  color: #fcd34d;
  border-top-color: rgba(252, 211, 77, 0.4);
}

/* Printer timeline — one color for all bullet headings */
.printer-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.printer-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.printer-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong,
.dark .printer-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .printer-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .printer-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #fcd34d;
}

.printer-quiz-accordion {
  --secondary: #d97706;
}

.printer-quiz-accordion .tab + .tab {
  border-top-color: rgba(217, 119, 6, 0.28);
}

/* Printer era nav buttons (computer-timeline style grid) */
.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link {
  --tv-button-red: #fbbf24;
  --tv-button-blue: #f59e0b;
  --tv-button-text: #b45309;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link::before,
.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:hover,
.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:hover::before,
.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:hover::after,
.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link {
  --tv-button-red: #fcd34d;
  --tv-button-blue: #fbbf24;
  --tv-button-text: #fef9c3;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #a8a29e;
  --tv-button-blue: #78716c;
  --tv-button-text: #44403c;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #f59e0b;
  --tv-button-blue: #d97706;
  --tv-button-text: #92400e;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #fb923c;
  --tv-button-blue: #f97316;
  --tv-button-text: #c2410c;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #f472b6;
  --tv-button-blue: #ec4899;
  --tv-button-text: #be185d;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #38bdf8;
  --tv-button-blue: #0ea5e9;
  --tv-button-text: #0369a1;
}

.printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #a78bfa;
  --tv-button-blue: #8b5cf6;
  --tv-button-text: #6d28d9;
}

.dark .printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #d6d3d1;
  --tv-button-blue: #a8a29e;
  --tv-button-text: #e7e5e4;
}

.dark .printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fde047;
  --tv-button-blue: #fbbf24;
  --tv-button-text: #fef9c3;
}

.dark .printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #fdba74;
  --tv-button-blue: #fb923c;
  --tv-button-text: #fed7aa;
}

.dark .printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #f9a8d4;
  --tv-button-blue: #f472b6;
  --tv-button-text: #fbcfe8;
}

.dark .printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #7dd3fc;
  --tv-button-blue: #38bdf8;
  --tv-button-text: #bae6fd;
}

.dark .printer-era-buttons:not(.printer-era-buttons--circles) .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #c4b5fd;
  --tv-button-blue: #a78bfa;
  --tv-button-text: #ede9fe;
}

.printer-era-buttons--circles .printer-era-buttons__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.printer-era-buttons--circles .printer-era-buttons__row::-webkit-scrollbar {
  height: 4px;
}

.printer-era-buttons--circles .printer-era-buttons__row::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 9999px;
}

@media (min-width: 1280px) {
  .printer-era-buttons--circles .printer-era-buttons__row {
    justify-content: center;
    overflow-x: visible;
  }
}

.printer-era-buttons--circles .phone-timeline-sticky-nav__link {
  --printer-circle-bg: #fff;
  --printer-circle-border: #f59e0b;
  --printer-circle-text: #b45309;
  flex: 0 0 auto;
  width: 4.65rem;
  height: 4.65rem;
  min-width: 4.65rem;
  min-height: 4.65rem;
  padding: 0.25rem;
  border-radius: 50%;
  border: 2px solid var(--printer-circle-border) !important;
  background: var(--printer-circle-bg) !important;
  color: var(--printer-circle-text) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.printer-era-buttons--circles .phone-timeline-sticky-nav__link::before,
.printer-era-buttons--circles .phone-timeline-sticky-nav__link::after {
  display: none;
}

.printer-era-buttons--circles .phone-timeline-sticky-nav__title {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
}

.printer-era-buttons--circles .phone-timeline-sticky-nav__years {
  margin-top: 0.1rem;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.85;
}

.printer-era-buttons--circles .phone-timeline-sticky-nav__link:hover,
.printer-era-buttons--circles .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  background: var(--printer-circle-border) !important;
  border-color: var(--printer-circle-border) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link {
  --printer-circle-bg: rgba(15, 23, 42, 0.85);
}

@media (min-width: 640px) {
  .printer-era-buttons--circles .printer-era-buttons__row {
    gap: 0.55rem;
  }

  .printer-era-buttons--circles .phone-timeline-sticky-nav__link {
    width: 5.1rem;
    height: 5.1rem;
    min-width: 5.1rem;
    min-height: 5.1rem;
  }

  .printer-era-buttons--circles .phone-timeline-sticky-nav__title {
    font-size: 0.64rem;
  }

  .printer-era-buttons--circles .phone-timeline-sticky-nav__years {
    font-size: 0.58rem;
  }
}

@media (min-width: 1024px) {
  .printer-era-buttons--circles .phone-timeline-sticky-nav__link {
    width: 5.5rem;
    height: 5.5rem;
    min-width: 5.5rem;
    min-height: 5.5rem;
  }

  .printer-era-buttons--circles .phone-timeline-sticky-nav__title {
    font-size: 0.68rem;
  }

  .printer-era-buttons--circles .phone-timeline-sticky-nav__years {
    font-size: 0.62rem;
  }
}

.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(1) { --printer-circle-border: #78716c; --printer-circle-text: #44403c; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(2) { --printer-circle-border: #d97706; --printer-circle-text: #92400e; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(3) { --printer-circle-border: #3b82f6; --printer-circle-text: #1d4ed8; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(4) { --printer-circle-border: #8b5cf6; --printer-circle-text: #6d28d9; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(5) { --printer-circle-border: #64748b; --printer-circle-text: #334155; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(6) { --printer-circle-border: #06b6d4; --printer-circle-text: #0e7490; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(7) { --printer-circle-border: #ec4899; --printer-circle-text: #be185d; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(8) { --printer-circle-border: #10b981; --printer-circle-text: #047857; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(9) { --printer-circle-border: #6366f1; --printer-circle-text: #4338ca; }
.printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(10) { --printer-circle-border: #f97316; --printer-circle-text: #c2410c; }

.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(1) { --printer-circle-border: #a8a29e; --printer-circle-text: #e7e5e4; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(2) { --printer-circle-border: #fbbf24; --printer-circle-text: #fde68a; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(3) { --printer-circle-border: #60a5fa; --printer-circle-text: #dbeafe; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(4) { --printer-circle-border: #a78bfa; --printer-circle-text: #ede9fe; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(5) { --printer-circle-border: #94a3b8; --printer-circle-text: #e2e8f0; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(6) { --printer-circle-border: #22d3ee; --printer-circle-text: #a5f3fc; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(7) { --printer-circle-border: #f472b6; --printer-circle-text: #fbcfe8; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(8) { --printer-circle-border: #34d399; --printer-circle-text: #a7f3d0; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(9) { --printer-circle-border: #818cf8; --printer-circle-text: #c7d2fe; }
.dark .printer-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(10) { --printer-circle-border: #fb923c; --printer-circle-text: #fed7aa; }

.phone-timeline-page .phone-timeline-content #printer-key-events,
.phone-timeline-page .phone-timeline-content #printer-firsts,
.phone-timeline-page .phone-timeline-content #printer-laser-evolution,
.phone-timeline-page .phone-timeline-content #printer-inkjet-evolution,
.phone-timeline-page .phone-timeline-content #printer-3d-comparison,
.phone-timeline-page .phone-timeline-content #printer-speed-resolution,
.phone-timeline-page .phone-timeline-content #printer-glossary,
.phone-timeline-page .phone-timeline-content #printer-pioneers,
.phone-timeline-page .phone-timeline-content #printer-types,
.phone-timeline-page .phone-timeline-content #printer-impact-vs-nonimpact,
.phone-timeline-page .phone-timeline-content #printer-india-history,
.phone-timeline-page .phone-timeline-content #printer-market-shift,
.phone-timeline-page .phone-timeline-content #printer-quiz,
.printer-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #printer-key-events,
  .phone-timeline-page .phone-timeline-content #printer-firsts,
  .phone-timeline-page .phone-timeline-content #printer-laser-evolution,
  .phone-timeline-page .phone-timeline-content #printer-inkjet-evolution,
  .phone-timeline-page .phone-timeline-content #printer-3d-comparison,
  .phone-timeline-page .phone-timeline-content #printer-speed-resolution,
  .phone-timeline-page .phone-timeline-content #printer-glossary,
  .phone-timeline-page .phone-timeline-content #printer-pioneers,
  .phone-timeline-page .phone-timeline-content #printer-types,
  .phone-timeline-page .phone-timeline-content #printer-impact-vs-nonimpact,
  .phone-timeline-page .phone-timeline-content #printer-india-history,
  .phone-timeline-page .phone-timeline-content #printer-market-shift,
  .phone-timeline-page .phone-timeline-content #printer-quiz,
  .printer-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Processor timeline — "How Processing Works" section */
.milestone-card__subtitle--how-processing {
  color: #6366f1;
}

.dark .milestone-card__subtitle--how-processing {
  color: #a5b4fc;
  border-top-color: rgba(165, 180, 252, 0.4);
}

.processor-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.processor-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.processor-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong,
.processor-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--how-processing li:nth-child(n) strong {
  color: #6366f1;
}

.dark .processor-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .processor-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .processor-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong,
.dark .processor-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--how-processing li:nth-child(n) strong {
  color: #a5b4fc;
}

.processor-quiz-accordion {
  --secondary: #4f46e5;
}

.processor-quiz-accordion .tab + .tab {
  border-top-color: rgba(79, 70, 229, 0.28);
}

.processor-era-buttons--circles .processor-era-buttons__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.processor-era-buttons--circles .processor-era-buttons__row::-webkit-scrollbar {
  height: 4px;
}

.processor-era-buttons--circles .processor-era-buttons__row::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 9999px;
}

@media (min-width: 1280px) {
  .processor-era-buttons--circles .processor-era-buttons__row {
    justify-content: center;
    overflow-x: visible;
  }
}

.processor-era-buttons--circles .phone-timeline-sticky-nav__link {
  --processor-circle-bg: #fff;
  --processor-circle-border: #6366f1;
  --processor-circle-text: #4338ca;
  flex: 0 0 auto;
  width: 4.65rem;
  height: 4.65rem;
  min-width: 4.65rem;
  min-height: 4.65rem;
  padding: 0.25rem;
  border-radius: 50%;
  border: 2px solid var(--processor-circle-border) !important;
  background: var(--processor-circle-bg) !important;
  color: var(--processor-circle-text) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.processor-era-buttons--circles .phone-timeline-sticky-nav__link::before,
.processor-era-buttons--circles .phone-timeline-sticky-nav__link::after {
  display: none;
}

.processor-era-buttons--circles .phone-timeline-sticky-nav__title {
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.15;
}

.processor-era-buttons--circles .phone-timeline-sticky-nav__years {
  margin-top: 0.1rem;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.85;
}

.processor-era-buttons--circles .phone-timeline-sticky-nav__link:hover,
.processor-era-buttons--circles .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  background: var(--processor-circle-border) !important;
  border-color: var(--processor-circle-border) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link {
  --processor-circle-bg: rgba(15, 23, 42, 0.85);
}

@media (min-width: 640px) {
  .processor-era-buttons--circles .processor-era-buttons__row {
    gap: 0.55rem;
  }

  .processor-era-buttons--circles .phone-timeline-sticky-nav__link {
    width: 5.1rem;
    height: 5.1rem;
    min-width: 5.1rem;
    min-height: 5.1rem;
  }

  .processor-era-buttons--circles .phone-timeline-sticky-nav__title {
    font-size: 0.62rem;
  }

  .processor-era-buttons--circles .phone-timeline-sticky-nav__years {
    font-size: 0.58rem;
  }
}

@media (min-width: 1024px) {
  .processor-era-buttons--circles .phone-timeline-sticky-nav__link {
    width: 5.5rem;
    height: 5.5rem;
    min-width: 5.5rem;
    min-height: 5.5rem;
  }

  .processor-era-buttons--circles .phone-timeline-sticky-nav__title {
    font-size: 0.66rem;
  }

  .processor-era-buttons--circles .phone-timeline-sticky-nav__years {
    font-size: 0.62rem;
  }
}

.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(1) { --processor-circle-border: #64748b; --processor-circle-text: #334155; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(2) { --processor-circle-border: #78716c; --processor-circle-text: #44403c; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(3) { --processor-circle-border: #3b82f6; --processor-circle-text: #1d4ed8; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(4) { --processor-circle-border: #8b5cf6; --processor-circle-text: #6d28d9; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(5) { --processor-circle-border: #06b6d4; --processor-circle-text: #0e7490; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(6) { --processor-circle-border: #ec4899; --processor-circle-text: #be185d; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(7) { --processor-circle-border: #10b981; --processor-circle-text: #047857; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(8) { --processor-circle-border: #f59e0b; --processor-circle-text: #b45309; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(9) { --processor-circle-border: #6366f1; --processor-circle-text: #4338ca; }
.processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(10) { --processor-circle-border: #d946ef; --processor-circle-text: #a21caf; }

.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(1) { --processor-circle-border: #94a3b8; --processor-circle-text: #e2e8f0; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(2) { --processor-circle-border: #a8a29e; --processor-circle-text: #e7e5e4; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(3) { --processor-circle-border: #60a5fa; --processor-circle-text: #dbeafe; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(4) { --processor-circle-border: #a78bfa; --processor-circle-text: #ede9fe; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(5) { --processor-circle-border: #22d3ee; --processor-circle-text: #a5f3fc; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(6) { --processor-circle-border: #f472b6; --processor-circle-text: #fbcfe8; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(7) { --processor-circle-border: #34d399; --processor-circle-text: #a7f3d0; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(8) { --processor-circle-border: #fbbf24; --processor-circle-text: #fde68a; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(9) { --processor-circle-border: #818cf8; --processor-circle-text: #c7d2fe; }
.dark .processor-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(10) { --processor-circle-border: #e879f9; --processor-circle-text: #fae8ff; }

.phone-timeline-page .phone-timeline-content #processor-key-events,
.phone-timeline-page .phone-timeline-content #processor-firsts,
.phone-timeline-page .phone-timeline-content #processor-intel-timeline,
.phone-timeline-page .phone-timeline-content #processor-transistor-evolution,
.phone-timeline-page .phone-timeline-content #processor-process-nodes,
.phone-timeline-page .phone-timeline-content #processor-pioneers,
.phone-timeline-page .phone-timeline-content #processor-then-vs-now,
.phone-timeline-page .phone-timeline-content #processor-cisc-vs-risc,
.phone-timeline-page .phone-timeline-content #processor-speed-trends,
.phone-timeline-page .phone-timeline-content #processor-india,
.phone-timeline-page .phone-timeline-content #processor-quiz,
.processor-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #processor-key-events,
  .phone-timeline-page .phone-timeline-content #processor-firsts,
  .phone-timeline-page .phone-timeline-content #processor-intel-timeline,
  .phone-timeline-page .phone-timeline-content #processor-transistor-evolution,
  .phone-timeline-page .phone-timeline-content #processor-process-nodes,
  .phone-timeline-page .phone-timeline-content #processor-pioneers,
  .phone-timeline-page .phone-timeline-content #processor-then-vs-now,
  .phone-timeline-page .phone-timeline-content #processor-cisc-vs-risc,
  .phone-timeline-page .phone-timeline-content #processor-speed-trends,
  .phone-timeline-page .phone-timeline-content #processor-india,
  .phone-timeline-page .phone-timeline-content #processor-quiz,
  .processor-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Internet timeline quiz accordion */
.internet-quiz-accordion {
  --secondary: #2563eb;
}

.internet-quiz-accordion .tab + .tab {
  border-top-color: rgba(37, 99, 235, 0.28);
}

/* Internet era nav — single row of circles */
.internet-era-buttons--circles .internet-era-buttons__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.internet-era-buttons--circles .internet-era-buttons__row::-webkit-scrollbar {
  height: 4px;
}

.internet-era-buttons--circles .internet-era-buttons__row::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 9999px;
}

@media (min-width: 1280px) {
  .internet-era-buttons--circles .internet-era-buttons__row {
    justify-content: center;
    overflow-x: visible;
  }
}

.internet-era-buttons--circles .phone-timeline-sticky-nav__link {
  --internet-circle-bg: #fff;
  --internet-circle-border: #2563eb;
  --internet-circle-text: #1d4ed8;
  flex: 0 0 auto;
  width: 4.65rem;
  height: 4.65rem;
  min-width: 4.65rem;
  min-height: 4.65rem;
  padding: 0.25rem;
  border-radius: 50%;
  border: 2px solid var(--internet-circle-border) !important;
  background: var(--internet-circle-bg) !important;
  color: var(--internet-circle-text) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.internet-era-buttons--circles .phone-timeline-sticky-nav__link::before,
.internet-era-buttons--circles .phone-timeline-sticky-nav__link::after {
  display: none;
}

.internet-era-buttons--circles .phone-timeline-sticky-nav__title {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
}

.internet-era-buttons--circles .phone-timeline-sticky-nav__years {
  margin-top: 0.1rem;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.85;
}

.internet-era-buttons--circles .phone-timeline-sticky-nav__link:hover,
.internet-era-buttons--circles .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  background: var(--internet-circle-border) !important;
  border-color: var(--internet-circle-border) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link {
  --internet-circle-bg: rgba(15, 23, 42, 0.85);
}

@media (min-width: 640px) {
  .internet-era-buttons--circles .internet-era-buttons__row {
    gap: 0.55rem;
  }

  .internet-era-buttons--circles .phone-timeline-sticky-nav__link {
    width: 5.1rem;
    height: 5.1rem;
    min-width: 5.1rem;
    min-height: 5.1rem;
  }

  .internet-era-buttons--circles .phone-timeline-sticky-nav__title {
    font-size: 0.68rem;
  }

  .internet-era-buttons--circles .phone-timeline-sticky-nav__years {
    font-size: 0.58rem;
  }
}

@media (min-width: 1024px) {
  .internet-era-buttons--circles .phone-timeline-sticky-nav__link {
    width: 5.5rem;
    height: 5.5rem;
    min-width: 5.5rem;
    min-height: 5.5rem;
  }

  .internet-era-buttons--circles .phone-timeline-sticky-nav__title {
    font-size: 0.72rem;
  }

  .internet-era-buttons--circles .phone-timeline-sticky-nav__years {
    font-size: 0.62rem;
  }
}

.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(1) { --internet-circle-border: #64748b; --internet-circle-text: #334155; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(2) { --internet-circle-border: #3b82f6; --internet-circle-text: #1d4ed8; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(3) { --internet-circle-border: #6366f1; --internet-circle-text: #4338ca; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(4) { --internet-circle-border: #8b5cf6; --internet-circle-text: #6d28d9; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(5) { --internet-circle-border: #0ea5e9; --internet-circle-text: #0369a1; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(6) { --internet-circle-border: #ec4899; --internet-circle-text: #be185d; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(7) { --internet-circle-border: #10b981; --internet-circle-text: #047857; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(8) { --internet-circle-border: #14b8a6; --internet-circle-text: #0f766e; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(9) { --internet-circle-border: #f59e0b; --internet-circle-text: #b45309; }
.internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(10) { --internet-circle-border: #d946ef; --internet-circle-text: #a21caf; }

.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(1) { --internet-circle-border: #94a3b8; --internet-circle-text: #e2e8f0; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(2) { --internet-circle-border: #60a5fa; --internet-circle-text: #dbeafe; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(3) { --internet-circle-border: #818cf8; --internet-circle-text: #c7d2fe; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(4) { --internet-circle-border: #a78bfa; --internet-circle-text: #ede9fe; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(5) { --internet-circle-border: #38bdf8; --internet-circle-text: #bae6fd; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(6) { --internet-circle-border: #f472b6; --internet-circle-text: #fbcfe8; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(7) { --internet-circle-border: #34d399; --internet-circle-text: #a7f3d0; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(8) { --internet-circle-border: #2dd4bf; --internet-circle-text: #99f6e4; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(9) { --internet-circle-border: #fbbf24; --internet-circle-text: #fde68a; }
.dark .internet-era-buttons--circles .phone-timeline-sticky-nav__link:nth-child(10) { --internet-circle-border: #e879f9; --internet-circle-text: #fae8ff; }

/* Force visible spacing for internet timeline extra sections */
.phone-timeline-page .phone-timeline-content #internet-protocols,
.phone-timeline-page .phone-timeline-content #internet-vs-web,
.phone-timeline-page .phone-timeline-content #internet-india,
.phone-timeline-page .phone-timeline-content #internet-quiz,
.phone-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #internet-protocols,
  .phone-timeline-page .phone-timeline-content #internet-vs-web,
  .phone-timeline-page .phone-timeline-content #internet-india,
  .phone-timeline-page .phone-timeline-content #internet-quiz,
  .phone-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Force visible spacing for motherboard timeline extra sections */
.phone-timeline-page .phone-timeline-content #motherboard-form-factors,
.phone-timeline-page .phone-timeline-content #motherboard-bus-evolution,
.phone-timeline-page .phone-timeline-content #motherboard-key-events,
.phone-timeline-page .phone-timeline-content #motherboard-firsts,
.phone-timeline-page .phone-timeline-content #motherboard-chipsets,
.phone-timeline-page .phone-timeline-content #motherboard-sockets,
.phone-timeline-page .phone-timeline-content #motherboard-pioneers,
.phone-timeline-page .phone-timeline-content #motherboard-then-vs-now,
.phone-timeline-page .phone-timeline-content #motherboard-future-details,
.phone-timeline-page .phone-timeline-content #motherboard-glossary,
.phone-timeline-page .phone-timeline-content #motherboard-components,
.phone-timeline-page .phone-timeline-content #motherboard-india-history,
.phone-timeline-page .phone-timeline-content #motherboard-quiz,
.motherboard-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #motherboard-form-factors,
  .phone-timeline-page .phone-timeline-content #motherboard-bus-evolution,
  .phone-timeline-page .phone-timeline-content #motherboard-key-events,
  .phone-timeline-page .phone-timeline-content #motherboard-firsts,
  .phone-timeline-page .phone-timeline-content #motherboard-chipsets,
  .phone-timeline-page .phone-timeline-content #motherboard-sockets,
  .phone-timeline-page .phone-timeline-content #motherboard-pioneers,
  .phone-timeline-page .phone-timeline-content #motherboard-then-vs-now,
  .phone-timeline-page .phone-timeline-content #motherboard-future-details,
  .phone-timeline-page .phone-timeline-content #motherboard-glossary,
  .phone-timeline-page .phone-timeline-content #motherboard-components,
  .phone-timeline-page .phone-timeline-content #motherboard-india-history,
  .phone-timeline-page .phone-timeline-content #motherboard-quiz,
  .motherboard-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Force visible spacing for computer timeline extra sections */
.phone-timeline-page .phone-timeline-content #computer-pioneers,
.phone-timeline-page .phone-timeline-content #computer-generations,
.phone-timeline-page .phone-timeline-content #computer-os-evolution,
.phone-timeline-page .phone-timeline-content #computer-storage-evolution,
.phone-timeline-page .phone-timeline-content #computer-india-history,
.phone-timeline-page .phone-timeline-content #computer-ads-history,
.phone-timeline-page .phone-timeline-content #computer-quiz,
.phone-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #computer-pioneers,
  .phone-timeline-page .phone-timeline-content #computer-generations,
  .phone-timeline-page .phone-timeline-content #computer-os-evolution,
  .phone-timeline-page .phone-timeline-content #computer-storage-evolution,
  .phone-timeline-page .phone-timeline-content #computer-india-history,
  .phone-timeline-page .phone-timeline-content #computer-ads-history,
  .phone-timeline-page .phone-timeline-content #computer-quiz,
  .phone-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Force visible spacing for radio timeline extra sections */
.phone-timeline-page .phone-timeline-content #radio-key-events,
.phone-timeline-page .phone-timeline-content #radio-firsts,
.phone-timeline-page .phone-timeline-content #radio-pioneers,
.phone-timeline-page .phone-timeline-content #radio-frequency-bands,
.phone-timeline-page .phone-timeline-content #radio-am-fm,
.phone-timeline-page .phone-timeline-content #radio-internet-vs-traditional,
.phone-timeline-page .phone-timeline-content #radio-receiver-evolution,
.phone-timeline-page .phone-timeline-content #radio-transistor,
.phone-timeline-page .phone-timeline-content #radio-sdr,
.phone-timeline-page .phone-timeline-content #radio-ham,
.phone-timeline-page .phone-timeline-content #radio-eas,
.phone-timeline-page .phone-timeline-content #radio-spectrum-regulation,
.phone-timeline-page .phone-timeline-content #radio-satellite,
.phone-timeline-page .phone-timeline-content #radio-india-history,
.phone-timeline-page .phone-timeline-content #radio-ads-history,
.phone-timeline-page .phone-timeline-content #radio-quiz,
.phone-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #radio-key-events,
  .phone-timeline-page .phone-timeline-content #radio-firsts,
  .phone-timeline-page .phone-timeline-content #radio-pioneers,
  .phone-timeline-page .phone-timeline-content #radio-frequency-bands,
  .phone-timeline-page .phone-timeline-content #radio-am-fm,
  .phone-timeline-page .phone-timeline-content #radio-internet-vs-traditional,
  .phone-timeline-page .phone-timeline-content #radio-receiver-evolution,
  .phone-timeline-page .phone-timeline-content #radio-transistor,
  .phone-timeline-page .phone-timeline-content #radio-sdr,
  .phone-timeline-page .phone-timeline-content #radio-ham,
  .phone-timeline-page .phone-timeline-content #radio-eas,
  .phone-timeline-page .phone-timeline-content #radio-spectrum-regulation,
  .phone-timeline-page .phone-timeline-content #radio-satellite,
  .phone-timeline-page .phone-timeline-content #radio-india-history,
  .phone-timeline-page .phone-timeline-content #radio-ads-history,
  .phone-timeline-page .phone-timeline-content #radio-quiz,
  .phone-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Students tasks section */
.student-tasks {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(140deg, rgba(219, 234, 254, 0.75), rgba(238, 242, 255, 0.72), rgba(224, 242, 254, 0.65));
  box-shadow: 0 18px 42px -30px rgba(37, 99, 235, 0.5);
}

.student-tasks::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.18), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.15), transparent 42%);
  pointer-events: none;
}

.dark .student-tasks {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.7), rgba(12, 74, 110, 0.35));
}

.student-tasks__header,
.student-tasks__chips,
.student-tasks__list {
  position: relative;
  z-index: 1;
}

.student-tasks__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.dark .student-tasks__eyebrow {
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(96, 165, 250, 0.35);
}

.student-tasks__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e3a8a;
}

.dark .student-tasks__title {
  color: #dbeafe;
}

.student-tasks__lead {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

.dark .student-tasks__lead {
  color: #cbd5e1;
}

.student-tasks__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.student-tasks__chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e40af;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.dark .student-tasks__chip {
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(96, 165, 250, 0.32);
}

.student-tasks__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  counter-reset: student-task;
}

.student-task-item {
  position: relative;
  padding: 0.75rem 0.8rem 0.75rem 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.55;
  counter-increment: student-task;
}

.student-task-item::before {
  content: counter(student-task);
  position: absolute;
  left: 0.75rem;
  top: 0.72rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 5px 14px -8px rgba(37, 99, 235, 0.75);
}

.dark .student-task-item {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(100, 116, 139, 0.4);
}


/* =====================================================
   Peripheral & software timeline themes (keyboard, mouse, scanner, os, plang, networking, ai)
   ===================================================== */

/* Keyboard timeline quiz accordion */
.keyboard-quiz-accordion {
  --secondary: #14b8a6;
}

.keyboard-quiz-accordion .tab + .tab {
  border-top-color: rgba(20, 184, 166, 0.28);
}

/* keyboard era nav buttons */
.keyboard-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #2dd4bf;
  --tv-button-blue: #14b8a6;
  --tv-button-text: #0f766e;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link::before,
.keyboard-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:hover,
.keyboard-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.keyboard-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.keyboard-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .keyboard-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #5eead4;
  --tv-button-blue: #2dd4bf;
  --tv-button-text: #ccfbf1;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #a8a29e;
  --tv-button-blue: #78716c;
  --tv-button-text: #44403c;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #2dd4bf;
  --tv-button-blue: #14b8a6;
  --tv-button-text: #0f766e;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #06b6d4;
  --tv-button-blue: #0891b2;
  --tv-button-text: #0e7490;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #34d399;
  --tv-button-blue: #10b981;
  --tv-button-text: #047857;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #818cf8;
  --tv-button-blue: #6366f1;
  --tv-button-text: #4338ca;
}

.keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #fbbf24;
  --tv-button-blue: #f59e0b;
  --tv-button-text: #b45309;
}

.dark .keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #d6d3d1;
  --tv-button-blue: #a8a29e;
  --tv-button-text: #e7e5e4;
}

.dark .keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #5eead4;
  --tv-button-blue: #2dd4bf;
  --tv-button-text: #ccfbf1;
}

.dark .keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #67e8f9;
  --tv-button-blue: #22d3ee;
  --tv-button-text: #cffafe;
}

.dark .keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #6ee7b7;
  --tv-button-blue: #34d399;
  --tv-button-text: #a7f3d0;
}

.dark .keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #a5b4fc;
  --tv-button-blue: #818cf8;
  --tv-button-text: #c7d2fe;
}

.dark .keyboard-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #fde047;
  --tv-button-blue: #fbbf24;
  --tv-button-text: #fef9c3;
}

/* Keyboard timeline — bullet heading color */
.keyboard-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.keyboard-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.keyboard-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #14b8a6;
}

.dark .keyboard-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .keyboard-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .keyboard-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #5eead4;
}

/* Force visible spacing for keyboard timeline extra sections */
.phone-timeline-page .phone-timeline-content #keyboard-layouts,
.phone-timeline-page .phone-timeline-content #keyboard-switch-details,
.phone-timeline-page .phone-timeline-content #keyboard-key-events,
.phone-timeline-page .phone-timeline-content #keyboard-firsts,
.phone-timeline-page .phone-timeline-content #keyboard-sizes,
.phone-timeline-page .phone-timeline-content #keyboard-pioneers,
.phone-timeline-page .phone-timeline-content #keyboard-then-vs-now,
.phone-timeline-page .phone-timeline-content #keyboard-future-details,
.phone-timeline-page .phone-timeline-content #keyboard-glossary,
.phone-timeline-page .phone-timeline-content #keyboard-summary,
.phone-timeline-page .phone-timeline-content #keyboard-india,
.phone-timeline-page .phone-timeline-content #keyboard-quiz,
.keyboard-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #keyboard-layouts,
  .phone-timeline-page .phone-timeline-content #keyboard-switch-details,
  .phone-timeline-page .phone-timeline-content #keyboard-key-events,
  .phone-timeline-page .phone-timeline-content #keyboard-firsts,
  .phone-timeline-page .phone-timeline-content #keyboard-sizes,
  .phone-timeline-page .phone-timeline-content #keyboard-pioneers,
  .phone-timeline-page .phone-timeline-content #keyboard-then-vs-now,
  .phone-timeline-page .phone-timeline-content #keyboard-future-details,
  .phone-timeline-page .phone-timeline-content #keyboard-glossary,
  .phone-timeline-page .phone-timeline-content #keyboard-summary,
  .phone-timeline-page .phone-timeline-content #keyboard-india,
  .phone-timeline-page .phone-timeline-content #keyboard-quiz,
  .keyboard-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Mouse timeline quiz accordion */
.mouse-quiz-accordion {
  --secondary: #f43f5e;
}

.mouse-quiz-accordion .tab + .tab {
  border-top-color: rgba(244, 63, 94, 0.28);
}

/* mouse era nav buttons */
.mouse-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #fb7185;
  --tv-button-blue: #f43f5e;
  --tv-button-text: #be123c;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link::before,
.mouse-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:hover,
.mouse-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.mouse-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.mouse-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .mouse-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #fda4af;
  --tv-button-blue: #fb7185;
  --tv-button-text: #ffe4e6;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #94a3b8;
  --tv-button-blue: #64748b;
  --tv-button-text: #334155;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fb7185;
  --tv-button-blue: #f43f5e;
  --tv-button-text: #be123c;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #f472b6;
  --tv-button-blue: #ec4899;
  --tv-button-text: #be185d;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #fda4af;
  --tv-button-blue: #fb7185;
  --tv-button-text: #9f1239;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #c084fc;
  --tv-button-blue: #a855f7;
  --tv-button-text: #7e22ce;
}

.mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #fb923c;
  --tv-button-blue: #f97316;
  --tv-button-text: #c2410c;
}

.dark .mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #cbd5e1;
  --tv-button-blue: #94a3b8;
  --tv-button-text: #e2e8f0;
}

.dark .mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fda4af;
  --tv-button-blue: #fb7185;
  --tv-button-text: #ffe4e6;
}

.dark .mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #f9a8d4;
  --tv-button-blue: #f472b6;
  --tv-button-text: #fbcfe8;
}

.dark .mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #fecdd3;
  --tv-button-blue: #fda4af;
  --tv-button-text: #fff1f2;
}

.dark .mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #d8b4fe;
  --tv-button-blue: #c084fc;
  --tv-button-text: #f3e8ff;
}

.dark .mouse-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #fdba74;
  --tv-button-blue: #fb923c;
  --tv-button-text: #fed7aa;
}

/* Mouse timeline — bullet heading color */
.mouse-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.mouse-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.mouse-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #f43f5e;
}

.dark .mouse-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .mouse-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .mouse-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #fb7185;
}

/* Force visible spacing for mouse timeline extra sections */
.phone-timeline-page .phone-timeline-content #mouse-tracking-tech,
.phone-timeline-page .phone-timeline-content #mouse-design-types,
.phone-timeline-page .phone-timeline-content #mouse-key-events,
.phone-timeline-page .phone-timeline-content #mouse-firsts,
.phone-timeline-page .phone-timeline-content #mouse-types,
.phone-timeline-page .phone-timeline-content #mouse-dpi,
.phone-timeline-page .phone-timeline-content #mouse-sensors,
.phone-timeline-page .phone-timeline-content #mouse-connections,
.phone-timeline-page .phone-timeline-content #mouse-pioneers,
.phone-timeline-page .phone-timeline-content #mouse-then-vs-now,
.phone-timeline-page .phone-timeline-content #mouse-future-details,
.phone-timeline-page .phone-timeline-content #mouse-glossary,
.phone-timeline-page .phone-timeline-content #mouse-summary,
.phone-timeline-page .phone-timeline-content #mouse-india,
.phone-timeline-page .phone-timeline-content #mouse-quiz,
.mouse-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #mouse-tracking-tech,
  .phone-timeline-page .phone-timeline-content #mouse-design-types,
  .phone-timeline-page .phone-timeline-content #mouse-key-events,
  .phone-timeline-page .phone-timeline-content #mouse-firsts,
  .phone-timeline-page .phone-timeline-content #mouse-types,
  .phone-timeline-page .phone-timeline-content #mouse-dpi,
  .phone-timeline-page .phone-timeline-content #mouse-sensors,
  .phone-timeline-page .phone-timeline-content #mouse-connections,
  .phone-timeline-page .phone-timeline-content #mouse-pioneers,
  .phone-timeline-page .phone-timeline-content #mouse-then-vs-now,
  .phone-timeline-page .phone-timeline-content #mouse-future-details,
  .phone-timeline-page .phone-timeline-content #mouse-glossary,
  .phone-timeline-page .phone-timeline-content #mouse-summary,
  .phone-timeline-page .phone-timeline-content #mouse-india,
  .phone-timeline-page .phone-timeline-content #mouse-quiz,
  .mouse-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Scanner timeline quiz accordion */
.scanner-quiz-accordion {
  --secondary: #22c55e;
}

.scanner-quiz-accordion .tab + .tab {
  border-top-color: rgba(34, 197, 94, 0.28);
}

/* scanner era nav buttons */
.scanner-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #4ade80;
  --tv-button-blue: #22c55e;
  --tv-button-text: #15803d;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link::before,
.scanner-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:hover,
.scanner-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.scanner-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.scanner-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .scanner-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #86efac;
  --tv-button-blue: #4ade80;
  --tv-button-text: #dcfce7;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #78716c;
  --tv-button-blue: #57534e;
  --tv-button-text: #44403c;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #4ade80;
  --tv-button-blue: #22c55e;
  --tv-button-text: #15803d;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #86efac;
  --tv-button-blue: #4ade80;
  --tv-button-text: #166534;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #34d399;
  --tv-button-blue: #10b981;
  --tv-button-text: #047857;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #a3e635;
  --tv-button-blue: #84cc16;
  --tv-button-text: #4d7c0f;
}

.scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #06b6d4;
  --tv-button-blue: #0891b2;
  --tv-button-text: #0e7490;
}

.dark .scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #d6d3d1;
  --tv-button-blue: #a8a29e;
  --tv-button-text: #e7e5e4;
}

.dark .scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #86efac;
  --tv-button-blue: #4ade80;
  --tv-button-text: #dcfce7;
}

.dark .scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #bbf7d0;
  --tv-button-blue: #86efac;
  --tv-button-text: #f0fdf4;
}

.dark .scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #6ee7b7;
  --tv-button-blue: #34d399;
  --tv-button-text: #a7f3d0;
}

.dark .scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #d9f99d;
  --tv-button-blue: #a3e635;
  --tv-button-text: #ecfccb;
}

.dark .scanner-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #67e8f9;
  --tv-button-blue: #22d3ee;
  --tv-button-text: #cffafe;
}

/* Scanner timeline — bullet heading color */
.scanner-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.scanner-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.scanner-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #22c55e;
}

.dark .scanner-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .scanner-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .scanner-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #4ade80;
}

/* Force visible spacing for scanner timeline extra sections */
.phone-timeline-page .phone-timeline-content #scanner-key-events,
.phone-timeline-page .phone-timeline-content #scanner-firsts,
.phone-timeline-page .phone-timeline-content #scanner-sensors,
.phone-timeline-page .phone-timeline-content #scanner-interfaces,
.phone-timeline-page .phone-timeline-content #scanner-dpi-evolution,
.phone-timeline-page .phone-timeline-content #scanner-ocr-evolution,
.phone-timeline-page .phone-timeline-content #scanner-pioneers,
.phone-timeline-page .phone-timeline-content #scanner-then-vs-now,
.phone-timeline-page .phone-timeline-content #scanner-future-details,
.phone-timeline-page .phone-timeline-content #scanner-types,
.phone-timeline-page .phone-timeline-content #scanner-formats,
.phone-timeline-page .phone-timeline-content #scanner-india,
.phone-timeline-page .phone-timeline-content #scanner-quiz,
.scanner-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #scanner-key-events,
  .phone-timeline-page .phone-timeline-content #scanner-firsts,
  .phone-timeline-page .phone-timeline-content #scanner-sensors,
  .phone-timeline-page .phone-timeline-content #scanner-interfaces,
  .phone-timeline-page .phone-timeline-content #scanner-dpi-evolution,
  .phone-timeline-page .phone-timeline-content #scanner-ocr-evolution,
  .phone-timeline-page .phone-timeline-content #scanner-pioneers,
  .phone-timeline-page .phone-timeline-content #scanner-then-vs-now,
  .phone-timeline-page .phone-timeline-content #scanner-future-details,
  .phone-timeline-page .phone-timeline-content #scanner-types,
  .phone-timeline-page .phone-timeline-content #scanner-formats,
  .phone-timeline-page .phone-timeline-content #scanner-india,
  .phone-timeline-page .phone-timeline-content #scanner-quiz,
  .scanner-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Operating system timeline quiz accordion */
.os-quiz-accordion {
  --secondary: #2563eb;
}

.os-quiz-accordion .tab + .tab {
  border-top-color: rgba(37, 99, 235, 0.28);
}

/* os era nav buttons */
.os-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #60a5fa;
  --tv-button-blue: #2563eb;
  --tv-button-text: #1d4ed8;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.os-era-buttons .phone-timeline-sticky-nav__link::before,
.os-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.os-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.os-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.os-era-buttons .phone-timeline-sticky-nav__link:hover,
.os-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.os-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.os-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.os-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.os-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .os-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #93c5fd;
  --tv-button-blue: #60a5fa;
  --tv-button-text: #dbeafe;
}

.os-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #64748b;
  --tv-button-blue: #475569;
  --tv-button-text: #334155;
}

.os-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #60a5fa;
  --tv-button-blue: #2563eb;
  --tv-button-text: #1d4ed8;
}

.os-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #38bdf8;
  --tv-button-blue: #0ea5e9;
  --tv-button-text: #0369a1;
}

.os-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #818cf8;
  --tv-button-blue: #6366f1;
  --tv-button-text: #4338ca;
}

.os-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #94a3b8;
  --tv-button-blue: #64748b;
  --tv-button-text: #475569;
}

.os-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #14b8a6;
  --tv-button-blue: #0d9488;
  --tv-button-text: #0f766e;
}

.dark .os-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #94a3b8;
  --tv-button-blue: #64748b;
  --tv-button-text: #e2e8f0;
}

.dark .os-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #93c5fd;
  --tv-button-blue: #60a5fa;
  --tv-button-text: #dbeafe;
}

.dark .os-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #7dd3fc;
  --tv-button-blue: #38bdf8;
  --tv-button-text: #bae6fd;
}

.dark .os-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #a5b4fc;
  --tv-button-blue: #818cf8;
  --tv-button-text: #c7d2fe;
}

.dark .os-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #cbd5e1;
  --tv-button-blue: #94a3b8;
  --tv-button-text: #f1f5f9;
}

.dark .os-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #5eead4;
  --tv-button-blue: #2dd4bf;
  --tv-button-text: #ccfbf1;
}

/* Operating system timeline — bullet heading color */
.os-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.os-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.os-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #2563eb;
}

.dark .os-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .os-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .os-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #60a5fa;
}

/* Force visible spacing for os timeline extra sections */
.phone-timeline-page .phone-timeline-content #os-types-comparison,
.phone-timeline-page .phone-timeline-content #os-kernel-shell,
.phone-timeline-page .phone-timeline-content #os-key-events,
.phone-timeline-page .phone-timeline-content #os-firsts,
.phone-timeline-page .phone-timeline-content #os-windows-timeline,
.phone-timeline-page .phone-timeline-content #os-macos-timeline,
.phone-timeline-page .phone-timeline-content #os-linux-timeline,
.phone-timeline-page .phone-timeline-content #os-mobile-timeline,
.phone-timeline-page .phone-timeline-content #os-kernel-types,
.phone-timeline-page .phone-timeline-content #os-pioneers,
.phone-timeline-page .phone-timeline-content #os-then-vs-now,
.phone-timeline-page .phone-timeline-content #os-future-details,
.phone-timeline-page .phone-timeline-content #os-families,
.phone-timeline-page .phone-timeline-content #os-services,
.phone-timeline-page .phone-timeline-content #os-summary,
.phone-timeline-page .phone-timeline-content #os-india,
.phone-timeline-page .phone-timeline-content #os-quiz,
.os-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #os-types-comparison,
  .phone-timeline-page .phone-timeline-content #os-kernel-shell,
  .phone-timeline-page .phone-timeline-content #os-key-events,
  .phone-timeline-page .phone-timeline-content #os-firsts,
  .phone-timeline-page .phone-timeline-content #os-windows-timeline,
  .phone-timeline-page .phone-timeline-content #os-macos-timeline,
  .phone-timeline-page .phone-timeline-content #os-linux-timeline,
  .phone-timeline-page .phone-timeline-content #os-mobile-timeline,
  .phone-timeline-page .phone-timeline-content #os-kernel-types,
  .phone-timeline-page .phone-timeline-content #os-pioneers,
  .phone-timeline-page .phone-timeline-content #os-then-vs-now,
  .phone-timeline-page .phone-timeline-content #os-future-details,
  .phone-timeline-page .phone-timeline-content #os-families,
  .phone-timeline-page .phone-timeline-content #os-services,
  .phone-timeline-page .phone-timeline-content #os-summary,
  .phone-timeline-page .phone-timeline-content #os-india,
  .phone-timeline-page .phone-timeline-content #os-quiz,
  .os-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Programming languages timeline quiz accordion */
.plang-quiz-accordion {
  --secondary: #ea580c;
}

.plang-quiz-accordion .tab + .tab {
  border-top-color: rgba(234, 88, 12, 0.28);
}

/* plang era nav buttons */
.plang-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #fb923c;
  --tv-button-blue: #ea580c;
  --tv-button-text: #c2410c;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.plang-era-buttons .phone-timeline-sticky-nav__link::before,
.plang-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.plang-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.plang-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:hover,
.plang-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.plang-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.plang-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .plang-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #fdba74;
  --tv-button-blue: #fb923c;
  --tv-button-text: #fed7aa;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #78716c;
  --tv-button-blue: #57534e;
  --tv-button-text: #44403c;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fb923c;
  --tv-button-blue: #ea580c;
  --tv-button-text: #c2410c;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #fbbf24;
  --tv-button-blue: #f59e0b;
  --tv-button-text: #b45309;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #f97316;
  --tv-button-blue: #ea580c;
  --tv-button-text: #9a3412;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #fcd34d;
  --tv-button-blue: #fbbf24;
  --tv-button-text: #92400e;
}

.plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #818cf8;
  --tv-button-blue: #6366f1;
  --tv-button-text: #4338ca;
}

.dark .plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #d6d3d1;
  --tv-button-blue: #a8a29e;
  --tv-button-text: #e7e5e4;
}

.dark .plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #fdba74;
  --tv-button-blue: #fb923c;
  --tv-button-text: #fed7aa;
}

.dark .plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #fde047;
  --tv-button-blue: #fbbf24;
  --tv-button-text: #fef9c3;
}

.dark .plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #fb923c;
  --tv-button-blue: #f97316;
  --tv-button-text: #ffedd5;
}

.dark .plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #fef08a;
  --tv-button-blue: #fcd34d;
  --tv-button-text: #fefce8;
}

.dark .plang-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #a5b4fc;
  --tv-button-blue: #818cf8;
  --tv-button-text: #c7d2fe;
}

/* Programming languages timeline — bullet heading color */
.plang-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.plang-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.plang-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #ea580c;
}

.dark .plang-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .plang-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .plang-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #fb923c;
}

/* Force visible spacing for plang timeline extra sections */
.phone-timeline-page .phone-timeline-content #plang-key-events,
.phone-timeline-page .phone-timeline-content #plang-firsts,
.phone-timeline-page .phone-timeline-content #plang-comprehensive-timeline,
.phone-timeline-page .phone-timeline-content #plang-typing,
.phone-timeline-page .phone-timeline-content #plang-creators,
.phone-timeline-page .phone-timeline-content #plang-then-vs-now,
.phone-timeline-page .phone-timeline-content #plang-future-details,
.phone-timeline-page .phone-timeline-content #plang-paradigms,
.phone-timeline-page .phone-timeline-content #plang-runtimes,
.phone-timeline-page .phone-timeline-content #plang-summary,
.phone-timeline-page .phone-timeline-content #plang-india,
.phone-timeline-page .phone-timeline-content #plang-quiz,
.plang-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #plang-key-events,
  .phone-timeline-page .phone-timeline-content #plang-firsts,
  .phone-timeline-page .phone-timeline-content #plang-comprehensive-timeline,
  .phone-timeline-page .phone-timeline-content #plang-typing,
  .phone-timeline-page .phone-timeline-content #plang-creators,
  .phone-timeline-page .phone-timeline-content #plang-then-vs-now,
  .phone-timeline-page .phone-timeline-content #plang-future-details,
  .phone-timeline-page .phone-timeline-content #plang-paradigms,
  .phone-timeline-page .phone-timeline-content #plang-runtimes,
  .phone-timeline-page .phone-timeline-content #plang-summary,
  .phone-timeline-page .phone-timeline-content #plang-india,
  .phone-timeline-page .phone-timeline-content #plang-quiz,
  .plang-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Computer networking timeline quiz accordion */
.networking-quiz-accordion {
  --secondary: #7c3aed;
}

.networking-quiz-accordion .tab + .tab {
  border-top-color: rgba(124, 58, 237, 0.28);
}

/* networking era nav buttons */
.networking-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #a78bfa;
  --tv-button-blue: #7c3aed;
  --tv-button-text: #6d28d9;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.networking-era-buttons .phone-timeline-sticky-nav__link::before,
.networking-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.networking-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.networking-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:hover,
.networking-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.networking-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.networking-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .networking-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #c4b5fd;
  --tv-button-blue: #a78bfa;
  --tv-button-text: #ede9fe;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #64748b;
  --tv-button-blue: #475569;
  --tv-button-text: #334155;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #a78bfa;
  --tv-button-blue: #7c3aed;
  --tv-button-text: #6d28d9;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #818cf8;
  --tv-button-blue: #6366f1;
  --tv-button-text: #4338ca;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #c084fc;
  --tv-button-blue: #a855f7;
  --tv-button-text: #7e22ce;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #06b6d4;
  --tv-button-blue: #0891b2;
  --tv-button-text: #0e7490;
}

.networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #34d399;
  --tv-button-blue: #10b981;
  --tv-button-text: #047857;
}

.dark .networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #94a3b8;
  --tv-button-blue: #64748b;
  --tv-button-text: #e2e8f0;
}

.dark .networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #c4b5fd;
  --tv-button-blue: #a78bfa;
  --tv-button-text: #ede9fe;
}

.dark .networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #a5b4fc;
  --tv-button-blue: #818cf8;
  --tv-button-text: #c7d2fe;
}

.dark .networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #d8b4fe;
  --tv-button-blue: #c084fc;
  --tv-button-text: #f3e8ff;
}

.dark .networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #67e8f9;
  --tv-button-blue: #22d3ee;
  --tv-button-text: #cffafe;
}

.dark .networking-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #6ee7b7;
  --tv-button-blue: #34d399;
  --tv-button-text: #a7f3d0;
}

/* Computer networking timeline — bullet heading color */
.networking-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.networking-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.networking-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #7c3aed;
}

.dark .networking-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .networking-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .networking-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #a78bfa;
}

/* Force visible spacing for networking timeline extra sections */
.phone-timeline-page .phone-timeline-content #networking-key-events,
.phone-timeline-page .phone-timeline-content #networking-firsts,
.phone-timeline-page .phone-timeline-content #networking-bandwidth,
.phone-timeline-page .phone-timeline-content #networking-osi-model,
.phone-timeline-page .phone-timeline-content #networking-wifi-generations,
.phone-timeline-page .phone-timeline-content #networking-mobile-generations,
.phone-timeline-page .phone-timeline-content #networking-pioneers,
.phone-timeline-page .phone-timeline-content #networking-famous-inventions,
.phone-timeline-page .phone-timeline-content #networking-hardware-evolution,
.phone-timeline-page .phone-timeline-content #networking-devices-gallery,
.phone-timeline-page .phone-timeline-content #networking-world-milestones,
.phone-timeline-page .phone-timeline-content #networking-topologies,
.phone-timeline-page .phone-timeline-content #networking-security,
.phone-timeline-page .phone-timeline-content #networking-future-timeline,
.phone-timeline-page .phone-timeline-content #networking-then-vs-now,
.phone-timeline-page .phone-timeline-content #networking-glossary,
.phone-timeline-page .phone-timeline-content #networking-how-it-works,
.phone-timeline-page .phone-timeline-content #network-protocols,
.phone-timeline-page .phone-timeline-content #network-hardware,
.phone-timeline-page .phone-timeline-content #networking-protocols,
.phone-timeline-page .phone-timeline-content #networking-summary,
.phone-timeline-page .phone-timeline-content #networking-india,
.phone-timeline-page .phone-timeline-content #networking-quiz,
.networking-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #networking-key-events,
  .phone-timeline-page .phone-timeline-content #networking-firsts,
  .phone-timeline-page .phone-timeline-content #networking-bandwidth,
  .phone-timeline-page .phone-timeline-content #networking-osi-model,
  .phone-timeline-page .phone-timeline-content #networking-wifi-generations,
  .phone-timeline-page .phone-timeline-content #networking-mobile-generations,
  .phone-timeline-page .phone-timeline-content #networking-pioneers,
  .phone-timeline-page .phone-timeline-content #networking-famous-inventions,
  .phone-timeline-page .phone-timeline-content #networking-hardware-evolution,
  .phone-timeline-page .phone-timeline-content #networking-devices-gallery,
  .phone-timeline-page .phone-timeline-content #networking-world-milestones,
  .phone-timeline-page .phone-timeline-content #networking-topologies,
  .phone-timeline-page .phone-timeline-content #networking-security,
  .phone-timeline-page .phone-timeline-content #networking-future-timeline,
  .phone-timeline-page .phone-timeline-content #networking-then-vs-now,
  .phone-timeline-page .phone-timeline-content #networking-glossary,
  .phone-timeline-page .phone-timeline-content #networking-how-it-works,
  .phone-timeline-page .phone-timeline-content #network-protocols,
  .phone-timeline-page .phone-timeline-content #network-hardware,
  .phone-timeline-page .phone-timeline-content #networking-protocols,
  .phone-timeline-page .phone-timeline-content #networking-summary,
  .phone-timeline-page .phone-timeline-content #networking-india,
  .phone-timeline-page .phone-timeline-content #networking-quiz,
  .networking-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* Networking topology list */
.networking-topology-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.networking-topology-list__item {
  display: grid;
  grid-template-columns: 4.5rem 5rem 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(238, 242, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.45;
}

.dark .networking-topology-list__item {
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(30, 27, 75, 0.45);
}

.networking-topology-list__item strong {
  color: #4f46e5;
}

.dark .networking-topology-list__item strong {
  color: #a5b4fc;
}

.networking-topology-list__diagram {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: #6366f1;
  letter-spacing: 0.02em;
}

.dark .networking-topology-list__diagram {
  color: #818cf8;
}

@media (max-width: 480px) {
  .networking-topology-list__item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .networking-topology-list__diagram {
    justify-self: start;
  }
}

/* Networking — famous invention cards */
.networking-invention-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .networking-invention-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .networking-invention-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.networking-invention-card {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(145deg, rgba(238, 242, 255, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: 0 4px 14px -10px rgba(79, 70, 229, 0.35);
}

.dark .networking-invention-card {
  border-color: rgba(129, 140, 248, 0.32);
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.9), rgba(15, 23, 42, 0.85));
}

.networking-invention-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #4338ca;
}

.dark .networking-invention-card__name {
  color: #c4b5fd;
}

.networking-invention-card__meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6366f1;
}

.networking-invention-card__meta span {
  color: #4f46e5;
}

.dark .networking-invention-card__meta,
.dark .networking-invention-card__meta span {
  color: #a5b4fc;
}

.networking-invention-card__impact {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
}

.dark .networking-invention-card__impact {
  color: #cbd5e1;
}

/* Networking — hardware evolution track */
.networking-evolution-track__scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.networking-evolution-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(238, 242, 255, 0.85);
  text-align: center;
}

.dark .networking-evolution-step {
  background: rgba(30, 27, 75, 0.65);
  border-color: rgba(129, 140, 248, 0.35);
}

.networking-evolution-step--current {
  border-color: rgba(6, 182, 212, 0.55);
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.95), rgba(238, 242, 255, 0.9));
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.25);
}

.dark .networking-evolution-step--current {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 27, 75, 0.85));
}

.networking-evolution-step__era {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6366f1;
}

.networking-evolution-step__label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #312e81;
}

.dark .networking-evolution-step__era {
  color: #a5b4fc;
}

.dark .networking-evolution-step__label {
  color: #e0e7ff;
}

.networking-evolution-step__arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 1rem;
  color: #818cf8;
  padding: 0 0.1rem;
}

/* Networking — devices gallery */
.networking-devices-gallery {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.networking-devices-gallery__item {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  border-left: 4px solid #6366f1;
  background: rgba(238, 242, 255, 0.65);
}

.dark .networking-devices-gallery__item {
  border-left-color: #818cf8;
  background: rgba(30, 27, 75, 0.5);
}

.networking-devices-gallery__year {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4f46e5;
}

.dark .networking-devices-gallery__year {
  color: #a5b4fc;
}

.networking-devices-gallery__device {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
}

.dark .networking-devices-gallery__device {
  color: #f1f5f9;
}

/* Networking — future timeline */
.networking-future-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.networking-future-timeline__item {
  display: grid;
  grid-template-columns: 4rem auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(238, 242, 255, 0.55);
}

.dark .networking-future-timeline__item {
  border-color: rgba(129, 140, 248, 0.28);
  background: rgba(30, 27, 75, 0.45);
}

.networking-future-timeline__item--highlight {
  border-color: rgba(6, 182, 212, 0.45);
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.8), rgba(238, 242, 255, 0.5));
}

.dark .networking-future-timeline__item--highlight {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.5));
}

.networking-future-timeline__year {
  font-weight: 800;
  font-size: 0.9rem;
  color: #4f46e5;
}

.dark .networking-future-timeline__year {
  color: #c4b5fd;
}

.networking-future-timeline__arrow {
  color: #6366f1;
  font-weight: 700;
}

.networking-future-timeline__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.dark .networking-future-timeline__label {
  color: #e2e8f0;
}

/* Artificial intelligence timeline — neural quiz accordion */
.ai-quiz-accordion.ai-quiz-accordion--neural {
  --primary: #6d28d9;
  --secondary: #a855f7;
  --theme: linear-gradient(135deg, #6d28d9 0%, #a855f7 45%, #22d3ee 100%);
  color: #c4b5fd;
  border: 0;
  border-radius: 1rem;
  padding: 0.5rem;
  background: linear-gradient(145deg, rgba(237, 233, 254, 0.92), rgba(224, 242, 254, 0.88));
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 16px 48px -20px rgba(109, 40, 217, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: visible;
}

.dark .ai-quiz-accordion.ai-quiz-accordion--neural {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.92), rgba(15, 23, 42, 0.88));
  box-shadow:
    0 0 0 1px rgba(192, 132, 252, 0.28),
    0 16px 48px -20px rgba(88, 28, 135, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab + .tab {
  border-top: 0;
  margin-top: 0.45rem;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__label,
.ai-quiz-accordion.ai-quiz-accordion--neural .tab__close {
  color: #faf5ff;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  box-shadow: 0 4px 14px -6px rgba(91, 33, 182, 0.55);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab:nth-child(3n) .tab__label {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab:nth-child(3n + 1) .tab__label {
  background: linear-gradient(135deg, #7e22ce, #a855f7);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab:nth-child(3n + 2) .tab__label {
  background: linear-gradient(135deg, #5b21b6, #6d28d9);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__label {
  justify-content: flex-start;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__label::before {
  content: "◆";
  flex-shrink: 0;
  margin-right: 0.15rem;
  font-size: 0.55rem;
  color: #67e8f9;
  opacity: 0.9;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__label::after {
  color: #a5f3fc;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
  transform: rotate(90deg) scale(0.95);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab input:not(:checked) + .tab__label:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.65);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab input:not(:checked) + .tab__label:hover::after {
  animation: ai-quiz-chevron-pulse 0.6s ease-in-out infinite;
}

@keyframes ai-quiz-chevron-pulse {
  0%,
  100% {
    transform: rotate(90deg) scale(0.95);
    opacity: 1;
  }
  50% {
    transform: rotate(90deg) scale(1.05);
    opacity: 0.75;
  }
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab input:checked + .tab__label {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 40%, #0891b2 100%);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.45),
    0 10px 28px -10px rgba(34, 211, 238, 0.4);
  border-radius: 0.65rem 0.65rem 0 0;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab input:checked + .tab__label::before {
  color: #ecfeff;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab input:checked + .tab__label::after {
  color: #ecfeff;
  transform: rotate(270deg) scale(1);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab input:checked ~ .tab__content {
  max-height: 14rem;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__content {
  border-radius: 0 0 0.65rem 0.65rem;
  margin-bottom: 0.15rem;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(168, 85, 247, 0.12);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__content p {
  margin: 0;
  padding: 1rem 1rem 1rem 1.15rem;
  color: #312e81;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 254, 255, 0.9));
  border-left: 4px solid #22d3ee;
  line-height: 1.6;
  font-size: 0.9rem;
  text-align: left;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__content p strong {
  color: #6d28d9;
}

.dark .ai-quiz-accordion.ai-quiz-accordion--neural .tab__content p {
  color: #e0e7ff;
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.9));
  border-left-color: #38bdf8;
}

.dark .ai-quiz-accordion.ai-quiz-accordion--neural .tab__content p strong {
  color: #c4b5fd;
}

.dark .ai-quiz-accordion.ai-quiz-accordion--neural .tab__content {
  background: rgba(15, 23, 42, 0.5);
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__close {
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.ai-quiz-accordion.ai-quiz-accordion--neural .tab__close:hover {
  filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .ai-quiz-accordion.ai-quiz-accordion--neural .tab input:not(:checked) + .tab__label:hover::after {
    animation: none;
  }

  .ai-quiz-accordion.ai-quiz-accordion--neural .tab__label,
  .ai-quiz-accordion.ai-quiz-accordion--neural .tab input:not(:checked) + .tab__label:hover {
    transition: none;
    transform: none;
  }
}

/* ai era nav buttons */
.ai-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #c084fc;
  --tv-button-blue: #a855f7;
  --tv-button-text: #7e22ce;
  background: none !important;
  color: var(--tv-button-text) !important;
  box-shadow: inset 0 0 0 2px var(--tv-button-red);
  border: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.ai-era-buttons .phone-timeline-sticky-nav__link::before,
.ai-era-buttons .phone-timeline-sticky-nav__link::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ai-era-buttons .phone-timeline-sticky-nav__link::before {
  border: 2px solid transparent;
  z-index: -1;
}

.ai-era-buttons .phone-timeline-sticky-nav__link::after {
  border: 0 solid transparent;
  z-index: -1;
  mix-blend-mode: color-dodge;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:hover,
.ai-era-buttons .phone-timeline-sticky-nav__link.is-active {
  color: #fff !important;
  font-weight: 700;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:hover::before,
.ai-era-buttons .phone-timeline-sticky-nav__link.is-active::before {
  background: var(--tv-button-red);
  border-top-color: var(--tv-button-red);
  border-right-color: var(--tv-button-red);
  border-bottom-color: var(--tv-button-red);
  transition:
    background 0s linear 0.4s,
    border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.15s,
    border-bottom-color 0.15s linear 0.25s;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:hover::after,
.ai-era-buttons .phone-timeline-sticky-nav__link.is-active::after {
  border-top: 2.5em solid var(--tv-button-blue);
  border-left-width: 2.5em;
  border-right-width: 2.5em;
  transform: rotate(270deg);
  transition:
    transform 0.4s linear 0s,
    border-left-width 0s linear 0.35s;
}

.dark .ai-era-buttons .phone-timeline-sticky-nav__link {
  --tv-button-red: #d8b4fe;
  --tv-button-blue: #c084fc;
  --tv-button-text: #f3e8ff;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #64748b;
  --tv-button-blue: #475569;
  --tv-button-text: #334155;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #c084fc;
  --tv-button-blue: #a855f7;
  --tv-button-text: #7e22ce;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #a78bfa;
  --tv-button-blue: #7c3aed;
  --tv-button-text: #6d28d9;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #22d3ee;
  --tv-button-blue: #06b6d4;
  --tv-button-text: #0e7490;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #818cf8;
  --tv-button-blue: #6366f1;
  --tv-button-text: #4338ca;
}

.ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #f472b6;
  --tv-button-blue: #ec4899;
  --tv-button-text: #be185d;
}

.dark .ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(1) {
  --tv-button-red: #94a3b8;
  --tv-button-blue: #64748b;
  --tv-button-text: #e2e8f0;
}

.dark .ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(2) {
  --tv-button-red: #d8b4fe;
  --tv-button-blue: #c084fc;
  --tv-button-text: #f3e8ff;
}

.dark .ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(3) {
  --tv-button-red: #c4b5fd;
  --tv-button-blue: #a78bfa;
  --tv-button-text: #ede9fe;
}

.dark .ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(4) {
  --tv-button-red: #67e8f9;
  --tv-button-blue: #22d3ee;
  --tv-button-text: #cffafe;
}

.dark .ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(5) {
  --tv-button-red: #a5b4fc;
  --tv-button-blue: #818cf8;
  --tv-button-text: #c7d2fe;
}

.dark .ai-era-buttons .phone-timeline-sticky-nav__link:nth-child(6) {
  --tv-button-red: #f9a8d4;
  --tv-button-blue: #f472b6;
  --tv-button-text: #fbcfe8;
}

/* Artificial intelligence timeline — bullet heading color */
.ai-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.ai-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.ai-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #a855f7;
}

.dark .ai-timeline-page .phone-timeline-content .milestone-card .milestone-card__list li strong,
.dark .ai-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--tech li:nth-child(n) strong,
.dark .ai-timeline-page .phone-timeline-content .milestone-card .milestone-card__list--feat li:nth-child(n) strong {
  color: #c084fc;
}

/* Force visible spacing for ai timeline extra sections */
.phone-timeline-page .phone-timeline-content #ai-branches,
.phone-timeline-page .phone-timeline-content #ai-key-breakthroughs,
.phone-timeline-page .phone-timeline-content #ai-key-events,
.phone-timeline-page .phone-timeline-content #ai-winters,
.phone-timeline-page .phone-timeline-content #ai-firsts,
.phone-timeline-page .phone-timeline-content #ai-visual-timeline,
.phone-timeline-page .phone-timeline-content #ai-pioneers,
.phone-timeline-page .phone-timeline-content #ai-funding,
.phone-timeline-page .phone-timeline-content #ai-hardware,
.phone-timeline-page .phone-timeline-content #ai-ethics-policy,
.phone-timeline-page .phone-timeline-content #ai-future-predictions,
.phone-timeline-page .phone-timeline-content #ai-summary,
.phone-timeline-page .phone-timeline-content #ai-fields,
.phone-timeline-page .phone-timeline-content #ai-risks,
.phone-timeline-page .phone-timeline-content #ai-india,
.phone-timeline-page .phone-timeline-content #ai-quiz,
.ai-timeline-page .phone-timeline-content #student-tasks {
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .phone-timeline-page .phone-timeline-content #ai-branches,
  .phone-timeline-page .phone-timeline-content #ai-key-breakthroughs,
  .phone-timeline-page .phone-timeline-content #ai-key-events,
  .phone-timeline-page .phone-timeline-content #ai-winters,
  .phone-timeline-page .phone-timeline-content #ai-firsts,
  .phone-timeline-page .phone-timeline-content #ai-visual-timeline,
  .phone-timeline-page .phone-timeline-content #ai-pioneers,
  .phone-timeline-page .phone-timeline-content #ai-funding,
  .phone-timeline-page .phone-timeline-content #ai-hardware,
  .phone-timeline-page .phone-timeline-content #ai-ethics-policy,
  .phone-timeline-page .phone-timeline-content #ai-future-predictions,
  .phone-timeline-page .phone-timeline-content #ai-summary,
  .phone-timeline-page .phone-timeline-content #ai-fields,
  .phone-timeline-page .phone-timeline-content #ai-risks,
  .phone-timeline-page .phone-timeline-content #ai-india,
  .phone-timeline-page .phone-timeline-content #ai-quiz,
  .ai-timeline-page .phone-timeline-content #student-tasks {
    margin-top: 2.5rem !important;
  }
}

/* AI decade visual timeline */
.ai-visual-timeline {
  padding: 1rem 0.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.dark .ai-visual-timeline {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
  border-color: rgba(167, 139, 250, 0.25);
}

.ai-visual-timeline__decades {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  color: #6d28d9;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .ai-visual-timeline__decades {
    font-size: 0.75rem;
  }
}

.dark .ai-visual-timeline__decades {
  color: #c4b5fd;
}

.ai-visual-timeline__track {
  display: flex;
  align-items: center;
  margin: 0.75rem 0 1rem;
  padding: 0 0.15rem;
}

.ai-visual-timeline__dot {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.ai-visual-timeline__dot--active {
  background: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.35);
  transform: scale(1.15);
}

.ai-visual-timeline__line {
  flex: 1;
  height: 3px;
  min-width: 0;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  opacity: 0.65;
}

.ai-visual-timeline__milestones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .ai-visual-timeline__milestones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.ai-visual-timeline__milestones li {
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.5);
}

.dark .ai-visual-timeline__milestones li {
  background: rgba(15, 23, 42, 0.45);
}

.ai-visual-timeline__milestones strong {
  display: inline-block;
  min-width: 3.25rem;
  color: #7c3aed;
}

.dark .ai-visual-timeline__milestones strong {
  color: #a78bfa;
}

