/* Shared base */
:root {
  --prs-blue: #1e73ff;
  --prs-blue-dark: #0f5fe0;
  --prs-text: #1f2937;
  --prs-muted: #5b6472;
  --prs-border: #dbe3ef;
  --prs-bg: #f4f8fd;
  --prs-card: #ffffff;
  --prs-soft: #eef5ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  color: var(--prs-text);
  background: #fff;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 10px 12px;
  z-index: 1000;
  border: 1px solid var(--prs-border);
  border-radius: 6px;
}

/* ------------------------------------------------
   Header
   ------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--prs-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #10243f;
  word-break: break-word;
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
}

.logo-text span {
  color: var(--prs-blue);
}

.main-nav ul,
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a,
.footer-links a {
  color: #20314d;
  font-weight: 600;
}

.nav-cta {
  background: var(--prs-blue);
  color: #fff !important;
  padding: 11px 16px;
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--prs-blue-dark);
  text-decoration: none;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--prs-border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #10243f;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--prs-border);
  padding: 30px 0 32px;
}

.breadcrumbs {
  margin: 0 0 18px;
  color: var(--prs-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.badge {
  display: inline-block;
  background: var(--prs-soft);
  color: var(--prs-blue-dark);
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.625rem);
  line-height: 1.1;
  color: #10243f;
  letter-spacing: -0.02em;
}

.subhead {
  margin: 0 0 16px;
  font-size: 18px;
  color: #334155;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--prs-muted);
  margin-bottom: 18px;
}

.disclosure,
.notice,
.callout {
  background: #f8fbff;
  border: 1px solid var(--prs-border);
  border-radius: 12px;
  padding: 16px 18px;
}

.notice {
  margin-top: 16px;
}

.score-box {
  background: #fff;
  border: 1px solid var(--prs-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(16, 36, 63, 0.06);
}

.score-label {
  font-size: 13px;
  color: var(--prs-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.score-number {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  color: #10243f;
  margin: 10px 0 10px;
  letter-spacing: -0.03em;
}

.small-note {
  margin: 0 0 16px;
  color: var(--prs-muted);
}

/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */
.cta-button,
.secondary-button {
  display: inline-block;
  background: #fff;
  color: var(--prs-blue);
  padding: 16px 26px;
  border-radius: 8px;
  border-color: var(--prs-blue);
  border-style: solid;
  border-width: 1px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .05s ease;
  text-align: center;
  width: 100%;
}

.cta-button:hover,
.secondary-button:hover {
  background: var(--prs-blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
  color: #fff;
}

.cta-button:active,
.secondary-button:active {
  transform: translateY(0);
}

/* ------------------------------------------------
   Main layout
   ------------------------------------------------ */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 34px 0 48px;
  align-items: start;
}

.content {
  min-width: 0;
}

.content section {
  margin-bottom: 28px;
  scroll-margin-top: 90px;
}

.content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.2vw, 1.9rem);
  line-height: 1.2;
  color: #10243f;
  letter-spacing: -0.02em;
}

.content h3 {
  margin: 0 0 8px;
  font-size: 21px;
  color: #10243f;
  letter-spacing: -0.01em;
}

.content p,
.content li {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.jump-links {
  background: var(--prs-bg);
  border: 1px solid var(--prs-border);
  border-radius: 14px;
  padding: 18px 20px;
}

.jump-links h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.jump-links ul,
.related-links ul {
  margin: 0;
  padding-left: 18px;
}

.checklist {
  background: #fff;
  border: 1px solid var(--prs-border);
  border-radius: 14px;
  padding: 18px 20px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--prs-border);
  border-radius: 14px;
  background: #fff;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--prs-border);
  text-align: left;
  vertical-align: top;
  min-width: 160px;
}

th {
  background: var(--prs-bg);
  color: #10243f;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--prs-border);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}

.author-section {
  margin-top: 40px;
}

.author-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  border: 1px solid var(--prs-border);
  background: #fff;
  border-radius: 14px;
  padding: 22px;
}

.author-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--prs-soft);
  border: 1px solid #cfe0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--prs-blue-dark);
}

.author-avatar img {
  border-radius: 15px;
}

.author-content p {
  margin-bottom: 12px;
  color: var(--prs-muted);
}

.record-search-box {
  background: #f6f9ff;
  border: 1px solid var(--prs-border);
  border-radius: 16px;
  padding: 26px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.search-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
}

.record-search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--prs-muted);
}

.field input,
.field select {
  padding: 12px;
  border: 1px solid var(--prs-border);
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
}

.search-button {
  background: var(--prs-blue);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.search-button:hover {
  background: var(--prs-blue-dark);
}

/* ------------------------------------------------
   Sidebar
   ------------------------------------------------ */
.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.side-card {
  background: #fff;
  border: 1px solid var(--prs-border);
  border-radius: 14px;
  padding: 18px 18px 20px;
  min-width: 0;
}

.side-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.side-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.author-box {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--prs-border);
  background: #fbfcfe;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0 30px;
}

.footer-wrap p {
  margin: 0;
  color: var(--prs-muted);
  font-size: 12px;
}

/* ------------------------------------------------
   Guide grids and cards
   ------------------------------------------------ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.guides-grid a {
  display: block;
  padding: 18px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: all .15s ease;
}

.guides-grid a:hover {
  border-color: #2d6cdf;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.guides-grid h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #1c2b3a;
}

.guides-grid p {
  font-size: 14px;
  color: #556070;
  line-height: 1.4;
}

.key-takeaways {
  background: #f6f8fb;
  border: 1px solid #e3e8ef;
  padding: 18px 20px;
  border-radius: 8px;
  margin: 24px 0;
}

.key-takeaways h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 18px;
}

.key-takeaways li {
  margin-bottom: 6px;
}

.identity-guides {
  margin-top: 40px;
}

.identity-guides h2 {
  margin-bottom: 18px;
}

.record-card {
  display: block;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s ease;
  margin-bottom: 5px;
}

.record-card:hover {
  border-color: #3a7afe;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.record-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.record-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.county-links {
  margin-top: 40px;
  padding: 22px;
  background: #f5f8fc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.county-links ul {
  margin-top: 10px;
  padding-left: 18px;
}

.county-links li {
  margin-bottom: 6px;
}

.county-links a {
  font-weight: 600;
}

/* ------------------------------------------------
   Tablet  (961px – 960px)
   ------------------------------------------------ */
@media (max-width: 960px) {
  .hero-grid,
  .main-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    top: auto;
  }

  .header-wrap {
    flex-direction: row;
    align-items: center;
    min-height: 64px;
    padding: 0;
    gap: 16px;
  }

  .main-nav ul {
    gap: 12px 16px;
  }
}

/* ------------------------------------------------
   Mobile  (≤ 640px) — hamburger nav
   ------------------------------------------------ */
@media (max-width: 640px) {

  .container {
    width: min(1140px, calc(100% - 22px));
  }

  /* Show hamburger, keep header sticky */
  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  /* Header row: logo left, burger right, never wraps */
  .header-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 60px;
    gap: 0;
    padding: 0;
  }

  .logo-mark {
    width: 24px;
    height: 24px;
  }

  .logo-text {
    font-size: 18px;
  }

  /* Nav drawer — slides down from header when open */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--prs-border);
    box-shadow: 0 8px 24px rgba(16, 36, 63, 0.08);
    z-index: 49;
    /* Collapsed */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.28s ease, visibility 0s linear 0.28s;
  }

  /* Open — JS adds .nav-open to .site-header */
  .site-header.nav-open .main-nav {
    max-height: 400px;
    visibility: visible;
    transition: max-height 0.28s ease, visibility 0s linear 0s;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 14px;
    width: 100%;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .main-nav li {
    width: 100%;
  }

  /* Nav links — full-width tap targets, left-aligned */
  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: #20314d;
    border: none;
    border-bottom: 1px solid var(--prs-border);
    border-radius: 0;
    background: none;
    text-align: left;
    text-decoration: none;
  }

  .main-nav a:hover {
    color: var(--prs-blue);
    text-decoration: none;
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  /* CTA pill in nav */
  .main-nav .nav-cta {
    display: inline-block;
    width: auto;
    margin: 10px 0 4px;
    padding: 10px 20px;
    background: var(--prs-blue);
    color: #fff !important;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    text-align: center;
  }

  .main-nav .nav-cta:hover {
    background: var(--prs-blue-dark);
  }

  /* Rest of mobile styles — unchanged from original */
  .hero {
    padding: 20px 0 24px;
  }

  .subhead {
    font-size: 16px;
  }

  .meta-row {
    gap: 8px 12px;
    font-size: 13px;
  }

  .score-box,
  .disclosure,
  .notice,
  .callout,
  .jump-links,
  .checklist,
  .faq-item,
  .side-card {
    padding: 14px 15px;
  }

  .score-number {
    font-size: 40px;
  }

  .content h3 {
    font-size: 19px;
  }

  .content p,
  .content li,
  th,
  td {
    font-size: 15px;
  }

  th,
  td {
    padding: 12px;
    min-width: 140px;
  }

  .main-grid {
    padding: 24px 0 36px;
    gap: 20px;
  }

  .cta-button,
  .secondary-button {
    padding: 14px 18px;
  }

  .author-box {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .author-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .author-avatar {
    margin-bottom: 6px;
  }

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

  .search-button {
    width: 100%;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ------------------------------------------------
   Phase 4 — state page additions
   ------------------------------------------------ */
.state-facts,
.state-records-box,
.industry-insight-box,
.common-mistakes-box {
  background: #f6f8fb;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}

.state-facts h2,
.state-records-box h2,
.industry-insight-box h2,
.common-mistakes-box h2 {
  margin-bottom: 12px;
}

.state-facts ul,
.state-records-box ul,
.common-mistakes-box ul {
  margin: 0;
  padding-left: 18px;
}

.state-facts li,
.state-records-box li,
.common-mistakes-box li {
  margin-bottom: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 16px 18px;
}

.stat-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
  color: #4d5b6a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-card p {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #1c2b3a;
}

.city-sections h3,
.county-sections h3,
.related-states h2 {
  margin-top: 18px;
  margin-bottom: 6px;
}

.section-intro {
  color: #556070;
  margin-bottom: 18px;
}

.state-links {
  margin-top: 40px;
  padding: 22px;
  background: #f5f8fc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.state-links ul {
  margin-top: 10px;
  padding-left: 18px;
}

.state-links li {
  margin-bottom: 6px;
}

.state-links a {
  font-weight: 600;
}

/* ------------------------------------------------
   Review pages
   ------------------------------------------------ */

/* Pros / cons block */
.pros-cons-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.pros-col,
.cons-col {
  border-radius: 12px;
  padding: 18px 20px;
}

.pros-col {
  background: #f0faf4;
  border: 1px solid #b6e4c8;
}

.cons-col {
  background: #fff8f0;
  border: 1px solid #f0d4b0;
}

.pros-heading {
  color: #1a6b3a;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 10px;
}

.cons-heading {
  color: #8a4a00;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 10px;
}

.pros-col ul,
.cons-col ul {
  margin: 0;
  padding-left: 18px;
}

.pros-col li,
.cons-col li {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Quick Verdict sidebar card */
.quick-verdict {
  background: var(--prs-soft);
  border: 1px solid #cfe0ff !important;
}

.verdict-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 8px 0 14px;
}

.verdict-score-number {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: #10243f;
  letter-spacing: -0.03em;
}

.verdict-score-denom {
  font-size: 18px;
  font-weight: 600;
  color: var(--prs-muted);
}

.verdict-list {
  margin: 0 0 16px;
  padding-left: 18px;
}

.verdict-list li {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
  color: var(--prs-text);
}

/* Review intro spacing */
.review-intro {
  margin-bottom: 4px;
}

.review-intro p {
  font-size: 17px;
}

/* Hero intro paragraph (beneath h1/subhead, above search form) */
.hero-intro-text {
  font-size: 16px;
  color: #334155;
  margin: 0 0 18px;
  line-height: 1.6;
}

/* Service logo in score box */
.review-service-logo {
  display: block;
  max-width: 160px;
  max-height: 44px;
  width: auto;
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}

/* Collapsible advertiser disclosure */
.review-disclosure {
  margin-top: 14px;
}

.disclosure-toggle {
  font-size: 13px;
  font-weight: 500;
  color: #7a94b8;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #b8c8dc;
}

.disclosure-toggle:hover {
  color: #4a6a94;
  text-decoration-color: #7a94b8;
}

.disclosure-body {
  margin-top: 10px;
  background: #f8fbff;
  border: 1px solid var(--prs-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--prs-muted);
  line-height: 1.6;
}

/* Bottom-line CTA block */
.review-bottom-cta {
  background: var(--prs-soft);
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin: 32px 0 0;
}

.review-bottom-cta-label {
  font-size: 18px;
  font-weight: 700;
  color: #10243f;
  margin: 0 0 16px;
}

.review-bottom-cta-button {
  display: inline-block;
  background: var(--prs-blue);
  color: #fff;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .05s ease;
  margin-bottom: 14px;
}

.review-bottom-cta-button:hover {
  background: var(--prs-blue-dark);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}

.review-bottom-cta-button:active {
  transform: translateY(0);
}

.review-bottom-cta .small-note {
  margin: 0;
  font-size: 12px;
}

/* Review body */
.review-body h2 {
  margin-top: 36px;
}

.review-body h3 {
  margin-top: 24px;
}

/* Responsive — collapse pros/cons to single column on mobile */
@media (max-width: 640px) {
  .pros-cons-block {
    grid-template-columns: 1fr;
  }
}
