siteTitle is the brand suffix (e.g. "EU Parliament Monitor") and
separator is the localized glue (e.g. " | " / " ・ " / " ׀ ").
When both are provided the function tries to keep the brand suffix
inside the budget; when the article title alone already fills the
budget the suffix is dropped (better SERP outcome than a truncated
headline followed by a clipped brand).
shortSiteTitle is the optional fallback used when the full brand
suffix can't fit but a shorter variant would (e.g. "EPM" for CJK).
Optional inputs to clampTitleForSurface.
siteTitleis the brand suffix (e.g. "EU Parliament Monitor") andseparatoris the localized glue (e.g." | "/" ・ "/" ׀ "). When both are provided the function tries to keep the brand suffix inside the budget; when the article title alone already fills the budget the suffix is dropped (better SERP outcome than a truncated headline followed by a clipped brand).shortSiteTitleis the optional fallback used when the full brand suffix can't fit but a shorter variant would (e.g."EPM"for CJK).