/* ============================================================
   EOL Risk Tracker — Products Styles
   ============================================================ */

/* ── Hero (homepage) ──────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 400px at 50% 0%,
    rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-em {
  font-style: normal;
  color: var(--danger);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.card-icon img,
.family-icon img,
.detail-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.family-icon img { width: 36px; height: 36px; }
.detail-icon img { width: 32px; height: 32px; }

/* Remove dark mode inversion for local colorful logos */
[data-theme="dark"] .card-icon img.product-logo-img,
[data-theme="dark"] .family-icon img.product-logo-img,
[data-theme="dark"] .detail-icon img.product-logo-img {
  filter: none;
}

/* Keep inversion only for API SVG icons (simple-icons are single color) */
[data-theme="dark"] .card-icon img:not(.product-logo-img),
[data-theme="dark"] .family-icon img:not(.product-logo-img),
[data-theme="dark"] .detail-icon img:not(.product-logo-img) {
  filter: brightness(0) invert(1) opacity(0.8);
}
/* ── Controls (search + filters) ─────────────────────────── */
.controls {
  padding-bottom: 28px;
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}


/* ── Product grid ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}


/* ── Product card ─────────────────────────────────────────── */
.product-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-icon-name {
  display: flex;
  align-items: center;
  gap: 11px;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--border);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

[data-theme="dark"] .card-icon img {
  filter: brightness(0) invert(1) opacity(0.8);
}

.card-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.card-version {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.card-risk-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.card-risk-ring svg {
  transform: rotate(-90deg);
}

.card-risk-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.meta-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.meta-lbl {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.card-cta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-cta svg {
  transition: transform 0.15s;
}

.product-card:hover .card-cta svg {
  transform: translateX(3px);
}

.eol-date-label {
  font-size: 11px;
  color: var(--faint);
  font-family: var(--mono);
}


/* ── Category section spacing ─────────────────────────────── */
.category-section {
  margin-top: 40px;
}

.category-section:first-child {
  margin-top: 0;
}


/* ── Category header ──────────────────────────────────────── */
.cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 32px;
  flex-wrap: wrap;
}

.cat-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.cat-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
  line-height: 1.6;
}

.cat-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.cat-stat-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.cat-stat-lbl {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}


/* ── Product family header ────────────────────────────────── */
.family-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0 8px;
}

.family-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 30px;
  flex-shrink: 0;
}

.family-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

[data-theme="dark"] .family-icon img {
  filter: brightness(0) invert(1) opacity(0.85);
}
.family-info {
    flex: 1;
}
.family-info h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.family-info p {
  color: var(--muted);
  font-size: 14px;
  max-width: 690px;
  line-height: 1.6;
}
.family-short-desc {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.family-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
  margin-bottom: 14px;
}
/* ── Family header stats ──────────────────────────────────── */
.family-header-stats {
  display: flex;
  flex-direction: row;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
}

.family-header-stat {
  padding: 20px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.family-header-stat:last-child {
  border-right: none;
}

.family-header-stat-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.family-header-stat-lbl {
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .family-header-stats {
    flex-direction: row;
    min-width: 0;
    width: 100%;
  }

  .family-header-stat {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .family-header-stat:last-child {
    border-right: none;
  }
}

.family-links {
  padding: 20px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.family-ext-link {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.family-ext-link:hover {
  color: var(--accent);
}

/* ── Product family description block ────────────────────── */
.family-description-block {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.family-description p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 10px;
  opacity: 1;
}

.family-description ul,
.family-description ol {
  padding-left: 18px;
  margin-bottom: 10px;
}

.family-description li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.family-description strong {
  color: var(--text);
  font-weight: 600;
}

.family-description a {
  color: var(--accent);
  border-bottom: 1px solid rgba(99,102,241,0.3);
  transition: border-color 0.15s;
}

.family-description a:hover {
  border-color: var(--accent);
}

.family-description p:last-child {
  margin-bottom: 0;
}
/* ── Lifecycle chart ──────────────────────────────────────── */
.lifecycle-chart-wrap {
  margin: 8px 0 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.lifecycle-chart-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
/* ── Phase cells in family table ──────────────────────────── */
.phase-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 120px;
}

.phase-cell-date {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.phase-cell-label {
  font-size: 11px;
  color: var(--muted);
}

.phase-active {
  background: rgba(34,197,94,0.1);
}

.phase-active .phase-cell-date {
  color: var(--safe);
}

.phase-ended {
  background: rgba(239,68,68,0.08);
}

.phase-ended .phase-cell-date {
  color: var(--danger);
}

.phase-ongoing {
  background: rgba(99,102,241,0.08);
}

.phase-ongoing .phase-cell-date {
  color: var(--accent);
}


/* ── Versions table ───────────────────────────────────────── */
.versions-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
  max-width: 100%;
}

.versions-table {
  width: 100%;
  border-collapse: collapse;
}

.versions-table thead tr {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.versions-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.versions-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s;
}

.versions-table tbody tr:last-child {
  border-bottom: none;
}

.versions-table tbody tr:hover {
  background: var(--bg-hover);
}

.versions-table td {
  padding: 13px 16px;
  font-size: 13.5px;
  vertical-align: middle;
}

.ver-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ver-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ver-dot-eol    { background: var(--eol);    }
.ver-dot-danger { background: var(--danger); }
.ver-dot-safe   { background: var(--safe);   }

.ver-name {
  font-weight: 600;
}

.lts-pill {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99,102,241,0.15);
  color: var(--accent);
}

.has-page-pill {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34,197,94,0.1);
  color: var(--safe);
}

.ver-link {
  font-size: 12.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  transition: gap 0.15s;
}

.ver-link:hover {
  gap: 6px;
}


/* ── Detail layout ────────────────────────────────────────── */
.detail-layout {
  padding: 28px 0 80px;
  align-items: start;
}


/* ── Detail header ────────────────────────────────────────── */
.detail-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

[data-theme="dark"] .detail-icon img {
  filter: brightness(0) invert(1) opacity(0.85);
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.detail-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-eol-date {
  font-size: 12.5px;
  color: var(--faint);
  font-family: var(--mono);
}
/* ── Show more EOL button ─────────────────────────────────── */
.show-more-eol {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

.btn-show-more-eol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-show-more-eol:hover {
  border-color: var(--faint);
  color: var(--text);
}

.btn-show-more-eol svg {
  transition: transform 0.2s;
}

.btn-show-more-eol.expanded svg {
  transform: rotate(180deg);
}

/* ── Risk hero ────────────────────────────────────────────── */
.risk-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.risk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 300px 200px at 0% 50%,
    rgba(99,102,241,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.risk-hero-info h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.risk-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.metric-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.metric-lbl {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}


/* ── Detail cards ─────────────────────────────────────────── */
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.detail-card-accent {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.04);
}

.detail-card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ── Lifecycle legend ─────────────────────────────────────── */
.lifecycle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-name {
  font-weight: 500;
}

.legend-dates {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.eol-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}


/* ── Extended support ─────────────────────────────────────── */
.support-options {
  display: grid;
  gap: 12px;
}

.support-option {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
}

.support-option-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.support-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.support-name {
  font-size: 14px;
  font-weight: 600;
}

.support-tag {
  font-size: 11.5px;
  color: var(--muted);
}

.support-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
/* ── FAQ section ──────────────────────────────────────────── */
.faq-section {
  margin-top: 32px;
  margin-bottom: 32px;
}

.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-answer p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 10px;
  opacity: 1;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.faq-answer li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 4px;
}

.faq-answer strong {
  color: var(--text);
  font-weight: 600;
}

.faq-answer a {
  color: var(--accent);
  border-bottom: 1px solid rgba(99,102,241,0.3);
  transition: border-color 0.15s;
}

.faq-answer a:hover {
  border-color: var(--accent);
}

.faq-answer code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}
.faq-answer.prose{
  margin: 0;
}
/* ── Sidebar cards (shared) ───────────────────────────────── */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.sidebar-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.quick-facts {
  display: flex;
  flex-direction: column;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  word-break: break-word;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-label {
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 8px;
}

.fact-val {
  font-size: 12.5px;
  text-align: right;
}

.other-versions {
  display: flex;
  flex-direction: column;
}

.other-version-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  transition: color 0.15s;
}

.other-version-row:last-of-type {
  border-bottom: none;
}

.other-version-row:hover {
  color: var(--accent);
}

.other-version-no-page {
  opacity: 0.5;
  pointer-events: none;
}

.other-ver-name {
  font-weight: 500;
}


/* ── Detail sidebar ───────────────────────────────────────── */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.detail-sidebar img {
  max-width: 100%;
  height: auto;
}


/* ── Vendor card ──────────────────────────────────────────── */
.vendor-card {
  padding: 18px 20px;
  cursor: pointer;
  display: block;
}

.vendor-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}


/* ── Pages (about, methodology) ──────────────────────────── */
.page-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.page-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}


/* ── Family lifecycle bar ─────────────────────────────────── */
.family-lifecycle-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.family-lifecycle-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 1px;
  min-width: 160px;
}

.family-lifecycle-phase {
  height: 100%;
  border-radius: 2px;
  flex: 1;
}

.family-lifecycle-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.family-phase-label {
  font-size: 10.5px;
  font-weight: 500;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 3px;
}

.family-phase-date {
  color: var(--faint);
  font-weight: 400;
}


/* ══ RESPONSIVE ══════════════════════════════════════════════ */

@media (min-width: 901px) {
  .detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }

  /* No sticky — natural scroll with banners between items */
  .detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* ── Tablet — stacked layout ──────────────────────────────── */
@media (max-width: 900px) {
  .detail-layout {
    display: block;
  }

  .detail-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
  }

  .family-header {
    flex-direction: column;
    gap: 14px;
  }

  .hero-stats {
    gap: 24px;
  }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 36px 16px 28px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px 28px;
    justify-content: flex-start;
    padding-top: 24px;
  }

  .hero-stat-num {
    font-size: 22px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .cat-header {
    flex-direction: column;
  }

  .cat-stats {
    gap: 16px;
  }

  .family-stats {
    gap: 16px;
  }

  .risk-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .detail-header {
    flex-direction: column;
    gap: 12px;
  }

  /* Hide Released column on mobile — saves space */
  .versions-table th:nth-child(2),
  .versions-table td:nth-child(2) {
    display: none;
  }
}