/* Case detail, trust-first blue (matches social.css tokens). */
:root{--blue:#1f5fe6;--blue-dark:#1747b5;--blue-50:#eef4ff;--navy:#0c1d42;--text:#2d3b57;--muted:#5c6a85;--line:#e2e8f3}
body{background:#f5f8fd;color:var(--text)}
main.case-main{max-width:1180px;margin:22px auto 48px}
.case-main svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.case-main .back-link{display:inline-flex;align-items:center;min-height:40px;color:var(--blue);font-weight:600;font-size:15px;text-decoration:none}
.tint-blue{background:#e7efff;color:var(--blue)}.tint-amber{background:#fff3dc;color:#b86e00}.tint-green{background:#e3f6ea;color:#138a3e}
.tint-violet{background:#efe9ff;color:#6b46d9}.tint-red{background:#ffe9e8;color:#c93437}.tint-slate{background:#edf1f7;color:#4d5b78}
.muted{color:var(--muted)}
.cd-head{background:linear-gradient(120deg,#fff 0%,#f6f9ff 70%,#eaf1ff 100%);border:1px solid var(--line);border-radius:22px;padding:22px;margin:8px 0 16px}
.cd-top{display:flex;align-items:center;gap:10px}
.cd-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px}
.cd-icon svg{width:22px;height:22px}
.cd-id{font-weight:600;color:var(--muted);font-size:15px}
.cd-tag{font-size:13px;font-weight:600;border-radius:8px;padding:3px 10px;background:#eef1f6;color:#4d5b78}
.cd-share{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--blue);font-weight:600;font-size:14px;cursor:pointer}
.cd-head h1{font-size:30px;line-height:1.35;font-weight:700;color:var(--navy);margin:10px 0 10px;letter-spacing:-.4px;overflow-wrap:anywhere}
.cd-meta{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:14px;color:var(--muted)}
.cd-meta span{display:inline-flex;align-items:center;gap:6px}
.cd-meta svg{width:16px;height:16px}
.cd-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.cd-stats>div{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.cd-stat-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;flex-shrink:0}
.cd-stat-icon svg{width:21px;height:21px}
.cd-stats p{margin:0;font-size:13px;color:var(--muted);line-height:1.4}
.cd-stats strong{display:block;font-size:17px;color:var(--navy)}
.cd-copy-status{margin:8px 0 0;font-size:14px;color:var(--blue);min-height:1em}
.cd-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto;scrollbar-width:none}
.cd-tabs button{position:relative;min-height:48px;padding:10px 18px;border:0;background:transparent;color:var(--muted);font-size:15.5px;cursor:pointer;white-space:nowrap}
.cd-tabs button[aria-selected=true]{color:var(--blue);font-weight:600}
.cd-tabs button[aria-selected=true]::after{content:'';position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:3px;background:var(--blue)}
.cd-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.cd-layout>*{min-width:0}
.cd-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px 24px;margin-bottom:14px}
.cd-card h2{font-size:18px;font-weight:700;color:var(--navy);margin:0 0 10px}
.cd-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cd-card-head a{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-weight:600;font-size:14.5px}
.cd-summary{font-size:16px;line-height:1.85;color:#3b4a66;margin:0}
.cd-note{font-size:13.5px;line-height:1.7;color:var(--muted);margin:12px 0 0}
.cd-facts{margin:0;display:grid;gap:0}
.cd-facts>div{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid #eef2f8}
.cd-facts>div:first-child{border-top:0}
.cd-facts dt{display:flex;align-items:center;gap:8px;font-size:14.5px;color:var(--muted)}
.cd-facts dt svg{color:var(--blue)}
.cd-facts dd{margin:0;font-size:15px;overflow-wrap:anywhere}
.cd-facts dd strong{color:var(--navy)}
.cd-facts dd small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.cd-facts dd .muted{display:inline-flex;align-items:center;gap:6px}
.cd-facts a{color:var(--blue);font-weight:600}
.cd-warning{margin:12px 0 0;padding:12px 14px;border-radius:12px;background:#fff8ea;border:1px solid #f4e2bd;color:#7a5410;font-size:14px;line-height:1.65}
.cd-evidence-empty{display:flex;gap:14px;align-items:center;margin-top:8px;padding:16px;border:1.5px dashed #c8d6f3;border-radius:14px;background:#f8faff}
.cd-evidence-empty>span{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#e7efff;color:var(--blue);flex-shrink:0}
.cd-evidence-empty svg{width:26px;height:26px}
.cd-evidence-empty strong{color:var(--navy);font-size:15px}
.cd-evidence-empty p{margin:3px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}
.cd-timeline{list-style:none;margin:6px 0 0;padding:0}
.cd-timeline li{position:relative;padding:0 0 16px 30px}
.cd-timeline li::before{content:'';position:absolute;left:0;top:5px;width:14px;height:14px;border-radius:50%;border:2.5px solid #c8d3e6;background:#fff}
.cd-timeline li:not(:last-child)::after{content:'';position:absolute;left:7px;top:22px;bottom:2px;width:2px;background:#e2e8f3}
.cd-timeline li.done::before{background:var(--blue);border-color:var(--blue)}
.cd-timeline li.now::before{border-color:#d98a0b;box-shadow:0 0 0 4px #fff1d6}
.cd-timeline strong{font-size:15px;color:var(--navy)}
.cd-timeline p{margin:3px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}
.cd-gaps{margin:0;padding-left:20px;font-size:15px;line-height:1.8;color:#3b4a66}
.cd-help-link{display:inline-flex;align-items:center;gap:8px;margin-top:14px;color:var(--blue);font-weight:600}
.cd-side{position:sticky;top:84px}
.cd-cta{background:linear-gradient(150deg,#f3f7ff,#e3ecff);border-color:#d3e0fb}
.cd-cta p{font-size:14.5px;line-height:1.7;color:var(--text);margin:0}
.cd-actions{display:grid;gap:10px;margin-top:16px}
.cd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 18px;border-radius:12px;font-size:16px;font-weight:600;text-decoration:none}
.cd-btn-primary{background:var(--blue);color:#fff;box-shadow:0 10px 22px rgba(31,95,230,.25)}
.cd-btn-primary:hover{background:var(--blue-dark)}
.cd-btn-ghost{background:#fff;color:var(--blue);border:1.5px solid #bcd0f8}
.cd-facts-mini dl{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:0;font-size:14.5px}
.cd-facts-mini dt{color:var(--muted)}.cd-facts-mini dd{margin:0;color:var(--navy);font-weight:500}
.case-main :focus-visible{outline:3px solid #8fb0ff;outline-offset:2px;border-radius:8px}
@media(max-width:950px){.cd-layout{grid-template-columns:1fr}.cd-side{position:static}}
@media(max-width:760px){
 main.case-main{margin-top:10px;padding:0 14px}
 .cd-head{padding:18px 16px;border-radius:18px}
 .cd-head h1{font-size:24px}
 .cd-stats{grid-template-columns:1fr;gap:8px}
 .cd-card{padding:18px 16px;border-radius:16px}
 .cd-facts>div{grid-template-columns:1fr;gap:4px}
 .cd-tabs button{padding:10px 12px;font-size:14.5px}
}
.cd-stats-note{margin:10px 0 0;font-size:13px;color:var(--muted)}
.cd-urgent{display:flex;gap:12px;align-items:flex-start;margin:0 0 16px;padding:14px 18px;border-radius:16px;background:#fff1f1;border:1px solid #fbd0d0;color:#7a2222;font-size:15px;line-height:1.6}
.cd-urgent svg{width:22px;height:22px;color:#d23b3b;margin-top:2px}
.cd-urgent p{margin:0}.cd-urgent a{color:#b42323;font-weight:700}
.cd-tag.cd-tag-verified{background:#e3f6ea;color:#138a3e}
/* Mockup header: artwork, status, case number, labels; then counts and the two actions */
.cd-hero{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;align-items:center}
.cd-art{display:grid;place-items:center;width:150px;height:150px;border-radius:20px}
.cd-art svg{width:64px;height:64px;stroke-width:1.5}
.cd-top{flex-wrap:wrap}
.cd-date{font-size:13.5px;color:var(--muted)}
.cd-tag{background:#fff3dc;color:#9a5b00}
.cd-tags{display:flex;flex-wrap:wrap;gap:6px}
.cd-chip{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:#3d4a66;background:#fff;border:1px solid var(--line);border-radius:8px;padding:3px 10px}
.cd-chip svg{width:15px;height:15px}
.cd-chip-fb{color:#1259c3;background:#e8f0fe;border-color:#d3e2fd}.cd-chip-fb svg{color:#1877f2}
.cd-stats strong{font-size:20px}
.cd-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.cd-buttons .cd-btn{width:100%}
button.cd-btn{font:inherit;font-size:16px;font-weight:600;cursor:pointer}
#follow-case[aria-pressed=true]{background:var(--blue-50);border-color:var(--blue)}
#follow-case[aria-pressed=true] svg{fill:currentColor}
.cd-people{padding:16px;border-radius:14px;background:#f6f9ff;margin-bottom:14px}
.cd-people strong{display:block;font-size:20px;color:var(--navy)}
.cd-people p{margin:6px 0 0;font-size:14px;line-height:1.65;color:var(--muted)}
.cd-panel .cd-btn{min-width:220px}
.cd-timeline li[hidden]{display:none}
@media(max-width:760px){
 .cd-hero{grid-template-columns:64px minmax(0,1fr);gap:4px 12px;align-items:center}
 .cd-hero-body{display:contents}.cd-hero h1,.cd-tags{grid-column:1/-1}
 .cd-art{width:64px;height:64px;border-radius:14px}.cd-art svg{width:32px;height:32px}
 .cd-head{padding:16px}
 .cd-head h1{font-size:21px;margin:6px 0 8px}
 .cd-share{padding:0 10px}
 .cd-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .cd-stats>div{flex-direction:column;align-items:flex-start;gap:6px;padding:10px}
 .cd-stat-icon{width:34px;height:34px}.cd-stat-icon svg{width:18px;height:18px}
 .cd-stats strong{font-size:16px}.cd-stats p{font-size:11.5px}
 .cd-buttons{gap:8px;grid-template-columns:1.45fr 1fr}.cd-buttons .cd-btn{white-space:nowrap}.cd-buttons .cd-btn{min-height:48px;font-size:14px;padding:0 8px;gap:6px}
 .cd-panel .cd-btn{width:100%;min-width:0}
}
/* Readable story: hook, numbered steps, warning signs, tips. */
.cd-story h3{margin:18px 0 8px;font-size:15.5px;color:var(--navy)}
.cd-hook{margin:0 0 14px;font-size:18px;line-height:1.6;font-weight:600;color:var(--navy)}
.cd-steps{list-style:none;margin:0;padding:0;counter-reset:step}
.cd-steps li{position:relative;counter-increment:step;padding:0 0 14px 40px;font-size:15.5px;line-height:1.6;color:#3b4a66}
.cd-steps li::before{content:counter(step);position:absolute;left:0;top:-1px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e7efff;color:var(--blue);font-weight:700;font-size:14px}
.cd-steps li:not(:last-child)::after{content:'';position:absolute;left:13px;top:30px;bottom:2px;width:2px;background:#dbe5f7}
.cd-signs{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cd-signs li{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:#fff1f1;border:1px solid #fbd0d0;color:#9a2a2a;font-size:14px;line-height:1.4}
.cd-signs svg{width:16px;height:16px;color:#d23b3b}
.cd-unknown{margin:16px 0 0;padding:10px 14px;border-radius:12px;background:#f5f7fb;color:var(--muted);font-size:14px;line-height:1.6}
.cd-unknown strong{color:var(--navy);margin-right:4px}
.cd-tips{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cd-tips li{display:flex;gap:10px;align-items:flex-start;font-size:15.5px;line-height:1.6;color:#3b4a66}
.cd-tips svg{margin-top:4px;color:#138a3e}
.cd-full summary{cursor:pointer;color:var(--blue);font-weight:600;font-size:15px;min-height:40px;display:flex;align-items:center}
.cd-full .cd-summary{margin-top:8px}
/* Share the case with friends (LINE / Facebook / copy). */
.cd-share-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.cd-share-row span{font-size:14px;font-weight:600;color:var(--muted);margin-right:4px}
.cd-share-row a,.cd-share-row button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}
.cd-share-row svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.cd-share-line{background:#06c755;color:#fff;border:0}
.cd-share-fb{background:#1877f2;color:#fff;border:0}
.cd-share-row button{background:#fff;color:var(--blue);border:1px solid var(--line)}
/* Plain-text case shown before case.js loads, and to search engines. */
.cd-static{max-width:760px;line-height:1.7;color:var(--text)}
.cd-static h1{font-size:26px;line-height:1.35;color:var(--navy);margin:6px 0 12px}
.cd-static h2{font-size:18px;color:var(--navy);margin:20px 0 6px}
.cd-static .cd-id{font-size:14px;color:var(--muted);margin:0}
