/* ==========================================================================
   ASHX DIGITAL: INSIGHTS & ARTICLE SYSTEM STYLESHEET (INSIGHTS.CSS)
   Implements INSIGHTS_CONTENT_BLUEPRINT.md, INSIGHTS_WIREFRAME.md,
   and visual hierarchy rules from DESIGN_SYSTEM.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. INSIGHTS HERO & EDITORIAL MANIFESTO
   -------------------------------------------------------------------------- */
.insights-hero {
  padding-top: clamp(140px, 16vw, 190px);
  padding-bottom: clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.insights-hero__inner {
  max-width: 960px;
}

.insights-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--accent-electric);
  background: rgba(11, 99, 229, 0.08);
  border: 1px solid rgba(11, 99, 229, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.insights-hero__badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-electric);
  box-shadow: 0 0 10px var(--accent-electric);
}

.insights-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.insights-hero__desc {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 760px;
  margin-bottom: var(--space-xl);
}

/* Search Bar in Hero */
.insights-search-wrapper {
  max-width: 580px;
  position: relative;
  margin-top: var(--space-lg);
}

.insights-search-input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 46px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  color: var(--text-primary);
  transition: all var(--duration-fast) ease;
}

.insights-search-input:focus {
  outline: none;
  border-color: var(--accent-electric);
  background: var(--bg-elevated);
  box-shadow: 0 0 20px rgba(11, 99, 229, 0.2);
}

.insights-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. FEATURED LEAD ARTICLE CARD (HERO TEARDOWN)
   -------------------------------------------------------------------------- */
.featured-article-container {
  margin-bottom: var(--space-3xl);
}

.featured-article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transition: all var(--duration-normal) ease;
  position: relative;
}

.featured-article-card:hover {
  border-color: rgba(11, 99, 229, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.featured-article-card__media {
  background: var(--bg-elevated);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.featured-article-card__diagram {
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-article-card__body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-article-card__meta-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.featured-article-card__category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-electric);
  background: rgba(11, 99, 229, 0.1);
  border: 1px solid rgba(11, 99, 229, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.featured-article-card__read-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.featured-article-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.featured-article-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.featured-article-card__title a:hover {
  color: var(--accent-glow);
}

.featured-article-card__summary {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.featured-article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.featured-article-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-article-card__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-electric);
}

.featured-article-card__author-info {
  display: flex;
  flex-direction: column;
}

.featured-article-card__author-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.featured-article-card__author-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. TOPIC CLUSTER FILTER BAR
   -------------------------------------------------------------------------- */
.insights-filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.insights-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.insights-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  min-height: 44px;
}

.insights-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-prominent);
  background: var(--bg-elevated);
}

.insights-pill.active {
  color: #ffffff;
  background: rgba(11, 99, 229, 0.15);
  border-color: var(--accent-electric);
  box-shadow: 0 0 16px rgba(11, 99, 229, 0.25);
}

.insights-pill__count {
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
}

.insights-pill.active .insights-pill__count {
  background: var(--accent-electric);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. ARTICLES GRID & ARTICLE CARD
   -------------------------------------------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--duration-fast) ease;
  position: relative;
}

.article-card:hover {
  border-color: rgba(11, 99, 229, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.article-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.article-card__category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-electric);
  background: rgba(11, 99, 229, 0.08);
  border: 1px solid rgba(11, 99, 229, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.article-card__read-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.article-card__title a:hover {
  color: var(--accent-glow);
}

.article-card__excerpt {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.article-card__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.article-card__link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-electric);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-fast) ease;
}

.article-card__link:hover {
  color: #ffffff;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   5. AUTHOR E-E-A-T CREDIBILITY BOX
   -------------------------------------------------------------------------- */
.author-eeat-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: var(--space-3xl);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.author-eeat-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-electric), transparent);
}

.author-eeat__avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-eeat__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(11, 99, 229, 0.4);
  box-shadow: 0 0 24px rgba(11, 99, 229, 0.25);
  background: var(--bg-elevated);
}

.author-eeat__content-col {
  display: flex;
  flex-direction: column;
}

.author-eeat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-electric);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.author-eeat__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.author-eeat__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.author-eeat__bio {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.author-eeat__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.author-eeat__chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   6. STRATEGIC GROWTH DISPATCH (NEWSLETTER INGESTION)
   -------------------------------------------------------------------------- */
.dispatch-box {
  background: linear-gradient(135deg, #0d0f16 0%, #030406 100%);
  border: 1px solid rgba(11, 99, 229, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.dispatch-box__inner {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.dispatch-box__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.dispatch-box__desc {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.dispatch-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto var(--space-md);
  flex-wrap: wrap;
}

.dispatch-input {
  flex: 1 1 280px;
  height: 50px;
  padding: 0 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

.dispatch-input:focus {
  outline: none;
  border-color: var(--accent-electric);
  box-shadow: 0 0 16px rgba(11, 99, 229, 0.25);
}

.dispatch-submit {
  padding: 0 24px;
  height: 50px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   7. REUSABLE ARTICLE DETAIL READING SYSTEM
   -------------------------------------------------------------------------- */
.article-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-electric), #38bdf8);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

.article-hero {
  padding-top: clamp(140px, 16vw, 190px);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.article-breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.article-breadcrumbs a:hover {
  color: var(--accent-electric);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.article-meta-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-reading-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(36px, 5vw, 64px);
  padding: var(--space-3xl) 0;
  position: relative;
}

/* Sticky Sidebar & Table of Contents */
.article-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.article-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.article-toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-electric);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-toc__item a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
  transition: all var(--duration-fast) ease;
}

.article-toc__item a:hover {
  color: var(--text-primary);
  border-left-color: rgba(11, 99, 229, 0.4);
}

.article-toc__item.active a {
  color: #ffffff;
  border-left-color: var(--accent-electric);
  font-weight: 600;
}

/* Editorial Body Typography (65-75ch readability) */
.article-body {
  max-width: 760px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: var(--space-lg);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: var(--space-lg);
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-electric);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.callout-box {
  background: rgba(11, 99, 229, 0.05);
  border: 1px solid rgba(11, 99, 229, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.callout-box__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-electric);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.inline-service-bridge {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-2xl) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .featured-article-card {
    grid-template-columns: 1fr;
  }

  .featured-article-card__media {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .author-eeat-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-eeat__avatar-col {
    margin-bottom: var(--space-sm);
  }

  .author-eeat__credentials {
    justify-content: center;
  }

  .article-reading-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .insights-filter-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .insights-filter-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }

  .dispatch-form {
    flex-direction: column;
  }

  .dispatch-input,
  .dispatch-submit {
    width: 100%;
  }

  .inline-service-bridge {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .article-card:hover,
  .insights-featured:hover,
  .filter-pill:hover,
  .inline-service-bridge:hover {
    transform: none;
  }
  .article-reading-progress {
    transition: none;
  }
}


/* --------------------------------------------------------------------------
   PAGE TELEMETRY & LIVE INSIGHTS SECTION
   -------------------------------------------------------------------------- */
.telemetry-section {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 960px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) ease, border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.telemetry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 99, 229, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.telemetry-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.telemetry-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.telemetry-card__media:hover .telemetry-card__img,
.telemetry-card__media:focus .telemetry-card__img {
  transform: scale(1.03);
}

.telemetry-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.1) 0%, rgba(7, 10, 15, 0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.telemetry-card__media:hover .telemetry-card__overlay,
.telemetry-card__media:focus .telemetry-card__overlay {
  opacity: 1;
}

.telemetry-card__zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 99, 229, 0.9);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(11, 99, 229, 0.4);
  pointer-events: none;
}

.telemetry-card__body {
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.telemetry-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
  gap: 8px;
}

.telemetry-card__platform-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.telemetry-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-md);
}

.telemetry-card__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: var(--space-md);
}

@media (max-width: 540px) {
  .telemetry-card__kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 8px;
  }
}

.telemetry-kpi {
  display: flex;
  flex-direction: column;
}

.telemetry-kpi__val {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.telemetry-kpi__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.kpi-green {
  color: #10b981;
  font-weight: 700;
}

.telemetry-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.telemetry-point {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.telemetry-point__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-electric);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.telemetry-point p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* --------------------------------------------------------------------------
   LIGHTBOX MODAL FOR DASHBOARD INSPECTION
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-modal__dialog {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.is-active .lightbox-modal__dialog {
  transform: scale(1);
}

.lightbox-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.lightbox-modal__heading {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.lightbox-modal__close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.lightbox-modal__close:hover,
.lightbox-modal__close:focus {
  background: var(--accent-electric);
  border-color: var(--accent-electric);
  outline: none;
}

.lightbox-modal__content {
  padding: 12px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.lightbox-modal__img {
  max-width: 100%;
  max-height: calc(85vh - 70px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
