/* ============================================================
   OWASP LLM risk detail pages — shared styling
   (loaded alongside styles.css; reuses its tokens & components)
   ============================================================ */

.dhero { position: relative; padding: 180px 0 46px; overflow: hidden; }
.dhero__inner { position: relative; z-index: 3; max-width: 860px; }
.dcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mut); margin-bottom: 26px; font-family: var(--font-display); letter-spacing: .02em; }
.dcrumb a { color: var(--text-dim); }
.dcrumb a:hover { color: var(--accent); }
.dcrumb .sep { opacity: .5; }
.dhero__id { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .14em; color: var(--accent); display: inline-block; padding: 7px 14px; border-radius: 100px; border: 1px solid rgba(34,235,7,0.3); background: rgba(34,235,7,0.06); margin-bottom: 20px; }
.dhero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 22px; }
.dhero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-dim); max-width: 680px; line-height: 1.55; }
.dhero__source { margin-top: 26px; font-size: 12.5px; color: var(--text-mut); }
.dhero__source a { color: var(--text-dim); border-bottom: 1px solid var(--line-2); }
.dhero__source a:hover { color: var(--accent); border-color: var(--accent); }

.dsection { padding: 44px 0; border-top: 1px solid var(--line); }
.dsection__grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.dsection__label { position: sticky; top: 110px; }
.dsection__label .eyebrow { margin-bottom: 0; }
.dsection__label h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 12px; line-height: 1.15; }

.prose p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.62; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--text); font-weight: 600; }

/* Vulnerability examples — accent diamond markers */
.blist { list-style: none; display: grid; gap: 12px; }
.blist li { position: relative; padding-left: 24px; color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.blist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 10px var(--glow); }
.blist li strong { color: var(--text); font-weight: 600; }

/* Mitigations — green check */
.checklist { list-style: none; display: grid; gap: 13px; }
.checklist li { position: relative; padding-left: 35px; color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.checklist li strong { color: var(--text); font-weight: 600; }

/* Attack scenarios — numbered */
.scenarios { list-style: none; counter-reset: sc; display: grid; gap: 14px; }
.scenarios li { position: relative; counter-increment: sc; padding: 18px 20px 18px 58px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.scenarios li::before { content: counter(sc); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--accent); background: rgba(34,235,7,0.08); border: 1px solid rgba(34,235,7,0.25); }

/* References — muted list */
.reflist { list-style: none; display: grid; gap: 8px; }
.reflist li { position: relative; padding-left: 20px; color: var(--text-mut); font-size: 13.5px; line-height: 1.45; }
.reflist li::before { content: "↗"; position: absolute; left: 0; top: 0; color: var(--accent); opacity: .7; font-size: 12px; }

/* Help / CTA box */
.helpbox { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius-lg); border: 1px solid rgba(34,235,7,0.25); background: rgba(34,235,7,0.05); }
.helpbox p { color: var(--text-dim); font-size: 15px; max-width: 60ch; }
.helpbox p strong { color: var(--text); font-weight: 600; }

/* Prev / next navigation */
.dnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 50px 0 10px; }
.dnav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: all .35s var(--ease); }
.dnav a:hover { border-color: var(--accent); background: rgba(34,235,7,0.05); transform: translateY(-2px); }
.dnav__dir { font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mut); }
.dnav__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; }
.dnav a.dnav--next { text-align: right; }

@media (max-width: 860px) {
  .dsection__grid { grid-template-columns: 1fr; gap: 18px; }
  .dsection__label { position: static; }
}
@media (max-width: 560px) {
  .dhero { padding-top: 150px; }
  .dnav { grid-template-columns: 1fr; }
  .dnav a.dnav--next { text-align: left; }
  .helpbox .btn { width: 100%; justify-content: center; }
}
