/* Low Cells: a newspaper. Cream paper, black ink, serif headlines, column rules. */
:root {
  --paper: #efe7d6; --paper-2: #e6dcc6; --ink: #161411; --ink-2: #4a443b; --ink-3: #7d7566; --rule: #b9ad96;
  --red: #a62a1f; --red-ink: #8d2419; --ok: #3f6b3a;
  --head: "Playfair Display", Georgia, "Times New Roman", serif; --cond: "Oswald", "Arial Narrow", sans-serif; --body: Georgia, "Times New Roman", serif; --ui: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper) url("assets/ui/paper-tile.webp") center top / 1024px repeat; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; background: rgba(239,231,214,.35); z-index: -1; pointer-events: none; }
a { color: var(--red-ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* masthead */
header.mast { text-align: center; padding: 14px 16px 12px; border-bottom: 3px double var(--ink); position: relative; background: url("assets/ui/wordmark-tile.webp") center/768px repeat; }
.side-box, .ticker-wrap + main .filters { background-image: url("assets/ui/wordmark-tile.webp"); background-size: 512px; }
footer { background: url("assets/ui/wordmark-tile.webp") center/640px repeat; }
.brand { display: inline-flex; align-items: center; gap: 8px; } .brand img { height: 22px; width: auto; }
.ears { display: flex; justify-content: space-between; font-family: var(--ui); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-bottom: 6px; max-width: 1200px; margin: 0 auto 8px; }
/* text lockup: L + mark-as-O + W CELL TIMES, so the name is live text and the mark can animate */
.lockup { display: flex; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; font-size: clamp(44px, 9vw, 112px); line-height: 1; letter-spacing: .02em; color: var(--red-ink); text-transform: uppercase; margin: 6px 0 4px; white-space: nowrap; }
.lockup .slot { display: inline-block; width: .86em; height: .86em; margin: 0 .05em; } .lockup .slot img { width: 100%; height: 100%; display: block; }
.lockup.small { font-size: 34px; margin-bottom: 8px; }
.mast-inner .tag { font-family: var(--ui); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.lead .media.collage, .media.collage { background: url("assets/ui/collage-a.webp") center/cover; }
.mast-inner img.logo.red { width: min(620px, 90vw); mix-blend-mode: normal; margin: 8px auto 4px; }
.media.small { aspect-ratio: 16/9; background: #000; margin-bottom: 8px; } .media.small iframe, .media.small video, .media.small img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.muted { color: var(--ink-3); font-family: var(--ui); font-size: 14px; }
.story details summary { font-family: var(--ui); font-size: 13px; cursor: pointer; color: var(--red-ink); } .story .body p { font-size: 15.5px; }
.counts { display: flex; gap: 0; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.count { font-family: var(--cond); font-size: 30px; line-height: 1; color: var(--ink); padding: 6px 22px; border-left: 1px solid var(--rule); }
.count:first-child { border-left: 0; }
.count small { display: block; font-family: var(--ui); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }

.quick { display: flex; gap: 8px; justify-content: center; margin: 14px auto 2px; max-width: 560px; }
.quick input { flex: 1; min-width: 0; font-size: 16px; }

/* tabs: section heads like a paper's index */
nav.tabs { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; padding: 0 12px; position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ink); border-top: 1px solid var(--ink); }
nav.tabs button { font-family: var(--cond); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 0; border-bottom: 4px solid transparent; padding: 12px 20px; cursor: pointer; }
nav.tabs button:hover { background: var(--paper-2); }
nav.tabs button.active { border-bottom-color: var(--red); color: var(--red-ink); }
nav.tabs button:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

/* wire ticker: black strip, white type */
.ticker-wrap { position: relative; overflow: hidden; background: var(--ink); color: #f3eee2; min-height: 44px; display: flex; align-items: center; }
.ticker-label { font-family: var(--cond); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; background: var(--red); color: #fff; padding: 12px 14px; flex: none; z-index: 2; }
.ticker { display: flex; gap: 44px; white-space: nowrap; padding: 10px 0; animation: scroll 220s linear infinite; width: max-content; }
.ticker:hover { animation-play-state: paused; }
.ticker span { font-family: var(--cond); font-size: 16px; letter-spacing: .03em; text-transform: uppercase; }
.ticker span b { color: #f0b9b3; font-weight: 500; margin-right: 8px; }
.ticker span i { font-style: normal; color: #bdb6a8; font-family: var(--ui); font-size: 12.5px; text-transform: none; letter-spacing: 0; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

main { padding: 22px 0 60px; }
section { display: none; } section.active { display: block; }
h2.sec { font-family: var(--head); font-weight: 900; font-size: 30px; letter-spacing: -.01em; margin: 10px 0 12px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
h2.sec small { font-family: var(--ui); font-weight: 400; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-left: 10px; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 760px; }
.disc { font-family: var(--ui); font-size: 13px; color: var(--ink-2); border-left: 3px solid var(--red); padding: 6px 12px; margin: 14px 0 20px; }

/* newspaper columns */
.paper { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.col-side { border-left: 1px solid var(--rule); padding-left: 22px; }
.side-box { border-top: 3px solid var(--ink); padding: 10px 0 16px; margin-bottom: 8px; }
.side-box h3 { font-family: var(--head); font-size: 20px; margin: 0 0 6px; }
.side-box p { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }

/* lead story */
.lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; padding: 18px 0 22px; border-bottom: 3px double var(--ink); margin-bottom: 20px; }
.lead .media { background: var(--paper-2); aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--rule); }
.lead .media iframe, .lead .media video, .lead .media img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.lead h1 { font-family: var(--head); font-weight: 900; font-size: 40px; line-height: 1.05; margin: 0 0 10px; letter-spacing: -.01em; }
.lead .dek { font-size: 20px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.4; }
.lead .body p { margin: 0 0 10px; }
.kicker { font-family: var(--ui); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 6px; }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.story { border-top: 1px solid var(--ink); padding-top: 10px; }
.story h3 { font-family: var(--head); font-size: 21px; line-height: 1.15; margin: 4px 0 6px; }
.story p { font-size: 15px; color: var(--ink-2); margin: 0 0 8px; }
.story .links a { font-family: var(--ui); font-size: 13px; margin-right: 10px; }
.story-full { max-width: 780px; }

/* booking records: light, flat, photo in color, facts in a grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.card { color: var(--ink); background: #fbf8f1; border: 1px solid #cfc5b0; border-top: 3px solid var(--ink); padding: 12px 14px; position: relative; }
.card.framed { display: grid; grid-template-columns: 132px 1fr; gap: 14px; }
.frame { width: 132px; height: 165px; background: #ebe4d4; border: 1px solid #cfc5b0; display: grid; place-items: center; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .empty { font-family: var(--ui); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8c8372; text-align: center; }
.card h3 { font-family: var(--head); font-size: 21px; line-height: 1.1; margin: 4px 0 6px; color: var(--ink); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-family: var(--ui); font-size: 13px; margin-bottom: 8px; }
.facts dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; padding-top: 2px; } .facts dd { margin: 0; color: var(--ink); }
.facts dd b { font-weight: 600; }
.chg { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; font-family: var(--ui); font-size: 13.5px; line-height: 1.3; }
.chg > span:nth-child(2) { flex: 1; min-width: 0; }
.chg .ic { width: 18px; height: 18px; flex: none; background-color: var(--red-ink); -webkit-mask: var(--f1) center/contain no-repeat; mask: var(--f1) center/contain no-repeat; margin-top: 1px; }
.chg .bond { margin-left: auto; white-space: nowrap; color: var(--ink-3); font-size: 12.5px; }
/* severity: one color system everywhere (status palette) */
:root { --sev-critical: #d03b3b; --sev-serious: #ec835a; --sev-moderate: #d9a21b; --sev-minor: #8a8f85; }
.sev-critical { --sev: var(--sev-critical); } .sev-serious { --sev: var(--sev-serious); } .sev-moderate { --sev: var(--sev-moderate); } .sev-minor { --sev: var(--sev-minor); }
.card { border-left: 6px solid var(--sev, var(--sev-minor)); }
.chg .ic { background-color: var(--sev-icon, var(--ink)); }
.sevtag { display: inline-block; font-family: var(--ui); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; color: #fff; background: var(--sev, var(--sev-minor)); margin-left: 6px; vertical-align: middle; }
.ticker span.sev-critical b { color: #ff8a80; } .ticker span.sev-serious b { color: #ffb08a; } .ticker span.sev-moderate b { color: #f2d27a; } .ticker span.sev-minor b { color: #bdb6a8; }
.ticker span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sev, var(--sev-minor)); margin-right: 8px; vertical-align: middle; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--ui); font-size: 12px; color: var(--ink-2); margin: 6px 0 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.movement { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); margin: 14px 0 6px; }
.movement > div { padding: 10px 14px; border-right: 1px solid var(--rule); font-family: var(--ui); font-size: 13px; }
.movement > div:last-child { border-right: 0; }
.movement b.j { font-family: var(--cond); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.movement .in { color: var(--red-ink); font-weight: 600; } .movement .out { color: var(--ok); font-weight: 600; }
@media (max-width: 700px) { .movement { grid-template-columns: 1fr; } .movement > div { border-right: 0; border-bottom: 1px solid var(--rule); } }
.card .actions { margin-top: 8px; font-family: var(--ui); font-size: 13px; } .card .actions a { color: var(--red-ink); }
.stamp { display: inline-block; font-family: var(--ui); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; background: var(--red); color: #fff; border-radius: 2px; }
.stamp.rel { background: #6b7a5c; }
.jail-tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.jail-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--c); vertical-align: middle; }
.j-berkeley { --c: #2a78d6; } .j-charleston { --c: #eb6834; } .j-dorchester { --c: #1baf7a; }

/* controls: plain */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; padding: 14px; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 14px; }
.filters label, .alert-form label, label { display: flex; flex-direction: column; gap: 4px; font-family: var(--ui); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
input, select { font-family: var(--ui); background: #fbf8f1; color: var(--ink); border: 1px solid #8a7f70; border-radius: 3px; padding: 9px 10px; font-size: 15px; min-width: 0; text-transform: none; letter-spacing: 0; }
input::placeholder { color: #9b927f; }
input:focus, select:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.btn { font-family: var(--cond); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: #fff; cursor: pointer; padding: 10px 20px; border: 1px solid transparent; border-radius: 3px; background: var(--ink); text-decoration: none; display: inline-block; }
.btn:hover { background: #2d2925; } .btn:active { background: #000; }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.btn.chalk { background: transparent; color: var(--ink); border-color: var(--ink); } .btn.chalk:hover { background: var(--paper-2); }
.btn.neon { background: var(--red); } .btn.neon:hover { background: #bf3225; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.pager button { background: transparent; border: 1px solid var(--ink); color: var(--ink); padding: 7px 13px; cursor: pointer; font-family: var(--cond); font-size: 15px; border-radius: 3px; }
.pager button.on { background: var(--ink); color: #fff; }

/* stats and bars */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--ink); }
.stat { padding: 16px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--cond); font-size: 40px; line-height: 1; }
.stat .l { font-family: var(--ui); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: 22px 1fr 56px; gap: 10px; align-items: center; margin: 7px 0; font-family: var(--ui); font-size: 14px; }
.hbar .ic { width: 20px; height: 20px; background: var(--ink); -webkit-mask: var(--f1) center/contain no-repeat; mask: var(--f1) center/contain no-repeat; }
.hbar .track { height: 10px; background: var(--paper-2); border: 1px solid var(--rule); } .hbar .fill { height: 100%; background: var(--red); }
.hbar .lab { display: block; font-size: 12.5px; color: var(--ink-2); text-transform: capitalize; }

/* services, faq, victim lists */
.svc { border-top: 3px solid var(--ink); margin-bottom: 20px; padding-top: 8px; }
.svc h3 { font-family: var(--head); font-size: 22px; margin: 0 0 2px; }
.svc .addr { font-family: var(--ui); font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.svc dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; margin: 0; font-size: 15.5px; }
.svc dt { font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; } .svc dd { margin: 0; color: var(--ink-2); }
.verify { font-family: var(--ui); font-size: 12px; color: var(--red-ink); }
.faq details { border-bottom: 1px solid var(--rule); padding: 10px 0; } .faq summary { font-family: var(--head); font-size: 18px; cursor: pointer; } .faq p { color: var(--ink-2); margin: 8px 0 0; }
.vgroup { margin-bottom: 18px; } .vgroup h3 { font-family: var(--head); font-size: 21px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.vitem { padding: 8px 0; border-bottom: 1px dotted var(--rule); } .vitem b { font-family: var(--cond); font-size: 17px; letter-spacing: .03em; }
.vitem .ph { font-family: var(--cond); font-size: 18px; color: var(--red-ink); margin-left: 8px; } .vitem p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.alert-form { display: grid; gap: 12px; max-width: 520px; }
.about p { max-width: 760px; }
footer { border-top: 3px double var(--ink); padding: 22px 16px; font-family: var(--ui); font-size: 12.5px; color: var(--ink-2); text-align: center; margin-top: 30px; }
footer img { width: 130px; opacity: .85; display: block; margin: 0 auto 10px; filter: invert(1) brightness(.15); }
@media (max-width: 860px) { .paper, .lead { grid-template-columns: 1fr; } .col-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 12px; } .lead h1 { font-size: 30px; } }
@media (max-width: 640px) { .card.framed { grid-template-columns: 1fr; } .frame { margin: 0 auto; } nav.tabs button { padding: 10px 12px; font-size: 15px; } .count { font-size: 24px; padding: 6px 12px; } }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; white-space: normal; width: auto; } }
