/* Supreme Court Filings Dashboards – compact professional styles */

:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b1220;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --card: #0f172a;
    --border: #23324a;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  }
}

*{box-sizing:border-box}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.45;
  max-width: 800px;
  padding: 0 0.75rem 2.5rem;
  margin: 2.5rem auto;
}

h1{
  font-weight: 600;
  font-size: clamp(1.4rem, 1.8vw + 1rem, 1.8rem);
  margin: 0 0 0.5rem 0;
}

h1 + p{
  color: var(--muted);
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

ul{
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
}

li a{
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  box-shadow: var(--shadow);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform .05s ease, border-color .12s ease, box-shadow .12s ease;
}

li a:hover{
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(29,78,216,0.12);
}

a:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

li a[target="_blank"]::after{
  content: "↗";
  margin-left: 0.4ch;
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 420px){
  body{ margin: 1.5rem auto; padding-bottom: 2rem; }
  li a{ padding: 0.6rem 0.7rem; font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
