/* Desktop page headings share the same brand row as the left rail logo. */
@media (min-width:1181px) {
  #portal-app-shell {--portal-brand-row-height:138px;}
  /* Ordinary customer portals have no remaining topbar actions: keep its DOM,
     but remove the empty utility row. Internal customer-switch tools keep theirs. */
  #portal-app-shell:has(#internal-customer-switch[hidden]) {--app-utility-row-height:0px;}
  #portal-app-shell:has(#internal-customer-switch[hidden]) > .portal-topbar {height:0;min-height:0;max-height:0;padding-block:0;overflow:hidden;visibility:hidden;}
  #portal-app-shell .app-page-header.app-page-header {
    min-height:var(--portal-brand-row-height);height:auto;box-sizing:border-box;
    grid-template-rows:auto;grid-template-areas:"page-copy page-actions";
    align-items:center;align-content:center;align-self:start;
    margin:0;padding:0;border:0;
  }
  #portal-app-shell .app-page-header > .app-page-header__copy {align-self:center;margin:0;padding:0;}
  #portal-app-shell .app-page-header > .app-page-header__copy > :is(h1,h2) {margin:0;}
  #portal-app-shell .app-page-header > .app-page-header__copy > p {margin:6px 0 0;}
  #portal-app-shell .app-page-header > :is(.app-page-header__actions,.app-page-header__primary-action) {align-self:center;margin:0;}
}
