:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1b2737;background:#f7f8fb}*{box-sizing:border-box}body{margin:0}a{color:#17528c;text-decoration:none}a:hover{text-decoration:underline}.container{width:min(1100px,calc(100% - 40px));margin:auto}.site-header{background:white;border-bottom:1px solid #e3e7ed}.nav{display:flex;justify-content:space-between;align-items:center;padding:19px 0;gap:12px}.nav nav{display:flex;gap:25px;font-size:14px}.brand{font-weight:800;color:#152437;font-size:20px}.mark{color:#287eb5}.hero{padding:58px 0 28px;max-width:760px}.eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:800;color:#3b6992}.hero h1,.detail-header h1{font-size:clamp(30px,4vw,48px);line-height:1.13;margin:9px 0 18px;letter-spacing:-1.5px}.hero p,.detail-header p{color:#607086;line-height:1.65}.search,.panel{background:white;border:1px solid #e2e7ed;border-radius:14px;padding:24px;box-shadow:0 6px 20px #14233c07}.search label,.form-panel label{font-size:13px;font-weight:700;display:block;margin-bottom:8px}.search input,.search select,.form-panel input,.form-panel textarea{display:block;width:100%;border:1px solid #d3dce5;border-radius:8px;padding:13px;font:inherit;background:white}.filters{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;margin-top:17px;align-items:end}button,.button{display:inline-block;background:#184d75;color:white;border:0;border-radius:8px;padding:14px 21px;font:inherit;font-weight:700;cursor:pointer}button:hover,.button:hover{background:#0e3959;text-decoration:none}.button.secondary{background:#e8f1f8;color:#154e74}.section-head{display:flex;align-items:center;justify-content:space-between;margin:34px 0 15px;gap:10px}.section-head h2{font-size:21px;margin:0}.section-head p,.section-head span,.muted{color:#6b7785}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.case-card{background:white;border:1px solid #e1e6ee;border-radius:12px;padding:23px;min-height:238px;display:flex;flex-direction:column}.card-top{display:flex;justify-content:space-between;align-items:center;gap:9px}.status{display:inline-block;background:#e4edf8;color:#175383;border-radius:5px;padding:5px 9px;font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.5px}.status-charged,.status-arrested,.status-wanted{background:#fff2df;color:#875611}.status-sentenced,.status-guilty{background:#dff1e9;color:#1e6d4f}.category{font-size:12px;color:#728092}.case-card h3{line-height:1.35;font-size:19px;margin:19px 0 10px}.case-card h3 a{color:#1b2737}.case-card .summary,.case-card p{font-size:14px;line-height:1.55;color:#657487}.case-card .person-name{margin:0;font-weight:600}.read-link{font-weight:700;margin-top:auto;font-size:13px;padding-top:15px}.detail-header{max-width:830px;padding:45px 0 20px}.back{display:inline-block;margin-top:32px;font-size:13px}.detail-header h1{margin-top:15px}.panel{margin-bottom:20px;line-height:1.7}.panel h2{margin-top:0;font-size:21px}.panel li{padding:7px 0}.body-copy{white-space:normal}.warning{padding:15px;background:#fff6e6;border-left:4px solid #dea44f;border-radius:5px;line-height:1.6}.timeline{padding:12px 0;border-bottom:1px solid #e4eaf0}.timeline p{margin:5px 0}.form-panel{max-width:670px}.form-panel label{margin-top:12px}.form-panel button{margin-top:20px}.pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:35px 0}.empty{padding:25px}.site-footer{margin-top:80px;border-top:1px solid #e1e6eb;padding:26px 0;font-size:12px;line-height:1.7;color:#6b7785}.notice{background:#e3f3e9;border-radius:8px;padding:14px;margin-top:20px}@media(max-width:800px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}.filters button{grid-column:1/-1}}@media(max-width:560px){.cards{grid-template-columns:1fr}.filters{grid-template-columns:1fr}.nav{align-items:start}.nav nav{flex-direction:column;gap:7px}.hero{padding-top:35px}}

.profile-photo{width:170px;height:210px;object-fit:cover;border-radius:12px;float:right;margin:0 0 18px 22px}.card-photo{width:100%;height:175px;object-fit:cover;border-radius:8px;margin-bottom:14px}.image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.image-gallery figure{margin:0}.image-gallery img{width:100%;height:190px;object-fit:cover;border-radius:8px}.image-gallery figcaption{font-size:12px;color:#64748b;line-height:1.4}@media(max-width:560px){.profile-photo{float:none;display:block;width:140px;height:175px}}


/* ================================================================
   RETRO TERMINAL THEME — green phosphor on near-black
   Brand tokens can be changed here without touching the database.
   ================================================================ */
:root {
  --crt-bg: #050806;
  --crt-surface: #0b120d;
  --crt-surface-raised: #101a12;
  --crt-green: #98ff9e;
  --crt-bright: #c5ffbf;
  --crt-muted: #8cbf92;
  --crt-border: #32673a;
  --crt-accent: #62f66e;
  --crt-warning: #ffdd91;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, monospace;
  color: var(--crt-green);
  background: var(--crt-bg);
  color-scheme: dark;
}
html { background: var(--crt-bg); }
body { background: var(--crt-bg); color: var(--crt-green); line-height: 1.55; }
a, .case-card h3 a { color: var(--crt-bright); }
a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
::selection { background: var(--crt-green); color: #020402; }
.site-header { background: #020502; border-bottom: 1px solid var(--crt-border); }
.brand { color: var(--crt-bright); font-size: 19px; letter-spacing: .03em; }
.mark { color: var(--crt-accent); }
.nav nav a { color: var(--crt-green); }
.eyebrow { color: var(--crt-accent); letter-spacing: .14em; }
.hero h1, .detail-header h1, .section-head h2, .panel h2 { color: var(--crt-bright); letter-spacing: -.035em; }
.hero h1 { text-shadow: 0 0 14px #62f66e25; }
.hero p, .detail-header p, .muted, .section-head p, .section-head span {
  color: var(--crt-muted);
}
.search, .panel, .case-card {
  background: var(--crt-surface);
  border: 1px solid var(--crt-border);
  border-radius: 3px;
  box-shadow: none;
}
.search label, .form-panel label { color: var(--crt-bright); }
.search input, .search select, .form-panel input, .form-panel textarea {
  background: #030703;
  color: var(--crt-bright);
  border: 1px solid var(--crt-border);
  border-radius: 2px;
}
input::placeholder, textarea::placeholder { color: var(--crt-muted); opacity: 1; }
option { background: var(--crt-surface); color: var(--crt-bright); }
button, .button {
  background: var(--crt-accent);
  color: #041006;
  border: 1px solid var(--crt-accent);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
button:hover, .button:hover { background: #b3ffad; color: #041006; }
.button.secondary { background: var(--crt-surface-raised); color: var(--crt-bright); border-color: var(--crt-border); }
.button.secondary:hover { background: #193322; }
.section-head { border-bottom: 1px solid var(--crt-border); padding-bottom: 10px; }
.status {
  background: #122618;
  color: var(--crt-bright);
  border: 1px solid var(--crt-border);
  border-radius: 2px;
}
.status-charged, .status-arrested, .status-wanted {
  background: #241d0d; color: var(--crt-warning); border-color: #79612a;
}
.status-sentenced, .status-guilty {
  background: #0e2813; color: var(--crt-bright); border-color: #4c9b56;
}
.category, .case-card .summary, .case-card p, .image-gallery figcaption { color: var(--crt-muted); }
.case-card .person-name { color: var(--crt-bright); }
.warning {
  background: #231c0d; color: var(--crt-warning);
  border-left: 4px solid #d2a74e; border-radius: 0;
}
.timeline { border-bottom: 1px solid var(--crt-border); }
.site-footer { border-top: 1px solid var(--crt-border); color: var(--crt-muted); }
.notice { background: #0c2513; color: var(--crt-bright); border: 1px solid var(--crt-border); border-radius: 2px; }
.profile-photo, .card-photo, .image-gallery img { border-radius: 2px; border: 1px solid var(--crt-border); }
.pagination { color: var(--crt-muted); }
.empty { color: var(--crt-muted); }
@media (prefers-reduced-motion: no-preference) {
  .brand .mark { text-shadow: 0 0 10px #62f66e8c; }
}

/* User-facing search, sort and date range controls */
.filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
.form-field { min-width:0; }
.filter-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:20px; }
.filter-warning { color:var(--crt-warning); margin:14px 0 0; }
.record-dates { font-size:12px !important; color:var(--crt-muted) !important; margin-top:auto; }
.record-dates span { display:block; }
.filter-actions .button.secondary { text-align:center; }
@media(max-width:650px) { .filter-grid {grid-template-columns:1fr;} .filter-actions > * {width:100%;} }

/* Evidence-based automatically calculated age */
.record-age { color: var(--crt-bright, #c5ffbf); font-size: .92rem; margin: .45rem 0; }
