/* The Daily Bench: newspaper-style legal news layout. Navy + gold, serif headlines. */
:root {
  --bg: #ffffff; --soft: #f4f6fa; --surface: #ffffff; --ink: #14213d; --body: #2b3a55; --muted: #667690; --line: #e3e8f1;
  --navy: #0f2347; --navy-2: #1b3a6b; --gold: #c8a24a; --gold-ink: #8a6a14; --gold-soft: #fbf4df;
  --link: #1b3a6b; --aphc: #0e7490; --tshc: #6d28d9; --sci: #9f1239;
  --warn-bg: #fff4d6; --warn-ink: #7a5300; --shadow: 0 1px 3px rgba(15,35,71,.08), 0 8px 24px rgba(15,35,71,.06);
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, Cambria, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1426; --soft: #101b33; --surface: #121c33; --ink: #eef2fa; --body: #cbd5e7; --muted: #9fb0cc; --line: #243253;
    --navy: #08122a; --navy-2: #1a2f5a; --gold: #d9b45a; --gold-ink: #e6c978; --gold-soft: #2a2412; --link: #8fb0e6;
    --aphc: #38bdf8; --tshc: #a78bfa; --sci: #fb7185; --warn-bg: #3a2f0f; --warn-ink: #f5d78a; --shadow: 0 1px 2px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.65 var(--sans); }
a { color: var(--link); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.preview-bar { background: var(--warn-bg); color: var(--warn-ink); text-align: center; font-size: 14px; padding: 6px 12px; }

/* Masthead */
.mast { background: var(--surface); border-bottom: 1px solid var(--line); }
.mast-row { display: flex; align-items: center; gap: 16px 28px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font: 800 26px/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.logo-text small { font: 500 12px var(--sans); color: var(--muted); letter-spacing: .02em; }
.msearch { flex: 1; max-width: 560px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 14px; color: var(--muted); }
.msearch:focus-within { border-color: var(--navy-2); background: var(--surface); box-shadow: 0 0 0 3px rgba(27,58,107,.12); }
.msearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); padding: 9px 0; }
.msearch button { border: 0; cursor: pointer; background: var(--navy); color: #fff; font: 700 14px var(--sans); padding: 10px 18px; border-radius: 9px; }
.msearch button:hover { background: var(--navy-2); }
.btn-sub { flex: none; text-decoration: none; background: var(--gold); color: #1a1405; font: 700 14px var(--sans); padding: 11px 18px; border-radius: 10px; }
.btn-sub:hover { filter: brightness(1.07); }

/* Category bar */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.navrow { display: flex; flex-wrap: wrap; align-items: stretch; }
.navbar a { color: rgba(255,255,255,.9); text-decoration: none; padding: 13px 16px; font: 600 14px var(--sans); display: block; white-space: nowrap; }
.navbar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.dd { position: relative; }
.dd-t span { font-size: 10px; margin-left: 3px; color: var(--gold); }
.dd-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: 0 14px 34px rgba(15,35,71,.2); padding: 6px; z-index: 40; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { color: var(--ink); border-radius: 8px; padding: 9px 12px; display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.dd-menu a:hover { background: var(--soft); color: var(--navy-2); }
.dd-menu small { color: var(--muted); }
.dd-all { color: var(--gold-ink) !important; font-weight: 700 !important; }

main { padding-top: 28px; padding-bottom: 64px; min-height: 55vh; }

/* Section headings: Top Stories / Latest Stories */
.sec { display: flex; align-items: center; gap: 14px 18px; margin: 0 0 18px; flex-wrap: wrap; }
.sec h2 { font: 800 28px/1.1 var(--serif); letter-spacing: -.01em; margin: 0; color: var(--ink); }
.sec h2 span { color: var(--gold-ink); }
.sec::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), var(--line) 40%); min-width: 40px; order: 1; }
.sec .filters, .sec .sec-more { order: 2; }
.sec-more { font: 700 13.5px var(--sans); text-decoration: none; color: var(--gold-ink); }
.sec-more:hover { text-decoration: underline; }

/* Top stories */
.topstories { margin-bottom: 40px; }
.topgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.lead-visual { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 230px; border-radius: 14px; padding: 22px; text-decoration: none; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2)); margin-bottom: 14px; }
.lv-aphc { background: linear-gradient(135deg, #0b4f61, #0e7490); } .lv-tshc { background: linear-gradient(135deg, #3b1a7a, #6d28d9); } .lv-sci { background: linear-gradient(135deg, #5c0a24, #9f1239); }
.lead-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 20px 20px; }
.lead-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.lv-abbr { position: absolute; right: 22px; top: 8px; font: 800 96px/1 var(--serif); color: rgba(255,255,255,.14); }
.lv-court { position: relative; font: 700 17px var(--serif); } .lv-date { position: relative; font-size: 13px; color: rgba(255,255,255,.8); }
.lead h3 { font: 800 clamp(24px, 3vw, 31px)/1.22 var(--serif); letter-spacing: -.015em; margin: 8px 0 10px; }
.lead h3 a { color: var(--ink); text-decoration: none; } .lead h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.lead .excerpt { font-size: 17px; -webkit-line-clamp: 4; }
.minilist { display: flex; flex-direction: column; }
.mini { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.mini:first-child { padding-top: 0; } .mini:last-child { border-bottom: 0; }
.mini h4 { font: 700 17px/1.35 var(--serif); margin: 4px 0 0; }
.mini h4 a { color: var(--ink); text-decoration: none; } .mini h4 a:hover { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--gold); }

/* Thumbnails */
.thumb { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 14px; color: #fff; font: 800 22px var(--serif); text-decoration: none; background: var(--navy-2); position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); }
.thumb.sm { width: 58px; height: 58px; font-size: 18px; border-radius: 12px; } .thumb.xs { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.thumb-aphc { background: var(--aphc); } .thumb-tshc { background: var(--tshc); } .thumb-sci { background: var(--sci); }
@media (prefers-color-scheme: dark) { .thumb { color: #0b1426; } }

/* Layout with sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; }
.day { margin-top: 8px; }
.day-head { font: 700 12.5px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.day-head a { color: var(--navy-2); text-decoration: none; } .day-head a:hover { text-decoration: underline; }
.count { font: 500 12px var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--navy-2); } .chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Story rows */
.stories { display: flex; flex-direction: column; }
.story { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.story[hidden] { display: none; }
.story:last-child { border-bottom: 0; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 600 12.5px var(--sans); }
.k-court { text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; color: var(--navy-2); }
.k-aphc { color: var(--aphc); } .k-tshc { color: var(--tshc); } .k-sci { color: var(--sci); }
.k-topic { color: var(--muted); text-decoration: none; font-weight: 600; } .k-topic:hover { color: var(--navy-2); text-decoration: underline; }
.k-sep { color: var(--line); } .date { color: var(--muted); font-weight: 600; }
.story h3 { font: 800 clamp(19px, 2.2vw, 22px)/1.3 var(--serif); letter-spacing: -.01em; margin: 6px 0 8px; }
.story h3 a { color: var(--ink); text-decoration: none; }
.story h3 a:hover { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.excerpt { font: 400 16.5px/1.65 var(--serif); color: var(--body); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.readmore { margin-left: auto; font: 700 13.5px var(--sans); color: var(--gold-ink); text-decoration: none; } .readmore:hover { text-decoration: underline; }
.outcome { font: 700 12px var(--sans); background: var(--gold-soft); color: var(--gold-ink); padding: 3px 11px; border-radius: 6px; }
.case { color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.flag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.flag-landmark { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-ink); }
.flag-draft { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.badge { color: #fff; font-weight: 700; font-size: 12px; padding: 3px 11px; border-radius: 999px; background: var(--navy-2); }
.badge-aphc { background: var(--aphc); } .badge-tshc { background: var(--tshc); } .badge-sci { background: var(--sci); }
.tag { font-size: 12.5px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); padding: 2px 10px; border-radius: 8px; text-decoration: none; }

/* Share icons */
.shr { display: inline-flex; gap: 6px; margin-left: auto; }
.story-foot .shr { margin-left: auto; }
.lead .story-foot .shr { margin-left: 0; }
.ic { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; text-decoration: none; transition: all .15s; }
.ic:hover { color: #fff; border-color: transparent; transform: translateY(-1px); }
.ic-wa:hover { background: #1faa59; } .ic-x:hover { background: #111; } .ic-tg:hover { background: #229ed9; } .shr button.ic:hover { background: var(--navy-2); }
.share-line { margin: 4px 0 18px; } .share-line .shr { margin-left: 0; }
.share-line .ic { width: 38px; height: 38px; }

/* Sidebar */
.side { display: flex; flex-direction: column; gap: 24px; }
.box { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.box-t { font: 800 12.5px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--navy-2); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.gist { list-style: none; counter-reset: g; margin: 0; padding: 0; }
.gist li { counter-increment: g; position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); }
.gist li:last-child { border-bottom: 0; }
.gist li::before { content: counter(g); position: absolute; left: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 800 12px/24px var(--sans); text-align: center; }
.gist a { font: 700 15px/1.4 var(--serif); color: var(--ink); text-decoration: none; display: block; } .gist a:hover { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--gold); }
.gist small { color: var(--muted); font-size: 12px; } .gd { display: none; }
.clist { list-style: none; margin: 0; padding: 0; }
.clist a { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.clist a:hover .cn { color: var(--navy-2); text-decoration: underline; }
.cn { flex: 1; line-height: 1.3; } .cc { background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.topic-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; }
.topic-pill span { background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 0 8px; font-size: 11.5px; }
.topic-pill:hover { border-color: var(--gold); }
.tagcloud.big { gap: 10px; } .tagcloud.big .topic-pill { font-size: 15px; padding: 9px 9px 9px 16px; }
.box-more { margin: 12px 0 0; font-weight: 700; font-size: 13.5px; }
.box-sub { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: transparent; color: rgba(255,255,255,.88); }
.box-sub .box-t { color: #fff; } .box-sub p { margin: 0 0 14px; font-size: 14.5px; }
.btn-gold { display: inline-block; background: var(--gold); color: #1a1405; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 10px; }
.btn-gold:hover { filter: brightness(1.07); }

/* Page headers for list pages */
.band { background: var(--soft); border-bottom: 1px solid var(--line); color: var(--ink); padding: 26px 0 22px; }
.band .wrap { position: static; }
.band h1 { font: 800 clamp(26px, 4vw, 36px)/1.15 var(--serif); letter-spacing: -.015em; margin: 0 0 6px; color: var(--ink); }
.band .lede { color: var(--muted); margin: 0; font-size: 16px; } .band .lede a { color: var(--gold-ink) !important; font-weight: 700; }
.eyebrow { display: inline-block; font: 800 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.bigsearch { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--muted); border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 16px; margin-top: 16px; max-width: 720px; box-shadow: var(--shadow); }
.bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; color: var(--ink); background: transparent; padding: 10px 0; }
.bigsearch button { border: 0; cursor: pointer; background: var(--navy); color: #fff; font: 700 15px var(--sans); padding: 11px 22px; border-radius: 10px; }

/* Search page */
.sfilters { display: flex; flex-wrap: wrap; gap: 12px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.sfilters label { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; }
.sfilters select { font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
mark { background: #ffe9a8; color: #1a1405; border-radius: 3px; padding: 0 2px; }
@media (prefers-color-scheme: dark) { mark { background: #6b551a; color: #fff; } }

/* Post page */
.post { max-width: 780px; margin-left: auto; margin-right: auto; }
.post > h1 { font: 800 clamp(28px, 4.6vw, 40px)/1.2 var(--serif); letter-spacing: -.02em; margin: 12px 0 14px; color: var(--ink); }
.post h2 { font: 800 12.5px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 30px 0 8px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; } .crumbs a { color: var(--muted); }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; margin-bottom: 4px; }
.summary { font: 400 19px/1.75 var(--serif); color: var(--ink); }
.facts { display: grid; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); margin: 0 0 8px; overflow: hidden; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; } .facts dt { color: var(--muted); font-size: 13.5px; } .facts dd { margin: 0; font-weight: 500; color: var(--ink); }
.held { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 16px 20px; font: 400 17.5px/1.7 var(--serif); color: var(--ink); }
.held p { margin: 0; }
.issues, .statutes { padding-left: 20px; } .issues li::marker { color: var(--gold); } .issues li, .statutes li { margin: 5px 0; }
.cta { margin: 30px 0 12px; }
.button { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 12px; font-weight: 700; border-bottom: 3px solid var(--gold); }
.button:hover { background: var(--navy-2); }
.notice { font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.section-title { font: 800 24px/1.2 var(--serif); margin: 0 0 8px; color: var(--ink); }

.archive { list-style: none; padding: 0; margin: 0; max-width: 640px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.archive li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.archive li:last-child { border-bottom: 0; } .archive a { text-decoration: none; font-weight: 600; }
.empty-state, .empty { text-align: center; color: var(--muted); padding: 56px 0; } .empty-state h2 { color: var(--ink); font-family: var(--serif); }
.more-link { margin-top: 24px; font-weight: 700; }
.prose h2 { font: 800 21px var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.74); font-size: 13.5px; padding: 30px 0 40px; border-top: 4px solid var(--gold); }
.footer a { color: var(--gold); } .footer p { margin: 6px 0; } .footer strong { color: #fff; }
.foot-brand { display: flex; flex-direction: column; margin-bottom: 8px; } .foot-brand b { font: 800 20px var(--serif); color: #fff; } .foot-brand span { color: rgba(255,255,255,.65); }
.ad { margin: 8px 0; min-height: 90px; text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

/* Responsive */
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .topgrid { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 760px) {
  .mast-row { flex-wrap: wrap; gap: 12px; } .msearch { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; } .btn-sub { margin-left: auto; }
  .logo-text b { font-size: 22px; } .logo-mark { width: 40px; height: 40px; }
  .navrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .navrow::-webkit-scrollbar { display: none; }
  .dd-menu { display: none !important; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; } .story { grid-template-columns: 56px minmax(0,1fr); gap: 14px; }
  .thumb { width: 56px; height: 56px; font-size: 17px; border-radius: 12px; }
  .lead-visual { min-height: 170px; padding: 16px; } .lv-abbr { font-size: 70px; }
  .facts div { grid-template-columns: 1fr; gap: 0; } .readmore { margin-left: 0; }
  .sec h2 { font-size: 24px; } .story-foot .shr { margin-left: 0; }
}
/* Adaptive layouts for sparse content */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topgrid.solo { grid-template-columns: 1fr; }
.topgrid.solo .lead { display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 30px; align-items: center; }
.topgrid.solo .lead-visual { margin: 0; min-height: 270px; height: 100%; }
.coming { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 14px 18px; color: var(--ink); margin: 0 0 26px; font-weight: 500; }
.side-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 760px) { .topgrid.solo .lead { grid-template-columns: 1fr; gap: 6px; } .topgrid.solo .lead-visual { min-height: 170px; margin-bottom: 14px; } }
@media (max-width: 560px) { .btn-sub { display: none; } .mast-row { padding-top: 12px; padding-bottom: 12px; } .logo-text b { font-size: 21px; } }
