/* Shared public typography, using the approved homepage's local font and scale.
   The public asset loader excludes all management pages. The homepage continues
   to use its approved component sizes; only the font face is shared with it. */
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/noto-sans/noto-sans-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* The ID in :not() deliberately gives these shared rules priority over later
   page styles, without using global !important rules or changing page layout. */
:root body:not(#homepage) {
  --tv-font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
  --tv-font-title: clamp(32px, 3.15vw, 46px);
  --tv-font-section: 28px;
  --tv-font-lead: 18px;
  font-family: var(--tv-font-family);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

:root body:not(#homepage) :is(.lr-landing, .tv-map-popup, .maplibregl-popup-content,
  .tv-cookie-consent) {
  font-family: var(--tv-font-family);
}

:root body:not(#homepage) :is(input, select, textarea,
  button:not(.maplibregl-popup-close-button):not(.owl-prev):not(.owl-next)) {
  font-family: inherit;
}

:root body:not(#homepage) :is(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
  font-weight: 700;
}

:root body:not(#homepage) main h1,
:root body:not(#homepage) .ev-card h1 {
  font-size: var(--tv-font-title);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -1.1px;
}

:root body:not(#homepage) main h2 {
  font-size: var(--tv-font-section);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.6px;
}

:root body:not(#homepage) main h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.2px;
}

:root body:not(#homepage) main :is(h4, h5, h6) {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: normal;
}

/* Navigation/footer typography is owned by public-header-footer.css and site-footer.css. */

/* Page introductions, cards and search controls. */
:root body:not(#homepage) :is(.tv-category-page-heading p,
  .tv-results-heading > p, .tv-area-heading > p, .tv-profile-summary,
  .lr-lead, .tv-not-found-description) {
  font-size: var(--tv-font-lead);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: normal;
}

:root body:not(#homepage) :is(.tv-result-card .title,
  .tv-results-suggestions .result-name, .tv-profile-suggestions .result-name,
  .tv-category-card h2, .tv-category-name, .lr-benefit h3, .lr-step-grid h3) {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: normal;
}

:root body:not(#homepage) :is(.tv-profile-panel h2,
  .tv-business-service h3, .tv-subcategory-modal .modal-title,
  .tv-results-empty h2, .tv-area-empty-state h2, .tv-not-found-suggestions h2,
  .tv-area-map-header h2, .lr-plan h3) {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: normal;
}

:root body:not(#homepage) :is(.tv-result-card .listing-description,
  .tv-results-empty > p, .tv-area-empty-state p, .tv-business-service p,
  .lr-benefit p, .lr-step-grid p, .lr-faq details > p) {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

:root body:not(#homepage) :is(.tv-result-category,
  .tv-result-card .listing-location, .tv-profile-category,
  .tv-profile-location, .tv-profile-category-links > a,
  .tv-profile-category-links > span, .tv-profile-details dd,
  .tv-profile-location-status, .tv-profile-location-address,
  .tv-business-links-note, .single-sub-category a,
  .tv-area-panel .tv-area-parent-link, .tv-area-panel li a,
  .tv-subcategory-chips a, .tv-not-found-reassurance) {
  font-size: 14px;
  line-height: 1.55;
}

:root body:not(#homepage) :is(.tv-category-breadcrumb ol,
  .tv-results-breadcrumb ol, .tv-map-breadcrumb ol,
  .tv-profile-breadcrumb ol, .tv-category-filter-help,
  .tv-category-match, .tv-profile-details dt, .tv-business-hours-note,
  .tv-area-count, .tv-area-local-status, .tv-area-local-empty,
  #area-search-status, #area-map-loading) {
  font-size: 13px;
  line-height: 1.5;
}

:root body:not(#homepage) :is(.tv-area-group,
  .tv-business-search summary, .tv-modal-search label,
  .tv-modal-parent, .tv-area-search label, .tv-map-filters label,
  .pa-auth-shell .pa-field) {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

:root body:not(#homepage) :is(.tv-search-field input,
  .tv-category-filter input, .tv-business-search input,
  .tv-modal-search input,
  .tv-area-search input, .tv-area-local-search input,
  .tv-map-filters select, .pa-auth-shell .pa-field input,
  .pa-auth-shell select, .pa-auth-shell textarea) {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: normal;
}

:root body:not(#homepage) :is(.main-search-btn, .view-listing-btn,
  .tv-results-map-link, .tv-results-retry, .tv-category-view-all,
  .tv-profile-action, .tv-business-link, .tv-profile-location-explore,
  .tv-show-subcategories, .tv-modal-close, .tv-modal-parent,
  .tv-area-map-open, .tv-area-full-map,
  .tv-area-empty-state a, .tv-area-search button, .tv-area-local-clear,
  .tv-not-found-button, .tv-not-found-suggestions a, .tv-cookie-action,
  .lr-button, .lr-text-button, .ev-primary,
  .pa-auth-shell .pa-auth > button[type=submit],
  .pa-auth-shell .pa-auth > button[type=button],
  .pa-auth-shell .pa-check-email > button.pa-verification-resend,
  #onboarding-unsubscribe button) {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: normal;
}

:root body:not(#homepage) :is(.tv-area-categories a,
  .tv-area-pagination, .tv-pagination, .tv-map-pagination) {
  font-size: 14px;
  line-height: 1.5;
}

/* Public business prose can contain formatting from its rich-text editor.
   Normalize text fonts while retaining emphasis, headings, lists and code. */
:root body:not(#homepage) .tv-profile-description {
  font-family: var(--tv-font-family);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
}

:root body:not(#homepage) .tv-profile-description :is(
  [style*='font-family']:not(code):not(pre), font[face]) {
  font-family: inherit !important;
}

:root body:not(#homepage) .tv-profile-description :is(
  span[style*='font-size'], font[size]) {
  font-size: inherit !important;
}

:root body.tv-profile-page:not(#homepage) .tv-profile-description h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.4px;
}

:root body.tv-profile-page:not(#homepage) .tv-profile-description :is(h3, h4, h5, h6) {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: normal;
}

/* Keep the map a compact working interface. Canvas labels, attribution,
   zoom icons and popup close controls keep their library typography. */
:root body:not(#homepage) .tv-map-search h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.6px;
}

:root body:not(#homepage) :is(.tv-map-results-heading h2,
  .tv-map-card h3, .tv-map-popup h3) {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: normal;
}

:root body:not(#homepage) :is(.tv-map-intro, .tv-map-card p,
  .tv-map-card-meta, .tv-map-popup p, .tv-map-count,
  .tv-map-chip, #map-service-status) {
  font-size: 13px;
  line-height: 1.5;
}

:root body:not(#homepage) :is(.tv-map-toolbar p, .tv-map-empty,
  .tv-map-popup a, .tv-map-pagination) {
  font-size: 14px;
  line-height: 1.5;
}

:root body:not(#homepage) :is(.tv-map-clear, .tv-map-chip,
  .tv-map-switch button, .tv-map-pagination button, .tv-map-popup button) {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

/* Long-form policy text retains its readable body scale and table layout. */
:root body:not(#homepage) :is(.tv-legal-card, .tv-cookie-policy-card) {
  font-size: 17px;
  line-height: 1.65;
}

:root body:not(#homepage) :is(.tv-legal-eyebrow, .tv-legal-meta,
  .tv-cookie-policy-date) {
  font-size: 14px;
  line-height: 1.55;
}

:root body:not(#homepage) :is(.tv-legal-toc h2, .tv-legal-draft h2) {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: normal;
}

/* Marketing text follows the shared scale. Its miniature device, search and
   profile illustrations keep their intentionally small decorative type. */
:root body:not(#homepage) .lr-landing {
  font-size: 17px;
  line-height: 1.55;
}

:root body:not(#homepage) :is(.lr-section-heading p,
  .lr-proof-grid > div > p:not(.lr-search-disclaimer),
  .lr-profile-grid > div > p:not(.lr-eyebrow),
  .lr-final-cta > .lr-container > p:not(.lr-signin)) {
  font-size: 17px;
  line-height: 1.55;
}

:root body:not(#homepage) :is(.lr-hero-copy .lr-check-list,
  .lr-profile-grid > div > .lr-check-list, .lr-plan .lr-check-list,
  .lr-trust-strip p, .lr-proof-callout strong) {
  font-size: 15px;
  line-height: 1.55;
}

:root body:not(#homepage) :is(.lr-hero-note, .lr-plan-note,
  .lr-pricing-note, .lr-proof-callout p, .lr-flow-note, .lr-signin,
  .lr-eyebrow, .lr-plan-price small) {
  font-size: 14px;
  line-height: 1.55;
}

:root body:not(#homepage) .lr-faq summary {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}

/* Compact public authentication cards use the homepage section-title role. */
:root body:not(#homepage) .pa-auth-shell .pa-auth h1,
:root body:not(#homepage) .ev-card h1 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -.6px;
}

:root body:not(#homepage) :is(.pa-auth-shell .pa-meta,
  .pa-auth-shell .pa-auth > p, .pa-auth-shell .pa-nav,
  .pa-auth-shell .pa-auth > .pa-notice, .ev-card p,
  .ev-card .ev-feedback, .ev-card .ev-help, .ev-nav a) {
  font-size: 14px;
  line-height: 1.6;
}

:root body:not(#homepage) .ev-footer {
  font-size: 13px;
  line-height: 1.5;
}

:root body.tv-public-error-page:not(#homepage) main p,
:root body:not(#homepage) :is(#onboarding-unsubscribe > p,
  #onboarding-unsubscribe noscript p) {
  font-size: 17px;
  line-height: 1.6;
}

/* The standalone fallback has no application shell to supply a text measure. */
:root body.tv-public-error-page:not(#homepage) main {
  max-width: 960px;
  margin: 64px auto;
  padding: 0 20px;
}

@media (max-width: 767.98px) {
  :root body:not(#homepage) {
    --tv-font-title: 33px;
    --tv-font-section: 24px;
    --tv-font-lead: 16px;
  }

  :root body:not(#homepage) main h1 {
    letter-spacing: -.7px;
  }

  :root body:not(#homepage) .tv-map-search h1 {
    font-size: 28px;
    letter-spacing: -.6px;
  }

  :root body:not(#homepage) .pa-auth-shell .pa-auth h1,
  :root body:not(#homepage) .ev-card h1 {
    font-size: 26px;
    letter-spacing: -.4px;
  }

  :root body:not(#homepage) :is(.lr-section-heading p,
    .lr-proof-grid > div > p:not(.lr-search-disclaimer),
    .lr-profile-grid > div > p:not(.lr-eyebrow),
    .lr-final-cta > .lr-container > p:not(.lr-signin)) {
    font-size: 16px;
  }
}
