:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #0c1b2a;
  --muted: #64748b;
  --line: #dbe4ef;
  --blue: #123c69;
  --blue-2: #0f5b99;
  --gold: #c79a2e;
  --ok: #147d48;
  --bad: #b42318;
  --shadow: 0 18px 50px rgba(15, 42, 70, .10);
  font-family: "Noto Sans", "DejaVu Sans", "Liberation Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, .88);
  border-bottom: 1px solid rgba(196, 210, 226, .8);
  backdrop-filter: blur(14px);
}
.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand img {
  display: block;
  border-radius: 10px;
}
.brand span {
  display: grid;
  line-height: 1.1;
}
.brand strong {
  color: var(--blue);
  font-size: 1rem;
}
.brand small {
  color: var(--muted);
  font-size: .78rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #28435f;
  font-weight: 700;
  font-size: .92rem;
}
.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a:focus-visible,
.nav-links a:hover {
  outline: none;
  background: #e8f1fb;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}
.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-content {
  max-width: 840px;
}
.eyebrow {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.04;
}
h2 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 1.35rem;
}
.lead {
  max-width: 760px;
  color: #31465d;
  font-size: 1.18rem;
}
.search-box {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 780px;
  margin-top: 24px;
}
.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  border: 1px solid #bdcadb;
  border-radius: 14px;
  padding: 0 18px;
  font: inherit;
  box-shadow: 0 8px 22px rgba(15, 42, 70, .08);
}
.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  cursor: pointer;
}
.search-box button:focus-visible,
.search-box button:hover {
  outline: 3px solid rgba(199, 154, 46, .35);
}
.search-box.compact {
  margin-top: 16px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.quick-links a,
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd8e7;
  border-radius: 999px;
  padding: 7px 12px;
  background: white;
  color: var(--blue);
  font-weight: 800;
  font-size: .88rem;
}
.court-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.court-card {
  display: grid;
  gap: 8px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.court-card strong { color: var(--blue); }
.court-card small { color: var(--muted); font-weight: 800; }
.court-badge {
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 900;
}
.court-judecatorie { background: #e8f5ff; color: #0f5b99; }
.court-tribunal { background: #f5edff; color: #6842a3; }
.court-apel { background: #fff5d8; color: #855d00; }
.court-iccj { background: #ffe8e8; color: #9f1d1d; }
.court-other { background: #eef2f7; color: #475569; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.stat-card,
.panel,
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 20px;
  display: grid;
  gap: 4px;
}
.stat-card strong {
  font-size: 2rem;
  color: var(--blue);
}
.stat-card span {
  color: var(--muted);
}
.panel {
  padding: 24px;
  margin-bottom: 20px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
}
.section-head span {
  color: var(--muted);
  font-size: .9rem;
}
.result-list {
  display: grid;
  gap: 12px;
}
.result-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  box-shadow: none;
}
.result-card:hover,
.result-card:focus-visible {
  border-color: #8fb3d8;
  outline: none;
}
.result-card strong {
  color: var(--blue);
  font-size: 1.08rem;
}
.result-card span {
  color: var(--muted);
  font-weight: 700;
}
.result-card p {
  margin: 0;
}
.page-head {
  padding: 28px 0;
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.court-hero {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: var(--shadow);
  padding: 26px;
  overflow: hidden;
}
.court-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px;
  align-items: start;
}
.court-hero-copy,
.court-tech,
.court-case-card,
.case-card-meta {
  min-width: 0;
}
.court-hero h1 {
  margin: 12px 0 8px;
  max-width: 820px;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.05;
}
.court-location {
  margin: 0;
  color: #31465d;
  font-size: 1.08rem;
  font-weight: 700;
}
.court-search {
  max-width: 720px;
}
.court-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #bfd1e5;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}
.soft-button:hover,
.soft-button:focus-visible {
  outline: none;
  border-color: #8fb3d8;
  background: #f6fbff;
}
.court-tech {
  display: grid;
  gap: 8px;
  border: 1px solid #d6e2ef;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.76);
  color: #334155;
  font-size: .88rem;
}
.court-tech strong {
  color: var(--blue);
}
.court-tech code {
  display: inline;
  font-family: "Noto Sans", "DejaVu Sans", "Liberation Sans", system-ui, sans-serif;
  font-weight: 800;
  color: #475569;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.court-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.court-stat-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 42, 70, .06);
}
.court-stat-card span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.court-stat-card strong {
  color: var(--blue);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.15;
  overflow-wrap: break-word;
}
.court-results-panel {
  padding: 22px;
}
.court-case-card {
  gap: 12px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.court-case-card:hover,
.court-case-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 42, 70, .08);
}
.court-case-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.court-case-card .court-badge {
  max-width: 46%;
  white-space: normal;
  overflow-wrap: break-word;
}
.case-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.case-card-meta div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.case-card-meta dd {
  overflow-wrap: break-word;
}
.case-card-link {
  justify-self: start;
  color: var(--blue-2);
  font-weight: 900;
}
.notice {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.warning {
  background: #fff7e6;
  border: 1px solid #f3d08a;
}
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.case-main {
  min-width: 0;
}
.case-sidebar {
  min-width: 0;
}
.sticky-panel {
  position: sticky;
  top: 88px;
}
.breadcrumbs {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: .94rem;
}
.document-header {
  background: linear-gradient(135deg, #ffffff, #edf6ff);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.document-header h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.document-header p {
  max-width: 850px;
  color: #294158;
  font-size: 1.08rem;
}
.update-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.update-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.update-button:disabled {
  cursor: wait;
  opacity: .65;
}
.update-status {
  color: #294158;
  font-weight: 800;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.meta-grid div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 900;
}
dd {
  margin: 4px 0 0;
  font-weight: 800;
}
.party-list,
.timeline {
  display: grid;
  gap: 12px;
}
.party-row,
.simple-row,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}
.party-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.party-row span,
.simple-row span {
  color: var(--muted);
}
.timeline-item time {
  color: var(--blue);
  font-weight: 900;
}
.solution-card {
  display: grid;
  gap: 12px;
  max-width: 100%;
}
.solution-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.solution-date {
  display: block;
  font-size: 1.18rem;
}
.solution-hour {
  color: var(--muted);
  font-weight: 800;
}
.solution-type {
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f1fb;
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}
.solution-summary {
  margin: 0;
  color: #24415f;
  font-weight: 900;
}
.solution {
  margin-top: 10px;
  border-left: 4px solid var(--gold);
  padding: 10px 12px;
  background: #fffaf0;
}
.solution-text {
  margin-top: 4px;
  padding: 0;
  color: #082f5f;
  font-family: "Noto Sans", "DejaVu Sans", "Liberation Sans", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.7;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}
.solution-text.primary {
  background: transparent;
  border: 0;
}
.solution-paragraph {
  margin: 0 0 1rem;
  max-width: 88ch;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.solution-paragraph:last-child {
  margin-bottom: 0;
}
.solution-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.text-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .78rem;
  font-weight: 900;
  background: #eef2f7;
  color: #334155;
}
.text-badge.article { background: #e8f5ff; color: #0f5b99; }
.text-badge.money { background: #ecfdf3; color: #087443; }
.text-badge.date { background: #fff5d8; color: #855d00; }
.privacy-note {
  color: var(--bad);
  font-weight: 800;
}
.status-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.status-live {
  color: var(--muted);
  font-weight: 800;
}
.counter-flash {
  animation: counterFlash .7s ease;
}
@keyframes counterFlash {
  0% { color: var(--gold); transform: translateY(-1px); }
  100% { color: var(--blue); transform: translateY(0); }
}
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 860px) {
  .navbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  main {
    padding: 18px 14px 42px;
  }
  .hero {
    min-height: 360px;
  }
  .search-box {
    flex-direction: column;
  }
  .search-box button {
    height: 52px;
  }
  .stats-grid,
  .court-stats,
  .court-grid,
  .court-hero-grid,
  .case-layout,
  .case-card-meta,
  .meta-grid {
    grid-template-columns: 1fr;
  }
  .court-hero {
    border-radius: 18px;
    padding: 18px;
  }
  .court-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }
  .court-case-card > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
  .court-case-card .court-badge {
    max-width: 100%;
  }
  .document-header,
  .panel {
    border-radius: 16px;
    padding: 18px;
  }
  .party-row,
  .solution-head,
  .section-head,
  .site-footer {
    flex-direction: column;
  }
  .sticky-panel {
    position: static;
  }
}

@media print {
  body {
    background: #fff;
    font-family: "Noto Serif", "DejaVu Serif", Georgia, serif;
  }
  .navbar,
  .case-sidebar,
  .update-actions {
    display: none;
  }
  main,
  .case-layout {
    display: block;
    max-width: none;
    padding: 0;
  }
  .panel,
  .document-header,
  .timeline-item {
    box-shadow: none;
    break-inside: avoid;
  }
  .solution-text {
    font-family: "Noto Serif", "DejaVu Serif", Georgia, serif;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .solution-paragraph {
    break-inside: avoid;
    margin-bottom: .85rem;
  }
}
