/* ReRentalAlert — civic utility. Tokens in web/DESIGN.md. */

/* ============ PASS2 FONTS (self-hosted, OFL) ============
   Archivo variable (wdth 62-125%, wght 100-900): display faces —
   condensed 700 rent figures, 800 wordmark. Atkinson Hyperlegible
   Next variable (wght 400-700): body, 400/600/700.
   Sources: Google Fonts (fonts.gstatic.com), SIL Open Font License. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/atkinson-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/atkinson-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============ end PASS2 FONTS ============ */
:root {
  --surface: #EDEFF0;
  --paper: #FFFFFF;
  --ink: #1D2327;
  --slate: #5B6770;
  --signal: #C8321E;
  --qualify: #2F7A4D;
  --line: #D8DDE1;
  --radius: 6px;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible",
          -apple-system, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans TC",
          sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

/* ---------- header ---------- */
.topbar {
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  min-height: 60px; display: flex; align-items: center; gap: 24px;
}
.brand { font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--slate); font-size: 15px; font-weight: 600;
  padding: 10px 12px; border-radius: var(--radius); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.userbox { font-size: 14px; color: var(--slate); white-space: nowrap;
  display: flex; align-items: center; gap: 10px; }
.userbox a { color: var(--slate); }
.userbox a.btn { color: #fff; }
.tier { font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--slate); }
.tier.premium { color: var(--qualify); border-color: var(--qualify); }
.menubtn { display: none; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink); background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 14px; cursor: pointer;
  min-height: 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--ink); color: #fff;
  font-family: var(--body); font-weight: 700; font-size: 15px;
  padding: 11px 20px; border: 0; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; min-height: 44px;
  text-align: center;
}
.btn:hover { background: #000; color: #fff; text-decoration: none; }
.btn.ghost { background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: 14px; min-height: 44px; }
.btn.big { padding: 14px 24px; font-size: 16px; }
.linklike { background: none; border: 0; color: var(--signal); cursor: pointer;
  font: inherit; font-size: 14px; padding: 10px 0; text-decoration: underline; }

/* ---------- layout ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.topline { font-size: 28px; margin: 4px 0 2px; }
.statusline { color: var(--slate); font-size: 15px; margin: 0 0 16px; }
.flash { background: var(--paper); border: 1px solid var(--ink);
  border-left: 4px solid var(--ink); padding: 12px 16px;
  border-radius: var(--radius); margin-bottom: 16px; font-size: 15px; }
.note { font-size: 14px; color: var(--slate); }

/* ---------- filter bar ---------- */
.filterbar {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px;
  position: sticky; top: 60px; z-index: 40;
}
.filterbar.stuck { box-shadow: 0 2px 8px rgba(29, 35, 39, 0.12); }
.filterbar form { display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 10px 12px; align-items: end; }
.f-field { display: flex; flex-direction: column; gap: 4px; min-width: 0;
  grid-column: span 2; }
.f-field.hh { grid-column: span 2; }
.f-field.boroughs { grid-column: span 4; }
.f-field label { font-size: 14px; font-weight: 400; color: var(--slate); }
.f-field input, .f-field select {
  font: inherit; font-size: 16px; padding: 9px 10px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: 100%;
}
.f-field input:focus, .f-field select:focus {
  outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 600; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--slate); cursor: pointer; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink);
  color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink);
  outline-offset: 2px; }
.f-actions { grid-column: span 12; display: flex; gap: 10px; align-items: center; }
.fchip { display: none; }

/* ---------- listing rows: the departure board ---------- */
.group-h { font-size: 16px; font-weight: 700; margin: 28px 0 0;
  padding: 0 4px 8px; }
.group-h:first-of-type { margin-top: 8px; }
.rows { background: var(--paper); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: 150px 1fr 190px; gap: 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; align-items: start; }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: #F6F7F8; }
.lrow:hover .lrow-title { text-decoration: underline; }
.rent { font-family: var(--display); font-stretch: 75%; font-weight: 700;
  font-size: 28px; letter-spacing: -0.01em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.rent small { display: block; font-family: var(--body); font-size: 13px;
  font-weight: 400; color: var(--slate); letter-spacing: 0; }
.rent-na { font-size: 14px; color: var(--slate); font-weight: 400; }
.lrow-title { font-size: 16px; font-weight: 700; }
.lrow-detail { font-size: 14px; color: var(--slate); margin-top: 2px; }
.lrow-src { font-size: 13px; color: var(--slate); margin-top: 4px; }
.lrow-right { text-align: right; font-size: 14px; }
.elig-qualify { color: var(--qualify); font-weight: 700; }
.elig-fit { color: var(--slate); }
.elig-detail { color: var(--slate); font-size: 13px; margin-top: 2px; }
.posted { color: var(--slate); font-size: 13px; margin-top: 4px; }
.newtag { display: inline-block; color: var(--signal); font-weight: 700;
  font-size: 13px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- empty states + alert prompt ---------- */
.empty { background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 24px; text-align: left;
  margin-top: 16px; max-width: 640px; }
.empty h3 { font-size: 20px; margin: 0 0 8px; }
.empty p { margin: 0 0 12px; color: var(--slate); }
.alert-prompt { margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.alert-prompt h2 { font-size: 20px; margin: 0 0 6px; }
.alert-prompt p { color: var(--slate); margin: 0 0 12px; }
.nearest-block { margin-top: 28px; }
.nearest-block h3 { font-size: 18px; margin: 0 0 4px; }

/* ---------- detail page ---------- */
.d-head { margin: 4px 0 20px; }
.d-rent { font-family: var(--display); font-stretch: 75%; font-weight: 700;
  font-size: 40px; letter-spacing: -0.02em; line-height: 1.05;
  font-variant-numeric: tabular-nums; margin: 0; }
.d-rent .rent-na { font-size: 20px; font-family: var(--body); }
.d-title { font-size: 20px; font-weight: 700; margin: 6px 0 2px; }
.d-sub { color: var(--slate); font-size: 15px; }
.elig { border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 16px; margin: 0 0 24px; max-width: 720px; }
.elig h2 { font-size: 16px; margin: 0 0 6px; }
.elig p { margin: 0; font-size: 15px; }
.elig .tone-qualify { color: var(--qualify); font-weight: 700; }
.elig .tone-miss { color: var(--signal); font-weight: 700; }
.elig-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
  margin-top: 10px; }
.elig-form .f-field { min-width: 150px; }
section.block { margin-bottom: 28px; max-width: 720px; }
section.block h2 { font-size: 16px; margin: 0 0 10px; }
.apply-line { margin: 0 0 10px; font-size: 15px; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.mail-checklist { margin: 8px 0 12px; padding-left: 22px; font-size: 15px; }
.mail-checklist li { margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px;
  font-size: 15px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; }
.kv dt { color: var(--slate); font-weight: 400; }
.kv dd { margin: 0; }
table.bands { border-collapse: collapse; width: 100%; font-size: 15px;
  background: var(--paper); }
table.bands th, table.bands td { border-bottom: 1px solid var(--line);
  padding: 10px 12px; text-align: left; font-variant-numeric: tabular-nums; }
table.bands th { font-size: 14px; font-weight: 400; color: var(--slate); }
table.bands tr.me td { background: #EDF5F0; font-weight: 700; }
.disclaimer { font-size: 14px; color: var(--slate); margin-top: 10px; }
.inquiry { border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; background: var(--paper); max-width: 720px; }
.inquiry .f-field { margin-bottom: 10px; }
.inquiry input[readonly], .inquiry textarea[readonly] {
  width: 100%; font-size: 14px; font-family: var(--body);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; background: var(--surface); color: var(--ink);
  resize: vertical; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 24px 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.plan { padding: 24px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-family: var(--display); font-stretch: 75%; font-weight: 700;
  font-size: 40px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--body); font-size: 15px; font-weight: 400;
  color: var(--slate); }
.plan ul { margin: 14px 0; padding-left: 20px; font-size: 15px; }
.plan li { margin-bottom: 8px; }
.trustline { border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 16px; font-size: 15px; max-width: 720px; }
.trustline strong { display: block; margin-bottom: 4px; }

/* ---------- sources ---------- */
table.src-table { width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--paper); }
table.src-table th, table.src-table td { text-align: left; padding: 12px;
  border-bottom: 1px solid var(--line); }
table.src-table th { font-size: 14px; font-weight: 400; color: var(--slate); }
.src-ok { color: var(--qualify); font-weight: 600; }
.src-pending { color: var(--slate); }
.src-bad { color: var(--signal); font-weight: 600; }

/* ---------- admin ---------- */
.admin-sec { margin-top: 32px; }
.admin-err { font-size: 12px; color: var(--slate); max-width: 340px;
  margin-top: 4px; }

/* ---------- auth / forms ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; max-width: 520px; margin: 24px auto; background: var(--paper); }
.card h1 { font-size: 20px; margin: 0 0 14px; }
.card .f-field { margin-bottom: 12px; }
.card input { width: 100%; }
.search-card { border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; background: var(--paper);
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.search-card .main { flex: 1; min-width: 200px; }
.search-card .name { font-weight: 700; font-size: 16px; }
.search-card .desc { font-size: 14px; color: var(--slate); margin-top: 2px; }
.search-card .matches { font-size: 14px; font-weight: 700;
  color: var(--qualify); }
.badge-off { font-size: 12px; font-weight: 700; color: var(--slate);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.settings { margin-top: 10px; font-size: 14px; }
.settings summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.setrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
  margin: 10px 0 4px; }
.setrow label { display: flex; flex-direction: column; gap: 4px; font-size: 14px;
  color: var(--slate); }
.setrow input, .setrow select { font: inherit; font-size: 16px; padding: 9px 10px;
  min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); }

/* ---------- checklist ---------- */
.scorebar { max-width: 680px; margin: 0 0 18px; }
.scorebar-track { height: 10px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.scorebar-fill { height: 100%; width: 0; background: var(--ink);
  border-radius: 999px; }
.scorebar-label { font-size: 14px; color: var(--slate); margin-top: 6px; }
.checklist { max-width: 680px; }
.checklist section { margin-bottom: 20px; }
.checklist h2 { font-size: 16px; margin: 0 0 8px; }
.check { display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer; font-size: 15px; background: var(--paper);
  min-height: 44px; }
.check input { margin-top: 4px; width: 20px; height: 20px; flex: none;
  accent-color: var(--ink); }
.check span { color: var(--slate); font-size: 14px; display: block; }

/* ---------- onboarding ---------- */
.step { display: flex; gap: 12px; margin-bottom: 18px; }
.stepnum { flex: none; width: 28px; height: 28px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 26px; }
.step .f-field { flex: 1; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 48px;
  padding: 24px 16px 32px; color: var(--slate); font-size: 14px;
  background: var(--paper); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--slate); font-weight: 600; font-size: 14px; }
.footer p { margin: 6px 0; max-width: 75ch; }
.footer p.disclaimer { color: var(--ink); }

/* ---------- prose pages ---------- */
.prose { max-width: 700px; }
.prose h2 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Legacy aliases (old templates not yet rewritten) */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0;
  margin-bottom: 12px; }
.field label { font-size: 14px; font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 9px 10px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus {
  outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.pagehead { margin: 4px 0 16px; }
.pagehead h1 { font-size: 24px; margin: 0 0 4px; }
.pagehead p { margin: 0; color: var(--slate); font-size: 15px; }
.inline-form { display: inline; }
.nearest ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.nearest li { margin-bottom: 6px; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .lrow { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .lrow-right { text-align: left; display: block; }
  .rent { font-size: 24px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 10px; }
  .topline { font-size: 24px; }
}
@media (max-width: 640px) {
  .topbar { position: static; }
  .topbar-inner { gap: 12px; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 12px 12px; margin: 0; z-index: 60; }
  .nav.open { display: flex; }
  .menubtn { display: inline-block; margin-left: auto; }
  .userbox { display: none; }
  .filterbar { position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    z-index: 70; margin: 0; border-radius: 12px 12px 0 0;
    border-bottom: 0; max-height: 82vh; overflow-y: auto;
    transform: translateY(105%); transition: transform 0.18s ease-out;
    box-shadow: 0 -4px 16px rgba(29, 35, 39, 0.18); }
  .filterbar.open { transform: none; }
  .filterbar form { grid-template-columns: 1fr; }
  .f-field, .f-field.hh, .f-field.boroughs, .f-field.half { grid-column: span 1; }
  .fchip { display: inline-flex; align-items: center; gap: 8px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 15px;
    font-weight: 600; color: var(--ink); cursor: pointer; min-height: 44px;
    margin-bottom: 16px; }
  .sheet-scrim { position: fixed; inset: 0; background: rgba(29,35,39,0.4);
    z-index: 65; display: none; }
  .sheet-scrim.open { display: block; }
}

/* §6 persona-a: auth links inside the mobile menu. The desktop userbox is
   hidden <=640px, so without these there is no signup/login entry point
   on phones. display:contents keeps them as flex items of the column nav. */
.m-auth { display: none; }
@media (max-width: 640px) {
  .m-auth { display: contents; }
  .m-auth a.btn, .m-auth .btn { margin-top: 4px; }
}

.datanote { margin: 8px 0 4px; font-size: 13px; color: #5a6367; }
.datanote summary { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.datanote p { margin: 6px 0 0; max-width: 60ch; line-height: 1.5; }

/* Sources table -> stacked cards on mobile */
@media (max-width: 600px) {
  table.src-table tr:first-child { display: none; }
  table.src-table, table.src-table tbody,
  table.src-table tr, table.src-table td { display: block; width: 100%; }
  table.src-table tr { border-bottom: 2px solid var(--line); padding: 10px 0; }
  table.src-table td { border: 0; padding: 3px 14px; }
  table.src-table td::before { content: attr(data-label); display: block;
    font-size: 12px; font-weight: 600; color: var(--slate);
    text-transform: uppercase; letter-spacing: 0.04em; }
  table.src-table td[data-label="Source"]::before { display: none; }
  table.src-table td[data-label="Source"] { font-size: 16px; padding-top: 6px; }
}

/* ============ PASS2 WORDMARK + STATUS STRIP (shared) ============ */
/* Wordmark: Archivo condensed 800 + key mark. */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand .wm-mark { width: 26px; height: 26px; flex: none; display: block; }
.brand .wm-text { font-stretch: 75%; }
.brand .wm-alert { color: var(--signal); }

/* Live tracker status strip directly under the header, on every page. */
.status-strip {
  background: var(--ink); color: #E8EBED;
  font-size: 13px; line-height: 1.4;
}
.status-strip-inner {
  max-width: 1100px; margin: 0 auto; padding: 7px 16px;
  display: flex; align-items: center; gap: 8px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #5FCF7F; /* live green; distinct from --signal red */
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}
.status-strip .stale { color: #F2B8AC; }
.status-dot.stale { background: #F2B8AC; animation: none; }
/* ============ end PASS2 WORDMARK + STATUS STRIP ============ */
/* PASS2 BROWSE — browse rebuild (§3). Flat toolbar (de-boxed per §1.2),
   grid filter bar (§3.1), chips + count (§3.2), inline alert prompt (§3.3),
   row right column (§3.4), mobile rows (§3.5), mobile sheet (§3.6). */

/* ---------- flat filter toolbar (§1.2, §3.1) ---------- */
.btools { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; margin: 16px 0 4px; }
.bt-row { display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 10px 14px; align-items: end; }
.bt-row + .bt-row { margin-top: 10px; }
.bt-field { display: flex; flex-direction: column; gap: 4px; min-width: 0;
  grid-column: span 2; }
.bt-field.grow { grid-column: span 4; }
.bt-field > label, .bt-label { font-size: 14px; font-weight: 400;
  color: var(--slate); line-height: 20px; min-height: 20px; }
.bt-field input, .bt-field select {
  font: inherit; font-size: 16px; padding: 9px 10px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: 100%; }
.bt-field input:focus, .bt-field select:focus {
  outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.bt-toggle { grid-column: span 3; display: flex; gap: 10px; align-items: center;
  min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer;
  margin: 0; }
.bt-toggle input { width: 20px; height: 20px; flex: none;
  accent-color: var(--ink); }
.bt-toggle:has(input:disabled) { color: var(--slate); cursor: not-allowed;
  font-weight: 400; }
.bt-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.sheet-apply { display: none; }

/* compact multi-select dropdown (§3.1) */
.bdrop { position: relative; }
.bdrop summary { list-style: none; font-size: 16px; padding: 9px 10px;
  min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bdrop summary::-webkit-details-marker { display: none; }
.bdrop summary::after { content: "▾"; color: var(--slate); font-size: 12px; }
.bdrop summary:focus-visible { outline: 3px solid var(--ink);
  outline-offset: 1px; }
.bdrop-body { position: absolute; top: calc(100% + 4px); left: 0; z-index: 80;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(29, 35, 39, 0.12);
  padding: 8px; min-width: 230px; }
.bdrop-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: var(--radius); font-size: 15px; cursor: pointer;
  min-height: 44px; }
.bdrop-opt:hover { background: var(--surface); }
.bdrop-opt input { width: 20px; height: 20px; flex: none;
  accent-color: var(--ink); }
.bdrop-lab { display: block; font-size: 14px; color: var(--slate);
  padding: 6px 12px 2px; }
.bdrop-body select { font: inherit; font-size: 16px; padding: 9px 10px;
  min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: calc(100% - 24px);
  margin: 0 12px; }
.bdrop-body .note { padding: 8px 12px 4px; margin: 0; }

/* ---------- result meta: count + chips (§3.2) ---------- */
.bmeta { margin: 14px 0 4px; }
.bcount { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bchip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px;
  font-weight: 600; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 4px 4px 14px; background: var(--paper); }
.bchip a { color: var(--slate); text-decoration: none; font-size: 18px;
  line-height: 1; min-width: 32px; min-height: 32px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 999px; }
.bchip a:hover { background: var(--surface); color: var(--ink); }
.bclear { font-size: 14px; font-weight: 600; margin-left: 4px; }

/* ---------- inline alert prompt (§3.3) ---------- */
.balert { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: 15px; margin: 14px 0 4px; padding: 12px 0;
  border-top: 1px solid var(--line); }

/* ---------- listing rows (§3.4, §3.5) ---------- */
.lrow { grid-template-columns: 150px 1fr 200px;
  grid-template-areas: "rent main right"; }
.lr-rent { grid-area: rent; display: flex; flex-wrap: wrap;
  align-items: center; column-gap: 8px; }
.lr-rent small { flex-basis: 100%; }
.lr-beds { display: none; }
.lr-main { grid-area: main; min-width: 0; }
.lr-right { grid-area: right; text-align: right; font-size: 14px; }
.newtag { display: inline-block; color: var(--signal); font-weight: 700;
  font-size: 13px; margin-top: 0; }
.apply-how { font-size: 13px; font-weight: 700; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.04em; }
.apply-due { font-size: 13px; color: var(--slate); margin-top: 2px; }
.bmore { text-align: center; margin: 20px 0 8px; }
.bmore .note { margin-top: 8px; }
.rows.filled { opacity: 0.85; }

/* ---------- mobile ---------- */
.mtools { display: none; }
@media (max-width: 760px) {
  /* §3.5: compact rows, rent left + bedrooms right on line one. */
  .lrow { grid-template-columns: 1fr auto;
    grid-template-areas: "rent beds" "main main" "right right";
    gap: 2px 12px; padding: 12px 14px; }
  .lr-rent { grid-area: rent; }
  .lr-beds { display: block; grid-area: beds; align-self: center;
    text-align: right; font-size: 14px; font-weight: 600;
    color: var(--slate); }
  .lr-main { grid-area: main; }
  .lr-right { grid-area: right; text-align: left; margin-top: 6px; }
  .rent { font-size: 22px; }
  .lrow-title { font-size: 15px; }
}
@media (max-width: 640px) {
  /* §3.6: filters live in a bottom sheet with a sticky apply button. */
  .mtools { display: flex; gap: 10px; margin: 4px 0 12px; }
  .mtools .fchip { margin-bottom: 0; }
  .btools { position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    z-index: 70; margin: 0; background: var(--paper); border: 0;
    border-top: 1px solid var(--line); border-radius: 12px 12px 0 0;
    max-height: 84vh; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform 0.18s ease-out;
    box-shadow: 0 -4px 16px rgba(29, 35, 39, 0.18); }
  .btools.open { transform: none; }
  .bt-row { grid-template-columns: 1fr; }
  .bt-field, .bt-field.grow, .bt-toggle { grid-column: span 1; }
  .bdrop-body { position: static; box-shadow: none; border: 0; padding: 4px 0 0;
    min-width: 0; }
  .bdrop[open] summary { margin-bottom: 4px; }
  .bt-foot { display: block; position: sticky; bottom: 0; margin: 14px -16px 0;
    padding: 12px 16px 4px;
    background: linear-gradient(transparent, var(--paper) 35%); }
  .desk-apply { display: none; }
  .sheet-apply { display: block; width: 100%; }
  .balert .btn { width: 100%; }
}
/* END PASS2 BROWSE */
/* PASS2 DETAIL: listing detail page rebuild (Pass 2 §4). */
.d-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px;
  gap: 32px; align-items: start; }
.d-main { min-width: 0; }
.d-back { display: inline-block; font-size: 14px; margin-bottom: 12px; }
.d-sec { margin: 28px 0; }
.d-sec h2 { font-size: 17px; margin: 0 0 10px; }
.d-rent .d-per { font-size: 15px; font-family: var(--body);
  font-weight: 400; color: var(--ink); }
/* §1.2: the sticky panel is the only boxed element; details is a hairline list. */
.d-main .kv { border-top: 1px solid var(--line); }
.d-main .kv dt, .d-main .kv dd { border-bottom: 1px solid var(--line);
  padding: 7px 0; }
.d-panel { border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: sticky; top: 16px; background: var(--paper); }
.d-panel-sec + .d-panel-sec { margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--line); }
.d-panel-sec h2 { font-size: 16px; margin: 0 0 8px; }
.d-panel-sec p { margin: 0 0 8px; }
/* §2.7: fixed $ prefix inside the income field, light hint placeholder. */
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; max-width: 220px; }
.input-prefix > span { display: flex; align-items: center; padding: 0 4px 0 12px;
  color: var(--slate); font-size: 15px; }
.input-prefix input { border: 0; padding: 9px 10px 9px 2px; font-size: 15px;
  width: 100%; background: transparent; }
.input-prefix input:focus { outline: none; }
.input-prefix:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.input-prefix input::placeholder { color: #9AA3AB; opacity: 1; }
@media (max-width: 900px) {
  .d-layout { grid-template-columns: 1fr; }
  .d-panel { position: static; }
}
/* END PASS2 DETAIL */
/* PASS2 PRICING: pricing page (table layout, plan toggle, waitlist, FAQ) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

table.price-table { width: 100%; border-collapse: collapse; font-size: 15px;
  margin: 20px 0 28px; }
table.price-table th, table.price-table td { text-align: left; padding: 11px 12px;
  border-bottom: 1px solid var(--line); }
table.price-table thead th { font-size: 16px; font-weight: 600; color: var(--ink); }
table.price-table tbody th { font-weight: 400; color: var(--ink); }
table.price-table tbody td { color: var(--ink); }

.seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; margin: 0 0 14px; max-width: 560px; }
.seg-option { flex: 1; display: block; padding: 12px 16px; cursor: pointer;
  background: var(--paper); }
.seg-option + .seg-option { border-left: 1px solid var(--line); }
.seg-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-option:has(input:checked) { background: #1d2327; color: #fff; }
.seg-option:has(input:focus-visible) { outline: 2px solid var(--ink);
  outline-offset: -2px; }
.seg-title { display: block; font-weight: 700; font-size: 16px; }
.seg-sub { display: block; font-size: 13px; margin-top: 4px; opacity: 0.75; }

.premium-panel { margin: 0 0 28px; }
.plan-blurb { margin-top: 0; }

.faq-head { font-size: 20px; margin: 32px 0 8px; }
details.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 8px 0 4px; max-width: 64ch; line-height: 1.55; }

@media (max-width: 600px) {
  table.price-table thead tr:first-child { display: none; }
  table.price-table, table.price-table tbody,
  table.price-table tr, table.price-table td { display: block; width: 100%; }
  table.price-table tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  table.price-table tbody th { display: block; font-weight: 600; padding: 10px 14px 2px; border: 0; }
  table.price-table td { border: 0; padding: 2px 14px 6px; }
  table.price-table td::before { content: attr(data-label); display: block;
    font-size: 12px; font-weight: 600; color: var(--slate);
    text-transform: uppercase; letter-spacing: 0.04em; }
}
/* END PASS2 PRICING */
/* PASS2 MISSINGUI (2026-09-27) — footer extras + account menu */
.scam-line { display: flex; gap: 8px; align-items: flex-start; }
.scam-icon { flex: none; color: var(--signal); margin-top: 3px; }
.footer-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--slate); cursor: not-allowed; opacity: 0.85; }
.lang-note { font-size: 13px; }
.footer-links a[href^="mailto:"] { font-weight: 400; }

/* Account dropdown menu (used by _account_menu.html; not wired into header yet) */
.acctmenu { position: relative; }
.acctmenu-btn { list-style: none; display: inline-flex; align-items: center;
  gap: 8px; cursor: pointer; padding: 8px 10px; border-radius: var(--radius);
  min-height: 44px; font-size: 14px; color: var(--slate); }
.acctmenu-btn::-webkit-details-marker { display: none; }
.acctmenu-btn:hover { background: var(--surface); }
.acctmenu-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.acctmenu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(29,35,39,0.12); min-width: 200px; padding: 6px; }
.acctmenu-list a { display: block; padding: 10px 12px; border-radius: 4px;
  color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.acctmenu-list a:hover { background: var(--surface); }
.acctmenu-sep { display: block; border-top: 1px solid var(--line); margin: 6px 4px; }
/* END PASS2 MISSINGUI */

/* SEO area pages (/areas, /areas/<borough>, /areas/<borough>/<hood>) */
.breadcrumbs { font-size: 13px; color: var(--slate); margin-bottom: 2px; }
.breadcrumbs a { color: var(--slate); }
.areagroup { margin-top: 20px; }
.areagroup-h { font-size: 19px; margin: 0 0 8px; }
.arealist { list-style: none; padding: 0; margin: 0 0 8px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 24px; }
.arealist a { color: var(--ink); }
.areacount { color: var(--slate); font-size: 14px; font-weight: 400; }
.area-card { margin: 16px 0 24px; padding: 18px; }
.area-empty { margin: 16px 0 24px; padding: 24px; }
.areacta { margin: 24px 0; }
/* END SEO AREA PAGES */
/* §4.12 MAP VIEW: List/Map toggle + Leaflet container. */
.viewrow { margin: 2px 0 14px; }
.viewseg { max-width: 240px; margin: 0; }
button.seg-option { font: inherit; color: inherit; border: 0; appearance: none;
  -webkit-appearance: none; padding: 10px 16px; }
button.seg-option:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.seg-option.is-on { background: #1d2327; color: #fff; }
#mapwrap { margin: 0 0 28px; }
#map { height: 440px; border: 1px solid var(--line); border-radius: 12px; z-index: 0; }
.mapnote { font-size: 14px; color: var(--slate); margin: 0 0 10px; }
.maperr { color: #9a3412; }
.mapempty { padding: 28px 20px; color: var(--slate); margin: 0; }
.mpop { font-size: 14px; line-height: 1.55; }
.mpop a { font-weight: 600; }
@media (max-width: 600px) {
  #map { height: 56vh; min-height: 320px; }
  .viewseg { max-width: none; }
}
/* END §4.12 MAP VIEW */
