:root { --ink: #292929; --muted: #666; --line: #e5e5e5; --link: #285b86; }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.wrap { width: min(100% - 48px, 780px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; padding: 8px 16px; background: var(--ink); color: #fff; z-index: 10; }
.skip:focus { top: 8px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 0 24px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 24px; font-weight: 650; text-decoration: none; }
nav { display: flex; gap: 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
main { min-height: 58vh; padding-bottom: 48px; }
.home-intro { color: var(--muted); margin: 28px 0 36px; font-size: 15px; }
.home-intro p { margin: 0; }
h1 { font-size: 30px; line-height: 1.5; margin: 0 0 20px; font-weight: 650; overflow-wrap: anywhere; }
#posts-title { font-size: 17px; font-weight: 500; color: var(--muted); margin-bottom: 0; }
.post-list { padding: 0; margin: 0; list-style: none; }
.post { border-bottom: 1px solid var(--line); padding: 26px 0; }
.post:last-child { border-bottom: 0; }
.post-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 13px; }
time { font-variant-numeric: tabular-nums; }
.post h2 { margin: 8px 0; font-size: 22px; line-height: 1.55; font-weight: 600; }
.post h2 a { color: var(--ink); text-decoration: none; }
.post h2 a:hover { color: var(--link); text-decoration: underline; }
.post p { color: var(--muted); font-size: 15px; margin: 0; }
.article-head { padding: 28px 0 22px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.article-head h1 { margin: 18px 0 12px; }
.scope { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.toc { border-block: 1px solid var(--line); margin-bottom: 32px; font-size: 14px; }
.toc summary { cursor: pointer; padding: 12px 0; min-height: 44px; }
.toc ol { margin: 0 0 16px; padding-left: 24px; }
.toc a { display: inline-block; padding: 4px 0; }
.article { min-width: 0; overflow-wrap: anywhere; }
.article h2 { font-size: 23px; line-height: 1.6; font-weight: 600; margin: 36px 0 16px; }
.article section:first-child h2 { margin-top: 0; }
.article h3 { font-size: 18px; line-height: 1.6; margin: 24px 0 10px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 8px; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 510px; font-size: 14px; line-height: 1.8; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f7f7; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { width: 34%; }
kbd { font: 13px/1.7 ui-monospace, Consolas, monospace; display: inline-block; padding: 1px 5px; margin: 1px; background: #fafafa; border: 1px solid #ddd; border-bottom-width: 2px; border-radius: 3px; white-space: nowrap; }
code { font: .9em ui-monospace, Consolas, monospace; background: #f4f4f4; padding: 2px 4px; border-radius: 2px; }
.article pre { max-width: 100%; overflow-x: auto; padding: 16px; background: #f4f4f4; line-height: 1.7; }
.article pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; }
.article pre:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.callout { border-left: 3px solid #aaa; background: #f7f7f7; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.example { padding: 18px 20px; border: 1px solid var(--line); margin: 24px 0; }
.example h3 { margin-top: 0; }
.sources { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 12px; font-size: 14px; }
.sources h2 { font-size: 19px; margin-top: 14px; }
.article-end { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; font-size: 14px; }
.article-end a { display: inline-flex; align-items: center; min-height: 44px; }
.empty { padding-top: 64px; }
.footer { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); padding: 22px 0 32px; font-size: 13px; color: var(--muted); }
.footer a { color: var(--muted); }
#police-filing:empty { display: none; }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .header { padding-top: 24px; padding-bottom: 16px; gap: 12px; }
  .brand { font-size: 21px; }
  nav { gap: 18px; }
  .home-intro { margin: 24px 0 30px; }
  .post { padding: 24px 0; }
  .post h2 { font-size: 20px; }
  h1 { font-size: 26px; }
  .article h2 { font-size: 21px; }
  .article-head { padding-top: 18px; }
  .callout, .example { padding: 14px 16px; }
  th, td { padding: 10px 12px; }
  .footer { flex-direction: column; gap: 6px; }
}
@media print {
  .header, .toc, .footer, .article-end, .back, .skip { display: none; }
  .wrap { width: 100%; }
  main { padding: 0; }
  .article-head { padding-top: 0; }
  .article { font-size: 11pt; }
  .table-wrap { overflow: visible; break-inside: avoid; }
  table { min-width: 0; }
  .article h2 { break-after: avoid; }
  a { color: #000; }
}