/* ==========================================================================
   County Active Warrants - Production Master Stylesheet
   Pure Vanilla CSS - 100% Self-Contained, Mobile-First, AdSense-Optimized
   ========================================================================== */

/* --- CSS Reset & Base Tokens --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --navy-dark: #07152b;
  --navy-mid: #0f294a;
  --navy-light: #1e3a8a;
  
  --blue-primary: #1d4ed8;
  --blue-hover: #1e40af;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;
  
  --gold-primary: #b45309;
  --gold-accent: #f59e0b;
  --gold-bg: #fef3c7;
  --gold-border: #fde68a;
  
  --red-warrant: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  
  --green-verified: #15803d;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* --- Container Utility --- */
.site-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .site-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* --- Header & Navigation --- */
.site-header {
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-badge {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .brand-name {
    font-size: 1.05rem;
  }
}

@media (min-width: 640px) {
  .brand-badge {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 1.125rem;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-content {
  display: none !important;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
  .nav-dropdown-content {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 580px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    padding: 1rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    z-index: 100;
  }
  .nav-dropdown:hover .nav-dropdown-content {
    display: grid !important;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--blue-primary);
}

.dropdown-state-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.1s;
}

.dropdown-state-item:hover {
  background: var(--blue-soft);
  color: var(--blue-primary);
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.mobile-drawer.open {
  display: block;
}

/* --- Hero Banner & Integrated Search --- */
.hero-section {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-card {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-radius: 12px;
  padding: 1.25rem 0.875rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(7, 21, 43, 0.15);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .hero-card {
    padding: 2.25rem 2rem;
  }
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
}

.hero-highlight {
  color: var(--gold-accent);
}

/* Search Form (Universal & Responsive) */
.search-form-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.875rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .search-form-box {
    padding: 1rem;
  }
}

.search-form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .search-form-grid {
    display: grid;
    grid-template-columns: 4fr 3fr 3fr 2fr;
    gap: 0.75rem;
    align-items: flex-end;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-input, .form-select {
  width: 100%;
  max-width: 100%;
  height: 42px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, background-color 0.15s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--blue-primary);
  background-color: #ffffff;
}

.btn-search {
  width: 100%;
  max-width: 100%;
  height: 42px;
  background-color: var(--blue-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-search:hover {
  background-color: var(--blue-hover);
}

/* --- Section Headers --- */
.section-header-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .section-header-bar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.5rem;
  }
}

.section-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* --- Warrant Cards Grid (Flex on mobile, Grid on desktop) --- */
.warrants-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .warrants-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .warrants-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Single Compact Warrant Card */
.warrant-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.warrant-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.warrant-card-body {
  display: flex;
  gap: 0.875rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Compact Mugshot Portrait Container */
.mugshot-thumb-box {
  width: 84px;
  min-width: 84px;
  height: 114px;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .mugshot-thumb-box {
    width: 96px;
    min-width: 96px;
    height: 128px;
  }
}

@media (min-width: 640px) {
  .mugshot-thumb-box {
    width: 104px;
    min-width: 104px;
    height: 136px;
  }
}

.mugshot-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mugshot-thumb-placeholder {
  font-size: 2rem;
  color: var(--text-light);
}

/* Warrant Card Meta Information (Right Column) */
.warrant-card-info {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.badge-warrant-tag {
  display: inline-block;
  background-color: var(--red-warrant);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.warrant-person-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.warrant-person-name a:hover {
  color: var(--blue-primary);
}

.warrant-jurisdiction {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.warrant-charges-snippet {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.warrant-charges-snippet strong {
  color: var(--text-primary);
}

/* Highlighted Bond Block */
.warrant-bond-line {
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.btn-card-action {
  width: 100%;
  max-width: 100%;
  height: 38px;
  margin-top: 0.75rem;
  background-color: var(--blue-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.btn-card-action:hover {
  background-color: var(--blue-hover);
  color: #ffffff;
}

/* --- AdSense Ad Slot Containers --- */
.ad-slot-leaderboard {
  width: 100%;
  max-width: 100%;
  margin: 0.75rem auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.ad-slot-leaderboard-inner {
  width: 100%;
  max-width: 728px;
  min-height: 80px;
  background-color: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

.ad-slot-in-feed {
  width: 100%;
  max-width: 100%;
  margin: 0.75rem 0;
  box-sizing: border-box;
}

.ad-slot-in-feed-inner {
  width: 100%;
  min-height: 96px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
}

.ad-slot-sidebar-rectangle {
  width: 100%;
  min-height: 250px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  box-sizing: border-box;
}

/* --- Official Sheriff Verification Box --- */
.agency-verification-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--blue-primary);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.agency-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.agency-badge-pill {
  background-color: var(--blue-soft);
  color: var(--blue-primary);
  border: 1px solid var(--blue-border);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.agency-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  font-size: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .agency-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.agency-field-title {
  font-size: 0.625rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.agency-field-value {
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.agency-field-phone {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-primary);
}

/* --- Single Warrant Detail Page --- */
.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.detail-photo-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  width: 100%;
  box-sizing: border-box;
}

.detail-photo-frame {
  width: 100%;
  max-width: 220px;
  height: 280px;
  margin: 0 auto;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.docket-table-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.docket-table-header {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.docket-row {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .docket-row {
    flex-direction: row;
    align-items: baseline;
  }
}

.docket-row:last-child {
  border-bottom: none;
}

.docket-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 180px;
  flex-shrink: 0;
}

.docket-val {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

/* --- Legal FCRA Banner Strip --- */
.fcra-banner {
  background-color: #07152b;
  border-left: 4px solid var(--gold-accent);
  border-radius: 8px;
  padding: 1.25rem;
  color: #ffffff;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .fcra-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.fcra-text {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 850px;
}

.btn-fcra-policy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  background-color: rgba(255,255,255,0.1);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
  transition: background-color 0.15s;
}

.btn-fcra-policy:hover {
  background-color: rgba(255,255,255,0.2);
}

/* --- Institutional Footer --- */
.site-footer {
  background-color: #050d1a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- Breadcrumbs --- */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.breadcrumb-bar a {
  color: var(--text-muted);
}

.breadcrumb-bar a:hover {
  color: var(--blue-primary);
}

.breadcrumb-sep {
  color: var(--border-hover);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- State Page Grid --- */
.counties-alphabet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .counties-alphabet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .counties-alphabet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .counties-alphabet-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.county-link-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.15s, color 0.15s;
  min-width: 0;
  box-sizing: border-box;
}

.county-link-card:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.county-record-count {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-light);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* --- Pagination --- */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.page-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.page-btn.active {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

/* --- Additional Utilities --- */
.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.portal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  width: 100%;
  box-sizing: border-box;
}

.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.text-slate-900 { color: #0f172a; }
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }

.bg-emerald-50 { background-color: #ecfdf5; }
.border-emerald-200 { border-color: #a7f3d0; }
.text-emerald-900 { color: #064e3b; }

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-primary);
  display: block;
}
