/* Livett Migration Model
   Shared site stylesheet for counties, districts, and data pages */

body {
  background: #f7f7f7;
  color: #222;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  margin: 0;
}

main {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 1.5rem 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

h1, h2, h3 {
  color: #111;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.subtitle {
  text-align: center;
  margin: 0 0 1.5rem 0;
  color: #444;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem 0;
}

p {
  margin: 0 0 1rem 0;
}

ul {
  margin: 0.35rem 0 1rem 1.2rem;
  padding: 0;
}

li {
  margin-bottom: 0.15rem;
}

nav {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e2e2;
}

nav a {
  color: #1a4d8f;
  text-decoration: none;
  margin: 0 0.6rem;
  font-weight: bold;
}

nav a:hover,
nav .active {
  text-decoration: underline;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.county-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.county-grid li {
  margin-bottom: 0.25rem;
}

.download-list {
  list-style: none;
  margin: 1rem 0 2rem 0;
  padding: 0;
}

.download-list li {
  background: #f9fbff;
  border: 1px solid #dbe6f2;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
  border-radius: 6px;
}

.download-list a {
  font-weight: bold;
  color: #1a4d8f;
  text-decoration: none;
}

.download-list a:hover {
  text-decoration: underline;
}

.download-list small {
  display: block;
  margin-top: 0.25rem;
  color: #555;
}

#email a {
  font-weight: bold;
  color: #1a4d8f;
  text-decoration: none;
}

#email a:hover {
  text-decoration: underline;
}

.county-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.county-columns li {
  padding: 0 0.15rem;
}

/*.county-columns li:hover {
  background: #fff3a0;
  border-radius: 3px;
}*/
.letter-highlight {
  background: #fff3a0;
  border-radius: 2px;
  padding: 0 1px;
}



.county-columns li {
  margin: 0 0 0.2rem 0;
}
.letter-highlight {
  background: #fff3a0;
  border-radius: 2px;
  padding: 0 1px;
}

.district-columns {
  column-count: 3;
  column-gap: 40px;
}

.district-group {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 0.9rem;
}

.district-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.district-group li {
  margin: 0 0 0.12rem 0;
}

.search-box {
  margin: 1rem 0 1.5rem 0;
  padding: 1rem;
  background: #f9fbff;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
}

.search-box label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.search-box input {
  width: 100%;
  max-width: 420px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-sizing: border-box;
}

.search-note {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.no-results {
  display: none;
  margin: 1rem 0 0 0;
  font-style: italic;
  color: #666;
}

@media (max-width: 800px) {
  main {
    padding: 1rem;
    box-shadow: none;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .county-columns {
    grid-template-columns: 1fr;
  }

  .district-columns {
    column-count: 1;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .step {
    min-width: 0;
  }

  .step::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -0.5rem;
    transform: translateX(50%);
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  main {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: #fff;
  }

  nav,
  .search-box,
  .no-results {
    display: none !important;
  }

  .district-columns {
    column-count: 3;
    column-gap: 24px;
  }

  .district-group {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  @page {
    size: A4 portrait;
    margin: 14mm 12mm 14mm 12mm;
  }
}
.timeline {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}
.step {
  background: #f5f7fa;
  border: 1px solid #e2e6ec;
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  text-align: center;
  position: relative;
  white-space: nowrap;
}
.step:first-child {
  background: #e8f1fb;
  border-color: #cddff5;
}
.step span {
  display: block;
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.step p {
  margin: 0;
  font-size: 0.85rem;
}

.step::after {
  content: "→";
  position: absolute;
  right: -0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.9rem;
}

.step:last-child::after {
  content: "";
}

.step.final {
  background: #e6f4ea;
  border-color: #b7e0c2;
}

.step.final p {
  color: #1e7a3b;
  font-weight: bold;
}

.highlight {
  background: #fff3a0;
  padding: 0 2px;
  border-radius: 2px;
}
.note {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: #f9fbff;
  border-left: 3px solid #1a4d8f;
  color: #444;
  font-size: 0.95rem;
}
.search-box .match {
  border-color: #4caf50;
  background: #f3fbf4;
}

.search-box .no-match {
  border-color: #e57373;
  background: #fff5f5;
}
.journal-entry {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  background: #f9fbff;
  border: 1px solid #dbe6f2;
  border-left: 4px solid #1a4d8f;
  border-radius: 6px;
}

.journal-entry h3 {
  margin-top: 0;
}

.journal-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.journal-entry h4 {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}