/* Shared reading scale. Keep display headings; never shrink body copy on phones. */
@media screen {
  :root {
    --text-body: 1.125rem;
    --text-control: 1rem;
    --text-support: .9375rem;
    --text-caption: .875rem;
  }
  body { font-size: var(--text-body); line-height: 1.75; }

  /* Editorial copy, including pages with their own small-screen rules. */
  .professional-hero-copy > p, .about-copy p, .service-card p,
  .section-head p, .page-hero p, .prose, .prose p, .prose li,
  .step p, .checklist p, .article-body p, .article-body li,
  .faq-list details p, .soft-panel p, .contact-details p,
  main:has(#nh-homes) .page-hero p {
    font-size: var(--text-body); line-height: 1.75;
  }
  .professional-hero-copy > p { max-width: 31rem; }
  .about-copy p { max-width: 34rem; }
  .section-head p { max-width: 28rem; }
  .prose, .article-body { overflow-wrap: anywhere; }
  .quick-start p, .card-overlay p, .film-card p, .journal-row p,
  .video-modal p, .social-card p, .facts span, .intro-ribbon span, .resource-list a,
  .faq-list summary, .article-aside a, .payment-row,
  .source-list, .source-list li {
    font-size: var(--text-control); line-height: 1.65;
  }
  .professional-portrait-label span, .hero-credentials,
  .film-foot, .form-note, .calc-note, .footer-grid p,
  .footer-links, .social-line, .breadcrumb {
    font-size: var(--text-support); line-height: 1.7;
  }
  small, .small, .image-note, .duration, .portrait-caption small,
  .payment-total small, .footer-bottom, .footer-grid h4 {
    font-size: var(--text-caption); line-height: 1.65;
  }
  .pending { font-size: var(--text-support) !important; line-height: 1.7; }
  .calc-error { font-size: var(--text-support); line-height: 1.65; }
  .eyebrow, .professional-hero .eyebrow, .film-card .eyebrow,
  .journal-row .eyebrow, .card-overlay .eyebrow {
    font-size: .8125rem; letter-spacing: .1em; line-height: 1.6;
  }
  .quick-number, .journal-row .number, .service-no { font-size: var(--text-caption); }
  .footer-grid p { max-width: 21rem; }
  .footer-grid h4 { font-weight: 600; letter-spacing: .08em; }
  .footer-bottom { color: #c0c6d0; flex-wrap: wrap; }
  .social-line, .hero-credentials { flex-wrap: wrap; gap: 10px 18px; }
  .card-overlay p { color: #eef1f6; }
  .community-card .card-overlay { bottom: 25px; }
  .community-card:after { background: linear-gradient(0deg, #111722f0, #11172233 75%, transparent); }

  /* Navigation and controls stay comfortably readable at every breakpoint. */
  .desktop-nav > a, .nav-group summary, .nav-dropdown a,
  .mobile-nav > a, .mobile-nav .nav-group summary, .mobile-nav .nav-dropdown a,
  .lang-button, .btn, .professional-hero .btn, .header-tools > .btn,
  .text-link, .professional-portrait-label .text-link, .filter-button {
    font-size: var(--text-control); line-height: 1.5;
  }
  .btn, .professional-hero .btn { min-height: 48px; gap: 18px; padding: 13px 22px; }
  .header-tools > .btn { min-height: 44px; padding: 10px 16px; }
  .lang-button, .menu-toggle { min-height: 44px; min-width: 44px; }
  .desktop-nav { gap: 22px; }
  .site-header .wrap { gap: 20px; }
  .header-tools { flex-shrink: 0; gap: 14px; }
  .brand-sub, .site-footer .brand-sub, .footer-grid .brand-sub {
    font-size: .75rem; letter-spacing: .06em; line-height: 1.45;
    white-space: normal; max-width: 16rem;
  }
  .site-header .brand { min-width: 0; }
  .brand-name { white-space: nowrap; }
  .professional-portrait-label { flex-wrap: wrap; gap: 12px; }
  .field, .calc-inputs .field { font-size: var(--text-support); line-height: 1.5; }
  .field input, .field select, .field textarea, .search-field {
    font-size: var(--text-control); line-height: 1.5; min-height: 48px;
  }
  .filter-button { min-height: 44px; }
  .article-aside a, .footer-links a { padding: 4px 0; }
  .toast, .message-result, table { font-size: var(--text-control); }

  /* Guest search and inquiry copy; the external IDX frame controls its own fonts. */
  .nh-context, .nh-field, .nh-field-help, .nh-check, .nh-form-intro,
  .nh-selected-row, .nh-selected-fieldset legend, .nh-no-selection, .nh-contact-facts, .nh-social-link,
  .nh-market-intro p, .nh-market-intro a, .nh-results-toolbar > p,
  .nh-shortlist-band p, .nh-detail-source dd, .nh-form-error, .nh-error,
  .nh-inquiry-aside > .nh-review-note, .nh-inquiry-aside > .nh-browser-note {
    font-size: var(--text-support); line-height: 1.7;
  }
  .nh-field input, .nh-field select, .nh-field textarea, .nh-sort-label select,
  .nh-reset, .nh-saved-filter, .nh-tabs button, .nh-detail-link,
  .nh-detail-actions .btn, .nh-empty .btn, .nh-market-contact .btn,
  .nh-shortlist-band .btn, .nh-social-link {
    font-size: var(--text-control); line-height: 1.5; min-height: 48px;
  }
  .nh-field input, .nh-field select, .nh-field textarea { padding: 12px; }
  .nh-sort-label select { padding: 11px 25px 11px 12px; }
  .nh-description, .nh-inquiry-aside > p, .nh-search-help p,
  .nh-empty p, .nh-success > p { font-size: var(--text-body); line-height: 1.75; }
  .nh-loading, .nh-address, .nh-card-city, .nh-facts, .nh-detail-address,
  .nh-shortlist-band strong, .nh-reference strong { font-size: var(--text-control); line-height: 1.65; }
  .nh-status, .nh-featured, .nh-broker, .nh-detail-source dt, .nh-disclosure,
  .nh-submit-note, .nh-reference > span, .nh-stale-selection, .nh-dialog-header > span,
  .nh-gallery-controls span, .nh-no-photo > span:last-child {
    font-size: var(--text-caption); line-height: 1.65;
  }
  .nh-submit-note, .nh-field-help, .nh-disclosure, .nh-detail-source dt { color: #586475; }
  .nh-selected-row button { font-size: var(--text-caption); min-height: 44px; }
  .nh-heart, .nh-dialog-close, .nh-gallery-controls button { min-width: 44px; min-height: 44px; }
  .nh-check input { width: 20px; height: 20px; }
  .nh-card-price, .nh-detail-top, .nh-toolbar-actions { flex-wrap: wrap; }
  .nh-tabs { gap: 24px; }
  .nh-tabs button { text-align: left; }
  .nh-market-intro a { white-space: normal; display: inline-flex; align-items: center; min-height: 44px; }
  .nh-market-contact .btn { padding: 13px 22px; }
  .nh-market-intro, .nh-results-toolbar, .nh-form-grid, .nh-filter-grid { min-width: 0; }
  .nh-reference, .nh-selected-row, .nh-detail-source { overflow-wrap: anywhere; }

  /* The owner's workspace uses the same scale without compressing data tables. */
  .na-top p, .na-heading p, .na-auth > p, .na-message, .na-info p,
  .na-import-box p, .na-empty, .na-notice { font-size: var(--text-control); line-height: 1.75; }
  .na-button, .na-button.na-tab, .na-row-actions .na-button,
  .na-toolbar input, .na-toolbar select, .na-field input, .na-field textarea,
  .na-field select, .na-field input[type=file], .na-inquiry-head select {
    font-size: var(--text-control); line-height: 1.5; min-height: 46px;
  }
  .na-field, .na-editor legend, .na-check, .na-help, .na-working,
  .na-editor-footer p, .na-import-errors, .na-table, .na-property strong,
  .na-inquiry-meta strong { font-size: var(--text-support); line-height: 1.7; }
  .na-table th, .na-property span, .na-property small, .na-badge, .na-status-text,
  .na-count, .na-inquiry-head p, .na-inquiry-meta span, .na-consent, .na-consent p,
  .na-auth p.na-small, .na-kicker, .na-top .na-kicker {
    font-size: var(--text-caption); line-height: 1.65;
  }
  .na-small { font-size: var(--text-caption) !important; }
  .na-button { white-space: normal; }
  .na-button.na-tab, .na-row-actions .na-button { white-space: nowrap; }
  .na-shell, .na-panel, .na-table-wrap { min-width: 0; }
  .na-top, .na-heading, .na-toolbar, .na-inquiry-head { flex-wrap: wrap; }
  .na-count { white-space: normal; }
  .na-table th { letter-spacing: .025em; }
  .na-inquiry-meta span { letter-spacing: .03em; }
  .na-check input { width: 20px; height: 20px; }

  @media (max-width: 1200px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .header-tools > .btn { display: none; }
    .mobile-nav.open {
      display: flex; flex-direction: column; position: absolute;
      top: 90px; left: 0; right: 0; z-index: 49;
      background: #fff; border-bottom: 1px solid var(--line);
      padding: 13px 5% 24px; gap: 0; max-height: calc(100svh - 90px); overflow: auto;
    }
    .mobile-nav > a, .mobile-nav .nav-group { border-bottom: 1px solid var(--line); }
    .mobile-nav > a, .mobile-nav .nav-group summary { padding: 14px 0; }
    .mobile-nav .nav-group summary { justify-content: space-between; }
    .mobile-nav .nav-dropdown { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 12px 10px; }
    .professional-portrait-label .text-link { display: inline-flex; }
    .footer-grid { gap: 32px; }
  }
  @media (max-width: 900px) {
    .mobile-nav.open { top: 80px; max-height: calc(100svh - 80px); }
    .professional-hero-grid { gap: 5%; }
  }
  @media (max-width: 700px) {
    .nh-results-toolbar { gap: 16px; }
    .nh-toolbar-actions { align-items: stretch; gap: 12px; }
    .nh-sort-label { flex: 1 1 170px; }
    .nh-saved-filter { flex: 1 1 160px; justify-content: center; }
    .nh-detail-source { grid-template-columns: 1fr; }
  }
  @media (max-width: 650px) {
    .site-header { height: 88px; }
    .site-header .wrap { gap: 12px; }
    .site-header .brand { flex: 1; }
    .header-tools { gap: 4px; }
    .mobile-nav.open { top: 88px; max-height: calc(100svh - 88px); padding-left: 24px; padding-right: 24px; }
    .brand-sub { margin-top: 5px; }
    .professional-hero-grid { gap: 32px; }
    .professional-hero .actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .professional-hero .btn { justify-content: space-between; }
    .professional-portrait-label { align-items: flex-start; }
    .quick-start-grid > a, .quick-start-grid > a + a { padding: 23px 0; }
    .quick-start p { margin-top: 7px; }
    .section-head { gap: 22px; }
    .service-card p { max-width: 100%; }
    .community-card, .community-grid:not(.community-all) .community-card:nth-child(n+2) { min-height: 330px; }
    .steps, .checklist { grid-template-columns: 1fr; gap: 26px; }
    .footer-grid { gap: 32px 20px; }
    .social-line { gap: 10px 16px; }
    .footer-grid > div, .footer-bottom p { min-width: 0; overflow-wrap: anywhere; }
    .nh-inquiry-panel { padding: 25px 20px; }
    .nh-form-grid { grid-template-columns: 1fr; }
    .nh-tabs { gap: 18px; }
    .nh-facts { gap: 9px 0; }
    .na-inquiry-meta { grid-template-columns: 1fr; }
    .na-row-actions .na-button { padding: 9px; }
  }
  @media (max-width: 380px) {
    .wrap { padding-left: 20px; padding-right: 20px; }
    .site-header .wrap { gap: 8px; }
    .header-tools { gap: 0; }
    .nh-filter-grid, .calc-inputs { grid-template-columns: 1fr; }
    .nh-search-field { grid-column: auto; }
    .nh-tabs { gap: 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-field { min-width: 0; width: 100%; }
  }
}
