:root {
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --ink: #1c1915;
  --muted: #5e574c;
  --line: #d5cdbf;
  --stamp: #8e1e1b;
  --navy: #163044;
  --chip: #e7e0d2;
  --live: #1d4a38;
  --pending: #7a4e12;
  --max: 1120px;
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
}
a { color: var(--navy); }
a:hover { color: var(--stamp); }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.5rem; z-index: 5; }

.mast {
  border-top: 6px solid var(--stamp);
  background: #f7f4ed;
  border-bottom: 1px solid var(--line);
}
.mast-inner, .wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.kicker {
  margin: 1.1rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 700;
}
.wordmark {
  display: block;
  margin: 0.1rem 0 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.wordmark:hover { color: var(--ink); }
.dek { margin: 0.45rem 0 1rem; max-width: 40rem; color: var(--muted); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.55rem 0 0.7rem;
  font-size: 0.95rem;
}
.nav a { text-decoration: none; font-weight: 650; }
.nav a[aria-current="page"] { color: var(--stamp); box-shadow: inset 0 -2px 0 var(--stamp); }

.disclaimer {
  background: #f8e8e2;
  border-bottom: 1px solid #e4cfc6;
  color: #3d241f;
}
.disclaimer p { margin: 0; padding: 0.7rem 0; font-size: 0.95rem; }

.wrap { padding: 1.4rem 0 3rem; }
.layout { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.layout > * { min-width: 0; }
.filters { position: sticky; top: 0.75rem; }
.filters .row-2 { grid-template-columns: 1fr; }
.filters h2, .panel h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 0.6rem; }
label { display: block; font-size: 0.82rem; font-weight: 700; margin: 0.65rem 0 0.2rem; }
input, select, textarea, button {
  font: inherit;
  color: inherit;
}
input[type="date"], input[type="search"], input[type="email"], input[type="text"], select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fffdf8;
  border: 1px solid #c9c0b2;
  border-radius: 2px;
  padding: 0.4rem 0.5rem;
}
.filing[hidden], [hidden] { display: none !important; }
textarea { min-height: 9rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.check { display: flex; gap: 0.45rem; align-items: flex-start; font-weight: 600; font-size: 0.92rem; margin-top: 0.8rem; }
.check input { margin-top: 0.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
button, .button {
  background: var(--navy);
  color: #f7f4ed;
  border: 0;
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.92rem;
}
button.ghost, .button.ghost { background: transparent; color: var(--navy); border: 1px solid #c9c0b2; }
button.test, .button.test { background: transparent; color: var(--pending); border: 1px dashed var(--pending); }
.hint { color: var(--muted); font-size: 0.85rem; }

.lede h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 0.4rem; }
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.stats li { background: var(--chip); padding: 0.35rem 0.55rem; font-size: 0.88rem; }
.countline { color: var(--muted); margin: 0 0 0.6rem; }

.filing {
  display: grid;
  grid-template-columns: 7.2rem 1fr auto;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.filing time { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); padding-top: 0.25rem; }
.filing h2 { font-size: 1.28rem; line-height: 1.2; margin: 0; }
.filing h2 a { color: var(--ink); text-decoration: none; }
.filing h2 a:hover { color: var(--stamp); }
.meta { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.chip {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: var(--chip);
  color: var(--ink);
  padding: 0.12rem 0.4rem;
  text-decoration: none;
}
.chip.stamp { background: var(--stamp); color: #fff8f5; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.docket { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-align: right; }
h1, .facts dd, .docket, .meta { overflow-wrap: anywhere; }

.ad-slot {
  margin: 1rem 0;
  min-height: 5.5rem;
  border: 1px dashed #b7ad9e;
  background: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(0,0,0,0.015) 8px, rgba(0,0,0,0.015) 16px);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.8rem;
  font-size: 0.85rem;
}
.ad-slot strong { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }

.panel { background: #f7f4ed; border: 1px solid var(--line); padding: 0.9rem 1rem; margin: 1rem 0; }
.panel ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.status-live { color: var(--live); font-weight: 700; }
.status-pending, .status-blocked, .status-partial { color: var(--pending); font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.4rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.facts { display: grid; grid-template-columns: 11rem 1fr; gap: 0.35rem 0.8rem; margin: 1rem 0; }
.facts dt { color: var(--muted); font-size: 0.85rem; }
.facts dd { margin: 0; }
.prose { max-width: 42rem; }
.prose h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; margin-top: 0; }
.note { border-left: 3px solid var(--stamp); padding-left: 0.8rem; }

dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  max-width: 28rem;
  padding: 1.2rem;
}
dialog::backdrop { background: rgba(28, 25, 21, 0.45); }

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 1.2rem 0 2rem;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.6rem; }
.footer a { color: var(--muted); }

.empty {
  border: 1px solid var(--line);
  padding: 1rem;
  background: #f7f4ed;
}

.filter-toggle { display: none; margin-bottom: 0.8rem; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.is-open { display: block; }
  .filter-toggle { display: inline-block; }
  .filing { grid-template-columns: 1fr; gap: 0.2rem; }
  .docket { text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .nav { gap: 0.45rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
