/* Wisconsin and Federal Legislation. Plain CSS, no framework. */

:root {
  --text: #1b1b1b;
  --muted: #4a4a4a;
  --link: #0a4a8a;
  --link-visited: #5a2a7a;
  --line: #d6dbe2;
  --panel: #f4f6f9;
  --tag-bg: #e6ecf3;
  --new-bg: #1d6b3a;
  --focus: #1a5fb4;
  --banner-bg: #eef4fb;
  --banner-border: #0a4a8a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: #ffffff;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.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;
}

.site-header,
main,
.site-footer {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header { padding-top: 1.25rem; }

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 { font-size: 1.25rem; }

.data-credit {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.85rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: var(--banner-bg);
  border-left: 5px solid var(--banner-border);
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0 0 1rem;
  font-size: 1rem;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.intro { color: var(--muted); margin: 0 0 0.5rem; }

.updated { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 1rem;
}

@media (min-width: 40rem) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .field-search { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #8a94a3;
  border-radius: 4px;
}

.count {
  margin: 1rem 0 0.25rem;
  font-weight: 600;
  color: var(--muted);
}

.date-group { margin-top: 1.5rem; }

.date-heading {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--text);
}

.date-count { font-weight: 400; color: var(--muted); font-size: 0.95rem; }

.bill-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bill {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.bill-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
}

.bill-number {
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 0.25rem;
}

.tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--text);
  border: 1px solid #b9c4d2;
}

.tag.new {
  background: var(--new-bg);
  border-color: var(--new-bg);
  color: #ffffff;
  font-weight: 700;
}

.tag.hidden-reason {
  background: #fff4e0;
  border-color: #d9a441;
}

.bill-title { margin: 0.2rem 0; font-weight: 600; }

.bill-summary { margin: 0.2rem 0; color: var(--muted); }

.bill-meta { margin: 0.2rem 0; font-size: 0.95rem; color: var(--muted); }

.bill-links {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.95rem;
}

.bill-links a { font-weight: 600; }

.empty { padding: 1.5rem 0; font-weight: 600; }

.error { color: #8a1c1c; font-weight: 600; }

.prose h2 { margin-top: 1.75rem; }
.prose p { max-width: 48rem; }

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer p { margin: 0 0 0.75rem; }

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