.cases-main { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }
.cases-hero { min-height: 520px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; padding: 70px 0 90px; }
.cases-hero h1 { margin: 0; font-size: clamp(56px, 6vw, 86px); letter-spacing: -.055em; line-height: 1.03; }
.cases-hero h1 em { color: var(--orange); font-style: normal; }
.cases-hero > div:first-child > p:last-child { color: #b8c7cf; font-size: 16px; line-height: 1.9; max-width: 680px; margin-top: 30px; }
.cases-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: rgba(5,24,40,.8); }
.cases-hero-stats div { min-height: 140px; padding: 25px 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.08); }
.cases-hero-stats div:last-child { border-right: 0; }
.cases-hero-stats strong { color: var(--teal); font-size: 28px; }
.cases-hero-stats span { color: var(--muted); font-size: 10px; margin-top: 8px; }
.truth-note { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 27px 30px; border-left: 3px solid var(--orange); background: rgba(246,166,35,.065); }
.truth-note > span { color: var(--orange); font-size: 12px; font-weight: 800; }
.truth-note p { margin: 0; color: #aebdc5; font-size: 12px; line-height: 1.85; }
.truth-note strong { color: var(--text); }
.case-graph-section { padding: 105px 0 95px; border-bottom: 1px solid rgba(255,255,255,.06); scroll-margin-top: 20px; }
.case-graph-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 34px; }
.case-graph-heading h2 { margin: 0; font-size: clamp(35px, 4vw, 52px); letter-spacing: -.045em; }
.case-graph-heading > p { width: min(440px, 100%); margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.case-graph-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px; border: 1px solid rgba(91,211,204,.22); border-bottom: 0; background: rgba(3,18,34,.86); }
.case-graph-modes { display: flex; gap: 7px; }
.case-graph-modes button { min-height: 38px; padding: 0 16px; border: 1px solid rgba(255,255,255,.1); color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.case-graph-modes button:hover, .case-graph-modes button.active { border-color: var(--orange); color: var(--orange); background: rgba(246,166,35,.07); }
.case-graph-search { width: min(330px, 100%); min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid rgba(255,255,255,.11); background: rgba(0,9,17,.55); }
.case-graph-search span { color: var(--teal); font-size: 18px; }
.case-graph-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.case-graph-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 610px; border: 1px solid rgba(91,211,204,.22); background: linear-gradient(145deg, rgba(5,25,41,.92), rgba(2,14,24,.98)); }
.case-graph-canvas-wrap { min-width: 0; position: relative; overflow: hidden; background-image: linear-gradient(rgba(91,211,204,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(91,211,204,.035) 1px, transparent 1px); background-size: 34px 34px; }
#case-graph-canvas { display: block; width: 100%; height: 610px; cursor: grab; touch-action: none; }
#case-graph-canvas.dragging { cursor: grabbing; }
.case-graph-legend { position: absolute; left: 17px; right: 17px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted-2); font-size: 9px; pointer-events: none; }
.case-graph-legend span { display: flex; align-items: center; gap: 6px; }
.case-graph-legend i { display: inline-block; border-radius: 50%; }
.legend-hub { width: 9px; height: 9px; background: var(--orange); box-shadow: 0 0 0 4px rgba(246,166,35,.12); }
.legend-case { width: 6px; height: 6px; background: var(--teal); }
.case-graph-inspector { padding: 32px 27px; border-left: 1px solid rgba(91,211,204,.2); background: rgba(2,15,26,.86); }
.case-graph-kicker { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.case-graph-inspector h3 { margin: 17px 0 13px; font-size: 24px; line-height: 1.25; }
.case-graph-inspector > p { min-height: 82px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.case-graph-inspector dl { margin: 30px 0; border-top: 1px solid rgba(255,255,255,.08); }
.case-graph-inspector dl div { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.case-graph-inspector dt { color: var(--muted-2); font-size: 10px; }
.case-graph-inspector dd { margin: 0; color: var(--teal); font-size: 11px; font-weight: 750; text-align: right; }
.case-graph-inspector .button { width: 100%; font-size: 11px; }
.case-graph-inspector .button[hidden] { display: none; }
.case-browser { padding: 100px 0 120px; }
.case-browser-head { display: flex; justify-content: space-between; align-items: end; gap: 35px; }
.case-browser-head h2 { margin: 0; font-size: 38px; letter-spacing: -.04em; }
.case-search { width: min(420px, 100%); min-height: 50px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 0 16px; background: rgba(4,20,33,.84); }
.case-search span { color: var(--teal); font-size: 22px; }
.case-search input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 12px; }
.case-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 36px 0 18px; }
.case-filters button { border: 1px solid rgba(255,255,255,.12); background: transparent; color: var(--muted); padding: 10px 15px; cursor: pointer; font-size: 11px; }
.case-filters button:hover, .case-filters button.active { border-color: var(--teal); color: var(--teal); background: rgba(91,211,204,.07); }
.case-count { color: var(--muted-2); font-size: 10px; margin-bottom: 20px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.case-card { min-height: 238px; display: flex; flex-direction: column; padding: 24px; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(150deg, rgba(8,31,49,.88), rgba(3,17,29,.94)); }
.case-card.ready { border-color: rgba(91,211,204,.52); transition: .22s ease; }
.case-card.ready:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-number { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.case-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.case-card-tags span { color: var(--teal-soft); border: 1px solid rgba(91,211,204,.2); padding: 5px 7px; font-size: 8px; }
.case-card h3 { font-size: 19px; margin: 0 0 8px; }
.case-card > p { color: #aebdc5; font-size: 12px; line-height: 1.7; margin: 0; }
.case-card-school { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.case-card-school span { color: var(--paper); font-size: 10px; }
.case-card-school small { flex: none; color: var(--orange); font-size: 9px; }
.case-card-foot { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin-top: auto; padding-top: 25px; }
.case-card-foot small { color: var(--muted-2); font-size: 8px; }
.case-card-foot b { color: var(--muted-2); font-size: 10px; }
.case-card.ready .case-card-foot b { color: var(--teal); }
.case-load-more { display: block; margin: 35px auto 0; min-width: 200px; border: 1px solid var(--line); background: transparent; color: var(--teal); padding: 13px 22px; cursor: pointer; }
.case-empty { grid-column: 1 / -1; padding: 70px; text-align: center; border: 1px dashed var(--line); color: var(--muted); }

@media (max-width: 980px) { .cases-hero { grid-template-columns: 1fr; gap: 30px; } .case-grid { grid-template-columns: repeat(2, 1fr); } .case-graph-layout { grid-template-columns: 1fr; } .case-graph-inspector { border-left: 0; border-top: 1px solid rgba(91,211,204,.2); } .case-graph-inspector > p { min-height: auto; } }
@media (max-width: 800px) { .cases-main { width: calc(100% - 34px); } .cases-hero { min-height: auto; padding: 60px 0 70px; } .case-browser-head, .case-graph-heading { display: grid; } .truth-note { grid-template-columns: 1fr; gap: 12px; } .case-graph-toolbar { align-items: stretch; flex-direction: column; } .case-graph-modes { display: grid; grid-template-columns: repeat(3, 1fr); } .case-graph-search { width: 100%; } }
@media (max-width: 560px) { .cases-hero h1 { font-size: 48px; } .cases-hero-stats { grid-template-columns: repeat(3, 1fr); } .cases-hero-stats div { min-height: 105px; padding: 18px 12px; } .cases-hero-stats strong { font-size: 22px; } .case-grid { grid-template-columns: 1fr; } .case-browser-head h2 { font-size: 31px; } .case-graph-section { padding: 75px 0; } .case-graph-heading h2 { font-size: 32px; } .case-graph-modes button { padding: 0 7px; font-size: 10px; } #case-graph-canvas { height: 480px; } .case-graph-layout { min-height: 480px; } .case-graph-inspector { padding: 25px 20px; } }

.case-detail-shell { width: min(calc(100% - 64px), 1120px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 70px; padding: 65px 0 120px; }
.case-article-hero { padding: 55px 0 68px; border-bottom: 1px solid rgba(255,255,255,.1); }
.case-kicker { color: var(--teal); font-size: 11px; margin: 28px 0 18px; }
.case-article-hero h1 { margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: 1.05; letter-spacing: -.055em; }
.case-article-hero h1 em { color: var(--orange); font-style: normal; }
.case-deck { color: #c1cdd3; font-size: 19px; line-height: 1.8; margin: 27px 0; }
.case-reading-meta { display: flex; flex-wrap: wrap; gap: 9px; }
.case-reading-meta span { color: var(--muted); border: 1px solid rgba(255,255,255,.1); padding: 7px 9px; font-size: 9px; }
.case-profile-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 28px; border: 1px solid rgba(77,210,204,.25); background: rgba(5,28,43,.72); }
.case-profile-strip > div { min-width: 0; padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.case-profile-strip small { display: block; margin-bottom: 6px; color: var(--teal); font-size: 9px; letter-spacing: .08em; }
.case-profile-strip strong { display: block; overflow: hidden; color: var(--paper); font-size: 12px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.case-intro { margin: 25px 0 0; color: #b6c5cd; font-size: 16px; line-height: 1.95; }
.case-article section { padding: 68px 0; border-bottom: 1px solid rgba(255,255,255,.08); scroll-margin-top: 20px; }
.case-article section h2 { margin: 12px 0 24px; font-size: 33px; letter-spacing: -.04em; line-height: 1.25; }
.case-article section > p:not(.section-label) { color: #b4c2c9; font-size: 15px; line-height: 2; }
.case-article blockquote { margin: 28px 0 0; padding: 19px 22px; border-left: 2px solid var(--teal); background: rgba(91,211,204,.055); color: var(--teal-soft); font-size: 13px; line-height: 1.8; }
.case-timeline { margin: 30px 0; border-top: 1px solid rgba(255,255,255,.09); }
.case-timeline > div { display: grid; grid-template-columns: 70px 180px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.case-timeline span { color: var(--orange); font-size: 11px; font-weight: 800; }
.case-timeline h3 { font-size: 15px; margin: 0; }
.case-timeline p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0; }
.case-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 30px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.case-evidence div { background: rgba(7,28,46,.9); padding: 22px; }
.case-evidence small, .case-evidence strong { display: block; }
.case-evidence small { color: var(--teal); font-size: 9px; margin-bottom: 8px; }
.case-evidence strong { font-size: 12px; line-height: 1.6; }
.case-action-list, .case-reality-list { list-style: none; padding: 0; margin: 0; counter-reset: case-step; }
.case-action-list li, .case-reality-list li { position: relative; color: #b4c2c9; font-size: 13px; line-height: 1.8; padding: 18px 15px 18px 48px; border-top: 1px solid rgba(255,255,255,.08); }
.case-action-list li { counter-increment: case-step; }
.case-action-list li::before { content: counter(case-step, decimal-leading-zero); position: absolute; left: 8px; top: 20px; color: var(--teal); font-size: 10px; }
.case-reality-list li::before { content: "!"; position: absolute; left: 11px; color: var(--orange); font-weight: 900; }
.case-sources a { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; border-top: 1px solid rgba(255,255,255,.08); padding: 17px 4px; }
.case-sources a:hover strong { color: var(--teal); }
.case-sources a span { color: var(--muted-2); font-size: 9px; }
.case-sources a strong { font-size: 11px; transition: .2s ease; }
.case-sources a b { color: var(--orange); }
.case-sources > p:last-child { font-size: 10px !important; color: var(--muted-2) !important; }
.case-detail-aside { position: sticky; top: 28px; height: max-content; padding-top: 55px; }
.case-toc, .case-side-note { border: 1px solid rgba(255,255,255,.1); background: rgba(6,25,41,.9); padding: 22px; }
.case-toc small { display: block; color: var(--teal); margin-bottom: 12px; }
.case-toc a { display: block; color: var(--muted); font-size: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.06); }
.case-toc a:hover { color: var(--orange); }
.case-side-note { margin: 14px 0; border-color: rgba(246,166,35,.28); }
.case-side-note span { color: var(--orange); font-size: 10px; font-weight: 800; }
.case-side-note p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.case-detail-aside .button { width: 100%; }
.case-detail-aside .button + .button { margin-top: 9px; }

@media (max-width: 900px) { .case-detail-shell { grid-template-columns: 1fr; } .case-detail-aside { position: static; padding: 0; } .case-toc { display: none; } }
@media (max-width: 620px) { .case-detail-shell { width: calc(100% - 34px); padding-top: 25px; } .case-article-hero h1 { font-size: 45px; } .case-profile-strip { grid-template-columns: 1fr; } .case-profile-strip > div { border-right: 0; } .case-profile-strip strong { white-space: normal; } .case-timeline > div { grid-template-columns: 45px 1fr; } .case-timeline p { grid-column: 2; } .case-evidence { grid-template-columns: 1fr; } .case-sources a { grid-template-columns: 1fr auto; } .case-sources a span { grid-column: 1 / -1; } }
