/* Fax legal site — single local stylesheet, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #52525b;
  --link: #0b57d0;
  --border: #d4d4d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --text: #e8e8ea;
    --muted: #a7a7b0;
    --link: #8ab4f8;
    --border: #3f3f46;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.site-header,
.tabs,
main,
.site-footer {
  max-width: 70ch;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Skip link: first focusable element, visible on focus */
.skip-link {
  position: absolute;
  left: -200vw;
  top: 0.5rem;
}

.skip-link:focus {
  left: 0.5rem;
  z-index: 10;
  background: var(--bg);
  color: var(--link);
  padding: 0.5rem 1rem;
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header */
.site-header {
  padding-top: 1.5rem;
}

.site-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Tab bar */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border);
}

.tabs a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.625rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.tabs a:hover {
  text-decoration: underline;
}

/* Active tab: weight and underline, not colour alone */
.tabs a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: currentColor;
}

/* Visible focus ring on keyboard navigation */
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Content */
main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

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

h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 2rem 0 0.5rem;
}

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

ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

li {
  margin: 0.375rem 0;
}

/* Tables scroll horizontally on narrow screens instead of squashing */
.table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  border-collapse: collapse;
  min-width: 34rem;
  font-size: 0.9375rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: inherit;
}
