/* Shared styles for the Bulk Bills GitHub Pages site.
   Matches the existing pages: system-ui, #111827 text, #1d4ed8 links, #6b7280 muted. */
:root {
  --text: #111827;
  --muted: #6b7280;
  --link: #1d4ed8;
  --link-hover: #1e40af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --btn-text: #ffffff;
  --focus: #1d4ed8;
}

* { box-sizing: border-box; }

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

body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

a {
  color: var(--link);
  text-decoration-underline-offset: 2px;
}

a:hover { color: var(--link-hover); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--bg);
  padding: 4px 8px;
  z-index: 1;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

header.site .brand {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

header.site .brand:hover { color: var(--text); }

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

nav.site a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 650;
  margin: 32px 0 10px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 20px 0 8px;
}

p, ul, ol { margin: 0 0 12px; }

ul, ol { padding-left: 1.25rem; }

li { margin: 0 0 6px; }

li.sub {
  margin-left: 24px;
  list-style: circle;
}

.lead {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.muted,
small,
.fine {
  color: var(--muted);
}

.fine {
  font-size: 0.875rem;
  margin-top: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 20px 0 28px;
}

.btn {
  display: inline-block;
  background: var(--link);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 650;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
}

.btn:hover {
  background: var(--link-hover);
  color: var(--btn-text);
}

.note {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 16px 0 20px;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 16px;
}

footer.site p { margin-bottom: 8px; }

@media (max-width: 480px) {
  .wrap { padding: 16px 14px 40px; }
  h1 { font-size: 1.5rem; }
  header.site { margin-bottom: 20px; }
}
