/* Local article preview. Shared Neonix styles handle typography, header and footer. */
.mr600-preview .article-header { margin-bottom: clamp(30px, 4vw, 56px); }
.mr600-preview .article-header h1 { max-width: 18ch; line-height: 1.08; text-wrap: balance; }
.mr600-preview .article-header .lede { max-width: 66ch; font-size: clamp(17px, 1.65vw, 21px); line-height: 1.65; }
.mr600-preview .lede a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.mr600-preview .article-header .meta { gap: 8px 16px; align-items: center; }

.mr600-review-note {
  margin-top: 22px;
  padding: 11px 16px 12px;
  border-left: 2px solid var(--accent);
  background: #111814;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}
.mr600-review-note strong { display: block; margin-bottom: 2px; color: var(--accent); font: 500 11px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; }
.mr600-review-note p { margin: 0; }

.mr600-jumps { display: flex; flex-wrap: wrap; gap: 0 21px; margin-top: 10px; border-bottom: 1px solid var(--line-strong); }
.mr600-jumps a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 14px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.mr600-jumps a:is(:hover, :focus-visible) { color: var(--accent); }
.mr600-scope { margin-top: 26px; }
.mr600-scope-title { margin: 0 0 12px; color: var(--ink-dim); font: 500 11px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.mr600-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line-strong); background: var(--line-strong); }
.mr600-scope-grid > div { min-width: 0; padding: 17px 18px 18px; background: #0c120f; }
.mr600-scope-grid span,
.mr600-scope-grid strong,
.mr600-scope-grid small { display: block; }
.mr600-scope-grid span { margin-bottom: 5px; color: var(--accent); font: 500 11px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .055em; }
.mr600-scope-grid strong { color: var(--ink); font-size: 15px; line-height: 1.4; }
.mr600-scope-grid small { margin-top: 5px; color: var(--ink-dim); font-size: 13px; line-height: 1.55; }
.mr600-body > h2:first-child { margin-top: 0; }
.mr600-body a { overflow-wrap: anywhere; }

.mr600-preview .mr600-figure { margin: 24px 0; }
.mr600-figure img { display: block; width: 100%; height: auto; max-width: 600px; border: 1px solid var(--line-strong); }
.mr600-figure--router img { max-width: 400px; }
.mr600-figure figcaption { max-width: 600px; margin-top: 10px; color: var(--ink-dim); font-size: 14px; line-height: 1.5; }
.mr600-figure--narrow img { max-width: 500px; }

/* Figures supplied at 800px wide break out of the reading column and stay centred on it. */
.mr600-preview .mr600-figure--wide { width: min(800px, calc(100vw - var(--gutter) * 2)); margin-left: 50%; transform: translateX(-50%); }
.mr600-figure--wide img { max-width: none; }

/* Vulnerable / patched comparison: two labelled code samples, stacked on narrow screens. */
.mr600-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(880px, calc(100vw - var(--gutter) * 2)); margin: 24px 0 24px 50%; transform: translateX(-50%); }
.mr600-diff-panel { margin: 0; min-width: 0; }
.mr600-diff-panel figcaption { margin-bottom: 10px; color: var(--ink-dim); font: 500 13px/1.5 var(--font-mono); }
.mr600-diff-panel pre { margin: 0; }

@media (max-width: 719px) {
  .mr600-diff { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mr600-diff-panel pre { padding: 18px 16px; }
}

@media (max-width: 640px) {
  .mr600-preview .article-header h1 { font-size: clamp(32px, 9vw, 42px); }
  .mr600-preview .article h2:not(:first-child) { margin-top: 43px; }
  .mr600-scope-grid { grid-template-columns: minmax(0, 1fr); }
}
