/* Shared visual theme across every page - a real design system instead of
   each page having its own ad hoc inline styles. Keeps the existing accent
   colors already used throughout (navy #1a3a5c, green #1e8449) since those
   are already meaningful (state colors on the map, etc) - this just makes
   the surrounding page feel like one coherent product rather than 12
   separately-styled documents. */

:root {
  --navy: #16324a;
  --navy-light: #1a3a5c;
  --green: #1e8449;
  --red: #c0392b;
  --amber: #d68910;
  --bg: #f4f6f9;
  --card-bg: #ffffff;
  --border: #e5e9ef;
  --text: #1e2530;
  --text-muted: #6b7684;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 30, 54, 0.08), 0 1px 2px rgba(16, 30, 54, 0.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Push page content below the fixed site header (see site-header.js) */
body.has-site-header { padding-top: 56px !important; }

h1, h2, h3 { color: var(--text); letter-spacing: -0.01em; }

a { color: var(--navy-light); }

button {
  font-family: inherit;
  transition: filter 0.12s ease, transform 0.05s ease;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }

table { border-radius: var(--radius); overflow: hidden; }

.panel, .card {
  box-shadow: var(--shadow) !important;
  border: 1px solid var(--border);
}

input, select, textarea {
  font-family: inherit;
  transition: border-color 0.12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-light) !important;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9d2dc; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== Round 58 visual refresh =====
   Extends the design system so every page picks up a consistent, more
   polished look without each one needing its own bespoke restyling.
   Deliberately built as global refinements of elements the pages already
   use (h1/h2, table, button, input) rather than new classes each page
   would have to opt into - that way pages that were never touched still
   benefit, and nothing needs rewriting to match. */

/* --- Typography: clearer hierarchy, less shouty --- */
h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 28px;
  margin-bottom: 10px;
}
h3 { font-size: 14px; font-weight: 600; }

/* --- Tables: readable, properly spaced, consistent everywhere --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
}
th {
  text-align: left;
  padding: 10px 12px;
  background: #fbfcfd;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid #f2f5f8;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fbfcfd; }

/* --- Buttons: consistent shape and weight across every page --- */
button {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

/* --- Inputs: consistent, and visibly focusable --- */
input, select, textarea {
  border: 1px solid #d5dbe3;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.10);
}

/* --- Cards --- */
.panel, .card {
  background: var(--card-bg);
  border-radius: var(--radius);
}

/* --- Links --- */
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Comfortable page gutters on smaller screens --- */
@media (max-width: 700px) {
  body { font-size: 14px; }
  th, td { padding: 8px 9px; }
  h2 { margin-top: 22px; }
}
