/**
 * Technology timeline left menubar — standalone (loaded after theme.css)
 */

@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 {
    display: grid;
    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;
  }
}

/* Panel — dark background, no glass bleed */
.tech-leftmenubar .tech-glossy-panel,
.phone-timeline-body--with-tech-nav .tech-glossy-mobile {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #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;
  color: #f8fafc !important;
}

.tech-leftmenubar .tech-glossy-panel {
  border-radius: 0 1.5rem 1.5rem 0;
  padding: 1rem 0.65rem 1.1rem 0.75rem;
  max-height: calc(100vh - var(--phone-site-header-h, 4.75rem));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Typography — light on dark */
.tech-leftmenubar .tech-glossy-brand__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.2;
}

.tech-leftmenubar .tech-glossy-brand__accent {
  color: #c7d2fe !important;
  font-weight: 500;
}

.tech-leftmenubar .tech-glossy-brand__sub {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: #a5b4fc !important;
}

.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-leftmenubar .tech-glossy-brand__logo {
  width: 2rem;
  height: 2rem;
  border-radius: 1rem;
  background: linear-gradient(to top right, #6366f1, #d946ef);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-leftmenubar .cat-head,
.tech-leftmenubar .tech-glossy-cat-head {
  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 !important;
}

.tech-leftmenubar .tech-glossy-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.tech-leftmenubar .tech-glossy-nav::-webkit-scrollbar {
  width: 10px;
}

.tech-leftmenubar .tech-glossy-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.tech-leftmenubar .tech-glossy-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a78bfa, #6366f1);
  border-radius: 10px;
}

.tech-leftmenubar .menu-gloss-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tech-leftmenubar .menu-gloss-item:hover {
  background: rgba(99, 102, 241, 0.5);
  transform: translateX(4px);
}

.tech-leftmenubar .menu-gloss-item.active-menu-gloss {
  background: linear-gradient(115deg, #6366f1, #8b5cf6) !important;
  border-left: 3px solid #fcd34d;
  color: #ffffff !important;
}

.tech-leftmenubar .menu-gloss-item__name {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f8fafc !important;
}

.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;
  color: #e0e7ff !important;
}

.tech-leftmenubar .tech-glossy-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.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 !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
}

.tech-leftmenubar .tech-glossy-footer__meta {
  font-size: 0.68rem;
  color: #a5b4fc !important;
  margin-top: 0.5rem;
}

/* Mobile jump */
.phone-timeline-body--with-tech-nav .tech-leftmenubar-mobile {
  margin-bottom: 1.25rem;
  padding: 1rem clamp(1rem, 2.5vw, 2.5rem);
  border-radius: 1rem;
}

@media (min-width: 1024px) {
  .phone-timeline-body--with-tech-nav .tech-leftmenubar-mobile {
    display: none;
  }
}

.phone-timeline-body--with-tech-nav .tech-leftmenubar-mobile__label {
  color: #e0e7ff !important;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.phone-timeline-body--with-tech-nav .tech-leftmenubar-mobile__select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem;
  color: #f8fafc !important;
  background: #312e81 !important;
  border: 1px solid #818cf8 !important;
  border-radius: 0.75rem;
}

/* Timeline graphics — full width of content column, no crop */
body[data-tech-timeline] .phone-timeline-content figure:has(img.w-full),
body[data-tech-timeline] .phone-timeline-content .storage-era-figure {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

body[data-tech-timeline] .phone-timeline-content img.w-full {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
}

body[data-tech-timeline] .phone-timeline-content .storage-era-image {
  max-height: min(78vh, 620px);
}

/* Prev / next pager and mid-page breadcrumb */
.tech-timeline-pager {
  margin: 0 0 1.25rem;
}

.tech-timeline-pager:last-of-type {
  margin: 1.5rem 0 0;
}

.tech-timeline-pager__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px -8px rgba(30, 27, 75, 0.2);
}

.dark .tech-timeline-pager__inner {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(129, 140, 248, 0.35);
}

.tech-timeline-pager__link {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}

.tech-timeline-pager__placeholder {
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  opacity: 0.55;
}

.dark .tech-timeline-pager__placeholder {
  color: #64748b;
}

.tech-timeline-breadcrumb {
  margin: 1.75rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark .tech-timeline-breadcrumb {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border-color: rgba(129, 140, 248, 0.28);
}

.tech-timeline-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  color: #475569;
}

.dark .tech-timeline-breadcrumb__list {
  color: #cbd5e1;
}

.tech-timeline-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.tech-timeline-breadcrumb__link {
  color: #4f46e5;
  text-decoration: none;
}

.tech-timeline-breadcrumb__link:hover {
  text-decoration: underline;
}

.dark .tech-timeline-breadcrumb__link {
  color: #a5b4fc;
}

.tech-timeline-breadcrumb__item--current {
  color: #1e293b;
}

.dark .tech-timeline-breadcrumb__item--current {
  color: #f1f5f9;
}

.tech-timeline-breadcrumb__sep {
  margin: 0 0.35rem;
  color: #94a3b8;
  font-weight: 500;
}

.dark .tech-timeline-breadcrumb__sep {
  color: #64748b;
}
