:root {
  color-scheme: light;
  --ink: #162233;
  --muted: #64748b;
  --line: #dbe7f3;
  --accent: #0f4c81;
  --accent-2: #087f8c;
  --warm: #a16207;
  --bg: #f3f7fb;
  --panel: #fff;
  --soft: #eef6fc;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef6fc 0, #f7fafc 220px, #f3f7fb 100%);
  color: var(--ink);
  font-family: Inter, Arial, "Helvetica Neue", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-weight: 900;
  font-size: 22px;
}
.topbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.topbar nav a {
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}
.topbar nav a:hover {
  background: #eef4fb;
  text-decoration: none;
}
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 40px;
}
.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18,58,111,.08), rgba(15,118,110,.08)),
    var(--panel);
  box-shadow: 0 16px 40px rgba(16,32,51,.07);
}
h1 { margin: 0; color: #0f2f5f; font-size: clamp(32px, 5vw, 52px); line-height: 1.04; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.search {
  display: flex;
  gap: 8px;
}
.hero-search {
  max-width: 820px;
}
.search input {
  flex: 1;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.search button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.search-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(15, 76, 129, .10);
}
.search-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.search-title h1 {
  max-width: 640px;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: 0;
}
.search-title p:not(.eyebrow) {
  max-width: 440px;
  margin: 0 0 3px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
  font-weight: 700;
}
.advanced-search {
  display: grid;
  gap: 14px;
}
.query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 92px;
  gap: 10px;
}
.query-row input,
.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
.query-row input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  outline: 3px solid rgba(8, 127, 140, .14);
  border-color: #75b8c0;
}
.query-row input {
  min-height: 54px;
  font-size: 18px;
  font-weight: 700;
}
.query-row button {
  min-height: 54px;
  border: 0;
  border-radius: 7px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}
.reset-search {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}
.reset-search:hover {
  border-color: #b8cadf;
  background: #f8fbfe;
  color: var(--accent);
  text-decoration: none;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.filter-grid label > span,
.filter-grid label {
  min-width: 0;
}
.example-searches,
.facet-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.example-searches > span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.example-searches a,
.facet-strip a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c7d7e8;
  border-radius: 7px;
  padding: 0 10px;
  background: #f9fbfd;
  color: #24496f;
  font-size: 13px;
  font-weight: 800;
}
.example-searches a:hover,
.facet-strip a:hover {
  background: #fff;
  text-decoration: none;
}
.facet-strip {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #e2eaf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 76, 129, .06);
}
.facet-strip a span {
  color: var(--muted);
  font-weight: 900;
}
.lawyer-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid #e5edf6;
  padding-top: 16px;
}
.lawyer-guides div {
  display: grid;
  gap: 7px;
  align-content: start;
  border: 1px solid #e2eaf3;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #f8fbfe);
}
.guide-title {
  margin: 0 0 2px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.lawyer-guides a {
  display: block;
  color: #123a6f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7d7e8;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255,255,255,.72);
  color: #24496f;
  font-size: 13px;
  font-weight: 800;
}
.quick-links a:hover {
  background: #fff;
  text-decoration: none;
}
.site-counter {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  max-width: 460px;
}
.site-counter div {
  border: 1px solid #c7d7e8;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.78);
}
.site-counter strong {
  display: block;
  color: #0f2f5f;
  font-size: 30px;
  line-height: 1;
}
.site-counter span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0 14px;
}
.section-head h2 {
  margin: 0;
  color: #172b45;
  font-size: 22px;
}
.count {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.results {
  display: grid;
  gap: 14px;
}
.card,
.decision {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.result-card {
  display: grid;
  gap: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  box-shadow: 0 10px 26px rgba(15, 76, 129, .06);
}
.result-card:hover {
  border-color: #a9c7df;
  box-shadow: 0 16px 34px rgba(15, 76, 129, .10);
  transform: translateY(-1px);
}
.card-top,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card h2 {
  margin: 0;
  max-width: 900px;
  font-size: 19px;
  line-height: 1.34;
  letter-spacing: 0;
}
.muted { color: var(--muted); }
.court {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}
time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.result-meta div {
  display: flex;
  gap: 5px;
  align-items: baseline;
  min-height: 30px;
  border: 1px solid #d7e5f2;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f7fbff;
}
.result-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.result-meta dd {
  margin: 0;
  color: #24384f;
  font-size: 13px;
  font-weight: 700;
}
.object {
  margin: 0;
  color: #25364a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.48;
}
.result-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.match-reason {
  width: fit-content;
  margin: 0;
  border: 1px solid #b9ddd8;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef7f6;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}
.legal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.legal-tags span {
  border: 1px solid #c7d7e8;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f4f8fc;
  color: #24496f;
  font-size: 12px;
  font-weight: 900;
}
.summary {
  margin: 0;
  color: #40536a;
  line-height: 1.62;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
mark {
  border-radius: 4px;
  padding: 0 2px;
  background: #ffe7a3;
  color: #172b45;
}
.refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.refs span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
}
.read-more {
  margin-left: auto;
  border-radius: 7px;
  padding: 9px 12px;
  background: #e8f6f4;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}
.read-more:hover {
  background: #dff0ee;
  text-decoration: none;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  color: var(--muted);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.pager a,
.pager span {
  min-width: 130px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.pager a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
}
.pager a:hover {
  border-color: #b8cadf;
  background: #f9fbfd;
  text-decoration: none;
}
.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.meta div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.meta dd { margin: 4px 0 0; }
.text {
  margin-top: 20px;
  line-height: 1.65;
  max-width: 88ch;
  font-size: 17px;
}
.text p {
  margin: 0 0 14px;
  text-align: left;
}
.error {
  color: #9b1c1c;
  font-weight: 800;
}
.footer {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar nav { margin-left: 0; }
  .search { flex-direction: column; }
  .query-row,
  .filter-grid { grid-template-columns: 1fr; }
  .lawyer-guides { grid-template-columns: 1fr; }
  .search-title { align-items: flex-start; flex-direction: column; }
  .hero { padding: 20px; }
  h1 { font-size: 34px; }
  .site-counter { grid-template-columns: 1fr; max-width: none; }
  .section-head,
  .card-top,
  .card-foot { align-items: flex-start; flex-direction: column; }
  .read-more { margin-left: 0; }
  .pager { align-items: stretch; flex-direction: column; }
  .pager a,
  .pager span { width: 100%; }
}
