/* Mobile type and contrast for public listings, editorial pages and map readers. */
@media screen and (max-width: 767px) {
  .hep-property-summary #district.district {
    color: #514535 !important; font-size: 14px !important; font-weight: 600;
  }
  .facts-grid > div > dt, .info-grid .info-label {
    color: #4f453a !important; font-size: 13px !important; font-weight: 600; line-height: 1.5;
  }
  .crp-mini-card :is(.crp-mini-label, .crp-mini-caption), .crp-range-endpoints small,
  .crp-summary .crp-summary-note {
    color: #49574d !important; font-size: 12px !important; line-height: 1.55;
  }
  @layer su-visitor-asks { html body .va-ask .va-box a.va-line {
    background: #24523d !important; color: #fff !important; font-weight: 650;
  } }
  .kpis .kpi > :is(span,small), .report-chart-head .report-total > span,
  section.bottom-cta > div > p, main.wrap section#contact.contact > p {
    color: #fff !important; opacity: 1;
  }
  .container .section > p[style*="#999"], .container article.article .disclaimer,
  .container article.article .disclaimer > span, .old-tax-knowledge > article > p,
  .container.seo-links > p, body > .shell:has(.reel-card) > footer,
  .content #facts .source-note { color: #48544e !important; }
  .container .hero > .hero-meta, .section.story > .label.editable, .section.summary > .label.editable,
  .hero-copy > .eyebrow, main > section.facts > .kicker {
    background: #f5eee2 !important; color: #514331 !important; width: fit-content;
    max-width: 100%; padding: .15em .55em; border-radius: 3px; font-size: 12px !important;
  }
  .container td.val-green { color: #226044 !important; }
  .summary-grid .summary-card > b, .zone-card .zone-price, .link-list a .link-arrow,
  .inspector .floor-heading .slash, .cdh-heading .cdh-eyebrow { color: #67442e !important; }
  .step-list .step .step-num { background: #775038 !important; color: #fff !important; }
  .region-media .region-badge, .map-label.landmark, .map-panel .map-label > span,
  #guideZoneLabel > small, .project-status h4 .planned, .floor-heading .selected-pill,
  .view .compass > span, .map-panel .cat-paw {
    color: #3f352a !important; background: #fff6e5 !important; opacity: 1;
    font-size: 12px !important; font-weight: 650; text-shadow: none !important;
  }
  .map-panel .map-label > span, .view .compass > span { border-radius: 3px; padding-inline: .25em; }
  .model-wrap #scene-gesture, #viewport > #status, .hr-stage .hr-motion,
  .hr-stage #receptionChoicesTitle, header .range > span {
    background: #302b25 !important; color: #fffaf2 !important; -webkit-text-fill-color: currentColor !important;
    opacity: 1 !important; text-shadow: none !important; border-radius: 5px;
    width: fit-content; max-width: 100%; padding: .2em .55em;
  }
  .hr-stage #receptionChoicesTitle { padding: .14em .4em; }
  .model-wrap #scene-gesture, #viewport > #status, .hr-stage .hr-motion, header .range > span { font-size: 12px !important; }
  .hr-stage .hr-motion[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #e6c996; }
  .phase2-evidence-footer { color: #514535 !important; }
  .site-header nav > a, .site-header .brand > span, .profile .section-nav a,
  .profile .sources > summary, #transactionFilters button, .site-bridge-links > a,
  #journey-nav :is(.jf-back, .jf-more > summary, .jf-more > summary > span, .jf-links a),
  .site-switcher > a, .mobile-actions > a, .bottom-nav .bn-label,
  .dealdb-shell :is(.dealdb-zone,.dealdb-card-action), .card-body .card-actions button,
  .journal-card .map-jump, .buyer-guide-actions a, .guide-steps .guide-step, .qa-links a,
  .most-sale-links a, .views button, .view-tabs button, .editorial-dock summary {
    font-size: 12px !important;
  }
  .site-header nav > a, .profile .section-nav a, #transactionFilters button,
  .dealdb-zonebar button, .dealdb-card-actions :is(a,button),
  .card-actions button, #explorer .views > button, .view-tabs button {
    min-height: 32px; align-content: center;
  }
  .card-body .card-facts > span, .community-card .eyebrow, .profile-heading .eyebrow,
  .stats-grid .stat :is(span,small), .hep-community-stat-art > p,
  .listing-card :is(.transaction-metrics dt,.metric-unit,.listing-status), .journal-card > small,
  .knowledge-links a > :is(b,small), footer.site-footer small, .facts > .fact > :is(small,span),
  .fact-grid .fact > b, section.quick > div > b, .listing-body > div > span,
  .listing-catalog-body :is(.listing-catalog-specs > span, .listing-catalog-location, .listing-catalog-price small, .listing-catalog-cert),
  .listing-catalog-photo .listing-status-badge, .chapter-photos figcaption,
  .dealdb-shell :is(.dealdb-stat small,.dealdb-price small,.dealdb-note,.dealdb-trademark),
  .dealdb-directory-head > p, .dealdb-directory-head > div > span, .dealdb-panel-head > div > span,
  #page-deals-db .dealdb-hero > small, .card :is(.meta > span,.card-head .where,.price > small,.record-status strong),
  .ps-rank-unit-group :is(.ps-rank-note,.ps-rank-basis), .broker-foot small,
  #brokerDisclosure p, #explorer .masthead .brand p, .interaction-hint, #explorer footer a {
    font-size: 12px !important; line-height: 1.45;
  }
  #explorer footer a { min-height: 24px; align-content: center; }
  .profile .table-wrap th, .profile .table-wrap td small, .transaction-table :is(th,td small),
  .content section table thead th { font-size: 12px !important; }
  .content section table thead th { background: #ede7db !important; color: #493f34 !important; }
}

@media screen and (max-width: 767px) {
  @layer suyangzhe-glow-switch {
    html[data-site-glass][data-glow-switch] body #homeReception button.hr-motion[aria-pressed] {
      color: #fffaf2 !important; background: #302b25 !important; padding: 3px 7px !important;
    }
  }
  .elite-market-table-wrap thead th, #homes [data-elite-building-entry] a {
    color: #443c30 !important; background: #f6f0e4 !important;
  }
  #homes [data-elite-building-entry] a { padding: 2px 8px; border-radius: 3px; }
  [data-text-clarity-page="mortgage"] .card div[style*="var(--ink-soft)"][style*="font-size:10px"],
  [data-text-clarity-page="mortgage"] .card div[style*="var(--accent-light)"] > div[style*="var(--accent)"] {
    color: #574234 !important; -webkit-text-fill-color: currentColor !important;
  }
  [data-text-clarity-page="mortgage"] .card div[style*="font-size:10px"],
  [data-text-clarity-page="mortgage"] .card div[style*="font-size:11px"] { font-size: 12px !important; }
  [data-text-clarity-page="mortgage"] .card div[style*="background:var(--ink)"] > div[style*="#8892a4"] {
    color: #fff !important; background: #39352f; width: fit-content; padding-inline: .25em;
  }
  @layer suyangzhe-detail-polish {
    html body #page-deals-db #dealDbZonebar .dealdb-zone,
    html body #page-deals-db .dealdb-card-actions .dealdb-card-action {
      font-size: 12px !important;
    }
    html body .elite-market-table-wrap :is(th, td small), html body .table-wrap thead th,
    html body #journalGrid .journal-card > small, html body .site-bridge .site-bridge-links > a,
    html body .knowledge-links a > small, html body nav.site-switcher > a,
    html body .buyer-guide-actions a, html body .qa-links a, html body .guide-step,
    html body .hero-actions .hero-meta > span, html body .article-nav .article-brand small,
    html body .mobile-actions > button, html body .article-footer,
    html body .community-grid > a.community-card > span, html body .crp-summary > .eyebrow,
    html body .topbar .brand > small, html body .chapter-copy > .kicker,
    html body .fact-row .fact > b, html body .listing-catalog-body .listing-catalog-specs > span,
    html body .listing-catalog-body .listing-catalog-location, html body .listing-catalog-photo .listing-status-badge,
    html body .ps-rank-note, html body .ps-rank-count small, html body .ps-rank-basis,
    html body .ps-rank-mobile-label, html body .ps-rank-mobile-label > span {
      font-size: 12px !important; line-height: 1.45;
    }
  }
  @media (max-width: 360px) {
    body:has(.guide-canvas) header.topbar { flex-wrap: wrap; }
    body:has(.guide-canvas) header.topbar > nav.nav {
      min-width: 0; max-width: 100%; flex-wrap: wrap; justify-content: flex-start;
    }
  }
}
