/* Live catalogue anchor clearance after hydrated phase filters.
 * The published inline layout makes filters static through 767px.
 * Expanded filters and project presentations retain their existing clearance.
 */
@media (min-width: 768px) and (max-width: 1199px) {
  body:not(.project-is-open) #root#root .azd-public-shell .portfolio-page:not(.project-is-open):has(.portfolio-filters.azd-discovery-filters:not(.is-expanded)):not(:has(.azd-filter-drawer[open], .azd-project-presentation:not([hidden]))) #portofoliu {
    scroll-margin-top: 335px !important;
  }
}

@media (min-width: 1200px) {
  body:not(.project-is-open) #root#root .azd-public-shell .portfolio-page:not(.project-is-open):has(.portfolio-filters.azd-discovery-filters:not(.is-expanded)):not(:has(.azd-filter-drawer[open], .azd-project-presentation:not([hidden]))) #portofoliu {
    scroll-margin-top: 280px !important;
  }
}

/* Dedicated project pages need room below the fixed public header.
 * Only padding-top changes; inline catalogue presentations are excluded.
 */
body #root#root .azd-public-shell main.portfolio-page.azd-project-inline-page:has(.azd-dedicated-project) {
  padding-top: 96px !important;
}

@media (max-width: 900px) {
  body #root#root .azd-public-shell main.portfolio-page.azd-project-inline-page:has(.azd-dedicated-project) {
    padding-top: 80px !important;
  }
}
