/* EminentTracker public site. One typeface (Public Sans, the face of US public-agency documents), white paper,
   navy ink and the survey-map teal of the app as the single action colour. No decoration, no scroll effects. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tone: #f3f6f4;        /* the pale green-grey of a survey sheet */
  --line: #e1e6e3;
  --line-strong: #c5ccc8;
  --ink: #10202f;
  --muted: #4a5763;
  --navy: #10202f;
  --on-navy: #ffffff;
  --on-navy-muted: #b9c4cf;
  --accent: #17607a;
  --accent-dark: #114a5e;
  --m: clamp(20px, 4vw, 40px);
  --axis: 42%;
  --gap: clamp(72px, 9vw, 120px);
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  --s-display: clamp(34px, 4.2vw, 52px);
  --s-title: clamp(26px, 2.6vw, 34px);
  --s-lead: clamp(18px, 1.4vw, 20px);
  --s-body: 17px;
  --s-small: 15px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }      /* a hidden field stays hidden whatever its own display rule says */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--s-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.14; text-wrap: balance; }
h1 { font-size: var(--s-display); }
h2 { font-size: var(--s-title); }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; padding: 10px 14px; background: var(--ink); color: #fff; }
.in { max-width: 1120px; margin-inline: auto; padding-inline: var(--m); }

/* ---- bar ---- */
.bar { display: flex; align-items: center; gap: 28px; max-width: 1120px; margin: 0 auto; padding: 20px var(--m); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.brand b { font-weight: 700; }
.brand span { font-weight: 400; color: var(--muted); }
.bar nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.bar nav a { text-decoration: none; padding: 6px 0; color: var(--muted); }
.bar nav a:hover { color: var(--ink); text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: var(--accent); color: #fff; font: 600 16px/1 var(--sans);
  text-decoration: none; white-space: nowrap; border: 0; border-radius: 6px; cursor: pointer; transition: background-color .15s ease; }
.btn:hover { background: var(--accent-dark); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn.accent { background: #fff; color: var(--ink); }
.btn.accent:hover { background: #e6edf0; }
.btn.plain { background: var(--tone); color: var(--ink); }
.btn.plain:hover { background: #e3e9e5; }
.text-link { font-weight: 600; color: var(--accent); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 48px; align-items: center; padding-top: clamp(32px, 5vw, 64px); }
.hero .lede { margin-top: 20px; font-size: var(--s-lead); line-height: 1.5; color: var(--muted); max-width: 34em; }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero .by { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--s-small); color: var(--muted); max-width: 34em; }
.hero .by b { color: var(--ink); font-weight: 600; }
.hero figure { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--tone); }
.hero figure .shotbox, .hero figure { position: relative; }
.hero figure figcaption { padding: 8px 12px; font-size: 13px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.hero figure .crop { aspect-ratio: 5 / 4; overflow: hidden; }
.hero figure img { width: 172%; max-width: none; margin: -7% 0 0 -43%; }
.today { margin-top: 40px; padding: 16px 20px; background: var(--tone); border-radius: 8px; font-size: var(--s-small); }
.today b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- sections ---- */
.band { margin-top: var(--gap); }
.band > h2 { max-width: 22em; }
.band > .lede { margin-top: 12px; color: var(--muted); max-width: 40em; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: 36px; }
.three li { padding-top: 18px; border-top: 2px solid var(--ink); }
.three p { margin-top: 8px; color: var(--muted); }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; max-width: 760px; }
.plan { border: 1px solid var(--line-strong); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--accent); border-width: 2px; padding: 27px; }
.plan h3 { font-size: 17px; }
.plan .price { margin-top: 12px; color: var(--muted); }
.plan .price b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.plan p + p { margin-top: 8px; color: var(--muted); font-size: var(--s-small); }
.plan .btn { margin-top: 24px; }
.plan .alt { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.plan .alt a { color: var(--accent); }
.plan:not(.best) .btn { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan:not(.best) .btn:hover { background: #eef4f6; }
.fine { margin-top: 16px; font-size: var(--s-small); color: var(--muted); max-width: 46em; }

/* ---- who built it ---- */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; background: var(--tone); border-radius: 12px; padding: clamp(24px, 4vw, 48px); }
.about.no-photo { grid-template-columns: minmax(0, 1fr); }
.about .portrait { width: 240px; margin: -12px 0 -12px -12px; }      /* the photo's soft edge sits on the panel colour */
.about .portrait img { width: 100%; height: auto; }
.about p { margin-top: 14px; max-width: 40em; }
.about .sig { margin-top: 22px; font-size: var(--s-small); color: var(--muted); }
.about .sig b { display: block; color: var(--ink); font-size: var(--s-body); font-weight: 600; }

/* ---- close and footer ---- */
.cta { margin-top: var(--gap); background: var(--navy); color: var(--on-navy); }
.cta .in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-block: 48px; }
.cta p { margin-top: 8px; color: var(--on-navy-muted); }
footer .in { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding-block: 32px 48px; font-size: var(--s-small); color: var(--muted); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer .legal { flex: 1 1 100%; max-width: 62em; font-size: 14px; line-height: 1.55; }

footer .rules { flex: 1 1 100%; padding: 20px 0 4px; border-top: 1px solid var(--line); margin-top: 4px; }
footer .rules b { color: var(--ink); font-weight: 600; }
footer .rules ul { margin-top: 10px; columns: 2; column-gap: 40px; font-size: 14px; line-height: 1.5; }
footer .rules li { break-inside: avoid; padding: 3px 0 3px 14px; position: relative; }
footer .rules li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
@media (max-width: 860px) { footer .rules ul { columns: 1; } }

/* ---- terms, privacy, compliance ---- */
.doc { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 72px; }
.doc > * { max-width: 44em; }
.doc h1 { font-size: var(--s-display); }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: var(--s-small); }
.doc h2 { margin-top: 44px; font-size: 22px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 20px; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--accent); }
.terms-box { background: var(--tone); border-radius: 8px; padding: 18px 20px; }
.terms-box h2 { font-size: 16px; letter-spacing: 0; }
.terms-box ul { margin-top: 10px; padding-left: 18px; list-style: disc; font-size: 14px; line-height: 1.5; color: var(--muted); }
.terms-box li + li { margin-top: 6px; }
form .agree { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
form .agree input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
form .agree a { color: var(--accent); }
form .agree .err { flex-basis: 100%; }
.posts { list-style: none !important; padding: 0 !important; margin-top: 32px !important; }
.posts li { padding: 22px 0; border-top: 1px solid var(--line); }
.posts li + li { margin-top: 0; }
.posts a { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts time { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.posts p { margin-top: 8px; color: var(--muted); }
.doc .post-cta { margin-top: 40px; } .doc .post-cta a { color: #fff; }
.doc em { color: var(--muted); }
.admin > * { max-width: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.tiles div { background: var(--tone); border-radius: 8px; padding: 14px 16px; }
.tiles dt { font-size: 14px; color: var(--muted); }
.tiles div span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.tiles dd { margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; margin-top: 16px; }
.admin h2 { scroll-margin-top: 24px; }
.admin h3 { margin-top: 28px; font-size: 17px; }
.admin .jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 20px; font-size: 15px; }
.admin .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 40px; }
.admin table.slim { min-width: 0; }
.admin td.bar { width: 45%; padding-right: 0; }
.admin td.bar i { display: block; height: 14px; min-width: 2px; background: var(--accent); border-radius: 2px; }
.admin td .msg { margin: 8px 0 0; max-width: 60ch; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin td input[type=text], .admin .srcbar input { font: inherit; font-size: 15px; padding: 7px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; max-width: 240px; }
.admin td input[type=text] { display: block; margin: 8px 0 6px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 860px; }
.admin th { text-align: left; font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.admin td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin td span { display: block; font-size: 14px; color: var(--muted); }
.admin td select { font: inherit; font-size: 15px; padding: 7px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); max-width: 150px; }
.admin td select + select { margin-top: 6px; }
form .hint { display: block; margin-top: 6px; font-weight: 400; font-size: 14px; color: var(--muted); }
.plans-pick label { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 6px; flex: 1 1 220px; }
.plans-pick label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plans-pick b { display: block; font-weight: 600; }
.plans-pick input { margin-top: 3px; }

/* ---- request access ---- */
.signup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 56px; max-width: 1120px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--m) 96px; }
.signup .why { padding-right: 0; }
.signup .why p { margin-top: 20px; max-width: 34ch; font-size: var(--s-lead); line-height: 1.4; }
.signup .why ul { margin-top: 36px; max-width: 36ch; }
.signup .why li { padding: 12px 0; }
.signup .help { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.signup .help h2 { font-size: var(--s-title); }
.signup .help form { margin-top: 20px; display: grid; gap: 18px; max-width: 420px; }
.signup .help p.status { margin-top: 0; font-size: var(--s-small); }
.signup .help ul { margin-top: 24px; font-size: var(--s-small); }
.signup .why li b { display: block; font-weight: 600; }
form.card { background: var(--surface); padding: clamp(24px, 3.4vw, 48px); }
form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
form label, form legend { display: block; font-size: 15px; font-weight: 500; padding: 0; }
form label span, form legend span { font-weight: 400; color: var(--muted); }
form input[type=text], form input[type=email], form input[type=tel], form input[type=password], form select, form textarea { width: 100%; margin-top: 7px; padding: 12px 14px; font: 400 16px/1.35 var(--sans); color: var(--ink);
  background: var(--bg); border: 1.5px solid #858d88; border-radius: 6px; transition: border-color .15s ease, background-color .15s ease; }
form textarea { min-height: 96px; resize: vertical; }
form input:hover, form select:hover, form textarea:hover { border-color: #5d6661; }
form input:focus-visible, form select:focus-visible, form textarea:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 0; border-color: var(--ink); background: var(--surface); }
form .full { grid-column: 1 / -1; }
form fieldset { border: 0; margin: 0; padding: 0; }
form .choices { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
form .choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; min-height: 32px; cursor: pointer; }
form .choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
form .send { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
form .send p { flex: 1 1 240px; font-size: var(--s-small); color: var(--muted); }
form .err { margin-top: 6px; font-size: var(--s-small); font-weight: 500; color: #a3270f; }
form [aria-invalid="true"] { border-color: #a3270f; }
.done { background: var(--surface); padding: clamp(24px, 3.4vw, 48px); }
.done h2 { font-size: clamp(26px, 2.6vw, 38px); }
.done p { margin-top: 16px; max-width: 52ch; }
.done pre { margin: 20px 0 0; padding: 16px 18px; background: var(--bg); font: 400 15px/1.5 var(--sans); white-space: pre-wrap; }
.done .send { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.btn.plain { background: var(--tone); color: var(--ink); }
.btn.plain:hover { background: #d9deda; }

/* ---- accounts ---- */
html:not(.auth-on) .auth-only, html.auth-on .auth-off { display: none !important; }
html:not(.google-on) .gate { display: none !important; }
.gate { margin-bottom: 24px; }
.btn.google { width: 100%; gap: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.google:hover { background: var(--tone); }
.btn.google svg { width: 18px; height: 18px; }
.gate .or { margin-top: 20px; font-size: var(--s-small); color: var(--muted); }
form .grid.one { grid-template-columns: 1fr; }
form.narrow { max-width: 480px; }
.status { padding: 12px 14px; background: var(--tone); font-size: var(--s-small); }
.status.bad { background: #f6d9cb; color: #6b2109; }
.linkish { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }


@media (max-width: 860px) {
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .three, .plans { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about .portrait { width: 200px; margin: -8px 0 -8px -12px; }
  .cta .btn { width: 100%; }
  .hero .acts .btn { flex: 1 1 100%; }
  .signup { grid-template-columns: minmax(0, 1fr); }
  .signup .why { padding: 0 0 32px; }
  form .grid { grid-template-columns: 1fr; }
}

.srcbar { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; font-size: 14px; }
.srcbar select { margin-left: 6px; min-height: 36px; }
#src td span, #gaps td span { display: block; }

/* state coverage table on the home page */
.cov { max-height: 560px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 10px; margin-top: 32px; }
.cov table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; font-variant-numeric: tabular-nums; }
.cov th, .cov td { padding: 10px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cov th:first-child { text-align: left; }
.cov thead th { position: sticky; top: 0; background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line-strong); white-space: normal; vertical-align: bottom; }
.cov tbody th { font-weight: 500; }
.cov tfoot th, .cov tfoot td { position: sticky; bottom: 0; background: #fff; font-weight: 700; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.covnote { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 760px; }
.statefacts { font-size: 14px; color: var(--ink); margin-top: 10px; padding: 12px 14px; background: var(--tone); border-radius: 6px; display: block; line-height: 1.5; }
.statefacts b { display: block; font-weight: 600; margin-bottom: 4px; }
.statefacts span { display: block; font-weight: 400; color: var(--ink); }
.statefacts span.warn { color: #8a3a12; font-weight: 500; }
.statefacts a { color: var(--accent); }

/* data rating: the letter carries the meaning, the colour repeats it */
.grade { display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-style: normal; text-align: center; font-size: 13px; }
.g-A, .g-B { background: #d9efe1; color: #0d4a2a; } .g-C { background: #f5e8c4; color: #5a4300; } .g-D { background: #f7ddc9; color: #6b2f00; } .g-F { background: #f6d5d5; color: #7a1212; }
