* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Inter", system-ui, sans-serif; line-height: 1.7; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { color: var(--magenta); }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; background: var(--green); color: var(--bg); padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.case-header { border-bottom: 3px solid var(--border); padding: 26px clamp(20px, 5vw, 48px); }
.case-header-inner { max-width: 1160px; margin: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-name { font: 700 1.25rem "Chakra Petch", sans-serif; color: var(--green); text-decoration: none; text-transform: uppercase; }
.case-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.case-shell { max-width: 1160px; margin: auto; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 48px); }
.back-link { display: inline-block; margin-bottom: 30px; }
.case-kicker, .figure-label { color: var(--magenta); font: 500 .78rem "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
h1 { font: 700 clamp(2rem, 5vw, 3.4rem)/1.12 "Chakra Petch", sans-serif; max-width: 19ch; margin: 12px 0 20px; }
.case-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; max-width: 65ch; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 34px 0 54px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.case-facts div { min-width: 0; }
.case-facts dt { color: var(--magenta); font: 500 .73rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.case-facts dd { margin: 8px 0 0; font-size: .91rem; }
.case-layout { display: grid; grid-template-columns: 170px minmax(0, 70ch); gap: clamp(30px, 6vw, 74px); }
.contents { position: sticky; top: 30px; align-self: start; }
.contents h2 { margin: 0 0 12px; color: var(--magenta); font: 500 .8rem "DM Mono", monospace; text-transform: uppercase; }
.contents a { display: block; color: var(--muted); margin: 10px 0; font-size: .84rem; line-height: 1.35; }
.case-body section { margin-bottom: 48px; scroll-margin-top: 20px; }
.case-body h2 { color: var(--green); font: 500 1.35rem "DM Mono", monospace; line-height: 1.4; margin: 0 0 16px; }
.case-body p { margin: 0 0 16px; }
.case-body ul { padding-left: 1.3rem; }
.case-body li { margin-bottom: 8px; }
figure { margin: 28px 0; padding: 24px; background: var(--bg-sidebar); border: 1px solid var(--border); }
figcaption { margin-top: 16px; color: var(--muted); font-size: .84rem; }
.flow { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 20px 0; }
.flow span { border: 1px solid var(--border); padding: 10px 12px; font: .82rem "DM Mono", monospace; }
.flow b { color: var(--magenta); }
.reconstruction { display: grid; gap: 10px; }
.reconstruction div { padding: 10px 12px; border-left: 3px solid var(--cyan); background: var(--bg); }
.reconstruction strong { display: block; color: var(--green); font-size: .82rem; }
.audit-bar { display: flex; width: 100%; min-height: 28px; margin: 18px 0 10px; }
.audit-bar span:nth-child(1) { width: 76.1%; background: var(--green); }
.audit-bar span:nth-child(2) { width: 17.5%; background: var(--cyan); }
.audit-bar span:nth-child(3) { width: 6.4%; background: var(--magenta); }
.audit-key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .83rem; }
.case-footer { border-top: 1px solid var(--border); padding-top: 25px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media (max-width: 760px) {
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-layout { grid-template-columns: 1fr; gap: 36px; }
  .contents { position: static; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
  .contents a { display: inline-block; margin: 6px 14px 6px 0; }
}
@media (max-width: 450px) { .case-facts { grid-template-columns: 1fr; } figure { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  @page { margin: 18mm; }
  :root { color-scheme: light; }
  body { background: #fff; color: #1a1a1a; font-size: 11pt; line-height: 1.5; }
  .case-header, .back-link, .contents, .case-footer { display: none; }
  .case-shell { max-width: none; margin: 0; padding: 0; }
  .case-layout { display: block; }
  h1 { max-width: none; font-size: 26pt; }
  .case-lead { font-size: 12pt; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20pt 0; }
  .case-facts, figure, .reconstruction div, .flow span { border-color: #777; }
  .case-kicker, .figure-label, .case-facts dt, .case-body h2,
  .reconstruction strong, .flow b, figcaption, a { color: #1a1a1a; }
  a { text-decoration: underline; }
  figure, .reconstruction div { background: #fff; }
  figure { padding: 12pt; }
  .case-body section { margin-bottom: 22pt; }
  h1, h2, .figure-label { break-after: avoid; }
  .case-facts, figure { break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
  .audit-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* Actual product views and explicitly synthetic evidence examples. */
.case-result { max-width: 72ch; margin-top: 18px; color: var(--muted); line-height: 1.65; }
.case-result strong { color: var(--fg); }
.product-proof img { display: block; width: 100%; height: auto; border: 1px solid var(--border); }
.evidence-table { overflow-x: auto; }
.evidence-table table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.evidence-table caption { text-align: left; font-weight: 600; padding-bottom: 16px; }
.evidence-table th, .evidence-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.evidence-table th { color: var(--fg); }
