/* Detection Resources panel — shared styling for the structured
   detection block rendered into every post by detections.js.

   Tracked in #8. Visual language matches the site's existing post
   palette (navy + light grays + red accent). Container is intentionally
   self-contained: a single .det-panel wraps everything so any post can
   include it without conflicting with the article's inline theme CSS. */

.det-panel {
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e3a5f;
  border-radius: 10px;
  padding: 28px 28px 22px;
  margin: 40px 0;
  font-family: 'Inter', -apple-system, sans-serif;
}
.det-panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a5f;
  margin-bottom: 4px;
}
.det-panel-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 22px;
}
.det-section {
  margin-bottom: 20px;
}
.det-section:last-child {
  margin-bottom: 0;
}
.det-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e3a5f;
  margin: 0 0 8px;
}
.det-code-wrap {
  position: relative;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
}
.det-code-wrap pre {
  margin: 0;
  padding: 14px 16px;
  color: #e2e8f0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}
.det-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.det-copy:hover {
  background: rgba(255, 255, 255, 0.22);
}
.det-copy.copied {
  background: #16a34a;
  color: #fff;
}
.det-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.det-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #1e3a5f;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.det-chip:hover {
  border-color: #1e3a5f;
  color: #c0392b;
}
.det-chip.mitre {
  border-color: #c0392b;
  color: #c0392b;
}
.det-chip.mitre:hover {
  background: #c0392b;
  color: #fff;
}
.det-refs {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}
.det-refs li {
  padding: 4px 0;
  word-break: break-all;
}
.det-refs a {
  color: #1e3a5f;
  text-decoration: none;
  border-bottom: 1px dotted #cbd5e1;
}
.det-refs a:hover {
  color: #c0392b;
  border-bottom-color: #c0392b;
}
