:root {
  --bg: #f4f1e8;
  --ink: #101924;
  --muted: #47566a;
  --line: #d3d8df;
  --surface: #ffffff;
  --surface-alt: #fdf9ee;
  --accent: #0f5d67;
  --accent-2: #c76d2b;
  --ok: #1f7a4e;
  --warn: #9a5728;
  --shadow: 0 10px 30px rgba(16, 25, 36, 0.08);
  --text-size: 1rem;
  --text-line: 1.65;
  --content-h1-size: clamp(2rem, 2.6vw, 2.7rem);
  --content-h2-size: clamp(1.55rem, 2vw, 1.95rem);
  --content-h3-size: clamp(1.22rem, 1.55vw, 1.42rem);
  --content-h4-size: clamp(1.06rem, 1.18vw, 1.16rem);
  --content-body-size: 1.08rem;
  --content-body-size-mobile: 1.03rem;
  --content-body-line: 1.75;
  --content-body-color: #20354d;
  --content-strong-color: #1a2f48;
  --content-h2-color: #15263b;
  --content-h3-color: #1a2f48;
  --content-h4-color: #24405c;
  --content-lead-color: #324960;
  --content-meta-color: #4a5a6d;
  --section-title-margin-bottom: 10px;
  --card-title-margin-bottom: 10px;
  --info-body-color: #2d3f53;
  --content-heading-gap-sm: 12px;
  --content-heading-gap-md: 18px;
  --content-paragraph-gap: 12px;
  --content-label-gap: 4px;
  --content-meta-size: 0.9rem;
  --content-badge-size: 0.84rem;
  --content-badge-weight: 700;
  --info-card-padding-y: 10px;
  --info-card-padding-x: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(199, 109, 43, 0.12), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(15, 93, 103, 0.14), transparent 35%),
    var(--bg);
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -40px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
}

.skip-link:focus {
  top: 8px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  border-bottom: 1px solid #c9d2db;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(16, 25, 36, 0.05);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.4px;
  color: var(--ink);
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.12rem;
}

.brand-subtitle {
  margin-top: 3px;
  font-family: "Source Sans 3", sans-serif;
  color: var(--content-meta-color);
  font-size: 0.82rem;
  letter-spacing: 0.25px;
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 11px;
  color: #1c2f44;
}

.main-nav a:hover {
  text-decoration: none;
  border-color: #bfd3dc;
  background: #f0f7f8;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-search input[type="search"] {
  min-width: 200px;
  width: 220px;
  padding: 9px 11px;
  border-radius: 999px;
}

.header-search button {
  border: 1px solid #c3dddd;
  background: #ebf4f4;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.header-search button:hover {
  border-color: var(--accent);
}

.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.header-mobile-btn {
  border: 1px solid #bfd0de;
  background: #f4f8fb;
  color: #1c2f44;
  font: inherit;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 13px;
  min-height: 42px;
  cursor: pointer;
}

.header-mobile-btn:hover {
  border-color: #93afc2;
  text-decoration: none;
}

.header-mobile-btn:focus-visible {
  outline: 2px solid #1c2f44;
  outline-offset: 2px;
}

.header-mobile-search-btn {
  width: 44px;
  padding: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-mobile-search-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  padding: 34px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.hero-single {
  max-width: 980px;
}

.subhero {
  padding: 34px 0 10px;
}

.roster-subhero {
  padding: 22px 0 0;
}

.roster-subhero .container {
  display: block;
}

.roster-subhero-copy {
  width: 100%;
  max-width: none;
}

.roster-subhero .breadcrumbs {
  margin: 0 0 6px;
}

.roster-subhero .eyebrow {
  margin: 0 0 5px;
}

.roster-subhero .breadcrumbs + .eyebrow + h1 {
  margin-bottom: 4px;
  line-height: 1.04;
}

.roster-subhero .page-intro {
  margin-top: 0;
  max-width: none;
  color: #5f7184;
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.roster-subhero .page-intro + .page-intro {
  margin-top: 12px;
}

.search-subhero {
  padding: 24px 0 2px;
}

.search-subhero .container {
  max-width: 1180px;
}

.search-subhero h1 {
  min-height: 0;
  margin-bottom: 2px;
}

.search-subhero .lead,
.search-subhero .page-intro {
  max-width: none;
  width: 100%;
}

.search-subhero .page-intro {
  margin: 0;
}

.search-subhero .search-row {
  margin: 8px 0 0;
}

.subhero .breadcrumbs + .eyebrow + h1 {
  min-height: 0;
  margin-bottom: 8px;
  font-size: var(--content-h1-size);
  line-height: 1.1;
}

.subhero .breadcrumbs + .eyebrow + h1 + .page-intro {
  margin-top: 0;
}

.static-page-subhero {
  padding: 24px 0 4px;
}

.static-page-subhero .container {
  width: min(1120px, 94vw);
}

.static-page-subhero h1 {
  min-height: 0;
  margin-bottom: 8px;
}

.static-page-subhero .lead {
  max-width: none;
  margin: 0;
}

.state-page-subhero {
  padding: 26px 0 6px;
}

.state-page-subhero .container {
  max-width: 1180px;
}

.state-page-subhero h1 {
  min-height: 0;
  margin-bottom: 8px;
}

.state-page-subhero .lead,
.state-page-subhero .muted {
  max-width: none;
}

.state-page-subhero .lead {
  margin-top: 0;
}

.states-subhero {
  padding: 28px 0 4px;
}

.states-subhero .container {
  max-width: 1180px;
}

.states-subhero .lead {
  max-width: none;
}

.states-subhero h1 {
  min-height: 0;
  margin-bottom: 6px;
}

.states-subhero-lead {
  max-width: 90ch;
  margin-top: 0;
}

.counties-subhero {
  padding: 24px 0 4px;
}

.counties-subhero .container {
  max-width: 1180px;
}

.counties-subhero h1 {
  min-height: 0;
  margin-bottom: 8px;
  max-width: none;
}

.counties-subhero-copy {
  max-width: none;
  margin-left: 0;
}

.counties-subhero .lead {
  max-width: none;
  margin: 0;
}

.page-intro {
  margin: 10px 0 0;
  max-width: none;
  color: var(--content-body-color);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  color: var(--content-meta-color);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: #274565;
  font-weight: 600;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.8rem;
  margin: 0 0 8px;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.15;
  font-weight: 500;
}

h1,
h2,
h3 {
  min-height: 2.3em;
}

h1 {
  font-size: var(--content-h1-size);
  margin: 0 0 12px;
  font-weight: 600;
}

h2 {
  font-size: var(--content-h2-size);
  margin: 0 0 10px;
  color: var(--content-h2-color);
}

h3 {
  margin: 0 0 8px;
  font-size: var(--content-h3-size);
  color: var(--content-h3-color);
}

h4 {
  margin: 0 0 6px;
  font-size: var(--content-h4-size);
  line-height: 1.18;
  color: var(--content-h4-color);
}

.lead {
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  color: var(--content-lead-color);
  max-width: 68ch;
}

.lead-mobile,
.featured-mobile {
  display: none;
}

.home-hero-title {
  font-size: var(--content-h1-size);
  min-height: 0;
  margin-bottom: 4px;
}

.hero-copy .lead-desktop {
  max-width: none;
  margin-top: 0;
}

.search-row {
  display: flex;
  gap: 12px;
  margin: 18px 0 14px;
  align-items: center;
}

input[type="search"] {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #bdc6d1;
  font: inherit;
  background: #fff;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--accent), #17527b);
}

.btn-secondary {
  color: var(--accent);
  background: #ebf4f4;
  border: 1px solid #c3dddd;
}

.home-search-form {
  max-width: 640px;
}

.home-search-submit {
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
}

.featured,
.quick-links,
.jail-meta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.home-hero-rail {
  align-self: start;
}

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

.featured li + li {
  margin-top: 8px;
}

.featured a {
  display: flex;
  justify-content: space-between;
  background: var(--surface-alt);
  border: 1px solid #ebdfca;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
}

.featured-title {
  font-family: "Oswald", sans-serif;
  font-size: var(--content-h2-size);
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.content-grid,
.jail-layout {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 18px;
  margin: 22px auto;
}

.home-seo-card {
  margin: 8px auto 16px;
  padding: 24px clamp(18px, 3vw, 32px);
}

.home-seo-preview,
.home-seo-more {
  max-width: none;
  width: 100%;
}

.home-seo-block {
  min-width: 0;
}

.home-seo-block + .home-seo-block {
  margin-top: 24px;
}

.home-seo-card h2,
.prose h2,
.contact-card h2,
.related-counties-card h2,
.roster-head h2,
.faq-card h2,
.jail-article-card h2 {
  font-size: var(--content-h2-size);
  line-height: 1.1;
  min-height: 0;
  color: var(--content-h2-color);
  margin-bottom: var(--card-title-margin-bottom);
}

.home-seo-card h3,
.prose h3,
.jail-article-card h3 {
  font-size: var(--content-h3-size);
  line-height: 1.12;
  min-height: 0;
  color: var(--content-h3-color);
}

.home-seo-card h4,
.prose h4,
.jail-article-card h4 {
  font-size: var(--content-h4-size);
  line-height: 1.18;
  min-height: 0;
  color: var(--content-h4-color);
}

.home-seo-card h2 {
  margin-top: 0;
}

.home-seo-card h3 {
  margin: 0 0 4px;
}

.home-seo-card h4 {
  margin: 0 0 4px;
}

.home-seo-card p {
  margin: 0;
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  color: var(--content-body-color);
}

.home-seo-card p + p {
  margin-top: var(--content-paragraph-gap);
}

.home-seo-card p + h2 {
  margin-top: var(--content-heading-gap-md);
}

.home-seo-card p + h3 {
  margin-top: var(--content-heading-gap-sm);
}

.home-seo-card p + h4 {
  margin-top: 12px;
}

.home-seo-more.is-collapsed {
  display: none;
}

.home-seo-actions {
  margin-top: 16px;
}

.home-feed-sentinel {
  width: 100%;
  height: 12px;
}

.seo-article,
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.seo-article p,
.prose p {
  color: var(--content-body-color);
}

.seo-article ul,
.seo-article ol,
.prose ul,
.prose ol {
  margin: 10px 0 18px 24px;
  padding: 0;
  color: var(--content-body-color);
}

.seo-article li,
.prose li {
  margin: 0 0 8px;
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  color: var(--content-body-color);
}

.seo-article strong,
.prose strong,
.faq-answer strong,
.page-intro strong {
  color: var(--content-strong-color);
  font-weight: 700;
}

.summary-card strong,
.jail-meta strong {
  color: var(--content-strong-color);
  font-weight: 700;
}

.seo-article li strong,
.prose li strong {
  color: var(--content-strong-color);
}

.prose {
  padding: 28px clamp(18px, 3vw, 34px);
  max-width: 980px;
  margin: 12px auto 8px;
}

.static-page-prose {
  max-width: 1120px;
  margin-top: 4px;
}

.static-page-prose > * {
  max-width: none;
}

.prose h2 {
  margin: 24px 0 6px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h2:not(:first-of-type) {
  border-top: 1px solid #dce3eb;
  padding-top: 14px;
}

.prose h3 {
  margin: 14px 0 4px;
}

.prose h4 {
  margin: 12px 0 4px;
}

.prose p,
.prose li {
  margin: 0;
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  color: #20354d;
}

.prose p + p {
  margin-top: var(--content-paragraph-gap);
}

.prose p + h2 {
  margin-top: var(--content-heading-gap-md);
}

.prose p + h3 {
  margin-top: var(--content-heading-gap-sm);
}

.prose p + h4 {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  margin: 10px 0 18px 24px;
  padding: 0;
}

.prose li + li {
  margin-top: 8px;
}

.prose > * {
  max-width: 78ch;
}

.prose.static-page-prose > * {
  max-width: none;
  width: 100%;
}

.prose a {
  font-weight: 600;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.summary-head-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.summary-updated {
  color: var(--content-meta-color);
  font-size: var(--content-meta-size);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: var(--content-badge-size);
  font-weight: var(--content-badge-weight);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-pill-active {
  background: #ebf8ef;
  color: var(--ok);
  border: 1px solid #8ac7a7;
}

.status-pill-inactive {
  background: #fff6ee;
  color: var(--warn);
  border: 1px solid #e6c0a1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.summary-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  padding: var(--info-card-padding-y) var(--info-card-padding-x);
}

.summary-item-wide {
  grid-column: span 2;
}

.summary-label {
  display: block;
  color: var(--content-meta-color);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--content-label-gap);
  font-weight: 700;
}

.summary-value {
  display: block;
  color: var(--info-body-color);
  font-size: var(--content-body-size);
  font-weight: 700;
  line-height: var(--content-body-line);
}

.seo-article dl {
  margin: 0;
}

.seo-article dt {
  font-weight: 700;
  margin-top: 10px;
}

.seo-article dd {
  margin: 0;
  color: var(--info-body-color);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  overflow-wrap: anywhere;
}

.contact-card .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-card .contact-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  padding: var(--info-card-padding-y) var(--info-card-padding-x);
}

.contact-card dt {
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  margin-bottom: var(--content-label-gap);
}

.contact-card dd {
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.contact-card .contact-detail-line {
  display: block;
}

.contact-card .contact-detail-line + .contact-detail-line {
  margin-top: 2px;
}

.contact-card .contact-item-wide {
  grid-column: span 2;
}

.faq-section {
  margin: 16px auto 18px;
}

.faq-card {
  padding: 0;
  overflow: hidden;
}

.faq-card h2 {
  margin: 0;
  padding: 18px 18px 12px;
}

.faq-accordion {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 18px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  color: var(--content-h3-color);
  position: relative;
  padding-right: 44px;
  font-size: var(--content-h3-size);
  line-height: 1.12;
  letter-spacing: 0.2px;
}

.faq-item summary h3 {
  margin: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
  font-weight: inherit;
  min-height: 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: #466380;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 18px 12px;
}

.faq-answer p {
  margin: 0;
  font-size: var(--content-body-size);
  color: var(--content-body-color);
  line-height: var(--content-body-line);
}

.faq-answer p + p {
  margin-top: var(--content-paragraph-gap);
}

.quick-links a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.quick-links a:last-child {
  border-bottom: none;
}

.is-hidden {
  display: none !important;
}

.list-section {
  margin: 14px auto 30px;
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-search-section {
  margin-top: 8px;
}

#home-search-empty {
  margin: 0 0 10px;
}

.search-page-grid {
  align-items: start;
}

.search-page-layout {
  margin: 4px auto 30px;
  display: grid;
  gap: 18px;
}

.search-page-form {
  max-width: 760px;
}

.search-results-shell {
  margin: 0;
}

.search-empty-card {
  padding: 22px clamp(18px, 3vw, 28px);
}

.search-empty-card h2,
.state-router-card h2,
.state-insight-card h2,
.jail-meta h2,
.summary-card h2,
.county-letter-section h2 {
  font-size: var(--content-h2-size);
  line-height: 1.1;
  min-height: 0;
}

.search-empty-card p,
.state-router-card p,
.county-directory-empty p {
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.search-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.jail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jail-card,
.state-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.directory-roster-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  border-radius: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.recent-jail-card {
  position: relative;
}

.recent-jail-card h3,
.recent-jail-card .directory-roster-card-copy {
  padding-right: 52px;
}

.directory-roster-card-state-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f6efe3;
  border: 1px solid #ead7b7;
  color: #8f4f1f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.45px;
  line-height: 1;
}

.directory-roster-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(17, 37, 63, 0.08);
  border-color: #bfd5e5;
}

.directory-roster-card h2,
.directory-roster-card h3 {
  font-size: var(--content-h3-size);
  margin: 0 0 10px;
  line-height: 1.12;
  min-height: 0;
}

.directory-roster-card h2 a,
.directory-roster-card h3 a {
  color: #0b6b7e;
  text-decoration: none;
}

.directory-roster-card h2 a:hover,
.directory-roster-card h3 a:hover {
  color: #0a5364;
  text-decoration: none;
}

.directory-roster-card-copy {
  margin: 0 0 18px;
  color: var(--content-body-color);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  flex: 1 1 auto;
  width: 100%;
}

.directory-roster-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.directory-roster-card-badge {
  align-self: flex-start;
  border-color: #d9e7de;
  background: #f7faf8;
  color: var(--content-meta-color);
  font-size: var(--content-badge-size);
  font-weight: var(--content-badge-weight);
  padding: 3px 9px;
}

.directory-roster-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #cfe3d7;
  background: #f6faf7;
  font-weight: 800;
  color: #0a7087;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.directory-roster-card-link::after {
  content: "->";
  margin-left: 8px;
  font-size: 0.88em;
}

.directory-roster-card-link:hover {
  text-decoration: none;
  border-color: #b8d5c4;
  background: #eff6f1;
  box-shadow: 0 8px 18px rgba(31, 106, 72, 0.06);
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bec9d8;
  padding: 4px 10px;
  font-size: var(--content-badge-size);
  font-weight: var(--content-badge-weight);
}

.badge-ok {
  color: var(--ok);
  border-color: #8ac7a7;
  background: #ebf8ef;
}

.badge-warn {
  color: var(--warn);
  border-color: #e6c0a1;
  background: #fff6ee;
}

.muted {
  color: var(--content-meta-color);
}

.state-grid {
  margin: 20px auto 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.states-directory-section {
  margin: 10px auto 24px;
}

.states-directory-head {
  margin-bottom: 14px;
  justify-content: flex-start;
}

.states-index-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
}

.state-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.state-card-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6efe3;
  border: 1px solid #ead7b7;
  color: #8f4f1f;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.state-card-count {
  color: var(--content-meta-color);
  font-size: var(--content-meta-size);
  font-weight: 700;
}

.states-index-card h3 {
  margin: 0 0 8px;
  font-family: "Oswald", sans-serif;
  font-size: var(--content-h3-size);
  line-height: 1.12;
  min-height: 2.3em;
}

.states-index-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.states-index-card h3 a:hover {
  color: var(--accent);
}

.state-card-copy {
  margin: 0;
  color: #31475f;
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  flex: 1 1 auto;
}

.state-card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.state-card-cta::after {
  content: "->";
  margin-left: 8px;
  font-size: 0.95em;
}

.state-card-cta:hover {
  text-decoration: underline;
}

.states-guide-card,
.jail-article-card {
  margin-top: 0;
}

.jail-article-card {
  max-width: none;
  width: 100%;
  padding: 24px clamp(18px, 3vw, 32px);
}

.jail-article-card .article-section-level-2 + .article-section-level-2 {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #dce3eb;
}

.jail-article-card h2 {
  margin-bottom: 12px;
}

.jail-article-card h3 {
  margin-bottom: 8px;
}

.jail-article-card h4 {
  margin-bottom: 6px;
}

.jail-article-card p {
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  color: var(--content-body-color);
  max-width: none;
}

.jail-article-card p + h2 {
  margin-top: calc(var(--content-heading-gap-md) + 4px);
}

.jail-article-card p + h3 {
  margin-top: var(--content-heading-gap-md);
}

.jail-article-card p + h4 {
  margin-top: 14px;
}

.jail-article-card h2 + p,
.jail-article-card h3 + p,
.jail-article-card h4 + p {
  margin-top: 0;
}

.jail-article-card p + p {
  margin-top: var(--content-paragraph-gap);
}

@media (max-width: 720px) {
  .jail-article-card {
    padding: 22px 18px;
  }

  .jail-article-card p {
    font-size: var(--content-body-size-mobile);
    line-height: 1.68;
    max-width: none;
  }

  .page-intro,
  .lead,
  .home-seo-card p,
  .prose p,
  .prose li,
  .search-empty-card p,
  .directory-roster-card-copy,
  .state-card-copy,
  .contact-card dt,
  .contact-card dd,
  .faq-answer p,
  .related-county-meta,
  .county-link-subtitle,
  .state-insight-list li a,
  .state-router-card p,
  .county-directory-empty p {
    font-size: var(--content-body-size-mobile);
    line-height: 1.68;
  }
}

.state-insight-grid {
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.state-insight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.state-insight-card h2 {
  margin: 0 0 10px;
}

.state-decision-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.state-decision-card p {
  margin: 0;
  color: var(--content-body-color);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.state-decision-card .state-card-cta {
  margin-top: auto;
}

.state-insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.state-insight-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid #e2e7ec;
  padding-top: 8px;
}

.state-insight-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.state-insight-list li a {
  color: #1f344c;
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  font-weight: 600;
}

.state-insight-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bec9d8;
  padding: 2px 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  color: #30445a;
}

@media (min-width: 1024px) {
  .home-hero-title {
    white-space: nowrap;
  }

  .home-hero-rail {
    position: sticky;
    top: 88px;
    align-self: start;
  }

  #recent-jails-section {
    margin-top: -20px;
  }

  #recent-jails-section .jail-list,
  #home-search-results-section .jail-list {
    gap: 12px;
  }

  #recent-jails-section .jail-card,
  #home-search-results-section .jail-card {
    padding: 12px;
    border-radius: 10px;
  }

  #recent-jails-section .recent-jail-card h3,
  #recent-jails-section .recent-jail-card .directory-roster-card-copy {
    padding-right: 48px;
  }

  #recent-jails-section .directory-roster-card-state-badge {
    top: 12px;
    right: 12px;
  }

  #recent-jails-section .jail-card h3,
  #home-search-results-section .jail-card h3 {
    line-height: 1.18;
    margin-bottom: 8px;
  }

  #recent-jails-section .jail-card p,
  #home-search-results-section .jail-card p {
    margin: 0 0 8px;
  }

  .states-index-grid {
    gap: 12px;
  }

  .states-index-card {
    padding: 12px;
    border-radius: 10px;
  }

  .states-index-card h3 {
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .states-index-card p {
    margin: 0 0 8px;
  }

.state-insight-grid-compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

  .state-insight-grid-compact .state-insight-card {
    padding: 12px;
    border-radius: 10px;
  }

  .state-insight-grid-compact .state-insight-card h2 {
    margin-bottom: 8px;
  }

  .state-insight-grid-compact .state-insight-list {
    gap: 6px;
  }

  .state-insight-grid-compact .state-insight-list li {
    gap: 8px;
    padding-top: 6px;
  }

  .state-insight-grid-compact .state-insight-list li a {
    font-weight: 600;
  }

  .state-list-section .jail-list {
    gap: 12px;
  }

  .state-list-section .state-county-card {
    padding: 12px;
    border-radius: 10px;
  }

  .state-list-section .state-county-card h2 {
    line-height: 1.18;
    margin-bottom: 8px;
  }

  .state-list-section .state-county-card p,
  #recent-jails-section .home-jail-card p,
  #home-search-results-section .home-jail-card p {
    font-size: var(--content-body-size);
    margin: 0 0 8px;
  }

  .state-list-section .state-county-card .state-county-card-copy,
  #recent-jails-section .home-jail-card .directory-roster-card-copy,
  #home-search-results-section .home-jail-card .directory-roster-card-copy {
    margin-bottom: 14px;
    color: #46607a;
    max-width: none;
    width: 100%;
    min-height: 3.4em;
    line-height: 1.55;
  }

  .state-page-subhero .lead {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .directory-roster-card-footer {
    display: grid;
    grid-template-columns: minmax(0, max-content) 1fr;
    align-items: center;
    width: 100%;
  }

  .directory-roster-card-link {
    justify-self: end;
    padding: 9px 13px;
    border-radius: 999px;
    background: #f1f7f3;
    color: #0a7087;
    font-weight: 800;
  }

  .directory-roster-card-link::after {
    content: "->";
    margin-left: 8px;
    font-size: 0.88em;
  }
}

.county-index {
  margin: 10px auto 26px;
}

.county-search-shell {
  margin-bottom: 12px;
}

.state-finder-card {
  padding: 14px 18px;
}

.state-finder-card > * {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.state-finder-card h2 {
  margin-bottom: 4px;
  min-height: 0;
  line-height: 1.04;
}

.state-finder-card .county-search-shell {
  margin-bottom: 0;
  display: grid;
  gap: 6px;
}

.county-search-label {
  display: block;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.county-search-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #aebbc8;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(17, 37, 63, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.county-search-input:hover {
  border-color: #9fb0c0;
}

.county-search-input:focus {
  outline: none;
  border-color: #6e92b4;
  box-shadow: 0 0 0 3px rgba(110, 146, 180, 0.12);
}

.county-search-help,
.county-search-status {
  margin: 0;
}

@media (max-width: 720px) {
  .state-finder-card {
    padding: 12px 16px;
  }

  .state-finder-card > * {
    max-width: none;
  }

  .state-finder-card h2 {
    margin-bottom: 2px;
  }

  .state-finder-card .county-search-shell {
    gap: 4px;
  }
}

.county-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.county-featured-section,
.county-best-match-section {
  margin: 0 0 14px;
}

.county-featured-grid,
.county-best-match-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.county-featured-card h3 {
  margin: 0 0 8px;
  font-size: var(--content-h3-size);
  line-height: 1.12;
}

.county-featured-card h3 a {
  color: #0b6b7e;
  text-decoration: none;
}

.county-featured-copy {
  margin-bottom: 14px;
}

.county-alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid #bdc6d1;
  border-radius: 999px;
  background: #fff;
  color: #1f344c;
  font-weight: 700;
  text-decoration: none;
}

.county-alpha-nav a:hover {
  border-color: var(--accent);
}

.county-sections {
  display: grid;
  gap: 12px;
}

.county-letter-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.county-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 20px;
}

.county-link-list li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.county-link-card {
  display: block;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f9fbfc;
  text-decoration: none;
}

.county-link-card:hover {
  background: #f1f6fa;
}

.county-link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.county-link-name {
  color: #1f344c;
  font-weight: 600;
}

.county-link-state {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d6dee7;
  background: #fff;
  color: #29445e;
  font-size: 0.86rem;
  font-weight: 700;
}

.county-link-subtitle {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.county-link-duplicate {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d8dee7;
  background: #fff;
  color: #5b7088;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.county-directory-empty {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px dashed #bdc6d1;
  border-radius: 12px;
  background: #fff;
}

.county-directory-empty p {
  margin: 0;
}

.county-routing-callout {
  margin: 0 auto 30px;
}

.state-router-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
}

@media (max-width: 900px) {
  .county-featured-grid,
  .county-best-match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .county-featured-grid,
  .county-best-match-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .county-link-duplicate {
    margin-left: 0;
    margin-top: 6px;
  }
}

.state-router-card h2 {
  margin: 0 0 var(--card-title-margin-bottom);
}

.source-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.jail-meta dl {
  margin: 0;
}

.jail-meta h2 + dl {
  margin-bottom: 16px;
}

.jail-meta h2:not(:first-child) {
  margin-top: 20px;
}

.jail-meta dt {
  font-weight: 700;
  margin-top: 8px;
}

.jail-meta dd {
  margin: 0;
  color: var(--info-body-color);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.jail-meta p {
  margin: 8px 0;
  color: var(--info-body-color);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.jail-meta ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

.roster-section {
  margin: 6px auto 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
}

.roster-alert {
  margin-top: 10px;
  border: 1px solid #f1c9a8;
  background: #fff5ec;
  border-radius: 10px;
  padding: 10px 12px;
  color: #6d3d1f;
  line-height: 1.5;
}

.roster-alert-meta p {
  margin: 8px 0;
}

.roster-alert-grid {
  margin: 8px 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roster-alert-grid dt {
  margin: 0;
  font-weight: 700;
  color: #51331f;
}

.roster-alert-grid dd {
  margin: 2px 0 0;
}

.empty-row {
  color: var(--muted);
  padding: 28px 16px;
}

.roster-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.roster-head-copy {
  width: 100%;
  max-width: none;
}

.roster-head-copy h2 {
  min-height: 0;
  margin-bottom: 6px;
}

.roster-support {
  margin: 0;
  color: #52687f;
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
  max-width: none;
}

.roster-tools {
  display: grid;
  gap: 10px;
  align-content: start;
}

.roster-search-wrap {
  display: grid;
  gap: 6px;
}

.roster-search-label {
  margin: 0;
  color: var(--content-h3-color);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.roster-search-wrap input[type="search"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #b7c5d2;
  background: #fff;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 2px rgba(17, 37, 63, 0.04);
}

.roster-search-wrap input[type="search"]:focus {
  border-color: #0d7085;
  box-shadow: 0 0 0 3px rgba(13, 112, 133, 0.16);
  outline: none;
}

.roster-search-help {
  margin: 0;
  color: #738498;
  font-size: 0.82rem;
  line-height: 1.35;
}

.roster-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.roster-trust-card {
  display: grid;
  gap: 2px;
  border: 1px solid #d5dee7;
  border-radius: 12px;
  background: #fbfcfe;
  padding: 11px 13px;
}

.roster-trust-label {
  color: var(--content-meta-color);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

#roster-count,
.roster-trust-value {
  color: #17324b;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.roster-trust-note {
  color: #7a8998;
  font-size: 0.8rem;
  line-height: 1.3;
}

.roster-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid #d5dee7;
  border-radius: 14px;
  background: #fff;
}

.roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.roster-table th,
.roster-table td {
  text-align: left;
  border-bottom: 1px solid #e0e7ee;
  padding: 14px 16px;
  vertical-align: top;
}

.roster-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #18324a;
  background: #f4f7fa;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 #dbe4eb;
}

.roster-table tbody tr:hover td {
  background: #fbfdff;
}

.roster-table .roster-name-col {
  width: 24%;
}

.roster-table .booking-number-col {
  width: 13%;
}

.roster-table .booked-at-col {
  width: 15%;
}

.roster-table .roster-charges-col {
  width: 34%;
}

.roster-table .roster-status-col {
  width: 14%;
}

.roster-section.has-bail-column .roster-table .roster-name-col {
  width: 22%;
}

.roster-section.has-bail-column .roster-table .booking-number-col {
  width: 12%;
}

.roster-section.has-bail-column .roster-table .booked-at-col {
  width: 13%;
}

.roster-section.has-bail-column .roster-table .roster-bail-col {
  width: 16%;
}

.roster-section.has-bail-column .roster-table .roster-charges-col {
  width: 23%;
}

.roster-section.has-bail-column .roster-table .roster-status-col {
  width: 14%;
}

.roster-name-stack {
  display: grid;
  gap: 8px;
}

.roster-name-text {
  display: block;
  color: #11253f;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.35;
  word-break: break-word;
}

.roster-name-meta,
.roster-mobile-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.roster-charge-cell {
  display: grid;
  gap: 8px;
}

.roster-detail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #bfd1df;
  border-radius: 10px;
  background: #f7fafc;
  color: #0d6173;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.roster-detail-toggle:hover {
  border-color: #9fb8ca;
  background: #eff5f9;
}

.roster-detail-toggle:focus-visible {
  outline: 3px solid rgba(13, 112, 133, 0.18);
  outline-offset: 2px;
}

.roster-inline-link {
  min-height: auto;
  justify-content: flex-start;
  width: fit-content;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #0d6173;
  font-size: 0.92rem;
  font-weight: 700;
}

.roster-inline-link:hover {
  background: transparent;
  border: none;
  color: #094f5d;
  text-decoration: underline;
}

.roster-inline-link:focus-visible {
  outline: 3px solid rgba(13, 112, 133, 0.18);
  outline-offset: 3px;
}

.roster-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf5ee;
  border: 1px solid #bdddc8;
  color: #20603a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.roster-charge-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--content-body-color);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.roster-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #c5d2df;
  background: #f6f9fc;
  color: #17324b;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.roster-status-pill-active {
  border-color: #b9d8c3;
  background: #eef8f1;
  color: #255f3d;
}

.roster-status-pill-warning {
  border-color: #e7ccac;
  background: #fff6ed;
  color: #8c531d;
}

.roster-status-pill-release {
  border-color: #d6dbe3;
  background: #f4f6f8;
  color: #556474;
}

.roster-detail-row td {
  padding: 0;
  background: #f9fbfd;
}

.roster-detail-panel {
  padding: 16px;
}

.roster-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.roster-detail-item {
  border: 1px solid #d8e1e9;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.roster-detail-label,
.roster-mobile-charge-label {
  display: block;
  color: var(--content-meta-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.roster-detail-value {
  color: #17324b;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.roster-detail-charge-block {
  border: 1px solid #d8e1e9;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.roster-detail-charges {
  margin: 0;
  padding-left: 18px;
  color: var(--content-body-color);
  line-height: 1.55;
}

.roster-detail-charges li + li {
  margin-top: 6px;
}

.roster-detail-empty {
  margin: 0;
  color: var(--content-meta-color);
}

.roster-mobile-shell {
  display: none;
  margin-top: 16px;
}

.roster-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.roster-mobile-item,
.roster-mobile-empty {
  margin: 0;
}

.roster-mobile-card {
  border: 1px solid #d5dee7;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(17, 37, 63, 0.04);
}

.roster-mobile-card-head {
  display: grid;
  gap: 6px;
}

.roster-mobile-name {
  margin: 0;
  color: #11253f;
  font-size: 1.08rem;
  line-height: 1.3;
}

.roster-mobile-status-row {
  margin-top: 0;
}

.roster-mobile-toggle {
  margin-top: 10px;
  min-width: 108px;
}

.roster-mobile-meta {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.roster-mobile-meta-item {
  border: 1px solid #e0e7ee;
  border-radius: 12px;
  background: #fbfcfe;
  padding: 10px 12px;
}

.roster-mobile-meta-item dt {
  margin: 0 0 4px;
  color: var(--content-meta-color);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.roster-mobile-meta-item dd {
  margin: 0;
  color: #17324b;
  font-weight: 700;
  line-height: 1.4;
}

.roster-mobile-charge-block {
  margin-top: 12px;
}

.roster-mobile-charge-summary {
  margin: 0;
  color: var(--content-body-color);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.roster-mobile-details {
  margin-top: 12px;
}

.roster-pagination {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#roster-page-meta {
  margin: 14px 0 0;
  color: var(--content-meta-color);
  font-size: 0.94rem;
}

.roster-pagination.is-hidden {
  display: none;
}

.page-list {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bdc6d1;
  background: #fff;
  color: #1f344c;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

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

.page-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 1080px) {
  .roster-head {
    grid-template-columns: 1fr;
  }

  .roster-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .roster-subhero {
    padding: 16px 0 0;
  }

  .roster-subhero .breadcrumbs + .eyebrow + h1 {
    font-size: clamp(1.9rem, 7vw, 2.35rem);
    line-height: 1.02;
    margin-bottom: 4px;
  }

  .roster-subhero .page-intro {
    max-width: none;
    font-size: var(--content-body-size-mobile);
    line-height: var(--content-body-line);
  }

  .roster-section {
    margin-top: 6px;
    padding: 14px;
  }

  .roster-trust-grid {
    grid-template-columns: 1fr;
  }

  .roster-head {
    gap: 10px;
  }

  .js .roster-table-wrap {
    display: none;
  }

  .js .roster-mobile-shell {
    display: block;
  }
}

@media (max-width: 640px) {
  .roster-tools {
    gap: 8px;
  }

  .roster-search-wrap input[type="search"] {
    min-height: 50px;
  }

  .roster-mobile-card-head {
    flex-direction: column;
  }

  .roster-mobile-toggle {
    width: 100%;
  }

  .roster-mobile-meta {
    grid-template-columns: 1fr;
  }

  .roster-detail-grid {
    grid-template-columns: 1fr;
  }
}

.related-counties-card {
  margin-top: 0;
}

.related-county-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-county-link {
  display: block;
  border: 1px solid #d5dee7;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfcfd;
  color: #1f344c;
  text-decoration: none;
}

.related-county-link:hover {
  border-color: #9cb2c5;
  text-decoration: none;
}

.related-county-name {
  display: block;
  font-weight: 700;
  font-size: var(--content-h3-size);
  line-height: 1.12;
}

.related-county-meta {
  display: block;
  margin-top: 4px;
  color: var(--content-meta-color);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.recently-synced-sidebar h2 {
  margin-bottom: 8px;
}

.recently-synced-sidebar .muted {
  margin: 0;
}

.recently-synced-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.recently-synced-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  border: 1px solid #d5dee7;
  border-radius: 12px;
  padding: 14px;
  background: #fbfcfd;
  color: #1f344c;
  text-decoration: none;
}

.recently-synced-link:hover {
  border-color: #9cb2c5;
  text-decoration: none;
}

.recently-synced-name {
  display: block;
  font-weight: 700;
  font-size: var(--content-h3-size);
  line-height: 1.16;
  margin-bottom: 8px;
}

.recently-synced-meta {
  display: block;
  color: var(--content-meta-color);
  font-size: var(--content-body-size);
  line-height: var(--content-body-line);
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid #c9d2db;
  background: rgba(255, 255, 255, 0.96);
}

.footer-grid {
  padding: 24px 0 14px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 18px;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
}

.footer-brand p {
  max-width: 50ch;
}

.footer-bottom {
  border-top: 1px solid #dbe2e8;
  padding: 10px 0 16px;
  text-align: center;
}

@media (max-width: 1080px) {
  .jail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 1040px) {
  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recently-synced-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .header-wrap {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    align-items: flex-start;
  }

  .brand-title {
    font-size: 1.03rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .header-mobile-actions {
    display: inline-flex;
  }

  .header-tools {
    display: none;
    width: 100%;
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    justify-content: flex-start;
  }

  .header-tools.is-open {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border: 1px solid #bfd0de;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f4f8fb;
    font-size: 1.02rem;
    color: #1c2f44;
  }

  .main-nav a:hover {
    border-color: #93afc2;
    background: #edf3f8;
    text-decoration: none;
  }

  .header-search {
    display: none;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .header-search.is-open {
    display: flex;
  }

  .header-search input[type="search"] {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 10px 13px;
    border-radius: 12px;
    border: 1px solid #9fb2c2;
  }

  .header-search input[type="search"]:focus {
    border-color: #6f95b1;
    outline: 2px solid rgba(111, 149, 177, 0.22);
    outline-offset: 1px;
  }

  .header-search button {
    align-self: stretch;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    font-size: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5f9;
    border-color: #9fc0d6;
  }

  .header-search button::before {
    content: "->";
    width: 18px;
    height: 18px;
    display: block;
    background: center / 18px 18px no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5d67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cline x1='16' y1='16' x2='21' y2='21'/%3E%3C/svg%3E");
  }

  .header-search button:hover {
    border-color: #7aa2bf;
    background: #e9f1f6;
  }

  .hero-grid,
  .content-grid,
  .jail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 22px 0 10px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 6px;
  }

  .home-hero-title {
    margin-bottom: 10px;
    white-space: normal;
  }

  .lead-desktop,
  .featured-desktop {
    display: none;
  }

  .lead-mobile,
  .featured-mobile {
    display: block;
  }

  .search-row {
    margin: 16px 0 12px;
    gap: 10px;
  }

  .home-search-form {
    max-width: none;
  }

  .home-search-submit {
    align-self: stretch;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 12px;
    font-size: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5f9;
    border-color: #9fc0d6;
  }

  .home-search-submit::before {
    content: "->";
    width: 18px;
    height: 18px;
    display: block;
    background: center / 18px 18px no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5d67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cline x1='16' y1='16' x2='21' y2='21'/%3E%3C/svg%3E");
  }

  .home-search-submit:hover {
    border-color: #7aa2bf;
    background: #e9f1f6;
  }

  .featured-mobile {
    margin: 4px auto 18px;
  }

  .search-subhero {
    padding: 20px 0 2px;
  }

  .search-subhero h1 {
    margin-bottom: 4px;
  }

  .search-subhero .search-row {
    margin-top: 10px;
  }

  .search-empty-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-empty-actions .btn-primary,
  .search-empty-actions .btn-secondary {
    width: 100%;
  }

  #recent-jails-section {
    margin-top: 8px;
  }

  #recent-jails-section .list-head {
    margin-bottom: 6px;
  }

  .states-subhero {
    padding: 22px 0 2px;
  }

  .counties-subhero {
    padding: 20px 0 2px;
  }

  .counties-subhero h1 {
    max-width: none;
    margin-bottom: 8px;
  }

  .counties-subhero-copy {
    max-width: none;
    margin-left: 0;
  }

  .states-directory-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .state-insight-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-head-right {
    justify-content: flex-start;
  }

}

@media (max-width: 560px) {
  .jail-list,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .recently-synced-list {
    grid-template-columns: 1fr;
  }

  .states-subhero-lead {
    max-width: none;
  }

  .states-directory-section {
    margin-top: 4px;
  }

  .recent-jail-card h3,
  .recent-jail-card .directory-roster-card-copy {
    padding-right: 44px;
  }

  .directory-roster-card-state-badge {
    top: 12px;
    right: 12px;
    min-width: 34px;
    padding: 4px 7px;
    font-size: 0.7rem;
  }

  .states-index-card {
    padding: 14px;
  }

  .state-card-top {
    margin-bottom: 10px;
  }

  .state-card-count {
    font-size: 0.9rem;
  }

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

  .county-link-list {
    columns: 1;
  }

  .county-link-top {
    align-items: flex-start;
  }

  .roster-pagination {
    justify-content: center;
  }

  .summary-grid,
  .contact-card .contact-grid {
    grid-template-columns: 1fr;
  }

  .roster-alert-grid {
    grid-template-columns: 1fr;
  }

  .faq-card h2 {
    padding: 15px 14px 10px;
  }

  .faq-item summary {
    padding: 12px 14px;
    padding-right: 40px;
  }

  .faq-item summary::after {
    right: 13px;
  }

  .faq-answer {
    padding: 0 14px 12px;
  }

  .summary-item-wide,
  .contact-card .contact-item-wide {
    grid-column: auto;
  }

  .footer-bottom {
    text-align: center;
  }
}





