/* CERT Intelligence v0.8.49: collapsible technical metadata and related analyses */
body[data-page="article"] #articleTechnicalFold[hidden],
body[data-page="article"] #articleTechnicalMetadata[hidden] { display: none !important; }
body[data-page="article"] #articleTechnicalFold {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
body[data-page="article"] #articleTechnicalFold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 21px;
  color: var(--text);
  font-size: var(--font-section-size, 17px);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
body[data-page="article"] #articleTechnicalFold > summary::-webkit-details-marker { display: none; }
body[data-page="article"] #articleTechnicalFold > summary::after {
  content: '';
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .16s ease;
}
body[data-page="article"] #articleTechnicalFold[open] > summary::after { transform: rotate(225deg); }
body[data-page="article"] #articleTechnicalFold > summary:hover { background: var(--control); }
body[data-page="article"] #articleTechnicalFold > summary:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: -3px;
}
body[data-page="article"] #articleTechnicalFold .ci-technical-fold-content {
  padding: 0 21px 23px;
  border-top: 1px solid var(--line);
}
body[data-page="article"] #articleTechnicalFold .ci-technical-metadata-title { margin: 20px 0 13px; font-size: var(--font-section-size, 17px); }
body[data-page="article"] #articleTechnicalFold .detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body[data-page="article"] #articleTechnicalFold .detail-grid > div { min-width: 0; overflow-wrap: anywhere; }
body[data-page="article"] #articleTechnicalFold .article-related-section { margin: 20px 0 0; }
body[data-page="article"] #articleTechnicalFold .article-related-section[hidden] { display: none !important; }
body[data-page="article"] #articleTechnicalFold .detail-block { margin-top: 14px; }
@media (max-width: 750px) {
  body[data-page="article"] #articleTechnicalFold { margin: 12px 0 18px; border-radius: 0; }
  body[data-page="article"] #articleTechnicalFold > summary { padding: 15px 16px; font-size: 15px; }
  body[data-page="article"] #articleTechnicalFold .ci-technical-fold-content { padding: 0 16px 18px; }
  body[data-page="article"] #articleTechnicalFold .detail-grid { grid-template-columns: 1fr; }
}

/* v0.8.50 — restore v0.8.37 mobile sharing under the article image.
   The main app.js no longer has syncArticleSharePlacement();
   the fold module relocates the existing #articleShare node. */
body[data-page="article"] .article-share-mobile-slot { display: none; }
@media (max-width: 750px) {
  body[data-page="article"] .article-toolbar,
  body[data-page="article"] #articleTopNavigation,
  body[data-page="article"] #articleBottomNavigation { display: none !important; }
  body[data-page="article"] .article-share-mobile-slot {
    display: block; width: 100%; margin: 8px 0 18px;
  }
  body[data-page="article"] .article-share-mobile-slot .article-share {
    display: flex; width: 100%; align-items: center; justify-content: flex-start;
    flex-wrap: wrap; gap: 8px;
  }
  body[data-page="article"] .article-share-mobile-slot .article-share-label {
    flex: 0 0 100%; width: 100%; margin: 0;
  }
  body[data-page="article"] .article-share-mobile-slot .share-button { flex: 0 0 36px; }
  body[data-page="article"] #articleTechnicalFold:not([open]) .ci-technical-fold-content {
    display: none;
  }
}
