/* The Practitioner's Guide to AI Red Teaming. Reuses the site tokens (style.css).
   Page-local: the dateline, the comparison matrices (static/adaptive, deployment,
   security-vs-safety, rule-of-three), the lethal-trifecta callout and the checklist. */

.art-lead { font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.4; max-width: 32em; margin: 22px 0 6px; }
.art-lead b { color: var(--pink); font-weight: 400; }
.art-meta { font-family: var(--mono); font-size: var(--meta); color: var(--muted); letter-spacing: .02em; margin: 14px 0 0; }
.art-meta b { color: var(--ink); font-weight: 400; }
.art-meta a { color: var(--ink); }

.prose + .prose { margin-top: 1em; }
.def { max-width: var(--measure); margin: 10px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink-hot); }
.def .label { display: block; font-family: var(--mono); font-size: var(--meta); letter-spacing: .04em; color: var(--pink); margin: 0 0 6px; text-transform: uppercase; }

/* inline security / safety tags, reuse .chip look */
.tag-ss { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px 1px; border-radius: 3px; vertical-align: 2px; white-space: nowrap; }
.tag-ss.sec { color: #fff; background: var(--pink); border: 1px solid var(--pink); }
:root[data-theme="dark"] .tag-ss.sec { color: #0B0B0C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-ss.sec { color: #0B0B0C; } }
.tag-ss.saf { color: var(--pink); border: 1px solid var(--pink); }

/* ---------- comparison matrices ---------- */
.matrix { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 1.0625rem; line-height: 1.42; max-width: 860px; }
.matrix caption { font-family: var(--mono); font-size: var(--meta); letter-spacing: .04em; color: var(--muted); text-align: left; margin: 0 0 10px; }
.matrix th, .matrix td { border: 1px solid var(--rule); padding: 10px 14px; text-align: left; vertical-align: top; }
.matrix thead th { font-family: var(--mono); font-size: var(--meta); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--graph); }
.matrix tbody th { font-weight: 700; width: 11em; }
.matrix .rowlab { font-family: var(--mono); font-size: var(--meta); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 400; width: 10em; }
.matrix td b, .matrix tbody th b { color: var(--pink); font-weight: 700; }
.matrix .tell { color: var(--ink); }

@media (max-width: 720px) {
  .matrix, .matrix tbody, .matrix tr { display: block; width: auto; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix tr { border: 1px solid var(--rule); margin: 0 0 12px; }
  .matrix th, .matrix td { display: block; border: 0; border-top: 1px solid var(--rule); padding: 8px 12px; width: auto; }
  .matrix tr > *:first-child { border-top: 0; }
  .matrix tbody th { width: auto; font-size: 1.125rem; }
  .matrix td::before { content: attr(data-l) " "; font-family: var(--mono); font-size: var(--meta); letter-spacing: .04em; text-transform: uppercase; color: var(--pink); display: block; margin-bottom: 2px; }
}

/* ---------- lethal-trifecta / deep-end callout ---------- */
.deepend { max-width: var(--measure); margin: 18px 0; padding: 14px 18px; border: 1px solid var(--rule); border-left: 3px solid var(--pink-hot); background: var(--hl); }
.deepend h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 8px; }
.deepend ul { margin: 0 0 8px; padding-left: 1.3em; }
.deepend li { margin-bottom: .3em; }
.deepend .kick { font-family: var(--mono); font-size: var(--meta); color: var(--pink); letter-spacing: .02em; margin: 0; }

/* ---------- threat-model list ---------- */
.tmodel { list-style: none; counter-reset: tm; margin: 0; padding: 0; max-width: var(--measure); }
.tmodel > li { counter-increment: tm; border-top: 1px solid var(--rule); padding: 12px 0 12px 2.4em; position: relative; }
.tmodel > li:last-child { border-bottom: 1px solid var(--rule); }
.tmodel > li::before { content: counter(tm); position: absolute; left: 0; top: 12px; font-family: var(--mono); font-size: var(--meta); color: var(--pink); }
.tmodel b { font-weight: 700; }
.tmodel ul { margin: 6px 0 0; padding-left: 1.2em; }
.tmodel ul li { margin-bottom: .25em; color: var(--muted); }

/* ---------- checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.checklist li { border-top: 1px solid var(--rule); padding: 11px 0 11px 1.9em; position: relative; }
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.checklist li::before { content: "\2610"; position: absolute; left: 0; top: 9px; color: var(--pink); font-family: var(--mono); font-size: 1.1em; }

/* ---------- cite / download line ---------- */
.cite-line { font-family: var(--mono); font-size: var(--meta); letter-spacing: .02em; color: var(--muted); margin: 18px 0 0; }
.cite-line a { color: var(--ink); }
.cite-line .sep { margin: 0 6px; }

.note-box { max-width: var(--measure); margin: 10px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink); }
.note-box b { color: var(--pink); }

@media print {
  .matrix { font-size: 9.5pt; max-width: none; }
  .matrix th, .matrix td { padding: 1.5mm 3mm; }
  .deepend { background: none; break-inside: avoid; }
  .matrix tr, .checklist li, .tmodel > li { break-inside: avoid; }
}
