/* ═══════════════════════════════════════════
   Threat Analysis Detail Page
   ═══════════════════════════════════════════ */

/* ── Outer section ── */
.ta-detail-section {
  padding: 60px 0 80px;
  background: #f0f2f5;
}

.ta-detail-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Two-column layout ── */
.ta-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: stretch;
}

/* Full-width when no sidebar content */
.ta-detail-layout--full {
  grid-template-columns: 1fr;
}

/* ═══ LEFT: Dark card ═══ */
.ta-detail-card {
  background: #1d2d40;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Icon + Title header row */
.ta-detail-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 32px 28px;
}

.ta-detail-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.ta-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.ta-detail-card-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
  padding-top: 4px;
}

/* Divider */
.ta-detail-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 32px;
}

/* Date + body text */
.ta-detail-card-body {
  padding: 24px 32px 36px;
}

.ta-detail-date {
  font-size: 13px;
  color: #c2a8b0;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.ta-detail-card-body p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 14px;
}

.ta-detail-card-body p:last-child {
  margin-bottom: 0;
}

.ta-detail-card-body a {
  color: #e05570;
}

/* ═══ RIGHT: Sidebar ═══ */
.ta-detail-sidebar {
  background: #ffffff;
  border-radius: 4px;
  padding: 28px 28px 32px;
}

.ta-sidebar-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2535;
  margin: 0 0 16px;
  line-height: 1.2;
}

/* Solutions: red pill tags */
.ta-sol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ta-sol-tag {
  display: inline-block;
  background: #c2002f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ta-sol-tag:hover {
  background: #a0001f;
  text-decoration: none;
}

/* Divider between sidebar sections */
.ta-sidebar-divider {
  height: 1px;
  background: #e2e6ec;
  margin: 22px 0;
}

/* UN R155 list */
.ta-ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ta-ref-list li {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  padding: 6px 0 6px 16px;
  position: relative;
  border-bottom: 1px solid #f0f2f5;
}

.ta-ref-list li:last-child {
  border-bottom: none;
}

.ta-ref-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #888;
  font-size: 12px;
  top: 7px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .ta-detail-layout {
    grid-template-columns: 1fr;
  }

  .ta-detail-container {
    padding: 0 20px;
  }

  .ta-detail-section {
    padding: 40px 0 60px;
  }
}

@media (max-width: 600px) {
  .ta-detail-card-header {
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px 20px;
  }

  .ta-detail-card-divider {
    margin: 0 20px;
  }

  .ta-detail-card-body {
    padding: 20px 20px 28px;
  }

  .ta-detail-sidebar {
    padding: 20px;
  }
}