/* Screen-level composition. */

.section-head { margin-bottom: 28px; max-width: 62ch; }
.section-head .label { margin-bottom: 10px; }
.section-head h2 { margin-bottom: 12px; }
.section--sunk { background: var(--panel-sunk); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-shown { opacity: 1; transform: none; }

.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit;
           text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* These carry the ordinance citation, URL and all, as running text. */
.cell-note { font-size: 12px; line-height: 1.45; color: var(--ink-soft); margin-top: 3px;
  overflow-wrap: break-word; }
.source-line { margin-top: 12px; }

/* ------------------------------------------------------------------ hero -- */

.hero { padding-block: clamp(36px, 6vw, 76px) clamp(44px, 7vw, 88px); border-bottom: var(--rule); }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

.hero__copy .label { margin-bottom: 16px; }
.hero__copy h1 { margin-bottom: 20px; }
.hero__actions { margin-top: 28px; }
.hero__foot { margin-top: 22px; font-size: 11px; letter-spacing: 0.13em;
              text-transform: uppercase; color: var(--ink-faint); }

.hero__sheet { margin: 0; border: var(--rule); background: var(--panel); box-shadow: var(--shadow-card); }
.hero__caption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
                 padding: 12px 16px; border-top: var(--rule); font-size: 12.5px; }
.hero__caption-sep { color: var(--ink-faint); }
.hero__caption-flag { color: var(--magenta); font-weight: 600; }
.hero__caption-warn { color: var(--caution); }

/* ------------------------------------------------------------- questions -- */

.question-grid { margin-top: 8px; }
.question { border-top: 2px solid var(--ink); padding-top: 16px; }
.question__num { font-size: 11px; letter-spacing: 0.2em; color: var(--ink-faint); margin-bottom: 10px; }
.question h3 { margin-bottom: 10px; letter-spacing: 0.06em; font-size: 15px; line-height: 1.3; }
.question p { font-size: 14px; color: var(--ink-soft); }

/* ------------------------------------------------------------- coverage --- */

.stat-grid { gap: 26px 20px; }
.stat-grid .stat { border-top: 1px solid var(--hairline); padding-top: 14px; }
.coverage-note { margin-top: 30px; }

/* ---------------------------------------------------------------- worked -- */

.worked { display: grid; gap: 28px; }
@media (min-width: 860px) { .worked { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.worked__figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-content: start; }
.worked__figures .stat { border-top: 1px solid var(--hairline); padding-top: 12px; }
.worked__flag { border-left: 3px solid var(--magenta); padding: 2px 0 2px 14px; }
.worked__flag-head { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.worked__flag-pair { display: flex; gap: 10px; align-items: baseline; font-size: 14px; margin-top: 4px; flex-wrap: wrap; }
.worked__arrow { color: var(--ink-faint); font-size: 11px; }
.worked__flag p { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.worked__checks .btn { margin-top: 8px; }

.alert-grid { margin-bottom: 26px; }
.closing h2 { margin-bottom: 16px; }
.closing .row { margin-top: 26px; }

/* ---------------------------------------------------------------- search -- */

.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 24px; }
.filters .field { min-width: 160px; }
.filters__main { flex: 1 1 260px; min-width: 0; }
.field--tight { max-width: 120px; }
.filters .btn { height: 45px; }

.search-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1040px) { .search-layout { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); } }

.map-slot { overflow: hidden; }
.townmap-wrap { display: block; }
.townmap-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: var(--rule); }
@media (max-width: 720px) { .townmap-bar { flex-wrap: wrap; gap: 8px; } .townmap-bar .townmap-readout { flex: 1 1 100%; } }
.townmap-readout { flex: 1; min-width: 0; display: flex; gap: 8px; flex-wrap: wrap;
                   font-size: 12.5px; color: var(--ink-soft); }
.townmap-readout__sep { color: var(--hairline); }
.townmap-empty { padding: 42px 18px; text-align: center; color: var(--ink-soft); }

.results__summary { margin: 0; }
.result-list { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.result-list li + li { border-top: var(--rule-soft); }
.result { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px;
          padding: 12px 18px; text-decoration: none; align-items: baseline; }
.result:hover { background: var(--panel-sunk); }
.result__lot { font-size: 12px; letter-spacing: 0.04em; }
.result__address { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result__meta { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.result__dot { margin: 0 5px; color: var(--hairline); }

/* ---------------------------------------------------------------- report -- */

.report { padding-block: clamp(28px, 4vw, 48px) 72px; }
.report__head { display: flex; gap: 22px; justify-content: space-between; align-items: flex-start;
                flex-wrap: wrap; padding-bottom: 22px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.report__ident { min-width: 0; }
.report__lot { font-size: clamp(30px, 4.6vw, 46px); margin: 10px 0 4px; letter-spacing: 0.03em;
  overflow-wrap: break-word; }
.report__address { font-size: 16px; color: var(--ink-soft); margin: 0 0 14px; }
.report__tags { gap: 8px; }
.report__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report__warn, .report__sample { margin-bottom: 22px; }
.report__sheet { box-shadow: var(--shadow-card); }
.report__body { align-items: start; }
.report__aside { position: sticky; top: 78px; }
@media (max-width: 1039px) { .report__aside { position: static; } }

.measures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; margin-top: 14px; }
.measures .stat__value { font-size: 21px; }

.checks { display: grid; gap: 2px; }
/* minmax(0, 1fr), not 1fr: a bare 1fr track cannot shrink below the widest
   unbreakable thing inside it, so one long citation URL stretched the whole
   check past the screen and the report scrolled sideways on a phone. */
.check { display: grid; grid-template-columns: 3px minmax(0, 1fr); background: var(--panel); border: var(--rule); }
.check + .check { border-top: 0; }
.check__bar { background: var(--hairline); }
.check--pass .check__bar    { background: var(--municipal); }
.check--fail .check__bar    { background: var(--magenta); }
.check--caution .check__bar { background: var(--caution); }
.check__body { padding: 16px 18px; }
.check__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.check__label { font-size: 13px; letter-spacing: 0.13em; }
.check__pair { display: flex; gap: 30px; flex-wrap: wrap; margin: 12px 0 0; }
.check__pair dt { margin-bottom: 4px; }
.check__pair dd { margin: 0; font-size: 14px; }
.check__note { font-size: 13.5px; color: var(--ink-soft); margin: 12px 0 0; }
.check__cite { font: 400 11.5px/1.5 var(--face-mono); color: var(--ink-faint); margin: 10px 0 0;
  overflow-wrap: break-word; }

.district-code { display: inline-block; min-width: 3.4em; font-weight: 600; }
.district-name { color: var(--ink-soft); }

.kv { margin: 12px 0 0; }
.kv__row { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: var(--rule-soft); }
.kv__row:last-child { border-bottom: 0; }
/* Contacts and application notes run to email addresses and slash-joined
   lists, neither of which has a space to break at. */
.kv dd { margin: 0; font-size: 13.5px; overflow-wrap: break-word; }

.resource-list { list-style: none; margin: 12px 0 0; padding: 0; }
.resource-list li + li { margin-top: 12px; padding-top: 12px; border-top: var(--rule-soft); }
.resource-list__name { font-size: 13px; }
.town-note { margin-top: 14px; }

.report__foot { margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--ink); }
.titleblock { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); }
@media (min-width: 760px) { .titleblock { grid-template-columns: repeat(4, 1fr); } }
.titleblock__cell { padding: 12px 14px; border-right: 1px solid var(--ink); }
.titleblock__cell:last-child { border-right: 0; }
.titleblock__cell .mono { font-size: 12.5px; margin-top: 5px; }
.disclaimer { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); max-width: 84ch; }

/* --------------------------------------------------------------- pricing -- */

.pricing-bar { margin-bottom: 26px; }
.billing-toggle { display: inline-flex; border: var(--rule); }
.billing-toggle__btn { font: 600 10.5px/1 var(--face-mono); letter-spacing: 0.16em;
                       text-transform: uppercase; padding: 11px 16px; border: 0;
                       background: transparent; color: var(--ink-soft); cursor: pointer; }
.billing-toggle__btn[aria-pressed="true"] { background: var(--ink); color: var(--vellum); }

.plan-grid { align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: 12px; background: var(--panel);
             border: var(--rule); padding: 26px 22px; position: relative; }
.plan-card--popular { border-color: var(--ink); border-width: 2px; }
.plan-card__flag { position: absolute; top: -1px; right: 18px; transform: translateY(-50%);
                   background: var(--ink); color: var(--vellum); padding: 4px 8px; }
.plan-card__price { display: flex; align-items: baseline; gap: 6px; }
.plan-card__amount { font-size: 38px; letter-spacing: -0.02em; }
.plan-card__per { font-size: 13px; color: var(--ink-soft); }
.plan-card__billed { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.08em; }
.plan-card__tagline { font-size: 14px; color: var(--ink-soft); }
.plan-card__limits { display: flex; gap: 26px; margin: 4px 0 0; padding: 12px 0; border-block: var(--rule-soft); }
.plan-card__limits dd { margin: 4px 0 0; font-size: 15px; }
.plan-card__features { list-style: none; margin: 0; padding: 0; flex: 1; font-size: 13.5px; }
.plan-card__features li { padding: 7px 0 7px 20px; position: relative; border-bottom: var(--rule-soft); }
.plan-card__features li::before { content: "+"; position: absolute; left: 0; color: var(--municipal);
                                  font-family: var(--face-mono); }
.plan-card__features li.is-excluded { color: var(--ink-faint); }
.plan-card__features li.is-excluded::before { content: "−"; color: var(--hairline); }
.plan-card .btn { margin-top: 14px; }
.pricing-note { margin-top: 28px; }
.benchmark { margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.benchmark .label { margin-bottom: 6px; }

/* --------------------------------------------------------------- account -- */

.auth-card { max-width: 460px; display: grid; gap: 16px; }
.auth-card h3 { margin-bottom: 2px; }
.auth-card__foot { font-size: 13px; color: var(--ink-soft); margin: 0; }

.onboard { display: grid; gap: 20px; }
@media (min-width: 840px) { .onboard { grid-template-columns: 220px 1fr; } }
.onboard__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.onboard__step { display: flex; gap: 12px; align-items: center; padding: 12px 14px;
                 border-left: 2px solid var(--hairline); color: var(--ink-faint); font-size: 13px; }
.onboard__step.is-current { border-left-color: var(--magenta); color: var(--ink); background: var(--panel); }
.onboard__step.is-done { border-left-color: var(--municipal); color: var(--ink-soft); }
.onboard__step-num { font-size: 11px; }
.onboard__slot { display: grid; gap: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 12px/1 var(--face-body); padding: 11px 14px; border: var(--rule);
        background: var(--panel); color: var(--ink-soft); cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--vellum); }

/* ---------------------------------------------------------------- alerts -- */

.alerts-layout { display: grid; gap: 26px; align-items: start; }
@media (min-width: 1000px) { .alerts-layout { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); } }
.alerts-state { font-size: 13px; letter-spacing: 0.16em; color: var(--ink-soft); }
.alerts-aside { position: sticky; top: 78px; }
@media (max-width: 999px) { .alerts-aside { position: static; } }

.alert { background: var(--panel); border: var(--rule); border-left: 3px solid var(--hairline); padding: 18px 20px; }
.alert--action { border-left-color: var(--magenta); }
.alert--watch  { border-left-color: var(--caution); }
.alert--info   { border-left-color: var(--wetland); }
.alert__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.alert__title { font-size: 14px; letter-spacing: 0.08em; line-height: 1.35; margin-bottom: 9px; }
.alert__body { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.alert__foot { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-faint); }

.saved { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: var(--rule-soft); }
.saved:last-child { border-bottom: 0; }
.saved__name { font-size: 13.5px; }
.search-form { margin-top: 12px; }
.feed-row { padding: 10px 0; border-bottom: var(--rule-soft); }
.feed-row:last-child { border-bottom: 0; }
.feed-row__head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.feed-row__list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; }
.feed-row__list li { padding: 3px 0; }

/* ---------------------------------------------------------------- footer -- */

.foot__grid { display: grid; gap: 26px; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.2fr 0.7fr 1.4fr; } }
.foot__links { list-style: none; margin: 0; padding: 0; }
.foot__links li { padding: 4px 0; }
.foot__motto { margin: 6px 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); }
.foot__base { margin-top: 30px; padding-top: 18px; border-top: var(--rule); font-size: 11px;
              letter-spacing: 0.12em; color: var(--ink-faint); }

.standalone-bar { background: var(--ink); color: var(--vellum); padding: 10px 0; font-size: 12.5px; }
.standalone-bar .wrap { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.standalone-bar .label { color: var(--wetland); }

/* ----------------------------------------------------------------- print -- */

@page { size: letter portrait; margin: 0.5in; }

@media print {
  :root { --shadow-card: none; }
  body { background: #fff; background-image: none; font-size: 10.5pt; }
  .no-print, .masthead, .foot, .report__actions, .standalone-bar { display: none !important; }
  .report { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .card, .check, .alert { border-color: #000; break-inside: avoid; }
  .report__body { display: block; }
  .report__aside { position: static; margin-top: 16px; }
  .report__sheet { break-inside: avoid; break-after: page; }
  .report__section { break-inside: avoid; }
  .titleblock { break-inside: avoid; }
  .plan { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; word-break: break-all; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ----------------------------------------------------------------- towns -- */

.town-card { color: inherit; text-decoration: none; display: block; transition: border-color .15s; }
.town-card:hover { border-color: var(--ink); }
.town-card h3 { margin: 0; }
.town-card__figs { font-size: 12px; color: var(--ink-soft); }
.town-card__note { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.overlay__name { margin: 0; font-size: 15px; }
.overlay__summary { margin: 0; font-size: 13.5px; line-height: 1.55; }
.open-questions { margin: 0; padding-left: 22px; }
.open-questions li { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; }
.open-questions li::marker { font-family: var(--face-mono, monospace); color: var(--flag, #D6006E); }
.town-back { display: inline-block; margin-bottom: 18px; }
.town-lede { max-width: 80ch; font-size: 15.5px; line-height: 1.65; margin: 0 0 18px; }
details.cell-note summary { cursor: pointer; list-style: none; }
details.cell-note summary::-webkit-details-marker { display: none; }
details.cell-note summary::after { content: ' more'; color: var(--ink); text-decoration: underline; }
details.cell-note[open] summary { display: none; }
.worked-cta { border: 1px solid var(--ink); border-left: 3px solid var(--magenta); background: var(--panel); padding: 18px 20px; gap: 18px; }
.worked-cta p { margin: 6px 0 0; font-size: 14px; max-width: 70ch; }
.district-picker { display: grid; gap: 10px 22px; align-items: end; margin-bottom: 22px; padding: 14px 18px;
                   border: var(--rule); border-left: 3px solid var(--wetland); background: var(--wetland-wash); }
@media (min-width: 820px) { .district-picker { grid-template-columns: 1fr minmax(240px, 320px); } }
.district-picker p { margin: 0; font-size: 13.5px; max-width: none; }
.district-picker--needed { border-left-color: var(--magenta); background: var(--magenta-wash); }
.district-picker__field .label { display: block; margin-bottom: 6px; }

/* --------------------------------------------------------- landing adds -- */
.gallery__card { color: inherit; text-decoration: none; display: block; transition: border-color var(--fast) var(--ease); }
.gallery__card:hover { border-color: var(--ink); }
.gallery__plan { border-bottom: var(--rule); background: var(--panel); }
.gallery__plan svg { display: block; max-height: 260px; margin: 0 auto; }
.gallery__card h3 { margin: 0; font-size: 15px; }
.gallery__line { margin: 0; font-size: 14px; color: var(--ink-soft); }
.why-now { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 860px) { .why-now { grid-template-columns: repeat(2, 1fr); column-gap: 36px; } }
.why-now__item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 16px 0; border-top: var(--rule); }
.why-now__when { font-size: 12px; color: var(--magenta); padding-top: 2px; }
.why-now__item h3 { font-size: 14px; margin: 0 0 6px; letter-spacing: 0.1em; }
.why-now__item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
@media (min-width: 960px) { .gallery.grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* -- locked / teaser states ------------------------------------------------ */
.lock-panel { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
  padding: 20px 22px; background: var(--panel, #F2F4EF); border: 1px solid var(--ink, #16233B);
  border-left: 4px solid var(--magenta); }
.lock-panel__mark { font-size: 22px; line-height: 1; color: var(--magenta); padding-top: 2px; }
.lock-panel__copy h3 { margin: 4px 0 6px; }
.lock-panel__copy p { margin: 0; max-width: 62ch; }
.lock-panel__actions { grid-column: 2; margin-top: 12px; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .lock-panel { grid-template-columns: 1fr; }
  .lock-panel__mark { display: none; }
  .lock-panel__actions { grid-column: 1; }
}
tr.is-locked td { opacity: .92; }
.locked-cell { color: var(--ink-soft); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(22,35,59,.045) 6px 7px); }
.access-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 18px;
  font-size: 13px; }
.teaser__sheet { min-height: 320px; }
.teaser__outline { display: block; width: 100%; height: 340px; background:
  linear-gradient(var(--hairline, #B3BBB6) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--hairline, #B3BBB6) 1px, transparent 1px) 0 0 / 28px 28px;
  background-color: var(--vellum, #E7EAE4); opacity: .95; }
.teaser__lot { fill: rgba(22,35,59,.06); stroke: var(--ink, #16233B); stroke-width: 2; }
.teaser__verdict { font-size: 17px; margin: 8px 0 14px; }
.teaser__list { margin: 8px 0 0; padding-left: 18px; }
.teaser__list li { margin: 4px 0; }
.billing-card .row { margin-top: 12px; }
.free-line { margin: 18px 0 0; padding: 14px 18px; border: 1px dashed var(--hairline); gap: 12px; flex-wrap: wrap; }
.free-line p { margin: 0; }
.password-card summary { cursor: pointer; }
.password-card .auth-card { border: 0; padding: 12px 0 0; background: none; box-shadow: none; }
.legal__section { margin-top: 26px; }
.legal__section h3 { margin-bottom: 8px; }
.legal ul { padding-left: 20px; }

/* -- landing: hero proof strip --------------------------------------------- */
.hero__proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 30px 0 0;
  border-top: var(--rule); border-bottom: var(--rule); }
.hero__proof-item { padding: 12px 12px 12px 0; }
.hero__proof-item + .hero__proof-item { padding-left: 14px; border-left: var(--rule-soft); }
.hero__proof dt { font-size: clamp(18px, 2.2vw, 24px); font-variant-numeric: tabular-nums; color: var(--ink); }
.hero__proof dd { margin: 4px 0 0; font-size: 12px; line-height: 1.35; color: var(--ink-soft); }

/* -- landing: deed-to-buildable ledger -------------------------------------- */
.ledger { display: grid; gap: 14px; align-content: start; }
.ledger > .label { margin-bottom: 2px; }
.ledger__row { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-areas: "label value" "track track";
  gap: 6px 12px; align-items: baseline; }
.ledger__label { grid-area: label; font: 600 12px/1.2 var(--face-body); letter-spacing: 0.02em; }
.ledger__value { grid-area: value; font-size: 13px; text-align: right; color: var(--ink-soft); }
.ledger__track { grid-area: track; position: relative; height: 22px; background: var(--panel);
  border: 1px solid var(--hairline); }
.ledger__bar { position: absolute; top: 0; bottom: 0; transform-origin: left center;
  animation: ledger-in var(--slow) var(--ease) both; }
.ledger__row--lot .ledger__bar { background: repeating-linear-gradient(135deg, var(--hairline-soft) 0 2px, transparent 2px 7px);
  outline: 1px solid var(--ink); outline-offset: -1px; }
.ledger__row--cut .ledger__bar { background: var(--wetland-wash); border-left: 1px dashed var(--wetland); }
.ledger__row--left .ledger__bar { background: repeating-linear-gradient(135deg, var(--magenta-wash) 0 3px, rgba(214,0,110,0.22) 3px 5px);
  outline: 1.5px solid var(--magenta); outline-offset: -1.5px; }
.ledger__row--left .ledger__value { color: var(--magenta); font-weight: 600; }
@keyframes ledger-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 600px) {
  .ledger__row { grid-template-columns: 128px minmax(0, 1fr) 170px; grid-template-areas: "label track value"; }
  .ledger__value { font-size: 12px; }
}

/* -- landing: town explorer ------------------------------------------------- */
.explorer__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.explorer__chip { appearance: none; cursor: pointer; border: 1px solid var(--hairline); background: var(--panel);
  color: var(--ink); padding: 8px 11px; font-size: 12px; letter-spacing: 0.04em; border-radius: 0;
  display: inline-flex; gap: 6px; align-items: baseline;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.explorer__chip:hover { border-color: var(--ink); }
.explorer__chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.explorer__chip[aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.explorer__chip-state { font-size: 10px; color: var(--ink-faint); }
.explorer__chip[aria-pressed="true"] .explorer__chip-state { color: var(--hairline-soft); }
.explorer__panel { display: grid; gap: 0; border: var(--rule); background: var(--panel); box-shadow: var(--shadow-card);
  animation: explorer-in var(--slow) var(--ease) both; }
@keyframes explorer-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .explorer__panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.explorer__plan { border-bottom: var(--rule); padding: 10px; min-width: 0; }
@media (min-width: 900px) { .explorer__plan { border-bottom: 0; border-right: var(--rule); } }
.explorer__plan svg { display: block; width: 100%; height: auto; max-height: 440px; }
.explorer__copy { padding: clamp(18px, 3vw, 30px); min-width: 0; }
.explorer__head { gap: 10px; flex-wrap: wrap; }
.explorer__head h3 { margin: 0; font-size: clamp(18px, 2vw, 22px); }
.explorer__why { margin: 0; font-size: 15px; line-height: 1.55; }
.explorer__figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.explorer__figures .stat { border-top: 1px solid var(--hairline); padding-top: 10px; }
.explorer__figures .stat__value { font-size: clamp(18px, 2.2vw, 24px); }

/* -- landing: audience ------------------------------------------------------ */
.audience { gap: 20px; }
@media (min-width: 700px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .audience { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.audience__card { border-top: 2px solid var(--ink); padding-top: 14px; }
.audience__num { font-size: 11px; letter-spacing: 0.2em; color: var(--ink-faint); margin-bottom: 10px; }
.audience__card h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: 0.06em; line-height: 1.3; }
.audience__ask { margin: 0 0 8px; font-size: 12.5px; color: var(--ink); }
.audience__card p:last-child { margin: 0; font-size: 14px; color: var(--ink-soft); }
.closing__note { margin-top: 14px; }

/* -- account: team seats ---------------------------------------------------- */
.team-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-soft); }
.team-list__row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: var(--rule-soft); }
.team-list__row .mono { font-size: 13px; overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.team-add input { flex: 1 1 220px; min-width: 0; font: 400 14px/1 var(--face-mono); padding: 9px 11px;
  border: 1px solid var(--ink); background: var(--panel); color: inherit; border-radius: 0; }
.field-error { color: var(--magenta); font-size: 13px; margin: 0; }
.result__split { color: var(--municipal); font-weight: 600; margin-left: 4px; }

/* -- subdivide page ----------------------------------------------------------- */
.subdiv-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 4px 0 26px; }
.subdiv-totals .stat { border-top: 1px solid var(--hairline); padding-top: 12px; }
@media (max-width: 600px) { .subdiv-totals { grid-template-columns: 1fr; gap: 10px; } }
.subdiv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.subdiv-chip { appearance: none; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; padding: 8px 10px;
  border: 1px solid var(--hairline); background: var(--panel); color: var(--ink); border-radius: 0;
  font: 500 12px/1 var(--face-mono); letter-spacing: .03em; }
.subdiv-chip:hover { border-color: var(--ink); }
.subdiv-chip:disabled { opacity: .45; cursor: default; }
.subdiv-chip[aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.subdiv-chip__st { font-size: 10px; color: var(--ink-faint); margin-left: 5px; }
.subdiv-chip[aria-pressed="true"] .subdiv-chip__st { color: var(--hairline-soft); }
.subdiv-chip__n { font-size: 11px; padding: 2px 6px; background: var(--municipal-wash); color: var(--municipal); border: 1px solid var(--municipal); }
.subdiv-chip[aria-pressed="true"] .subdiv-chip__n { background: var(--municipal); color: var(--panel); }
.subdiv-town { display: grid; gap: 18px; }
.subdiv-town__head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.subdiv-town__head h2 { margin: 4px 0 6px; }
.subdiv-town__head .lede { margin: 0; max-width: 64ch; }
.subdiv-grid { display: grid; gap: 22px; }
@media (min-width: 1040px) { .subdiv-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); align-items: start; }
  .subdiv-map { position: sticky; top: 84px; } }
.subdiv-map { border: var(--rule); background: var(--panel); min-width: 0; }
.subdiv-list { display: grid; gap: 12px; min-width: 0; }
.subdiv-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.subdiv-seg { display: inline-flex; border: 1px solid var(--ink); }
.subdiv-seg button { appearance: none; border: 0; border-right: 1px solid var(--ink); background: var(--panel); color: var(--ink);
  padding: 8px 11px; font: 500 11px/1 var(--face-mono); letter-spacing: .06em; cursor: pointer; border-radius: 0; }
.subdiv-seg button:last-child { border-right: 0; }
.subdiv-seg button[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.subdiv-sort { display: inline-flex; gap: 8px; align-items: center; }
.subdiv-sort .input { padding: 7px 9px; }
.subdiv-count { margin: 0; }
.subdiv-rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.subdiv-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-areas: "n main" "n meta";
  gap: 2px 12px; padding: 12px 4px; border-bottom: var(--rule-soft); color: inherit; text-decoration: none; }
.subdiv-row:hover, .subdiv-row:focus-visible { background: rgba(22, 35, 59, 0.05); outline: none; }
.subdiv-row__n { grid-area: n; font-size: 26px; font-weight: 600; color: var(--municipal); line-height: 1; display: grid; gap: 6px; align-content: start; }
.subdiv-row__main { grid-area: main; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; min-width: 0; }
.subdiv-row__lot { font-size: 13px; font-weight: 600; }
.subdiv-row__addr { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.subdiv-row__meta { grid-area: meta; font-size: 11.5px; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.subdiv-row__why { color: var(--ink-faint); }
.split-dots { display: flex; flex-wrap: wrap; gap: 3px; max-width: 64px; }
.split-dots i { display: block; width: 9px; height: 9px; border: 1.5px solid var(--municipal); background: var(--municipal-wash); }
.subdiv-foot { margin-top: 28px; max-width: 80ch; }
.subdiv-callout { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .subdiv-callout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.subdiv-callout h2 { margin: 4px 0 10px; }
.subdiv-callout__towns { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.subdiv-callout__towns a { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 4px;
  border-bottom: var(--rule-soft); color: inherit; text-decoration: none; }
.subdiv-callout__towns a:hover { background: rgba(22, 35, 59, 0.05); }
.subdiv-callout__n { font-size: 24px; font-weight: 600; color: var(--municipal); }
.team-notice { font-family: var(--face-mono); font-size: 12px; }
.team-notice--sent { color: var(--municipal); }
.team-notice--failed { color: var(--magenta); }

/* launch pages */
.legal > .card, .legal > form.card { margin-top: 28px; }
.founding { margin-bottom: 22px; }
.error-report { margin-top: 22px; }
.error-report summary { cursor: pointer; }
.foot__support { margin-top: 10px; font-size: 12px; }

/* footer disclaimer, full width */
.foot__disclaimer { margin-top: 28px; padding-top: 20px; border-top: var(--rule); max-width: 120ch; }
.foot__disclaimer p { font-size: 12px; line-height: 1.55; color: var(--ink-soft); margin-top: 8px; }
.report .disclaimer { font-size: 12px; line-height: 1.55; }

/* Side columns scroll with the page. A sticky column taller than the window hides its bottom
   until the page ends, so only short sticky pieces (the maps) stay pinned. */
.report__aside, .alerts-aside { position: static; }
@media (min-width: 1000px) { .sub-grid__matrix { position: static; } }

/* about */
.about__hero { padding-block: clamp(48px, 8vw, 104px); border-bottom: var(--rule); }
.about__hero h1 { margin-bottom: 18px; }
.about__motto { margin-top: 22px; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }
.about__principle { height: 100%; }
.about__principle h3 { margin: 8px 0 6px; }
.about__principle p { font-size: 14.5px; }
.alerts-town { margin: 8px 0 0; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.alerts-town .label { margin-left: 8px; }

/* price information */
.values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.values__figure { font-size: 20px; margin-top: 4px; }
.values--compact .values__figure { font-size: 16px; }
@media (max-width: 480px) { .values__grid { grid-template-columns: 1fr; } }
.result__price { font-size: 11.5px; color: var(--ink-soft); }
.search-tabs { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; }
.search-note { margin: 8px 0 0; }
.about h2 { margin-bottom: 18px; }
.about .grid { margin-top: 6px; }
.foot__disclaimer p { max-width: none; }

.values__soon { margin-left: 10px; padding: 2px 6px; border: 1px solid var(--hairline); color: var(--ink-soft); letter-spacing: 0.1em; }

/* search: price and sort */
.filters__more { flex: 1 1 100%; border-top: var(--rule); padding-top: 10px; }
.filters__more > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.filters__row2 { margin-top: 10px; align-items: flex-end; }
.filters__row2 .field { min-width: 150px; }

/* homepage: lookup, try chips, inside-the-report grid */
.lookup { margin-top: 26px; position: relative; }
.lookup__row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.lookup__input { flex: 1 1 260px; min-width: 0; font-size: 16px; padding: 14px 14px; }
.lookup__row .btn { flex: 0 0 auto; min-height: 48px; }
.lookup__list { list-style: none; margin: 6px 0 0; padding: 0; background: var(--panel); border: var(--rule); box-shadow: var(--shadow-card); position: absolute; left: 0; right: 0; z-index: 20; max-height: 60vh; overflow: auto; }
.lookup__list li + li { border-top: var(--rule-soft); }
.lookup__list a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; text-decoration: none; color: var(--ink); min-height: 48px; }
.lookup__list a:hover, .lookup__list a.is-active { background: var(--vellum); }
.lookup__main { font-weight: 600; }
.lookup__meta { font-size: 11px; letter-spacing: 0.06em; color: var(--ink-soft); }
.lookup__status { margin: 8px 0 0; min-height: 1.2em; }
.hero__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.hero__try .label { margin-right: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--hairline); background: var(--panel); color: var(--ink); text-decoration: none; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.chip:hover { border-color: var(--ink); }
.inside__grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.inside__item { background: var(--panel); border: var(--rule); padding: 18px; }
.inside__item h3 { margin: 6px 0 6px; font-size: 18px; }
.inside__item p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.inside__n { color: var(--ink-soft); font-size: 11px; letter-spacing: 0.14em; }

@media (max-width: 560px) {
  .hero__copy h1 { font-size: clamp(30px, 9.5vw, 40px); margin-bottom: 4px; }
  .hero { padding-block: 22px 36px; }
  .hero__copy .lede { margin-top: 18px; }
  .lookup { margin-top: 14px; }
  .lookup__row .btn { width: 100%; }
}

.sec-demo { border: var(--rule); background: var(--panel); }
.sec-demo__svg { display: block; width: 100%; height: auto; }
.report__back { margin: 0 0 14px; }

/* ---- Nov 3 2026: plain and simple on every page ---------------------------- */
.section--tight { padding-top: 18px; }
.section--tight .wrap > * + * { margin-top: 16px; }
.filters--simple .filters__main { align-items: flex-end; }
.search-box { min-width: 240px; }
@media (min-width: 1040px) { .search-layout--map { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.6fr); } }
/* The two numbers that lead a parcel page. */
.headline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--ink); background: var(--panel); margin: 18px 0; }
.headline__cell { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; color: inherit; text-decoration: none; min-width: 0; }
.headline__cell + .headline__cell { border-left: 1px solid var(--ink); }
@media (max-width: 720px) { .headline__cell + .headline__cell { border-left: 0; border-top: 1px solid var(--ink); } }
.headline__label { font-family: var(--face-head); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; }
.headline__value { font-size: 34px; font-weight: 700; line-height: 1.05; }
.headline__note { font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
/* A card folded to one line. */
.fold > summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: baseline; padding: 12px 18px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; margin-left: auto; font-family: var(--face-mono); color: var(--ink-soft); }
.fold[open] > summary::after { content: "−"; }
.fold__title { font-family: var(--face-head); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card.fold > summary { padding: 0; }
.card.fold[open] > summary { margin-bottom: 10px; }
/* Split a lot: the map and the pickers, nothing else. */
.split-picks { flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.split-lot-pick { max-width: 100%; }
.split-stage { border: var(--rule); background: var(--panel); min-width: 0; }
.split-stage .card__body { padding: 18px; }
.split-list[hidden] { display: none; }
.split-list > summary { cursor: pointer; padding: 10px 0; }
/* Zoning changes: rules beside updates. */
.zoning-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1040px) { .zoning-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.zoning-rules { overflow-x: auto; }
/* Zoning code chart. */
.zchart__code { font-size: 1.15em; padding: 0 6px; border: 1px solid var(--ink); margin-right: 4px; }
.zchart__meaning { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.zchart__body { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.zchart .mono, .zchart .zsum__eq { white-space: normal; overflow-wrap: anywhere; }
.zchart__wrap { min-width: 0; overflow-x: auto; }
@media (min-width: 1040px) { .zchart__body { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); align-items: start; } }
.zchart__body > :first-child { min-width: 0; overflow-x: auto; }
.zchart__table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.zchart__table th:first-child { width: 28%; }
.zchart__table th:last-child { width: 28px; }
.zchart__table td, .zchart__table th { overflow-wrap: anywhere; }
.zchart__table th, .zchart__table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.zchart__table thead th { font-family: var(--face-head); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.zchart__table tbody th { font-weight: 500; }
.zchart__mark { text-align: center; font-weight: 700; }
.zchart__table tr.is-pass .zchart__mark { color: var(--municipal); }
.zchart__table tr.is-fail .zchart__mark { color: var(--magenta); }
.zchart__table tr.is-fail td { background: var(--magenta-wash); }
.zchart__table tr.is-caution .zchart__mark { color: var(--caution); }
.zchart__sums { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--hairline); padding: 12px; background: var(--vellum); }
.zsum { font-size: 13px; line-height: 1.5; }
.zsum__eq { color: var(--ink-soft); }
.zsum__warn { color: var(--magenta); }
/* Subdivision: drawing first, full width; the reading and the lot table under it. */
.sub-detail__body--wide { display: block; }
.sub-detail__body--wide .sub-figure { max-width: none; }
.sub-detail__read { margin: 14px 0; display: flex; flex-direction: column; gap: 6px; max-width: 80ch; }
.sub-t__total th, .sub-t__total td { border-top: 2px solid var(--ink); font-weight: 600; }
/* Five layout columns in the split matrix need ~480 px: stack until the half-width
   column can hold them, so no layout is hidden behind a sideways scroll. */
@media (min-width: 1000px) { .sub-grid--below { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1240px) { .sub-grid--below { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.sub-detail__flag { border-left: 3px solid var(--magenta); padding: 8px 12px; background: var(--magenta-wash); }
.zchart__service { border-top: 1px solid var(--hairline); padding-top: 10px; }
.zchart__svc { display: flex; gap: 12px; align-items: baseline; font-size: 13px; margin: 4px 0; }
