
/* ---------- research write-ups (e.g. /work/llava-visual-jailbreaks/) ---------- */
.project-links { margin: -.5em 0 1em; }
.context { border-left: 2px solid var(--rule); padding-left: 1.25rem; margin: 2em 0 2.5em; }
.context h2, article .section h2 { font: inherit; color: var(--dim); margin: 0 0 1em; }
article .section { margin-top: 2.5em; }
article ol, article ul { padding-left: 1.25em; }
article li + li { margin-top: .25em; }
article pre {
  font-size: .78rem; line-height: 1.6; overflow-x: auto;
  padding: 1rem; border-radius: 6px; background: var(--rule); color: var(--text);
}
article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

.stats { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 1.5em; }
.stat { display: flex; flex-direction: column; line-height: 1.4; }
.stat-value { font-size: 2rem; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--body); }

.chart { margin: 1.5em 0 2em; }
.chart figcaption { color: var(--dim); font-size: .8rem; line-height: 1.6; margin-top: .75em; max-width: 40rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0 1.25rem; color: var(--body); margin-bottom: .5em; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; }
.sw-comply { background: var(--text); }
.sw-empty { background: repeating-linear-gradient(45deg, var(--dim) 0 2px, transparent 2px 4px); outline: 1px solid var(--dim); outline-offset: -1px; }
.sw-refuse { background: light-dark(rgba(0,0,0,.12), rgba(255,255,255,.16)); }
.stack-row { display: grid; grid-template-columns: 4.5rem 1fr 6rem; align-items: center; gap: .75rem; margin: .35rem 0; }
.stack-label { color: var(--text); font-weight: 500; }
.stack { display: flex; gap: 2px; height: 1.1rem; }
.seg { border-radius: 2px; min-width: 2px; }
.stack-nums, .bar-num { color: var(--dim); font-variant-numeric: tabular-nums; }
.bars { list-style: none; padding: 0 !important; margin: 0; }
.bars li { display: grid; grid-template-columns: 10rem 1fr 3.5rem; align-items: center; gap: .75rem; margin: 0 !important; }
.bar-label { color: var(--body); }
.bar-track { height: .7rem; background: var(--rule); border-radius: 2px; overflow: hidden; }
.bar { display: block; height: 100%; background: var(--text); border-radius: 0 4px 4px 0; }

article table { border-collapse: collapse; width: 100%; max-width: 52rem; margin: .5em 0 1.5em; }
article th, article td { text-align: left; vertical-align: top; padding: .5rem .75rem .5rem 0; border-top: 1px solid var(--rule); }
article thead th { color: var(--dim); font-weight: 400; border-top: 0; }
article tbody th { color: var(--text); font-weight: 500; white-space: nowrap; width: 5.5rem; }
.checks td:first-child { color: var(--text); width: 30%; }
.checks td:nth-child(2) { white-space: nowrap; width: 7.5rem; }
.checks .ok { color: var(--body); }
.checks .ok::before { content: "✓ "; }
.checks .part::before { content: "~ "; }
.checks .no { color: var(--text); font-weight: 500; }
.checks .no::before { content: "✗ "; }

@media (max-width: 600px) {
  .bars li { grid-template-columns: 7.5rem 1fr 3rem; gap: .5rem; }
  .stack-row { grid-template-columns: 3.5rem 1fr; }
  .stack-nums { grid-column: 2; margin-top: -.25rem; }
  .checks thead { display: none; }
  .checks tr { display: block; border-top: 1px solid var(--rule); padding: .6rem 0; }
  .checks td { display: block; border: 0; padding: 0; width: auto !important; }
  .checks td:nth-child(2) { margin: .15rem 0 .25rem; }
}
