/* Civicmill website. Public Sans, the brand navy, hairline rules; no shadows on content. */
:root {
  --navy: #13294b;
  --navy-deep: #0c1c35;
  --ink: #17202c;
  --body: #3b4655;
  --muted: #5d6877;
  --rule: #dde2e8;
  --rule-dark: #b9c2cd;
  --tint: #f3f5f7;
  --green: #23824c;
  --green-brand: #3fbf6f;
  --yellow: #f2c230;
  --red: #b4362c;
  --amber: #9a5b00;
  --link: #1b4d8c;
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.3vw, 40px); font-weight: 700; line-height: 1.12; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 650; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.pilot-bar :focus-visible, .pilot :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
.kicker { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.fine { font-size: 14.5px; color: var(--muted); }
.fine.light { color: #c5d0df; }
.fine.light a { color: #fff; }
.center { text-align: center; }
.lead { font-size: 19px; line-height: 1.55; color: var(--body); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 4px; border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--tint); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e7ecf2; color: var(--navy); }
.btn-sm { padding: 9px 15px; font-size: 15px; }
.btn-lg { padding: 15px 24px; font-size: 17px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* announcement bar and header */
.pilot-bar { background: var(--navy-deep); color: #dfe6f0; text-align: center; font-size: 14.5px; padding: 9px 16px; }
.pilot-bar a { color: var(--yellow); font-weight: 600; margin-left: 10px; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.header-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; }
.brand.light { color: #fff; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand.light .logo { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.logo svg { width: 100%; height: 100%; display: block; }
.main-nav { display: flex; gap: 18px; }
.main-nav a { color: var(--ink); font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.state-picker select { font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); padding: 8px 34px 8px 12px; border: 1px solid var(--rule-dark); border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2313294b' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center / 11px; appearance: none; cursor: pointer; }
.header-phone { color: var(--navy); font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule-dark); border-radius: 4px; width: 40px; height: 38px; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); }

/* hero */
.hero { padding: 72px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero-points { list-style: none; padding: 0; margin: 0 0 30px; }
.hero-points li, .checks li { position: relative; padding-left: 28px; margin: 9px 0; }
.hero-points li { font-weight: 500; }
.hero-points li::before, .checks li::before { content: ""; position: absolute; left: 5px; top: .38em; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-visual { position: relative; padding: 0 60px 40px 0; }
.browser { background: #fff; border: 1px solid var(--rule-dark); border-radius: 6px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(12, 28, 53, .45); }
.browser-bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--tint); border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.browser-bar b { color: var(--ink); font-weight: 600; }
.mock { display: flex; font-size: 11.5px; min-height: 320px; }
.mock-side { width: 118px; background: var(--navy); color: #b9c6da; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.mock-brand { color: #fff; font-weight: 700; font-size: 13px; padding: 2px 6px 10px; }
.mock-side span { padding: 5px 7px; border-radius: 3px; }
.mock-side span.on { background: #2a4f86; color: #fff; }
.mock-main { flex: 1; padding: 12px; background: #f5f7f9; }
.mock-top { margin-bottom: 10px; }
.mock-select { background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 3px 8px; font-weight: 600; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 10px; }
.mock-stats div { background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 7px 8px; }
.mock-stats small { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.2; }
.mock-stats b { font-size: 17px; font-weight: 700; }
.mock-stats .bad b { color: var(--red); }
.mock-table { background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px; }
.mt-h { font-weight: 700; margin-bottom: 4px; }
.mt-r { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--rule); align-items: center; }
.tag { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.tag.blue { background: #e6eef8; color: var(--link); }
.tag.amber { background: #fbf0dc; color: var(--amber); }
.hero-phone { position: absolute; right: 0; bottom: 0; width: 172px; border-radius: 26px; border: 6px solid #111a27; background: #111a27; box-shadow: 0 24px 44px -18px rgba(12, 28, 53, .55); }

/* facts row */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip-in { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip-in > div { padding: 22px 20px; border-left: 1px solid var(--rule); }
.strip-in > div:first-child { border-left: 0; padding-left: 0; }
.strip b { display: block; color: var(--navy); font-size: 16px; }
.strip span { font-size: 14.5px; color: var(--muted); }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--tint); }
.section-head { max-width: 760px; margin: 0 0 44px; }
.section-head p { color: var(--body); font-size: 18.5px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.two-col p { color: var(--body); }
.pain-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.pain-list li { padding: 15px 0; border-bottom: 1px solid var(--rule-dark); color: var(--body); }
.pain-list b { color: var(--ink); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; }
.feature { border-top: 2px solid var(--navy); padding-top: 20px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--body); font-size: 16px; margin: 0; }

/* states */
[hidden] { display: none !important; }
.state-cards { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule-dark); background: #fff; }
.state-card { font: inherit; text-align: left; cursor: pointer; background: #fff; color: var(--ink); border: 0; border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); border-radius: 0; padding: 18px 18px 22px; display: grid; gap: 6px; align-content: start; transition: background-color .15s; }
.state-card:hover { background: var(--tint); }
.state-card b { font-size: 19px; line-height: 1.2; color: var(--navy); font-weight: 700; }
.state-card span:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.pill { display: inline-flex; align-items: center; gap: 7px; justify-self: start; font-size: 13.5px; font-weight: 600; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pill.live { color: var(--green); }
.pill.live::before { background: var(--green-brand); }
.pill.ask { color: var(--link); }
.pill.ask::before { border: 2px solid var(--link); width: 6px; height: 6px; }
.pill.soon { color: var(--amber); }
.pill.soon::before { background: var(--yellow); }
.state-banner { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding: 0 0 18px; margin-bottom: 22px; border-bottom: 2px solid var(--navy); color: var(--body); }
.state-banner > span { flex: 1 1 520px; }
.state-banner .pill { margin-right: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-dark); border-radius: 4px; background: #fff; }
.req-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.req-table th, .req-table td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.req-table thead th { background: var(--tint); color: var(--muted); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--rule-dark); }
.req-table tbody th { width: 36%; font-weight: 600; color: var(--ink); }
.req-table tbody td { color: var(--body); }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: 0; }
.req-table .cite { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--muted); }
.state-note { margin: 20px 0 0; padding: 14px 18px; background: #fff; border-left: 3px solid var(--navy); color: var(--body); }
.state-detail .fine { margin-top: 16px; }
.waitlist { align-items: start; }
.wl-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }

/* field app */
.reverse > :first-child { order: 0; }
.phones { display: flex; gap: 20px; justify-content: center; }
.phones img { width: 46%; max-width: 250px; border-radius: 30px; border: 7px solid #111a27; background: #111a27; box-shadow: 0 24px 44px -20px rgba(12, 28, 53, .5); }
.phones img:last-child { margin-top: 48px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { margin: 11px 0; }
.checks.light li { color: #dfe6f0; }
.checks.light li::before { border-color: var(--yellow); }

/* cards, municipalities, payments */
.card { background: #fff; border: 1px solid var(--rule-dark); border-radius: 6px; padding: 26px; }
.muni-card { padding: 6px 24px; }
.muni-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.muni-row span:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: var(--navy); } .d2 { background: var(--green-brand); } .d3 { background: var(--yellow); }
.muni-foot { padding: 14px 0 10px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.pay-card .muted { color: var(--body); }
.pay-example { border: 1px solid var(--rule-dark); border-radius: 4px; margin: 18px 0; font-size: 15px; overflow: hidden; }
.pe-h { background: var(--tint); padding: 9px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.pe-r { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--rule); }
.pe-r b { color: var(--navy); font-weight: 600; }
.pe-r.total { background: #eef3f9; }
.pe-r.total b { font-weight: 700; }

/* pilot */
.pilot { background: var(--navy); color: #fff; }
.pilot h2 { color: #fff; font-size: clamp(32px, 4vw, 46px); }
.pilot p { color: #d3dcea; font-size: 18px; }
.pilot .fine { font-size: 14.5px; margin-top: 16px; }
.pilot-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 2px 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / span 2; font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.steps b { color: #fff; font-size: 18px; }
.steps span { color: #c5d0df; font-size: 15.5px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy); }
.plan { padding: 26px 32px 30px; border-right: 1px solid var(--rule-dark); }
.plan:first-child { padding-left: 0; }
.plan:last-child { border-right: 0; padding-right: 0; }
.who { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.price { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.price span { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.plan-wide { display: flex; align-items: center; gap: 32px; margin-top: 8px; padding: 22px 0; border-top: 1px solid var(--rule-dark); }
.plan-wide h3 { margin: 0; }
.plan-wide .who { margin: 2px 0 0; }
.plan-wide p { flex: 1; margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { position: relative; padding: 5px 0 5px 26px; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 5px; top: .62em; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pricing-notes { list-style: none; margin: 44px 0 0; padding: 0; max-width: 860px; border-top: 1px solid var(--rule-dark); }
.pricing-notes li { padding: 13px 0; border-bottom: 1px solid var(--rule-dark); color: var(--body); font-size: 16px; }

/* faq */
.faq-list { max-width: 860px; border-top: 1px solid var(--rule-dark); }
details { border-bottom: 1px solid var(--rule-dark); }
summary { position: relative; cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-size: 18px; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 25px; width: 9px; height: 9px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
details[open] summary::after { transform: rotate(-135deg); top: 30px; }
details p { color: var(--body); margin: 0 0 20px; max-width: 72ch; }

/* forms and contact */
.form { display: grid; gap: 14px; }
.form h3 { margin-bottom: 2px; }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; padding: 11px 12px; border: 1px solid var(--rule-dark); border-radius: 4px; }
.form select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2313294b' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 13px center / 11px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }
.form .invalid { border-color: var(--red); }
/* The field only bots fill in (off screen, skipped by keyboard and screen readers), and room for the robot check */
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-box { min-height: 65px; }
.form-status { margin: 0; font-size: 15px; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.contact { background: #fff; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule-dark); }
.contact-points li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); color: var(--body); }
.contact-points li > span:first-child { font-weight: 600; color: var(--ink); }

/* privacy and other text pages */
.page-head { background: var(--tint); border-bottom: 1px solid var(--rule); padding: 64px 0 48px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 50px); }
.page-head p { color: var(--body); max-width: 68ch; }
.page-head .fine { margin: 0 0 14px; }
.policy-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 15px; }
.toc b { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.toc a:hover { border-left-color: var(--navy); color: var(--navy); }
.policy { max-width: 72ch; }
.policy h2 { font-size: 25px; margin: 48px 0 12px; scroll-margin-top: 96px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--body); }
.policy ul { padding-left: 20px; }
.policy li { margin: 6px 0; }
.summary-box { border: 1px solid var(--rule-dark); border-top: 3px solid var(--navy); border-radius: 0 0 4px 4px; padding: 22px 24px 8px; margin: 0 0 8px; }
.summary-box h2 { font-size: 20px; margin: 0 0 8px; }
.summary-box ul { list-style: none; padding: 0; margin: 0; }
.summary-box li { position: relative; padding-left: 28px; margin: 0 0 14px; }
.summary-box li::before { content: ""; position: absolute; left: 5px; top: .38em; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 8px 0 16px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.data-table thead th { background: var(--tint); color: var(--muted); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--rule-dark); }
.data-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table td { color: var(--body); }
.table-scroll { overflow-x: auto; }
.error-page { padding: 120px 0; }
.error-page h1 { max-width: 18ch; }

/* footer */
.site-footer { background: var(--navy-deep); color: #c5d0df; padding: 56px 0 32px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-footer p { margin: 12px 0 0; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: flex-end; align-content: start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; font-size: 13.5px; color: #93a3bb; }

/* responsive */
@media (max-width: 1180px) {
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 4px 32px 16px; border-bottom: 1px solid var(--rule); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .main-nav a:hover { border-bottom-color: var(--rule); }
  .menu-toggle { display: block; }
}
@media (max-width: 1020px) {
  .header-phone { display: none; }
  .hero-in, .two-col, .pilot-in { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 640px; }
  .features { grid-template-columns: 1fr 1fr; }
  .strip-in { grid-template-columns: repeat(3, 1fr); }
  .strip-in > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .strip-in > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .state-cards { grid-template-columns: repeat(3, 1fr); }
  .state-card.other { grid-column: span 3; }
  .plans { grid-template-columns: 1fr; border-top: 0; }
  .plan-wide { flex-direction: column; align-items: flex-start; gap: 12px; border-top: 2px solid var(--navy); margin-top: 0; }
  .plan, .plan:first-child, .plan:last-child { padding: 24px 0 26px; border-right: 0; border-top: 2px solid var(--navy); }
  .policy-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-in { gap: 10px; height: 62px; }
  .main-nav { top: 62px; padding: 4px 16px 16px; }
  .brand { font-size: 19px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { display: none; }
  .state-picker select { font-size: 14px; padding: 7px 28px 7px 10px; max-width: 150px; background-position: right 10px center; }
  .pilot-bar { font-size: 13.5px; }
  .pilot-bar a { display: inline-block; margin-left: 6px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 44px; }
  .lead { font-size: 17.5px; }
  .hero-visual { padding: 0 0 34px; }
  .hero-phone { width: 118px; right: -4px; bottom: 0; border-width: 4px; border-radius: 18px; }
  .mock-side { display: none; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in > div, .strip-in > div:first-child { padding: 16px 12px 16px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .strip-in > div:nth-child(-n+2) { border-top: 0; }
  .strip-in > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule); }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .state-cards { grid-template-columns: 1fr 1fr; }
  .state-card.other { grid-column: span 2; }
  .state-card { padding: 14px 14px 16px; }
  .state-card b { font-size: 17px; }
  .state-card span:last-child { font-size: 13.5px; }
  .form .row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .muni-card { padding: 4px 16px; }
  .muni-row { grid-template-columns: 10px 1fr; }
  .muni-row span:last-child { grid-column: 2; margin-top: -8px; }
  /* Requirement tables stack: area and citation on top, how Civicmill handles it below. */
  .req-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .req-table, .req-table tbody, .req-table tr, .req-table th, .req-table td { display: block; }
  .req-table tr { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .req-table tr:last-child { border-bottom: 0; }
  .req-table tbody th, .req-table tbody td { width: auto; padding: 0; border-bottom: 0; font-size: 15px; overflow-wrap: break-word; }
  .req-table tbody td { margin-top: 6px; }
  .state-note { font-size: 15px; }
  .steps li { grid-template-columns: 44px 1fr; }
  .steps li::before { font-size: 22px; }
  .contact-points li { grid-template-columns: 1fr; gap: 2px; }
  .footer-in { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .page-head { padding: 40px 0 32px; }
  .policy-layout { padding-top: 36px; padding-bottom: 64px; }
  .data-table tbody th { white-space: normal; }
  .error-page { padding: 72px 0; }
}
@media (max-width: 359px) {
  .state-cards { grid-template-columns: 1fr; }
  .state-card.other { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .state-card, summary::after { transition: none; }
}
