:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --ink: #1b2420;
  --muted: #5a665f;
  --line: #e2e3dc;
  --brand: #1f6f4a;
  --brand-dark: #16553a;
  --brand-soft: #e5f1e9;
  --yes: #166534; --yes-bg: #dcfce7; --yes-line: #86efac;
  --maybe: #92400e; --maybe-bg: #fef3c7; --maybe-line: #fcd34d;
  --no: #991b1b; --no-bg: #fee2e2; --no-line: #fca5a5;
  --na: #4b5563; --na-bg: #f1f2f4; --na-line: #d1d5db;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 8px 24px rgba(20, 30, 25, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111613; --surface: #1a211d; --ink: #e8ece9; --muted: #a2aea7; --line: #2c3530;
    --brand: #3fa574; --brand-dark: #5cc08e; --brand-soft: #1f2e26;
    --yes: #86efac; --yes-bg: #133222; --yes-line: #1f6b41;
    --maybe: #fcd34d; --maybe-bg: #3a2c0f; --maybe-line: #7a5a12;
    --no: #fca5a5; --no-bg: #3b1717; --no-line: #7f2a2a;
    --na: #9ca3af; --na-bg: #23292b; --na-line: #3a4145;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 0 0 .6em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.fineprint { font-size: .85rem; color: var(--muted); }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.logo.small { font-size: 1rem; margin: 0 0 .5em; }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-nav > a, .menu summary { color: var(--ink); text-decoration: none; font-weight: 550; cursor: pointer; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; font-size: .8em; color: var(--muted); }
.menu-list { position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 250px; display: grid; }
.menu-list a { padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-list a:hover { background: var(--brand-soft); }
@media (max-width: 560px) { .top-nav { gap: 12px; font-size: .92rem; } .logo span { font-size: 1rem; } .top-nav > a[href="/about/"] { display: none; } }

/* hero */
.hero { padding: 36px 0 18px; }
.hero.small { padding: 10px 0 16px; }
.eyebrow { margin: 0; color: var(--brand); font-weight: 650; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 760px; margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }

/* tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; margin: 8px 0 28px; }
.loc-form { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-form input {
  flex: 1 1 180px; min-width: 0; font: inherit; font-size: 1.15rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink);
}
.loc-form input:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 650;
  padding: 12px 18px; border-radius: 11px; border: 1.5px solid var(--brand); background: var(--surface); color: var(--brand);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.small { padding: 7px 12px; font-size: .92rem; }
@media (max-width: 560px) { .loc-form input { flex-basis: 100%; } .loc-form .btn { flex: 1 1 0; padding: 12px 10px; } }
.loc-status { min-height: 1.4em; font-size: .92rem; color: var(--muted); margin-top: 6px; }
.loc-status.error { color: var(--no); }
.hint, .loading { color: var(--muted); margin: 8px 0 2px; }
.loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { background: var(--no-bg); color: var(--no); border-radius: 10px; padding: 12px 14px; }
.summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 2px 12px; font-size: .95rem; }

.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.pill.v-yes { background: var(--yes-bg); color: var(--yes); border-color: var(--yes-line); }
.pill.v-maybe { background: var(--maybe-bg); color: var(--maybe); border-color: var(--maybe-line); }
.pill.v-no { background: var(--no-bg); color: var(--no); border-color: var(--no-line); }
.pill.v-na { background: var(--na-bg); color: var(--na); border-color: var(--na-line); }

.headline { border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; font-size: 1.08rem; border: 1px solid; }
.headline.v-yes { background: var(--yes-bg); border-color: var(--yes-line); }
.headline.v-maybe { background: var(--maybe-bg); border-color: var(--maybe-line); }
.headline.v-no { background: var(--no-bg); border-color: var(--no-line); }

/* single project days */
.days { display: grid; gap: 10px; }
.day { border: 1px solid var(--line); border-left: 5px solid var(--na-line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.day.v-yes { border-left-color: #22c55e; }
.day.v-maybe { border-left-color: #f59e0b; }
.day.v-no { border-left-color: #ef4444; }
.day-head { display: grid; grid-template-columns: 120px auto 1fr auto; align-items: center; gap: 8px 16px; }
.day-name { display: flex; flex-direction: column; line-height: 1.25; }
.day-name span { color: var(--muted); font-size: .88rem; }
.day-window { font-weight: 650; }
.day-window .muted { font-weight: 400; font-size: .88rem; margin-right: 4px; }
.day-wx { display: flex; gap: 12px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
@media (max-width: 720px) {
  .day-head { grid-template-columns: 1fr auto; }
  .day-window, .day-wx { grid-column: 1 / -1; }
}
.issues { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .94rem; }
.issues li { position: relative; padding-left: 22px; }
.issues li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.issues .sev2::before { content: "✕"; color: #dc2626; }
.issues .sev1::before { content: "!"; color: #d97706; left: 5px; }
.issues .sev0::before { content: "✓"; color: #16a34a; }

/* matrix */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: .92rem; }
.matrix th, .matrix td { padding: 6px; border-bottom: 1px solid var(--line); text-align: center; background: var(--surface); }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.matrix thead th { font-weight: 600; vertical-align: bottom; background: var(--bg); }
.matrix thead th span { display: block; line-height: 1.3; }
.matrix .dn { font-weight: 700; }
.matrix .dd, .matrix .dw { font-size: .78rem; color: var(--muted); font-weight: 400; }
.matrix tbody th { text-align: left; white-space: nowrap; position: sticky; left: 0; z-index: 1; padding-left: 12px; box-shadow: 1px 0 0 var(--line); }
.matrix thead .corner { position: sticky; left: 0; z-index: 2; text-align: left; padding-left: 12px; }
.matrix tbody th a { color: var(--ink); text-decoration: none; font-weight: 600; }
.matrix tbody th a:hover { color: var(--brand); text-decoration: underline; }
.cell {
  width: 100%; min-width: 74px; font: inherit; cursor: pointer; border-radius: 9px; border: 1.5px solid transparent;
  padding: 6px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.2;
}
.cell .cv { font-weight: 750; }
.cell .cw { font-size: .74rem; opacity: .85; }
.cell.v-yes { background: var(--yes-bg); color: var(--yes); }
.cell.v-maybe { background: var(--maybe-bg); color: var(--maybe); }
.cell.v-no { background: var(--no-bg); color: var(--no); }
.cell.v-na { background: var(--na-bg); color: var(--na); }
.cell:hover, .cell.active { border-color: currentColor; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .86rem; color: var(--muted); margin: 10px 2px; }
.legend .pill { margin-left: 8px; }
.legend .pill:first-child { margin-left: 0; }
.detail { margin-top: 8px; }
.detail-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.detail-card p { margin: 6px 0; }
.detail-card .btn { margin-top: 10px; }

/* content */
.section { margin: 0 0 34px; }
.steps { padding-left: 1.2em; display: grid; gap: 8px; max-width: 820px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.project-card {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s;
}
.project-card:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--ink); }
.project-card .pi { font-size: 1.5rem; }
.project-card span:last-child { color: var(--muted); font-size: .92rem; }
.city-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 16px; }
.state-list section { margin-bottom: 24px; }
.state-list h2 { font-size: 1.1rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.prose { font-size: 1.03rem; }
.prose p, .prose ul { max-width: 72ch; }
.prose li { margin-bottom: 4px; }
.rules { padding-left: 1.1em; }
.side { position: sticky; top: 16px; display: grid; gap: 20px; }
@media (max-width: 900px) { .side { position: static; } }
.side h2 { font-size: 1.1rem; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.gear { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.gear-grid { display: grid; gap: 8px; }
.gear-card { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--bg); }
.gear-card:hover { border-color: var(--brand); color: var(--ink); }
.gear-card span { font-size: .88rem; color: var(--muted); }
.gear-card em { font-style: normal; font-size: .86rem; color: var(--brand); font-weight: 650; }
.gear .fineprint { margin: 10px 0 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ads */
.ad { margin: 8px 0 30px; min-height: 100px; }
.ad-placeholder { display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 20px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer nav { display: grid; gap: 4px; align-content: start; }
.site-footer h3 { font-size: .95rem; margin: 0 0 6px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); text-decoration: underline; }
.copyright { color: var(--muted); font-size: .85rem; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
