/* Z Real Estate's verified original typography: Lato display, Avenir text.
   Keep these distinct roles; do not force the menu font onto headings.
   Local files are the original reference fonts, also available on 404. */
@font-face {
  font-family: "Avenir Round";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/reference/83c6a41fdbd8bd.delivery.woff") format("woff");
}
@font-face {
  font-family: "Avenir Round";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/reference/4a91a3b032e413.delivery.woff") format("woff");
}
@font-face {
  font-family: "Avenir Round";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/reference/ded3b90b08fe5f.delivery.woff") format("woff");
}
@font-face {
  font-family: "Avenir Round";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/reference/ee71952f323ee9.delivery.woff") format("woff");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("/reference/81c8b72a7c6899.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/reference/051c2758ed729e.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/reference/4d3e9082410f29.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/reference/04393e6516bf54.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/reference/0e2b6026f7def6.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url("/reference/6287ada446c233.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/reference/b7cdfeb0e39281.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/reference/beca642c52c1c1.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/reference/5c2474aa9d6f19.delivery.woff") format("woff");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("/reference/d344c981aa9fec.delivery.woff") format("woff");
}

:root {
  --heritage-font-family: "Avenir Round", Arial, sans-serif;
  --heritage-font-display: "Lato", Arial, sans-serif;
}
body { font-family: var(--heritage-font-family); }

/* The original header, homepage, Quote, footer and popup keep the Z source
   selectors. These scoped rules bring added catalogue/legacy content into the
   same system without changing any sizes, weights, spacing or animations. */
@layer heritage-typography {
  body:not(.home) :is(#main, .heritage-catalogue-hero, main.section.prose),
  body:not(.home) :is(#main, .heritage-catalogue-hero, main.section.prose)
  :is(a, address, article, aside, b, blockquote, button, caption, cite, code,
      dd, details, div, dl, dt, em, fieldset, figcaption, figure, form, i, input,
      label, legend, li, nav, ol, option, output, p, section, select, small,
      span, strong, sub, summary, sup, table, tbody, td, textarea, th, thead,
      time, tr, u, ul):where(:not(:is(.fa, .fas, .far, .fal, .fad, .fab, .fak, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands, [class^="eicon"], [class*=" eicon"], .dashicons, [data-icon-font], svg))):where(:not(:is(.fa, .fas, .far, .fal, .fad, .fab, .fak, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands, [class^="eicon"], [class*=" eicon"], .dashicons, [data-icon-font], svg) *)) {
    font-family: var(--heritage-font-family) !important;
  }

  body:not(.home) :is(#main, .heritage-catalogue-hero, main.section.prose)
  :is(h1, h2, h3, h4, h5, h6),
  body:not(.home) :is(#main, .heritage-catalogue-hero, main.section.prose)
  :is(h1, h2, h3, h4, h5, h6) :is(a, span, em, strong, b, small):where(:not(:is(.fa, .fas, .far, .fal, .fad, .fab, .fak, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands, [class^="eicon"], [class*=" eicon"], .dashicons, [data-icon-font], svg))):where(:not(:is(.fa, .fas, .far, .fal, .fad, .fab, .fak, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands, [class^="eicon"], [class*=" eicon"], .dashicons, [data-icon-font], svg) *)) {
    font-family: var(--heritage-font-display) !important;
  }

  body:not(.home) #main .heritage-range-count,
  body:not(.home) #main input::placeholder,
  body:not(.home) #main textarea::placeholder,
  body:not(.home) #main input::file-selector-button {
    font-family: var(--heritage-font-family) !important;
  }
}
